/* CompactCopters — site styles
   Sections: tokens · base · grid · type · nav · shell · hero and wind tunnel · clients ·
   services · spotlight (navy) · team · history · contact · footer · motion · responsive */

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

/* ---- tokens ---- */
:root {
  --bg: oklch(98.6% 0.004 85);
  --bg-warm: oklch(97.2% 0.006 85);
  --line: oklch(89% 0.006 85);
  --hair: oklch(89% 0.006 85 / .5);
  --muted: oklch(56% 0.018 250);
  --body: oklch(33% 0.045 255);
  --ink: #132959;          /* brand navy */
  --navy: #132959;
  --accent: #4180BE;       /* brand blue: display type, rules, marks */
  --accent-text: #2C68A6;  /* darker brand blue for small text and links */
  --pad: clamp(22px, 5vw, 84px);
  --maxw: 1320px;
  --sans: 'Arial', 'HelveticaNeue-Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---- base ---- */
html { scroll-behavior: smooth; scroll-padding-top: 62px; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; }
::selection { background: rgba(65, 128, 190, .18); }
:focus-visible { outline: 1.5px solid var(--accent-text); outline-offset: 3px; }

/* ---- hairline column grid ---- */
.gridlines { position: fixed; inset: 0; display: flex; justify-content: center; pointer-events: none; z-index: 0; }
.grid-inner { width: 100%; max-width: var(--maxw); padding: 0 var(--pad); display: grid; grid-template-columns: repeat(6, 1fr); }
.grid-inner i { border-right: 1px solid var(--hair); }
.grid-inner i:first-child { border-left: 1px solid var(--hair); }
main, footer, nav { position: relative; z-index: 1; }

/* ---- type primitives ---- */
.mono { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; font-variant-numeric: tabular-nums; }
.display { color: var(--ink); font-weight: 600; letter-spacing: -.038em; line-height: 1.02; text-wrap: balance; }
.display em { font-style: normal; font-weight: 600; color: var(--accent); }
h2.display { font-size: clamp(34px, 4.4vw, 62px); }
p { text-wrap: pretty; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.62; color: var(--body); font-weight: 300; max-width: 58ch; }
h2.display + .lede { margin-top: clamp(20px, 2.6vw, 32px); }
.sub { font-size: 15px; line-height: 1.7; color: var(--muted); font-weight: 300; max-width: 62ch; }

/* ---- nav ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad); height: 72px;
  background: oklch(98.6% 0.004 85 / .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, height .3s;
}
nav.stuck { border-bottom-color: var(--line); height: 62px; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 12.5px; letter-spacing: .02em; padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--accent); }
.nav-cta { font-size: 12.5px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; transition: color .2s; }
.nav-cta:hover { color: var(--accent-text); }

/* ---- shared shell ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(88px, 11vw, 168px) 0; }
.bleed-rule { border: none; border-top: 1px solid var(--line); width: 100%; }
/* asymmetric section head: sticky index left, content right */
.sec { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); }
.sec-index { position: sticky; top: 110px; align-self: start; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.sec-index .n { color: var(--accent-text); }

/* ---- hero ---- */
#hero { padding: clamp(150px, 17vw, 230px) 0 clamp(56px, 7vw, 92px); }
.hero-tagline { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); margin-bottom: clamp(30px, 4.4vw, 58px); font-size: clamp(20px, 2.15vw, 31px); font-weight: 300; letter-spacing: -.018em; line-height: 1.2; color: var(--ink); }
.hero-tagline em { font-style: normal; font-weight: 500; color: var(--accent-text); }
.tagline-rule { flex: none; width: clamp(34px, 4vw, 60px); height: 1px; background: var(--accent); transform-origin: left center; }
.js .hero-tagline .tagline-rule { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1) .35s; }
.js .hero-tagline.in .tagline-rule { transform: none; }
.hero-headline { font-size: clamp(52px, 11.2vw, 158px); line-height: .94; letter-spacing: -.045em; color: var(--ink); font-weight: 600; max-width: 16ch; }
.hero-headline em { font-style: normal; font-weight: 600; color: var(--accent); }
/* wind tunnel: digits flowing round a wing section, drawn by js/wind-tunnel.js.
   Without JavaScript a static technical drawing shows in its place. */
#hero { position: relative; overflow: hidden; }
#hero .wrap { position: relative; z-index: 1; }
#tunnel { position: absolute; top: 0; left: 0; width: 100%; height: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 1.4s ease;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 110px, #000 calc(100% - 50px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 110px, #000 calc(100% - 50px), transparent 100%); }
#tunnel.on { opacity: 1; }
.tunnel-band { margin-top: clamp(34px, 4vw, 60px); }
.tunnel-hint, .tunnel-read { display: none; }
.tunnel-fallback img { display: block; width: 100%; height: auto; opacity: .85; }
.js .tunnel-fallback { display: none; }
.js .tunnel-band { position: relative; height: clamp(250px, 27vw, 400px); }
.js .tunnel-hint { display: block; position: absolute; top: 0; right: 0; color: var(--accent-text); background: var(--bg); padding: 4px 0 4px 10px; }
.js .tunnel-read { display: flex; gap: 28px; position: absolute; right: 0; bottom: 0; background: var(--bg); border: 1px solid var(--line); padding: 14px 18px; }
.tunnel-read dt { color: var(--muted); font-size: 10px; margin-bottom: 8px; }
.tunnel-read dd { font: 500 26px/1 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: -.02em; color: var(--ink); text-transform: none; min-width: 4.2ch; }
@media (hover: none) { .js .tunnel-hint { display: none; } }
.hero-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(30px, 4vw, 56px); padding-top: 34px; border-top: 1px solid var(--line); }
.hero-index { color: var(--muted); }
.hero-row-r { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.hero-sub { font-size: 17px; color: var(--body); max-width: 46ch; line-height: 1.62; font-weight: 300; }
.hero-actions { display: flex; gap: 28px; align-items: center; }
.link-cta { font-size: 14px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 3px; display: inline-flex; gap: 10px; align-items: center; transition: gap .25s, color .2s; }
.link-cta .arw { color: var(--accent); transition: transform .25s; }
.link-cta:hover { color: var(--accent-text); }
.link-cta:hover .arw { transform: translateX(3px); }
.link-quiet { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.link-quiet:hover { color: var(--ink); border-bottom-color: var(--muted); }

/* ---- clients strip ---- */
#clients { padding: clamp(60px, 7vw, 96px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-warm); }
.cred-grid { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.cred-label { color: var(--muted); }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 30px clamp(36px, 5vw, 68px); }
.logo-cell a { display: block; opacity: .92; transition: opacity .25s, transform .4s cubic-bezier(.16, 1, .3, 1); }
.logo-cell a:hover { opacity: 1; transform: translateY(-2px); }
.logo-cell img { display: block; width: auto; object-fit: contain; }
/* white-on-transparent logos sit on a navy chip */
.logo-cell.on-navy a { background: var(--navy); padding: 12px 16px; }

/* ---- services: three borderless columns ---- */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(48px, 6vw, 86px); }
.adv-col { padding-top: 18px; border-top: 1px solid var(--ink); }
.adv-num { color: var(--accent-text); display: block; margin-bottom: clamp(28px, 4vw, 54px); }
.adv-col h3 { font-size: clamp(25px, 2.5vw, 32px); font-weight: 600; letter-spacing: -.032em; color: var(--ink); margin-bottom: 16px; line-height: 1.1; }
.adv-col p { font-size: 14.5px; color: var(--body); line-height: 1.68; font-weight: 300; margin-bottom: 26px; }
.adv-col p.adv-quote { color: var(--ink); font-weight: 500; margin: 26px 0 0; }
.tick { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tick li { font-size: 13.5px; color: var(--muted); padding-left: 18px; position: relative; line-height: 1.5; }
.tick li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--accent); opacity: .7; }

/* ---- two ruled columns ---- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); margin-top: clamp(48px, 6vw, 86px); }
.col-head { padding-top: 16px; border-top: 2px solid var(--ink); }
.col-tag { margin-bottom: 26px; }
.col-h { font-size: clamp(20px, 1.9vw, 25px); font-weight: 600; line-height: 1.24; color: var(--ink); letter-spacing: -.022em; max-width: 24ch; }

/* ---- project spotlight: the one navy section ---- */
#spotlight { background: var(--navy); color: rgba(255, 255, 255, .72); border-top: 1px solid var(--navy); position: relative; overflow: hidden; }
#spotlight::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 80% at 15% 0%, rgba(65, 128, 190, .34), transparent 62%); }
#spotlight .wrap { position: relative; z-index: 1; }
#spotlight .sec-index { color: rgba(255, 255, 255, .55); }
#spotlight .sec-index .n { color: rgba(255, 255, 255, .88); }
#spotlight .display { color: #fff; }
#spotlight .display em { color: #9CC6EE; }
#spotlight .lede { color: rgba(255, 255, 255, .74); }
#spotlight .lede a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .4); }
#spotlight .lede a:hover { border-bottom-color: #fff; }
#spotlight .col-head { border-top-color: rgba(255, 255, 255, .55); }
#spotlight .video-head { margin-top: 22px; }
#spotlight .col-tag { color: #9CC6EE; display: flex; justify-content: space-between; gap: 16px; }
#spotlight .col-tag span:last-child { color: rgba(255, 255, 255, .6); }
#spotlight .col-h { color: #fff; margin-top: 22px; }
#spotlight :focus-visible { outline-color: #9CC6EE; }
.video { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #060e1e; }
.video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .86; transition: opacity .5s ease, transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.video:hover img { opacity: 1; transform: scale(1.02); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; left: 20px; bottom: 18px; display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.video-play i { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; display: grid; place-items: center; background: rgba(6, 14, 30, .35); transition: background .25s, border-color .25s; }
.video-play i::before { content: ''; margin-left: 3px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }
.video:hover .video-play i { background: var(--accent); border-color: var(--accent); }

/* ---- background: ruled rows of logos ---- */
.bg-rows { margin-top: clamp(48px, 6vw, 86px); border-top: 1px solid var(--ink); }
.bg-row { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 3.2fr); gap: clamp(24px, 4vw, 60px); align-items: center; padding: clamp(30px, 3.6vw, 46px) 0; border-bottom: 1px solid var(--line); }
.bg-row-label { color: var(--accent-text); }

/* ---- history ---- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(48px, 6vw, 86px); padding-top: clamp(12px, 1.6vw, 24px); border-top: 1px solid var(--ink); }
.gallery figure { aspect-ratio: 3/2; overflow: hidden; background: var(--bg-warm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.03); transition: filter .6s ease, transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.gallery figure:hover img { filter: grayscale(.1) contrast(1); transform: scale(1.02); }
.sector-note { margin-top: clamp(40px, 5vw, 64px); font-size: 15px; font-weight: 300; line-height: 1.75; color: var(--muted); max-width: 70ch; }
.sector-note span { color: var(--ink); font-weight: 500; }

/* ---- contact ---- */
#contact { padding: clamp(100px, 13vw, 190px) 0; border-top: 1px solid var(--line); }
.cta-kicker { color: var(--muted); margin-bottom: clamp(36px, 5vw, 64px); }
.cta-h2 { font-size: clamp(40px, 6.4vw, 92px); line-height: 1.0; letter-spacing: -.045em; color: var(--ink); font-weight: 600; }
.cta-h2 em { font-style: normal; font-weight: 600; color: var(--accent); }
.cta-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 56px; flex-wrap: wrap; margin-top: clamp(44px, 6vw, 80px); padding-top: 34px; border-top: 1px solid var(--line); }
.cta-sub { max-width: 50ch; }

/* ---- footer ---- */
footer { padding: clamp(56px, 7vw, 88px) 0 34px; border-top: 1px solid var(--line); background: var(--bg-warm); }
.footer-inner { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer-logo { display: inline-block; }
.footer-logo img { height: 30px; width: auto; display: block; }
.footer-tagline { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 40ch; line-height: 1.7; font-weight: 300; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-h { color: var(--muted); margin-bottom: 6px; }
.footer-col a, .footer-col span, .footer-col address { font-size: 14px; color: var(--body); font-weight: 300; font-style: normal; line-height: 1.7; }
.footer-col a:hover { color: var(--accent-text); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); }

/* ---- motion: reveal on scroll (only once JS has confirmed it can run) ---- */
.js .rise { opacity: 0; transform: translateY(16px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; transition: none; }
  .js .hero-tagline .tagline-rule { transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .grid-inner { grid-template-columns: repeat(2, 1fr); }
  .sec, .hero-row, .cred-grid { grid-template-columns: 1fr; gap: 20px; }
  .sec-index { position: static; flex-direction: row; gap: 14px; }
  .three, .two { grid-template-columns: 1fr; gap: 44px; }
  .bg-row { grid-template-columns: 1fr; gap: 18px; }
  .bg-row-label:empty { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-links { display: none; }
  .hero-row-r { flex-direction: column; align-items: flex-start; gap: 28px; }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-logo img { height: 22px; }
  .js .tunnel-hint { display: none; }
  .js .tunnel-read { gap: 18px; padding: 10px 12px; }
  .tunnel-read dd { font-size: 20px; }
}
