/* ============================================================
   CypherSquad / OffgridID — concept landing
   Palette mirrors the NFT art: graphite, swamp green, ochre.
   No matrix, no glitch, no 0/1. Just terminal restraint.
   ============================================================ */

:root {
  /* surfaces */
  --bg:            #16181a;
  --bg-elev-1:     #1b1e21;
  --bg-elev-2:     #1f2327;
  --bg-elev-3:     #25292e;
  --panel-edge:    #2a2e33;
  --panel-edge-2:  #3a4047;

  /* ink */
  --ink:           #d6dadf;
  --ink-strong:    #eef0f2;
  --ink-mute:      #8a9097;
  --ink-faint:     #5b6168;

  /* signal — pulled directly from the art */
  --moss:          #7fa66a;   /* primary accent — swamp green */
  --moss-dim:      #5a7d4a;
  --moss-glow:     rgba(127, 166, 106, 0.18);
  --ochre:         #c9a96a;   /* secondary accent */
  --ochre-dim:     #8a7340;
  --rust:          #a07050;
  --signal-red:    #b85c4c;   /* used very sparingly */

  /* type */
  --font-display:  'Space Grotesk', system-ui, sans-serif;
  --font-mono:     'Kode Mono', ui-monospace, Menlo, monospace;

  /* metrics */
  --rad:           2px;        /* hard corners. cyphersquad doesn't do soft. */
  --rad-lg:        4px;
  --gutter:        clamp(20px, 4vw, 56px);
  --line:          1px;

  /* timing */
  --t-fast:        160ms;
  --t-med:         320ms;
  --t-slow:        680ms;
  --ease:          cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}


img { display: block; max-width: 100%; }

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
a:hover { color: var(--moss); border-bottom-color: var(--moss-dim); }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--moss-dim); color: var(--ink-strong); }

/* ---------- pixel art rendering ---------- */
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---------- layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  position: relative;
  padding: clamp(80px, 12vh, 140px) 0;
  border-top: 1px solid var(--panel-edge);
}
section:first-of-type { border-top: none; }

/* ---------- topographic background canvas ---------- */
#mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}
#grain-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  background: rgba(22, 24, 26, 0);
  border-bottom: 1px solid transparent;
  transform: translateY(0);
  transition:
    background   var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease),
    transform    280ms       var(--ease),
    box-shadow   var(--t-med) var(--ease);
}
/* scrolled past hero — show background */
.nav.scrolled {
  background: rgba(22, 24, 26, 0.82);
  border-bottom-color: var(--panel-edge);
  box-shadow: 0 1px 0 rgba(0,0,0,0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 var(--gutter);
  max-width: 1240px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-strong);
  font-size: 15px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
  flex-shrink: 0;
}
.brand-slash { color: var(--ink-faint); font-weight: 300; }
.brand-sub   { color: var(--moss); font-weight: 500; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--ink-strong); border-bottom-color: transparent; }
.nav-x {
  display: flex;
  align-items: center;
  color: var(--ink-mute);
}
.nav-x svg { width: 15px; height: 15px; }
.nav-x:hover { color: var(--ink-strong); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}
@media (max-width: 600px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 60px;
  }
  .hero h1 { font-size: clamp(18px, 6.5vw, 32px); white-space: normal; }
  .hero-lede { font-size: 14px; max-width: 100%; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 32px;
  padding: 5px 11px;
  border: 1px solid var(--moss-dim);
  background: rgba(127, 166, 106, 0.05);
}
.eyebrow-ico {
  width: 14px;
  height: 14px;
  color: var(--moss);
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px var(--moss-glow));
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1;   filter: drop-shadow(0 0 4px var(--moss-glow)); }
  50%      { opacity: 0.55; filter: drop-shadow(0 0 0 transparent); }
}

.hero h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  margin-bottom: 28px;
  white-space: nowrap;
}
.hero h1 .px,
.section-title .px,
.philosophy-quote .px,
.cta-title .px {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero h1 .accent { color: var(--moss); }
.hero h1 .faint  { color: var(--ink-faint); }


.hero-lede {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-mute);
  max-width: 44ch;
  margin-bottom: 40px;
}
.hero-lede strong { color: var(--ink); font-weight: 500; }
.hero-lede a, .layer-desc a {
  color: var(--moss);
  border-bottom: 1px solid rgba(127,166,106,0.35);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.hero-lede a:hover, .layer-desc a:hover {
  color: #a3c98b;
  border-bottom-color: rgba(127,166,106,0.75);
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--panel-edge-2);
  background: var(--bg-elev-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--rad);
  transition: all var(--t-fast) var(--ease);
  position: relative;
}
.btn:hover {
  border-color: var(--moss);
  color: var(--ink-strong);
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--moss);
  border-color: var(--moss);
  color: #0d1410;
  font-weight: 600;
}
.btn.primary:hover {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  box-shadow: 0 0 24px var(--moss-glow);
}
.btn-arrow { font-size: 14px; transition: transform var(--t-fast); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* hero visual — interactive profile card */
.hero-card-stage {
  position: relative;
  perspective: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ---------- profile card — horizontal ID card (CR80 proportions ~1.585:1) ---------- */
.profile-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: 188px 1fr;
  width: 540px;
  height: 340px;
  background: linear-gradient(160deg, #1c1f22 0%, #13151a 60%, #1a1d20 100%);
  border: 1px solid var(--panel-edge-2);
  border-radius: 16px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med);
  box-shadow:
    0 0 0 1px rgba(127,166,106,0.08),
    0 40px 80px -20px rgba(0,0,0,0.8),
    0 8px 24px -8px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* top accent stripe — full width colour band like a gov ID */
.profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--moss) 0%,
    var(--ochre) 40%,
    var(--moss) 70%,
    rgba(127,166,106,0.3) 100%);
  opacity: 0.9;
  z-index: 10;
}

/* diagonal texture */
.profile-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 18px,
    rgba(255,255,255,0.011) 18px,
    rgba(255,255,255,0.011) 19px
  );
  pointer-events: none;
  z-index: 0;
}

/* ---- left column wrapper ---- */
.pc-left {
  position: relative;
  z-index: 1;
  grid-row: 2;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  background: #0c0e10;
  border-right: 1px solid rgba(127,166,106,0.12);
  overflow: hidden;
}

/* ---- avatar zone — fills left col above footer ---- */
.pc-avatar-zone {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.pc-avatar-zone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  image-rendering: pixelated;
  display: block;
}

/* ---- left footer: TOKEN / QR / SIG ---- */
.pc-left-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px 11px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.3);
  gap: 6px;
}
.pc-left-token, .pc-left-sig {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pc-left-sig { align-items: flex-end; }
.pc-left-sig .pc-foot-val { font-size: 9px; }

.pc-qr {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  color: var(--ink-faint);
  opacity: 0.35;
  z-index: 5;
  pointer-events: none;
}
.pc-qr svg { width: 100%; height: 100%; }

/* holographic shimmer */
.pc-holo {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 30%,
    rgba(127,166,106,0.06) 45%,
    rgba(201,169,106,0.08) 50%,
    rgba(127,166,106,0.06) 55%,
    transparent 70%
  );
  background-size: 200% 200%;
  animation: holo-shift 6s ease-in-out infinite alternate;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes holo-shift {
  0%   { background-position: 0% 0%;   opacity: 0.6; }
  50%  { background-position: 100% 50%; opacity: 1;   }
  100% { background-position: 60% 100%; opacity: 0.7; }
}

/* film grain noise on avatar */
.pc-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}

.pc-avatar-tag {
  position: absolute;
  left: 0; bottom: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ochre);
  background: rgba(0,0,0,0.7);
  padding: 3px 8px;
  border-left: 2px solid var(--ochre);
  pointer-events: none;
}

/* ---- right: body ---- */
.pc-body {
  position: relative;
  z-index: 2;
  grid-row: 2;
  grid-column: 2;
  display: flex;
  flex-direction: column;
}

/* top bar — full width, spans both columns */
.pc-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px 11px;
  background: rgba(0,0,0,0.45);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 5;
}
.pc-issuer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pc-head-ico {
  width: 14px;
  height: 14px;
  color: var(--ochre);
  flex-shrink: 0;
}
.pc-issuer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
}
.pc-issuer-dot { color: var(--moss); margin: 0 2px; }
.pc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--moss);
  border: 1px solid rgba(127,166,106,0.35);
  padding: 4px 9px 4px 7px;
  border-radius: 5px;
  background: rgba(127,166,106,0.07);
}
.status-ico {
  width: 11px;
  height: 11px;
  color: var(--moss);
  flex-shrink: 0;
  animation: pulse-glow 2.4s ease-in-out infinite;
}

/* name + bio */
.pc-identity {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.pc-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  line-height: 1.1;
}
.pc-name .domain { color: var(--moss); }
.pc-bio {
  margin-top: 5px;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.45;
}

/* ids list — fills remaining space */
.pc-ids {
  flex: 1;
  padding: 10px 20px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.pc-id-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.045);
}
.pc-id-row:last-child { border-bottom: none; }
.pc-id-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
  font-family: var(--font-mono);
}
.pc-id-ico {
  width: 12px;
  height: 12px;
  color: var(--moss);
  flex-shrink: 0;
  opacity: 0.9;
}
.pc-id-val {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  word-break: break-all;
}
.pc-id-val .tag { color: var(--moss); }

/* shared foot label/val styles (used in pc-left-foot) */
.pc-foot-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.pc-foot-val {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}
.pc-foot-val.sig { color: var(--ochre); }

/* ---------- profile card mobile ---------- */
@media (max-width: 600px) {
  .hero-card-stage { width: 100%; }

  .profile-card {
    width: 100%;
    max-width: 360px;
    height: auto;
    min-height: 0;
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto 1fr;
  }

  /* left col: smaller */
  .pc-left { min-height: 180px; }

  .pc-identity { padding: 12px 14px 10px; }
  .pc-name { font-size: 17px; }
  .pc-bio  { font-size: 11px; }

  .pc-ids { padding: 6px 14px 8px; gap: 0; }
  .pc-id-row { padding: 6px 0; }
  .pc-id-key { font-size: 10px; }
  .pc-id-val { font-size: 11px; }

  .pc-head { padding: 10px 14px 9px; }
  .pc-issuer-label { font-size: 10px; }
  .pc-badge { font-size: 9px; padding: 3px 7px 3px 6px; }

  .pc-left-foot { padding: 7px 10px 8px; }
  .pc-foot-label { font-size: 7px; }
  .pc-foot-val { font-size: 9.5px; }

  .pc-qr { width: 28px; height: 28px; right: 10px; bottom: 9px; }
}

/* avatar swap controls */
.pc-swap {
  display: none;
}
.pc-swap button {
  width: 30px;
  height: 30px;
  background: var(--bg-elev-2);
  border: 1px solid var(--panel-edge-2);
  padding: 3px;
  transition: all var(--t-fast);
  border-radius: var(--rad);
  cursor: pointer;
}
.pc-swap button:hover { border-color: var(--moss); }
.pc-swap button.active { border-color: var(--moss); box-shadow: 0 0 0 2px var(--moss-glow); }
.pc-swap button img { width: 100%; height: 100%; image-rendering: pixelated; }

/* ---------- section headings ---------- */
.section-head { margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 14px;
  padding-left: 18px;
  position: relative;
}
.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 10px; height: 1px;
  background: var(--moss);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.015em;
  color: var(--ink-strong);
  line-height: 1.1;
  max-width: 22ch;
}
.section-lede {
  margin-top: 18px;
  color: var(--ink-mute);
  max-width: 56ch;
  font-size: 15px;
}

/* ---------- manifesto strip ---------- */
.manifesto {
  border-top: 1px solid var(--panel-edge);
  border-bottom: 1px solid var(--panel-edge);
  background: var(--bg-elev-1);
  padding: clamp(60px, 10vh, 100px) 0;
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
@media (max-width: 780px) {
  .manifesto-grid { grid-template-columns: 1fr; }
}
.manifesto-line {
  padding: 22px clamp(20px, 3vw, 36px);
  border-left: 1px solid var(--panel-edge);
}
.manifesto-line:first-child { border-left: none; }
@media (max-width: 780px) {
  .manifesto-line { border-left: none; border-top: 1px solid var(--panel-edge); }
  .manifesto-line:first-child { border-top: none; }
}
.manifesto-line .k {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.manifesto-line .v {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink-strong);
  line-height: 1.25;
}
.manifesto-line .v em {
  font-style: normal;
  color: var(--moss);
}

/* ---------- layers (4 protocol layers) ---------- */
.layers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .layers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .layers-grid { grid-template-columns: 1fr; } }

.layer-card {
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--panel-edge);
  padding: 28px 22px 26px;
  border-radius: var(--rad);
  transition: border-color var(--t-med), transform var(--t-med);
  overflow: hidden;
}
.layer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--moss-glow), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
}
.layer-card:hover { border-color: var(--moss-dim); transform: translateY(-3px); }
.layer-card:hover::before { opacity: 1; }

.layer-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ochre);
  margin-bottom: 18px;
}
.layer-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  color: var(--moss);
}
.layer-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink-strong);
  margin-bottom: 10px;
}
.layer-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-mute);
}

/* ============================================================
   workflow infographic — professional rebuild
   structure: phase header strip → SVG stage → spec legend
   ============================================================ */
.workflow {
  margin-top: 50px;
  position: relative;
}

/* ---------- phase header strip ---------- */
.wf-phases {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 0;
  border: 1px solid var(--panel-edge);
  border-bottom: none;
  border-top-left-radius: var(--rad);
  border-top-right-radius: var(--rad);
  background: linear-gradient(180deg, var(--bg-elev-1) 0%, var(--bg-elev-2) 100%);
  overflow: hidden;
}
@media (max-width: 780px) {
  .wf-phases { grid-template-columns: 1fr; }
}

.wf-phase {
  padding: 18px 22px 16px;
  border-left: 1px solid var(--panel-edge);
  position: relative;
  min-height: 96px;
}
.wf-phase:first-child { border-left: none; }
@media (max-width: 780px) {
  .wf-phase { border-left: none; border-top: 1px solid var(--panel-edge); }
  .wf-phase:first-child { border-top: none; }
}

.wf-phase::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--panel-edge);
}
.wf-phase--online::before  { background: linear-gradient(90deg, var(--moss) 0%, transparent 100%); }
.wf-phase--anchor::before  { background: linear-gradient(90deg, var(--ochre) 0%, transparent 100%); }
.wf-phase--offline::before { background: linear-gradient(90deg, var(--moss-dim) 0%, transparent 100%); }

.wf-phase-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}
.wf-phase-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  padding: 2px 6px;
  border: 1px solid var(--panel-edge-2);
  border-radius: 2px;
  background: var(--bg);
}
.wf-phase-tag {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.wf-phase--online  .wf-phase-tag { color: var(--moss); }
.wf-phase--anchor  .wf-phase-tag { color: var(--ochre); }
.wf-phase--offline .wf-phase-tag { color: var(--ink-mute); }

.wf-phase-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
  animation: wf-phase-pulse 2.4s ease-in-out infinite;
}
.wf-phase--online  .wf-phase-pulse { background: var(--moss);     box-shadow: 0 0 8px var(--moss-glow); }
.wf-phase--anchor  .wf-phase-pulse { background: var(--ochre);    box-shadow: 0 0 8px rgba(201, 169, 106, 0.45); animation-delay: 0.6s; }
.wf-phase--offline .wf-phase-pulse { background: var(--moss-dim); box-shadow: 0 0 6px rgba(127, 166, 106, 0.3); animation-delay: 1.2s; }

@keyframes wf-phase-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50%      { opacity: 1;    transform: scale(1.1); }
}

.wf-phase-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-strong);
  letter-spacing: 0.005em;
  margin-bottom: 2px;
}
.wf-phase-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* ---------- SVG stage ---------- */
.wf-stage {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(127, 166, 106, 0.04), transparent 60%),
    linear-gradient(180deg, var(--bg-elev-1) 0%, var(--bg) 100%);
  border: 1px solid var(--panel-edge);
  border-top: none;
  border-radius: 0;
  overflow: hidden;
  padding: 0;
}

/* corner crosshairs — small "+" marks at the stage corners */
.wf-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 2;
}
.wf-corner::before, .wf-corner::after {
  content: "";
  position: absolute;
  background: var(--panel-edge-2);
}
.wf-corner::before { left: 0; right: 0; top: 50%; height: 1px; }
.wf-corner::after  { top: 0; bottom: 0; left: 50%; width: 1px; }
.wf-corner--tl { top: 10px;    left: 10px;  }
.wf-corner--tr { top: 10px;    right: 10px; }
.wf-corner--bl { bottom: 10px; left: 10px;  }
.wf-corner--br { bottom: 10px; right: 10px; }

.wf-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(to right,  var(--panel-edge) 1px, transparent 1px),
    linear-gradient(to bottom, var(--panel-edge) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
}

.wf-svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  z-index: 1;
}

.wf-step-bands {
  opacity: 0.55;
  stroke-dasharray: 2 12;
}
.wf-edge-live {
  stroke-dasharray: 12 18;
  animation: wf-dash 1.6s linear infinite;
  filter: drop-shadow(0 0 5px rgba(127, 166, 106, 0.4));
}
@keyframes wf-dash {
  to { stroke-dashoffset: -30; }
}

.wf-ogid .wf-frame,
.wf-bundle .wf-frame {
  filter: drop-shadow(0 0 16px rgba(127, 166, 106, 0.1));
}
.wf-anchor .wf-frame {
  filter: drop-shadow(0 0 16px rgba(201, 169, 106, 0.12));
}

/* SVG node frame: stroke recolor on hover (no transform — it conflicts with SVG translate) */
.wf-node .wf-frame {
  transition: stroke var(--t-med), filter var(--t-med);
}
.wf-node:hover .wf-frame {
  stroke: var(--moss);
  filter: drop-shadow(0 0 8px var(--moss-glow));
}
.wf-anchor:hover .wf-frame {
  stroke: var(--ochre);
  filter: drop-shadow(0 0 10px rgba(201, 169, 106, 0.4));
}

/* halo pulse on anchor */
.wf-anchor .wf-halo {
  transform-origin: center;
  animation: anchor-pulse 4.2s ease-in-out infinite;
}
@keyframes anchor-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1.0;  transform: scale(1.06); }
}

/* halo pulse on OGID and bundle (slower, offset) */
.wf-ogid .wf-halo {
  transform-origin: center;
  animation: anchor-pulse 5s ease-in-out infinite;
  animation-delay: 0.4s;
}
.wf-bundle .wf-halo {
  transform-origin: center;
  animation: anchor-pulse 5s ease-in-out infinite;
  animation-delay: 1.6s;
}

/* moving packets: little glow */
.wf-packet {
  filter: drop-shadow(0 0 6px rgba(127, 166, 106, 0.85));
}

/* ---------- legend / spec cards ---------- */
.wf-legend {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .wf-legend { grid-template-columns: 1fr; } }

.wf-leg-card {
  background: linear-gradient(180deg, var(--bg-elev-1) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--panel-edge);
  border-radius: var(--rad);
  padding: 18px 18px 16px;
  position: relative;
  transition: border-color var(--t-med), transform var(--t-med);
}
.wf-leg-card:hover {
  border-color: var(--panel-edge-2);
  transform: translateY(-1px);
}

.wf-leg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--panel-edge);
}

.wf-leg-swatch {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.wf-leg-swatch.moss  { background: var(--moss); box-shadow: 0 0 8px var(--moss-glow); }
.wf-leg-swatch.ochre { background: var(--ochre); box-shadow: 0 0 8px rgba(201, 169, 106, 0.4); }

.wf-leg-step {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  padding: 2px 6px;
  border: 1px solid var(--panel-edge-2);
  border-radius: 2px;
}

.wf-leg-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-strong);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

.wf-leg-body {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.55;
  margin-bottom: 14px;
}

.wf-leg-specs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px dashed var(--panel-edge);
  padding-top: 10px;
}
.wf-leg-specs > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 10px;
  border-left: 1px solid var(--panel-edge);
}
.wf-leg-specs > div:first-child {
  padding-left: 0;
  border-left: none;
}
.wf-leg-specs dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.wf-leg-specs dd {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-strong);
  margin: 0;
}

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.gallery-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--panel-edge);
  padding: 16px;
  border-radius: var(--rad);
  transition: all var(--t-med);
  position: relative;
}
.gallery-card:hover {
  border-color: var(--moss-dim);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -16px rgba(0,0,0,0.6);
}
.gallery-frame {
  width: 100%;
  aspect-ratio: 1;
  background:
    repeating-conic-gradient(var(--bg-elev-2) 0 25%, var(--bg-elev-3) 0 50%)
    0 0 / 16px 16px;
  border: 1px solid var(--panel-edge);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.gallery-frame img { width: 100%; height: 100%; }
.gallery-frame.empty {
  color: var(--ink-faint);
  font-size: 28px;
  letter-spacing: 0.18em;
  font-family: var(--font-display);
}
.gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.gallery-meta .id { color: var(--ink); letter-spacing: 0.08em; }
.gallery-meta .trait { color: var(--moss); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

.gallery-note {
  margin-top: 32px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- philosophy ---------- */
.philosophy {
  background: var(--bg-elev-1);
  border-top: 1px solid var(--panel-edge);
  border-bottom: 1px solid var(--panel-edge);
}
.philosophy-top {
  margin-bottom: 56px;
}
.philosophy-sub {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-mute);
  max-width: 60ch;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 960px) { .philosophy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .philosophy-grid { grid-template-columns: 1fr; }
  .philosophy-top { margin-bottom: 36px; }
  .offgrid-stats { gap: 10px; }
  .offgrid-stat-val { font-size: 22px; }
}

.philosophy-quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
  margin-top: 16px;
}
.philosophy-quote .em { color: var(--moss); }
.philosophy-quote .dim { color: var(--ink-faint); }

.philosophy-offgrid {
  padding: 20px 24px;
  border: 1px solid var(--panel-edge-2);
  border-left: 2px solid rgba(127,166,106,0.3);
  background: rgba(127,166,106,0.03);
  border-radius: var(--rad);
}
.offgrid-stats {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.offgrid-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 60px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--panel-edge);
  border-radius: var(--rad);
  text-align: center;
}
.offgrid-stat-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--moss);
  line-height: 1;
}
.offgrid-stat-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.trust-model {
  padding: 20px 24px;
  border: 1px solid var(--panel-edge-2);
  border-left: 2px solid var(--moss-dim);
  background: rgba(127,166,106,0.03);
  border-radius: var(--rad);
  margin-top: 0;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ochre);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.trust-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
  margin-bottom: 22px;
}
.trust-body .em { color: var(--ink); font-weight: 500; }
.trust-pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--panel-edge);
  border-radius: var(--rad);
  overflow: hidden;
}
.trust-pillar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  gap: 10px;
}
.trust-pillar:last-child { border-bottom: none; }
.trust-pillar strong {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--moss);
  white-space: nowrap;
}
.trust-pillar span {
  font-size: 10.5px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  text-align: right;
}
.trust-pillar--result strong { color: var(--ink-strong); }
.trust-pillar--result { background: rgba(255,255,255,0.02); }
.trust-divider { display: none; }

.philosophy-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--panel-edge-2);
  border-radius: var(--rad);
  overflow: hidden;
}
.phil-list-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ochre);
  text-transform: uppercase;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--panel-edge);
  background: rgba(0,0,0,0.2);
}
.philosophy-list .row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.philosophy-list .row:last-child { border-bottom: none; }
.philosophy-list .k {
  color: var(--ochre);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 1px;
  font-family: var(--font-mono);
}
.philosophy-list .v { color: var(--ink); font-size: 12.5px; }

/* ---------- radio identity block ---------- */
.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 600px) {
  .radio-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: clamp(80px, 14vh, 140px) 0;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  line-height: 1.1;
  max-width: 18ch;
  margin: 0 auto 22px;
}
.cta-title .accent { color: var(--moss); }
.cta-lede {
  max-width: 50ch;
  margin: 0 auto 36px;
  color: var(--ink-mute);
  font-size: 16px;
}
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--panel-edge);
  padding: 40px 0 50px;
  font-size: 12px;
  color: var(--ink-faint);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner .left { letter-spacing: 0.08em; }
.footer-inner .right { display: flex; gap: 24px; }
.footer-inner a { color: var(--ink-mute); }

/* ---------- footer mobile ---------- */
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-inner .right { gap: 16px; }
}

/* ---------- section padding mobile ---------- */
@media (max-width: 600px) {
  section { padding: clamp(56px, 10vh, 100px) 0; }
  .section-head { margin-bottom: 36px; }
  .manifesto { padding: clamp(48px, 8vh, 80px) 0; }
  .workflow { margin-top: 32px; }
  .wf-stage { overflow-x: auto; }
  .wf-stage .wf-svg-v2 {
    width: 880px;
    max-width: none;
  }
  .wf-stage .wf-grid { width: 880px; }
  .wf-corner { display: none; }
  .wf-legend { gap: 10px; }
  .wf-leg-card { padding: 14px 14px 12px; }
  .wf-leg-body { font-size: 11.5px; }
  .wf-leg-specs dd { font-size: 11px; }
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* ---------- z-stacking ---------- */
.wrap, section { position: relative; z-index: 2; }

/* ---------- global mobile safety ---------- */
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  body { font-size: 14px; }
  .btn { padding: 11px 18px; font-size: 12px; }
  .section-title { font-size: clamp(24px, 7vw, 34px); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
