@font-face {
  font-family: "Jost";
  src: url("../fonts/jost/Jost-400-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost/Jost-500-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost/Jost-700-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost/Jost-800-Heavy.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost/Jost-800-Heavy.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --m-black: #111111;
  --m-charcoal: #1b1714;
  --m-ink: #221d18;
  --m-gold: #c69a45;
  --m-gold-deep: #9b6d1f;
  --m-cream: #f4efe4;
  --m-paper: #fffaf0;
  --m-muted: #746b5d;
  --m-line: rgba(34, 29, 24, 0.14);
  --m-white: #ffffff;
  --m-shadow: 0 28px 70px rgba(20, 16, 12, 0.18);
  --m-radius: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.portfolio-systems-page {
  margin: 0;
  background: var(--m-cream);
  color: var(--m-ink);
  font-family: "Jost", Arial, sans-serif;
  line-height: 1.65;
}

.portfolio-systems-page img {
  display: block;
  max-width: 100%;
}

.portfolio-systems-page a {
  text-decoration: none;
}

.portfolio-container {
  width: min(calc(100% - 32px), 1180px);
  margin: 0 auto;
}

.portfolio-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  height: auto;
  float: none;
  background: rgba(17, 17, 17, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  color: var(--m-white);
}

.nav-shell {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.portfolio-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--m-white);
}

.portfolio-brand img {
  width: 104px;
  height: auto;
}

.portfolio-brand strong,
.portfolio-brand small {
  display: block;
}

.portfolio-brand strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portfolio-brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.portfolio-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.portfolio-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-links a:hover,
.portfolio-links a:focus {
  color: var(--m-white);
}

.portfolio-links .portfolio-nav-cta {
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--m-gold);
  color: var(--m-black);
}

.portfolio-hero {
  position: relative;
  overflow: hidden;
  padding: 98px 0 80px;
  background:
    radial-gradient(circle at 0% 0%, rgba(198, 154, 69, 0.26), transparent 34rem),
    radial-gradient(circle at 92% 72%, rgba(198, 154, 69, 0.16), transparent 28rem),
    linear-gradient(135deg, #111111, #1b1714 66%, #261f19);
  color: var(--m-white);
}

.portfolio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.035)),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  gap: 56px;
  align-items: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #e5c98c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 46px;
  height: 1px;
  background: currentColor;
}

.dark-kicker {
  color: var(--m-gold-deep);
}

.hero-copy h1,
.positioning-grid h2,
.section-heading h2,
.leadership-card h2,
.cta-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero-copy h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  color: var(--m-white);
  font-size: clamp(56px, 6.6vw, 92px);
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-button {
  background: var(--m-gold);
  color: var(--m-black);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--m-white);
}

.positioning-section .secondary-button,
.featured-work .secondary-button {
  border-color: var(--m-line);
  color: var(--m-ink);
}

.hero-showcase {
  position: relative;
  min-height: 560px;
}

.hero-showcase figure {
  margin: 0;
}

.showcase-main,
.showcase-card {
  position: absolute;
  overflow: hidden;
  border-radius: var(--m-radius);
  background: #27211c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34);
}

.showcase-main {
  inset: 48px 82px 92px 0;
}

.showcase-card-one {
  top: 16px;
  right: 0;
  width: 46%;
  height: 250px;
}

.showcase-card-two {
  right: 18px;
  bottom: 24px;
  width: 42%;
  height: 260px;
}

.showcase-main img,
.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-card-two img {
  object-position: top center;
}

.showcase-note {
  position: absolute;
  left: 28px;
  bottom: 0;
  width: min(370px, 68%);
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: var(--m-shadow);
}

.showcase-note strong,
.showcase-note span {
  display: block;
}

.showcase-note strong {
  margin-bottom: 6px;
  color: var(--m-ink);
  font-size: 21px;
}

.showcase-note span {
  color: var(--m-muted);
}

.positioning-section,
.featured-work,
.systems-section,
.leadership-section {
  padding: 88px 0;
  background: var(--m-cream);
}

.positioning-grid,
.leadership-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: center;
}

.positioning-grid h2,
.section-heading h2,
.leadership-card h2 {
  color: var(--m-ink);
  font-size: clamp(42px, 5vw, 70px);
}

.positioning-grid p,
.section-heading p,
.leadership-copy p {
  margin: 0;
  color: var(--m-muted);
  font-size: 18px;
}

.capability-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.capability-band span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--m-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--m-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 18px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.case-card {
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: var(--m-radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--m-shadow);
}

.case-card-large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
}

.case-image {
  min-height: 290px;
  background: var(--m-charcoal);
}

.case-card-large .case-image {
  min-height: 100%;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-image img {
  object-position: top center;
}

.contain-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.contain-image img {
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
}

.case-copy {
  padding: 32px;
}

.case-copy span,
.systems-grid span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--m-gold-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-copy h3,
.systems-grid h3,
.package-grid h3 {
  margin: 0 0 14px;
  color: var(--m-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.case-copy p,
.systems-grid p,
.package-grid p {
  margin: 0;
  color: var(--m-muted);
  font-size: 16px;
}

.case-copy ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.case-copy li {
  position: relative;
  padding-left: 18px;
  color: var(--m-muted);
}

.case-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--m-gold);
}

.media-proof,
.packages-section,
.portfolio-cta,
.portfolio-footer {
  padding: 88px 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(198, 154, 69, 0.22), transparent 28rem),
    linear-gradient(135deg, #111111, #1b1714);
  color: var(--m-white);
}

.light-heading h2,
.light-heading p {
  color: var(--m-white);
}

.light-heading p {
  color: rgba(255, 255, 255, 0.74);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.visual-grid figure {
  overflow: hidden;
  margin: 0;
  border-radius: 22px;
  background: #211b16;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.visual-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.visual-grid figcaption {
  min-height: 74px;
  padding: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-gallery-heading {
  max-width: 720px;
  margin: 52px 0 24px;
}

.proof-gallery-heading h3 {
  margin: 0 0 10px;
  color: var(--m-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.proof-gallery-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
}

.proof-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.proof-gallery figure {
  overflow: hidden;
  margin: 0;
  border-radius: 18px;
  background: #211b16;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-gallery img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.proof-gallery figcaption {
  min-height: 66px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.systems-grid,
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.systems-grid article,
.package-grid article {
  min-height: 100%;
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--m-line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--m-shadow);
}

.leadership-card {
  padding: 42px;
  border-radius: var(--m-radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--m-line);
  box-shadow: var(--m-shadow);
}

.leadership-copy {
  display: grid;
  gap: 20px;
}

.packages-section .package-grid article {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

.packages-section .package-grid h3 {
  color: var(--m-white);
}

.packages-section .package-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.portfolio-cta {
  padding-top: 0;
}

.cta-panel {
  padding: 56px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 85% 15%, rgba(198, 154, 69, 0.32), transparent 22rem),
    rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cta-panel h2 {
  max-width: 820px;
  margin-bottom: 18px;
  color: var(--m-white);
  font-size: clamp(42px, 5vw, 72px);
}

.cta-panel p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.portfolio-footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
  gap: 30px;
}

.footer-grid img {
  width: 116px;
  margin-bottom: 16px;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid h4 {
  margin: 0 0 12px;
  color: var(--m-white);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 1100px) {
  .portfolio-links {
    display: none;
  }

  .hero-grid,
  .positioning-grid,
  .leadership-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .case-grid,
  .systems-grid,
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-card-large {
    grid-column: span 2;
  }

  .visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .portfolio-container {
    width: min(calc(100% - 28px), 1180px);
  }

  .nav-shell {
    min-height: 84px;
  }

  .portfolio-brand img {
    width: 84px;
  }

  .portfolio-brand strong {
    font-size: 12px;
  }

  .portfolio-hero,
  .positioning-section,
  .featured-work,
  .systems-section,
  .leadership-section,
  .media-proof,
  .packages-section,
  .portfolio-cta {
    padding: 58px 0;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(42px, 12vw, 56px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .hero-copy p,
  .positioning-grid p,
  .section-heading p,
  .leadership-copy p,
  .cta-panel p {
    font-size: 16px;
  }

  .hero-showcase {
    min-height: 420px;
  }

  .showcase-main {
    inset: 0 0 110px;
  }

  .showcase-card-one {
    top: auto;
    right: 0;
    bottom: 52px;
    width: 52%;
    height: 130px;
  }

  .showcase-card-two {
    display: none;
  }

  .showcase-note {
    left: 0;
    right: 16px;
    width: auto;
  }

  .case-grid,
  .systems-grid,
  .package-grid,
  .visual-grid,
  .proof-gallery {
    grid-template-columns: 1fr;
  }

  .case-card-large {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .case-card-large .case-image,
  .case-image {
    min-height: 240px;
  }

  .section-heading h2,
  .positioning-grid h2,
  .leadership-card h2,
  .cta-panel h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .case-copy,
  .systems-grid article,
  .package-grid article,
  .leadership-card,
  .cta-panel {
    padding: 24px;
  }

  .visual-grid img {
    height: 360px;
  }

  .proof-gallery img {
    height: 300px;
  }
}
