/* PostAid website — one stylesheet.
   The site uses the app's own visual world: near-black grading-suite neutrals,
   the app's yellow accent, the logo's orange, IBM Plex (the app's typeface,
   self-hosted from the app's own font files) and the app's status colours.
   Deliberately one dark theme, like the software itself. */

@font-face { font-family: 'Plex Sans'; src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex Condensed'; src: url('../fonts/ibm-plex-sans-condensed-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex Condensed'; src: url('../fonts/ibm-plex-sans-condensed-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0c0c0b;
  --bg-2: #121211;
  --panel: #181816;
  --panel-2: #1f1f1d;
  --line: #262624;
  --line-strong: #383834;
  --tx: #efede6;
  --tx-2: #c8c6be;
  --tx-3: #8e8c84;
  --tx-4: #66645e;
  --accent: #efd451;
  --accent-ink: #171508;
  --orange: #f2701e;
  --green: #5fbf7f;
  --amber: #e8a838;
  --red: #e05252;
  --blue: #5b9cf6;
  --violet: #9b77e0;
  --sans: 'Plex Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cond: 'Plex Condensed', 'Plex Sans', 'Arial Narrow', sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--tx); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { left: 12px; }

/* ── Type ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; letter-spacing: -0.01em; }
.display { font-family: var(--cond); font-weight: 600; font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: -0.02em; }
.h2 { font-family: var(--cond); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.015em; }
.h3 { font-size: 1.2rem; line-height: 1.3; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--tx-2); max-width: 62ch; }
p { margin: 0; }
.muted { color: var(--tx-3); }
.mono { font-family: var(--mono); }
/* A timecode-style label: the site's one bit of the subject's own notation. */
.tc { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; }
.tc span { color: var(--tx-3); }
.prose { max-width: 68ch; display: grid; gap: 1em; color: var(--tx-2); }
.prose h2 { color: var(--tx); font-size: 1.35rem; margin-top: 1em; }
.prose h3 { color: var(--tx); font-size: 1.05rem; margin-top: .5em; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: .35em; }
.prose a { color: var(--accent); }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 7px; font: 600 0.95rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #f6df70; }
.btn-ghost { background: transparent; color: var(--tx); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--tx-3); background: var(--panel); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.link-arrow { color: var(--accent); text-decoration: none; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Header ───────────────────────────────────────────────────────────── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 60; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(12, 12, 11, .82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { display: block; padding: 8px 11px; border-radius: 6px; color: var(--tx-2); text-decoration: none; font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--tx); background: var(--panel); }
.nav-links a[aria-current="page"] { color: var(--tx); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 6px 6px 0 0; }
.nav-cta { flex: none; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--tx); border-radius: 7px; width: 44px; height: 40px; cursor: pointer; }
.nav-toggle svg { margin: auto; }
@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .nav-links, .nav-cta { display: none; }
  .site-header.open .nav-links { display: grid; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px var(--gutter-r) 16px var(--gutter); gap: 2px; max-height: calc(100vh - 64px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; }
  .site-header.open .nav-links a { padding: 12px; font-size: 1rem; }
  .site-header.open .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); border-radius: 0 6px 6px 0; }
  .site-header.open .nav-cta-mobile { display: block; margin-top: 8px; }
  .site-header.open .nav-cta-mobile a { background: var(--accent); color: var(--accent-ink); font-weight: 600; text-align: center; border-radius: 7px; }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); }
.page-hero .display { font-size: clamp(2.3rem, 5vw, 4rem); }
.page-hero .lede { margin-top: 18px; }

/* Home hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 0; overflow: hidden; }
.hero-copy { display: grid; gap: 22px; max-width: 820px; }
.hero-copy .lede { max-width: 60ch; }
.hero-shot { margin-top: clamp(40px, 6vw, 72px); position: relative; }
.hero-shot::after { content: ""; position: absolute; inset: auto 0 -1px; height: 38%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

/* The app's own status strip, used as a quiet divider: real status colours,
   segment widths taken from a real reel's shot lengths. */
.strip { display: flex; height: 6px; gap: 2px; border-radius: 2px; overflow: hidden; opacity: .9; }
.strip i { display: block; height: 100%; }

/* ── Screenshot frames ────────────────────────────────────────────────── */
.shot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: var(--panel); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02); }
.shot img { width: 100%; height: auto; }
.shot button { all: unset; display: block; cursor: zoom-in; width: 100%; }
.shot button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
figure.shot-fig { margin: 0; display: grid; gap: 12px; }
figure.shot-fig figcaption { font-size: .86rem; color: var(--tx-3); }
figure.shot-fig figcaption b { color: var(--tx-2); font-weight: 500; }
.paper { background: #fff; border-color: #d8d8d8; }

/* ── Grids & cards ────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card h3 { font-size: 1.05rem; }
.card p { color: var(--tx-2); font-size: .95rem; }
.card .tc { font-size: .72rem; }

/* Problem / answer pair */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pair > div { background: var(--panel); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 14px; align-content: start; }
.pair ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--tx-2); }
.pair li { padding-left: 22px; position: relative; }
.pair li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--tx-4); }
.pair .answer li::before { background: var(--accent); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* Feature row: text beside a screenshot */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.feature.flip > :first-child { order: 2; }
.feature-copy { display: grid; gap: 16px; }
.feature-copy p { color: var(--tx-2); }
.feature-copy dl { margin: 6px 0 0; display: grid; gap: 12px; }
.feature-copy dl div { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--line-strong); }
.feature-copy dt { font-size: .74rem; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tx-3); }
.feature-copy dd { margin: 0; color: var(--tx-2); font-size: .95rem; }
.plan-tag { display: inline-block; font: 500 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--tx-3); vertical-align: middle; }
.plan-tag.team { color: var(--accent); border-color: rgba(239, 212, 81, .45); }
@media (max-width: 900px) { .feature, .feature.flip, .feature.even { grid-template-columns: minmax(0, 1fr); } .feature.flip > :first-child { order: 0; } }

/* Section index on long pages */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toc a { font-size: .85rem; text-decoration: none; color: var(--tx-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 13px; }
.toc a:hover { color: var(--tx); border-color: var(--tx-3); }

/* Workflow steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: clamp(56px, 8vw, 104px); }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.step-copy { display: grid; gap: 14px; }
.step-copy p { color: var(--tx-2); }
.step-num { font: 500 .8rem/1 var(--mono); color: var(--accent); letter-spacing: .06em; }
.step-num span { color: var(--tx-3); }
.note { font-size: .88rem; color: var(--tx-3); border-left: 2px solid var(--line-strong); padding-left: 12px; }
@media (max-width: 900px) { .step { grid-template-columns: minmax(0, 1fr); } }

/* Mini workflow line on home */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.flow > div { padding: 22px 20px; border-right: 1px solid var(--line); display: grid; gap: 8px; align-content: start; background: var(--panel); }
.flow > div:last-child { border-right: 0; }
.flow b { font-weight: 600; }
.flow p { font-size: .9rem; color: var(--tx-3); }
@media (max-width: 900px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow > div { border-right: 0; border-bottom: 1px solid var(--line); } .flow > div:last-child { border-bottom: 0; } }

/* Tables (exports, plan comparison) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data .for { display: block; margin-top: 3px; font-weight: 400; font-size: .82rem; color: var(--tx-3); }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font: 500 .72rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tx-3); background: var(--bg-2); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td:first-child { color: var(--tx); font-weight: 500; }
table.data td { color: var(--tx-2); }
/* Wide tables become one card per row on phones: no sideways scrolling. */
@media (max-width: 640px) {
  .stack thead { display: none; }
  .stack table.data tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .stack table.data tbody tr:last-child { border-bottom: 0; }
  .stack table.data td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 5px 16px; }
  .stack table.data td::before { content: attr(data-label); font: 500 .72rem/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--tx-3); }
  .stack table.data td:first-child { font-size: 1rem; padding-bottom: 8px; }
  .stack table.data td:first-child::before { content: none; }
}
.yes { color: var(--green); font-weight: 600; }
.no { color: var(--tx-4); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 14px; padding: clamp(24px, 3.5vw, 36px); display: flex; flex-direction: column; gap: 18px; }
/* The button sits at the card's foot, so cards of different lengths line up. */
.plan > :last-child { margin-top: auto; }
.plan > .btn { align-self: stretch; }
.plan h2 { font-family: var(--cond); font-size: 1.8rem; }
.price { display: flex; align-items: baseline; gap: 8px; min-height: 3.4rem; }
.price .amount { font-family: var(--cond); font-weight: 600; font-size: 3rem; line-height: 1; letter-spacing: -0.02em; }
.price .per { color: var(--tx-3); }
.price .was { color: var(--tx-3); font-family: var(--cond); font-size: 1.5rem; font-weight: 500; text-decoration-thickness: 1.5px; }
.price-intro { color: var(--tx-2); font-size: .95rem; margin-top: 22px; }
.price-intro b { color: var(--tx); font-weight: 600; }
.price[data-pending] .amount { color: transparent; background: var(--panel-2); border-radius: 6px; min-width: 5ch; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; color: var(--tx-2); font-size: .95rem; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.price-note { color: var(--tx-3); font-size: .88rem; margin-top: 18px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--tx-3); border-bottom: 2px solid var(--tx-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 20px 20px; color: var(--tx-2); display: grid; gap: .8em; max-width: 72ch; }
.faq .answer a { color: var(--accent); }

/* Forms */
.form { display: grid; gap: 28px; max-width: 760px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin: 0; display: grid; gap: 18px; background: var(--panel); min-width: 0; }
.form legend { font: 500 .78rem/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--accent); padding: 0 8px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field label, .field .label { font-size: .88rem; font-weight: 500; color: var(--tx); }
.field .opt { color: var(--tx-3); font-weight: 400; }
.field .hint { font-size: .8rem; color: var(--tx-3); }
.field input:not([type=checkbox]), .field select, .field textarea { width: 100%; font: 400 .95rem/1.4 var(--sans); color: var(--tx); background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 7px; padding: 11px 12px; min-height: 44px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:not([type=checkbox]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(239, 212, 81, .18); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field .err { font-size: .8rem; color: #f08a8a; min-height: 0; }
.field .err:empty { display: none; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; font-weight: 400 !important; color: var(--tx-2) !important; cursor: pointer; line-height: 1.45; }
.check a { color: var(--accent); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.consent { display: grid; gap: 12px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 8px; border: 1px solid var(--line-strong); background: var(--panel-2); }
.form-status[hidden] { display: none; }
.form-status.ok { border-color: rgba(95, 191, 127, .5); }
.form-status.wait { border-color: rgba(232, 168, 56, .55); }
.form-status.bad { border-color: rgba(224, 82, 82, .6); }
.form-status h3 { font-size: 1.02rem; }
.form-status p { color: var(--tx-2); font-size: .94rem; }
.form-status a { color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-actions .muted { font-size: .85rem; }

/* Callouts */
.callout { border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: 8px; padding: 16px 18px; background: var(--panel); color: var(--tx-2); display: grid; gap: 6px; }
.callout b { color: var(--tx); }

/* CTA band */
.cta-band { text-align: center; display: grid; gap: 22px; justify-items: center; }
.cta-band .btn-row { justify-content: center; }

/* Role sections */
.role { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.role:first-of-type { border-top: 0; padding-top: 0; }
.role h2 { font-family: var(--cond); font-size: 1.75rem; line-height: 1.1; }
.role .uses { display: grid; gap: 12px; }
.role .uses div { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--tx-2); }
.role .uses div::before { content: ""; width: 12px; height: 2px; background: var(--accent); margin-top: .75em; }
@media (max-width: 860px) { .role { grid-template-columns: minmax(0, 1fr); } }

/* About */
.profile { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.profile-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; position: sticky; top: 96px; }
.profile-card h2 { font-family: var(--cond); font-size: 1.7rem; }
.facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; color: var(--tx-2); font-size: .92rem; }
.facts li { display: flex; gap: 10px; }
.facts li::before { content: "—"; color: var(--tx-4); }
.credits { display: flex; flex-wrap: wrap; gap: 8px; }
.credits span { border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; font-size: .88rem; color: var(--tx-2); }
@media (max-width: 860px) { .profile { grid-template-columns: minmax(0, 1fr); } .profile-card { position: static; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 calc(32px + env(safe-area-inset-bottom, 0px)); background: var(--bg); }
.foot { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.foot h2 { font: 500 .74rem/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--tx-2); text-decoration: none; font-size: .92rem; }
.foot a:hover { color: var(--tx); }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-brand img { height: 28px; width: auto; }
.foot-brand { gap: 6px; }
.foot-brand .foot-tag { color: var(--tx-2); font-size: .92rem; letter-spacing: .01em; }
.foot-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--tx-3); font-size: .85rem; }
@media (max-width: 860px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 5, 5, .94); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); opacity: 0; transition: opacity .2s var(--ease); }
.lightbox.on { opacity: 1; }
.lightbox img { max-width: min(100%, 1800px); max-height: calc(100vh - 96px); width: auto; border-radius: 8px; border: 1px solid var(--line-strong); }
.lightbox p { color: var(--tx-2); font-size: .9rem; margin-top: 12px; text-align: center; max-width: 80ch; }
.lightbox .close { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); }

/* Reveal on scroll (only when JS is running; content is visible without it) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

.center { text-align: center; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 48px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.prose a { color: var(--accent); }

/* Preface Studios Plus link: reads as text, underlines on hover. */
a.maker { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a.maker:hover { color: var(--tx); text-decoration-color: var(--accent); }
