:root {
  --bg: #f4f4f0;
  --paper: #ffffff;
  --ink: #10110f;
  --muted: #686a63;
  --line: #d9d9d1;
  --yellow: #f5c842;
  --yellow-dark: #816700;
  --green: #3f7d2b;
  --green-soft: #e7f2de;
  --orange: #d36a17;
  --orange-soft: #fff0e2;
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 68px;
  padding: 0 clamp(18px, 4.5vw, 64px);
  display: flex;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid rgba(217, 217, 209, 0.9);
  background: rgba(244, 244, 240, 0.92);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; white-space: nowrap; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 0.84rem; font-weight: 700; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; background: var(--ink); transition: right 180ms ease; }
.nav a:hover::after { right: 0; }
.language-switch {
  position: relative;
  width: 78px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #e7e7e0;
  cursor: pointer;
}
.language-switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 34px; height: 28px; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(16,17,15,.16); transition: transform 200ms ease; }
html[data-language="en"] .language-switch::before { transform: translateX(37px); }
.language-switch button { position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer; font-size: .68rem; font-weight: 850; color: var(--muted); }
.language-switch button[aria-pressed="true"] { color: var(--ink); }
.topbar-cta { min-height: 38px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 800; }

main { width: 100%; }
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(820px, calc(100svh - 68px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #181a16;
  color: #fff;
  box-shadow: inset 0 -6px 0 var(--yellow);
}
.hero-backdrop { display: none; }
.hero::before { content: ""; position: absolute; top: clamp(54px, 9vw, 110px); right: clamp(24px, 7vw, 96px); width: clamp(70px, 12vw, 150px); height: clamp(70px, 12vw, 150px); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.hero::after { content: "FC"; position: absolute; right: clamp(36px, 9vw, 122px); bottom: clamp(52px, 10vh, 100px); color: rgba(255,255,255,.055); font-size: clamp(10rem, 28vw, 28rem); line-height: .7; font-weight: 900; pointer-events: none; }
.hero-content { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: clamp(72px, 12vh, 132px) 0 clamp(58px, 9vh, 96px); }
.hero-kicker { margin-bottom: 18px; color: var(--yellow); font-size: .78rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
h1 { max-width: 900px; font-size: clamp(4rem, 10vw, 8.8rem); line-height: .82; font-weight: 900; letter-spacing: 0; text-wrap: balance; }
.hero-role { max-width: 890px; margin-top: 28px; font-size: clamp(1.5rem, 3.2vw, 3.05rem); line-height: 1.08; font-weight: 750; text-wrap: balance; }
.hero-lead { max-width: 700px; margin-top: 20px; color: rgba(255,255,255,.78); font-size: clamp(.98rem, 1.3vw, 1.12rem); line-height: 1.75; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 820; transition: transform 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-light { background: #fff; color: var(--ink); }
.button-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 22px rgba(16,17,15,.12); }
.text-link { display: inline-flex; align-items: center; gap: 9px; width: fit-content; font-size: .88rem; font-weight: 820; }
.text-link::after { content: "→"; transition: transform 180ms ease; }
.text-link:hover::after { transform: translateX(5px); }
.text-link-light { color: #fff; }
.hero-scroll { position: absolute; right: clamp(24px, 5vw, 68px); bottom: 40px; width: 24px; height: 42px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; }
.hero-scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: #fff; transform: translateX(-50%); animation: scrollCue 1.8s ease-in-out infinite; }

.proof-strip { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); width: min(1160px, calc(100% - 48px)); margin: 0 auto; border-bottom: 1px solid var(--line); }
.proof-strip > div { min-height: 180px; padding: 36px 26px; border-right: 1px solid var(--line); }
.proof-strip > div:first-child { padding-left: 0; }
.proof-strip > div:last-child { border-right: 0; padding-right: 0; }
.eyebrow { margin-bottom: 12px; color: var(--yellow-dark); font-size: .72rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.proof-intro > p:last-child { max-width: 32ch; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.proof-stat strong { display: block; font-size: clamp(2rem, 3.5vw, 3.3rem); line-height: 1; font-weight: 900; }
.proof-stat strong span { font-size: .32em; text-transform: uppercase; }
.proof-stat p { max-width: 20ch; margin-top: 12px; color: var(--muted); font-size: .84rem; line-height: 1.55; }

.featured-project { width: min(1160px, calc(100% - 48px)); margin: clamp(64px, 8vw, 104px) auto; padding: clamp(38px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(40px, 6vw, 72px); align-items: center; background: #edf5e8; border: 1px solid #cfdec7; border-radius: 8px; }
.featured-copy { min-width: 0; }
.project-heading { min-height: 62px; display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.project-heading img { width: 146px; max-height: 58px; object-fit: contain; object-position: left center; }
.project-index { color: #9b9d95; font-size: .72rem; font-weight: 850; letter-spacing: .08em; }
.eyebrow-green { color: var(--green); }
.eyebrow-orange { color: #9a4a0c; }
h2 { font-size: clamp(2.5rem, 5.5vw, 5.35rem); line-height: .96; font-weight: 900; letter-spacing: 0; text-wrap: balance; }
.featured-copy h2 { font-size: clamp(2.5rem, 3.8vw, 3.9rem); }
.section-lead { max-width: 58ch; margin-top: 24px; color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.project-outcomes { margin: 32px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.project-outcomes div { display: grid; grid-template-columns: 94px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.project-outcomes span { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.project-outcomes strong { font-size: .88rem; line-height: 1.5; }
.featured-media { position: relative; overflow: hidden; min-height: 520px; background: #edf7e7; border: 1px solid #c9d9c0; border-radius: var(--radius); }
.featured-media img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: 34% center; transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.featured-media:hover img { transform: scale(1.025); }
.media-caption { position: absolute; left: 20px; right: 20px; bottom: 20px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 15px 17px; background: rgba(255,255,255,.94); border: 1px solid rgba(16,17,15,.1); border-radius: 4px; backdrop-filter: blur(10px); }
.media-caption strong { color: var(--green); font-size: .78rem; }
.media-caption span { color: #4f514a; font-size: .78rem; line-height: 1.4; }

.workbench { padding: clamp(76px, 10vw, 132px) max(24px, calc((100vw - 1160px) / 2)); background: #171915; color: #fff; }
.workbench::after { content: ""; display: block; height: 300vh; }
.section-title { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 34px; align-items: start; margin-bottom: 52px; }
.section-title .eyebrow { align-self: start; color: var(--yellow); }
.section-title h2 { max-width: 820px; font-size: clamp(2.6rem, 5vw, 4.9rem); }
.workbench-scroll-start { height: 1px; }
.workbench-layout { position: sticky; top: 74px; display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: stretch; }
.workbench-tabs { display: grid; align-content: start; border-top: 1px solid rgba(255,255,255,.2); }
.workbench-tabs button { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; width: 100%; min-height: 108px; padding: 20px 4px; text-align: left; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); background: transparent; color: rgba(255,255,255,.55); cursor: pointer; transition: color 180ms ease, padding-left 180ms ease; }
.workbench-tabs button[aria-selected="true"] { color: #fff; padding-left: 14px; box-shadow: inset 4px 0 0 var(--yellow); }
.workbench-tabs button span { grid-row: 1 / span 2; color: var(--yellow); font-size: .7rem; font-weight: 850; }
.workbench-tabs button strong { font-size: 1.04rem; }
.workbench-tabs button small { font-size: .68rem; letter-spacing: .04em; }
.workbench-panels { min-width: 0; }
.work-panel { display: grid; grid-template-rows: minmax(340px, 52vh) auto; min-height: 620px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: #22251f; animation: panelIn 360ms ease both; }
.work-panel[hidden] { display: none; }
.work-panel img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
#panel-acquisition img { object-position: center 60%; }
.work-panel-copy { padding: 28px; display: grid; grid-template-columns: 1fr 1.35fr; gap: 14px 28px; align-items: start; }
.work-panel-copy .eyebrow { color: var(--yellow); }
.work-panel-copy h3 { grid-column: 1; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.05; }
.work-panel-copy > p:last-child { grid-column: 2; grid-row: 1 / span 2; color: rgba(255,255,255,.68); line-height: 1.75; }

.secondary-project { width: min(1160px, calc(100% - 48px)); margin: clamp(64px, 8vw, 104px) auto; padding: clamp(38px, 5vw, 64px); display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); align-items: stretch; background: #fff0e2; border: 1px solid #efc9a7; border-radius: 8px; }
.secondary-project-logo { min-width: 0; display: grid; grid-template-rows: auto 1fr; gap: 28px; align-items: center; padding-right: clamp(28px, 4vw, 52px); border-right: 1px solid #e7b88f; }
.secondary-project-logo img { width: min(230px, 100%); height: auto; object-fit: contain; object-position: center; justify-self: center; }
.secondary-project-copy { min-width: 0; align-self: center; }
.secondary-project-copy h2 { max-width: 760px; font-size: clamp(2.3rem, 3.8vw, 3.9rem); }
.secondary-project-copy > p:not(.eyebrow) { max-width: 65ch; margin: 24px 0; color: var(--muted); line-height: 1.75; }

.profile-section { width: 100%; margin: 0; padding: clamp(76px, 10vw, 128px) max(24px, calc((100vw - 1160px) / 2)); background: #20221e; color: #fff; }
.profile-intro { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px 34px; }
.profile-intro .eyebrow { grid-row: 1 / span 2; }
.profile-intro h2 { max-width: 820px; font-size: clamp(2.6rem, 4.7vw, 4.7rem); }
.profile-intro > p:last-child { max-width: 68ch; color: rgba(255,255,255,.66); font-size: 1.02rem; line-height: 1.8; }
.profile-section .eyebrow { color: var(--yellow); }
.journey { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
.journey article { min-height: 230px; padding: 28px 28px 28px 0; border-right: 1px solid rgba(255,255,255,.2); }
.journey article + article { padding-left: 28px; }
.journey article:last-child { border-right: 0; }
.journey span { color: var(--yellow); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.journey h3 { margin-top: 34px; font-size: 1.4rem; }
.journey p { margin-top: 10px; color: rgba(255,255,255,.62); font-size: .88rem; line-height: 1.65; }
.tool-heading { margin-top: 46px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px 34px; align-items: end; }
.tool-heading h3 { font-size: clamp(1.55rem, 3vw, 2.7rem); line-height: 1.05; }
.tool-line { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 32px; }
.tool-line span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.86); font-size: .76rem; font-weight: 750; }

.contact-section { width: min(1160px, calc(100% - 48px)); margin: clamp(64px, 8vw, 96px) auto 58px; padding: clamp(42px, 6vw, 74px); display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: end; background: var(--yellow); color: #171509; border-radius: var(--radius); }
.contact-section h2 { max-width: 800px; font-size: clamp(2.4rem, 5vw, 5rem); }
.contact-actions { display: grid; justify-items: start; gap: 18px; }
.site-footer, .legal-footer { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 26px 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.site-footer a, .legal-footer a { color: var(--ink); font-weight: 750; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

.legal-main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding-block: clamp(54px, 8vw, 100px); }
.legal-hero { max-width: 900px; padding-bottom: clamp(44px, 7vw, 76px); }
.legal-hero h1 { max-width: 820px; margin: 10px 0 22px; color: var(--ink); font-size: clamp(3rem, 8vw, 6.8rem); line-height: .95; }
.legal-lead { max-width: 780px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.7; }
.legal-summary { margin-bottom: 18px; padding: 22px 24px; border-left: 5px solid var(--yellow); background: #eaeaE4; }
.legal-summary h2, .legal-section h2 { margin-bottom: 10px; font-size: clamp(1.35rem, 3vw, 2rem); }
.legal-summary p, .legal-section p { max-width: 840px; color: var(--muted); line-height: 1.75; }
.legal-section { padding: 32px 0; border-top: 1px solid var(--line); }
.legal-section a { font-weight: 750; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.legal-updated { margin-top: 28px; color: var(--muted); font-size: .8rem; }

@keyframes scrollCue { 0%, 100% { transform: translate(-50%, 0); opacity: .45; } 50% { transform: translate(-50%, 16px); opacity: 1; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .nav { display: none; }
  .topbar-cta { margin-left: auto; }
  .proof-strip { grid-template-columns: repeat(3, 1fr); }
  .proof-intro { grid-column: 1 / -1; border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .featured-project { grid-template-columns: 1fr; }
  .featured-media { order: -1; min-height: 480px; }
  .featured-media img { min-height: 480px; }
  .section-title { grid-template-columns: 1fr; }
  .workbench-layout { top: 76px; grid-template-columns: 1fr; gap: 18px; }
  .workbench-tabs { grid-template-columns: repeat(3, 1fr); border-left: 1px solid rgba(255,255,255,.2); }
  .workbench-tabs button { grid-template-columns: 1fr; min-height: 96px; padding: 16px; border-right: 1px solid rgba(255,255,255,.2); }
  .workbench-tabs button[aria-selected="true"] { padding-left: 16px; box-shadow: inset 0 -4px 0 var(--yellow); }
  .workbench-tabs button span { grid-row: auto; }
  .secondary-project { grid-template-columns: 220px minmax(0, 1fr); }
  .secondary-project-logo { padding-right: 30px; }
  .profile-intro { grid-template-columns: 1fr; }
  .profile-intro .eyebrow { grid-row: auto; }
  .tool-heading { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 650px) {
  html { scroll-padding-top: 66px; }
  .topbar { min-height: 66px; padding-inline: 14px; gap: 12px; }
  .brand span { max-width: 138px; overflow: hidden; text-overflow: ellipsis; }
  .topbar-cta { display: none; }
  .language-switch { margin-left: auto; }
  .hero { min-height: calc(100svh - 66px); }
  .hero::before { top: 34px; right: 18px; }
  .hero::after { right: -14px; bottom: 50px; }
  .hero-content { width: calc(100% - 28px); padding-bottom: 62px; }
  h1 { font-size: clamp(3.4rem, 18vw, 5rem); line-height: .88; }
  .hero-role { font-size: clamp(1.35rem, 7vw, 2rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-scroll { display: none; }
  .proof-strip, .contact-section, .site-footer { width: calc(100% - 28px); }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip > div, .proof-strip > div:first-child, .proof-strip > div:last-child { min-height: 0; padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-strip > div:last-child { border-bottom: 0; }
  .proof-stat { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
  .proof-stat p { margin-top: 0; }
  .featured-media, .featured-media img { min-height: 360px; }
  .featured-media img { object-position: 30% center; }
  .media-caption { grid-template-columns: 1fr; gap: 3px; }
  .project-outcomes div { grid-template-columns: 1fr; gap: 5px; }
  .workbench { padding-inline: 14px; }
  .workbench::after { height: 300vh; }
  .workbench-layout { top: 76px; gap: 12px; }
  .workbench-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid rgba(255,255,255,.2); }
  .workbench-tabs button { grid-template-columns: 1fr; min-height: 70px; padding: 10px 8px; border-right: 1px solid rgba(255,255,255,.2); }
  .workbench-tabs button span { grid-row: auto; }
  .workbench-tabs button strong { font-size: .78rem; }
  .workbench-tabs button small { overflow: hidden; font-size: .54rem; white-space: nowrap; text-overflow: ellipsis; }
  .workbench-tabs button[aria-selected="true"] { padding-left: 8px; box-shadow: inset 0 -4px 0 var(--yellow); }
  .work-panel { grid-template-rows: minmax(190px, 28vh) auto; min-height: 0; }
  .work-panel-copy { grid-template-columns: 1fr; padding: 18px; gap: 10px; }
  .work-panel-copy h3, .work-panel-copy > p:last-child { grid-column: 1; grid-row: auto; }
  .featured-project, .secondary-project { width: calc(100% - 28px); margin: 34px auto; padding: 24px 20px; }
  .secondary-project { grid-template-columns: 1fr; gap: 30px; }
  .profile-section { padding-inline: 14px; }
  .secondary-project-logo { min-height: 0; grid-template-columns: auto 1fr; grid-template-rows: 1fr; gap: 18px; padding: 0 0 24px; border-right: 0; border-bottom: 1px solid #e7b88f; }
  .secondary-project-logo img { width: min(180px, 72%); justify-self: start; }
  .journey { grid-template-columns: 1fr; }
  .journey article, .journey article + article { min-height: 0; padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .journey article:last-child { border-bottom: 0; }
  .journey h3 { margin-top: 18px; }
  .contact-section { margin: 34px auto 28px; padding: 26px 20px; }
  .contact-section .button { max-width: 100%; padding-inline: 14px; font-size: .8rem; }
  .site-footer, .legal-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
}
