/* =========================================================
   CAPERE — editorial-industrial surveillance aesthetic
========================================================= */

:root {
  --ink: #0B0C0E;
  --ink-2: #121316;
  --ink-3: #1A1C20;
  --bone: #ECE6D5;
  --bone-dim: #B5AE9C;
  --bone-faint: #6A665B;
  --line: #2A2C31;
  --line-soft: #1F2125;
  --signal: #FF3D17;
  --signal-dim: #B52B10;
  --sage: #94AE9A;
  --sage-dim: #5A6F5F;
  --amber: #E6B864;

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-body: "Newsreader", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(20px, 4vw, 56px);
  --radius: 2px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 300;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- overlays: grain + vignette --- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 99;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
}

.mono { font-family: var(--f-mono); font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; }

::selection { background: var(--signal); color: var(--ink); }

a { color: inherit; text-decoration: none; }
em { font-family: var(--f-display); font-style: italic; font-weight: 400; }

/* =========================================================
   TOP STATUS RAIL
========================================================= */
.rail {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad);
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.mark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--bone);
}
.mark-glyph { width: 22px; height: 22px; color: var(--signal); }
.mark-word {
  font-family: var(--f-mono);
  font-weight: 500;
  letter-spacing: 0.28em;
  font-size: 12px;
}

.rail-nav {
  display: flex; gap: 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.rail-nav a { position: relative; padding: 4px 0; transition: color .2s; }
.rail-nav a:hover { color: var(--bone); }
.rail-nav a:hover::after {
  content: ""; position: absolute; left: -6px; top: 50%; width: 3px; height: 3px;
  background: var(--signal); transform: translateY(-50%);
}
@media (max-width: 900px) { .rail-nav { display: none; } }

.rail-right { display: flex; align-items: center; gap: 8px; }

.pill {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--bone-dim);
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink-2);
  transition: color .2s, border-color .2s;
}
.pill-live { color: var(--signal); border-color: color-mix(in srgb, var(--signal) 35%, transparent); }
.pill-key { color: var(--sage); border-color: color-mix(in srgb, var(--sage) 25%, transparent); }
.pill-cta { color: var(--bone); border-color: var(--bone); background: transparent; }
.pill-cta:hover { background: var(--bone); color: var(--ink); }

.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 61, 23, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 61, 23, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 61, 23, 0); }
}

/* =========================================================
   HERO
========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 90px);
  align-items: start;
  padding: clamp(50px, 8vw, 120px) var(--pad) 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(255,61,23,0.08), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(148,174,154,0.06), transparent 60%);
  pointer-events: none;
}
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10.5px; color: var(--bone-dim);
  margin-bottom: 28px;
}
.kicker-dot {
  width: 6px; height: 6px; background: var(--signal); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 61, 23, 0.18);
}

.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(64px, 10vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0 0 34px;
  color: var(--bone);
}
.display em { font-style: italic; color: var(--bone); display: inline-block; }
.display .redact {
  display: inline-block;
  color: var(--ink);
  background: var(--bone);
  padding: 0 0.18em;
  margin-left: -0.12em;
  transform: skew(-2deg);
}

.display-2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
}
.display-2 em { color: var(--signal); }

.lede {
  font-family: var(--f-body);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 52ch;
  margin: 0 0 38px;
  font-weight: 300;
}
.lede-tight { max-width: 56ch; }
.lede em { color: var(--bone); font-style: italic; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--bone);
  background: var(--bone);
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s ease, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary:hover { background: var(--signal); border-color: var(--signal); color: var(--bone); }
.btn-ghost {
  background: transparent; color: var(--bone); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--bone); }

.spec-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin: 0;
  max-width: 640px;
}
.spec-strip div { display: flex; flex-direction: column; gap: 4px; }
.spec-strip dt {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--bone-faint);
}
.spec-strip dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--bone);
}

/* viewfinder */
.viewfinder {
  margin: 0;
  position: relative;
  align-self: start;
  position: sticky;
  top: 90px;
}
.vf-chrome {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10.5px; color: var(--bone-dim);
  padding: 0 2px 10px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 10px;
}
.vf-frame {
  position: relative; aspect-ratio: 4/3;
  background: #050507;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px var(--ink-2),
    0 30px 80px -30px rgba(0,0,0,0.9);
}
.vf-reticle {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 3; pointer-events: none;
  stroke: var(--bone); fill: var(--bone);
  opacity: 0.45;
  stroke-width: 0.4;
}
.vf-reticle rect, .vf-reticle line { stroke-width: 0.4; }

.vf-scene { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.scene-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 70% 30%, rgba(230,184,100,0.25), transparent 60%),
    linear-gradient(180deg, #1a1c22 0%, #0d0e11 55%, #080809 100%);
}
.scene-glow {
  position: absolute; inset: auto 10% 0 10%; height: 55%;
  background: radial-gradient(ellipse at 50% 80%, rgba(255,61,23,0.2), transparent 70%);
  filter: blur(20px);
}
.scene-figure {
  position: absolute; bottom: 8%;
  width: 55px; height: 120px;
  background: linear-gradient(180deg, #1a1c20 0%, #0a0b0d 100%);
  border-radius: 28px 28px 8px 8px;
  filter: blur(0.3px);
}
.scene-figure::before {
  content: ""; position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px; background: #0a0b0d; border-radius: 50%;
}
.scene-figure-a { left: 28%; animation: walk-a 12s ease-in-out infinite alternate; }
.scene-figure-b { right: 22%; animation: walk-b 14s ease-in-out infinite alternate; }
@keyframes walk-a { 0%{transform:translateX(0) scaleY(1);} 50%{transform:translateX(40px) scaleY(1.02);} 100%{transform:translateX(-20px) scaleY(1);} }
@keyframes walk-b { 0%{transform:translateX(0);} 100%{transform:translateX(-60px);} }

.scene-scan {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(148,174,154,0.08) 48%, rgba(148,174,154,0.18) 50%, rgba(148,174,154,0.08) 52%, transparent 100%);
  animation: scan 6s linear infinite;
  mix-blend-mode: screen;
}
@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.vf-overlay {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px;
  font-size: 10px; color: var(--bone);
  pointer-events: none;
}
.vf-row { display: flex; justify-content: space-between; }
.vf-top span:first-child { color: var(--signal); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.dot-red { background: var(--signal); animation: pulse 1.8s ease-out infinite; }

.vf-cap {
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--bone-faint);
  font-style: normal;
}

/* =========================================================
   THE MOMENT — scrubber
========================================================= */
.moment {
  padding: clamp(80px, 10vw, 140px) var(--pad);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.moment-head { max-width: 1100px; margin-bottom: 64px; }

.scrubber {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  padding: clamp(22px, 3vw, 40px);
  margin-bottom: 80px;
  position: relative;
}

.scrub-head {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--bone-dim);
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 24px;
}

.scrub-track {
  position: relative;
  height: 120px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  cursor: crosshair;
  overflow: hidden;
  user-select: none;
}

.scrub-bars {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  gap: 1px;
  padding: 10px 0;
}
.scrub-bars span {
  flex: 1;
  background: var(--bone-faint);
  opacity: 0.35;
  border-radius: 1px;
  transition: background 0.3s;
}

.scrub-window {
  position: absolute; top: 0; bottom: 0;
  background: rgba(255, 61, 23, 0.10);
  border-left: 2px solid var(--signal);
  border-right: 2px solid var(--signal);
  pointer-events: none;
  transition: left 0.25s cubic-bezier(.2,.8,.2,1), width 0.25s cubic-bezier(.2,.8,.2,1);
}

.scrub-head-line {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--bone);
  pointer-events: none;
  transition: left 0.1s linear;
}
.scrub-head-stamp {
  position: absolute; top: -20px; left: 0;
  transform: translateX(-50%);
  font-size: 10px; color: var(--bone);
  white-space: nowrap;
  background: var(--ink); padding: 2px 6px;
  border: 1px solid var(--line);
}

.scrub-now {
  position: absolute; right: 8px; top: 8px;
  font-size: 10px; color: var(--signal);
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.2em;
}

.scrub-controls {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.scrub-presets { display: flex; gap: 6px; }
.scrub-presets button {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent; color: var(--bone-dim);
  border: 1px solid var(--line);
  padding: 9px 14px;
  cursor: pointer;
  transition: all .2s;
}
.scrub-presets button:hover { color: var(--bone); border-color: var(--bone); }
.scrub-presets button.is-active {
  background: var(--bone); color: var(--ink); border-color: var(--bone);
}

.capture-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  background: var(--signal);
  color: var(--bone);
  border: none;
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: transform .15s, background .2s;
  box-shadow: 0 0 0 0 var(--signal);
}
.capture-btn:hover { transform: translateY(-1px); background: #ff5833; }
.capture-btn:active { transform: translateY(0); }
.capture-btn.is-flashing {
  animation: flash 0.6s ease-out;
}
@keyframes flash {
  0%   { box-shadow: 0 0 0 0 rgba(255,61,23,0.9); }
  100% { box-shadow: 0 0 0 40px rgba(255,61,23,0); }
}

.scrub-captures {
  margin-top: 26px;
  display: flex; flex-wrap: wrap; gap: 10px;
  min-height: 50px;
}
.scrub-captures .capture-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--ink-3);
  font-family: var(--f-mono); font-size: 11px;
  color: var(--bone);
  animation: chip-in 0.4s ease-out;
}
.capture-chip .sage { color: var(--sage); }
@keyframes chip-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tenets {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tenets li {
  padding: clamp(24px, 3vw, 40px);
  background: var(--ink);
  position: relative;
}
.tenet-num {
  display: block;
  font-family: var(--f-display); font-style: italic;
  font-size: 40px; color: var(--signal);
  margin-bottom: 16px;
}
.tenets h3 {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 400;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.tenets p { color: var(--bone-dim); margin: 0; }
@media (max-width: 800px) { .tenets { grid-template-columns: 1fr; } }

/* =========================================================
   HARDWARE
========================================================= */
.hardware {
  padding: clamp(80px, 10vw, 140px) var(--pad);
  border-bottom: 1px solid var(--line);
}
.hw-head { max-width: 900px; margin-bottom: 60px; }

.hw-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 860px) { .hw-grid { grid-template-columns: 1fr; } }

.hw-card {
  background: var(--ink);
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 560px;
}

.hw-illo {
  position: relative;
  display: grid; place-items: center;
  padding: 40px;
  background:
    radial-gradient(ellipse at center, var(--ink-3), var(--ink) 70%);
  overflow: hidden;
}
.hw-radial, .hw-grid-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  color: var(--bone-faint); opacity: 0.35;
  pointer-events: none;
}

/* the orb */
.cam-360 {
  position: relative;
  width: 160px; height: 160px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #2a2c32 0%, #0f1014 60%, #050507 100%);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.08),
    inset 0 -40px 80px rgba(0,0,0,0.8),
    0 30px 60px -20px rgba(0,0,0,0.9);
  animation: float 8s ease-in-out infinite;
}
.cam-360 .cam-lens-front {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(148,174,154,0.4), #000 70%);
  box-shadow: 0 0 0 3px #0a0b0d, 0 0 0 4px #2a2c32, inset 0 0 20px rgba(0,0,0,0.9);
}
.cam-360 .cam-lens-front::after {
  content: ""; position: absolute; top: 18%; left: 22%;
  width: 18px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); filter: blur(2px);
}
.cam-360 .cam-ring {
  position: absolute; inset: -12px;
  border: 1px solid rgba(148,174,154,0.3);
  border-radius: 50%;
  animation: ring-pulse 3s ease-in-out infinite;
}
.cam-360 .cam-led {
  position: absolute; bottom: 10px; right: 20px;
  width: 4px; height: 4px; background: var(--signal); border-radius: 50%;
  box-shadow: 0 0 8px var(--signal);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes ring-pulse { 0%, 100% { transform: scale(1); opacity: 0.3; } 50% { transform: scale(1.12); opacity: 0.1; } }

/* sentinel */
.cam-fixed {
  position: relative;
  width: 200px; height: 120px;
}
.cam-fixed .cam-barrel {
  position: absolute; top: 10px; left: 30px;
  width: 140px; height: 90px; border-radius: 10px;
  background: linear-gradient(180deg, #1e2024 0%, #0b0c0e 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.06), 0 20px 40px -15px rgba(0,0,0,0.9);
  border: 1px solid var(--line);
}
.cam-fixed .cam-lens-fixed {
  position: absolute; top: 50%; left: 100px; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(230,184,100,0.3), #000 75%);
  box-shadow: 0 0 0 3px #0a0b0d, 0 0 0 4px #2a2c32;
}
.cam-fixed .cam-lens-fixed::after {
  content: ""; position: absolute; top: 15%; left: 20%;
  width: 12px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.35); filter: blur(1px);
}
.cam-fixed .cam-mount {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 20px;
  background: linear-gradient(180deg, #2a2c32, #0b0c0e);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
}
.cam-fixed .cam-led {
  position: absolute; top: 20px; left: 50px;
  width: 4px; height: 4px; background: var(--signal); border-radius: 50%;
  box-shadow: 0 0 8px var(--signal);
  animation: pulse 1.8s ease-out infinite;
}

.hw-body {
  padding: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.hw-tag { font-size: 10px; color: var(--bone-faint); margin-bottom: 16px; }
.hw-body h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: 52px; line-height: 1;
  margin: 0 0 14px; letter-spacing: -0.015em;
}
.hw-body p { color: var(--bone-dim); margin: 0 0 24px; max-width: 48ch; }

.hw-specs {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
  margin: 0;
}
.hw-specs div { display: flex; flex-direction: column; gap: 3px; font-family: var(--f-mono); }
.hw-specs dt { font-size: 9.5px; color: var(--bone-faint); letter-spacing: 0.18em; }
.hw-specs dd { margin: 0; font-size: 13px; color: var(--bone); }

/* =========================================================
   TRUST MODEL
========================================================= */
.trust {
  padding: clamp(80px, 10vw, 140px) var(--pad);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.trust-head { max-width: 900px; margin-bottom: 60px; }

.flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 0;
  align-items: center;
  padding: 50px 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  margin-bottom: 60px;
}
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow-link { min-height: 60px; }
}

.flow-node {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 20px;
  min-width: 140px;
}
.flow-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--bone);
}
.flow-icon-vault { color: var(--sage); border-color: color-mix(in srgb, var(--sage) 30%, var(--line)); }
.flow-label { font-size: 11px; color: var(--bone); }
.flow-sub {
  font-family: var(--f-mono); font-size: 10.5px; line-height: 1.5;
  text-transform: none; letter-spacing: 0.02em;
  color: var(--bone-faint); text-align: center;
  max-width: 16ch;
}

.flow-link {
  position: relative;
  display: grid; place-items: center;
  min-height: 80px;
  padding: 0 16px;
}
.flow-link-rail {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--line);
}
.flow-link-rail::before, .flow-link-rail::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; background: var(--bone-faint);
}
.flow-link-rail::before { left: 0; }
.flow-link-rail::after { right: 0; }
.flow-cipher {
  position: relative;
  font-size: 10px; letter-spacing: 0.06em;
  text-transform: none;
  color: var(--sage);
  background: var(--ink);
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--sage) 20%, var(--line));
  white-space: nowrap; overflow: hidden;
  max-width: 100%;
  animation: cipher-scroll 14s linear infinite;
}
.flow-link-label {
  position: absolute;
  top: calc(50% + 28px);
  font-size: 9.5px; color: var(--bone-faint); letter-spacing: 0.18em;
}
@keyframes cipher-scroll {
  0% { text-indent: 0; }
  100% { text-indent: -200px; }
}

.trust-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 720px) { .trust-list { grid-template-columns: 1fr; } }
.trust-list li {
  display: flex; gap: 20px;
  padding: 28px;
  background: var(--ink);
}
.trust-list .mono {
  font-size: 36px; color: var(--signal); letter-spacing: 0;
  font-family: var(--f-display); font-style: italic;
  text-transform: none;
  line-height: 1;
}
.trust-list strong { color: var(--bone); font-family: var(--f-body); font-weight: 500; }
.trust-list div { color: var(--bone-dim); }

/* =========================================================
   LOCAL-ONLY MODE
========================================================= */
.local {
  padding: clamp(80px, 10vw, 140px) var(--pad);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.local-toggle {
  position: relative;
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 4px;
  margin-bottom: 48px;
}
.local-toggle button {
  position: relative; z-index: 2;
  padding: 12px 22px;
  background: transparent;
  border: none; cursor: pointer;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone-dim);
  transition: color .25s;
}
.local-toggle button.is-active { color: var(--ink); }
.toggle-thumb {
  position: absolute; z-index: 1;
  top: 4px; left: 4px; height: calc(100% - 8px);
  width: calc(50% - 4px);
  background: var(--bone);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.toggle-thumb.is-right { transform: translateX(100%); }

.local-head { max-width: 900px; margin-bottom: 60px; }

.local-diagram {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 50px 40px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  position: relative;
}
.ld-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  background: var(--ink);
  min-width: 140px;
}
.ld-card svg { width: 48px; height: 48px; color: var(--bone); }
.ld-card .mono { font-size: 11px; color: var(--bone-dim); }
.ld-card.is-sage svg { color: var(--sage); }

.ld-path {
  position: relative;
  height: 60px;
  display: grid; place-items: center;
}
.ld-trace {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
  animation: trace-flow 2.8s linear infinite;
  background-size: 200% 100%;
}
@keyframes trace-flow {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.ld-path-label {
  position: relative;
  font-size: 10px; color: var(--bone-dim);
  background: var(--ink);
  padding: 4px 12px;
  border: 1px solid var(--line);
  z-index: 2;
}

.ld-xcloud {
  position: absolute; top: -30px; right: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--bone-faint);
  opacity: 0;
  transition: opacity .3s;
}
.ld-xcloud svg { width: 50px; height: 34px; }
.ld-xcloud .mono { font-size: 9.5px; letter-spacing: 0.18em; }

/* private mode active state */
body.is-local .ld-card.ld-dest svg { color: var(--sage); }
body.is-local .ld-card.ld-dest .mono::after { content: " · APPLIANCE"; }
body.is-local .ld-xcloud { opacity: 1; }
body.is-local .ld-path-label::after { content: " ONLY"; }

/* =========================================================
   DASHBOARD (APP)
========================================================= */
.app {
  padding: clamp(80px, 10vw, 140px) var(--pad);
  border-bottom: 1px solid var(--line);
}
.app-head { max-width: 900px; margin-bottom: 60px; }

.dashboard {
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid var(--line);
  background: var(--ink-2);
  min-height: 680px;
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.9);
}
@media (max-width: 900px) {
  .dashboard { grid-template-columns: 1fr; }
  .dash-rail { display: none; }
}

.dash-rail {
  border-right: 1px solid var(--line);
  padding: 20px 0;
  display: flex; flex-direction: column;
  background: var(--ink);
}
.dash-rail-head {
  padding: 8px 20px 18px;
  font-size: 10px; color: var(--bone-faint);
  border-bottom: 1px dashed var(--line);
}
.dash-nav { display: flex; flex-direction: column; padding: 14px 0; flex: 1; }
.dash-nav a {
  padding: 11px 20px;
  font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bone-dim);
  display: flex; gap: 12px; align-items: center;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all .2s;
}
.dash-nav a:hover { color: var(--bone); background: var(--ink-2); }
.dash-nav a .mono { color: var(--bone-faint); font-size: 10px; }
.dash-nav a.is-active {
  color: var(--bone);
  border-left-color: var(--signal);
  background: var(--ink-2);
}
.dash-nav a.is-active .mono { color: var(--signal); }

.dash-rail-foot {
  padding: 16px 20px;
  border-top: 1px dashed var(--line);
  font-size: 9.5px; color: var(--bone-faint);
  display: flex; flex-direction: column; gap: 6px;
}
.bar {
  height: 3px; background: var(--line); width: 100%;
}
.bar span { display: block; height: 100%; background: var(--sage); }

.dash-main { display: flex; flex-direction: column; }
.dash-topbar {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 10.5px; color: var(--bone-dim);
  background: var(--ink);
}
.dash-topbar .pulse { display: inline-block; vertical-align: middle; margin-right: 6px; }

.dash-feeds {
  padding: 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  flex: 1;
}
.feed-primary { grid-row: span 2; }
@media (max-width: 760px) {
  .dash-feeds { grid-template-columns: 1fr; grid-template-rows: auto; }
  .feed-primary { grid-row: auto; }
}

.feed {
  margin: 0;
  border: 1px solid var(--line);
  background: #050507;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.feed-chrome {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px;
  font-size: 10px; color: var(--bone-dim);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.feed-scene {
  flex: 1; min-height: 160px;
  position: relative;
  overflow: hidden;
}
.feed-scene .scene-sky, .feed-scene .scene-figure, .feed-scene .scene-scan { position: absolute; }
.feed-scene .scene-sky { inset: 0; }
.feed-scene-b { filter: hue-rotate(40deg); }
.feed-scene-c { filter: hue-rotate(-30deg) brightness(0.6); }
.feed figcaption {
  padding: 6px 12px;
  font-size: 9.5px; color: var(--bone-faint);
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.dash-moments {
  border-top: 1px solid var(--line);
  padding: 18px 22px 22px;
  background: var(--ink);
}
.dm-head {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--bone-faint);
  margin-bottom: 14px;
}
.dm-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.dm-list li {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px; align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.dm-list li:hover { border-color: var(--bone-faint); background: var(--ink-3); }
.dm-list .mono { font-size: 11px; color: var(--bone-faint); }
.dm-list strong { display: block; color: var(--bone); font-weight: 500; font-family: var(--f-body); }
.dm-list em { font-family: var(--f-mono); font-style: normal; font-size: 10px; color: var(--bone-faint); text-transform: uppercase; letter-spacing: 0.1em; }
.pill-sec { color: var(--sage); }
.pill-share { color: var(--amber); }

/* =========================================================
   RESERVE
========================================================= */
.reserve {
  padding: clamp(80px, 10vw, 140px) var(--pad);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) { .reserve { grid-template-columns: 1fr; } }

.res-form {
  display: flex; flex-direction: column; gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.res-form label { display: flex; flex-direction: column; gap: 8px; font-size: 10.5px; color: var(--bone-faint); }
.res-form input, .res-form select {
  background: var(--ink); color: var(--bone);
  border: 1px solid var(--line);
  padding: 14px;
  font-family: var(--f-mono); font-size: 13px;
  outline: none;
  transition: border-color .2s;
}
.res-form input:focus, .res-form select:focus { border-color: var(--bone); }
.res-form button {
  background: var(--signal); color: var(--bone);
  border: none;
  padding: 16px;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.22em; font-weight: 500;
  cursor: pointer;
  transition: background .2s;
}
.res-form button:hover { background: #ff5833; }
.res-ok {
  opacity: 0; transition: opacity .3s;
  color: var(--sage); font-size: 11px; text-align: center;
}
.res-ok.is-on { opacity: 1; }

/* =========================================================
   FOOTER
========================================================= */
.foot {
  padding: 40px var(--pad) 60px;
  display: flex; flex-direction: column; gap: 30px;
}
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-mark {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.28em;
  color: var(--bone);
}
.foot-mark .mark-glyph { color: var(--signal); }
.foot-tag { font-size: 11px; color: var(--bone-faint); letter-spacing: 0.06em; text-transform: none; }
.foot-tag em { color: var(--bone-dim); }
.foot-row-btm { font-size: 10px; color: var(--bone-faint); border-top: 1px dashed var(--line); padding-top: 20px; }
