/* ==========================================================================
   DevA² landing page — styles
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0A0A0B;
  --surface: #121214;
  --surface-2: #18181B;
  --surface-3: #202024;
  --border: #26262B;
  --border-strong: #34343B;

  --text: #F2F2F2;
  --text-2: #C4C4CC;
  --muted: #8E8E98;
  --dim: #5E5E68;

  --accent: #E3B23C;
  --accent-hi: #F5C842;
  --accent-soft: rgba(227, 178, 60, .12);
  --accent-line: rgba(227, 178, 60, .38);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --container: 1160px;
  --gutter: 20px;

  --font-sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint technical grid behind the whole page, fading toward the top */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-hi); }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #0A0A0B;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Shared type & atoms ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-hi);
}
.eyebrow .idx { color: var(--dim); }
.eyebrow::after {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--accent-line);
}

.section { padding-top: 104px; padding-bottom: 24px; position: relative; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
  margin-bottom: 48px;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  font-weight: 700;
}
.section-sub { font-size: 16px; color: var(--muted); max-width: 560px; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.badge-live { background: rgba(227, 178, 60, .18); color: var(--accent-hi); }
.badge-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 0 0 rgba(245, 200, 66, .6);
  animation: pulse 2s ease-out infinite;
}
.badge-build { background: var(--surface-3); color: var(--text-2); }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 200, 66, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(245, 200, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 200, 66, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .3s ease;
  will-change: transform;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--ease);
  pointer-events: none;
}
.btn:hover::after { left: 120%; }
.btn:active { transform: scale(.97); }
.btn svg { flex: none; }

.btn-primary {
  background: var(--accent);
  color: #0A0A0B;
  box-shadow: 0 10px 30px -10px rgba(227, 178, 60, .55);
}
.btn-primary:hover { background: var(--accent-hi); color: #0A0A0B; box-shadow: 0 14px 36px -10px rgba(227, 178, 60, .7); }

.btn-ghost {
  border-color: var(--accent-line);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent-hi); color: var(--accent-hi); background: var(--accent-soft); }

.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }

/* magnetic hover is driven by script.js via --mx/--my */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 11, .72);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 28px; width: auto; transition: transform .3s var(--ease); }
.brand:hover img { transform: scale(1.05); }
.brand img.brand-icon { width: 36px; height: 36px; border-radius: 9px; }
.footer-brand .brand img.brand-icon { width: 32px; height: 32px; border-radius: 8px; }

.nav-links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.nav-links a {
  position: relative;
  color: var(--text-2);
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right .3s var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.nav-toggle:hover { border-color: var(--accent); background: var(--surface); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  background: rgba(14, 14, 16, .97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: grid-template-rows .35s var(--ease), visibility .35s;
}
.mobile-menu.is-open { grid-template-rows: 1fr; visibility: visible; }
.mobile-menu-inner { overflow: hidden; min-height: 0; }
.mobile-menu-inner a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}
.mobile-menu-inner a:last-child { border-bottom: 0; }
.mobile-menu-inner a::after { content: "→"; color: var(--accent); }

/* ---------- Scroll progress & cursor glow ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
}
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 178, 60, .09), transparent 65%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .4s ease;
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 72px 0 112px;
  overflow: hidden;
  isolation: isolate;
}
.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 560px; height: 560px;
  left: -200px; top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 178, 60, .22), transparent 68%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}
.hero-spline {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 54%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%);
  mask-image: linear-gradient(90deg, transparent, #000 28%);
  will-change: transform, opacity;
}
spline-viewer { width: 100%; height: 100%; display: block; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }

.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.035em;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-hi) 60%, #FFF0B8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 8px;
}
.hero-stat { display: flex; flex-direction: column; gap: 6px; padding-right: 16px; }
.hero-stat + .hero-stat { padding-left: 20px; border-left: 1px solid var(--border); }
.hero-stat strong {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-hi);
  font-variant-numeric: tabular-nums;
}
.hero-stat > span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-side { position: relative; }

/* terminal */
.terminal {
  background: rgba(10, 10, 11, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(227, 178, 60, .04);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.terminal:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 4px rgba(227, 178, 60, .08);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; background: #3A3A40; }
.terminal-dot:nth-child(1) { background: #5A3A3A; }
.terminal-dot:nth-child(2) { background: #5A4F2E; }
.terminal-dot:nth-child(3) { background: #33502E; }
.terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.terminal-body {
  height: 300px;
  overflow-y: auto;
  padding: 16px 16px 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  cursor: text;
}
.term-line { white-space: pre-wrap; word-break: break-word; margin: 0; }
.term-line.muted { color: var(--muted); }
.term-line.accent { color: var(--accent-hi); }
.term-line .prompt { color: var(--accent); }
.term-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.term-input-row .prompt { color: var(--accent); }
.term-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 4px 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  caret-color: var(--accent);
}
.term-input::placeholder { color: var(--dim); }
.term-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 14px;
}
.term-hints button {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.term-hints button:hover { color: var(--accent-hi); border-color: var(--accent-line); background: var(--accent-soft); }

.term-cursor {
  display: inline-block;
  width: .55em;
  height: 1em;
  vertical-align: -.15em;
  background: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* scroll cue */
.scroll-cue {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  bottom: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
}
.scroll-cue:hover { color: var(--accent); }
.scroll-cue svg { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Hero entrance (JS adds .js to <html>) ---------- */
.js .hero-in {
  opacity: 0;
  animation: rise .9s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 120ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ---------- Reveal on scroll ---------- */
/* uses the independent `translate` property so it never fights card hover transforms */
.js .reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity .8s var(--ease), translate .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- Cards (spotlight) ---------- */
.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .4s var(--ease), border-color .3s ease, box-shadow .4s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(227, 178, 60, .14), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
}
.card:hover::before { opacity: 1; }
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .7);
}
.card > * { position: relative; }

.card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.card-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: .08em;
}
.icon-box {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-hi);
  border: 1px solid rgba(227, 178, 60, .2);
}
.card h3 { font-size: 20px; }
.card p { font-size: 15px; line-height: 1.65; color: var(--muted); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* ---------- Services ---------- */
.service-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}
.service-pills .label { font-size: 14px; color: var(--muted); margin-right: 8px; }
.pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: transform .25s var(--ease), border-color .2s ease, background-color .2s ease, color .2s ease;
}
.pill:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--surface-2); color: var(--accent-hi); }

/* ---------- Tech marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 28px 0;
  border-block: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.tech-pill b { color: var(--accent); font-weight: 700; }

/* ---------- Work / projects ---------- */
.projects { display: flex; flex-direction: column; gap: 28px; }
.project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .4s ease;
}
.project:hover { border-color: var(--border-strong); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(227, 178, 60, .07), transparent 55%);
  opacity: 0;
  transition: opacity .4s ease;
}
.project:hover::before { opacity: 1; }
.project-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 56px 40px;
  background:
    radial-gradient(circle at 30% 20%, rgba(227, 178, 60, .08), transparent 60%),
    #0F0F11;
  border-right: 1px solid var(--border);
}
.project-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 48px 44px;
}
.project-title-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.project h3 { font-size: clamp(26px, 3vw, 32px); font-weight: 800; }
.project p.desc { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 4px; }
.project-links .link-arrow { font-weight: 600; font-size: 15px; color: var(--accent); }
.project-note { font-size: 15px; font-weight: 600; color: var(--muted); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent-hi); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* device mockups */
.mock { position: relative; width: 100%; max-width: 380px; aspect-ratio: 4 / 3; transition: transform .6s var(--ease); }
.project:hover .mock { transform: translateY(-6px); }
.mock-screen {
  position: absolute;
  left: 0; top: 0;
  width: 78%;
  padding: 6px;
  border-radius: 10px;
  background: #0C0C0D;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 40px -10px rgba(0, 0, 0, .6);
}
.mock-screen-inner {
  aspect-ratio: 16 / 10;
  border-radius: 5px;
  overflow: hidden;
  background: var(--surface-2);
}
.mock-screen-inner img,
.mock-phone-inner img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mock-stand {
  position: absolute;
  left: 3%; top: 49%;
  width: 72%; height: 5%;
  background: #141416;
  border: 1px solid var(--border-strong);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}
.mock-phone {
  position: absolute;
  right: 0; bottom: 0;
  width: 30%;
  aspect-ratio: 390 / 844;
  padding: 5px;
  border-radius: 18px;
  background: #0C0C0D;
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 32px -10px rgba(0, 0, 0, .7);
}
.mock-phone-inner { width: 100%; height: 100%; border-radius: 13px; overflow: hidden; background: var(--surface-2); }
.lathe-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: repeating-linear-gradient(45deg, #18181B 0 10px, #141417 10px 20px);
}
.lathe-placeholder img { width: 42%; height: auto; }
.lathe-placeholder span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); }

/* ---------- Team / access passes ---------- */
.passes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.pass {
  position: relative;
  display: flex;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .8);
  transition: transform .45s var(--ease), box-shadow .45s ease, border-color .3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.pass:hover { border-color: var(--accent-line); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9); }
.pass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .09), transparent 55%);
  opacity: 0;
  transition: opacity .35s ease;
}
.pass:hover::before { opacity: 1; }
.pass-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  background: linear-gradient(160deg, #161618, #111113);
  border-right: 4px solid var(--accent);
}
.pass-top { display: flex; justify-content: space-between; align-items: center; }
.pass-brand { font-weight: 700; font-size: 14px; color: var(--accent); }
.pass-tier {
  padding: 3px 10px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
}
.pass-title { font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: .01em; }
.pass-name { margin-top: 8px; font-size: 17px; font-weight: 700; color: var(--accent); }
.pass-role { font-size: 13px; color: var(--muted); }
.pass-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.pass-field .k { font-size: 10px; letter-spacing: .12em; color: var(--dim); margin-bottom: 2px; }
.pass-field .v { color: var(--muted); }
.pass-field a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.pass-field a:hover { color: var(--accent); }
.pass-save {
  align-self: flex-start;
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
}
.pass-stub {
  flex: 0 0 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface-3);
}
.barcode {
  width: 64px; height: 44px;
  background: repeating-linear-gradient(90deg, #F2F2F2 0 2px, transparent 2px 4px, #F2F2F2 4px 5px, transparent 5px 8px, #F2F2F2 8px 11px, transparent 11px 13px);
}
.pass-stub .mini { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; color: var(--text-2); }
.pass-stub .num { font-size: 30px; font-weight: 800; color: var(--accent); }

/* ---------- Process ---------- */
.steps { position: relative; }
.steps-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.steps-track {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--border);
}
.steps-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  transform-origin: 0 50%;
  transform: scaleX(var(--p));
  box-shadow: 0 0 14px rgba(227, 178, 60, .5);
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 26px;
}
.step::before {
  content: "";
  position: absolute;
  top: -5px; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-strong);
  transition: border-color .4s ease, background-color .4s ease, box-shadow .4s ease;
}
.step.is-lit::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 14px rgba(227, 178, 60, .6);
}
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.step h3 { font-size: 18px; }
.step p { font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-hi); }
.faq summary:focus-visible { border-radius: 6px; }
.faq-icon {
  flex: none;
  color: var(--accent);
  transition: transform .35s var(--ease);
}
.faq details[open] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.faq details[open] .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-answer p {
  padding-bottom: 24px;
  max-width: 700px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- Brief / contact ---------- */
.brief {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}
.brief-copy { display: flex; flex-direction: column; gap: 22px; position: sticky; top: calc(var(--header-h) + 32px); }
.brief-copy h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.brief-copy .lede { font-size: 16px; }
.brief-points { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.brief-points li { display: flex; gap: 12px; color: var(--text-2); font-size: 15px; }
.brief-points li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 4px;
  border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5C842' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid rgba(227, 178, 60, .3);
}
.direct-mail { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.direct-mail a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .9);
}
.field-group { display: flex; flex-direction: column; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-group > legend,
.field-label {
  padding: 0;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3A3AD' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.input::placeholder { color: var(--dim); }
.input:hover { border-color: var(--border-strong); background-color: #1C1C20; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(227, 178, 60, .14); }
.input:user-invalid { border-color: #C0563F; }

/* chip & segmented selectors */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s var(--ease);
}
.choice:hover span { border-color: var(--accent-line); color: var(--text); }
.choice:active span { transform: scale(.97); }
.choice input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hi);
}
.choice input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.segmented .choice span { width: 100%; justify-content: center; text-align: center; padding: 10px 8px; line-height: 1.3; flex-direction: column; gap: 2px; }
.segmented .choice small { font-size: 11px; color: var(--dim); font-weight: 400; }
.segmented .choice input:checked + span small { color: var(--text-2); }

.preview {
  margin: 0;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #0C0C0D;
  border: 1px dashed var(--border-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow: auto;
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot small { font-size: 13px; color: var(--dim); max-width: 340px; }
.form-foot .btn { min-width: 220px; }

/* ---------- Final CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  margin-top: 96px;
  padding: 72px 32px;
  border-radius: 28px;
  background: linear-gradient(160deg, #1A1A1D, #111113);
  border: 1px solid #3A3220;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  left: 50%; top: -260px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 178, 60, .18), transparent 65%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.cta-band p { max-width: 520px; font-size: 16px; color: var(--text-2); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; background: #0A0A0B; border-top: 1px solid var(--border); }
.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 0 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer-brand p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .head {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 4px;
}
.footer-col a { color: var(--text-2); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--dim);
}
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 10px rgba(245, 200, 66, .6); }

/* ---------- Brief: optional files + Drive link ---------- */
[hidden] { display: none !important; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.brief-status { font-size: 14px; color: var(--muted); min-height: 1em; }
.brief-status:empty { display: none; }
.brief-status.is-ok { color: #8FD19E; }
.brief-status.is-error { color: #E08A6D; }
.opt { color: var(--dim); font-weight: 400; text-transform: none; letter-spacing: 0; }
.hint { font-size: 12px; color: var(--dim); margin-top: 6px; }
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.dropzone:hover,
.dropzone.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone:focus-within { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.dz-title { font-weight: 600; color: var(--text); font-size: 15px; }
.dz-sub { font-size: 12px; color: var(--dim); }
.file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.file-list:empty { display: none; }
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 14px;
}
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.file-remove {
  background: none;
  border: 0;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
}
.file-remove:hover { color: var(--accent-hi); background: var(--accent-soft); }
.file-note { font-size: 13px; color: #E08A6D; margin-top: 6px; }
.file-note:empty { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav-links { gap: 22px; }
}

@media (max-width: 960px) {
  .hero { min-height: auto; padding: 56px 0 96px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-side { max-width: 560px; }
  .hero-spline { display: none; }
  .brief { grid-template-columns: 1fr; gap: 36px; }
  .brief-copy { position: static; }
  .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps-track { display: none; }
  .step { padding-top: 26px; }
  .project { grid-template-columns: 1fr; }
  .project-media { border-right: 0; border-bottom: 1px solid var(--border); min-height: 300px; }
  .scroll-cue { display: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 62px; }
  .section { padding-top: 84px; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-actions .btn-sm { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; }
  .hero-stat > span { font-size: 10px; letter-spacing: .04em; }
  .hero-stat strong { font-size: 26px; }
  .hero-stat + .hero-stat { padding-left: 14px; }
  .hero-stat { padding-right: 8px; }
  .project-body { padding: 32px 24px; }
  .card { padding: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .segmented { grid-template-columns: 1fr; }
  .segmented .choice span { flex-direction: row; justify-content: space-between; text-align: left; }
  .form-card { padding: 24px; }
  .cta-band { padding: 56px 22px; }
  .pass-grid { grid-template-columns: 1fr; }
  .terminal-body { height: 260px; }
  .footer-cols { gap: 40px; }
  .form-foot .btn { width: 100%; }
}

@media (max-width: 480px) {
  .steps-list { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 14px; }
  .hero-stat + .hero-stat { padding-left: 0; border-left: 0; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .pass-stub { flex-basis: 84px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
  .scroll-cue svg { animation: none; }
  .js .hero-in,
  .js .reveal { opacity: 1 !important; transform: none !important; translate: none !important; filter: none !important; }
}
