/* Versed Studio — site-specific styles on top of colors_and_type.css */

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  background: var(--bg);
  color: var(--fg-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* Reusable pixel-rendering helper */
.pixel {
  font-family: var(--font-pixel);
  -webkit-font-smoothing: none;
  font-smooth: never;
  line-height: 1;
  letter-spacing: 0;
}

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

/* Buttons baseline */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 4px;
  border: 1px solid var(--gray-400);
  background: var(--bg);
  color: var(--fg-1);
  box-shadow: inset -2px -2px 0 0 var(--gray-300);
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
}
.btn:hover  { background: var(--gray-100); }
.btn:active { box-shadow: inset 2px 2px 0 0 var(--gray-300); }

.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: inset -2px -2px 0 0 rgba(0,0,0,0.15);
}
.btn--accent:hover  { background: var(--accent-hover); }

.btn--light {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--gray-400);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo img { height: 22px; image-rendering: pixelated; display: block; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-1);
}
.nav-links a:hover { color: var(--accent); }

/* Eyebrow */
.eyebrow,
p.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 18px;
  line-height: 1;
}

/* Hero */
.hero {
  padding: 88px 0 64px;
  text-align: center;
  position: relative;
}
.hero-mark {
  width: 60px;
  height: auto;
  image-rendering: pixelated;
  margin: 0 auto 28px;
  display: block;
}
.hero h1 {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.75;
  -webkit-font-smoothing: none;
  font-smooth: never;
  margin: 0 0 26px;
  color: var(--fg-1);
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-1);
  max-width: 620px;
  margin: 0 auto 32px;
}
.trust {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-2);
}

/* Stats bar */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
  color: var(--fg-1);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-2);
}

/* Marquee */
.marquee-section {
  padding: 56px 0;
  background: var(--bg);
  position: relative;
}
.marquee-label {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-2);
  margin-bottom: 28px;
}
.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 64px;
  align-items: center;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0);
  opacity: 0.72;
  transition: opacity 200ms ease;
}
.marquee-track img:hover { opacity: 1; }

/* Per-logo height tuning so visual cap-heights match.
   Each logo's PNG bounding box has different internal whitespace,
   so a uniform CSS height makes them look unevenly sized. */
.marquee-track img[src*="hyro"]      { height: 32px; }
.marquee-track img[src*="heybud"]    { height: 26px; }
.marquee-track img[src*="restnest"]  { height: 36px; }
.marquee-track img[src*="adobe"]     { height: 26px; }
.marquee-track img[src*="unilever"]  { height: 24px; }
.marquee-track img[src*="figma"]     { height: 42px; }
.marquee-track img[src*="sentinel"]  { height: 34px; }
.brand-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  opacity: 0.72;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Section */
.section { padding: 96px 0; }
.section--paper { background: var(--paper); }
.section--ink   { background: var(--fg-1); color: #fff; }
.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
  padding: 0 32px;
}
.section-head h2 {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
  margin: 0 0 16px;
  color: inherit;
}
.section-sub {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-1);
  margin: 0 auto;
  max-width: 560px;
}
.section--ink .section-sub { color: rgba(255,255,255,0.72); }
.section--ink .eyebrow     { color: rgba(255,255,255,0.62); }

/* Loop diagram */
.loop-grid {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  grid-template-rows: auto 60px auto;
  gap: 12px;
  align-items: stretch;
}
.loop-box {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.loop-box-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--gray-200);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); }
.dot--c { background: var(--dot-close); }
.dot--m { background: var(--dot-min); }
.dot--x { background: var(--dot-max); }
.loop-box-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-2);
}
.loop-box-body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.loop-num {
  font-family: var(--font-pixel);
  font-size: 28px;
  line-height: 1;
  -webkit-font-smoothing: none;
  font-smooth: never;
  color: var(--accent);
}
.loop-box h3 {
  font-family: var(--font-pixel);
  font-size: 28px;
  line-height: 1;
  -webkit-font-smoothing: none;
  font-smooth: never;
  margin: 0;
  color: var(--fg-1);
}
.loop-box p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}

.loop-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}
.loop-center {
  border: 1.5px solid var(--ink);
  background: var(--bg);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 20px;
  -webkit-font-smoothing: none;
  font-smooth: never;
  color: var(--ink);
  letter-spacing: 0;
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0 var(--accent);
}

/* Why grid */
.why-grid {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.why-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.why-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

/* WHY on dark — sibling of .section--ink */
.section--ink .why-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.10);
}
.section--ink .why-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint-strong);
}
.section--ink .why-num   { color: rgba(255,255,255,0.42); }
.section--ink .why-card h3 { color: #fff; }
.section--ink .why-card p  { color: rgba(255,255,255,0.66); }
.why-num {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-3);
}
.why-card h3 {
  font-family: var(--font-pixel);
  font-size: 28px;
  line-height: 1;
  -webkit-font-smoothing: none;
  font-smooth: never;
  margin: 0;
  color: var(--fg-1);
}
.why-card p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}

/* Founder */
.founder-grid {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: center;
}
.founder-grid--solo {
  grid-template-columns: 1fr;
  max-width: 720px;
  text-align: center;
}
.founder-grid--solo .founder-copy { max-width: 620px; margin: 0 auto; }

.founder-visual {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 18px;
  position: relative;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.12);
}
.founder-portrait {
  aspect-ratio: 4/5;
  background: var(--gray-100);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.founder-portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.founder-portrait-meta {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-1);
  background: rgba(255,255,255,0.92);
  padding: 6px 8px;
  border-radius: 2px;
}
.founder-portrait::before { content: ""; }
.founder-stamp {
  position: absolute;
  bottom: -16px;
  right: -16px;
  border: 1.5px solid var(--ink-soft);
  background: var(--bg);
  padding: 10px 14px;
  border-radius: 3px;
  font-family: var(--font-pixel);
  -webkit-font-smoothing: none;
  font-smooth: never;
  font-size: 18px;
  color: var(--ink-soft);
  transform: rotate(4deg);
  text-align: center;
  line-height: 1;
  box-shadow: 2px 2px 0 var(--accent);
}
.founder-stamp small {
  display: block;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  margin-top: 5px;
  color: var(--ink-soft);
}
.founder-copy h2 {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
  -webkit-font-smoothing: none;
  font-smooth: never;
  margin: 0 0 18px;
}
.founder-copy p:not(.eyebrow) {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-1);
  margin: 0 0 14px;
}
.founder-copy p:not(.eyebrow):last-child { margin-bottom: 0; }

/* CTA */
.cta-section {
  background: var(--paper);
  border-top: 1px solid var(--paper-edge);
  border-bottom: 1px solid var(--paper-edge);
}
.cta-section--white {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.cta-content h2 {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
  -webkit-font-smoothing: none;
  font-smooth: never;
  margin: 0 0 18px;
  color: var(--ink);
}
.cta-content p:not(.eyebrow) {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto 32px;
}

/* Footer */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  max-width: 1200px;
  margin: 0 auto 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo img { height: 30px; image-rendering: pixelated; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 32px 0;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
}

/* =====================================================
   BONUS SECTIONS (experimental — placed at bottom)
   ===================================================== */

/* Common */
.bonus-divider {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 24px 0 12px;
  background: var(--bg);
}
.bonus-divider span {
  display: inline-block;
  padding: 0 12px;
}
.bonus-divider::before,
.bonus-divider::after {
  content: "▮▮▮ ▮▮ ▮";
  letter-spacing: 0;
  color: var(--gray-300);
}

/* -----------------------------
   BONUS 01 — Terminal live log
   ----------------------------- */
.bonus-terminal {
  background: var(--fg-1);
  color: #fff;
  padding: 96px 0;
}
.bonus-terminal .section-head h2,
.bonus-cards .section-head h2,
.bonus-rules .section-head h2,
.bonus-board .section-head h2 { color: inherit; }
.bonus-terminal .section-sub { color: rgba(255,255,255,0.72); }

.terminal-window {
  max-width: 880px;
  margin: 0 auto;
  background: var(--ink-chrome);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}
.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #18181C;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-chrome .loop-box-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
}
.terminal-body {
  padding: 24px 28px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255,255,255,0.82);
}
.terminal-body .ts   { color: rgba(255,255,255,0.42); }
.terminal-body .ok   { color: #4ADE80; }
.terminal-body .warn { color: #FACC15; }
.terminal-body .num  { color: var(--accent); }
.terminal-body .tag  { color: rgba(255,255,255,0.62); }
.terminal-body .prompt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.62);
}
.terminal-caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  animation: blink 700ms steps(2) infinite;
  vertical-align: -2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* -----------------------------
   BONUS 02 — Filing cards (case files)
   ----------------------------- */
.bonus-cards { background: var(--bg); padding: 96px 0; }
.case-stack {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.case-card {
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: 6px;
  padding: 22px 22px 26px;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform 200ms var(--ease-out, ease-out);
}
.case-card:nth-child(1) { transform: rotate(-1.2deg); }
.case-card:nth-child(2) { transform: rotate(0.8deg); }
.case-card:nth-child(3) { transform: rotate(-0.6deg); }
.case-card:nth-child(4) { transform: rotate(1.4deg); }
.case-card:hover { transform: rotate(0deg) translateY(-4px); }
.case-card .client {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-2);
}
.case-card .metric {
  font-family: var(--font-pixel);
  font-size: 44px;
  line-height: 0.95;
  -webkit-font-smoothing: none;
  font-smooth: never;
  color: var(--fg-1);
}
.case-card .metric span {
  font-size: 22px;
  color: var(--accent);
}
.case-card .desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-1);
  margin: 0;
}
.case-card .stamp {
  align-self: flex-start;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--ink-soft);
  padding: 3px 8px;
  border-radius: 2px;
}

/* -----------------------------
   BONUS 03 — Operating principles (manifesto)
   ----------------------------- */
.bonus-rules { padding: 96px 0; background: var(--bg); }
.rules-list {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}
.rule-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}
.rule-row:last-child { border-bottom: 1px solid var(--border); }
.rule-num {
  font-family: var(--font-pixel);
  font-size: 56px;
  line-height: 1;
  -webkit-font-smoothing: none;
  font-smooth: never;
  color: var(--accent);
}
.rule-title {
  font-family: var(--font-pixel);
  font-size: 28px;
  line-height: 1;
  -webkit-font-smoothing: none;
  font-smooth: never;
  margin: 0 0 8px;
}
.rule-body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}

/* -----------------------------
   BONUS 04 — Now shipping board (split-flap inspired)
   ----------------------------- */
.bonus-board { background: var(--fg-1); color: #fff; padding: 96px 0; }
.board-frame {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--ink-chrome);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  overflow: hidden;
}
.board-header {
  display: grid;
  grid-template-columns: 80px 1fr 200px 160px;
  gap: 0;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.board-row {
  display: grid;
  grid-template-columns: 80px 1fr 200px 160px;
  gap: 0;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono);
}
.board-row:last-child { border-bottom: none; }
.board-row .b-no   { font-size: 13px; color: rgba(255,255,255,0.52); letter-spacing: 0.06em; }
.board-row .b-name {
  font-family: var(--font-pixel);
  font-size: 22px;
  -webkit-font-smoothing: none;
  font-smooth: never;
  line-height: 1;
}
.board-row .b-stage{ font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.62); }
.board-row .b-flag {
  justify-self: end;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.82);
}
.b-flag.shipping { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.32); color: #fff; }
.b-flag.live     { background: rgba(74,222,128,0.16); border-color: rgba(74,222,128,0.4); color: #4ADE80; }
.b-flag.testing  { background: rgba(250,204,21,0.16); border-color: rgba(250,204,21,0.4); color: #FACC15; }

/* =====================================================
   BONUS SECTIONS PT 2 (05 → 08)
   ===================================================== */

/* -----------------------------
   BONUS 05 — The Versed Times (newspaper)
   ----------------------------- */
.bonus-news { padding: 96px 0; background: #FBFBF7; }
.news-paper {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 40px 48px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 36px -16px rgba(0,0,0,0.18);
}
.news-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
  padding-bottom: 10px;
  border-bottom: 3px double var(--ink-soft);
}
.news-masthead {
  font-family: var(--font-pixel);
  font-size: clamp(56px, 9vw, 110px);
  line-height: 0.92;
  -webkit-font-smoothing: none;
  font-smooth: never;
  text-align: center;
  margin: 18px 0 10px;
  letter-spacing: -0.01em;
}
.news-tagline {
  text-align: center;
  font-family: 'PP Mondwest', 'PP Neue Bit', monospace;
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink-soft);
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}
.news-col h3 {
  font-family: var(--font-pixel);
  font-size: 22px;
  line-height: 1;
  -webkit-font-smoothing: none;
  font-smooth: never;
  margin: 0 0 4px;
}
.news-col .byline {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin: 0 0 12px;
}
.news-col p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 10px;
  column-fill: balance;
}
.news-col p:first-letter {
  font-family: var(--font-pixel);
  font-size: 36px;
  line-height: 0.9;
  -webkit-font-smoothing: none;
  font-smooth: never;
  float: left;
  margin: 4px 6px 0 0;
  color: var(--accent);
}
.news-col .rule {
  height: 1px;
  background: var(--ink-soft);
  margin: 14px 0;
}

/* -----------------------------
   BONUS 06 — Dot-matrix receipt
   ----------------------------- */
.bonus-receipt { padding: 96px 0; background: var(--gray-100); }
.receipt {
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  padding: 40px 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink);
  /* zigzag torn top + bottom */
  --tear: 10px;
  -webkit-mask:
    linear-gradient(135deg, transparent 6px, #000 6px) top left / var(--tear) var(--tear) repeat-x,
    linear-gradient(225deg, transparent 6px, #000 6px) top right / var(--tear) var(--tear) repeat-x,
    linear-gradient(45deg,  transparent 6px, #000 6px) bottom left / var(--tear) var(--tear) repeat-x,
    linear-gradient(-45deg, transparent 6px, #000 6px) bottom right / var(--tear) var(--tear) repeat-x,
    linear-gradient(#000, #000);
  -webkit-mask-composite: source-over;
  mask:
    linear-gradient(135deg, transparent 6px, #000 6px) top left / var(--tear) var(--tear) repeat-x,
    linear-gradient(225deg, transparent 6px, #000 6px) top right / var(--tear) var(--tear) repeat-x,
    linear-gradient(45deg,  transparent 6px, #000 6px) bottom left / var(--tear) var(--tear) repeat-x,
    linear-gradient(-45deg, transparent 6px, #000 6px) bottom right / var(--tear) var(--tear) repeat-x,
    linear-gradient(#000, #000);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.20);
}
.receipt-header {
  text-align: center;
  border-bottom: 1px dashed var(--ink);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.receipt-header .brand {
  font-family: var(--font-pixel);
  font-size: 22px;
  line-height: 1;
  -webkit-font-smoothing: none;
  font-smooth: never;
  margin-bottom: 4px;
}
.receipt-header .sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.receipt-row .dots { flex: 1; overflow: hidden; color: var(--fg-3); white-space: nowrap; }
.receipt-section {
  border-top: 1px dashed var(--ink);
  margin-top: 14px;
  padding-top: 14px;
}
.receipt-total {
  font-family: var(--font-pixel);
  font-size: 22px;
  line-height: 1;
  -webkit-font-smoothing: none;
  font-smooth: never;
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}
.receipt-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--ink);
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.receipt-barcode {
  font-family: 'Libre Barcode 39', var(--font-mono);
  font-size: 32px;
  letter-spacing: 0;
  text-align: center;
  margin-top: 8px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px,
    var(--ink) 4px 5px, transparent 5px 9px,
    var(--ink) 9px 12px, transparent 12px 14px,
    var(--ink) 14px 15px, transparent 15px 18px);
  height: 36px;
}

/* -----------------------------
   BONUS 07 — Mail-order card (with cut line)
   ----------------------------- */
.bonus-mailorder { padding: 96px 0; background: var(--bg); }
.mail-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: 4px;
  padding: 36px 40px 32px;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.12);
  position: relative;
}
.mail-card::before {
  content: "✂  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
  background: var(--bg);
  padding: 0 12px;
  display: inline-block;
  width: max-content;
  margin: 0 auto;
}
.mail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 22px;
}
.mail-head h3 {
  font-family: var(--font-pixel);
  font-size: 30px;
  line-height: 1;
  -webkit-font-smoothing: none;
  font-smooth: never;
  margin: 0;
}
.mail-head .form-no {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 4px 10px;
}
.mail-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}
.mail-row .label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  color: var(--fg-2);
  min-width: 110px;
}
.mail-row .field {
  flex: 1;
  border-bottom: 1px dotted var(--ink);
  padding-bottom: 2px;
  font-family: 'PP Mondwest', monospace;
  font-size: 15px;
  color: var(--ink);
}
.mail-tick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mail-tick label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.mail-tick label input { display: none; }
.mail-tick label::before {
  content: "[ ]";
  font-family: var(--font-mono);
  color: var(--ink);
}
.mail-tick label.checked::before { content: "[x]"; color: var(--accent); }
.mail-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* -----------------------------
   BONUS 08 — Ship calendar (pixel heatmap)
   ----------------------------- */
.bonus-calendar { padding: 96px 0; background: var(--bg); }
.cal-frame {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}
.cal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(53, 1fr);
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  gap: 3px;
  aspect-ratio: 53 / 7;
  background: var(--bg);
}
.cal-cell {
  background: var(--gray-200);
  border-radius: 2px;
  aspect-ratio: 1;
}
.cal-cell.s1 { background: rgba(18, 18, 18, 0.10); }
.cal-cell.s2 { background: rgba(18, 18, 18, 0.28); }
.cal-cell.s3 { background: rgba(18, 18, 18, 0.55); }
.cal-cell.s4 { background: var(--accent); }
.cal-legend {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.cal-scale { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.cal-scale .swatch { width: 12px; height: 12px; border-radius: 2px; }
.cal-stats { display: flex; gap: 28px; }
.cal-stats div {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.cal-stats strong {
  display: block;
  font-family: var(--font-pixel);
  font-size: 28px;
  line-height: 1;
  -webkit-font-smoothing: none;
  font-smooth: never;
  color: var(--fg-1);
  margin-top: 2px;
  letter-spacing: 0;
}

/* =====================================================
   DARK SECTION (.section--ink) — graphite cards on ink
   ===================================================== */

/* Loop on dark: re-skin the boxes to match the Mission Control card
   surface — graphite, not paper. Arrows + numerals shift to white. */
.section--ink .loop-arrow      { color: rgba(255, 255, 255, 0.72); }

.section--ink .loop-box {
  background: var(--ink-raised);
  border-color: rgba(255, 255, 255, 0.08);
}
.section--ink .loop-box-chrome {
  background: var(--ink-chrome);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.section--ink .loop-box-title  { color: rgba(255, 255, 255, 0.45); }
.section--ink .loop-box h3     { color: #fff; }
.section--ink .loop-box p      { color: rgba(255, 255, 255, 0.62); }
.section--ink .loop-num        { color: rgba(255, 255, 255, 0.42); }

.section--ink .loop-center {
  background: var(--ink-raised);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.45);
}

/* WHY on dark — kept for the archived "Built different on purpose"
   section snapshot. */
.section--ink .why-card:hover {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

/* =====================================================
   FOOTER — paper variant with social icons
   ===================================================== */
.footer {
  background: var(--bg);
  color: var(--ink);
}
.footer-top   { margin-bottom: 28px; }
.footer-bottom {
  border-top: 0;
  padding-top: 0;
}
.footer-copy { color: var(--fg-2); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--ink);
  border: 1px solid var(--border);
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.footer-social a:hover {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}
.footer-social svg { width: 18px; height: 18px; display: block; }

/* =====================================================
   OPT-SWITCH — accent variant chip (used by the archived
   indigo snapshot to flip between palettes; kept so the
   archive renders standalone).
   ===================================================== */
.opt-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.18);
  font-family: var(--font-mono);
}
.opt-switch a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-2);
  border-radius: 999px;
  transition: all 150ms ease;
}
.opt-switch a.is-active {
  background: var(--ink);
  color: #fff;
}
.opt-switch a:hover:not(.is-active) {
  color: var(--ink);
}

@media (max-width: 900px) {
  .case-stack { grid-template-columns: 1fr 1fr; }
  .rule-row { grid-template-columns: 1fr; gap: 8px; }
  .rule-num { font-size: 36px; }
  .board-header, .board-row {
    grid-template-columns: 60px 1fr 100px;
  }
  .board-header > :nth-child(3), .board-row > :nth-child(3) { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .mail-row { flex-direction: column; gap: 2px; }
  .mail-row .label { min-width: 0; }
  .cal-grid { grid-template-columns: repeat(27, 1fr); aspect-ratio: 27/7; }
}
@media (max-width: 600px) {
  .case-stack { grid-template-columns: 1fr; }
}

/* =====================================================
   MOBILE — global responsive overrides
   ===================================================== */
@media (max-width: 760px) {
  /* Tighter container padding */
  .container,
  .container-narrow,
  .section-head,
  .cta-content { padding-left: 20px; padding-right: 20px; }

  /* Hero */
  .hero { padding: 56px 0 40px; }
  .hero-mark { width: 48px; margin-bottom: 22px; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); line-height: 0.92; margin-bottom: 22px; }
  .hero-sub { font-size: 14px; margin-bottom: 24px; padding: 0 4px; }
  .trust { font-size: 10px; }

  /* Stats bar — keep 3-col but compress */
  .stat { padding: 22px 10px; gap: 6px; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 9px; letter-spacing: 0.10em; }

  /* Marquee */
  .marquee-section { padding: 40px 0; }
  .marquee-track { gap: 40px; }
  .marquee-track img { height: 22px !important; }
  .marquee-track img[src*="figma"]    { height: 32px !important; }
  .marquee-track img[src*="restnest"] { height: 28px !important; }
  .marquee-track img[src*="sentinel"] { height: 26px !important; }
  .marquee-track img[src*="hyro"]     { height: 24px !important; }

  /* Sections */
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 24px; line-height: 1.1; }
  .section-sub { font-size: 14px; }

  /* Loop diagram on mobile — clean vertical stack.
     The 01/02/03/04 numbers carry the sequence; the loop concept is
     conveyed by the section header ("smarter every loop"). */
  .loop-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 14px;
    padding: 0 20px;
    max-width: 480px;
  }
  .loop-box-body { padding: 18px 18px 22px; gap: 8px; }
  .loop-box h3 { font-size: 24px; }
  .loop-num { font-size: 22px; }
  .loop-box p { font-size: 13px; }
  /* Hide the diagonal-flow chrome (arrows + center) on mobile */
  .loop-grid > .loop-arrow,
  .loop-grid > .loop-center { display: none; }
  /* Re-order via :nth-child (HTML source order is box, arrow, box, arrow,
     center, arrow, box, arrow, box → 01, 02, 04, 03). */
  .loop-grid > :nth-child(1) { order: 1; } /* 01 Connect */
  .loop-grid > :nth-child(3) { order: 2; } /* 02 Generate */
  .loop-grid > :nth-child(9) { order: 3; } /* 03 Analyze */
  .loop-grid > :nth-child(7) { order: 4; } /* 04 Iterate */

  /* Founder — stack and shrink portrait */
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
    max-width: 420px;
  }
  .founder-visual { padding: 12px; }
  .founder-stamp {
    bottom: -12px; right: -8px;
    font-size: 14px;
    padding: 8px 10px;
  }
  .founder-stamp small { font-size: 6px; }
  .founder-copy h2 { font-size: 24px; }
  .founder-copy p:not(.eyebrow) { font-size: 14px; }

  /* CTA */
  .cta-section { padding: 64px 0; }
  .cta-content h2 { font-size: 26px; line-height: 1.1; }
  .cta-content p:not(.eyebrow) { font-size: 14px; }

  /* Footer */
  .footer { padding: 40px 0 24px; }
  .footer-top { padding: 0 20px; margin-bottom: 24px; }
  .footer-bottom { padding: 0 20px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-logo img { height: 24px; }
  .footer-social a { width: 34px; height: 34px; }

  /* Buttons */
  .btn { padding: 12px 18px; font-size: 11px; }
}

@media (max-width: 380px) {
  .stats-bar { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}
