/* ─────────────────────────────────────────────────────────────────
   Stromatic Labs — base sheet
   Mono+sans, deep neutrals, single accent. Light/dark via [data-mode].
   Project hover morphs --accent so the page subtly takes on that brand.
   ───────────────────────────────────────────────────────────────── */

:root {
  --bg: #080808;
  --bg-1: #0e0e0e;
  --bg-2: #151515;
  --bg-elevated: #1c1c1c;
  --fg: #f5f5f2;
  --fg-1: rgba(245, 245, 242, 0.68);
  --fg-2: rgba(245, 245, 242, 0.42);
  --fg-3: rgba(245, 245, 242, 0.18);
  --rule: rgba(245, 245, 242, 0.07);
  --rule-2: rgba(245, 245, 242, 0.14);
  --accent: #6dffb0;
  --accent-dim: #4bc48a;
  --accent-soft: rgba(109, 255, 176, 0.12);
  --accent-glow: rgba(109, 255, 176, 0.18);
  --mentioned: #6dffb0;
  --media: #3b82f6;
  --labs: #22d3ee;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);

  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 4px;
  --ease-out: cubic-bezier(0.22, 0.68, 0.2, 1);

  --pad: clamp(20px, 4vw, 56px);
  --col-max: 1280px;

  color-scheme: dark;
}

[data-mode="light"] {
  --bg: #f4f4f1;
  --bg-1: #ffffff;
  --bg-2: #ebebe6;
  --bg-elevated: #ffffff;
  --fg: #0a0a0a;
  --fg-1: rgba(10, 10, 10, 0.68);
  --fg-2: rgba(10, 10, 10, 0.44);
  --fg-3: rgba(10, 10, 10, 0.2);
  --rule: rgba(10, 10, 10, 0.07);
  --rule-2: rgba(10, 10, 10, 0.14);
  --accent: #178f5c;
  --accent-dim: #127048;
  --accent-soft: rgba(23, 143, 92, 0.1);
  --accent-glow: rgba(23, 143, 92, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  transition: background 0.6s ease, color 0.4s ease;
}
body.menu-open { overflow: hidden; overscroll-behavior: none; }

#root { min-height: 100dvh; }

.boot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  min-height: 40dvh;
  padding: clamp(48px, 12vh, 120px) var(--pad);
  font-family: var(--mono);
  color: var(--fg-2);
}
.boot-mark {
  width: 22px;
  height: 22px;
  border: 1px solid var(--fg-2);
  border-radius: 2px;
  animation: boot-pulse 1.2s ease-in-out infinite;
}
.boot-text {
  font-size: 12px;
  letter-spacing: 0.06em;
}
@keyframes boot-pulse {
  0%, 100% { border-color: var(--fg-2); }
  50% { border-color: var(--accent); }
}

::selection { background: var(--accent); color: #0a0a0a; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; }

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  background: var(--accent);
  color: #080808;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 12px;
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.icon-btn:focus-visible,
.hero-cta:focus-visible,
.pillar:focus-visible,
.contact-cell:focus-visible,
.social-row:focus-visible,
.live-pill:focus-visible {
  outline-offset: 2px;
}

/* Page frame ────────────────────────────────────────────── */
.frame {
  max-width: var(--col-max);
  margin: 0 auto;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}

.desktop-only { display: inline-flex; }

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

/* Top bar ───────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  position: relative;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-glyph-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--fg);
}
.brand-name { font-family: var(--mono); }
.brand-name .slash { color: var(--fg-2); margin: 0 6px; }
.brand-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex; gap: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-1);
}
.nav-links a {
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::before { transform: scaleX(1); }

.menu-btn { display: none; }
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-bars { position: relative; }
.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-bars::before { top: -5px; }
.menu-bars::after { top: 5px; }
.menu-bars.open { background: transparent; }
.menu-bars.open::before { top: 0; transform: rotate(45deg); }
.menu-bars.open::after { top: 0; transform: rotate(-45deg); }

.nav-backdrop {
  display: none;
}

@media (max-width: 720px) {
  .menu-btn { display: grid; }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 52px 0 0 0;
    z-index: 40;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  [data-mode="light"] .nav-backdrop { background: rgba(0, 0, 0, 0.25); }
  .nav-links {
    z-index: 45;
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--pad) 16px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    border-bottom: 1px solid var(--rule);
    backdrop-filter: blur(14px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
}

.icon-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  color: var(--fg-1);
  cursor: pointer;
  transition: all 0.15s;
}
.icon-btn:hover { color: var(--fg); border-color: var(--fg-2); }
.icon-btn svg { width: 14px; height: 14px; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 8px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-size: 11px;
  color: var(--fg-1);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.focus-pill:hover {
  color: var(--fg);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Status dot ────────────────────────────────────────────── */
.dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dot-color, var(--accent));
  box-shadow: 0 0 0 0 var(--dot-color, var(--accent));
  animation: dot-pulse 2.4s ease-out infinite;
  flex-shrink: 0;
}
.dot.idle { animation: none; }
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dot-color, var(--accent)) 60%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Hero ──────────────────────────────────────────────────── */
.hero {
  padding: clamp(48px, 9vh, 120px) 0 clamp(48px, 8vh, 100px);
  position: relative;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(70vw, 640px);
  height: min(70vw, 640px);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.9;
}
.hero-meta {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.hero-meta .key { color: var(--fg-2); }
.hero-meta .val { color: var(--fg-1); text-transform: none; letter-spacing: 0.02em; font-size: 12px; }

.hero-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(40px, 7.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  max-width: 12ch;
}
.hero-title em {
  font-style: normal;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.62em;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  display: block;
  margin-top: 18px;
  max-width: 42ch;
  line-height: 1.4;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 13px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--rule-2));
  border-radius: var(--radius);
  color: var(--accent);
  background: var(--accent-soft);
  margin-bottom: 8px;
  box-shadow: 0 0 0 0 transparent;
  transition: background 0.25s var(--ease-out), color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.hero-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #080808;
  box-shadow: 0 8px 32px var(--accent-glow);
  transform: translateY(-1px);
}
[data-mode="light"] .hero-cta:hover { color: #f4f4f1; }
.hero-cta:hover svg { transform: translate(2px, -2px); }

.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.hero-strip > div {
  padding: 18px 18px 18px 0;
  border-right: 1px solid var(--rule);
}
.hero-strip > div:last-child { border-right: 0; padding-right: 0; }
.hero-strip > div:not(:first-child) { padding-left: 18px; }
.hero-strip .k {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 6px;
}
.hero-strip .v { font-size: 14px; color: var(--fg); }

@media (max-width: 720px) {
  .hero-meta { grid-template-columns: 1fr; gap: 8px; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-strip > div:nth-child(2) { border-right: 0; }
  .hero-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}

/* Section heading ───────────────────────────────────────── */
.sect {
  padding: clamp(56px, 10vh, 112px) 0;
  border-top: 1px solid var(--rule);
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}
.sect-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  margin-bottom: 36px;
  align-items: baseline;
}
.sect-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.sect-no .dot-inline {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
}
.sect-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  max-width: 18ch;
}
.sect-sub {
  font-size: 14px;
  color: var(--fg-1);
  max-width: 60ch;
  margin: 12px 0 0;
}
@media (max-width: 720px) {
  .sect-head { grid-template-columns: 1fr; gap: 10px; }
}

/* Pillars ───────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.pillar {
  display: grid;
  grid-template-columns: 56px 200px 1fr 280px;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  position: relative;
  align-items: start;
  transition: background 0.25s ease;
}
.pillar:hover { background: var(--bg-1); }
[data-mode="light"] .pillar:hover { background: var(--bg-2); }
.pillar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--p-color, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.2,.7,.3,1);
}
.pillar:hover::before { transform: scaleX(1); }
.pillar.featured::before {
  transform: scaleX(1);
  opacity: 0.85;
}
.pillar.featured {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent-soft) 80%, transparent) 0%,
    transparent 55%
  );
  padding-left: 4px;
  margin-left: -4px;
}
.pillar.featured:hover {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent-soft) 100%, var(--bg-1)) 0%,
    var(--bg-1) 55%
  );
}
.pillar.featured .pillar-name { color: var(--fg); }
.pillar.featured .chip:first-child {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--rule-2));
  color: var(--accent);
}
.pillar-no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
  padding-top: 4px;
}
.pillar-kind {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-1);
  padding-top: 4px;
  display: flex; align-items: center; gap: 8px;
}
.pillar-body { }
.pillar-name {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 4px;
  font-family: var(--sans);
}
.pillar-name .domain {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-2);
  margin-left: 8px;
}
.pillar-tag { color: var(--fg-1); font-size: 14px; margin: 6px 0 10px; max-width: 50ch; }
.pillar-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  color: var(--fg-1);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
  transition: border-color 0.2s, color 0.2s;
}
.pillar:hover .chip {
  border-color: color-mix(in srgb, var(--p-color, var(--accent)) 25%, var(--rule-2));
}
.pillar-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-1);
  padding-top: 4px;
}
.pillar-meta .row { display: flex; justify-content: space-between; padding: 3px 0; }
.pillar-meta .row .k { color: var(--fg-2); }
.pillar-arrow {
  position: absolute;
  right: 0; top: 28px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: var(--fg-2);
  transition: transform 0.3s, color 0.2s;
}
.pillar:hover .pillar-arrow { color: var(--p-color, var(--accent)); transform: translate(4px, -4px); }
@media (max-width: 900px) {
  .pillar { grid-template-columns: 40px 1fr; gap: 14px; padding-right: 44px; }
  .pillar-kind,
  .pillar-body,
  .pillar-meta { grid-column: 2; }
  .pillar-arrow { right: 0; top: 24px; }
}

/* Marquee ───────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 14px 0;
  content-visibility: auto;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg-1) 40%, var(--bg));
  mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 56px;
  animation: marquee 38s linear infinite;
  padding-right: 56px;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-1);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.marquee-item::after {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Now ──────────────────────────────────────────────────── */
.now-grid { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.now-list {
  border-top: 1px solid var(--rule);
}
.now-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  font-size: 14px;
}
.now-row .date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.now-row .what { color: var(--fg); }
.now-row .what em {
  font-family: var(--mono); font-style: normal;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 0.85em;
}
[data-mode="light"] .now-row .what em { color: var(--accent); }
.now-row .meta {
  font-family: var(--mono); font-size: 11px; color: var(--fg-2);
  text-transform: uppercase; letter-spacing: 0.06em;
}
@media (max-width: 720px) {
  .now-grid { grid-template-columns: 1fr; }
  .now-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Manifesto / about ─────────────────────────────────────── */
.manifesto-grid { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.manifesto {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 22ch;
  color: var(--fg);
  margin: 0 0 28px;
}
.manifesto .accent { color: var(--accent); font-family: var(--mono); font-weight: 400; font-size: 0.85em; }
.about-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.about-cols h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin: 0 0 10px;
}
.about-cols p { margin: 0; color: var(--fg-1); font-size: 14px; line-height: 1.5; }
@media (max-width: 720px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; gap: 22px; }
}

/* Contact ───────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
}
.contact-cell {
  padding: 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s;
}
.contact-cell:nth-child(2n) { border-right: 0; }
.contact-cell:nth-last-child(-n+2) { border-bottom: 0; }
.contact-cell:hover { background: var(--bg-elevated); }
.contact-cell .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.contact-cell .val {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg);
  word-break: break-all;
}
.contact-cell:hover .val { color: var(--accent); }

.channel-group-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--rule);
}

.social-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-top: 0;
}
.social-group {
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.social-group:last-child { border-right: 0; }
.social-list { display: flex; flex-direction: column; flex: 1; }
.social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-1);
  transition: background 0.2s, color 0.2s;
}
.social-row:last-child { border-bottom: 0; }
.social-row:hover { background: var(--bg-1); color: var(--fg); }
.social-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--fg-2);
}
.social-icon svg { width: 100%; height: 100%; display: block; }
.social-row:hover .social-icon { color: var(--fg); }
.social-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.social-text .name { color: inherit; line-height: 1.2; }
.social-text .handle {
  font-size: 11px;
  color: var(--fg-2);
  line-height: 1.2;
}
.social-row:hover .social-text .handle { color: var(--fg-1); }
.social-row:hover .arrow { color: var(--accent); transform: translate(2px, -2px); }
.social-row .arrow { flex-shrink: 0; transition: transform 0.2s, color 0.2s; }
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-cell { border-right: 0; }
  .contact-cell:nth-child(2n) { border-right: 0; }
  .contact-cell:not(:last-child) { border-bottom: 1px solid var(--rule); }
  .contact-cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .contact-cell:last-child { border-bottom: 0; }
  .social-groups { grid-template-columns: 1fr; }
  .social-group { border-right: 0; border-bottom: 1px solid var(--rule); }
  .social-group:last-child { border-bottom: 0; }
}

/* Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg-1) 30%, var(--bg));
  padding: 40px 0 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.04em;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-grid .right { display: flex; gap: 20px; align-items: center; }

/* Schematic background — very subtle grid in hero */
.schematic-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 72% 28%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 72% 28%, #000 0%, transparent 72%);
  opacity: 0.85;
}

/* Reveal on scroll (class toggled by JS) */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Corner ticks */
.ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ticks::before, .ticks::after,
.ticks .tl, .ticks .tr {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--fg-3);
}
.ticks::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.ticks::after  { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.ticks .tl     { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.ticks .tr     { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ── Mobile polish (≤720px) ─────────────────────────────── */
@media (max-width: 720px) {
  :root { --pad: clamp(16px, 4vw, 24px); }

  .desktop-only { display: none !important; }

  .topbar-inner { height: 52px; }
  .topbar-left {
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  .brand-mark { min-width: 0; }
  .brand-name { font-size: 11px; white-space: nowrap; }

  .nav-links {
    -webkit-backdrop-filter: blur(14px);
    max-height: calc(100dvh - 52px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }
  .nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 13px;
  }
  .nav-mentioned {
    color: var(--accent) !important;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 4px;
  }
  .nav-mentioned::before { display: none; }

  .icon-btn {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }

  .hero {
    padding: clamp(32px, 8vh, 64px) 0 clamp(40px, 6vh, 72px);
  }
  .hero-meta {
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-bottom: 28px;
  }
  .hero-meta .key { grid-column: span 1; }
  .hero-meta .val { grid-column: span 1; }

  .hero-title {
    font-size: clamp(36px, 11vw, 56px);
    max-width: none;
    margin-bottom: 20px;
  }
  .hero-title em {
    font-size: 0.58em;
    max-width: none;
    margin-top: 14px;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 13px;
    margin-bottom: 12px;
    touch-action: manipulation;
  }

  .hero-strip {
    margin-top: 32px;
    grid-template-columns: 1fr 1fr;
  }
  .hero-strip > div {
    padding: 14px 12px;
    border-right: 1px solid var(--rule);
  }
  .hero-strip > div:nth-child(2n) { border-right: 0; }
  .hero-strip > div:not(:first-child) { padding-left: 12px; }
  .hero-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .hero-strip .v { font-size: 13px; word-break: break-word; }

  .sect { padding: clamp(40px, 8vh, 72px) 0; }
  .sect-title { max-width: none; font-size: clamp(22px, 6vw, 30px); }
  .sect-sub { max-width: none; font-size: 14px; line-height: 1.55; }

  .pillar {
    grid-template-columns: 36px 1fr;
    gap: 12px 14px;
    padding: 22px 44px 22px 0;
  }
  .pillar-no { padding-top: 2px; }
  .pillar-kind { grid-column: 2; padding-top: 0; }
  .pillar-body { grid-column: 2; min-width: 0; }
  .pillar-meta { grid-column: 2; width: 100%; }
  .pillar-name {
    font-size: clamp(20px, 5.5vw, 26px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .pillar-name .domain {
    display: block;
    margin-left: 0;
    font-size: 12px;
    word-break: break-all;
  }
  .pillar-tag { max-width: none; font-size: 13px; line-height: 1.5; }
  .pillar-arrow { top: 22px; right: 0; width: 32px; height: 32px; }
  .pillar-meta .row { gap: 12px; }

  .marquee {
    mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent);
  }

  .now-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }
  .now-row .meta { justify-self: start; }

  .manifesto { max-width: none; font-size: clamp(20px, 5.5vw, 26px); }

  .contact-cell {
    padding: 20px 18px;
    min-height: 72px;
    touch-action: manipulation;
  }
  .contact-cell .val { font-size: 13px; }

  .social-row {
    min-height: 48px;
    padding: 14px 16px;
    touch-action: manipulation;
  }
  .social-text .handle { word-break: break-all; }

  .footer {
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-grid .right {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}

@media (max-width: 380px) {
  .hero-meta { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip > div {
    border-right: 0 !important;
    border-bottom: 1px solid var(--rule);
    padding: 12px 0;
  }
  .hero-strip > div:last-child { border-bottom: 0; }
  .hero-strip > div:not(:first-child) { padding-left: 0; }
}

/* Touch feedback */
@media (hover: none) and (pointer: coarse) {
  .pillar:active { background: var(--bg-1); }
  .contact-cell:active,
  .social-row:active,
  .hero-cta:active { opacity: 0.92; }
  .pillar:hover::before { transform: scaleX(0); }
  .pillar.featured::before { transform: scaleX(1); }
}
