/* ==========================================================================
   D&C DEFENCE — main stylesheet
   Tokens → base → layout → components → sections → pages → motion/fallbacks
   ========================================================================== */

:root {
  /* Palette */
  --bg: #060a0e;
  --bg-2: #0a1118;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --muted: #7b8a96;
  --fg-2: #b4c2cc;
  --fg: #edf4f8;
  --accent: #d97757;
  --accent-2: #f2a083;
  --accent-ink: #160904;
  --accent-dim: rgba(217, 119, 87, 0.1);
  --glow: rgba(217, 119, 87, 0.18);

  /* Type */
  --f-display: "Archivo", "Arial", system-ui, sans-serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Layout */
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
/* Film grain — keeps large dark surfaces from looking flat */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, canvas, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
em { font-style: normal; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; font-weight: 600; border-radius: 999px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(88px, 12vw, 168px); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.section--flush { padding-bottom: clamp(48px, 7vw, 96px); }
.section--flush-top { padding-top: 0; }
.section--panel {
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(242, 160, 131, .06), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.grid { display: grid; gap: clamp(14px, 1.6vw, 20px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.h-xxl, .h-xl, .h-lg, .h-md {
  font-family: var(--f-display);
  font-weight: 600;
  font-stretch: 105%;
  letter-spacing: -0.035em;
  line-height: .98;
  text-wrap: balance;
}
.h-xxl { font-size: clamp(56px, 11vw, 176px); letter-spacing: -0.05em; line-height: .9; }
.h-xl  { font-size: clamp(40px, 6.4vw, 96px); }
.h-lg  { font-size: clamp(34px, 4.6vw, 68px); }
.h-md  { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.05; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}
.eyebrow--plain::before { display: none; }

.lead { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; color: var(--fg); letter-spacing: -0.01em; }
.muted { color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(6, 10, 14, .45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2);
}
.dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.chip--live .dot::after, .showcase__legend .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent);
  animation: ping 2s var(--ease) infinite;
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  --h: 54px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 14px;
  height: var(--h); padding: 0 8px 0 26px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: border-color .4s var(--ease), color .4s var(--ease), background-color .4s var(--ease);
  will-change: transform;
}
.btn:not(:has(.btn__icon)) { padding-right: 26px; }
.btn::before { /* liquid fill from below */
  content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; top: 100%; height: 220%;
  border-radius: 50%; background: var(--fg);
  transition: top .6s var(--ease), border-radius .6s var(--ease);
}
.btn:hover::before { top: -60%; border-radius: 0; }
.btn:hover { color: var(--bg); border-color: var(--fg); }
.btn__label { position: relative; display: inline-block; }
.btn__icon {
  display: grid; place-items: center; width: calc(var(--h) - 16px); height: calc(var(--h) - 16px);
  border-radius: 50%; background: var(--fg); color: var(--bg); overflow: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.btn__icon svg { width: 15px; height: 15px; transition: transform .5s var(--ease); }
.btn:hover .btn__icon { background: var(--bg); color: var(--fg); }
.btn:hover .btn__icon svg { animation: arrowLoop .6s var(--ease); }

.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent .btn__icon { background: var(--accent-ink); color: var(--accent); }
.btn--ghost { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--sm { --h: 42px; padding-left: 18px; font-size: 14px; gap: 10px; }
.btn--sm:not(:has(.btn__icon)) { padding-right: 18px; }
.btn--lg { --h: 64px; padding-left: 32px; font-size: 17px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px;
  padding-bottom: 6px; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat,
  linear-gradient(var(--line-2), var(--line-2)) left bottom / 100% 1px no-repeat;
  transition: background-size .6s var(--ease), color .3s;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .5s var(--ease); }
.link-arrow:hover { background-size: 100% 1px, 100% 1px; color: var(--accent); }
.link-arrow:hover svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   Scroll progress, header, mobile menu
   -------------------------------------------------------------------------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px var(--accent-2);
}

.site-header {
  position: fixed; inset: 14px 0 auto; z-index: 100; padding-inline: var(--gutter);
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.site-header.is-hidden { transform: translateY(-140%); }
.nav {
  pointer-events: auto;
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 10px 0 22px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), max-width .7s var(--ease), box-shadow .5s;
}
.site-header.is-scrolled .nav {
  max-width: 980px;
  background: rgba(10, 17, 24, .68);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: var(--line);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: auto; }
.brand__mark { width: 50px; }
.brand__word { width: 118px; opacity: .92; transition: opacity .3s; }
.brand:hover .brand__word { opacity: 1; }
.brand--stack img { width: 168px; }
@media (max-width: 420px) { .brand__word { width: 96px; } }

.nav__menu { position: relative; margin-left: auto; }
.nav__links { position: relative; z-index: 1; display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 9px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--fg-2);
  transition: color .3s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--fg); }
.nav__links a[aria-current="page"]::after {
  content: ""; display: block; width: 4px; height: 4px; margin: 3px auto -7px; border-radius: 50%; background: var(--accent);
}
.nav__pill {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  opacity: 0; transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
}
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none; position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(10, 17, 24, .6); margin-left: auto;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nav__toggle span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--fg);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.nav-open .nav__toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav__toggle span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) 40px; background: var(--bg-2);
  clip-path: circle(0% at calc(100% - 44px) 46px);
  transition: clip-path .8s var(--ease-io); visibility: hidden;
}
.nav-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 46px); visibility: visible; }
.mobile-menu ol { list-style: none; margin: 0 0 auto; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line); overflow: hidden; }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 16px; padding: 18px 0;
  font-family: var(--f-display); font-size: clamp(40px, 12vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1;
  transform: translateY(100%); transition: transform .8s var(--ease);
}
.mobile-menu a small { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.nav-open .mobile-menu a { transform: none; }
.nav-open .mobile-menu li:nth-child(2) a { transition-delay: .06s; }
.nav-open .mobile-menu li:nth-child(3) a { transition-delay: .12s; }
.nav-open .mobile-menu li:nth-child(4) a { transition-delay: .18s; }
.mobile-menu__foot { margin: 32px 0 0; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }

@media (max-width: 1024px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav { height: 58px; padding: 0 6px 0 16px; }
}

/* --------------------------------------------------------------------------
   Custom cursor (fine pointers only)
   -------------------------------------------------------------------------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 250; pointer-events: none; }
.cursor__dot, .cursor__ring {
  position: absolute; left: 0; top: 0; border-radius: 50%;
  transform: translate3d(var(--x, -100px), var(--y, -100px), 0) translate(-50%, -50%);
}
.cursor__dot { width: 6px; height: 6px; background: var(--accent); }
.cursor__ring {
  width: 36px; height: 36px; border: 1px solid rgba(237, 244, 248, .35);
  transform: translate3d(var(--rx, -100px), var(--ry, -100px), 0) translate(-50%, -50%) scale(var(--s, 1));
  transition: width .4s var(--ease), height .4s var(--ease), background-color .4s, border-color .4s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(217, 119, 87, .08); border-color: var(--accent); }
.cursor.is-down .cursor__ring { --s: .8; }
.cursor.is-hidden { opacity: 0; }

/* --------------------------------------------------------------------------
   HERO — scroll-driven frame sequence
   -------------------------------------------------------------------------- */
.hero { position: relative; height: 150vh; background: var(--bg); }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__poster, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster { object-fit: cover; }
.hero__canvas { opacity: 0; transition: opacity .6s var(--ease); }
.hero.is-ready .hero__canvas { opacity: 1; }
.hero.is-ready .hero__poster { opacity: 0; }

.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 10, 14, .55) 26%, rgba(6, 10, 14, 0) 55%),
    linear-gradient(90deg, rgba(6, 10, 14, .78) 0%, rgba(6, 10, 14, .25) 45%, rgba(6, 10, 14, 0) 70%),
    linear-gradient(180deg, rgba(6, 10, 14, .55) 0%, rgba(6, 10, 14, 0) 22%);
}
/* HUD corner brackets */
.hero__frame { position: absolute; inset: clamp(86px, 11vh, 110px) var(--gutter) clamp(24px, 4vh, 40px); pointer-events: none; }
.hero__frame i { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(237, 244, 248, .35); }
.hero__frame i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hero__frame i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hero__frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.hero__frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.hero__intro {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(56px, 9vh, 96px); will-change: transform, opacity;
}
.hero__intro .container { display: grid; gap: clamp(18px, 3vh, 32px); }
.hero__chip { justify-self: start; }
.hero__title {
  font-family: var(--f-display); font-weight: 600; font-stretch: 105%;
  font-size: clamp(54px, 10.5vw, 168px); line-height: .88; letter-spacing: -.055em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: inline-block; }
.hero__title em {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 60%, var(--fg) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hero__lead { max-width: 440px; color: var(--fg-2); font-size: clamp(15px, 1.2vw, 17px); margin: 0; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__caption {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: clamp(56px, 10vh, 110px);
  opacity: 0; visibility: hidden; pointer-events: none;
}
.hero__caption .container { display: grid; gap: 16px; }
.hero__caption-title {
  margin: 0; font-family: var(--f-display); font-weight: 600; font-stretch: 105%;
  font-size: clamp(36px, 5.2vw, 80px); line-height: .95; letter-spacing: -.045em;
}

.hero__meter {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; justify-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2);
}
.hero__meter span { writing-mode: vertical-rl; }
.hero__meter i { position: relative; width: 1px; height: 120px; background: rgba(237, 244, 248, .2); }
.hero__meter b { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 8px var(--accent); }

.js .hero__chip, .js .hero__bottom { animation: fadeUp 1.2s var(--ease) both; }
.js .hero__chip { animation-delay: .15s; }
.js .hero__bottom { animation-delay: .75s; }
.js .hero__title .line > span { animation: rise 1.3s var(--ease) both; }
.js .hero__title .line:nth-child(1) > span { animation-delay: .25s; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .4s; }
.js .hero__frame i { animation: bracketIn 1.2s var(--ease) .5s both; }

@media (max-width: 760px) {
  .hero__shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(6, 10, 14, .75) 42%, rgba(6, 10, 14, .2) 70%, rgba(6, 10, 14, .5) 100%); }
  .hero__intro { padding-bottom: 40px; }
  .hero__meter, .hero__frame { display: none; }
  .hero__ctas .btn { --h: 50px; }
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative; overflow: hidden; padding-block: clamp(18px, 2.4vw, 30px);
  border-block: 1px solid var(--line); background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; align-items: center; will-change: transform; }
.marquee__track span, .marquee__track i {
  font-family: var(--f-display); font-weight: 600; font-stretch: 105%;
  font-size: clamp(30px, 4.6vw, 64px); letter-spacing: -.04em; line-height: 1; white-space: nowrap; padding-inline: clamp(14px, 1.8vw, 28px);
}
.marquee__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(237, 244, 248, .35); }
.marquee__track i { font-style: normal; color: var(--accent); font-size: clamp(16px, 2vw, 26px); }
.marquee--thin .marquee__track span, .marquee--thin .marquee__track i { font-size: clamp(22px, 3vw, 40px); }

/* --------------------------------------------------------------------------
   Section heads, intro, pillars
   -------------------------------------------------------------------------- */
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); max-width: 900px; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: none; flex-wrap: wrap; }
.section-head--row > div { display: grid; gap: 20px; max-width: 760px; }
.section-head__aside { max-width: 380px; margin: 0; }

.intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.intro__head { display: grid; gap: 24px; }
.intro__body { display: grid; gap: 22px; padding-top: clamp(0px, 3vw, 56px); justify-items: start; }
.intro__body p { margin: 0; }
@media (max-width: 960px) { .intro { grid-template-columns: minmax(0, 1fr); } .intro__body { padding-top: 0; } }

.pillars {
  list-style: none; margin: clamp(64px, 9vw, 120px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line);
}
.pillar { position: relative; padding: 36px clamp(16px, 2.4vw, 36px) 8px 0; }
.pillar + .pillar { padding-left: clamp(16px, 2.4vw, 36px); border-left: 1px solid var(--line); }
.pillar::before { /* line that draws across on reveal */
  content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) var(--rd, 0ms);
}
.pillar.is-in::before { transform: scaleX(1); }
.pillar__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-dim); color: var(--accent); margin-bottom: 26px; }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { font-family: var(--f-display); font-size: 22px; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 15px; margin: 0; }
.pillar .draw { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 1.2s var(--ease) calc(var(--rd, 0ms) + .4s); }
.pillar.is-in .draw { stroke-dashoffset: 0; }
@media (max-width: 760px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   Cards (spotlight border + tilt)
   -------------------------------------------------------------------------- */
.card {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(26px, 2.6vw, 38px); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid var(--line);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease), border-color .4s;
}
.card::before { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(217, 119, 87, .09), transparent 60%);
}
.card::after { /* glowing border that follows the cursor */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--accent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card.is-tilting { transition: transform .15s linear, border-color .4s; }
.card__idx { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--accent-2); }
.card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; border: 1px solid var(--line-2); color: var(--fg); margin-bottom: auto; transition: transform .6s var(--ease), color .4s, border-color .4s; }
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.06); color: var(--accent); border-color: rgba(217, 119, 87, .4); }
.card h3 { font-family: var(--f-display); font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.grid .card { min-height: 300px; justify-content: flex-end; }
.grid .card .card__icon { margin-bottom: auto; }
.icon-gallery .card { min-height: 190px; justify-content: flex-start; }
.icon-gallery .card .card__icon { margin-bottom: 8px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(240px, auto); gap: clamp(14px, 1.6vw, 20px); }
.bento .card { justify-content: flex-end; }
.bento__a { grid-column: span 7; grid-row: span 2; }
.bento__b { grid-column: span 5; }
.bento__c { grid-column: span 5; }
.bento__d { grid-column: span 12; min-height: 240px; }
.card--feature {
  background:
    radial-gradient(80% 70% at 70% 30%, rgba(217, 119, 87, .1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
}
.card--feature h3 { font-size: clamp(28px, 3vw, 44px); }
.card--feature p { max-width: 420px; font-size: 16.5px; }
@media (max-width: 960px) {
  .bento__a, .bento__b, .bento__c, .bento__d { grid-column: span 12; grid-row: auto; }
  .bento__a { min-height: 440px; }
}

/* Radar visual */
.radar {
  position: absolute; top: 8%; right: 6%; width: min(62%, 380px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 87, .08), transparent 70%);
  pointer-events: none; z-index: -1;
}
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(217, 119, 87, .18); }
.radar i:nth-child(2) { inset: 18%; }
.radar i:nth-child(3) { inset: 36%; }
.radar::before, .radar::after { content: ""; position: absolute; background: rgba(217, 119, 87, .14); }
.radar::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.radar::after { top: 50%; left: 0; right: 0; height: 1px; }
.radar__sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 290deg, rgba(217, 119, 87, .35) 360deg);
  animation: spin 5s linear infinite;
}
.radar b {
  position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blip 5s linear infinite;
}
.radar b:nth-of-type(1) { animation-delay: .55s; }
.radar b:nth-of-type(2) { animation-delay: 2.2s; }
.radar b:nth-of-type(3) { animation-delay: 3.45s; }

/* Wave visual */
.wave { position: absolute; inset: 0 0 auto auto; width: 60%; height: 100%; pointer-events: none; z-index: -1; opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.wave svg { width: 200%; height: 100%; animation: waveX 6s linear infinite; }
.wave path { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: .45; vector-effect: non-scaling-stroke; }

/* --------------------------------------------------------------------------
   Engineering showcase
   -------------------------------------------------------------------------- */
.showcase__stage {
  position: relative; margin: 0; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  border: 1px solid var(--line); background: #2f2f30; aspect-ratio: 16 / 9;
}
/* Media keeps the stage's 16:9 ratio (inset is uniform) so hotspot percentages map onto the image */
.showcase__media { position: absolute; inset: -4%; will-change: transform; }
.showcase__media img { width: 100%; height: 100%; }
.showcase__media::after { /* soft vignette to sit in the dark page */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(6, 10, 14, .7));
}
.showcase__scan {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(217, 119, 87, .0) 40%, rgba(217, 119, 87, .14) 50%, transparent 51%);
  background-size: 100% 220%; animation: scan 5.5s var(--ease-io) infinite;
}
.hotspot {
  position: absolute; z-index: 2; left: var(--x); top: var(--y); width: 44px; height: 44px; margin: -22px;
  border: 0; padding: 0; background: none; border-radius: 50%;
}
.hotspot__dot {
  position: absolute; inset: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(217, 119, 87, .25);
  transition: transform .4s var(--ease);
}
.hotspot__dot::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2.2s var(--ease) infinite; }
.hotspot:hover .hotspot__dot, .hotspot:focus-visible .hotspot__dot { transform: scale(1.3); }
.hotspot__tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px); width: 220px; padding: 14px 16px; text-align: left;
  border-radius: 14px; background: rgba(6, 10, 14, .82); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 13.5px; line-height: 1.45; color: var(--fg-2);
  opacity: 0; transform: translate(-50%, 8px) scale(.96); transform-origin: bottom center; pointer-events: none;
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.hotspot__tip b { display: block; color: var(--fg); font-family: var(--f-display); font-size: 16px; margin-bottom: 4px; }
.hotspot:hover .hotspot__tip, .hotspot:focus-visible .hotspot__tip, .hotspot.is-open .hotspot__tip { opacity: 1; transform: translate(-50%, 0) scale(1); }
.hotspot--down .hotspot__tip { bottom: auto; top: calc(100% + 10px); transform-origin: top center; transform: translate(-50%, -8px) scale(.96); }
.hotspot:hover, .hotspot:focus-visible, .hotspot.is-open { z-index: 3; }
.showcase__legend {
  position: absolute; z-index: 2; left: 20px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2);
}
@media (max-width: 700px) {
  .hotspot__tip { width: 180px; }
  .showcase__legend { display: none; }
  .hotspot:nth-of-type(4) .hotspot__tip { left: auto; right: -10px; transform: translate(0, 8px) scale(.96); }
  .hotspot:nth-of-type(4):hover .hotspot__tip, .hotspot:nth-of-type(4).is-open .hotspot__tip { transform: none; }
  .hotspot:nth-of-type(1) .hotspot__tip { left: -10px; transform: translate(0, 8px) scale(.96); }
  .hotspot:nth-of-type(1):hover .hotspot__tip, .hotspot:nth-of-type(1).is-open .hotspot__tip { transform: none; }
}

/* --------------------------------------------------------------------------
   Horizontal process (pinned)
   -------------------------------------------------------------------------- */
.hscroll { position: relative; background: var(--bg-2); border-block: 1px solid var(--line); }
.hscroll__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 6vh, 64px); }
.hscroll__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hscroll__head > div { display: grid; gap: 18px; }
.hscroll__progress { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.hscroll__progress span:first-child { color: var(--accent); }
.hscroll__progress i { position: relative; width: 140px; height: 1px; background: var(--line-2); }
.hscroll__progress b { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.hscroll__track {
  list-style: none; margin: 0; display: flex; gap: clamp(14px, 1.6vw, 20px); width: max-content;
  padding: 0 var(--gutter); padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  will-change: transform;
}
.step {
  position: relative; flex: none; width: clamp(290px, 30vw, 420px); min-height: clamp(300px, 42vh, 400px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  padding: 32px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  transition: border-color .5s, background-color .5s;
}
.step__num {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(72px, 8vw, 120px); line-height: 1; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: -webkit-text-stroke-color .5s, color .5s;
}
.step h3 { font-family: var(--f-display); font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.03em; }
.step p { color: var(--muted); margin: 0; }
.step.is-active { border-color: rgba(217, 119, 87, .35); background-color: rgba(217, 119, 87, .03); }
.step.is-active .step__num { -webkit-text-stroke-color: var(--accent); }
.step::after { /* connector */
  content: ""; position: absolute; top: 50%; right: calc(-1 * clamp(14px, 1.6vw, 20px)); width: clamp(14px, 1.6vw, 20px); height: 1px; background: var(--line-2);
}
.step:last-child::after { display: none; }

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .hscroll { height: auto !important; padding-block: 88px; }
  .hscroll__sticky { position: relative; height: auto; overflow: visible; }
  .hscroll__progress { display: none; }
  .hscroll__track { flex-direction: column; width: auto; transform: none !important; padding-inline: var(--gutter); }
  .step { width: auto; min-height: 220px; }
  .step::after { display: none; }
}

/* --------------------------------------------------------------------------
   Manifesto (words light up with scroll)
   -------------------------------------------------------------------------- */
.manifesto {
  margin: 32px 0 0; max-width: 1180px;
  font-family: var(--f-display); font-weight: 500; font-stretch: 100%;
  font-size: clamp(30px, 4.4vw, 64px); line-height: 1.12; letter-spacing: -.035em;
}
.manifesto .w { color: rgba(237, 244, 248, .14); transition: color .5s var(--ease); }
.manifesto .w.is-lit { color: var(--fg); }
.manifesto em .w, .manifesto .w em { font-style: normal; }
.manifesto .w.is-lit em, .manifesto em .w.is-lit { color: var(--accent); }

/* --------------------------------------------------------------------------
   Vision & mission
   -------------------------------------------------------------------------- */
.vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.vm__card { min-height: 240px; gap: 36px; justify-content: space-between; padding: clamp(30px, 3.4vw, 52px); }
.vm__label { display: inline-flex; align-self: flex-start; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.vm__card p { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.22; letter-spacing: -.025em; color: var(--fg); max-width: 30ch; }
.vm__glyph {
  position: absolute; right: -0.06em; bottom: -0.2em; z-index: -1;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(200px, 22vw, 340px); line-height: 1; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(217, 119, 87, .12);
  transition: transform 1s var(--ease), -webkit-text-stroke-color .6s;
}
.vm__card:hover .vm__glyph { transform: translate(-10px, -10px); -webkit-text-stroke-color: rgba(217, 119, 87, .3); }
@media (max-width: 860px) { .vm { grid-template-columns: minmax(0, 1fr); } .vm__card { min-height: 0; } }

/* --------------------------------------------------------------------------
   Careers teaser
   -------------------------------------------------------------------------- */
.teaser {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end;
  padding: clamp(32px, 4.4vw, 64px); border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 100% 100%, rgba(242, 160, 131, .1), transparent 70%),
    radial-gradient(50% 100% at 0% 0%, rgba(217, 119, 87, .06), transparent 70%),
    var(--bg-2);
}
.teaser > div:first-child { display: grid; gap: 20px; }
.teaser__side { display: grid; gap: 28px; justify-items: start; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--fg-2); transition: border-color .3s, color .3s; }
.tags li:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 860px) { .teaser { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   CTA with interactive dot field
   -------------------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; padding-block: clamp(120px, 16vw, 220px); border-top: 1px solid var(--line); text-align: center; }
.cta__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(50% 60% at 50% 50%, rgba(6, 10, 14, .85), rgba(6, 10, 14, .25) 70%, rgba(6, 10, 14, .7)); }
.cta__inner { position: relative; z-index: 2; display: grid; gap: 28px; justify-items: center; }
.cta__inner .lead { color: var(--fg-2); max-width: 560px; margin: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 110px); }
.footer-glow { position: absolute; left: 50%; bottom: -40%; width: 120%; height: 80%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(217, 119, 87, .1), transparent 70%); }
.footer-top { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; }
.footer-lead { display: grid; gap: 22px; justify-items: start; }
.footer-lead p { color: var(--muted); max-width: 36ch; margin: 0; }
.footer-mail { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.03em;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat; padding-bottom: 4px; transition: background-size .6s var(--ease), color .3s; }
.footer-mail:hover { background-size: 100% 1px; color: var(--accent); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer h4 { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--fg-2); transition: color .3s, padding .4s var(--ease); }
.site-footer ul a:hover { color: var(--fg); padding-left: 6px; }
.footer-wordmark {
  position: relative; display: flex; justify-content: center; white-space: nowrap;
  margin-top: clamp(56px, 8vw, 110px); padding-inline: 2vw;
  font-family: var(--f-display); font-weight: 600; font-stretch: 125%; font-size: 12vw; line-height: .78; letter-spacing: .12em; text-indent: .12em;
  color: transparent; -webkit-text-stroke: 1px rgba(237, 244, 248, .14);
  background: linear-gradient(180deg, rgba(237, 244, 248, .14), rgba(237, 244, 248, 0) 80%); -webkit-background-clip: text; background-clip: text;
}
.footer-wordmark .ch { display: inline-block; transform: translateY(60%); opacity: 0; transition: transform 1.2s var(--ease), opacity 1.2s var(--ease); }
.footer-wordmark.is-in .ch { transform: none; opacity: 1; }
.footer-bar { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-block: 24px 28px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.to-top { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); background: none; border-radius: 999px; padding: 8px 14px; font-size: 13px; color: var(--fg-2); transition: border-color .3s, color .3s; }
.to-top svg { width: 13px; height: 13px; transition: transform .4s var(--ease); }
.to-top:hover { border-color: var(--accent); color: var(--accent); }
.to-top:hover svg { transform: translateY(-3px); }
@media (max-width: 760px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

/* Page transition curtain */
.curtain { position: fixed; inset: 0; z-index: 400; pointer-events: none; display: grid; place-items: center;
  background: var(--bg-2); transform: scaleY(0); transform-origin: bottom; will-change: transform; }
.page-transition-pending .curtain { transform: scaleY(1); transform-origin: top; }
.curtain img { width: clamp(220px, 24vw, 320px); max-width: 72vw; height: auto; aspect-ratio: auto; opacity: 0; will-change: opacity, transform; }

/* --------------------------------------------------------------------------
   Sub-page hero
   -------------------------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 88vh; min-height: 88svh; padding: 150px 0 clamp(48px, 7vw, 88px); }
.page-hero--short { min-height: 62vh; min-height: 62svh; }
.page-hero--full { min-height: 100vh; min-height: 100svh; align-items: center; }
.page-hero--full .container { display: grid; gap: 24px; justify-items: start; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 30%, rgba(217, 119, 87, .12), transparent 70%),
    radial-gradient(40% 50% at 15% 80%, rgba(242, 160, 131, .07), transparent 70%);
}
.page-hero__bg::before { /* fading grid */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(60% 70% at 70% 35%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 70% 35%, #000, transparent 75%);
  animation: gridDrift 18s linear infinite;
}
.orbits { position: absolute; right: -8vw; top: 50%; width: min(70vw, 820px); aspect-ratio: 1; transform: translateY(-55%); }
.orbits i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(237, 244, 248, .07); animation: spin 40s linear infinite; }
.orbits i::after { content: ""; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.orbits i:nth-child(2) { inset: 16%; animation-duration: 28s; animation-direction: reverse; }
.orbits i:nth-child(2)::after { background: var(--accent-2); box-shadow: 0 0 14px var(--accent-2); top: 0; left: 50%; }
.orbits i:nth-child(3) { inset: 32%; animation-duration: 20s; }
.page-hero__crumb { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.back-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color .3s, color .3s, transform .5s var(--ease); }
.back-btn svg { width: 15px; height: 15px; }
.back-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateX(-4px); }
.page-hero__title { margin-bottom: clamp(28px, 4vw, 48px); }
.page-hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.page-hero__foot .lead { max-width: 600px; margin: 0; }
.scroll-down { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color .3s, color .3s; }
.scroll-down svg { width: 17px; height: 17px; animation: bob 2.2s var(--ease) infinite; }
.scroll-down:hover { border-color: var(--accent); color: var(--accent); }

/* 404 glitch */
.glitch { position: relative; font-size: clamp(120px, 26vw, 360px); margin: 0; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; }
.glitch::before { color: var(--accent); clip-path: inset(0 0 60% 0); animation: glitch 3s steps(1) infinite; mix-blend-mode: screen; }
.glitch::after { color: var(--accent-2); clip-path: inset(60% 0 0 0); animation: glitch 2.4s steps(1) infinite reverse; mix-blend-mode: screen; }

/* --------------------------------------------------------------------------
   Values list & timeline
   -------------------------------------------------------------------------- */
.values { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.value {
  position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: baseline;
  padding: clamp(24px, 3vw, 38px) 0; border-bottom: 1px solid var(--line);
}
.value::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--accent-dim), transparent 70%); opacity: 0; transition: opacity .5s; }
.value:hover::before { opacity: 1; }
.value__num { font-family: var(--f-mono); font-size: 13px; color: var(--accent); }
.value h3 { font-family: var(--f-display); font-size: clamp(24px, 2.8vw, 40px); letter-spacing: -.035em; transition: transform .6s var(--ease); }
.value:hover h3 { transform: translateX(12px); }
.value p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .value { grid-template-columns: 44px minmax(0, 1fr); } .value p { grid-column: 2; } }

.timeline { --fill: 0; position: relative; list-style: none; margin: 0; padding: 0 0 0 40px; display: grid; gap: clamp(28px, 4vw, 44px); }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; }
.timeline::before { background: var(--line-2); }
.timeline::after { background: linear-gradient(var(--accent-2), var(--accent)); transform-origin: top; transform: scaleY(var(--fill)); box-shadow: 0 0 10px var(--accent); }
.timeline li { position: relative; }
.timeline h3 { font-family: var(--f-display); font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.025em; margin-bottom: 8px; }
.timeline p { color: var(--muted); margin: 0; max-width: 46ch; }
.timeline__dot { position: absolute; left: -40px; top: 6px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); transition: border-color .4s, background-color .4s, box-shadow .4s; }
.timeline li.is-passed .timeline__dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-dim); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__info { display: grid; gap: 32px; }
.contact__info > div { display: grid; gap: 16px; }
.contact__info p { margin: 0; }
.contact-card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); transition: border-color .4s, transform .6s var(--ease);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.contact-card:hover { border-color: rgba(217, 119, 87, .4); }
.contact-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-dim); color: var(--accent); flex: none; }
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-card > span:nth-child(2) { font-family: var(--f-display); font-size: clamp(18px, 1.7vw, 22px); letter-spacing: -.02em; word-break: break-all; }
.contact-card__arrow { width: 18px; height: 18px; margin-left: auto; flex: none; transition: transform .5s var(--ease), color .3s; }
.contact-card:hover .contact-card__arrow { transform: translate(3px, -3px); color: var(--accent); }
.topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics li { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; color: var(--fg-2); }

.form-panel { position: relative; padding: clamp(24px, 3.4vw, 48px); border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line);
  background: radial-gradient(70% 60% at 100% 0%, rgba(217, 119, 87, .06), transparent 70%), var(--bg-2); }
.form-panel__head { margin-bottom: 28px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { position: relative; display: grid; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; padding: 26px 16px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02);
  font-size: 15.5px; outline: none; transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field label {
  position: absolute; left: 17px; top: 18px; font-size: 15px; color: var(--muted); pointer-events: none; transform-origin: left top;
  transition: transform .35s var(--ease), color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); background: rgba(217, 119, 87, .03); box-shadow: 0 0 0 4px var(--accent-dim); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.78); color: var(--fg-2); }
.field input:focus + label, .field textarea:focus + label { color: var(--accent); }
.req { color: var(--accent); }
.field__hint { margin-top: 8px; font-size: 13px; color: var(--muted); }
.check { position: static; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--fg-2); line-height: 1.5; pointer-events: auto; cursor: pointer; }
.field .check { position: static; transform: none; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; padding: 0; border-radius: 6px; border: 1px solid var(--line-2); background: none; display: grid; place-items: center; cursor: pointer; transition: background-color .3s, border-color .3s; }
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .3s var(--ease); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.form__status { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--accent); min-height: 1.4em; }
@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Reveal system (states toggled by core.js)
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 36px, 0); filter: blur(6px);
  transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), filter 1.1s var(--ease); transition-delay: var(--rd, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-reveal="scale"] { transform: scale(.94); filter: none; clip-path: inset(8% 6% 8% 6% round 40px);
  transition: opacity 1.2s var(--ease), transform 1.6s var(--ease), clip-path 1.6s var(--ease); }
.js [data-reveal="scale"].is-in { transform: none; clip-path: inset(0 0 0 0 round calc(var(--radius) + 6px)); }
.js [data-reveal="split"] { opacity: 1; transform: none; filter: none; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-word > span { display: inline-block; transform: translate3d(0, 105%, 0) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); }
.js [data-reveal="split"].is-in .split-word > span { transform: none; }
.no-js .split-word > span { transform: none; }
/* Cards: reveal must not fight the tilt transform */
.js .card[data-reveal].is-in, .js .contact-card[data-reveal].is-in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js [data-reveal].is-in.is-tilting { transition: transform .15s linear, border-color .4s; }

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(110%) rotate(3deg); } to { transform: none; } }
@keyframes bracketIn { from { opacity: 0; transform: scale(2.2); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blip { 0%, 100% { opacity: .15; } 4% { opacity: 1; } 30% { opacity: .15; } }
@keyframes waveX { to { transform: translateX(-50%); } }
@keyframes scan { 0% { background-position: 0 120%; } 100% { background-position: 0 -20%; } }
@keyframes arrowLoop { 0% { transform: none; } 45% { transform: translateX(140%); } 46% { transform: translateX(-140%); } 100% { transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
@keyframes gridDrift { to { background-position: 72px 72px; } }
@keyframes glitch {
  0% { transform: none; } 8% { transform: translate(-4px, 2px); } 10% { transform: none; }
  52% { transform: translate(5px, -2px); } 54% { transform: none; } 80% { transform: translate(-2px, 0); } 81% { transform: none; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero { height: auto; }
  .hero__sticky { position: relative; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; clip-path: none; }
  .split-word > span { transform: none; }
  .footer-wordmark .ch { transform: none; opacity: 1; }
}
