@font-face {
  font-family: "Polytek Pixel";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #fff;
  --muted: rgba(255,255,255,.64);
  --faint: rgba(255,255,255,.38);
  --line: rgba(255,255,255,.18);
  --panel: rgba(5,5,5,.84);
  --glass: rgba(12,12,12,.6);
  --display: "Bubbledot ICG Fine Positive", "Polytek Pixel", ui-monospace, monospace;
  --sans: Inter, Arial, sans-serif;
  --header-h: 5.7rem;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
html { background: #000; }
body { overflow: hidden; background: #000; color: var(--ink); font-family: var(--sans); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.stage { position: fixed; inset: 0; isolation: isolate; overflow: hidden; background: #000; }
.background-video { position: absolute; inset: 0; z-index: -4; width: 100%; height: 100%; object-fit: cover; filter: none; }
.video-shade { position: absolute; inset: 0; z-index: -3; background: radial-gradient(circle at 72% 35%, transparent 0 20%, rgba(0,0,0,.24) 53%, rgba(0,0,0,.84) 100%), linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.13) 63%, rgba(0,0,0,.46) 100%); }
.noise { position: absolute; inset: 0; z-index: -2; opacity: .045; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }

.site-header { position: absolute; z-index: 30; inset: 1.25rem 1.4rem auto; height: 4.45rem; display: grid; grid-template-columns: 4.45rem 1fr auto; align-items: center; gap: 1rem; pointer-events: none; }
.site-header > * { pointer-events: auto; }
.brand { width: 4.45rem; height: 4.45rem; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: 0 1.2rem 3rem rgba(0,0,0,.28); transition: transform .25s ease; }
.brand:hover { transform: rotate(4deg) scale(1.02); }
.brand img { width: 72%; height: 72%; object-fit: contain; }
.nav-pill { justify-self: center; display: flex; align-items: center; gap: .2rem; padding: .38rem; border-radius: 999px; background: #fff; box-shadow: 0 1rem 3rem rgba(0,0,0,.22); }
.nav-pill a { padding: .76rem 1rem; border-radius: 999px; color: #111; font-size: .76rem; font-weight: 600; letter-spacing: -.01em; transition: color .2s, background .2s; }
.nav-pill a:hover, .nav-pill a.is-active { color: #fff; background: #0a0a0a; }
.proposal-button { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.18rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(7,7,7,.86); box-shadow: 0 1rem 3rem rgba(0,0,0,.25); backdrop-filter: blur(16px); text-transform: uppercase; font-size: .67rem; font-weight: 600; letter-spacing: .14em; }
.proposal-button i { font-size: .66rem; }
.menu-button { display: none; width: 3.7rem; height: 3.7rem; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; background: rgba(0,0,0,.78); align-content: center; justify-items: center; gap: .38rem; cursor: pointer; }
.menu-button span { display: block; width: 1.15rem; height: 1px; background: #fff; transition: transform .25s; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(.2rem) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-.2rem) rotate(-45deg); }

.views { position: absolute; inset: 0; }
.view { position: absolute; inset: 0; min-height: 0; opacity: 0; transform: translateY(1rem); transition: opacity .35s ease, transform .35s ease; }
.view.is-active { opacity: 1; transform: none; }

.view-home { padding: 9.8rem 4.7vw 2.1rem; display: grid; grid-template-rows: 1fr auto; align-items: end; }
.home-content { align-self: center; max-width: 72rem; margin-top: 2.6rem; }
.trust-pill { width: fit-content; display: flex; align-items: center; gap: .58rem; margin: 0 0 1.35rem; padding: .54rem .76rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(0,0,0,.28); backdrop-filter: blur(10px); color: rgba(255,255,255,.82); font-size: .66rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.trust-pill span { width: .36rem; height: .36rem; border-radius: 50%; background: #fff; box-shadow: 0 0 .8rem rgba(255,255,255,.8); }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.05em; text-transform: uppercase; line-height: .86; }
h1 { max-width: 71rem; font-size: clamp(3.75rem, 7.8vw, 8.9rem); text-shadow: 0 .35rem 2rem rgba(0,0,0,.25); }
h1 em, h2 em { font: inherit; color: rgba(255,255,255,.68); }
.hero-copy { max-width: 42rem; margin: 1.5rem 0 0 .3rem; color: rgba(255,255,255,.78); font-size: clamp(.93rem, 1.12vw, 1.13rem); line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 1.2rem; margin: 1.45rem 0 0 .3rem; }
.primary-action { display: inline-flex; align-items: center; gap: .8rem; padding: .94rem 1.1rem; border-radius: 999px; background: #fff; color: #060606; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.primary-action i { transition: transform .2s; }
.primary-action:hover i { transform: translateX(.22rem); }
.hero-actions p { margin: 0; color: var(--muted); font-size: .73rem; letter-spacing: .04em; }
.hero-actions p span { color: #fff; }
.home-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(0,0,0,.15); backdrop-filter: blur(7px); }
.home-stats div { padding: .88rem 1rem .9rem; border-right: 1px solid var(--line); }
.home-stats div:last-child { border-right: 0; }
.home-stats strong { display: block; font-family: var(--display); font-size: clamp(1.5rem, 2.35vw, 2.6rem); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.home-stats span { display: block; margin-top: .34rem; color: var(--muted); font-size: .59rem; letter-spacing: .13em; text-transform: uppercase; }
.scroll-cue { position: absolute; right: 4.7vw; bottom: 8.5rem; margin: 0; writing-mode: vertical-rl; color: var(--muted); font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; }
.scroll-cue i { margin-bottom: .6rem; transform: rotate(90deg); }

.view-panel { padding: var(--header-h) 1.35rem 1.25rem; }
.panel-shell { height: 100%; border: 1px solid rgba(255,255,255,.17); border-radius: 2rem; background: var(--panel); box-shadow: 0 1.5rem 6rem rgba(0,0,0,.48); backdrop-filter: blur(26px); }
.panel-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; }
.panel-scroll::-webkit-scrollbar { width: .35rem; }
.panel-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 1rem; }
.section-intro { display: grid; grid-template-columns: 1fr 1.45fr; column-gap: 2rem; align-items: end; padding: 5.7rem 4.5vw 3.6rem; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 1.05rem; color: rgba(255,255,255,.54); font-size: .64rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.section-intro .eyebrow { grid-column: 1 / -1; }
.section-intro h2 { font-size: clamp(3.4rem, 5.9vw, 7.2rem); }
.section-intro > p:last-child { max-width: 31rem; margin: 0 0 .25rem auto; color: var(--muted); line-height: 1.65; font-size: .9rem; }

.services-list { counter-reset: service; }
.service-row { counter-increment: service; display: grid; grid-template-columns: 4.2rem 1.15fr 1fr auto; gap: 1.7rem; align-items: start; padding: 2rem 4.5vw; border-bottom: 1px solid var(--line); transition: background .2s; }
.service-row:hover { background: rgba(255,255,255,.035); }
.service-row::before { content: "0" counter(service); color: rgba(255,255,255,.38); font-size: .65rem; letter-spacing: .15em; }
.service-row h3 { margin: -.25rem 0 0; font-family: var(--display); font-size: clamp(1.7rem, 2.4vw, 2.85rem); font-weight: 400; line-height: 1; text-transform: uppercase; letter-spacing: -.04em; }
.service-row > p { max-width: 38rem; margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.6; }
.service-meta { min-width: 13rem; text-align: right; }
.service-meta strong, .service-meta span { display: block; }
.service-meta strong { font-size: .74rem; font-weight: 500; }
.service-meta span { margin-top: .42rem; color: var(--faint); font-size: .59rem; letter-spacing: .1em; text-transform: uppercase; }

.innovation-block { padding-bottom: 4.5rem; }
.section-intro.compact { border: 0; padding-bottom: 2.3rem; }
.section-intro.compact h2 { font-size: clamp(3rem, 5vw, 6rem); }
.validation-console { margin: 0 4.5vw; border: 1px solid var(--line); background: #050505; box-shadow: 0 2rem 5rem rgba(0,0,0,.34); }
.console-topline { display: flex; justify-content: space-between; padding: .85rem 1.05rem; border-bottom: 1px solid var(--line); color: rgba(255,255,255,.53); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .61rem; letter-spacing: .12em; text-transform: uppercase; }
.console-topline i { display: inline-block; width: .39rem; height: .39rem; margin-right: .45rem; border-radius: 50%; background: #fff; box-shadow: 0 0 .7rem #fff; }
.discipline-tabs { display: flex; border-bottom: 1px solid var(--line); }
.discipline-tabs button { padding: .88rem 1.05rem; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--faint); cursor: pointer; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; }
.discipline-tabs button[aria-selected="true"] { background: #fff; color: #000; }
.validation-head { display: flex; justify-content: space-between; gap: 2rem; padding: 1.25rem; border-bottom: 1px solid var(--line); }
.validation-head h3 { margin: 0; font-size: .85rem; font-weight: 500; }
.validation-head span { color: var(--muted); font-size: .68rem; }
.validation-checks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.validation-check { display: flex; align-items: center; gap: .75rem; min-height: 3.35rem; padding: .75rem 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: rgba(255,255,255,.68); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .68rem; line-height: 1.35; }
.validation-check:nth-child(even) { border-right: 0; }
.validation-check i { width: 1rem; color: #fff; text-align: center; }
.validation-check.requires i { color: rgba(255,255,255,.48); }
.validation-summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; color: rgba(255,255,255,.68); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .65rem; }
.validation-summary strong { color: #fff; font-weight: 500; }
.capability-list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 2rem 4.5vw 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability { min-height: 14rem; padding: 1.35rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability .cap-index { color: var(--faint); font-size: .6rem; letter-spacing: .12em; }
.capability h3 { margin: 3.4rem 0 .85rem; font-size: .88rem; font-weight: 500; }
.capability p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }

.portfolio-shell { display: grid; grid-template-rows: auto auto auto 1fr; overflow: hidden; }
.portfolio-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: end; padding: 4.75rem 4.5vw 2rem; border-bottom: 1px solid var(--line); }
.portfolio-head h2 { font-size: clamp(3rem, 5.2vw, 6.4rem); }
.portfolio-totals { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.portfolio-totals span { min-height: 5rem; padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--faint); font-size: .59rem; letter-spacing: .09em; text-transform: uppercase; }
.portfolio-totals b { display: block; margin-bottom: .45rem; color: #fff; font-family: var(--display); font-size: 1.42rem; font-weight: 400; letter-spacing: -.04em; }
.portfolio-tools { display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding: .85rem 4.5vw; border-bottom: 1px solid var(--line); }
.project-filters { display: flex; gap: .38rem; overflow-x: auto; scrollbar-width: none; }
.project-filters::-webkit-scrollbar { display: none; }
.filter-button { flex: 0 0 auto; padding: .57rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: rgba(255,255,255,.58); cursor: pointer; font-size: .61rem; }
.filter-button span { margin-left: .38rem; color: rgba(255,255,255,.34); }
.filter-button.is-active, .filter-button:hover { background: #fff; color: #000; border-color: #fff; }
.filter-button.is-active span, .filter-button:hover span { color: rgba(0,0,0,.52); }
.search-box { flex: 0 0 18rem; display: flex; align-items: center; gap: .65rem; padding: .62rem .8rem; border-bottom: 1px solid rgba(255,255,255,.55); }
.search-box i { color: var(--faint); font-size: .72rem; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: #fff; font-size: .69rem; }
.search-box input::placeholder { color: rgba(255,255,255,.38); }
.project-result-line { display: flex; justify-content: space-between; padding: .7rem 4.5vw; border-bottom: 1px solid var(--line); color: var(--faint); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.project-result-line span:first-child { color: #fff; }
.project-list { min-height: 0; }
.project-row { display: grid; grid-template-columns: 3.4rem minmax(15rem,1.25fr) minmax(12rem,1fr) minmax(7rem,.55fr) 5rem 5.5rem; gap: 1.1rem; align-items: center; padding: .82rem 4.5vw; border-bottom: 1px solid rgba(255,255,255,.11); transition: background .18s; }
.project-row:hover { background: rgba(255,255,255,.04); }
.project-index { color: var(--faint); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .6rem; }
.project-name { font-size: .72rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-location, .project-capacity, .project-year { color: var(--muted); font-size: .65rem; }
.project-location { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-capacity { text-align: right; }
.project-year { text-align: center; }
.project-status { justify-self: end; padding: .34rem .45rem; border: 1px solid var(--line); border-radius: 999px; color: rgba(255,255,255,.55); font-size: .52rem; letter-spacing: .07em; text-transform: uppercase; }
.empty-state { margin: 3rem; color: var(--muted); text-align: center; }

.about-intro { padding-bottom: 3rem; }
.leaders-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); border-bottom: 1px solid var(--line); }
.leader-card { min-width: 0; padding: 1.15rem; border-right: 1px solid var(--line); }
.leader-card:last-child { border-right: 0; }
.leader-photo { position: relative; height: min(33vh, 21rem); overflow: hidden; background: #161616; filter: none; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.leader-photo.fallback { display: grid; place-items: center; }
.leader-photo.fallback span { font-family: var(--display); font-size: 4rem; color: rgba(255,255,255,.55); }
.leader-years { position: absolute; right: .6rem; bottom: .6rem; padding: .45rem .52rem; background: #fff; color: #000; font-size: .53rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.leader-card h3 { margin: 1rem 0 .3rem; font-size: .82rem; font-weight: 500; }
.leader-role { margin: 0 0 .85rem; color: var(--faint); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }
.leader-bio { margin: 0; color: var(--muted); font-size: .66rem; line-height: 1.55; }
.leader-stat { margin: .9rem 0 0; color: #fff; font-size: .61rem; }
.history-clients { display: grid; grid-template-columns: .92fr 1.5fr; min-height: 30rem; }
.history-column, .clients-column { padding: 3.5rem 4.5vw 4.8rem; }
.history-column { border-right: 1px solid var(--line); }
.timeline { margin-top: 1.6rem; }
.timeline-item { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.timeline-item time { font-family: var(--display); font-size: 1.1rem; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .69rem; line-height: 1.5; }
.clients-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 1.6rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.client-cell { min-height: 7.7rem; display: grid; place-items: center; padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.client-cell img { max-width: 100%; max-height: 3rem; object-fit: contain; filter: none; }
.client-cell span { color: rgba(255,255,255,.7); font-size: .65rem; text-align: center; }

.contact-shell { display: grid; grid-template-columns: 1.05fr .95fr; grid-template-rows: 1fr auto; }
.contact-copy { padding: 5.6rem 5vw 3rem; border-right: 1px solid var(--line); }
.contact-copy h2 { max-width: 48rem; font-size: clamp(3.5rem, 5.8vw, 7rem); }
.contact-copy > p:not(.eyebrow) { max-width: 38rem; margin: 1.35rem 0 0; color: var(--muted); line-height: 1.65; font-size: .84rem; }
.contact-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.6rem 2.2rem; margin-top: 3.4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.contact-details span { color: var(--faint); font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; }
.contact-details p { margin: .5rem 0 0; color: rgba(255,255,255,.76); font-size: .7rem; line-height: 1.55; }
.contact-details a:hover { text-decoration: underline; }
.contact-form { align-self: center; width: min(100% - 7vw, 42rem); justify-self: center; padding: 3.5rem 3vw; }
.contact-form label { display: block; margin-bottom: 1.2rem; color: var(--faint); font-size: .57rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: .5rem; padding: .65rem 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.28); border-radius: 0; outline: 0; background: transparent; color: #fff; font-size: .75rem; text-transform: none; letter-spacing: 0; transition: border-color .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: #fff; }
.contact-form select option { color: #000; background: #fff; }
.contact-form textarea { resize: vertical; min-height: 5.8rem; }
.contact-form textarea::placeholder { color: rgba(255,255,255,.28); }
.form-submit { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; padding: 1rem 1.1rem; border: 0; border-radius: 999px; background: #fff; color: #000; cursor: pointer; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.form-note { margin: .8rem 0 0; color: var(--faint); font-size: .58rem; text-align: center; }
.contact-shell footer { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: .9rem 5vw; border-top: 1px solid var(--line); color: var(--faint); font-size: .57rem; letter-spacing: .1em; text-transform: uppercase; }

.mobile-menu { position: absolute; z-index: 20; inset: 0; display: grid; align-content: center; padding: 7rem 1.4rem 2rem; background: rgba(2,2,2,.97); opacity: 0; visibility: hidden; transform: translateY(-1rem); transition: opacity .25s, transform .25s, visibility .25s; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: clamp(2.8rem, 10vw, 5rem); line-height: 1; text-transform: uppercase; }
.mobile-menu nav a span { width: 2rem; color: var(--faint); font-family: var(--sans); font-size: .55rem; letter-spacing: .12em; }
.mobile-menu > p { align-self: end; margin: 2rem 0 0; color: var(--faint); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .site-header { grid-template-columns: 4rem 1fr auto; }
  .brand { width: 4rem; height: 4rem; }
  .proposal-button { justify-self: end; }
  .menu-button { display: grid; }
  .site-header { grid-template-columns: 4rem 1fr auto auto; }
  .section-intro { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 3rem 1fr 1fr; }
  .service-meta { grid-column: 2 / -1; text-align: left; min-width: 0; }
  .capability-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portfolio-head { grid-template-columns: 1fr; }
  .portfolio-totals { max-width: 38rem; }
  .leaders-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .leader-card { border-bottom: 1px solid var(--line); }
  .clients-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  :root { --header-h: 5.25rem; }
  .site-header { inset: .8rem .85rem auto; height: 3.75rem; grid-template-columns: 3.75rem 1fr 3.75rem; gap: .55rem; }
  .brand { width: 3.75rem; height: 3.75rem; }
  .proposal-button { justify-self: end; padding: .78rem .9rem; }
  .proposal-button span { display: none; }
  .menu-button { width: 3.75rem; height: 3.75rem; }
  .view-home { padding: 7.2rem 1rem 1rem; grid-template-rows: 1fr auto; }
  .home-content { margin-top: 0; align-self: center; }
  .trust-pill { max-width: 100%; margin-bottom: 1rem; font-size: .54rem; letter-spacing: .06em; }
  h1 { font-size: clamp(3.1rem, 16.5vw, 5.6rem); line-height: .87; }
  .hero-copy { max-width: 32rem; margin-top: 1.1rem; font-size: .77rem; line-height: 1.5; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: .75rem; margin-top: 1rem; }
  .primary-action { padding: .8rem .92rem; font-size: .65rem; }
  .hero-actions p { display: none; }
  .home-stats { grid-template-columns: repeat(2,1fr); }
  .home-stats div { padding: .65rem .7rem; }
  .home-stats div:nth-child(2) { border-right: 0; }
  .home-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .home-stats strong { font-size: 1.45rem; }
  .home-stats span { font-size: .47rem; }
  .scroll-cue { display: none; }
  .view-panel { padding: var(--header-h) .65rem .65rem; }
  .panel-shell { border-radius: 1.25rem; }
  .section-intro { display: block; padding: 4.4rem 1rem 2rem; }
  .section-intro h2 { font-size: clamp(3rem, 13vw, 4.9rem); }
  .section-intro > p:last-child { margin: 1.25rem 0 0; font-size: .76rem; }
  .service-row { grid-template-columns: 2.1rem 1fr; gap: .75rem; padding: 1.5rem 1rem; }
  .service-row h3 { font-size: 1.75rem; }
  .service-row > p { grid-column: 2; font-size: .71rem; }
  .service-meta { grid-column: 2; }
  .validation-console { margin: 0 1rem; }
  .discipline-tabs button { flex: 1; padding: .72rem .25rem; font-size: .53rem; }
  .validation-head { display: block; }
  .validation-head span { display: block; margin-top: .5rem; }
  .validation-checks { grid-template-columns: 1fr; }
  .validation-check { border-right: 0; font-size: .58rem; }
  .validation-summary { display: block; line-height: 1.5; }
  .validation-summary span { display: block; margin-top: .35rem; }
  .capability-list { grid-template-columns: 1fr; margin: 1.25rem 1rem 0; }
  .capability { min-height: 10rem; }
  .capability h3 { margin-top: 2rem; }
  .portfolio-shell { grid-template-rows: auto auto auto 1fr; }
  .portfolio-head { padding: 4.25rem 1rem 1.3rem; }
  .portfolio-head h2 { font-size: clamp(2.8rem, 12.5vw, 4.5rem); }
  .portfolio-totals span { min-height: 4rem; padding: .7rem; font-size: .46rem; }
  .portfolio-totals b { font-size: 1rem; }
  .portfolio-tools { display: block; padding: .75rem 1rem; }
  .search-box { width: 100%; margin-top: .65rem; }
  .project-result-line { padding: .6rem 1rem; }
  .project-result-line span:last-child { display: none; }
  .project-row { grid-template-columns: 2rem minmax(0,1fr) 5.5rem; gap: .65rem; padding: .75rem 1rem; }
  .project-location, .project-year, .project-status { display: none; }
  .project-capacity { font-size: .58rem; }
  .project-name { font-size: .65rem; }
  .leaders-grid { grid-template-columns: 1fr 1fr; }
  .leader-card { padding: .7rem; }
  .leader-card:nth-child(even) { border-right: 0; }
  .leader-photo { height: 14rem; }
  .leader-card h3 { font-size: .72rem; }
  .leader-bio { font-size: .59rem; }
  .history-clients { grid-template-columns: 1fr; }
  .history-column { border-right: 0; border-bottom: 1px solid var(--line); }
  .history-column, .clients-column { padding: 2.5rem 1rem; }
  .clients-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-shell { grid-template-columns: 1fr; display: block; }
  .contact-copy { padding: 4.5rem 1rem 2rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-copy h2 { font-size: clamp(3rem, 13vw, 4.8rem); }
  .contact-details { gap: 1.2rem; margin-top: 2rem; }
  .contact-form { width: 100%; padding: 2rem 1rem; }
  .contact-shell footer { padding: .9rem 1rem; }
}

@media (max-height: 720px) and (min-width: 761px) {
  .view-home { padding-top: 7.6rem; }
  .home-content { margin-top: 1rem; }
  h1 { font-size: clamp(3.7rem, 7vw, 6.5rem); }
  .hero-copy { margin-top: .85rem; }
  .hero-actions { margin-top: .8rem; }
  .portfolio-head { padding-top: 3.9rem; }
  .contact-copy { padding-top: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .background-video { display: none; }
  .stage { background: #080808 url("assets/background-poster.webp") center/cover no-repeat; }
}

.brand { position: relative; width: 170px; height: 48px; border-radius: 0; background: none; box-shadow: none; overflow: hidden; }
.brand img { position: absolute; width: 332px; height: 332px; max-width: none; left: -81px; top: -142.5px; filter: url(#charcoal-polytek-mark); mix-blend-mode: normal; }
.brand:hover { transform: none; }
.site-header { grid-template-columns: 170px 1fr auto; }
.video-shade { background: linear-gradient(180deg,rgba(9,8,20,.06),rgba(8,4,12,.12) 50%,rgba(0,0,0,.7)),linear-gradient(90deg,rgba(0,0,0,.25),transparent 80%); }
@media(max-width:1080px){.site-header{grid-template-columns:170px 1fr auto auto;}}
@media(max-width:760px){.site-header{grid-template-columns:140px 1fr 3.75rem;}.brand{transform:scale(.8);transform-origin:left center;}.brand:hover{transform:scale(.8);}}

/* Original video palette, with color preserved across portraits and client marks. */
:root { --rose: #dda8bc; --teal: #79c4bd; --amber: #e5bc72; --panel: rgba(9,9,17,.88); }
.view-home { grid-template-rows: minmax(0,1fr) auto auto; padding-top: 8.2rem; padding-bottom: 1rem; gap: .8rem; }
.home-content { margin-top: 0; }
.home-clients { min-width: 0; display: grid; grid-template-columns: 10.5rem minmax(0,1fr); align-items: center; gap: 1rem; }
.home-clients > p { margin: 0; max-width: 10rem; color: rgba(255,255,255,.7); font-size: .55rem; line-height: 1.6; text-transform: uppercase; letter-spacing: .16em; }
.client-marquee { overflow: hidden; border-radius: 0; background: transparent; mask-image: linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); }
.client-track { width: max-content; display: flex; animation: client-roll 70s linear infinite; }
.client-track-group { display: flex; align-items: center; }
.marquee-client { display: grid; place-items: center; width: 128px; height: 55px; padding: 9px 20px; flex-shrink: 0; }
.marquee-client img { display: block; max-width: 100%; max-height: 34px; object-fit: contain; filter: url(#white-client-mark); }
.marquee-client img.transparent-mark { filter: brightness(0) invert(1); }
.marquee-client .mark-frame { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; }
.marquee-client img.light-mark { filter: url(#white-from-light-mark); }
.marquee-client.wide-client { width: 174px; padding-inline: 16px; }
.marquee-client.pepsico-client .mark-frame { position: relative; overflow: visible; }
.marquee-client img.pepsico-mark { position: absolute; width: 160px; max-width: none; max-height: none; height: auto; top: 50%; left: 50%; transform: translate(-50%,-50%); filter: url(#white-from-offwhite-mark); }
.marquee-client span { color: #fff; font-size: .7rem; font-weight: 600; text-align: center; }
.client-marquee:hover .client-track, .client-marquee:focus-within .client-track { animation-play-state: paused; }
@keyframes client-roll { to { transform: translateX(-50%); } }
.scroll-cue { bottom: 13rem; }
.leaders-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.leader-card { padding: 1.6rem; }
.leader-photo { height: min(40vh,26rem); }
.leader-card h3 { font-size: 1rem; }
.leader-bio { max-width: 30rem; font-size: .75rem; line-height: 1.65; }
.client-cell { background: #f5f4f2; }
.client-cell img { max-height: 3.5rem; filter: none; mix-blend-mode: normal; }
.client-cell span { color: #25252e; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }

/* A map first portfolio, with the complete directory alongside it. */
.portfolio-head { grid-template-columns: 1.4fr 1fr; padding: 2.2rem 3vw 1.1rem; }
.portfolio-head h2 { font-size: clamp(2.8rem,3.7vw,4.5rem); }
.portfolio-head .eyebrow { margin-bottom: .65rem; }
.portfolio-totals span { min-height: 4.3rem; padding: .75rem; }
.portfolio-tools { display: grid; grid-template-columns: minmax(0,1fr) 18rem; padding: .8rem 3vw; }
.project-result-line { padding: .65rem 3vw; }
.portfolio-explorer { min-height: 0; display: grid; grid-template-columns: minmax(0,1.75fr) minmax(300px,1fr); }
.map-panel { min-height: 0; position: relative; overflow: hidden; background: #eeeef0; }
#project-map { position: absolute; inset: 0; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; padding: 3rem; background: #eff0f2; color: #55545f; font-size: .8rem; text-align: center; z-index: 2; }
.map-fit { position: absolute; top: 1rem; left: 1rem; z-index: 3; display: flex; align-items: center; gap: .55rem; padding: .67rem .9rem; border: 1px solid #dad6df; border-radius: 999px; background: #fff; color: #272331; font-size: .63rem; cursor: pointer; box-shadow: 0 3px 12px #25203015; }
.map-note { position: absolute; bottom: 1.65rem; left: .7rem; z-index: 1; margin: 0; max-width: calc(100% - 4rem); padding: .4rem .65rem; border-radius: 4px; background: rgba(255,255,255,.9); color: #7c7580; font-size: .52rem; pointer-events: none; }
.project-pin { width: 14px; height: 14px; padding: 0; border: 2px solid #fff; border-radius: 50% 50% 50% 0; background: var(--pin-color); box-shadow: 0 1px 6px #1d1a2a50; cursor: pointer; transition: box-shadow .2s; }
.project-pin:hover, .project-pin:focus { z-index: 10; box-shadow: 0 0 0 5px #c88bac44,0 2px 8px #0005; }
.mapboxgl-popup-content { padding: 1.25rem !important; border-radius: 12px !important; background: #fff !important; color: #242331; box-shadow: 0 8px 35px #26213333 !important; }
.mapboxgl-popup-close-button { padding: .3rem .55rem; color: #666; font-size: 1.2rem; }
.popup-type { color: #ae6485; font-size: .57rem; text-transform: uppercase; letter-spacing: .07em; }
.project-popup h3 { margin: .65rem 0 .45rem; font: 600 .9rem/1.35 var(--sans); }
.project-popup p { margin: 0 0 .8rem; color: #77717d; font-size: .7rem; }
.project-popup div { padding-top: .7rem; border-top: 1px solid #eee; font: .72rem/1.5 var(--sans); }
.project-popup footer { margin-top: .8rem; color: #8d8490; font-size: .6rem; }
.project-popup .location-quality { margin: .9rem 0 .25rem; font-size: .58rem; color: #897182; }
.project-popup .location-name { margin: .25rem 0; font-size: .6rem; }
.map-source-link { display: inline-block; margin-top: .45rem; color: #85526f; font-size: .62rem; text-decoration: underline; }
.location-details { margin-top: .75rem; font-size: .6rem; color: #77717d; }
.location-details summary { cursor: pointer; }
.location-details p { margin: .5rem 0 0; font-size: .6rem; line-height: 1.5; }
.site-projects { max-height: 230px; overflow-y: auto; }
.site-projects button { display: block; width: 100%; padding: .65rem 0; border: 0; border-bottom: 1px solid #eee; background: transparent; color: #302936; font-size: .66rem; line-height: 1.4; text-align: left; cursor: pointer; }
.site-projects button span { display: block; margin-top: .25rem; color: #897182; font-size: .57rem; }
.site-projects button:hover { color: #ae6485; }
.project-directory { min-height: 0; overflow: hidden; position: relative; background: rgba(10,11,20,.72); border-left: 1px solid var(--line); }
.project-list { height: 100%; position: relative; }
.project-row { width: 100%; grid-template-columns: 2rem minmax(0,1fr) auto; gap: .4rem .75rem; padding: 1rem 1.2rem; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); background: transparent; text-align: left; cursor: pointer; font-family: var(--sans); }
.project-row:hover, .project-row.is-selected { background: rgba(221,168,188,.09); }
.project-row.is-selected { box-shadow: inset 3px 0 var(--rose); }
.project-index { grid-row: 1 / 4; align-self: start; padding-top: .12rem; }
.project-name { grid-column: 2 / -1; white-space: normal; line-height: 1.4; font-size: .75rem; }
.project-location { grid-column: 2 / -1; font-size: .62rem; }
.project-capacity { grid-column: 2; text-align: left; font-size: .61rem; line-height: 1.5; color: var(--rose); }
.project-year { grid-column: 3; font-size: .55rem; }
.project-status { display: none; }
.project-directory .empty-state { position: absolute; inset: 3rem 1rem auto; margin: 0; font-size: .75rem; }
.map-mobile-tabs { display: none; }

/* Progressive drawing and live calculations. */
.validation-console { border-radius: 10px; overflow: hidden; background: #0d141d; }
.console-topline { background: #101822; }
.console-topline i { background: var(--teal); box-shadow: 0 0 .7rem #79c4bd66; }
.discipline-tabs button[aria-selected="true"] { background: #dda8bc; color: #201922; }
.cad-toolbar { display: flex; align-items: center; gap: 1rem; justify-content: space-between; padding: .7rem 1rem; background: #121c28; border-bottom: 1px solid #34414e; }
#cad-filename { font: .59rem ui-monospace,Consolas,monospace; color: #90a6b6; }
.cad-parameters { display: flex; gap: 1rem; }
.cad-parameters label { display: flex; align-items: center; gap: .4rem; color: #99a8b5; font: .56rem var(--sans); }
.cad-parameters input { width: 4.4rem; padding: .4rem; border: 1px solid #394451; border-radius: 4px; background: #0a111a; color: #e0ecf4; font: .7rem ui-monospace,Consolas,monospace; }
.cad-actions { display: flex; gap: .45rem; }
.cad-actions button { width: 1.8rem; height: 1.8rem; border: 1px solid #394451; border-radius: 4px; background: transparent; color: #cfdae2; cursor: pointer; font-size: .6rem; }
.cad-workspace { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr); min-height: 390px; }
.cad-drawing { position: relative; min-width: 0; background: #0c141d; border-right: 1px solid #34414e; }
#cad-canvas { width: 100%; min-height: 360px; height: 100%; display: grid; place-items: center; }
#cad-canvas svg { width: 100%; height: auto; max-height: 470px; }
.cad-frame { fill: none; stroke: #465561; stroke-width: .7; }
.cad-frame text { fill: #687e8e; stroke: none; font: 8px ui-monospace,Consolas,monospace; letter-spacing: .5px; }
.cad-stage { fill: none; stroke: #b8d2dd; stroke-width: 1.4; opacity: 0; transition: opacity .3s; }
.cad-stage path, .cad-stage rect, .cad-stage circle { stroke-dasharray: 1600; stroke-dashoffset: 1600; transition: stroke-dashoffset 1.65s ease; }
.cad-stage text { fill: #a9bdca; stroke: none; font: 10px ui-monospace,Consolas,monospace; opacity: 0; transition: opacity .5s .6s; }
.cad-stage.is-drawn { opacity: 1; }
.cad-stage.is-drawn path, .cad-stage.is-drawn rect, .cad-stage.is-drawn circle { stroke-dashoffset: 0; }
.cad-stage.is-drawn text { opacity: 1; }
.cad-stage .cad-bus { stroke: #dda8bc; stroke-width: 2; }
.cad-stage .cad-return { stroke: #79c4bd; }
.cad-stage .cad-route { stroke: #cba875; stroke-dasharray: 6 5; }
.cad-stage .cad-calc { fill: #8fd7c3; }
.cad-stage .cad-warning { fill: #d7b783; font-size: 9px; }
.cad-drawing-footer { display: flex; justify-content: space-between; gap: 1rem; position: absolute; bottom: 0; inset-inline: 0; padding: .55rem 1rem; color: #718c9e; background: #0e1924; font: .53rem ui-monospace,Consolas,monospace; }
#cad-progress { color: #9cc7bc; }
.cad-review { min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr); }
.review-heading { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid #34414e; color: #9badba; font: .57rem ui-monospace,Consolas,monospace; text-transform: uppercase; }
#cad-status { color: #dda8bc; }
#validation-body { position: relative; min-height: 0; max-height: 380px; overflow: auto; scrollbar-width: thin; scrollbar-color: #3d5364 transparent; }
.review-step { display: grid; grid-template-columns: 1rem minmax(0,1fr) .8rem; gap: .65rem; padding: .9rem 1rem; border-bottom: 1px solid #25313e; opacity: .35; transition: opacity .4s,background .4s; }
.review-step.revealed { opacity: 1; }
.review-step.current { background: #162633; box-shadow: inset 2px 0 #8bbbaa; }
.review-step-number { padding-top: .08rem; color: #6e8497; font: .55rem ui-monospace,Consolas,monospace; }
.review-step h4 { margin: 0 0 .45rem; font: 500 .66rem var(--sans); color: #d1dfe8; }
.review-step code { display: block; color: #859bab; font: .58rem/1.55 ui-monospace,Consolas,monospace; }
.review-step p { margin: .4rem 0 0; color: #8bc9b4; font: .59rem/1.5 ui-monospace,Consolas,monospace; }
.review-step i { color: #8bc9b4; font-size: .58rem; padding-top: .1rem; }
.review-step.hold p, .review-step.hold i, .review-step.flag p, .review-step.flag i { color: #e1b877; }
.cad-disclaimer { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 1rem; border-top: 1px solid #34414e; color: #6e8294; font-size: .51rem; line-height: 1.5; }

@media (max-width:1080px) {
  .portfolio-head { grid-template-columns: 1.3fr 1fr; }
  .portfolio-head h2 { font-size: 2.8rem; }
  .portfolio-explorer { grid-template-columns: minmax(0,1.4fr) minmax(270px,1fr); }
  .portfolio-tools { grid-template-columns: minmax(0,1fr) 13rem; }
  .cad-toolbar { flex-wrap: wrap; }
  #cad-filename { flex: 1; }
  .cad-parameters { order: 3; width: 100%; }
  .cad-workspace { grid-template-columns: minmax(0,1.3fr) minmax(250px,1fr); }
}
@media (max-width:760px) {
  .view-home { padding: 5.7rem 1rem .7rem; gap: .6rem; }
  h1 { font-size: clamp(2.8rem,14vw,5rem); }
  .hero-copy { font-size: .72rem; }
  .home-clients { grid-template-columns: 1fr; gap: .35rem; }
  .home-clients > p { max-width: none; font-size: .45rem; letter-spacing: .13em; }
  .marquee-client { width: 106px; height: 42px; padding: 7px 17px; }
  .marquee-client img { max-height: 28px; }
  .home-stats div { padding: .5rem .65rem; }
  .home-stats strong { font-size: 1.3rem; }
  .leaders-grid { grid-template-columns: 1fr; }
  .leader-card { padding: 1rem; border-right: 0; }
  .leader-photo { height: 340px; }
  .leader-photo img { object-fit: contain; background: #1c1d27; }
  .portfolio-shell { grid-template-rows: auto auto auto auto minmax(0,1fr); }
  .portfolio-head { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 1rem .8rem; }
  .portfolio-head h2 { font-size: clamp(2.2rem,9vw,3.2rem); }
  .portfolio-totals { display: none; }
  .portfolio-tools { display: block; padding: .6rem 1rem; }
  .portfolio-tools .search-box { margin-top: .4rem; padding-block: .4rem; }
  .project-result-line { padding: .5rem 1rem; }
  .map-mobile-tabs { display: flex; padding: .5rem 1rem; gap: .5rem; border-bottom: 1px solid var(--line); }
  .map-mobile-tabs button { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; color: #999; background: transparent; font-size: .58rem; cursor: pointer; }
  .map-mobile-tabs button.is-active { color: #16111a; background: #dda8bc; border-color: #dda8bc; }
  .portfolio-explorer { display: block; position: relative; }
  .map-panel, .project-directory { height: 100%; }
  .portfolio-explorer[data-mobile-mode="map"] .project-directory { display: none; }
  .portfolio-explorer[data-mobile-mode="list"] .map-panel { display: none; }
  .project-location, .project-year { display: block; }
  .map-note { font-size: .45rem; }
  .cad-workspace { grid-template-columns: 1fr; }
  .cad-drawing { border-right: 0; border-bottom: 1px solid #34414e; }
  #cad-canvas { min-height: 250px; padding-bottom: 1.2rem; }
  #validation-body { height: 230px; }
  .cad-parameters { flex-wrap: wrap; gap: .6rem; }
  .cad-disclaimer { display: block; }
  .cad-disclaimer span { display: block; }
}
@media (max-height:650px) {
  .view-home { overflow-y: auto; grid-template-rows: auto auto auto; }
  .home-content { padding-block: 1.4rem; }
}
@media (prefers-reduced-motion:reduce) {
  .client-track { animation: none; }
  .client-marquee { overflow-x: auto; }
}

/* Keep narrow and short screens usable, including when the keyboard opens. */
.portfolio-shell { grid-template-columns: minmax(0,1fr); }
.portfolio-shell > *, .portfolio-head > * { min-width: 0; }
.contact-details a, .form-note { overflow-wrap: anywhere; }
.mobile-menu { overflow-y: auto; }
body:has(.mobile-menu.is-open) .brand img { filter: url(#white-client-mark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #dda8bc; outline-offset: 4px; }
@media (max-width:760px) {
  .view-home { overflow-y: auto; grid-template-rows: minmax(min-content,1fr) auto auto; }
  .proposal-button, .primary-action, .filter-button, .map-mobile-tabs button, .discipline-tabs button { min-height: 44px; }
  .contact-form input, .contact-form select, .contact-form textarea, #project-search, .cad-parameters input { font-size: 16px; }
  .contact-form input, .contact-form select, #project-search, .cad-parameters input { min-height: 44px; }
  .cad-actions button { width: 44px; height: 44px; }
  .cad-parameters label { font-size: .65rem; }
  .marquee-client.wide-client { width: 150px; }
  .marquee-client img.pepsico-mark { width: 115px; }
  .contact-shell footer { flex-wrap: wrap; gap: .6rem; }
  .portfolio-shell { overflow-y: auto; }
  .portfolio-explorer { min-height: 250px; }
  .view-home { padding-bottom: max(.7rem,env(safe-area-inset-bottom)); }
}
@media (max-width:360px) {
  .trust-pill { font-size: .47rem; padding-inline: .6rem; }
  .contact-details { grid-template-columns: 1fr; }
  .console-topline { letter-spacing: .04em; font-size: .5rem; }
}
@media (max-height:500px) {
  .mobile-menu { align-content: start; }
  .mobile-menu nav a { font-size: 2rem; }
  .portfolio-shell { overflow-y: auto; grid-template-rows: auto auto auto auto minmax(250px,1fr); }
  .portfolio-explorer { min-height: 250px; }
}

/* Content owns its height. The navigation has a separate, reserved band. */
.view-home {
  inset: calc(var(--header-h) + .75rem) 0 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 4.7vw;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ffffff45 transparent;
}
.view-home > * { flex: 0 0 auto; min-width: 0; }
.view-home .home-content {
  flex: 1 0 auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1.5rem,3.5vh,3rem) 0 clamp(2.5rem,5vh,4rem);
}
#hero-title {
  max-width: none;
  width: 100%;
  font-size: clamp(3rem,5.1vw,6.5rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.hero-line { display: block; white-space: nowrap; }
.view-home .home-content { align-items: center; text-align: center; }
#hero-title { font-size: clamp(2.7rem,4.35vw,5.5rem); }
.home-content .hero-actions { justify-content: center; align-items: center; }
.home-content .hero-copy { max-width: 49rem; margin: 1.5rem 0 0; font-size: clamp(.9rem,1.05vw,1.08rem); line-height: 1.6; }
.home-content .hero-actions { margin: 1.5rem 0 0; }
.home-clients { padding: 1.6rem 0; gap: 2rem; }
.home-clients .marquee-client { width: 160px; height: 72px; padding: 17px 28px; }
.home-clients .marquee-client.wide-client { width: 200px; padding-inline: 18px; }
.home-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding: 1.35rem 0 max(1.35rem,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: .65rem; line-height: 1.6; }
.home-footer a { color: #fff; display: inline-flex; align-items: center; gap: .75rem; }
.home-footer a:hover { color: var(--rose); }

/* One page scrolls the complete directory; its map stays in view beside it. */
#projects { inset: calc(var(--header-h) + .75rem) 0 0; padding: 0 1.35rem 1.25rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ffffff55 transparent; }
.portfolio-shell { display: block; height: auto; min-height: 100%; overflow: visible; }
.portfolio-head { padding: 2rem 3vw 1.7rem; }
.portfolio-head h2 { font-size: clamp(2.2rem,3.2vw,3.8rem); line-height: 1; }
.portfolio-explorer { align-items: start; min-height: 0; }
.map-panel { position: sticky; top: 0; height: calc(100dvh - var(--header-h) - 2rem); min-height: 360px; }
.project-directory { height: auto; min-height: 100%; overflow: visible; }
.project-list { height: auto; overflow: visible; }
.project-row { scroll-margin-block: 1rem; }
.map-panel { scroll-margin-top: 0; }
.practice-history .history-column { padding: 3.5rem 4.5vw 4rem; border-right: 0; }
.practice-history .timeline { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 4rem; }
.practice-history .timeline-item { padding: 1.5rem 0; }

@media (max-width:760px) {
  .view-home { padding-inline: 1.1rem; }
  .view-home .home-content { padding-block: 1.5rem 2.5rem; }
  #hero-title { font-size: clamp(2rem,8.7vw,3.5rem); line-height: 1.08; }
  .hero-line { white-space: normal; }
  .home-content .hero-copy { font-size: .85rem; }
  .home-clients { grid-template-columns: 1fr; padding-block: 1.5rem; gap: .9rem; }
  .home-clients > p { font-size: .55rem; }
  .home-clients .marquee-client { width: 140px; height: 62px; padding: 14px 24px; }
  .home-clients .marquee-client.wide-client { width: 180px; }
  .home-footer { align-items: flex-start; flex-direction: column; gap: .5rem; font-size: .62rem; }
  #projects { padding-inline: .65rem; }
  .portfolio-head { padding: 1.6rem 1rem 1.2rem; }
  .portfolio-head h2 { font-size: clamp(2rem,8.5vw,3rem); }
  .map-panel { position: relative; top: auto; height: max(360px,65dvh); min-height: 360px; }
  .mapboxgl-popup { top: auto !important; bottom: 3.8rem; left: .75rem !important; right: .75rem; max-width: none !important; transform: none !important; }
  .mapboxgl-popup-tip { display: none; }
  .mapboxgl-popup-content { max-height: calc(max(360px,65dvh) - 6.5rem); overflow-y: auto; }
  .project-directory { min-height: 360px; }
  .practice-history .history-column { padding: 2rem 1rem; }
  .practice-history .timeline { grid-template-columns: 1fr; }
}

/* Keep all five navigation links visible at every screen size. */
.leader-photo { height: auto; aspect-ratio: 4 / 3; background: #ded5d3; }
.leader-photo img { object-fit: cover; object-position: center; background: #ded5d3; }
@media (max-width:760px) and (prefers-reduced-motion:reduce) {
  .stage { background-image: url("assets/background-mobile-poster.webp"); }
}
.site-header { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
.site-header .brand { justify-self: start; }
.site-header .proposal-button { justify-self: end; }
.desktop-nav { display: flex; }
.menu-button { display: none; }
@media (max-width:900px) {
  :root { --header-h: 8rem; }
  .site-header { inset: .8rem .85rem auto; height: auto; grid-template-columns: 1fr auto; grid-template-rows: 3rem auto; gap: .65rem 1rem; }
  .site-header .brand { grid-column: 1; grid-row: 1; }
  .site-header .proposal-button { grid-column: 2; grid-row: 1; padding: .8rem 1rem; }
  .site-header .nav-pill { grid-column: 1 / -1; grid-row: 2; width: min(100%,32rem); padding: .25rem; gap: 0; }
  .nav-pill a { flex: 1 1 0; padding: .85rem .2rem; text-align: center; font-size: clamp(.66rem,2.65vw,.76rem); white-space: nowrap; }
}

