/* ==========================================================================
   Pocket Logic — main.css
   Tokens + all styles, organized by section. No build step.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0B1220;
  --ink-2: #101A2E;
  --paper: #EDF1F7;
  --paper-2: #E1E7F0;
  --line: rgba(148, 170, 200, 0.18);
  --line-paper: rgba(11, 18, 32, 0.12);
  --cyan: #3EC6E0;
  --signal: #FF6B35;
  --signal-text: #1A0D06;
  --text: #E8EDF5;
  --text-paper: #0B1220;
  --muted: #8A98B0;
  --muted-paper: #5A6478;

  --font-display: "Clash Display", "Switzer", system-ui, sans-serif;
  --font-body: "Switzer", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1440px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
svg { display: block; }

/* Selection */
::selection { background: var(--cyan); color: var(--ink); }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- Type helpers ---------- */
.h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.h1 { font-size: clamp(40px, 7vw, 84px); font-weight: 600; }
.h2 { font-size: clamp(32px, 5.2vw, 64px); }
.h3 { font-size: clamp(24px, 3.2vw, 40px); }
.h4 { font-size: clamp(18px, 2vw, 24px); font-weight: 500; }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono.on-paper { color: var(--muted-paper); }
.mono-label { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js-anim .mono-label { clip-path: inset(0 100% 0 0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(62, 198, 224, 0.15);
  flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .eyebrow .dot.live { animation: pulse-dot 2.4s ease-in-out infinite; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section { position: relative; }
.section-paper { background: var(--paper); color: var(--text-paper); }
.section-ink { background: var(--ink); color: var(--text); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 6vw, 64px);
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.section-paper .section-head { border-top-color: var(--line-paper); }
.section-head .mono { padding-top: 14px; }

/* Corner tick decoration */
.tick {
  position: relative;
}
.tick::before, .tick::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--line);
}
.tick::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.tick::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--text);
  padding: 10px 16px;
  border: 1px solid var(--cyan);
  z-index: 300;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.nav.is-solid {
  background: var(--ink);
  border-bottom-color: var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}
.nav-brand img { width: 28px; height: 28px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a:not(.btn) {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.25s var(--ease-out);
}
.nav-links a:not(.btn):hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 20px;
  border: 1px solid transparent;
}
.btn-solid {
  background: var(--signal);
  color: var(--signal-text);
  font-weight: 500;
}
.btn-solid:hover { background: #ff7d4d; }
.btn-outline {
  border-color: var(--line);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle {
  display: none;
  width: 32px;
  height: 22px;
  position: relative;
  z-index: 250;
}
.nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.is-open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 220;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  gap: 28px;
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 44px);
  font-weight: 500;
}
.mobile-menu .btn { align-self: flex-start; margin-top: 12px; }

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

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.hero-intro-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
  /* Width/height set in px by hero-intro.js to match its raster buffer exactly —
     never `inset:0`, which would stretch the canvas to track a live-reflowing
     .hero box and desync it from the particle coordinate math. */
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 520px);
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-copy .eyebrow { margin-bottom: 24px; }
.hero h1 {
  overflow: hidden;
}
.hero h1 .line {
  overflow: hidden;
  display: block;
}
.hero h1 .line span {
  display: block;
  will-change: transform;
}
@media (min-width: 901px) {
  .hero h1 .line { white-space: nowrap; }
}
.hero-sub {
  margin-top: 28px;
  max-width: 52ch;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
}
.hero-ctas {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-trace {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 480px;
  margin-right: calc(var(--gutter) * -1);
  margin-top: calc(var(--gutter) * -0.5);
}
.hero-trace svg { width: 100%; height: 100%; overflow: visible; }
.hero-logo-dock {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15%;
  height: 15%;
  min-width: 44px;
  min-height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 22%;
}
/* Visible by default — reduced-motion / repeat visits skip the canvas intro
   entirely, so the dock must already be in place with nothing to fade in.
   hero-intro.js hides it inline only when it's actually about to animate it,
   then adds .is-docked to crossfade it back in as the particles arrive. */
.hero-logo-dock.is-docked { transition: opacity 0.45s var(--ease-out); }
.hero-scroll-cue {
  position: absolute;
  bottom: 20px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}
.hero-scroll-cue .rule { flex: 1; height: 1px; background: var(--line); }

@media (max-height: 800px) {
  .hero-scroll-cue { display: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-trace { max-height: 340px; opacity: 0.6; order: -1; margin: 0; }
}

/* ---------- Capabilities ---------- */
.capabilities { padding: clamp(80px, 12vw, 160px) 0; }
.cap-body {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 64px;
}
.cap-list { position: sticky; top: 120px; align-self: start; }
.cap-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  cursor: pointer;
  opacity: 0.25;
  transition: opacity 0.35s var(--ease-out);
  border: 0;
  background: none;
  text-align: left;
  width: 100%;
}
.cap-item .marker {
  width: 10px; height: 1px;
  background: var(--muted);
  transition: background 0.3s, width 0.3s;
  flex-shrink: 0;
}
.cap-item .word {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
}
.cap-item.is-active { opacity: 1; }
.cap-item.is-active .marker { background: var(--signal); width: 20px; }

.cap-panel { min-height: 320px; position: relative; }
.cap-pane {
  display: none;
  animation: fadeUp 0.5s var(--ease-out);
}
.cap-pane.is-active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.cap-pane p {
  font-size: clamp(18px, 2vw, 24px);
  max-width: 46ch;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cap-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.cap-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-left: 14px;
  position: relative;
}
.cap-tags span::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 1px;
  background: var(--cyan);
}

@media (max-width: 780px) {
  .cap-body { grid-template-columns: 1fr; gap: 8px; }
  .cap-list { position: static; }
  .cap-item { opacity: 1; }
  .cap-pane { display: none; padding: 8px 0 24px 24px; }
  .cap-item.is-active + .cap-pane,
  .cap-pane.is-open { display: block; }
}

/* ---------- Selected work ---------- */
.work { padding: clamp(80px, 12vw, 160px) 0; }
.work-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line-paper);
  position: relative;
}
.work-row:last-child { border-bottom: 1px solid var(--line-paper); }
.work-num { font-family: var(--font-mono); font-size: 13px; color: var(--muted-paper); }
.work-row > a.work-link { display: contents; }
.work-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 10px 0;
}
.work-meta .chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-paper);
  border: 1px solid var(--line-paper);
  padding: 3px 8px;
}
.work-desc { max-width: 60ch; color: var(--muted-paper); font-size: 15px; }
.work-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-paper);
  background: var(--paper-2);
}
.work-thumb-pan { width: 100%; height: 100%; }
.work-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.5s var(--ease-out);
}
.work-row:hover .work-thumb img { transform: scale(1); }
.work-thumb svg { width: 100%; height: 100%; display: block; }
.work-status {
  position: absolute;
  right: 0; top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}
.work-row.is-soon { opacity: 0.55; }
.work-row.is-soon .work-status { color: var(--muted-paper); }
.work-row.is-soon .work-thumb {
  border-style: dashed;
  display: flex; align-items: center; justify-content: center;
}
.work-row.is-soon .work-thumb svg { width: 60%; height: 60%; }

@media (max-width: 760px) {
  .work-row { grid-template-columns: 40px 1fr; }
  .work-thumb { grid-column: 1 / -1; order: 3; aspect-ratio: 16/9; }
}

/* ---------- Exploded system ---------- */
.exploded {
  padding: clamp(60px, 10vw, 100px) 0;
  background: var(--ink-2);
  min-height: 100vh;
}
.exploded-inner {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  min-height: 80vh;
}
.exploded-copy p {
  margin-top: 20px;
  font-size: clamp(18px, 2.2vw, 26px);
  font-family: var(--font-display);
  font-weight: 500;
  max-width: 32ch;
  letter-spacing: -0.01em;
}
/* System map: phone centered, DATA / LOGIC panels + AI core wired to it by
   traces. Desktop uses a fixed 860x640 coordinate space so the absolutely
   positioned elements and the trace SVG's viewBox line up exactly. */
.sysmap {
  position: relative;
  width: 860px;
  max-width: 100%;
  height: 640px;
  margin: 0 auto;
}
.sysmap-phone {
  position: absolute;
  left: 316px;
  top: 128px;
  width: 228px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--ink);
  padding: 8px;
  z-index: 2;
}
.sysmap-phone img { width: 100%; height: auto; border-radius: 16px; }
.sysmap-panel {
  position: absolute;
  width: 246px;
  padding: 12px 10px 10px;
  border: 1px solid var(--line);
  background: var(--ink);
  z-index: 2;
}
.sysmap-panel .mono { display: block; font-size: 10px; color: var(--cyan); margin-bottom: 10px; }
.sysmap-panel svg { width: 100%; height: auto; }
.sysmap-data { left: 12px; top: 196px; }
.sysmap-logic { left: 602px; top: 196px; }
.sysmap-core {
  position: absolute;
  left: 385px;
  top: 0;
  width: 90px;
  text-align: center;
  z-index: 2;
}
.sysmap-core .mono { display: block; font-size: 10px; color: var(--signal); margin-bottom: 4px; white-space: nowrap; }
.sysmap-core svg { width: 74px; height: 74px; margin: 0 auto; }
.sysmap-traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.ai-pulse { animation: ai-pulse 2.2s ease-in-out infinite; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .ai-pulse { animation: none; } }
@keyframes ai-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

@media (max-width: 900px) {
  .exploded-inner { grid-template-columns: 1fr; min-height: 0; }
  /* Static column: core → panels → phone, no traces, no pin. */
  .sysmap {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .sysmap-phone, .sysmap-panel, .sysmap-core { position: static; }
  .sysmap-phone { width: min(240px, 70vw); order: 4; }
  .sysmap-panel { width: min(280px, 84vw); }
  .sysmap-core { order: 1; }
  .sysmap-data { order: 2; }
  .sysmap-logic { order: 3; }
  .sysmap-traces { display: none; }
}

/* ---------- Screen filmstrip ---------- */
.screens {
  padding: clamp(60px, 10vw, 100px) 0;
  background: var(--ink-2);
  overflow: hidden;
}
.screens .section-head { margin-bottom: clamp(24px, 4vw, 40px); }
.screens-track-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 8px;
}
.screens-track {
  display: flex;
  gap: 24px;
  width: max-content;
}
.screen-cell {
  flex-shrink: 0;
  width: 72vw;
  scroll-snap-align: start;
}
.phone-frame {
  border-radius: 22px;
  border: 1px solid rgba(62, 198, 224, 0.28);
  background: rgba(16, 26, 46, 0.94);
  padding: 10px;
  overflow: hidden;
}
.phone-frame img { width: 100%; height: auto; display: block; border-radius: 14px; }
.screen-frame img { width: 100%; height: auto; display: block; }
.screen-annot {
  display: block;
  margin-top: 14px;
  text-align: center;
}

@media (min-width: 901px) {
  .screens-track-wrap {
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 0;
  }
  .screens-track { padding: 0 var(--gutter); will-change: transform; }
  .screen-cell { width: 300px; }
}

/* ---------- Process ---------- */
.process { padding: clamp(80px, 12vw, 160px) 0; }
.process-body { display: grid; grid-template-columns: 40px 1fr; gap: 32px; }
.process-line { position: relative; width: 1px; background: var(--line); }
.process-line-fill {
  position: absolute; top: 0; left: 0; width: 100%;
  height: 0%; background: var(--cyan);
  transform-origin: top;
}
.process-stage {
  padding: 32px 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
}
.process-stage:last-child { border-bottom: 1px solid var(--line); }
.process-node {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--muted);
  margin-left: -44.5px; margin-top: 6px;
  transition: background 0.3s, border-color 0.3s;
}
.process-stage.is-active .process-node { background: var(--cyan); border-color: var(--cyan); }
.process-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.process-stage h3 { margin-top: 6px; }
.process-stage p { margin-top: 8px; color: var(--muted); max-width: 50ch; }

@media (max-width: 640px) {
  .process-stage { grid-template-columns: 1fr; }
  .process-node { margin-left: 0; }
}

/* ---------- About ---------- */
.about { padding: clamp(80px, 12vw, 160px) 0; }
.about-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 48px;
}
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.about-body p + p { margin-top: 20px; color: var(--muted-paper); font-size: 16px; max-width: 58ch; }
.about-notes { border-left: 1px solid var(--line-paper); padding-left: 24px; }
.about-notes .note { margin-bottom: 20px; }
.about-notes .note .mono { display: block; margin-bottom: 4px; }
.about-notes .note strong { font-family: var(--font-display); font-size: 18px; font-weight: 500; }

@media (max-width: 780px) {
  .about-body { grid-template-columns: 1fr; }
}

/* ---------- Start a project ---------- */
.start {
  padding: clamp(100px, 16vw, 200px) 0;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.start h2 { margin-top: 24px; max-width: 16ch; }
.start-email {
  display: inline-block;
  margin-top: 48px;
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  position: relative;
}
.start-email-underline {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--cyan);
  transform-origin: left center;
}
@media (prefers-reduced-motion: no-preference) {
  .js-anim .start-email-underline { transform: scaleX(0); }
}
.start-note { margin-top: 24px; max-width: 50ch; color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer .mono a:hover { color: var(--text); }

/* ---------- Case study page ---------- */
.case-hero { padding: 140px 0 60px; }
.case-hero h1 { margin-top: 16px; }
.case-summary { margin-top: 20px; font-size: clamp(16px, 1.8vw, 20px); color: var(--muted); max-width: 60ch; }
.meta-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.meta-grid dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.meta-grid dd { margin-top: 6px; font-family: var(--font-display); font-size: 18px; font-weight: 500; }

.case-section { padding: clamp(60px, 10vw, 120px) 0; }
.case-section h2 { max-width: 20ch; }
.case-section .body-copy { margin-top: 24px; max-width: 62ch; font-size: 17px; }
.case-section.section-paper .body-copy { color: var(--muted-paper); }
.case-section.section-ink .body-copy { color: var(--muted); }

.screens-list { margin-top: 48px; display: flex; flex-direction: column; gap: 64px; }
.screen-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.screen-row:nth-child(even) { direction: rtl; }
.screen-row:nth-child(even) > * { direction: ltr; }
.screen-frame {
  max-width: 340px;
  margin: 0 auto;
  padding: 10px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.screen-row img { display: block; width: 100%; border-radius: 12px; }
.screen-row .mono { margin-bottom: 12px; display: block; }
.screen-row h3 { margin-bottom: 12px; }
.screen-row p { color: var(--muted); max-width: 42ch; }

@media (max-width: 760px) {
  .screen-row { grid-template-columns: 1fr; direction: ltr !important; }
  .screen-row > * { direction: ltr !important; }
}

.system-diagram {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.system-diagram > div {
  background: var(--ink);
  padding: 28px 20px;
}
.system-diagram .mono { display: block; margin-bottom: 10px; }
.system-diagram p { color: var(--muted); font-size: 14px; }

.case-cta {
  padding: clamp(80px, 14vw, 160px) 0;
  text-align: left;
}

/* ---------- In-fabrication schematic thumb ---------- */
.schematic-thumb { color: var(--muted-paper); }
.schematic-thumb rect, .schematic-thumb line, .schematic-thumb circle {
  stroke: var(--muted-paper);
}

/* ---------- Reveal utility ---------- */
[data-reveal] {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .js-anim [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
