/* ============================================================
   NEXA INFRASTRUCTURE — quiet monumental
   ink / white / bone, gold as a hairline accent
   ============================================================ */
:root {
  --ink: #0C0F13;
  --ink-2: #14181E;
  --white: #FFFFFF;
  --bone: #F4F3F0;
  --grey: #6B7076;
  --line: rgba(12, 15, 19, 0.14);
  --line-w: rgba(255, 255, 255, 0.18);
  --gold: #C8A24B;
  --navy: #101E38;
  --rose: #CE8B8B;
  --sage: #9DBBA4;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", -apple-system, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1320px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

/* ---------- type ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.38em;
  text-transform: uppercase; color: var(--grey);
  display: inline-flex; align-items: center; gap: 16px; margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.on-ink .eyebrow { color: rgba(255,255,255,0.55); }
.h-giant { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.05; }
.h-big   { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.12; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--grey); max-width: 620px; }
.on-ink .lede { color: rgba(255,255,255,0.66); }
em.gold { font-style: italic; color: var(--gold); }

/* ---------- links ---------- */
.tlink {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.tlink .arr { transition: transform 0.4s var(--ease); }
.tlink:hover { border-color: var(--gold); color: var(--gold); }
.tlink:hover .arr { transform: translateX(6px); }
.on-ink .tlink { color: var(--white); border-color: var(--line-w); }
.on-ink .tlink:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px;
}
.brand { font-family: var(--serif); font-size: 26px; color: var(--white); transition: color 0.4s; }
.brand .dot { color: var(--gold); }
.brand .sub {
  display: block; font-family: var(--sans); font-size: 8.5px; font-weight: 600;
  letter-spacing: 0.42em; text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-top: 2px; transition: color 0.4s;
}
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.82); padding: 6px 0; position: relative; transition: color 0.35s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width 0.4s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--white); }
.nav-links .portal {
  border: 1px solid rgba(255,255,255,0.35); padding: 10px 22px; transition: all 0.4s var(--ease);
}
.nav-links .portal:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.nav-links .portal::after { display: none; }

.nav.solid { background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav.solid .brand { color: var(--ink); }
.nav.solid .brand .sub { color: var(--grey); }
.nav.solid .nav-links a { color: var(--ink); }
.nav.solid .nav-links .portal { border-color: var(--ink); }
.nav.solid .nav-links .portal:hover { color: var(--ink); }

.burger { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 26px; position: relative; z-index: 110; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--white); transition: all 0.35s var(--ease); }
.burger span:nth-child(1) { top: 4px; } .burger span:nth-child(2) { top: 12px; } .burger span:nth-child(3) { top: 20px; }
.nav.solid .burger span { background: var(--ink); }
.nav.open .burger span { background: var(--white); }
.nav.open .burger span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; background: var(--ink);
    flex-direction: column; justify-content: center; gap: 30px;
    opacity: 0; pointer-events: none; transition: opacity 0.45s var(--ease);
  }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  body:has(.nav.open) { overflow: hidden; }
  .nav-links a { font-size: 17px; color: var(--white) !important; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; background: var(--ink);
}
.hero-media { position: absolute; inset: -14% 0 0 0; }
.gsap-own, .gsap-parallax { transition: none !important; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media img.kb { animation: kenburns 16s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,15,19,0.82) 0%, rgba(12,15,19,0.25) 45%, rgba(12,15,19,0.35) 100%);
}
.hero-inner { position: relative; width: 100%; padding-top: 140px; padding-bottom: clamp(64px, 9vh, 120px); }
.hero-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.82em; text-transform: uppercase;
  color: rgba(255,255,255,0.72); margin-bottom: 30px;
  display: inline-flex; align-items: center; gap: 16px;
}
.hero-eyebrow::before { content: ""; width: 48px; height: 1px; background: var(--gold); }
.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.4rem); line-height: 1.06; max-width: 16ch;
}
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(0.55em); filter: blur(6px); }
.hero.loaded h1 .w { animation: wordup 1.1s var(--ease) forwards; }
@keyframes wordup { to { opacity: 1; transform: translateY(0); filter: blur(0); } }
.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  margin-top: 48px; flex-wrap: wrap;
}
.hero-sub { font-size: 15px; color: rgba(255,255,255,0.72); max-width: 460px; line-height: 1.8; }
.hero-cta { display: flex; gap: 36px; align-items: center; }
.scroll-cue {
  position: absolute; right: clamp(20px, 4vw, 56px); bottom: 40px;
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px;
}
.scroll-cue::after { content: ""; width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* page hero (interior pages) */
.page-hero { background: var(--bone); padding: 190px 0 90px; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: 1.03; }
.page-hero .lede { margin-top: 28px; }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 8vw, 110px) 0; }
.sec.tight { padding: clamp(70px, 9vw, 120px) 0; }
.bone { background: var(--bone); }
.ink-band { background: var(--navy); color: var(--white); }

/* stats */
.stats { border-top: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: clamp(36px, 4.5vw, 60px) 40px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--serif); font-size: clamp(3.4rem, 6vw, 5.6rem); line-height: 1; }
.stat .num sup { font-size: 0.45em; color: var(--gold); }
.stat .lbl { margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey); }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid var(--line); } }

/* split (statement + image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.split .copy h2 { margin-bottom: 30px; }
.split .copy p { color: var(--grey); max-width: 54ch; margin-bottom: 20px; }
.split .copy .tlink { margin-top: 22px; }
.on-ink .split .copy p { color: rgba(255,255,255,0.66); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* media reveal */
.media { overflow: hidden; position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.6s var(--ease); }
.media.tall { aspect-ratio: 4 / 5; }
.media.wide { aspect-ratio: 16 / 10; }
.rv.in .media img, .media.in img { transform: scale(1); }

/* statement band */
.statement { text-align: left; }
.statement h2 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1.08; max-width: 20ch; }
.statement .lede { margin-top: 34px; }
.statement .tlink { margin-top: 44px; }

/* ---------- capabilities accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 70px 1fr 40px; align-items: center; gap: 24px;
  padding: 34px 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  color: var(--ink); transition: color 0.35s;
}
.acc-head .idx { font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; color: var(--grey); }
.acc-head .plus { position: relative; width: 18px; height: 18px; justify-self: end; }
.acc-head .plus::before, .acc-head .plus::after {
  content: ""; position: absolute; background: var(--gold); transition: transform 0.45s var(--ease);
}
.acc-head .plus::before { left: 0; top: 8px; width: 18px; height: 2px; }
.acc-head .plus::after { left: 8px; top: 0; width: 2px; height: 18px; }
.acc-item.open .acc-head .plus::after { transform: rotate(90deg); }
.acc-head:hover { color: var(--gold); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease); }
.acc-body-inner {
  display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 0 0 44px;
}
.acc-body p { color: var(--grey); max-width: 62ch; margin-bottom: 18px; }
@media (max-width: 700px) {
  .acc-head { grid-template-columns: 1fr 30px; }
  .acc-head .idx { display: none; }
  .acc-body-inner { grid-template-columns: 1fr; }
}

/* ---------- full-bleed feature ---------- */
.feature {
  position: relative; min-height: 84vh; display: flex; align-items: center;
  color: var(--white); overflow: hidden; background: var(--ink);
}
.feature .bg { position: absolute; inset: -10% 0; }
.feature .bg img { width: 100%; height: 100%; object-fit: cover; }
.feature .scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12,15,19,0.78) 20%, rgba(12,15,19,0.28) 70%); }
.feature .wrap { position: relative; }
.feature h2 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); max-width: 14ch; line-height: 1.08; margin-bottom: 26px; }
.feature p { color: rgba(255,255,255,0.72); max-width: 520px; margin-bottom: 34px; }

/* ---------- portal ---------- */
.portal-shot { box-shadow: 0 40px 90px -30px rgba(12,15,19,0.35); }
.mini-list li {
  display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line);
  font-size: 15.5px; color: var(--ink);
}
.mini-list li::before { content: "—"; color: var(--gold); flex: 0 0 auto; }
.mini-list li:last-child { border-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: clamp(64px, 8vw, 100px) 0; }
.cta-band h2 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); line-height: 1.1; margin-bottom: 36px; }
.cta-band .row { display: flex; gap: 44px; justify-content: center; flex-wrap: wrap; }

/* ---------- services page rows ---------- */
.svc-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 6vw, 100px);
  align-items: center; padding: clamp(70px, 9vw, 120px) 0; border-top: 1px solid var(--line);
}
.svc-row:first-of-type { border-top: 0; }
.svc-row.flip .media { order: 2; }
.svc-row .idx { font-size: 12px; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 18px; }
.svc-row h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 20px; line-height: 1.15; }
.svc-row p { color: var(--grey); margin-bottom: 26px; max-width: 56ch; }
.svc-row .plain li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; gap: 14px; }
.svc-row .plain li::before { content: "—"; color: var(--gold); }
.svc-row .plain li:last-child { border-bottom: 0; }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; } .svc-row.flip .media { order: 0; } }

/* ---------- process page ---------- */
.ph { display: grid; grid-template-columns: minmax(120px, 260px) 1fr; gap: clamp(30px, 5vw, 90px); padding: clamp(64px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.ph:first-of-type { border-top: 0; }
.ph .ghost {
  font-family: var(--serif); font-size: clamp(4.4rem, 10vw, 9rem); line-height: 0.9;
  color: transparent; -webkit-text-stroke: 1px rgba(12,15,19,0.22);
}
.ph.in .ghost { color: transparent; -webkit-text-stroke: 1px var(--gold); transition: -webkit-text-stroke 0.8s; }
.ph h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); margin-bottom: 18px; }
.ph p { color: var(--grey); max-width: 62ch; margin-bottom: 16px; }
.ph .portal-note { font-style: italic; color: var(--gold); font-size: 15px; }
@media (max-width: 700px) { .ph { grid-template-columns: 1fr; } }

/* ---------- projects ---------- */
.pf { display: flex; gap: 34px; flex-wrap: wrap; margin-bottom: clamp(44px, 6vw, 70px); }
.pf-btn {
  background: none; border: 0; cursor: pointer; padding: 8px 0;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--grey); position: relative; transition: color 0.35s;
}
.pf-btn::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold); transition: width 0.4s var(--ease); }
.pf-btn.active, .pf-btn:hover { color: var(--ink); }
.pf-btn.active::after { width: 100%; }

.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); }
.proj { position: relative; }
.proj.wide { grid-column: 1 / -1; }
.proj .media { aspect-ratio: 4 / 3; }
.proj.wide .media { aspect-ratio: 21 / 9; }
.proj:hover .media img { transform: scale(1.05); }
.proj .meta { padding: 24px 0 0; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.proj h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.proj .boro { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.proj .scope { margin-top: 10px; font-size: 14px; color: var(--grey); }
.media.noimg { background: var(--navy); display: flex; align-items: center; justify-content: center; }
.media.noimg span {
  font-family: var(--serif); font-size: clamp(3.6rem, 7vw, 6.4rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.26);
  transition: -webkit-text-stroke 0.6s var(--ease);
}
.proj:hover .media.noimg span { -webkit-text-stroke: 1px var(--gold); }
.proj.hide { display: none; }
@media (max-width: 760px) { .proj-grid { grid-template-columns: 1fr; } .proj.wide .media { aspect-ratio: 4 / 3; } }

/* ---------- leadership ---------- */
.lead-row { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; padding: clamp(70px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.lead-row:first-of-type { border-top: 0; }
.portrait {
  aspect-ratio: 4 / 5; background: var(--bone); border: 1px dashed rgba(12,15,19,0.25);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); padding: 20px;
}
.lead-row h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.lead-row .role { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin: 14px 0 28px; }
.lead-row p { color: var(--grey); max-width: 62ch; margin-bottom: 18px; }
@media (max-width: 820px) { .lead-row { grid-template-columns: 1fr; } .portrait { max-width: 420px; } }

.quote-band { text-align: center; }
.quote-band blockquote { font-family: var(--serif); font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1.25; max-width: 26ch; margin: 0 auto; }
.quote-band cite { display: block; margin-top: 34px; font-style: normal; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.55); }

/* ---------- footer ---------- */
footer { background: var(--navy); color: var(--white); padding: clamp(56px, 6vw, 80px) 0 50px; border-top: 1px solid rgba(255,255,255,0.14); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(40px, 6vw, 90px); padding-bottom: 70px; border-bottom: 1px solid var(--line-w); }
.foot-brand .brand { font-size: 32px; display: block; }
footer .soc a { display: inline-flex; align-items: center; gap: 9px; }
footer .soc svg { color: var(--gold); flex: none; }
.foot-brand p { margin-top: 18px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.45); line-height: 2; }
footer h5 { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; font-weight: 600; }
footer ul li { margin-bottom: 14px; }
footer ul a, footer ul li { font-size: 14.5px; color: rgba(255,255,255,0.72); }
footer ul a { transition: color 0.3s; }
footer ul a:hover { color: var(--gold); }
.foot-base { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 40px; font-size: 12.5px; color: rgba(255,255,255,0.4); }
.foot-badges { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.foot-badges a { display: inline-flex; align-items: center; opacity: 0.88; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.foot-badges a:hover { opacity: 1; transform: translateY(-2px); }
.foot-badges img { display: block; height: 38px; width: 178px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- reveal system ---------- */
.rv { opacity: 0; transform: translateY(44px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.12s; } .rv.d2 { transition-delay: 0.24s; } .rv.d3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-media img.kb { animation: none; }
  .hero h1 .w { opacity: 1; transform: none; filter: none; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- capability chapters ---------- */
.cap {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; background: var(--ink);
}
.cap .bg { position: absolute; inset: 0; }
.cap .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 2s var(--ease); }
.cap.in .bg img { transform: scale(1); }
.cap .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,15,19,0.9) 8%, rgba(12,15,19,0.42) 55%, rgba(12,15,19,0.3) 100%); }
.cap .wrap { position: relative; width: 100%; padding-top: 120px; padding-bottom: clamp(56px, 8vh, 100px); }
.cap .ghost-idx {
  position: absolute; top: clamp(90px, 14vh, 150px); right: clamp(20px, 4vw, 56px);
  font-family: var(--serif); font-size: clamp(5rem, 13vw, 11rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.22);
}
.cap-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; display: inline-flex; align-items: center; gap: 14px; }
.cap-tag::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.cap h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.06; max-width: 16ch; margin-bottom: 22px; }
.cap p { color: rgba(255,255,255,0.74); max-width: 560px; margin-bottom: 30px; }
.cap .plain { display: flex; flex-wrap: wrap; gap: 0 44px; max-width: 860px; }
.cap .plain li {
  padding: 13px 0; font-size: 14.5px; color: rgba(255,255,255,0.85);
  display: flex; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.16); flex: 1 1 240px;
}
.cap .plain li::before { content: "—"; color: var(--gold); }

/* ---------- logo ---------- */
.brand { display: flex; align-items: center; position: relative; z-index: 109; }
.brand img { height: 70px; width: auto; display: block; }
.brand .logo-color { display: none; }
.nav.solid .logo-white { display: none; }
.nav.solid .logo-color { display: block; }
.nav.open .logo-white { display: block !important; }
.nav.open .logo-color { display: none !important; }
@media (max-width: 600px) { .brand img { height: 54px; } }

.view { display: none; }
.view.active { display: block; }
/* ---------- fragmentation diagram ---------- */
.frag-card { background: var(--navy); border-radius: 14px; padding: clamp(22px, 3vw, 38px); color: var(--white); }
.frag-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.frag-field { position: relative; height: 320px; }
.frag-field .chip, .vs-chip {
  font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 12px 16px; border-radius: 8px; border: 1px solid; white-space: nowrap;
}
.frag-field .chip { position: absolute; }
.vs-chip { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
.chip.rose, .vs-chip.rose { color: var(--rose); border-color: rgba(206,139,139,0.5); background: rgba(206,139,139,0.08); }
.chip.gold, .vs-chip.gold { color: var(--gold); border-color: rgba(200,162,75,0.5); background: rgba(200,162,75,0.08); }
.chip.sage, .vs-chip.sage { color: var(--sage); border-color: rgba(157,187,164,0.5); background: rgba(157,187,164,0.08); }
.frag-field .ln { position: absolute; border-top: 1px dashed rgba(255,255,255,0.16); }
.frag-bar {
  margin-top: 6px; border: 1px solid var(--gold); border-radius: 10px; color: var(--gold); text-align: center;
  padding: 16px 10px; font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
}
@media (max-width: 480px) { .frag-field { height: 280px; } .frag-field .chip { padding: 10px 12px; font-size: 9.5px; } }

/* ---------- pricing cards ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.price-card { background: var(--white); color: var(--ink); border-radius: 14px; padding: 30px 26px 26px; display: flex; flex-direction: column; }
.price-card h3 { font-family: var(--sans); font-weight: 700; font-size: 1.08rem; line-height: 1.3; margin-bottom: 10px; }
.price-card .pc-sub { color: var(--grey); font-size: 13.5px; line-height: 1.6; margin-bottom: 22px; }
.price-card ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.price-card li { position: relative; padding-left: 25px; font-size: 13px; line-height: 1.55; color: #3A4049; }
.price-card li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #6F9578; font-weight: 700; }
.pc-btn {
  margin-top: auto; text-align: center; padding: 14px 10px; border-radius: 8px; background: var(--bone); color: var(--ink);
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.pc-btn:hover { background: var(--gold); color: var(--ink); }
@media (max-width: 1100px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- vaultsync ---------- */
.vs-hero { background: var(--navy); }
.vs-hero h1, .vs-hero .lede { color: var(--white); }
.vs-hero .lede { color: rgba(255,255,255,0.72); max-width: 640px; }
.vs-hero .eyebrow { color: var(--gold); }
.vs-types { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ---------- premium motion pass ---------- */
#loader {
  position: fixed; inset: 0; z-index: 500; background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#loader.done { opacity: 0; visibility: hidden; }
#loader .l-mark { font-family: var(--serif); font-size: 42px; color: var(--white); }
#loader .l-mark span { color: var(--gold); }
#loader .l-bar { width: 170px; height: 1px; background: rgba(255,255,255,0.18); overflow: hidden; }
#loader .l-bar i { display: block; height: 100%; width: 0; background: var(--gold); animation: lbar 1s var(--ease) forwards; }
@keyframes lbar { to { width: 100%; } }

.view.active main { animation: viewin 0.7s var(--ease); }
@keyframes viewin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.eyebrow::before, .hero-eyebrow::before { width: 0; transition: width 1s var(--ease) 0.15s; }
.eyebrow.in::before, .hero-eyebrow.in::before, .hero.loaded .hero-eyebrow::before { width: 40px; }
.hero.loaded .hero-eyebrow::before { width: 48px; }

.frag-field .chip { animation: chipdrift 5.5s ease-in-out infinite alternate; }
.frag-field .chip:nth-child(odd) { animation-duration: 6.5s; animation-delay: -2s; }
.frag-field .chip:nth-child(3n) { animation-duration: 7.5s; animation-delay: -4s; }
@keyframes chipdrift { from { transform: translate(0, -4px) rotate(-0.6deg); } to { transform: translate(0, 5px) rotate(0.6deg); } }
.frag-bar { transform: scaleX(0); transform-origin: center; transition: transform 0.9s var(--ease); }
.frag-card.order .chip { animation: none; transform: none; transition: transform 0.8s var(--ease); }
.frag-card.order .frag-bar { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  #loader { display: none; }
  .view.active main { animation: none; }
  .eyebrow::before, .hero-eyebrow::before { width: 40px; transition: none; }
  .frag-field .chip { animation: none; }
  .frag-bar { transform: none; }
}

/* ---------- project map ---------- */
#proj-map { height: clamp(400px, 56vh, 580px); border-radius: 14px; overflow: hidden; background: var(--navy); }
#proj-map .leaflet-popup-content-wrapper { background: var(--navy); color: var(--white); border-radius: 12px; box-shadow: 0 24px 60px rgba(6,10,20,0.5); }
#proj-map .leaflet-popup-tip { background: var(--navy); }
#proj-map .leaflet-popup-content { margin: 18px 20px; font-family: var(--sans); }
.pop-t { font-family: var(--serif); font-size: 17px; margin-bottom: 4px; }
.pop-b { font-size: 10px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.pop-s { font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,0.72); }
.gold-pin { display: block; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px rgba(200,162,75,0.9); position: relative; }
.gold-pin::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(200,162,75,0.65); animation: pinpulse 2.2s var(--ease) infinite; }
@keyframes pinpulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.map-note { margin-top: 16px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }

/* ---------- portal browser frame ---------- */
.browser { position: relative; width: min(100%, 560px); background: #0B1526; border-radius: 14px; box-shadow: 0 42px 90px rgba(6,10,20,0.38); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.browser-bar .bd { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.browser-bar .burl { margin-left: 10px; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.05em; color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.06); padding: 6px 14px; border-radius: 6px; }
.browser video { width: 100%; display: block; border-radius: 0 0 14px 14px; }
.float-card {
  position: absolute; z-index: 5; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.07em;
  color: var(--white); background: rgba(16,30,56,0.78); border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 13px 17px; border-radius: 10px; box-shadow: 0 18px 44px rgba(6,10,20,0.4); white-space: nowrap;
  animation: floaty 6s ease-in-out infinite alternate;
}
.fc1 { top: 18%; left: -76px; }
.fc2 { bottom: 14%; right: -76px; animation-delay: -3s; }
@keyframes floaty { from { transform: translateY(-6px); } to { transform: translateY(9px); } }
@media (max-width: 1100px) { .fc1 { left: 10px; } .fc2 { right: 10px; } }
@media (prefers-reduced-motion: reduce) { .float-card, .gold-pin::after { animation: none; } }

/* ---------- agency marquee ---------- */
.mq-caption { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey); padding: 44px 20px 0; }
.marquee { overflow: hidden; padding: 30px 0 44px; border-bottom: 1px solid var(--line); }
.mq-track { display: flex; align-items: center; gap: 60px; width: max-content; animation: mq 32s linear infinite; }
.mq-track span { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: #494F58; white-space: nowrap; }
.mq-track i { color: var(--gold); font-style: normal; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }


/* ---- perf hints ---- */
.hero-media img.kb, .gsap-parallax { will-change: transform; }
.proj:hover .media img { will-change: transform; }
/* ---- contact form ---- */
.cform { max-width: 720px; }
.cform .fld { margin-bottom: 26px; }
.cform label { display:block; font-size:11px; font-weight:600; letter-spacing:0.28em; text-transform:uppercase; color:var(--grey); margin-bottom:10px; }
.cform input, .cform textarea { width:100%; background:transparent; border:0; border-bottom:1px solid rgba(11,31,58,0.25); padding:12px 2px; font-family:var(--sans); font-size:16px; color:var(--ink); transition:border-color .35s; border-radius:0; }
.cform input:focus, .cform textarea:focus { outline:none; border-bottom-color:var(--gold); }
.cform textarea { min-height:130px; resize:vertical; }
.cform .two { display:grid; grid-template-columns:1fr 1fr; gap:32px; }
@media (max-width:640px){ .cform .two { grid-template-columns:1fr; } }
.cform .send { margin-top:8px; display:inline-flex; align-items:center; gap:12px; background:var(--navy); color:#fff; border:0; padding:18px 34px; font-size:12px; font-weight:600; letter-spacing:0.26em; text-transform:uppercase; cursor:pointer; transition:background .35s; }
.cform .send:hover { background:var(--gold); color:var(--ink); }
.cform .send[disabled] { opacity:.5; cursor:default; }
.cform-msg { margin-top:20px; font-size:14px; letter-spacing:0.06em; display:none; }
.cform-msg.ok { display:block; color:#1d7a3e; }
.cform-msg.err { display:block; color:#a33; }
