/* ==========================================================
   Sensify Edge — hi-fi landing
   ========================================================== */

:root {
  /* Sensify brand */
  --navy: #000228;
  --sun: #ffc84d;
  --amber: #ff9725;
  --ember: #ff3a38;
  --crimson: #bb1838;
  --paper: #f6f6f2;
  --sand-1: #edede4;
  --sand-2: #e5e4d7;
  --sand-3: #d3d2bc;

  /* Edge derivations */
  --void: #00010f;
  --deep: #030625;
  --ink-2: rgba(246, 246, 242, .72);
  --muted: rgba(246, 246, 242, .52);
  --faint: rgba(246, 246, 242, .32);
  --line: rgba(246, 246, 242, .1);
  --line-2: rgba(246, 246, 242, .22);
  --grad: linear-gradient(90deg, var(--sun), var(--amber) 35%, var(--ember) 70%, var(--crimson));

  --sans: "Geist", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 64px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--void); scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--amber); outline-offset: 4px; }
::selection { background: var(--amber); color: var(--void); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .idx { color: var(--amber); }
.h-display { font-size: clamp(44px, 7vw, 112px); font-weight: 300; letter-spacing: -.045em; line-height: .92; }
.h-1 { font-size: clamp(36px, 5vw, 76px); font-weight: 300; letter-spacing: -.04em; line-height: .98; }
.h-2 { font-size: clamp(28px, 3.2vw, 48px); font-weight: 300; letter-spacing: -.03em; line-height: 1.04; }
.h-3 { font-size: 22px; font-weight: 400; letter-spacing: -.015em; line-height: 1.2; }
.lede { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.body { font-size: 15px; line-height: 1.6; color: var(--muted); }
.mono { font-family: var(--mono); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(96px, 12vw, 176px) 0; }
.section-head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 88px); max-width: 880px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line-2); transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { border-color: var(--paper); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--paper); color: var(--void); border-color: var(--paper); }
.btn-primary:hover { background: var(--sun); border-color: var(--sun); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav::before { content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0,1,15,.7), rgba(0,1,15,0)); transition: opacity .4s; }
.nav.scrolled::before { opacity: 0; }
.nav.scrolled { background: rgba(0, 1, 15, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.lockup { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.lockup svg { width: 28px; height: 28px; }
.lockup .sep { width: 1px; height: 18px; background: var(--line-2); }
.lockup .edge { font-weight: 300; color: var(--ink-2); }
.nav-links { text-shadow: 0 0 10px rgba(0,1,15,.6); display: flex; gap: 32px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.nav-links a { position: relative; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--paper); }
.nav-links a::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--amber); opacity: 0; transform: scale(0); transition: all .3s var(--ease); }
.nav-links a.active::after { opacity: 1; transform: none; }
.nav-cta { height: 40px; }
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger i { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--paper); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger i:nth-child(1) { top: 16px; } .burger i:nth-child(2) { top: 23px; }
.nav.open .burger i:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav.open .burger i:nth-child(2) { top: 20px; transform: rotate(-45deg); }
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .mobile-menu {
    display: grid; gap: 4px; position: fixed; inset: 72px 0 auto 0; padding: 16px var(--gutter) 32px;
    background: rgba(0, 1, 15, .96); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav.open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 22px; letter-spacing: -.01em; }
  .mobile-menu .btn { margin-top: 20px; justify-content: center; }
}

/* ==========================================================
   HERO — film montage
   ========================================================== */
.hero { position: relative; min-height: max(100svh, 680px); padding-top: 112px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-film { position: absolute; inset: 0; background: #000; }
.hero-film video, .hero-film img { width: 100%; height: 100%; object-fit: cover; }
.hero-film::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,1,15,.55) 0%, rgba(0,1,15,0) 22%, rgba(0,1,15,0) 45%, rgba(0,1,15,.92) 100%),
    linear-gradient(90deg, rgba(0,1,15,.75) 0%, rgba(0,1,15,.2) 55%, rgba(0,1,15,0) 100%);
}
.grain::before {
  content: ""; position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

.hero-hud {
  position: absolute; z-index: 2; top: 104px; right: var(--gutter);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; line-height: 1.8; text-align: right; color: var(--ink-2);
  border-right: 1px solid var(--line-2); padding-right: 14px;
  text-shadow: 0 0 12px rgba(0,1,15,.9), 0 0 2px rgba(0,1,15,.9);
}
.hero-hud .k { color: var(--amber); }
.hero-hud span { display: block; transition: opacity .4s; }

.hero-content { position: relative; z-index: 2; padding-bottom: 40px; }
.hero-content .eyebrow { margin-bottom: 24px; }
.hero h1 { max-width: 19ch; margin-bottom: 24px; font-size: clamp(44px, min(6.2vw, 9.6vh), 112px); }
.hero .lede { margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ticks { position: relative; width: min(280px, 60%); height: 2px; margin-top: clamp(28px, 5vh, 48px); background: var(--line-2); }
.hero-ticks i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--amber); }
@keyframes tick { to { width: 100%; } }

.hero-stats { position: relative; z-index: 2; border-top: 1px solid var(--line-2); }
.hero-stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 22px 0 28px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat .v { font-family: var(--mono); font-size: clamp(20px, 2vw, 30px); font-weight: 300; letter-spacing: -.02em; margin-top: 10px; }
@media (max-width: 760px) {
  .hero { min-height: max(100svh, 720px); padding-top: 120px; }
  .hero-hud { top: 88px; font-size: 10px; }
  .hero-stats .stat + .stat { padding-left: 12px; }
  .hero-stats .stat .v { font-size: 18px; }
  .stat { padding: 16px 0 18px; }
  .hero-ticks { margin-top: 32px; }
}

/* ==========================================================
   LOOK CLOSER — film band
   ========================================================== */
.band { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; background: #000; }
.band-media { position: absolute; inset: 0 0 0 auto; width: min(62%, 900px); }
.band-media video, .band-media img { position: absolute; inset: 6% 0; width: 100%; height: 88%; object-fit: contain; object-position: center; }
.band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0,0,0,0) 40%), linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 25%); }
.band-copy { position: relative; z-index: 2; display: grid; gap: 28px; max-width: 620px; }
@media (max-width: 900px) {
  .band { min-height: 0; flex-direction: column; align-items: stretch; padding-bottom: 72px; }
  .band-media { position: relative; width: 100%; height: 72vh; inset: auto; }
  .band-media::after { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 45%); }
  .band-copy { margin-top: -80px; }
}

/* ==========================================================
   WHY
   ========================================================== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.why-item { padding: 32px 32px 40px 0; display: grid; gap: 16px; align-content: start; }
.why-item + .why-item { padding-left: 32px; border-left: 1px solid var(--line); }
.why-item .num { font-family: var(--mono); font-size: clamp(40px, 4.4vw, 68px); font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.why-item .num small { font-size: .4em; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } .why-item + .why-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

.latency { margin-top: 72px; display: grid; gap: 18px; }
.lat-row { display: grid; grid-template-columns: 160px 1fr 80px; gap: 20px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.lat-row .label { color: var(--muted); text-transform: uppercase; }
.lat-row .track { height: 2px; background: var(--line); position: relative; }
.lat-row .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--faint); transition: width 1.6s var(--ease); }
.lat-row.e1 .fill { background: var(--grad); box-shadow: 0 0 16px rgba(255,151,37,.6); }
.lat-row.e1 .label, .lat-row.e1 .ms { color: var(--paper); }
.lat-row .ms { text-align: right; color: var(--muted); }
.latency.in .fill { width: var(--w); }
.lat-note { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--faint); text-transform: uppercase; margin-top: 6px; }
@media (max-width: 600px) { .lat-row { grid-template-columns: 96px 1fr 56px; gap: 12px; font-size: 11px; } }

/* ==========================================================
   NETWORK
   ========================================================== */
.network { overflow: hidden; padding: clamp(72px, 8vw, 128px) 0; }
.network .stat .v { font-size: clamp(18px, 1.6vw, 24px); }
.network .stat { padding: 16px 0 18px; }
.network .region-stats .stat:nth-child(even) { padding-left: 20px; }
.network-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.network-copy { display: grid; gap: 22px; align-content: start; position: relative; z-index: 2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 34px; padding: 0 14px; border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px; transition: all .25s var(--ease);
}
.chip:hover { color: var(--paper); border-color: var(--faint); }
.chip.on { color: var(--void); background: var(--paper); border-color: var(--paper); }
.region-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.region-stats .stat:nth-child(3) { padding-left: 0; border-left: 0; }
.region-stats .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px var(--sun); }
.status-pill.expanding i { background: transparent; border: 1px solid var(--amber); box-shadow: none; animation: pulse 1.6s infinite; }
.globe-wrap { position: relative; aspect-ratio: 1; width: 100%; max-width: min(100%, 78vh); margin-left: auto; cursor: grab; touch-action: pan-y; }
.globe-wrap:active { cursor: grabbing; }
.globe-wrap canvas { width: 100%; height: 100%; }
.globe-tag {
  position: absolute; pointer-events: none; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; line-height: 1.7;
  color: var(--ink-2); border-left: 1px solid var(--amber); padding-left: 8px; opacity: 0; transition: opacity .4s;
  white-space: nowrap;
}
.globe-tag.show { opacity: 1; }
.globe-legend { position: absolute; left: 0; bottom: 0; display: flex; gap: 20px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.globe-legend span { display: inline-flex; align-items: center; gap: 8px; }
.globe-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
@media (max-width: 900px) { .network-grid { grid-template-columns: 1fr; } .globe-wrap { max-width: 560px; margin: 0 auto; } }

/* ==========================================================
   E1
   ========================================================== */
.e1-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); }
.e1-stage { position: sticky; top: 96px; align-self: start; }
.e1-figure { position: relative; aspect-ratio: 4 / 5; width: min(100%, calc((100svh - 150px) * 4 / 5)); margin: 0 auto; overflow: hidden; background: transparent; }
.e1-figure img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten; }
.e1-figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px 30px var(--void); }
.hotspot { position: absolute; z-index: 2; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 1px solid var(--paper); background: rgba(0,1,15,.4); transition: all .4s var(--ease); }
.hotspot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--paper); transition: background .4s; }
.hotspot.on { width: 22px; height: 22px; margin: -11px 0 0 -11px; border-color: var(--amber); box-shadow: 0 0 0 8px rgba(255,151,37,.15), 0 0 24px rgba(255,151,37,.6); }
.hotspot.on::after { background: var(--amber); inset: 6px; }
.hotspot-label {
  position: absolute; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--void); color: var(--paper); padding: 6px 10px; border: 1px solid var(--line-2); white-space: nowrap;
  transform: translate(18px, -50%); opacity: 0; transition: opacity .3s, left .5s var(--ease), top .5s var(--ease);
}
.hotspot-label.show { opacity: 1; }
.e1-caption { display: flex; justify-content: space-between; width: min(100%, calc((100svh - 150px) * 4 / 5)); margin: 14px auto 0; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.e1-specs { display: grid; gap: 0; padding: 8vh 0 6vh; }
.e1-specs .intro { display: grid; gap: 24px; margin-bottom: 48px; }
.spec {
  display: grid; gap: 10px; padding: 28px 0; border-top: 1px solid var(--line); cursor: pointer;
  opacity: .38; transition: opacity .5s var(--ease);
}
.spec:last-child { border-bottom: 1px solid var(--line); }
.spec.on { opacity: 1; }
.spec .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.spec.on .k .n { color: var(--amber); }
.spec .v { font-size: clamp(20px, 1.8vw, 26px); font-weight: 300; letter-spacing: -.02em; }
.spec .d { font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 900px) {
  .e1-grid { grid-template-columns: 1fr; }
  .e1-stage { top: 72px; z-index: 3; background: var(--void); padding-bottom: 12px; }
  .e1-figure, .e1-caption { width: min(100%, calc(44svh * 4 / 5)); }
  .e1-specs { padding: 24px 0; }
  .spec { opacity: 1; }
}

/* ==========================================================
   PRODUCTS
   ========================================================== */
.products { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.product {
  position: relative; display: flex; flex-direction: column; gap: 22px; padding: 36px 32px 32px; min-height: 560px;
  border-right: 1px solid var(--line); overflow: hidden; transition: background .5s var(--ease);
}
.product:last-child { border-right: 0; }
.product::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 80%;
  background: radial-gradient(closest-side, rgba(255,151,37,.22), transparent); opacity: 0; transition: opacity .6s var(--ease);
}
.product:hover { background: var(--deep); }
.product:hover::before { opacity: 1; }
.product > * { position: relative; }
.layers { display: flex; gap: 4px; }
.layers i { width: 32px; height: 3px; background: var(--line-2); }
.layers i.on { background: var(--grad); }
.product h3 { font-size: clamp(36px, 3.4vw, 52px); font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.product ul { list-style: none; margin-top: auto; font-family: var(--mono); font-size: 12px; }
.product li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.product li span:first-child { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.product .btn { justify-content: space-between; }
@media (max-width: 960px) {
  .products { grid-template-columns: 1fr; }
  .product { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .product:last-child { border-bottom: 0; }
}

/* ==========================================================
   INTERLUDE — full-bleed film band
   ========================================================== */
.interlude { position: relative; height: 92vh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; background: #000; }
.interlude video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.interlude::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--void) 0%, rgba(0,1,15,0) 25%, rgba(0,1,15,0) 55%, var(--void) 100%); }
.interlude-copy { position: relative; z-index: 2; padding-bottom: clamp(56px, 10vh, 120px); }
.interlude-hud { position: absolute; z-index: 2; top: 18%; right: var(--gutter); display: grid; gap: 4px; text-align: right; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border-right: 1px solid var(--line-2); padding-right: 14px; }
.interlude-hud .k { color: var(--amber); }

/* ---------- product visuals ---------- */
.product-visual { position: relative; aspect-ratio: 16 / 10; margin: -8px -8px 8px; border: 1px solid var(--line); background: rgba(3,6,37,.6); overflow: hidden; }
.product-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-tag { position: absolute; left: 12px; bottom: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.dash { display: grid; align-content: start; gap: 10px; padding: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.dash-head { display: flex; justify-content: space-between; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.dash-head .live { display: inline-flex; align-items: center; gap: 6px; color: var(--ember); }
.dash-head .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); animation: pulse 1.6s infinite; }
.dash-alert { display: grid; gap: 2px; padding: 8px 10px; border-left: 2px solid var(--ember); background: rgba(255,58,56,.08); }
.dash-alert b { font-weight: 500; color: var(--paper); }
.dash-alert span { color: var(--muted); }
.dash-row { display: flex; justify-content: space-between; color: var(--ink-2); }
.dash-row .grad-text { font-size: 18px; }
.dash-bar { height: 3px; background: var(--line); }
.dash-bar i { display: block; height: 100%; background: var(--grad); }
.dash-spark { width: 100%; height: 36px; }

/* ==========================================================
   USE CASES
   ========================================================== */
.cases-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.cases-nav { display: flex; gap: 8px; }
.cases-nav button { width: 48px; height: 48px; border: 1px solid var(--line-2); font-family: var(--mono); transition: border-color .2s; }
.cases-nav button:hover { border-color: var(--paper); }
.cases-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 30vw, 420px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter); margin: 0 calc(var(--gutter) * -1); scroll-padding: 0 var(--gutter);
}
.cases-track::-webkit-scrollbar { display: none; }
.case { scroll-snap-align: start; display: grid; gap: 18px; align-content: start; }
.case-visual { position: relative; aspect-ratio: 4 / 3; background: var(--deep); overflow: hidden; border: 1px solid var(--line); }
.case-visual canvas, .case-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-visual .bbox { position: absolute; border: 1px solid var(--amber); }
.case-visual .bbox span { position: absolute; top: -18px; left: -1px; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; background: var(--amber); color: var(--void); padding: 2px 5px; white-space: nowrap; }
.case-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-2); padding: 5px 9px; width: fit-content; color: var(--ink-2); }
.case h3 { font-size: 22px; font-weight: 400; letter-spacing: -.015em; }

/* ==========================================================
   PRIVACY
   ========================================================== */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.privacy-points { display: grid; gap: 0; margin-top: 16px; }
.privacy-points div { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.privacy-points .n { font-family: var(--mono); font-size: 11px; color: var(--amber); padding-top: 3px; }
.flow-svg { width: 100%; height: auto; overflow: visible; }
.flow-svg text { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; fill: var(--muted); text-transform: uppercase; }
.flow-svg .title { fill: var(--paper); font-size: 13px; }

/* ==========================================================
   DEVELOPERS
   ========================================================== */
.dev-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.dev-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 12px 0 8px; }
.dev-features div { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.dev-features div:nth-child(odd) { padding-right: 16px; }
.dev-features b { font-weight: 400; font-size: 15px; }
.dev-features span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.code { border: 1px solid var(--line-2); background: #04051a; min-width: 0; }
@media (max-width: 900px) {
  .dev-grid, .privacy-grid { grid-template-columns: 1fr; }
  .code pre { font-size: 12px; padding: 20px; min-height: 0; }
}
@media (max-width: 520px) { .dev-features { grid-template-columns: 1fr; } .dev-features div:nth-child(odd) { padding-right: 0; } }
.code-tabs { display: flex; border-bottom: 1px solid var(--line); }
.code-tabs button { padding: 14px 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); position: relative; }
.code-tabs button.on { color: var(--paper); }
.code-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); }
.code-tabs .copy { margin-left: auto; }
.code pre { display: none; padding: 28px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.85; color: var(--sand-2); min-height: 280px; }
.code pre.on { display: block; }
.code .c { color: rgba(246,246,242,.32); } .code .k { color: var(--amber); } .code .s { color: var(--sun); } .code .ok { color: #7ee2a8; } .code .p { color: var(--ember); }

/* ==========================================================
   HOSTS — daylight
   ========================================================== */
.hosts { background: var(--sand-1); color: var(--navy); }
.hosts .eyebrow, .hosts .body { color: rgba(0,2,40,.56); }
.hosts .lede { color: rgba(0,2,40,.72); }
.hosts-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.host-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 12px; border-top: 1px solid var(--sand-3); }
.host-steps div { padding: 22px 16px 0 0; display: grid; gap: 10px; }
.host-steps .n { font-family: var(--mono); font-size: 11px; color: var(--crimson); letter-spacing: .1em; }
.host-steps b { font-weight: 400; font-size: 19px; letter-spacing: -.01em; line-height: 1.2; }
.hosts .btn { border-color: var(--navy); color: var(--navy); }
.hosts .btn:hover { background: var(--navy); color: var(--paper); }
.host-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.host-photo img { width: 100%; height: 100%; object-fit: cover; }
.host-photo .tag { position: absolute; left: 16px; bottom: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; line-height: 1.7; background: rgba(237,237,228,.9); color: var(--navy); padding: 8px 12px; }
@media (max-width: 900px) { .hosts-grid { grid-template-columns: 1fr; } .host-steps { grid-template-columns: 1fr; } .host-steps div { padding: 16px 0; border-bottom: 1px solid var(--sand-3); } }

/* ==========================================================
   VISION
   ========================================================== */
.vision { overflow: hidden; }
.vision .section-head { max-width: none; }
.vision-bg { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line-2); }
.timeline::after { content: ""; position: absolute; left: 0; width: 25%; top: 5px; height: 1px; background: var(--grad); }
.milestone { position: relative; padding: 36px 24px 0 0; display: grid; gap: 10px; }
.milestone::before { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--void); border: 1px solid var(--faint); }
.milestone.now::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 16px var(--amber); }
.milestone .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.milestone.now .k { color: var(--amber); }
.milestone b { font-weight: 300; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.025em; line-height: 1.1; }
.milestone span { font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 28px; }
  .timeline::before { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline::after { left: 5px; top: 0; width: 1px; height: 25%; background: linear-gradient(var(--sun), var(--amber)); }
  .milestone { padding: 0 0 36px; }
  .milestone::before { left: -28px; top: 4px; }
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); }
.contact h2 { font-size: clamp(48px, 7vw, 120px); font-weight: 300; letter-spacing: -.05em; line-height: .9; }
.contact-copy { display: grid; gap: 28px; align-content: start; }
form { display: grid; gap: 26px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; height: 52px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line-2); transition: all .25s var(--ease); }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { color: var(--paper); background: var(--deep); box-shadow: inset 0 -2px 0 var(--amber); }
.seg input:focus-visible + span { outline: 1px solid var(--amber); outline-offset: -3px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--paper);
  font: 300 20px var(--sans); padding: 10px 0; outline: none; resize: none; transition: border-color .25s;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--amber); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot small { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }
.form-success { display: none; gap: 16px; padding: 40px 0; border-top: 1px solid var(--line-2); }
.form-success .h-2 { max-width: 16ch; }
.sent form { display: none; }
.sent .form-success { display: grid; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.footer ul a:hover { color: var(--paper); }
.footer-mark { margin-top: 72px; font-size: clamp(56px, 15vw, 240px); font-weight: 300; letter-spacing: -.06em; line-height: .8; white-space: nowrap; background: linear-gradient(180deg, rgba(246,246,242,.14), rgba(246,246,242,0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 0; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: span 2; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
