/* PHRlite website. Dark first: ink-green night with paper documents on it. Paper stays paper in
   both themes; violet is the rubber-stamp ink of Indian clinic and office stamps, used only on paper. */

@font-face { font-family: 'Bricolage'; src: url('fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('fonts/plex-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('fonts/plex-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --bg: #0d110f;
  --bg-band: #121815;
  --surface: #161d19;
  --line: #26322b;
  --fg: #ece7db;
  --muted: #a3ada6;
  --seal: #f2b45a;
  --seal-ink: #1a1307;
  --ok: #6fd9a3;
  --bad: #ff7a66;
  --brand: #0f4d39;
  --paper: #f4efe3;
  --paper-line: #d9d0bd;
  --paper-ink: #1d211e;
  --paper-muted: #5b5f58;
  --stamp: #5b3fb8;
  --stamp-ok: #11683f;
  --navy: #13284a;
  --navy-ink: #e9dcb9;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  --display: 'Bricolage', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: 'Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f1e8; --bg-band: #ece6d9; --surface: #fffdf8; --line: #d8cfbe; --fg: #141815; --muted: #545b55;
    --seal: #8a5300; --seal-ink: #fffaf0; --ok: #0d6b40; --bad: #b42c17; --brand: #0f4d39;
    --shadow: 0 30px 50px -30px rgba(60, 40, 10, .35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f1e8; --bg-band: #ece6d9; --surface: #fffdf8; --line: #d8cfbe; --fg: #141815; --muted: #545b55;
  --seal: #8a5300; --seal-ink: #fffaf0; --ok: #0d6b40; --bad: #b42c17; --brand: #0f4d39;
  --shadow: 0 30px 50px -30px rgba(60, 40, 10, .35);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: clamp(2.9rem, 7.4vw, 6.2rem); font-weight: 750; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; margin-bottom: 18px; }
h3 { font-size: 1.35rem; font-weight: 650; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.small-cap { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--seal); color: var(--seal-ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 780px; }
.section { padding-block: clamp(72px, 11vw, 140px); }
.band { background: var(--bg-band); border-block: 1px solid var(--line); }
.kicker { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--seal); margin-bottom: 16px; font-weight: 500; }
.kicker a { text-decoration: none; }
.sub { color: var(--muted); font-size: 1.15rem; max-width: 62ch; }
.fine { color: var(--muted); font-size: .875rem; }
.center { text-align: center; margin-top: 14px; }
.tag { display: inline-block; font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; border: 1px dashed currentColor; color: var(--seal); padding: 4px 7px; border-radius: 4px; vertical-align: middle; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--body); padding: 15px 22px; border-radius: 999px; border: 1px solid var(--seal); background: var(--seal); color: var(--seal-ink); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--seal); }
.btn-small { padding: 10px 16px; font-size: .9rem; }
.btn-big { padding: 18px 30px; font-size: 1.1rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.2rem var(--display); text-decoration: none; color: var(--fg); }
.brand-mark { width: 30px; height: 30px; color: var(--brand); }
.net { display: inline-flex; align-items: center; gap: 7px; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.net-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.is-offline .net-dot { background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 25%, transparent); }
nav { margin-left: auto; }
.nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--fg); }
@media (max-width: 720px) { .nav { display: none; } .net { margin-left: auto; } }

/* Hero */
.hero { padding-top: clamp(48px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ok); margin-bottom: 22px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bag-word { position: relative; color: var(--seal); white-space: nowrap; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--muted); max-width: 40ch; margin-top: 26px; }
.vows { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 6px; font-size: 1.1rem; }
.vows li { display: flex; gap: 12px; align-items: baseline; }
.vows li::before { content: '—'; color: var(--seal); font-family: var(--mono); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 16px; }

/* The bag of paper, filed into the passport */
.desk-scene { position: relative; height: 460px; max-width: 480px; width: 100%; margin-inline: auto; }
.chit, .booklet { position: absolute; border-radius: 4px; box-shadow: var(--shadow); transition: transform .9s cubic-bezier(.6, 0, .2, 1), opacity .7s ease; }
.chit { background: var(--paper); color: var(--paper-ink); padding: 14px 16px; display: grid; gap: 6px; font-size: .8rem; border: 1px solid var(--paper-line); }
.chit-head { font: 500 .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--paper-muted); border-bottom: 1px solid var(--paper-line); padding-bottom: 6px; }
.scrawl { font: italic 400 1.05rem/1.3 'Segoe Script', 'Bradley Hand', 'Comic Sans MS', cursive; color: #233a6b; }
.scrawl.small { font-size: .85rem; }
.lab-row { display: flex; justify-content: space-between; gap: 18px; font: 400 .74rem var(--mono); }
.lab-row i { font-style: normal; }
.vax-grid { display: grid; grid-template-columns: repeat(3, 26px); gap: 6px; }
.vax-grid i { height: 18px; border: 1px solid var(--paper-line); background: repeating-linear-gradient(-45deg, transparent 0 4px, rgba(91, 63, 184, .25) 4px 5px); }
.vax-grid i.gap { background: none; border-style: dashed; }
.chit { transition: left .9s cubic-bezier(.6, 0, .2, 1), top .9s cubic-bezier(.6, 0, .2, 1), transform .9s cubic-bezier(.6, 0, .2, 1); }
.chit-rx { width: 210px; top: 10px; left: 0; transform: rotate(-7deg); }
.chit-lab { width: 200px; top: 30px; left: calc(100% - 200px); transform: rotate(5deg); }
.chit-vax { width: 150px; top: 290px; left: 14px; transform: rotate(4deg); }
.chit-bill { width: 190px; top: 320px; left: calc(100% - 200px); transform: rotate(-4deg); }
.booklet { z-index: 2; width: 190px; height: 260px; left: calc(50% - 95px); top: 100px; background: var(--navy); color: var(--navy-ink); border-radius: 6px 14px 14px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; transform: translateY(30px) scale(.86); opacity: 0; border-left: 8px solid #0c1b33; }
.booklet-crest { width: 54px; height: 54px; border: 1.5px solid currentColor; border-radius: 50%; display: grid; place-items: center; }
.booklet-crest svg { width: 30px; height: 30px; }
.booklet-title { font: 500 .72rem var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.booklet-name { font: 600 1.15rem var(--display); }
.stamp { position: absolute; bottom: 22px; right: -28px; transform: rotate(-14deg) scale(1.6); opacity: 0; font: 600 .78rem/1.15 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--stamp); background: var(--paper); border: 2.5px double var(--stamp); padding: 8px 12px; border-radius: 6px; text-align: center; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1) .95s, opacity .2s ease .95s; }
.stamp small { font-size: .62rem; letter-spacing: .14em; }
.scene-caption { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.filed .chit-rx { left: calc(50% - 118px); top: 78px; transform: rotate(-9deg); transition-delay: 0s; }
.filed .chit-lab { left: calc(50% - 82px); top: 70px; transform: rotate(6deg); transition-delay: .08s; }
.filed .chit-vax { left: calc(50% - 128px); top: 132px; transform: rotate(-3deg); transition-delay: .16s; }
.filed .chit-bill { left: calc(50% - 60px); top: 118px; transform: rotate(8deg); transition-delay: .24s; }
.filed .booklet { opacity: 1; transform: none; transition-delay: .35s; }
.filed .stamp { opacity: 1; transform: rotate(-14deg) scale(1); }

.ticker { margin-top: clamp(48px, 7vw, 80px); border-block: 1px solid var(--line); overflow: hidden; padding-block: 14px; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: tick 40s linear infinite; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ticker-track span::before { content: '✳'; color: var(--seal); margin-right: 48px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Tamper */
.tamper { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; margin-top: 44px; align-items: stretch; }
.paper { background: var(--paper); color: var(--paper-ink); border-radius: 6px; box-shadow: var(--shadow); border: 1px solid var(--paper-line); }
.note { padding: 26px 28px; display: grid; gap: 12px; min-width: 0; background-image: repeating-linear-gradient(transparent 0 31px, rgba(29, 33, 30, .07) 31px 32px); }
.note-head { display: flex; justify-content: space-between; gap: 12px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-muted); border-bottom: 1px solid var(--paper-line); padding-bottom: 10px; }
.note-meta { font-size: .95rem; color: var(--paper-muted); }
.ok-ink { color: var(--stamp-ok); font-weight: 600; }
.note-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-muted); }
.note-text { width: 100%; resize: vertical; font: 500 1.2rem/1.5 var(--mono); color: var(--paper-ink); background: rgba(255, 255, 255, .55); border: 1.5px dashed var(--paper-line); border-radius: 6px; padding: 12px 14px; }
.note-text:focus-visible { outline: 2px solid var(--stamp); border-color: transparent; }
.verdict-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: grid; gap: 16px; align-content: start; min-width: 0; transition: border-color .2s ease; }
.seals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.seals figure { margin: 0; display: grid; gap: 8px; justify-items: center; }
.seals figcaption { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.seal { width: 100%; max-width: 150px; aspect-ratio: 1; color: var(--seal); overflow: visible; }
.seal line { stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.seal circle { fill: none; stroke: currentColor; }
.verdict { font-size: 1.05rem; }
.verdict b { color: var(--ok); }
[data-state="broken"] { border-color: var(--bad); }
[data-state="broken"] #seal-now { color: var(--bad); }
[data-state="broken"] .verdict b { color: var(--bad); }
#tamper-reset { justify-self: start; }

/* One tap */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split > * { min-width: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--muted); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 3px; font: 500 .85rem var(--mono); color: var(--seal); }
.steps b { color: var(--fg); font-weight: 600; }
.phone { width: 100%; max-width: 330px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 38px; padding: 18px 22px 28px; box-shadow: var(--shadow); display: grid; gap: 18px; justify-items: center; min-height: 520px; align-content: start; }
.phone-bar { display: flex; justify-content: space-between; width: 100%; font-size: .72rem; color: var(--muted); }
.ask { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 8px; width: 100%; }
.ask-title { font: 600 1.15rem/1.3 var(--display); }
.hold { width: 132px; height: 132px; border-radius: 50%; border: 0; background: transparent; color: var(--seal); cursor: pointer; padding: 0; touch-action: none; -webkit-user-select: none; user-select: none; }
.hold svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hold-track { fill: none; stroke: var(--line); stroke-width: 4; }
.hold-fill { fill: none; stroke: var(--seal); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: 276.5; transition: stroke-dashoffset .25s ease; }
.holding .hold-fill { stroke-dashoffset: 0; transition: stroke-dashoffset .9s linear; }
.print { transform: rotate(90deg); transform-origin: 50px 50px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.granted { width: 100%; display: grid; gap: 10px; text-align: center; justify-items: center; }
.granted-title { font: 700 1.4rem var(--display); color: var(--ok); }
.tick { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: var(--bg); font-size: 1rem; margin-right: 6px; vertical-align: 2px; }
.granted-line { color: var(--muted); }
.granted-line b { color: var(--fg); }
.withdrawn { color: var(--muted); text-align: center; }
[data-state="granted"] .hold, [data-state="granted"] #hold-hint, [data-state="withdrawn"] .hold, [data-state="withdrawn"] #hold-hint { display: none; }

/* Offline */
.scanner { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 20px; box-shadow: var(--shadow); }
.scanner-top { display: flex; align-items: center; gap: 12px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.scanner-top > :first-child { margin-right: auto; }
.switch { width: 52px; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: var(--ok); position: relative; cursor: pointer; padding: 0; transition: background .2s ease; }
.switch .knob { position: absolute; top: 3px; left: 25px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); transition: left .2s ease; }
.switch[aria-checked="false"] { background: var(--line); }
.switch[aria-checked="false"] .knob { left: 3px; background: var(--muted); }
.card-pair { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; }
.qr { width: 120px; height: 120px; color: var(--paper-ink); background: var(--paper); padding: 10px; border-radius: 8px; }
.scan-result { display: grid; gap: 6px; min-width: 0; }
.scan-result p:last-child { font: 600 1.2rem/1.3 var(--display); }
.scan-result.good p:last-child { color: var(--ok); }
.scan-result.bad p:last-child { color: var(--bad); }
.scanning .qr { animation: scan .7s ease; }
@keyframes scan { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--seal) 40%, transparent); } }
.scan-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* Tour */
.tour-frame { margin-top: 40px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%; background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--seal) 14%, var(--surface)), var(--surface) 60%); }
.tour-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.tour-poster { height: 100%; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 24px; text-align: center; }
.tour-chapters { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tour-chapters li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
@media (max-width: 640px) { .tour-frame { aspect-ratio: 9 / 15; } }

/* Investors */
.thesis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; }
.thesis article { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 12px; align-content: start; }
.thesis h3 { color: var(--seal); }
.thesis p { color: var(--muted); }
.ledger { margin-top: 56px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ledger-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); align-items: center; }
.ledger-row > * { min-width: 0; }
.ledger-head { border-top: 0; background: var(--surface); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.st { font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.st-ok { color: var(--ok); }
.st-ok::before { content: '● '; }
.ledger-row.next { color: var(--muted); }
.model { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.model > div { display: grid; gap: 10px; min-width: 0; flex: 1 1 380px; }
.model h3 { font-size: 1.8rem; }

/* Team */
.sub a { color: var(--fg); text-underline-offset: 3px; }
.team { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.person h3 { font-size: 1.45rem; }
.person p:last-child { color: var(--muted); }
.monogram { width: 64px; height: 64px; border-radius: 50%; border: 2px double var(--seal); color: var(--seal); display: grid; place-items: center; font-size: .78rem; font-weight: 500; letter-spacing: .08em; transform: rotate(-8deg); margin-bottom: 6px; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }

/* Clinics */
.checks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; color: var(--muted); }
.checks li::before { content: '✓'; color: var(--ok); font-weight: 700; }
.desk-card { padding: 22px 24px; display: grid; gap: 4px; max-width: 420px; width: 100%; margin-inline: auto; transform: rotate(1.5deg); }
.desk-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--paper-line); font-size: .95rem; }
.desk-row span { color: var(--paper-muted); }
.desk-row b { text-align: right; }
.warn-row b { color: #9b2412; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font: 600 1.1rem var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--mono); color: var(--seal); }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin-top: 10px; max-width: 64ch; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 40px 28px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.foot-grid > div { display: grid; gap: 8px; }
.foot-links { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); }
.disclaimer { margin-top: 24px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero-grid, .tamper, .split, .thesis { grid-template-columns: 1fr; }
  .flip > :first-child { order: 2; }
  .desk-scene { height: 400px; transform: scale(.88); margin-top: -20px; }
}
@media (max-width: 420px) {
  .card-pair { grid-template-columns: 1fr; justify-items: start; }
  .desk-scene { transform: scale(.74); margin-block: -50px; }
  .note { padding: 20px; }
  .note-text { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
}
