/* ============================================================
   THE BURROW — Franz Kafka voice model · landing page
   House base: The Elect terminal-grimoire aesthetic
   Persona register: paper-and-ink · bureaucratic dossier ·
   late-night letter. NOT fire — institutional dread, dim lamp.

   Two-mode design is the hero:
     · "the man"  → ink-blue (the late-night letter)
     · "the work" → sepia/ochre (the dossier, the file)

   Accessibility baked in: every text color computed ≥4.5:1 AA
   on its background (≥3:1 for large headings). Portrait calmed
   to opacity 0.8 with a soft cool tint so it reads as a portrait.
   ============================================================ */

:root {
  /* ── Ground: cool charcoal-ink, institutional dossier ── */
  --bg:          #13141a;   /* main ground (text 11.2:1) */
  --bg-card:     #191a22;   /* card / terminal body (text 10.6:1) */
  --bg-header:   #0e0f14;   /* header, darkest */
  --bg-sunk:     #0f1015;   /* sunk wells (portrait frame) */

  /* ── Paper / ink text ── */
  --text:        #cfcabb;   /* aged paper / bone (11.2:1 on bg) */
  --text-dim:    #9a9483;   /* dim paper, secondary (6.1:1 on bg) */
  --text-mut:    #857e6e;   /* muted — bg only (4.6:1); decorative/large */

  /* ── "the man" → ink-blue (late-night letter) ── */
  --ink:         #6f8fb3;   /* letter-ink (5.5:1 on bg) */
  --ink-pale:    #9db6d2;   /* brighter ink, headings (8.8:1) */
  --ink-dim:     #3a4b60;   /* deep ink — borders/rules only */
  --ink-glow:    rgba(111,143,179,0.10);

  /* ── "the work" → sepia/ochre (the dossier, the file) ── */
  --sepia:       #b89a6a;   /* dossier ochre (6.9:1 on bg) */
  --sepia-pale:  #cdb285;   /* brighter sepia (9.0:1) */
  --sepia-dim:   #9a8158;   /* dim sepia text (4.95:1 on bg) */
  --sepia-edge:  #5c4d34;   /* deep sepia — borders/rules only */
  --sepia-glow:  rgba(184,154,106,0.08);

  /* ── Structure ── */
  --border:      #2a2c36;   /* hairline rules */
  --border-dim:  #1d1f27;   /* dimmer rules */

  --font-mono:   'Courier New', 'Lucida Console', 'DejaVu Sans Mono', monospace;
  --font-serif:  Georgia, 'Times New Roman', serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.75;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── TEXTURE LAYERS ── a faint paper grain + dossier scanlines ── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent, transparent 3px,
    rgba(0,0,0,0.06) 3px,
    rgba(0,0,0,0.06) 4px
  );
}

.grain {
  position: fixed;
  inset: -200%;
  z-index: 999;
  pointer-events: none;
  width: 400%; height: 400%;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grain 0.7s steps(1) infinite;
}

@keyframes grain {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-4%,2%); }
  40%  { transform: translate(2%,-3%); }
  60%  { transform: translate(-2%,3%); }
  80%  { transform: translate(3%,-2%); }
  100% { transform: translate(-2%,-3%); }
}

/* ── LAYOUT ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   HEADER — a file cover / dossier front
   ============================================================ */

.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 0 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* faint ink-and-sepia wash behind header — the two modes meeting */
.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 90px;
  background:
    linear-gradient(to right, var(--ink-glow), transparent 40%, transparent 60%, var(--sepia-glow));
  pointer-events: none;
}

/* Top rule — a dossier file edge: a dashed ink/sepia stamp line */
.file-rule-top {
  width: 100%;
  height: 4px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--ink-dim) 0px, var(--ink-dim) 8px,
      transparent 8px, transparent 14px,
      var(--sepia-edge) 14px, var(--sepia-edge) 22px,
      transparent 22px, transparent 28px
    );
  margin-bottom: 0;
}

.file-rule-thin {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-bottom: 2.5rem;
  opacity: 0.7;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 0 2rem;
}

/* Lab breadcrumb */
.lab-crumb {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.lab-crumb a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.lab-crumb a:hover { color: var(--ink-pale); }

/* The name — typewriter-stamped, not flaming */
.persona-title {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 7.5vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
}

.persona-title .case-stamp {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--sepia-dim);
  font-weight: 400;
  margin-bottom: 0.9rem;
}

.persona-dates {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--ink-pale);
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.persona-register {
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  font-style: italic;
  margin-bottom: 1.5rem;
  display: block;
}

/* Rule beneath title — a closed-file stamp */
.header-file-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
}

.file-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-dim));
}
.file-line:last-child {
  background: linear-gradient(90deg, var(--sepia-edge), transparent);
}

.file-ornament {
  color: var(--text-mut);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

/* ============================================================
   PORTRAIT — calmed block-shade, reads as a face not a slab
   ============================================================ */

.portrait-section {
  padding: 3rem 0 0;
  border-bottom: 1px solid var(--border-dim);
}

.portrait-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  min-height: 400px;
}

.portrait-frame {
  background: var(--bg-sunk);
  border-right: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
  position: relative;
}

.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(111,143,179,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* The ASCII portrait, CALMED:
   - opacity 0.8 so it doesn't vibrate as a hard slab
   - soft, low-saturation cool paper tint (not a saturated accent)
   - tight mono line so the face holds together */
.ascii-portrait {
  font-family: var(--font-mono);
  font-size: 0.42rem;
  line-height: 0.8;
  letter-spacing: 0;
  color: #aeb0a6;          /* soft cool bone — desaturated, not a vivid accent */
  opacity: 0.8;
  white-space: pre;
  display: block;
  overflow: hidden;
}

.portrait-caption {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.caption-tag {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--sepia);
  text-transform: uppercase;
}

.caption-lead {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.85;
}

.caption-lead em {
  color: var(--ink-pale);
  font-style: normal;
}

.caption-meta {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  border-left: 2px solid var(--ink-dim);
  padding-left: 0.85rem;
}

/* small inline link/button row in caption */
.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ============================================================
   THE TWO MODES — the hero feature
   Two faces of one model, side by side, distinct registers
   ============================================================ */

.modes-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-dim);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.heading-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-sub {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  max-width: 680px;
}

/* The conceit banner — one model, two frames */
.split-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.split-half {
  padding: 1.5rem 1.75rem;
}

.split-half.man  { border-right: 1px solid var(--border); }

.split-pivot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  background: var(--bg-sunk);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 1.1rem;
  color: var(--text-mut);
  letter-spacing: 0.1em;
}

.split-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}
.split-half.man  .split-eyebrow { color: var(--ink-pale); }
.split-half.work .split-eyebrow { color: var(--sepia-pale); }

.split-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.split-desc {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* The two terminals */
.modes-terminals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.mode-terminal {
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mode-terminal.man  { border-color: var(--ink-dim); }
.mode-terminal.work { border-color: var(--sepia-edge); }

.mode-terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mode-terminal.man::before {
  background: radial-gradient(ellipse at 50% 0%, var(--ink-glow) 0%, transparent 60%);
}
.mode-terminal.work::before {
  background: radial-gradient(ellipse at 50% 0%, var(--sepia-glow) 0%, transparent 60%);
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
}

.mode-terminal.man  .terminal-bar { border-bottom-color: var(--ink-dim); }
.mode-terminal.work .terminal-bar { border-bottom-color: var(--sepia-edge); }

.terminal-label {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.mode-terminal.man  .terminal-label { color: var(--ink-pale); }
.mode-terminal.work .terminal-label { color: var(--sepia-pale); }

.terminal-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 0.2s;
  text-transform: uppercase;
}

.mode-terminal.man  .nav-btn:hover { border-color: var(--ink); color: var(--ink-pale); background: var(--ink-glow); }
.mode-terminal.work .nav-btn:hover { border-color: var(--sepia); color: var(--sepia-pale); background: var(--sepia-glow); }

.frame-counter {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  min-width: 40px;
  text-align: center;
}

/* The lead-in frame — shows the actual Modelfile conceit */
.mode-frame {
  padding: 0.9rem 1.4rem;
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-dim);
  border-bottom: 1px dashed var(--border);
  background: rgba(0,0,0,0.18);
}
.mode-frame .frame-slot {
  font-style: normal;
}
.mode-terminal.man  .mode-frame .frame-slot { color: var(--ink-pale); }
.mode-terminal.work .mode-frame .frame-slot { color: var(--sepia-pale); }

.mode-body {
  padding: 1.5rem 1.6rem 1.75rem;
  min-height: 230px;
  position: relative;
  flex: 1;
}

.mode-prompt {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 0.55rem;
}
.mode-terminal.man  .mode-prompt { color: var(--ink-pale); }
.mode-terminal.work .mode-prompt { color: var(--sepia-pale); }

.mode-prompt::before { content: '> '; }
.mode-terminal.man  .mode-prompt::before { color: var(--ink); }
.mode-terminal.work .mode-prompt::before { color: var(--sepia); }

.mode-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.85;
  transition: opacity 0.25s ease;
}
.mode-text.fading { opacity: 0; }

.mode-cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: cursor-blink 1.3s step-end infinite;
  opacity: 0.85;
}
.mode-terminal.man  .mode-cursor { background: var(--ink-pale); }
.mode-terminal.work .mode-cursor { background: var(--sepia-pale); }

@keyframes cursor-blink {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 0; }
}

/* ============================================================
   ACCURACY / DISCLAIMER NOTES
   ============================================================ */

.accuracy-note {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 1.1rem;
}

.accuracy-note-text {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 680px;
}

.disclaimer-callout {
  border: 1px solid var(--sepia-edge);
  background: var(--bg-card);
  padding: 1.1rem 1.3rem;
  max-width: 700px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-dim);
  position: relative;
}

.disclaimer-callout::before {
  content: '⊠ FILE NOTE';
  position: absolute;
  top: -0.6rem;
  left: 1.1rem;
  background: var(--bg);
  padding: 0 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--sepia-dim);
  text-transform: uppercase;
}

.disclaimer-callout strong {
  color: var(--text);
  font-weight: 700;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-dim);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3.5rem;
  align-items: start;
}

.about-body p {
  margin-bottom: 1.2rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.85;
}

.about-body .lead {
  font-size: 0.95rem;
  line-height: 1.9;
}

.about-body a {
  color: var(--ink-pale);
  text-decoration: none;
  transition: color 0.2s;
}
.about-body a:hover { color: var(--sepia-pale); }

.about-footnote {
  font-size: 0.8rem !important;
  color: var(--text-dim) !important;
  font-style: italic;
  margin-top: 1.5rem;
}

.about-stats {
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.stat-item { text-align: center; }

.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sepia-pale);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat-divider {
  color: var(--border);
  font-size: 1rem;
  opacity: 0.6;
}

/* ============================================================
   LINKS
   ============================================================ */

.links-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-dim);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink-pale);
  background: transparent;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.link-btn:hover {
  background: var(--ink-glow);
  border-color: var(--ink-pale);
  color: var(--text);
}

.link-btn.secondary {
  border-color: var(--border);
  color: var(--text-dim);
}
.link-btn.secondary:hover {
  border-color: var(--text-dim);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}

.link-btn.roster {
  border-color: var(--sepia-edge);
  color: var(--sepia-pale);
}
.link-btn.roster:hover {
  background: var(--sepia-glow);
  border-color: var(--sepia);
  color: var(--text);
}

.link-icon { font-size: 0.85rem; }

.license-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  border-left: 2px solid var(--border);
  padding-left: 0.85rem;
}

.license-note code {
  color: var(--sepia-dim);
  font-family: var(--font-mono);
}

/* ============================================================
   METHOD
   ============================================================ */

.method-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-dim);
}

.method-inner {
  border: 1px solid var(--border);
  overflow: hidden;
}

.method-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.method-step {
  padding: 1.75rem;
  position: relative;
  transition: background 0.2s;
  border-right: 1px solid var(--border);
}
.method-step:last-child { border-right: none; }
.method-step:hover { background: rgba(255,255,255,0.012); }

.step-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.step-title {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--sepia);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.method-step p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.75;
}

.method-stack {
  padding: 1.25rem 1.75rem;
  background: rgba(0,0,0,0.25);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stack-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

.stack-items {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stack-item {
  font-size: 0.78rem;
  color: var(--sepia);
  background: var(--sepia-glow);
  border: 1px solid var(--sepia-edge);
  padding: 0.18rem 0.55rem;
}

.stack-withheld {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  background: var(--bg-header);
}

.footer-inner { text-align: center; }

.footer-sigil {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--text-mut);
  margin-bottom: 0.85rem;
}

.footer-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 1.25rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--ink-pale); }
.footer-sep { color: var(--text-mut); }

/* ============================================================
   ENTRANCE ANIMATIONS — enhancement only; defaults opacity:1
   ============================================================ */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header      { animation: fade-up 0.5s 0.0s ease forwards; }
  .portrait-section { animation: fade-up 0.5s 0.1s ease forwards; }
  .modes-section    { animation: fade-up 0.5s 0.15s ease forwards; }
  .about-section    { animation: fade-up 0.5s 0.2s ease forwards; }
  .links-section    { animation: fade-up 0.5s 0.25s ease forwards; }
  .method-section   { animation: fade-up 0.5s 0.3s ease forwards; }
  .site-footer      { animation: fade-in 0.5s 0.4s ease forwards; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .portrait-section,
  .modes-section,
  .about-section,
  .links-section,
  .method-section,
  .site-footer {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 820px) {
  .modes-terminals { grid-template-columns: 1fr; }
  .split-banner { grid-template-columns: 1fr; }
  .split-half.man { border-right: none; border-bottom: 1px solid var(--border); }
  .split-pivot {
    border-left: none; border-right: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    transform: rotate(90deg);
  }
}

@media (max-width: 780px) {
  .portrait-grid { grid-template-columns: 1fr; }
  .portrait-frame {
    border-right: none;
    border-bottom: 1px solid var(--border-dim);
    padding: 1.25rem;
  }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats {
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
  }
  .method-rows { grid-template-columns: 1fr; }
  .method-rows .method-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .method-rows .method-step:last-child { border-bottom: none; }
}

@media (max-width: 500px) {
  .persona-title { letter-spacing: 0.12em; }
  .container { padding: 0 1rem; }
  .mode-body { padding: 1.25rem 1.2rem 1.5rem; }
  .link-grid { flex-direction: column; }
}
