/* ==========================================================================
   Edna case study: tokens, chrome and the editorial chapters.
   The language comes from the Edna deck and app: white pages with cream
   panels, blue section labels, pale blue tables, a green for anything you
   act on, Playfair Display for titles and General Sans for everything else.
   ========================================================================== */

@font-face { font-family: "General Sans"; src: url("../assets/fonts/general-sans.woff") format("woff"); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../assets/fonts/playfair-display.woff") format("woff"); font-weight: 400 900; font-style: normal; font-display: swap; }

:root {
    --ink: #1b2b32;
    --ink-2: #3c4a51;
    --grey: #66737a;
    --grey-2: #9aa4a9;
    --paper: #ffffff;
    --cream: #f9f2dc;
    --cream-2: #efe2b8;
    --cream-ink: #7d6c3c;
    --blue: #0f62fe;
    --blue-20: #d0e2ff;
    --blue-10: #edf5ff;
    --green: #027a5c;
    --green-d: #027b4f;
    --amber: #d49059;
    --bubble: #f2f7fb;
    --chip: #c3d4e1;
    --line: rgba(27, 43, 50, 0.14);
    --line-2: rgba(27, 43, 50, 0.07);

    --sk-yellow: #e2c955;
    --sk-pink: #e98c99;
    --sk-green: #63c19a;
    --sk-blue: #76a8ea;
    --sk-cream: #e9d9a6;

    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --sans: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

    --w: 1120px;
    --gut: clamp(16px, 4vw, 56px);
    --bar: 60px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure, dl, dd, blockquote { margin: 0; }
pre { margin: 0; }
code { font-family: var(--mono); }
::selection { background: var(--blue-20); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--green); color: #fff; padding: 8px 14px; font-weight: 600; border-radius: 999px; }
.skip:focus { left: 8px; }

.g { width: 100%; height: 100%; overflow: visible; }

/* ---------- Shared type ---------- */
.label { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font: 600 12px/1.2 var(--sans); letter-spacing: 0.17em; text-transform: uppercase; color: var(--blue); }
.label .n { font-family: var(--mono); font-weight: 500; letter-spacing: 0; font-size: 11.5px; padding: 4px 7px; border-radius: 5px; background: var(--blue-10); }
.prose p { font-size: 17px; color: var(--ink-2); }
.prose p + p { margin-top: 1em; }
.sub-title { font: 400 clamp(26px, 2.6vw, 34px)/1.1 var(--serif); letter-spacing: -0.01em; margin-bottom: 12px; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-d); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(3, 137, 105, 0.28); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--ink); color: #fff; }

/* ==========================================================================
   Top bar and chapter menu
   ========================================================================== */
.bar { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--bar); display: flex; align-items: center; gap: 16px; padding: 0 clamp(14px, 2.4vw, 32px); background: rgba(255, 255, 255, 0); transition: background 0.4s, box-shadow 0.4s; }
.bar.is-solid { background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.bar-logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; flex: none; }
.bar-logo b { font: 500 25px/1 var(--serif); letter-spacing: -0.01em; }
.bar-logo span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.bar-mid { position: relative; flex: 1; display: flex; justify-content: center; min-width: 0; }
.bar-chapter { display: flex; align-items: center; gap: 10px; max-width: 100%; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 500; transition: box-shadow 0.3s, background 0.3s; }
.bar-chapter:hover, .bar-chapter[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--blue); background: #fff; }
.bar-n { font: 500 11px/1 var(--mono); color: var(--blue); background: var(--blue-10); padding: 6px 7px; border-radius: 999px; flex: none; }
.bar-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bar-chapter > i { flex: none; width: 7px; height: 7px; margin-left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.3s; }
.bar-chapter[aria-expanded="true"] > i { transform: translateY(1px) rotate(-135deg); }
.toc { position: absolute; top: calc(100% + 10px); left: 50%; width: min(360px, calc(100vw - 24px)); transform: translateX(-50%); padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(27, 43, 50, 0.16); }
.toc a { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-size: 14.5px; font-weight: 500; }
.toc a small { font: 500 11px var(--mono); color: var(--grey); }
.toc a:hover { background: var(--blue-10); }
.toc a[aria-current="true"] { background: var(--cream); }
.toc a[aria-current="true"] small { color: var(--cream-ink); }
.bar-right { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 22px); flex: none; }
.bar-link { font-size: 14.5px; font-weight: 500; text-decoration: none; }
.bar-link:hover { color: var(--green); }
.bar-cta { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--green); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.3s; }
.bar-cta:hover { background: var(--green-d); }
.bar-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: calc(var(--bar) + clamp(24px, 5vh, 60px)) var(--gut) clamp(48px, 8vh, 90px); overflow: hidden; }
.hero::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 47%; background: var(--cream); z-index: -1; }
.hero-copy { position: relative; max-width: 620px; justify-self: end; width: 100%; }
.hero-title { font: 400 clamp(108px, 15.5vw, 240px)/0.86 var(--serif); letter-spacing: -0.035em; margin: 18px 0 8px -0.05em; }
.ht { display: block; overflow: hidden; padding: 0 0.04em 0.06em 0; }
.ht .ch { display: inline-block; will-change: transform; }
.hero-sub { font: 400 clamp(22px, 2.15vw, 31px)/1.2 var(--serif); color: var(--ink); max-width: 22ch; }
.hero-lede { margin-top: 20px; font-size: clamp(16.5px, 1.2vw, 18px); line-height: 1.65; color: var(--ink-2); max-width: 48ch; }
.hero-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 26px; margin-top: clamp(26px, 4.5vh, 42px); }
.hero-meta div { border-top: 1px solid var(--line); padding-top: 10px; }
.hero-meta dt { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 3px; }
.hero-meta dd { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.hero-art { position: relative; height: min(80vh, 720px); min-height: 520px; }
.hero-scroll { position: absolute; left: var(--gut); bottom: 22px; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.hero-scroll i { position: relative; width: 46px; height: 1.5px; overflow: hidden; background: var(--line); }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--green); animation: scrollhint 2.2s var(--ease) infinite; }
@keyframes scrollhint { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* Mood board: a look laid out on the cream panel */
.hero-art .board { position: absolute; inset: 0; }
.mb { position: absolute; padding: 9px 9px 12px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 rgba(27, 43, 50, 0.04), 0 22px 48px rgba(27, 43, 50, 0.13); }
.mb-img { aspect-ratio: 1; border-radius: 10px; background: var(--bg, #eee); display: grid; place-items: center; padding: 8%; }
.mb figcaption { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 8px; padding: 10px 4px 0; }
.mb figcaption b { font-size: 15px; font-weight: 600; }
.mb figcaption span { justify-self: end; font-size: 11.5px; color: var(--grey); }
.mb figcaption small { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }
.mb-gown { left: 30%; top: 3%; width: 40%; rotate: -2.5deg; z-index: 2; }
.mb-clutch { left: 2%; top: 13%; width: 30%; rotate: 4deg; }
.mb-heels { left: 67%; top: 20%; width: 30%; rotate: 5deg; }
.mb-pearls { left: 7%; top: 52%; width: 28%; rotate: -5deg; }
.mb-bubble { position: absolute; z-index: 3; max-width: 260px; padding: 11px 15px 12px; font-size: 14.5px; line-height: 1.45; font-weight: 500; box-shadow: 0 14px 30px rgba(27, 43, 50, 0.12); }
.mb-bubble small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 2px; opacity: 0.7; }
.mb-you { left: 46%; top: 58%; background: var(--green); color: #fff; border-radius: 16px 16px 3px 16px; }
.mb-edna { left: 40%; top: 73%; max-width: 300px; background: var(--bubble); color: var(--ink); border-radius: 3px 16px 16px 16px; box-shadow: 0 0 0 1px var(--line-2), 0 14px 30px rgba(27, 43, 50, 0.1); }
.hero-art .mb-note { position: absolute; z-index: 3; font: 500 14px/1 var(--mono); color: var(--ink); white-space: nowrap; }
.hero-art .mb-note.sk { left: 73%; top: 7%; padding: 14px 20px; }
.hero-art .mb-note-2 { left: 14%; top: 93%; }

.band { background: var(--green); color: #fff; padding: clamp(26px, 4vw, 44px) var(--gut); }
.band-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 1240px; margin: 0 auto; }
.band-stats li { display: flex; flex-direction: column; gap: 6px; border-left: 1px solid rgba(255, 255, 255, 0.35); padding-left: 16px; }
.band-stats b { font: 400 clamp(34px, 3.9vw, 56px)/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.band-stats > li > span { font-size: 13.5px; font-weight: 500; color: #fff; }

.marquee { overflow: hidden; padding: 18px 0; border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li { flex: none; padding: 10px 16px; border-radius: 6px; background: var(--cream); font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.marquee li.tech { background: var(--blue-10); color: #1c3f8a; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Chapters
   ========================================================================== */
.chapter { padding: clamp(90px, 11vw, 150px) var(--gut) 0; }
.chapter > * { max-width: var(--w); margin-left: auto; margin-right: auto; }
.content > .chapter:last-child { padding-bottom: clamp(80px, 10vw, 130px); }
.ch-head { margin-bottom: clamp(30px, 4.5vw, 54px); }
.ch-title { font: 400 clamp(42px, 5.6vw, 78px)/1.02 var(--serif); letter-spacing: -0.025em; margin-top: 18px; }
.ch-lede { margin-top: 20px; font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.65; color: var(--ink-2); max-width: 64ch; }
.ch-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ch-cols-tight { margin-top: clamp(32px, 4.5vw, 56px); grid-template-columns: 1fr 1fr; }

/* ---------- The problem ---------- */
.brief { position: relative; padding: clamp(24px, 3.4vw, 44px); margin-bottom: clamp(36px, 5vw, 64px); border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 24px 50px rgba(27, 43, 50, 0.06); }
.brief::before { content: ""; position: absolute; left: clamp(24px, 3.4vw, 44px); top: -1px; width: 64px; height: 3px; background: var(--blue); border-radius: 0 0 3px 3px; }
.brief-k { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); margin-bottom: 14px; }
.brief-t { font-size: clamp(19px, 1.9vw, 26px); line-height: 1.75; font-weight: 450; color: var(--ink); }
.brief mark { --hl: #fde58f; color: inherit; padding: 0.05em 0.12em; margin: 0 -0.04em; border-radius: 7px 3px 8px 4px; background: linear-gradient(100deg, transparent 0.3em, var(--hl) 0.3em calc(100% - 0.2em), transparent calc(100% - 0.2em)) no-repeat 0 60% / 0% 78%; -webkit-box-decoration-break: clone; box-decoration-break: clone; background-size: 100% 78%; transition: background-size 1.1s var(--ease) var(--d, 0s); }
.brief mark.m-pink { --hl: #f8b3bb; }
.brief mark.m-teal { --hl: #94ead9; }
.js .brief:not(.is-lit) mark { background-size: 0% 78%; }

.distilled { padding: clamp(22px, 2.8vw, 34px); border-radius: 20px; background: var(--cream); }
.d-k { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-ink); }
.d-big { margin: 12px 0 22px; font: 400 clamp(26px, 2.4vw, 34px)/1.15 var(--serif); }
.d-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.d-h { font: 400 19px/1.2 var(--serif); margin-bottom: 8px; }
.d-cols li { position: relative; padding: 5px 0 5px 18px; font-size: 14.5px; color: var(--ink-2); border-top: 1px solid rgba(125, 108, 60, 0.18); }
.d-cols li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.d-cols div:last-child li::before { background: var(--blue); }

/* ---------- What Edna does: the deck's use case table ---------- */
.uses { border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.uses-head, .use { display: grid; grid-template-columns: 84px minmax(170px, 0.9fr) minmax(0, 2.4fr) 120px; align-items: stretch; }
.uses-head { background: var(--blue-20); font-size: 15px; font-weight: 600; }
.uses-head > span { padding: 14px 18px; }
.uses-head > span:first-child { background: var(--cream-2); }
.use:nth-child(odd) { background: var(--blue-10); }
.use:nth-child(even) { background: #fff; }
.use > * { padding: 18px; }
.use-p { display: grid; place-items: center; background: var(--cream); font: 300 30px/1 var(--sans); letter-spacing: -0.02em; color: var(--ink); }
.use h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.use p { font-size: 15.5px; color: var(--ink-2); border-left: 1px solid var(--line-2); }
.use a { align-self: center; justify-self: end; display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; padding: 7px 12px !important; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.use a::after { content: "→"; color: var(--green); }
.use a:hover { background: var(--green); color: #fff; box-shadow: none; }
.use a:hover::after { color: #fff; }

/* ---------- Performance ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.mt { display: flex; flex-direction: column; gap: 8px; padding: clamp(18px, 2.2vw, 26px); border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.mt-k { font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.mt-big, .mt-pair b { font: 400 clamp(40px, 4.4vw, 60px)/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.mt-d { margin-top: auto; font-size: 14.5px; color: var(--grey); }
.mt-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mt-pair div { display: flex; flex-direction: column; gap: 6px; }
.mt-pair span:not([data-count]) { font-size: 13.5px; color: var(--ink-2); }
.mt-pair b span { font: inherit; color: inherit; }
.mt-wide { grid-column: span 2; }
.mt-lat { background: var(--blue-10); box-shadow: none; }
.mt-cost { background: var(--cream); box-shadow: none; }
.lat { display: grid; gap: 14px; margin-top: 10px; }
.lat-row { display: grid; grid-template-columns: 96px 1fr 70px; align-items: center; gap: 14px; }
.lat-l { font-size: 14px; font-weight: 500; }
.lat-row b { font-size: 15px; font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lat-bar { height: 12px; border-radius: 999px; background: rgba(15, 98, 254, 0.1); overflow: hidden; }
.lat-bar i { display: block; height: 100%; width: calc(var(--w, 0) * 100%); min-width: 6px; border-radius: inherit; background: linear-gradient(90deg, #6ea2ff, var(--blue)); transition: width 2.4s var(--ease); }
.lat-scale { display: flex; justify-content: space-between; margin: -4px 84px 0 110px; font: 500 10.5px var(--mono); color: var(--grey); }
.notes { display: grid; gap: 14px; }
.notes article { padding: 18px 20px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.notes h3, .why h3 { font: 400 22px/1.2 var(--serif); margin-bottom: 6px; }
.notes p, .why p { font-size: 15.5px; color: var(--ink-2); }

/* ---------- Limitations ---------- */
.limits { counter-reset: lim; border-top: 1px solid var(--ink); }
.limits li { counter-increment: lim; display: grid; grid-template-columns: 60px minmax(160px, 260px) 1fr; gap: 18px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.limits li::before { content: "0" counter(lim); font: 500 12px var(--mono); color: var(--blue); }
.limits b { font: 400 24px/1.2 var(--serif); }
.limits p { font-size: 16.5px; color: var(--ink-2); max-width: 62ch; }

/* ---------- What comes next ---------- */
.future { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.fu h3 { font: 400 26px/1.15 var(--serif); margin: 20px 0 8px; }
.fu p { font-size: 15.5px; color: var(--ink-2); }
.fu-art { position: relative; height: 300px; border-radius: 20px; background: var(--cream); overflow: hidden; display: grid; place-items: center; }
.fu-tryon { background: linear-gradient(160deg, #fbeee3, var(--cream)); }
.fu-phone { position: relative; width: 128px; height: 236px; padding: 30px 18px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 6px var(--ink), 0 24px 40px rgba(27, 43, 50, 0.2); overflow: hidden; }
.fu-phone::before { content: ""; position: absolute; left: 50%; top: 18%; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; border: 1.5px dashed var(--grey-2); }
.fu-phone .g { position: relative; margin-top: 46px; height: 140px; }
.fu-scan { position: absolute; left: 0; right: 0; top: 0; height: 36px; background: linear-gradient(transparent, rgba(15, 98, 254, 0.28)); border-bottom: 1.5px solid var(--blue); animation: tryon 3.4s var(--ease) infinite; }
@keyframes tryon { 0% { transform: translateY(-40px); } 70%, 100% { transform: translateY(250px); } }
.fu-onboard { background: var(--blue-10); align-content: center; gap: 14px; }
.tot { display: flex; align-items: center; gap: 12px; }
.tot > span { width: 92px; height: 92px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 10px 24px rgba(27, 43, 50, 0.1); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.tot b { font: 400 18px var(--serif); color: var(--grey); }
.tot > span.is-pick { transform: translateY(-4px) scale(1.04); box-shadow: 0 0 0 2px var(--green), 0 14px 28px rgba(3, 137, 105, 0.22); }
.fu-swipe .fu-art { background: #f3efe8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.sw-stack { position: relative; width: 150px; height: 196px; touch-action: none; }
.sw-card { position: absolute; inset: 0; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px rgba(27, 43, 50, 0.14); cursor: grab; user-select: none; -webkit-user-select: none; }
.sw-card:active { cursor: grabbing; }
.sw-card .sw-img { height: 132px; border-radius: 10px; background: var(--bg); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px; }
.sw-card p { margin-top: 8px; font-size: 13px; font-weight: 600; line-height: 1.25; }
.sw-card small { display: block; font-size: 11px; font-weight: 500; color: var(--grey); }
.sw-card .sw-tag { position: absolute; top: 18px; padding: 3px 9px; border-radius: 6px; font: 700 12px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0; }
.sw-card .sw-tag-yes { left: 16px; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); rotate: -12deg; }
.sw-card .sw-tag-no { right: 16px; color: #d6455d; box-shadow: inset 0 0 0 2px #d6455d; rotate: 12deg; }
.sw-btns { display: flex; align-items: center; gap: 14px; }
.sw-btns button { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 6px 16px rgba(27, 43, 50, 0.14); font-size: 17px; transition: transform 0.3s var(--ease); }
.sw-btns button:hover { transform: scale(1.08); }
.sw-no { color: #d6455d; }
.sw-yes { color: var(--green); }
.sw-count { min-width: 92px; text-align: center; font: 500 12px var(--mono); color: var(--grey); }
.sw-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 13px; color: var(--grey); }
.sw-empty button { margin-top: 8px; font-weight: 600; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Outro and footer ---------- */
.outro { margin-top: clamp(50px, 7vw, 90px); padding: clamp(28px, 5vw, 56px); border-radius: 24px; background: var(--cream); }
.outro-q { font: 400 clamp(26px, 3.2vw, 42px)/1.15 var(--serif); letter-spacing: -0.01em; max-width: 24ch; }
.outro-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px var(--gut); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--grey); }
.foot a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot a:hover { color: var(--green); }

/* ==========================================================================
   Narrow screens
   ========================================================================== */
@media (max-width: 1100px) {
    .uses-head, .use { grid-template-columns: 70px minmax(140px, 0.9fr) minmax(0, 2fr) 110px; }
}
@media (max-width: 900px) {
    :root { --bar: 56px; }
    .bar { gap: 10px; }
    .bar-logo span, .bar-link { display: none; }
    .bar-logo b { font-size: 22px; }
    .bar-chapter { font-size: 12.5px; padding-right: 12px; }
    .bar-cta { padding: 0 13px; font-size: 13px; height: 34px; }
    .hero { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 22px; padding-bottom: 40px; }
    .hero::before { top: auto; left: 0; width: auto; height: min(158vw, 680px); }
    .hero-copy { justify-self: start; }
    .hero-title { margin-top: 14px; }
    .hero-art { height: min(150vw, 640px); min-height: 0; margin: 0 calc(var(--gut) * -1); }
    .hero-scroll { display: none; }
    .mb { padding: 6px 6px 9px; border-radius: 12px; }
    .mb figcaption { padding-top: 7px; }
    .mb figcaption b { font-size: 13px; }
    .mb figcaption span { font-size: 10px; }
    .mb figcaption small { font-size: 11px; }
    .mb-gown { left: 31%; top: 6%; width: 38%; }
    .mb-clutch { left: 3%; top: 11%; width: 29%; }
    .mb-heels { left: 68%; top: 19%; width: 29%; }
    .mb-pearls { left: 6%; top: 46%; width: 30%; }
    .mb-bubble { font-size: 12.5px; padding: 9px 12px 10px; max-width: 200px; }
    .mb-you { left: auto; right: 4%; top: 50%; }
    .mb-edna { left: auto; right: 4%; top: 77%; max-width: 236px; }
    .hero-art .mb-note { font-size: 12px; }
    .hero-art .mb-note.sk { left: auto; right: 5%; top: 1.5%; padding: 10px 14px; }
    .hero-art .mb-note-2 { left: 5%; top: 94%; }
    .band-stats { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
    .ch-cols, .ch-cols-tight { grid-template-columns: minmax(0, 1fr); }
    .d-cols { grid-template-columns: 1fr; gap: 14px; }
    .uses { box-shadow: none; border-radius: 0; overflow: visible; display: grid; gap: 12px; }
    .uses-head { display: none; }
    .use { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "p t" "p d" "p a"; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
    .use > * { padding: 0 16px; }
    .use-p { grid-area: p; padding: 0; font-size: 24px; }
    .use h3 { grid-area: t; padding-top: 14px; }
    .use p { grid-area: d; border: 0; padding-top: 4px; font-size: 15px; }
    .use a { grid-area: a; justify-self: start; margin: 10px 16px 14px; }
    .metrics { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .mt-wide { grid-column: 1 / -1; }
    .mt-ram { grid-column: 1 / -1; }
    .mt-cost { grid-column: auto; }
    .limits li { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; }
    .limits p { grid-column: 2; }
    .future { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .fu-art { height: 260px; }
}
@media (max-width: 520px) {
    .hero-meta { grid-template-columns: 1fr; gap: 12px; }
    .lat-row { grid-template-columns: 74px 1fr 64px; gap: 10px; }
    .lat-row b { font-size: 14px; }
    .lat-l { font-size: 13px; }
    .lat-scale { margin: -4px 74px 0 84px; }
    .metrics { gap: 10px; }
    .mt { padding: 16px; border-radius: 14px; }
    .mt-big, .mt-pair b { font-size: 36px; }
    .mt-d { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
