/* ============================================================
   Navi Solutions — HI-FI site styles
   Palette pulled from the hero film: deep teal-black water,
   brushed-steel + warm brass, cream chart paper, gold light.
   ============================================================ */

:root {
  /* core palette */
  --abyss:    #0a1d28;   /* deepest water / primary dark */
  --abyss-2:  #06141d;   /* near-black trough */
  --deep:     #0e2735;   /* raised dark panel */
  --sea:      #1c4f5a;   /* mid teal */
  --sea-lit:  #2f7c84;   /* lit teal highlight */
  --brass:    #c79a5b;   /* brass */
  --brass-2:  #e4c187;   /* lit gold (the light source) */
  --brass-deep:#9c7338;
  --cream:    #f3eee3;   /* chart paper */
  --cream-2:  #e9e0cd;
  --paper:    #faf7f0;

  /* semantic */
  --ink:      #112430;          /* text on cream */
  --ink-soft: #46606b;
  --on-dark:  #f1ece1;
  --on-dark-soft: rgba(241,236,225,0.64);
  --line-dark: rgba(228,193,135,0.18);
  --line-cream: rgba(17,36,48,0.12);
  --halo: rgba(228,193,135,0.5);

  --font-display: 'Spectral', Georgia, serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 3px;
}

/* alternate palettes */
html[data-palette="ink"] {
  --abyss: #0c1622; --abyss-2: #060d15; --deep: #111f2c; --sea: #243f55; --sea-lit: #3a6488;
  --brass: #b9905a; --brass-2: #ddb878; --cream: #f1efe9; --cream-2: #e3ddcf; --paper:#f8f6f1;
  --ink:#10202e; --ink-soft:#42566a; --halo: rgba(221,184,120,0.5);
  --line-dark: rgba(221,184,120,0.16);
}
html[data-palette="verdigris"] {
  --abyss: #08231f; --abyss-2: #04150f; --deep: #0c2d27; --sea: #15564a; --sea-lit: #2c8771;
  --brass: #c59a52; --brass-2: #e8c577; --cream: #f1f0e6; --cream-2: #e2dfcc; --paper:#f8f7ee;
  --ink:#0e2620; --ink-soft:#3f5a50; --halo: rgba(232,197,119,0.5);
  --line-dark: rgba(232,197,119,0.16);
}

html[data-font="fraunces"] { --font-display: 'Fraunces', Georgia, serif; }
html[data-font="spectral"] { --font-display: 'Spectral', Georgia, serif; }
html[data-font="cormorant"] { --font-display: 'Cormorant Garamond', Georgia, serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink);
  background: var(--abyss); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--brass); color: #1a1206; }

/* ---------- type ---------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.02; letter-spacing: -0.015em; }
p { margin: 0 0 1em; line-height: 1.62; }
a { color: inherit; }

.display { font-size: clamp(44px, 7vw, 104px); font-weight: 600; line-height: 0.98; letter-spacing: -0.02em; }
.h-sec { font-size: clamp(34px, 5vw, 72px); }
.lead { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.5; }

.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--brass); display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before { content:""; width: 30px; height: 1px; background: currentColor; opacity: 0.7; }
.hero__copy .kicker::before { display: none; }
.clients__head .kicker::before { display: none; }
.kicker.on-cream { color: var(--brass-deep); }

.coord { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; opacity: 0.62; }

/* ---------- layout ---------- */
.wrap { width: min(var(--maxw), 100% - var(--gutter)*2); margin-inline: auto; }
.wrap-wide { width: min(1440px, 100% - var(--gutter)*2); margin-inline: auto; }
section { position: relative; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--brass); --fg: #1c1305;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px;
  background: var(--bg); color: var(--fg); text-decoration: none; border: 1px solid var(--bg);
  border-radius: 999px; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background .35s ease, color .35s ease;
}
.btn span.lbl { position: relative; z-index: 1; }
.btn .arr { position: relative; z-index: 1; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(0,0,0,0.5); }
.btn:hover .arr { transform: translateX(5px); }
.btn--ghost { --bg: transparent; --fg: var(--brass-2); border-color: color-mix(in srgb, var(--brass) 55%, transparent); }
.btn--ghost:hover { --fg: #1c1305; background: var(--brass-2); border-color: var(--brass-2); }
.btn--ink { --bg: var(--ink); --fg: var(--cream); border-color: var(--ink); }
.btn--on-cream-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-cream); }
.btn--on-cream-ghost:hover { --bg: var(--ink); --fg: var(--cream); border-color: var(--ink); }

/* link with animated underline */
.ulink { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: var(--brass-2); display: inline-flex; align-items: center; gap: 10px; position: relative; }
.ulink::after { content:""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.ulink:hover::after { transform: scaleX(1); }
.ulink .arr { transition: transform .35s ease; }
.ulink:hover .arr { transform: translateX(4px); }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter); transition: padding .4s ease, background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: color-mix(in srgb, var(--abyss) 82%, transparent); backdrop-filter: blur(14px) saturate(1.1); border-bottom-color: var(--line-dark); padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: var(--on-dark); }
.brand__logo { height: 64px; width: auto; display: block; transition: height .4s ease; }
.nav.scrolled .brand__logo { height: 52px; }
.brand__logo--foot { height: 64px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1; }
.brand__name small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.6; font-weight: 400; margin-top: 3px; }
.nav__menu { display: flex; align-items: center; gap: 34px; }
.nav__menu a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-soft); text-decoration: none; transition: color .25s; position: relative; }
.nav__menu a::after { content:""; position:absolute; left:0; bottom:-6px; width:100%; height:1px; background: var(--brass-2); transform: scaleX(0); transform-origin:left; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.nav__menu a:hover { color: var(--on-dark); }
.nav__menu a:hover::after { transform: scaleX(1); }
.nav__menu-cta { display: none; }
.nav__right { display: flex; align-items: center; gap: 20px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav__burger span { width: 26px; height: 2px; background: var(--on-dark); display: block; transition: transform .3s, opacity .3s; }

/* =========================================================================
   HERO — full-bleed film
   ========================================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--abyss-2); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content:""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--abyss-2) 0%, color-mix(in srgb,var(--abyss-2) 70%, transparent) 34%, transparent 60%),
    linear-gradient(0deg, var(--abyss-2) 2%, transparent 30%),
    radial-gradient(120% 80% at 12% 50%, color-mix(in srgb,var(--abyss-2) 55%, transparent), transparent 60%);
}
.hero__inner { position: relative; z-index: 2; width: min(var(--maxw), 100% - var(--gutter)*2); margin-inline: auto; padding-top: 80px; }
.hero__copy { max-width: 660px; }
.hero h1 { color: #fff; font-size: clamp(34px, 3.9vw, 58px); line-height: 1.04; max-width: 12ch; }
.hero h1 em { font-style: italic; color: var(--brass-2); }
.hero__lead { color: var(--on-dark); opacity: 0.84; max-width: 40ch; margin-top: 26px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.hero__meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--on-dark-soft); }
.hero__meta .coord { color: var(--on-dark-soft); }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-soft); }
.scroll-cue .rail { width: 1px; height: 34px; background: linear-gradient(var(--brass-2), transparent); position: relative; overflow: hidden; }
.scroll-cue .rail::after { content:""; position: absolute; top: -34px; left: 0; width: 100%; height: 34px; background: var(--brass-2); animation: railDrop 2.4s cubic-bezier(.7,0,.3,1) infinite; }
@keyframes railDrop { 0% { top: -34px; } 60%,100% { top: 34px; } }

/* hero entrance */
.hero [data-rise] { opacity: 0; transform: translateY(26px); }
.hero.lit [data-rise] { opacity: 1; transform: none; transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); }
.hero.lit [data-rise="1"] { transition-delay: .1s; }
.hero.lit [data-rise="2"] { transition-delay: .24s; }
.hero.lit [data-rise="3"] { transition-delay: .38s; }
.hero.lit [data-rise="4"] { transition-delay: .52s; }

/* =========================================================================
   MARQUEE strip (trusted by / capability ticker)
   ========================================================================= */
.strip { background: var(--abyss-2); border-block: 1px solid var(--line-dark); overflow: hidden; padding: 34px 0; }
.strip__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item { font-family: var(--font-mono); font-size: 20px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-soft); display: inline-flex; align-items: center; gap: 72px; margin-right: 72px; white-space: nowrap; }
.strip__item::after { content: "✦"; color: var(--brass); font-size: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================================
   MISSION
   ========================================================================= */
.mission { background: #03101c; color: var(--on-dark); padding: clamp(100px,14vh,180px) 0; position: relative; overflow: hidden; isolation: isolate; }
.mission__rope { position: absolute; top: 14px; right: clamp(14px, 5vw, 96px); width: clamp(104px, 10vw, 150px); z-index: 2; transform: rotate(5deg); transform-origin: top center; filter: drop-shadow(0 22px 28px rgba(0,0,0,0.5)); pointer-events: none; }
.mission__rope img { display: block; width: 100%; height: auto; }
.mission__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 40px; justify-items: center; text-align: center; }
.mission__grid > *, .mission__body, .mission__aside, .mission__head, .mission__foot, .mission__note, .mission__stats { min-width: 0; max-width: 100%; }
.mission__body { display: flex; flex-direction: column; gap: 26px; }
.mission__aside { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; }
.mission__head { display: flex; align-items: center; gap: 22px; margin-bottom: 20px; width: 100%; }
.mission__rule { flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--brass) 55%, transparent), color-mix(in srgb, var(--brass) 6%, transparent)); }
.mission__kicker { font-size: 28px; letter-spacing: 0.3em; justify-content: flex-start; flex: none; }
.mission__compass { position: relative; margin: 0; width: clamp(280px, 48vw, 620px); max-width: 100%; aspect-ratio: 1; overflow: hidden; }
.mission__compass img { width: 100%; height: 100%; object-fit: contain; filter: saturate(1.03); transform: scale(1.18); transform-origin: 50% 54%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, rgba(0,0,0,0.55) 68%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 50%, #000 52%, rgba(0,0,0,0.55) 68%, transparent 80%); }
.mission__lead { margin-inline: auto; }
.mission__note .sep { color: var(--brass); margin: 0 6px; }
.mission__lead { font-family: var(--font-display); font-size: clamp(22px, 2.25vw, 31px); line-height: 1.5; letter-spacing: -0.005em; color: #fff; max-width: 32rem; font-weight: 450; text-wrap: pretty; margin: 0; }
.mission__lead .muted, .mission__lead .gold { color: #fff; font-style: normal; }
.mission__foot { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: clamp(34px, 4.5vh, 48px); }
.mission__foot::before { display: none; }
.mission__note { margin: 0; text-align: center; font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.22em; line-height: 1.4; text-transform: uppercase; color: var(--brass); }
.mission__stats { display: flex; gap: 48px; }
.stat .n { font-family: var(--font-display); font-size: clamp(34px,3.4vw,52px); color: var(--brass-2); line-height: 1; }
.stat .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-soft); margin-top: 8px; }

/* =========================================================================
   VALUES
   ========================================================================= */
.values {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--on-dark);
  padding: clamp(92px,13vh,156px) 0;
  background:
    radial-gradient(120% 72% at 50% -8%, color-mix(in srgb, var(--brass) 12%, transparent), transparent 56%),
    linear-gradient(180deg, #20313a 0%, #1a2a31 52%, #1d2f38 100%);
}
/* faint chart-grid texture, faded toward the edges */
.values::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 66px 66px; background-position: center top;
  -webkit-mask-image: radial-gradient(125% 95% at 50% 0%, #000 35%, transparent 72%);
          mask-image: radial-gradient(125% 95% at 50% 0%, #000 35%, transparent 72%);
  opacity: .55;
}
.values .wrap { position: relative; z-index: 1; }

.values__head {
  display: grid; grid-template-columns: 1fr; gap: 20px; justify-items: start;
  max-width: 70ch; margin: 0 0 clamp(48px,6.5vh,80px); text-align: left;
}
.values__head .kicker { justify-content: flex-start; color: var(--brass-2); }
.values__head h2 { color: #fff; max-width: 20ch; line-height: 1.08; text-wrap: balance; }
.values__head h2 em { font-style: italic; color: var(--brass-2); }
.values__head p { color: var(--on-dark-soft); max-width: 54ch; }

.vgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.vcard {
  grid-column: span 4; position: relative; overflow: hidden;
  padding: 34px 32px 30px;
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: linear-gradient(180deg, #0c2230 0%, #07151e 100%);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .5s ease, box-shadow .5s ease;
}
/* brass light-source glow that wakes on hover */
.vcard::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: radial-gradient(95% 75% at 50% -10%, color-mix(in srgb, var(--brass) 20%, transparent), transparent 62%);
  opacity: 0; transition: opacity .5s ease;
}
/* compass tick, top-right */
.vcard::after {
  content:"\2726"; position:absolute; top:24px; right:28px; z-index:2;
  color: var(--brass); font-size: 13px; opacity: .32;
  transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.vcard:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brass) 52%, var(--line-dark));
  box-shadow: 0 32px 64px -34px rgba(0,0,0,0.75);
}
.vcard:hover::before { opacity: 1; }
.vcard:hover::after { opacity: .92; transform: rotate(90deg); }
.vcard > * { position: relative; z-index: 1; }
.vcard__no { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.18em; color: var(--brass-2); transition: color .4s; }
.vcard h3 { font-size: 24px; color: #fff; margin: 18px 0 10px; line-height: 1.14; }
.vcard p { font-size: 15px; color: var(--on-dark-soft); margin: 0; line-height: 1.55; }
.vcard__rule { height: 1px; background: linear-gradient(90deg, var(--brass), transparent); margin: 24px 0 0; transform: scaleX(0); transform-origin: left; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.vcard:hover .vcard__rule { transform: scaleX(1); }

/* =========================================================================
   SERVICES — expanding rows
   ========================================================================= */
.services { background: var(--abyss); color: var(--on-dark); padding: clamp(100px,14vh,170px) 0; overflow: hidden; }
.services__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.services__head .lead { color: var(--brass-2); font-family: var(--font-display); font-style: italic; max-width: 16ch; text-align: right; }
.svc-rows { border-top: 1px solid var(--line-dark); }
.svc-row { border-bottom: 1px solid var(--line-dark); position: relative; cursor: pointer; outline: none; }
.svc-row::before { content:""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, color-mix(in srgb,var(--sea) 40%, transparent), transparent 72%); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.svc-row.is-active::before { transform: scaleX(1); }
.svc-row__head { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: clamp(18px,2.4vw,44px); padding: clamp(24px,2.8vw,40px) 14px; transition: padding-left .5s cubic-bezier(.2,.8,.2,1); }
.svc-row.is-active .svc-row__head { padding-left: 26px; }
.svc-row__no { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.14em; color: var(--on-dark-soft); align-self: start; padding-top: 0.5em; transition: color .4s; }
.svc-row.is-active .svc-row__no { color: var(--brass-2); }
.svc-row__title { font-size: clamp(28px,4vw,58px); line-height: 1; color: rgba(255,255,255,0.5); transition: color .4s; }
.svc-row.is-active .svc-row__title { color: #fff; }
.svc-rows:hover .svc-row:not(.is-active) .svc-row__title { color: rgba(255,255,255,0.3); }
.svc-row__hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-soft); opacity: 0.32; text-align: right; align-self: center; white-space: nowrap; transition: opacity .4s, color .4s; }
.svc-row.is-active .svc-row__hint { opacity: 0.9; color: var(--brass-2); }
.svc-row__plus { position: relative; width: 40px; height: 40px; flex: none; align-self: center; border: 1px solid var(--line-dark); border-radius: 50%; transition: border-color .4s, background .4s, transform .5s cubic-bezier(.2,.8,.2,1); }
.svc-row.is-active .svc-row__plus { border-color: var(--brass-2); background: color-mix(in srgb,var(--brass) 14%, transparent); transform: rotate(180deg); }
.svc-row__plus::before, .svc-row__plus::after { content:""; position: absolute; background: var(--brass-2); transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.svc-row__plus::before { top: 50%; left: 50%; width: 14px; height: 2px; transform: translate(-50%,-50%); }
.svc-row__plus::after { left: 50%; top: 50%; height: 14px; width: 2px; transform: translate(-50%,-50%); }
.svc-row.is-active .svc-row__plus::after { transform: translate(-50%,-50%) scaleY(0); opacity: 0; }
.svc-row__panel { position: relative; z-index: 1; display: grid; grid-template-rows: 0fr; opacity: 0; padding: 0 14px 0 calc(26px + 2.6ch); transition: grid-template-rows .55s cubic-bezier(.2,.8,.2,1), opacity .45s, padding .5s; }
.svc-row.is-active .svc-row__panel { grid-template-rows: 1fr; opacity: 1; padding-bottom: clamp(24px,2.8vw,40px); }
.svc-row__items { overflow: hidden; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.svc-row__items li { display: flex; align-items: center; gap: 13px; font-size: clamp(15px,1.2vw,19px); color: var(--on-dark); transform: translateY(12px); opacity: 0; transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.svc-row.is-active .svc-row__items li { transform: none; opacity: 1; }
.svc-row.is-active .svc-row__items li:nth-child(2){ transition-delay:.06s; }
.svc-row.is-active .svc-row__items li:nth-child(3){ transition-delay:.12s; }
.svc-row.is-active .svc-row__items li:nth-child(4){ transition-delay:.18s; }
.svc-row__items li::before { content:""; width: 9px; height: 9px; flex: none; background: var(--brass); transform: rotate(45deg); }
.svc-row:focus-visible { box-shadow: inset 3px 0 0 var(--brass-2); }

/* =========================================================================
   CLIENTS
   ========================================================================= */
.clients { background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 46%, transparent 80%); color: var(--ink); padding: clamp(26px,4vh,46px) 0 clamp(40px,6vh,80px); position: relative; z-index: 2; }
.clients__head { text-align: center; margin-bottom: clamp(56px,8vh,92px); }
.clients__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(36px,8vw,104px); }
.client { background: none; position: relative; text-decoration: none; color: inherit; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 10px; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); transition: opacity .35s ease; }
.client:hover { z-index: 5; }
.client__logo--wide { height: 52px; }
.client__logo { height: 60px; width: auto; max-width: 100%; object-fit: contain; border-radius: 12px; display: block; transition: transform .4s cubic-bezier(.2,.8,.2,1); transform-origin: center; will-change: transform; }
.client:hover .client__logo { transform: scale(3); }
.client__mark { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; color: #6e6e6e; transition: color .35s ease; }
.client:hover .client__mark { color: #4a4a4a; }
.client .dot { width: 18px; height: 18px; border: 1.5px solid var(--brass); border-radius: 50%; position: relative; flex: none; }
.client .dot::after { content:""; position:absolute; inset: 5px; background: var(--brass); border-radius: 50%; }
.client.is-empty { color: #8a8a8a; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; opacity: 0.7; }
.rope-sep { background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 36%, #0a1d28 84%, #0a1d28 100%); line-height: 0; overflow: hidden; position: relative; z-index: 1; margin-top: clamp(-210px,-18vh,-150px); }
.rope-sep img { display: block; width: 100%; height: auto;
  /* long, eased ombre: the tan ground melts gradually into the cream
     above and below, with the rope held fully opaque in the middle */
  -webkit-mask-image: linear-gradient(180deg,
      transparent 0%, rgba(0,0,0,0.18) 14%, rgba(0,0,0,0.6) 26%, #000 37%,
      #000 70%, rgba(0,0,0,0.5) 84%, rgba(0,0,0,0.14) 95%, transparent 100%);
          mask-image: linear-gradient(180deg,
      transparent 0%, rgba(0,0,0,0.18) 14%, rgba(0,0,0,0.6) 26%, #000 37%,
      #000 70%, rgba(0,0,0,0.5) 84%, rgba(0,0,0,0.14) 95%, transparent 100%); }

/* =========================================================================
   VOYAGE
   ========================================================================= */
/* =========================================================================
   FOUNDERS
   ========================================================================= */
.founders { background: linear-gradient(180deg, transparent 0%, transparent 6%, #0a1d28 38%, var(--abyss) 66%, var(--abyss-2) 100%); color: var(--on-dark); padding: clamp(56px,8vh,104px) 0 clamp(100px,14vh,180px); position: relative; z-index: 2; margin-top: clamp(-185px,-15vh,-128px); }
.founders__head { max-width: none; margin-bottom: 56px; }
.founders__head .kicker { display: flex; width: 100%; color: var(--brass-2); }
.founders__head .kicker::after { content:""; flex: 1 1 auto; height: 1px; align-self: center; background: linear-gradient(90deg, currentColor, color-mix(in srgb, currentColor 8%, transparent)); opacity: 0.75; }
.founders__head h2 { white-space: nowrap; color: #fff; }
.founders__head p { color: var(--on-dark-soft); margin-top: 18px; max-width: 92ch; text-wrap: pretty; }
.founders__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.founder { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.founder__photo { position: relative; aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--deep), var(--abyss)); border: 1px solid var(--line-dark); display: flex; align-items: flex-end; justify-content: flex-start; }
.founder__photo::before { content:""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(228,193,135,0.06) 0 12px, transparent 12px 24px); }
.founder__photo .tag { position: relative; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-soft); padding: 12px 14px; }
.founder__photo--filled img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.founder__photo--filled::before { display: none; }
.founder__body { display: flex; flex-direction: column; justify-content: flex-start; aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; }
.founder__bio { flex: 1 1 auto; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg,#000 80%, transparent 100%); mask-image: linear-gradient(180deg,#000 80%, transparent 100%); }
.founder__bio p:last-child { margin-bottom: 0; }
.founder h3 { font-size: clamp(26px,2.4vw,34px); color: #fff; }
.founder .role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-2); margin: 8px 0 16px; }
.founder p { color: var(--on-dark-soft); font-size: 15.5px; margin: 0 0 18px; }
.founder__links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; flex: none; }
.ulink--btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; }

/* full-bio modal */
.bio { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(16px,4vw,48px);
  visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s linear .35s; }
.bio[aria-hidden="false"] { visibility: visible; opacity: 1; transition: opacity .35s ease; }
.bio__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--abyss-2) 78%, transparent); backdrop-filter: blur(6px); }
.bio__panel { position: relative; width: min(860px, 100%); max-height: min(86vh, 760px); overflow: hidden;
  display: grid; grid-template-columns: 0.78fr 1fr; background: var(--deep); border: 1px solid var(--line-dark);
  border-radius: var(--radius); box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  transform: translateY(18px) scale(0.985); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s ease; }
.bio[aria-hidden="false"] .bio__panel { transform: none; opacity: 1; }
.bio__media { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--sea), var(--abyss)); }
.bio__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.bio__media::after { content:""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, color-mix(in srgb, var(--deep) 80%, transparent)); }
.bio__content { padding: clamp(30px,4vw,52px); min-height: 0; max-height: min(86vh, 760px); overflow-y: auto; color: var(--on-dark); }
.bio__role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.bio__name { font-family: var(--font-display); font-size: clamp(30px,3.2vw,42px); margin: 12px 0 22px; line-height: 1.05; }
.bio__copy p { color: var(--on-dark-soft); font-size: 15.5px; line-height: 1.72; margin: 0 0 16px; }
.bio__copy p:first-child { color: var(--on-dark); font-family: var(--font-display); font-style: italic; font-size: clamp(18px,1.8vw,22px); line-height: 1.45; }
.bio__copy p:last-child { margin-bottom: 0; }
.bio__close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-dark); background: color-mix(in srgb, var(--abyss-2) 60%, transparent); cursor: pointer;
  display: grid; place-items: center; transition: background .25s, border-color .25s, transform .25s; }
.bio__close:hover { background: var(--brass-2); border-color: var(--brass-2); transform: rotate(90deg); }
.bio__close span { position: absolute; width: 16px; height: 1.5px; background: var(--on-dark); transition: background .25s; }
.bio__close span:first-child { transform: rotate(45deg); }
.bio__close span:last-child { transform: rotate(-45deg); }
.bio__close:hover span { background: #1c1305; }
body.bio-open { overflow: hidden; }
@media (max-width: 720px) {
  .bio__panel { grid-template-columns: 1fr; max-height: 90vh; }
  .bio__media { height: 200px; }
  .bio__content { max-height: calc(90vh - 200px); }
  .bio__media::after { background: linear-gradient(0deg, color-mix(in srgb, var(--deep) 85%, transparent), transparent 55%); }
}

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.tst { background: var(--abyss); color: var(--on-dark); padding: clamp(100px,14vh,180px) 0; }
.tst__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 54px; }
.tst h2 { color: #fff; }
.tst__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.tst__grid:not(:has(.tcard:nth-child(2))) { grid-template-columns: minmax(0, 760px); justify-content: center; }
.tst__grid:not(:has(.tcard:nth-child(2))) .tcard { text-align: center; align-items: center; padding: 44px clamp(34px,5vw,64px); }
.tst__grid:not(:has(.tcard:nth-child(2))) .tcard blockquote { font-size: clamp(19px,1.6vw,23px); }
.tcard { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; background: color-mix(in srgb,var(--deep) 50%, transparent); transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s; }
.tcard:hover { transform: translateY(-5px); border-color: color-mix(in srgb,var(--brass) 45%, var(--line-dark)); }
.tcard .stars { color: var(--brass-2); letter-spacing: 3px; font-size: 13px; margin-bottom: 18px; }
.tcard blockquote { margin: 0 0 26px; font-family: var(--font-display); font-size: clamp(17px,1.4vw,20px); line-height: 1.5; color: #fff; }
.tcard__who { margin-top: auto; display: flex; align-items: center; gap: 13px; }
.tcard__av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(150deg, var(--sea-lit), var(--deep)); border: 1px solid var(--line-dark); flex: none; }
.tcard__n { font-size: 14px; color: #fff; }
.tcard__m { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--on-dark-soft); }

/* =========================================================================
   CTA + END (sunset)
   ========================================================================= */
.end { position: relative; min-height: 82svh; display: flex; align-items: center; overflow: hidden; color: var(--on-dark); }
.end__video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(1.7) saturate(1.32) contrast(1.08); }
.end__sky { position: absolute; inset: 0; z-index: 0; background:
  linear-gradient(180deg,#0c1f2c 0%,#112934 12%,#1c3c43 24%,#33585b 36%,#5c6f63 47%,#8a7b5e 55%,#b5875a 62%,#d49a57 69%,#ecb168 76%,#f6c87f 84%,#f1c178 100%); }
.end__sun { position: absolute; left: 70%; top: 54%; transform: translate(-50%,-50%); width: 150px; height: 150px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle, #fff4d4 0%, #ffdc93 44%, #f6bd6c 66%, rgba(246,189,108,0) 72%); box-shadow: 0 0 140px 40px rgba(255,213,135,0.5); animation: sun 10s ease-in-out infinite; }
@keyframes sun { 0%,100% { top: 54%; } 50% { top: 52%; } }
.end__water { position: absolute; inset: auto 0 0 0; height: 30%; z-index: 2; background: linear-gradient(180deg,#dcab68 0%,#a9845f 18%,#5e6f68 50%,#284450 80%,#13303e 100%); }
.end__shimmer { position: absolute; left: 70%; transform: translateX(-50%); bottom: 0; width: 200px; height: 30%; z-index: 3;
  background: linear-gradient(180deg, rgba(255,221,150,0.5), rgba(255,221,150,0.02)); clip-path: polygon(40% 0,60% 0,100% 100%,0 100%); filter: blur(2px); opacity: 0.7; }
.end__island { position: absolute; left: -1%; bottom: 30%; z-index: 3; width: clamp(200px,26vw,360px); }
.end__island path { fill: #122029; }
.end__halyard { position: absolute; right: 16%; bottom: 24%; z-index: 4; width: clamp(150px,16vw,220px); }
.end__halyard .sil, .end__halyard .mast { fill: #0c181f; }
.end__halyard .rope { stroke: #0c181f; stroke-width: 1.4; fill: none; }
.end__copy { position: relative; z-index: 6; width: min(var(--maxw), 100% - var(--gutter)*2); margin-inline: auto; padding-bottom: clamp(80px,12vh,140px); }
.end__copy-inner { max-width: 62ch; }
.end h2 { color: #fff; }
.end h2 em { font-style: italic; color: #ffdc93; }
.end p { color: rgba(255,255,255,0.92); margin: 22px 0 0; }
.end .kicker::before { display: none; }
.end__lead { max-width: 44ch; }
.end__scrim { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(95deg, rgba(4,15,23,0.74) 0%, rgba(4,15,23,0.42) 34%, rgba(4,15,23,0.05) 62%, transparent 100%),
  linear-gradient(180deg, rgba(4,15,23,0.4) 0%, transparent 24%, transparent 64%, rgba(4,15,23,0.5) 100%); }
.end__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

/* contact form — expands from the "Contact us" button */
.contact { margin-top: 0; max-width: 580px; display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .6s cubic-bezier(.2,.8,.2,1), opacity .45s ease, margin-top .5s cubic-bezier(.2,.8,.2,1); }
.contact.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 26px; }
.contact__inner { overflow: hidden; min-height: 0; }
.contact__card { background: color-mix(in srgb, var(--abyss-2) 60%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(22px,2.4vw,32px); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-2); }
.field input, .field textarea { font-family: var(--font-body); font-size: 15px; color: #fff; background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-dark); border-radius: 2px; padding: 12px 14px; transition: border-color .3s, background .3s; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.34); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass-2); background: rgba(255,255,255,0.09); }
.field textarea { resize: vertical; min-height: 96px; }
.contact__submit { margin-top: 20px; }
.contact__thanks { padding: 6px 2px; color: #fff; font-family: var(--font-display); font-size: clamp(20px,2vw,27px); line-height: 1.3; }
.contact__thanks span { color: var(--brass-2); font-style: italic; }
.contact__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.contact__error { margin-top: 14px; font-size: 14px; line-height: 1.5; color: #e8b4a0; }
.contact__error a { color: var(--brass-2); }
.contact__submit:disabled { opacity: 0.6; cursor: default; }

/* Calendly popup — Navi navy + gold branding */
.calendly-overlay { background-color: color-mix(in srgb, var(--abyss-2) 82%, rgba(0,0,0,0.6)) !important; }
.calendly-overlay .calendly-popup {
  border: 3px solid var(--brass);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 6px var(--abyss), 0 40px 90px -30px rgba(0,0,0,0.8);
}
.calendly-popup-close {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}
@media (max-width: 560px) { .contact__grid { grid-template-columns: 1fr; } }

/* =========================================================================
   FOOTER
   ========================================================================= */
.foot { background: var(--abyss-2); color: var(--on-dark-soft); padding: clamp(60px,8vh,90px) 0 40px; }
.foot__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); align-items: start; }
.foot__brand .brand { color: var(--on-dark); margin-bottom: 22px; }
.foot__brand p { max-width: 50ch; line-height: 1.62; color: var(--on-dark-soft); text-wrap: balance; }
.foot__addr { margin-top: 22px; font-style: normal; font-family: var(--font-mono); font-size: 12px; line-height: 1.9; letter-spacing: 0.04em; color: var(--on-dark-soft); }
.foot__col .foot__addr { margin-top: 0; }
.foot__col { padding-top: 12px; }
.foot__col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); font-weight: 400; margin-bottom: 16px; }
.foot__col a { display: block; text-decoration: none; color: var(--on-dark-soft); padding: 8px 0; transition: color .25s; }
.foot__col a:hover { color: var(--brass-2); }
.foot__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--on-dark-soft); }

/* =========================================================================
   REVEAL
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .09s; } .reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .27s; } .reveal.d4 { transition-delay: .36s; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (min-width: 901px) {
  .mission__grid { grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); justify-items: stretch; align-items: center; text-align: left; }
  .mission__aside { justify-self: center; }
  .mission__lead { margin-inline: 0; }
  .mission__foot { align-items: flex-start; }
  .mission__note { text-align: left; }
}
@media (max-width: 900px) {
  .nav__menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 4px; padding: 0 var(--gutter);
    background: color-mix(in srgb, var(--abyss) 97%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(1.1); backdrop-filter: blur(20px) saturate(1.1);
    transform: translateX(100%); opacity: 0; visibility: hidden;
    transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s ease, visibility 0s linear .5s;
  }
  body.menu-open .nav__menu {
    transform: none; opacity: 1; visibility: visible;
    transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
  }
  .nav__menu a { font-size: clamp(26px,7vw,34px); padding: 12px 0; color: var(--on-dark); font-family: var(--font-display); letter-spacing: 0; }
  .nav__menu a::after { display: none; }
  .nav__menu-cta { display: inline-flex !important; margin-top: 30px; }
  .brand, .nav__burger { position: relative; z-index: 2; }
  body.menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
  body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }
  .nav__burger { display: flex; }
  .nav__right .btn:not(.nav__menu-cta) { display: none; }
  .hero__copy { max-width: 100%; }
  .hero h1 { font-size: clamp(40px,9vw,64px); }
  .vcard { grid-column: span 6; }
  .clients__row { grid-template-columns: repeat(2,1fr); }
  .founders__grid { grid-template-columns: 1fr; }
  .tst__grid { grid-template-columns: 1fr; }
  .services__head .lead { text-align: left; }
  .svc-row__hint { display: none; }
  .svc-row__head { grid-template-columns: auto 1fr auto; gap: 16px; }
  .svc-row__items { flex-direction: column; gap: 14px; }
  .svc-row__panel { padding-left: calc(12px + 2.4ch); }
  .mission__stats { gap: 32px; }
  .foot__top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 1080px) {
  .values__head h2 { white-space: normal !important; font-size: clamp(34px,6vw,50px) !important; }
}
@media (max-width: 560px) {
  .vcard { grid-column: span 12; }
  .clients__row { grid-template-columns: 1fr; }
  .founders__head h2 { white-space: normal; }
  .founder { grid-template-columns: 1fr; }
  .founder__body { aspect-ratio: auto; overflow: visible; }
  .founder__bio { -webkit-mask-image: none; mask-image: none; }
  .founder__links { margin-top: 16px; }
  .founder__photo { aspect-ratio: 16/10; }
  .mission__rope { width: 92px; right: 8px; opacity: 0.9; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .mission__stats { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .strip__track, .scroll-cue .rail::after, .end__sun { animation: none !important; }
  .reveal { transition-duration: .001s; }
  html { scroll-behavior: auto; }
  .hero.lit [data-rise] { transition-duration: .001s; }
}
