:root {
  --navy: #070b16;
  --navy-2: #0c1326;
  --navy-3: #111a33;
  --gold: #e3b94e;
  --gold-bright: #ffd76a;
  --ink: #e8ecf5;
  --ink-dim: #9aa5bf;
  --cyan: #4fd8e8;
  --violet: #9b6bff;
  --radius: 18px;
  --max: 1140px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }
img { max-width: 100%; display: block; }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,11,22,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(227,185,78,.18);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: .4px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .gear { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 26px; font-size: .95rem; }
.nav-links a { color: var(--ink-dim); font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #1a1405 !important; padding: 8px 18px; border-radius: 999px; font-weight: 700;
}
@media (max-width: 720px) { .nav-links { gap: 14px; font-size: .85rem; } .nav-cta { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(155,107,255,.14), transparent 60%),
    radial-gradient(900px 480px at 10% 110%, rgba(79,216,232,.10), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 96px 24px 84px;
  text-align: center;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(79,216,232,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,216,232,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 75%);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08; font-weight: 850; letter-spacing: -1px;
  max-width: 16ch; margin: 0 auto 20px;
}
.hero h1 .gold { background: linear-gradient(120deg, var(--gold), var(--gold-bright) 60%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { color: var(--ink-dim); font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 56ch; margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-weight: 750; font-size: 1rem; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-bright)); color: #1a1405; box-shadow: 0 6px 30px rgba(227,185,78,.28); }
.btn-gold:hover { color: #1a1405; box-shadow: 0 10px 36px rgba(227,185,78,.4); }
.btn-ghost { border: 1px solid rgba(227,185,78,.45); color: var(--gold); }
.btn-ghost:hover { background: rgba(227,185,78,.08); }

/* ---------- magazine badge ---------- */
.mag-badge {
  position: absolute; top: 34px; right: 4.5%;
  width: 168px; height: 168px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--navy-3), var(--navy-2) 70%);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(227,185,78,.12), 0 10px 40px rgba(0,0,0,.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 16px; gap: 4px;
  transform: rotate(6deg);
  animation: badgeFloat 5.5s ease-in-out infinite;
  z-index: 3;
}
.mag-badge:hover { color: var(--gold); }
@keyframes badgeFloat { 0%,100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-9px); } }
.mag-badge .b-top { font-size: .58rem; letter-spacing: 2.2px; color: var(--gold); font-weight: 800; }
.mag-badge .b-mid { font-size: .98rem; font-weight: 850; line-height: 1.2; color: var(--ink); }
.mag-badge .b-mid .num { color: var(--gold-bright); }
.mag-badge .b-cta { font-size: .62rem; letter-spacing: 1.4px; color: var(--cyan); font-weight: 800; margin-top: 4px; }
@media (max-width: 860px) { .mag-badge { position: relative; top: auto; right: auto; margin: 0 auto 34px; } }

/* ---------- sections ---------- */
section { padding: 84px 24px; }
.wrap { max-width: var(--max); margin: 0 auto; }
.kicker { color: var(--cyan); font-weight: 800; letter-spacing: 2.6px; font-size: .78rem; text-transform: uppercase; margin-bottom: 14px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 820; letter-spacing: -.6px; margin-bottom: 18px; }
.section-lede { color: var(--ink-dim); max-width: 62ch; font-size: 1.06rem; }

/* product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; margin-top: 44px; }
.card {
  background: linear-gradient(180deg, var(--navy-2), var(--navy-3));
  border: 1px solid rgba(227,185,78,.16);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(227,185,78,.45); box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.card .icon { font-size: 1.7rem; margin-bottom: 14px; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; color: var(--gold-bright); }
.card p { color: var(--ink-dim); font-size: .98rem; margin-bottom: 18px; }
.card a.card-link { font-weight: 750; font-size: .95rem; }

/* team strip */
.team-strip { background: linear-gradient(180deg, var(--navy-2), var(--navy)); border-top: 1px solid rgba(227,185,78,.14); border-bottom: 1px solid rgba(227,185,78,.14); }
.team-poster-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(227,185,78,.3); box-shadow: 0 24px 70px rgba(0,0,0,.5); margin-top: 40px; }
.faces { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 34px; }
.face { text-align: center; }
.face img { border-radius: 16px; border: 1px solid rgba(227,185,78,.25); aspect-ratio: 1/1; object-fit: cover; }
.face .who { margin-top: 12px; font-weight: 800; }
.face .role { color: var(--ink-dim); font-size: .88rem; }

/* CTA band */
.cta-band { text-align: center; background: radial-gradient(700px 320px at 50% 0%, rgba(227,185,78,.12), transparent 65%); }

/* footer */
footer { border-top: 1px solid rgba(227,185,78,.14); padding: 44px 24px; color: var(--ink-dim); font-size: .9rem; }
.foot-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* future page article */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { margin-top: 54px; }
.article h3 { color: var(--gold-bright); margin: 38px 0 12px; font-size: 1.2rem; }
.article p { margin-bottom: 18px; color: #cdd5e6; }
.article .q { color: var(--gold); font-weight: 800; margin: 34px 0 10px; font-size: 1.06rem; }
.article .byline { color: var(--ink-dim); font-style: italic; margin-top: 10px; }
.article .piece-title { margin-top: 64px; padding-top: 40px; border-top: 1px solid rgba(227,185,78,.2); }
.poster-hero { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(227,185,78,.3); margin: 34px 0; }

/* picture wrapper behaves like its img (WebP source swap) */
picture { display: contents; }

/* ---------- design pass Oct 20: voice headers, pull quotes, footer credit, small-nav ---------- */
.voice-head { display: flex; align-items: center; gap: 14px; margin: 0 0 4px; }
.voice-head img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }
.voice-name { font-weight: 800; color: var(--gold); letter-spacing: .3px; }
.voice-role { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-dim); }
.pull { margin: 30px 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--gold); font-size: 1.22rem; line-height: 1.55; font-weight: 600; font-style: italic; color: var(--gold-bright); }
.foot-credit { max-width: var(--max); margin: 16px auto 0; text-align: center; font-size: .78rem; color: var(--ink-dim); }
/* ---------- mobile menu (burger) — tech-portfolio nav ---------- */
.nav-burger { display: none; background: transparent; border: 0; cursor: pointer; padding: 9px 4px; flex-direction: column; gap: 5px; align-items: center; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
nav.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-burger { display: flex; }
  .nav-inner { padding: 11px 16px; }
  .brand { font-size: 1.02rem; white-space: nowrap; }
  .nav-links { display: none; position: fixed; top: 54px; left: 0; right: 0; z-index: 60;
    flex-direction: column; align-items: center; gap: 15px; padding: 20px 16px 22px;
    background: rgba(7,11,22,.96); border-bottom: 1px solid rgba(227,185,78,.28);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 50px rgba(0,0,0,.5); }
  nav.nav-open .nav-links { display: flex; }
  .nav-links a { font-size: 1rem; }
  .nav-links .nav-cta { display: inline-block; margin-top: 4px; }
  .motion-toggle { margin-top: 8px; }
  .mag-badge { transform: scale(.84); transform-origin: top center; margin-bottom: 20px; }
  #skyline { opacity: .72; height: 38vh; }
}

/* gold CTA breathes (stops when motion is off) */
@keyframes ctaGlow { 0%,100% { box-shadow: 0 6px 30px rgba(227,185,78,.28); } 50% { box-shadow: 0 6px 38px rgba(227,185,78,.6); } }
.btn-gold { animation: ctaGlow 3.6s ease-in-out infinite; }
body.no-motion .btn-gold { animation: none; }

/* ---------- night skyline background + motion toggle (Bobbie, Oct 20) ---------- */
#skyline { position: fixed; left: 0; right: 0; bottom: 0; height: 34vh; max-height: 340px; z-index: -1; pointer-events: none; opacity: .62; }
#skyline svg { width: 100%; height: 100%; display: block; }
#skyline .win.g { fill: #62ff8e; animation: flickG 4s infinite; }
#skyline .win.o { fill: #ffb02e; animation: flickO 5.2s infinite; }
#skyline .street.g { fill: #62ff8e; filter: drop-shadow(0 0 6px #62ff8e); animation: streetPulse 3.2s ease-in-out infinite; }
#skyline .street.o { fill: #ffb02e; filter: drop-shadow(0 0 6px #ffb02e); animation: streetPulse 3.8s ease-in-out infinite; }
@keyframes flickG { 0%,100% { opacity: .12; } 8% { opacity: .9; } 15% { opacity: .18; } 47% { opacity: .7; } 53% { opacity: .1; } 72% { opacity: .55; } }
@keyframes flickO { 0%,100% { opacity: .1; } 12% { opacity: .85; } 21% { opacity: .15; } 50% { opacity: .65; } 63% { opacity: .12; } 83% { opacity: .5; } }
@keyframes streetPulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
/* motion OFF (accessibility): city stays, flashing stops — calm steady dim */
body.no-motion #skyline .win { animation: none; opacity: .16; }
body.no-motion #skyline .street { animation: none; opacity: .55; }
.motion-toggle { background: transparent; border: 1px solid rgba(227,185,78,.45); color: var(--ink-dim); border-radius: 999px; padding: 6px 14px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; cursor: pointer; font-family: inherit; }
.motion-toggle:hover { color: var(--gold-bright); border-color: var(--gold); }
.motion-toggle[aria-pressed="true"] { color: var(--gold); }
@media (max-width: 720px) { .motion-toggle { padding: 5px 10px; font-size: .72rem; } }
/* let the city breathe through the hero */
.hero { background: linear-gradient(180deg, rgba(7,11,22,.35) 0%, rgba(12,19,38,.55) 100%) !important; }

/* ---------- flying traffic + scroll guide car (Bobbie, Oct 20 — "the future is here") ---------- */
#skyline .veh { animation-name: flyX; animation-timing-function: linear; animation-iteration-count: infinite; }
#skyline .veh.rtl { animation-name: flyXr; }
@keyframes flyX { from { transform: translateX(-220px); } to { transform: translateX(1660px); } }
@keyframes flyXr { from { transform: translateX(1660px); } to { transform: translateX(-220px); } }
body.no-motion #skyline .veh { display: none; }

#guide-car { position: fixed; left: 18px; right: auto; top: 16vh; z-index: 55; background: rgba(13,21,38,.55); border: 1px solid rgba(227,185,78,.35); border-radius: 999px; padding: 8px 10px; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .25s ease-out, box-shadow .25s ease; animation: guideGlow 3.6s ease-in-out infinite; }
#guide-car:hover { box-shadow: 0 0 22px rgba(227,185,78,.55); border-color: var(--gold); }
@keyframes guideGlow { 0%,100% { box-shadow: 0 0 6px rgba(227,185,78,.15); } 50% { box-shadow: 0 0 16px rgba(227,185,78,.45); } }
body.no-motion #guide-car { display: none; }
@media (max-width: 640px) { #guide-car { display: none; } }

/* ---------- flying-car cursor (Bobbie, Oct 20) ---------- */
#cursor-car { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9998; opacity: 0; transition: opacity .25s ease, filter .25s ease; will-change: transform; }
#cursor-car.vis { opacity: 1; }
#cursor-car.on { filter: drop-shadow(0 0 8px rgba(227,185,78,.9)) drop-shadow(0 0 18px rgba(79,216,232,.45)); }
body.no-motion #cursor-car { display: none; }
