/* Tailor Verse case study — standalone, no external requests.
   Every class starts with tv- so the page can be embedded in another site.
   Theme: follows the system; the header toggle sets data-theme on <html>. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/fraunces-latin-full-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("assets/fonts/fraunces-latin-full-italic.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url("assets/fonts/dm-sans-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/caveat-latin-600-normal.woff2") format("woff2"); }

:root {
  --tv-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --tv-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tv-hand: "Caveat", "Bradley Hand", cursive;
  --tv-canvas: #f6f1e8; --tv-surface: #fffdf8; --tv-soft: #efe7da; --tv-ink: #23211d; --tv-quiet: #5c564c; --tv-line: #e3dacb; --tv-stitch: #cdb98f;
  --tv-gold: #c9a24a; --tv-brand: #b0832a; --tv-brand-ink: #7d5509; --tv-brand-tint: #f3e7cc; --tv-terra: #a8432d;
  --tv-ok: #2f6b45; --tv-ok-tint: #e3efe3; --tv-warn: #85520f; --tv-warn-tint: #f8ead2; --tv-bad: #a33a28; --tv-bad-tint: #f7e2db;
  --tv-k1: #4c5ff0; --tv-k2: #2fa36b; --tv-k3: #d9892b; --tv-k4: #c2477e;
  --tv-ink-sec: #1c1b18; --tv-ink-sec-text: #f4efe6; --tv-ink-sec-quiet: #b9b1a3;
  --tv-shadow: 0 1px 2px rgba(35,33,29,.05), 0 14px 34px -14px rgba(35,33,29,.18);
  --tv-device-shadow: rgba(35,33,29,.26);
  --tv-r: 28px; --tv-r-sm: 18px; --tv-max: 1320px;
  --tv-gap: clamp(12px, 1.4vw, 20px); --tv-sec-y: clamp(4rem, 8vw, 7.5rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tv-canvas: #23221f; --tv-surface: #2c2b27; --tv-soft: #34322d; --tv-ink: #f4efe6; --tv-quiet: #bab2a4; --tv-line: #44413a; --tv-stitch: #6b6250;
    --tv-brand: #d9b45c; --tv-brand-ink: #e9c872; --tv-brand-tint: #3b3324;
    --tv-ok: #9bd4a9; --tv-ok-tint: #24372a; --tv-warn: #efc27c; --tv-warn-tint: #3a2e1d; --tv-bad: #f1a493; --tv-bad-tint: #43271f;
    --tv-ink-sec: #181715;
    --tv-shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -18px rgba(0,0,0,.7);
    --tv-device-shadow: rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --tv-canvas: #23221f; --tv-surface: #2c2b27; --tv-soft: #34322d; --tv-ink: #f4efe6; --tv-quiet: #bab2a4; --tv-line: #44413a; --tv-stitch: #6b6250;
  --tv-brand: #d9b45c; --tv-brand-ink: #e9c872; --tv-brand-tint: #3b3324;
  --tv-ok: #9bd4a9; --tv-ok-tint: #24372a; --tv-warn: #efc27c; --tv-warn-tint: #3a2e1d; --tv-bad: #f1a493; --tv-bad-tint: #43271f;
  --tv-ink-sec: #181715;
  --tv-shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -18px rgba(0,0,0,.7);
  --tv-device-shadow: rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body.tv-cs {
  margin: 0; background: var(--tv-canvas); color: var(--tv-ink);
  font: 400 1.0625rem/1.65 var(--tv-sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
.tv-cs img { max-width: 100%; height: auto; display: block; }
.tv-cs a { color: var(--tv-brand-ink); text-underline-offset: .18em; }
.tv-cs :focus-visible { outline: 3px solid var(--tv-brand); outline-offset: 3px; border-radius: 6px; }
.tv-cs main:focus { outline: none; }
.tv-cs code { font: 600 .85em/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tv-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.tv-skip { position: absolute; left: 1rem; top: -5rem; z-index: 50; padding: .75rem 1rem; border-radius: 12px; background: var(--tv-ink); color: var(--tv-canvas) !important; font-weight: 600; }
.tv-skip:focus { top: 1rem; }

.tv-wrap { width: 100%; max-width: var(--tv-max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 48rem) { .tv-wrap { padding: 0 40px; } }

/* ── Top bar ── */
.tv-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--tv-canvas) 84%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--tv-line); }
.tv-top-in { display: flex; align-items: center; gap: .75rem; min-height: 64px; }
.tv-back { display: inline-flex; align-items: center; gap: .45rem; flex: none; min-height: 40px; padding: .4rem .9rem .4rem .75rem; border-radius: 999px; background: var(--tv-surface); box-shadow: 0 0 0 1px var(--tv-line); color: var(--tv-ink) !important; text-decoration: none; font-size: .9rem; font-weight: 600; }
.tv-back:hover { box-shadow: 0 0 0 1px var(--tv-brand); }
.tv-top nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tv-top nav::-webkit-scrollbar { display: none; }
.tv-nav { display: flex; justify-content: flex-end; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.tv-nav a { display: block; padding: .45rem .8rem; border-radius: 999px; color: var(--tv-quiet); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.tv-nav a:hover { color: var(--tv-ink); background: var(--tv-surface); }
.tv-nav a[aria-current="true"] { color: var(--tv-brand-ink); background: var(--tv-brand-tint); }
@media (max-width: 52rem) { .tv-nav { justify-content: flex-start; } }
.tv-theme { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--tv-surface); box-shadow: 0 0 0 1px var(--tv-line); color: var(--tv-ink); cursor: pointer; }
.tv-theme:hover { box-shadow: 0 0 0 1px var(--tv-brand); }
.tv-theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tv-theme .tv-i-moon { fill: currentColor; stroke: none; }
.tv-theme .tv-i-sun { display: none; }
.tv-theme[aria-pressed="true"] .tv-i-sun { display: block; }
.tv-theme[aria-pressed="true"] .tv-i-moon { display: none; }

/* ── Hero ── */
.tv-hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.tv-hero::before { content: ""; position: absolute; inset: -25% -10% auto auto; width: 75vw; height: 75vw; max-width: 1000px; max-height: 1000px; background: radial-gradient(closest-side, color-mix(in srgb, var(--tv-brand) 22%, transparent), transparent); pointer-events: none; }
.tv-hero-grid { position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 64rem) { .tv-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.tv-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.5rem; padding: .4rem .9rem; border-radius: 999px; background: var(--tv-surface); box-shadow: var(--tv-shadow); font-size: .82rem; font-weight: 600; color: var(--tv-quiet); }
.tv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tv-k2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tv-k2) 22%, transparent); }
.tv-hero h1 { margin: 0; font-size: clamp(2.6rem, 1.3rem + 5vw, 5.2rem); line-height: 1; letter-spacing: -.045em; font-weight: 750; }
.tv-grad { background: linear-gradient(100deg, var(--tv-brand) 10%, #8a5cf0 60%, var(--tv-k4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tv-lede { margin: 1.5rem 0 0; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--tv-quiet); }
.tv-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 2rem 0 0; overflow: hidden; border-radius: var(--tv-r-sm); background: var(--tv-line); box-shadow: 0 0 0 1px var(--tv-line); }
.tv-meta div { padding: .9rem 1.1rem; background: var(--tv-surface); }
.tv-meta dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tv-quiet); }
.tv-meta dd { margin: .2rem 0 0; font-weight: 600; font-size: .95rem; }

.tv-devices { position: relative; padding: 0 0 18% 0; }
.tv-browser { position: relative; border-radius: 16px; overflow: hidden; background: var(--tv-surface); box-shadow: 0 30px 80px -30px var(--tv-device-shadow), 0 0 0 1px var(--tv-line); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.tv-browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--tv-surface); border-bottom: 1px solid var(--tv-line); }
.tv-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--tv-line); }
.tv-dev-tablet { position: absolute; left: -4%; bottom: 2%; width: 50%; filter: drop-shadow(0 24px 40px var(--tv-device-shadow)); }
.tv-dev-phone { position: absolute; right: 2%; bottom: -2%; width: 21%; filter: drop-shadow(0 24px 40px var(--tv-device-shadow)); }
@media (max-width: 63.99rem) { .tv-dev-tablet { left: 0; } .tv-dev-phone { right: 0; } }

/* ── Sections ── */
.tv-sec { padding: var(--tv-sec-y) 0; }
.tv-sec-tight { padding-top: 0; }
.tv-sec-tint { background: var(--tv-surface); }
.tv-sec-ink { background: var(--tv-ink-sec); color: var(--tv-ink-sec-text); --tv-quiet: var(--tv-ink-sec-quiet); --tv-line: rgba(255,255,255,.12); }
.tv-kicker { display: inline-flex; align-items: center; gap: .75rem; margin: 0 0 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tv-brand-ink); }
.tv-kicker::after { content: ""; width: 56px; border-top: 2px dashed currentColor; opacity: .55; }
.tv-sec-ink .tv-kicker { color: #b3bbff; }

/* Section header: title left, intro right — uses the full width */
.tv-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 60rem) { .tv-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: end; } }
.tv-head h2 { margin: 0; font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.3rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 720; }
.tv-sub { margin: 0; font-size: 1.075rem; color: var(--tv-quiet); }
.tv-head-sm { margin: clamp(3rem, 6vw, 5rem) 0 1.5rem; align-items: center; }
.tv-head-sm .tv-h3 { margin: 0; }
.tv-h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); letter-spacing: -.02em; }
.tv-small { margin: 0; font-size: .875rem; color: var(--tv-quiet); }

.tv-card { padding: clamp(1.25rem, 2vw, 1.75rem); border-radius: var(--tv-r); background: var(--tv-surface); box-shadow: var(--tv-shadow); }
.tv-sec-tint .tv-card { background: var(--tv-canvas); box-shadow: none; }
.tv-card h3 { margin: 0 0 .6rem; font-size: 1.05rem; letter-spacing: -.01em; }
.tv-card p { margin: 0; color: var(--tv-quiet); }

/* ── At a glance ── */
.tv-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tv-gap); margin: 0; padding: 0; list-style: none; }
@media (min-width: 60rem) { .tv-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tv-stat { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 170px; padding: 1.5rem; border-radius: var(--tv-r); background: var(--tv-surface); box-shadow: var(--tv-shadow); }
.tv-stat b { font-size: clamp(2.4rem, 1.6rem + 2vw, 3.4rem); line-height: 1; letter-spacing: -.04em; font-weight: 750; }
.tv-stat span { color: var(--tv-quiet); font-size: .93rem; }
.tv-stat-xl { grid-column: span 2; grid-row: span 2; background: linear-gradient(140deg, #3b49d6, #2f3bb8); color: #fff; }
.tv-stat-xl b { font-size: clamp(5rem, 3rem + 7vw, 9.5rem); }
.tv-stat-xl span { color: #fff; font-size: 1.1rem; max-width: 20rem; }

/* ── Problem ── */
.tv-pains { display: grid; gap: var(--tv-gap); margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .tv-pains { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .tv-pains { grid-template-columns: repeat(4, 1fr); } }
.tv-pains li { position: relative; padding: 1.5rem 1.5rem 1.75rem; border-radius: var(--tv-r); background: var(--tv-surface); box-shadow: var(--tv-shadow); overflow: hidden; }
.tv-pains li::after { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; bottom: 0; border-bottom: 3px dashed var(--tv-bad); opacity: .45; }
.tv-pains h3 { margin: 1rem 0 .4rem; font-size: 1.15rem; letter-spacing: -.015em; }
.tv-pains p { margin: 0; color: var(--tv-quiet); font-size: .95rem; }
.tv-pain-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tv-bad-tint); color: var(--tv-bad); font-size: 1.2rem; font-weight: 700; }
.tv-assume { margin: var(--tv-gap) 0 0; padding: 1rem 1.25rem; border-radius: var(--tv-r-sm); background: var(--tv-warn-tint); color: var(--tv-ink); font-size: .95rem; }
.tv-assume b { color: var(--tv-warn); }

.tv-hmw { display: grid; gap: 1rem; margin: clamp(2.5rem, 5vw, 4rem) 0; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--tv-r); background: var(--tv-brand-tint); border: 2px dashed color-mix(in srgb, var(--tv-brand) 45%, transparent); }
@media (min-width: 60rem) { .tv-hmw { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 3rem; align-items: start; } }
.tv-hmw-label { margin: .35rem 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tv-brand-ink); }
.tv-hmw-text { margin: 0; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.9rem); line-height: 1.3; letter-spacing: -.02em; font-weight: 620; color: var(--tv-brand-ink); }

.tv-people { display: grid; grid-template-columns: 1fr; gap: var(--tv-gap); margin: 0; padding: 0; list-style: none; }
@media (min-width: 30rem) { .tv-people { grid-template-columns: repeat(2, 1fr); } .tv-people li:last-child { grid-column: 1 / -1; } }
@media (min-width: 56rem) { .tv-people { grid-template-columns: repeat(5, 1fr); } .tv-people li:last-child { grid-column: auto; } }
.tv-people li { display: flex; flex-direction: column; gap: .2rem; padding: 1.25rem 1.35rem; border-radius: var(--tv-r-sm); background: var(--tv-surface); box-shadow: var(--tv-shadow); }
.tv-people span:last-child { color: var(--tv-quiet); font-size: .9rem; }
.tv-ico { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: .6rem; border-radius: 12px; background: var(--tv-brand-tint); color: var(--tv-brand-ink); font-size: 1rem; }

/* ── Solution map ── */
.tv-map { display: grid; gap: var(--tv-gap); margin: 0; padding: 0; list-style: none; }
.tv-map > li { display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.5rem, 2.5vw, 2.25rem); border-radius: var(--tv-r); background: var(--tv-canvas); }
@media (min-width: 64rem) { .tv-map > li { grid-template-columns: minmax(0, 2.2fr) minmax(0, 5fr) minmax(0, 4.8fr); gap: 2.5rem; } }
.tv-map-pain span, .tv-map-fix > span { display: block; margin-bottom: .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tv-map-pain span { color: var(--tv-bad); }
.tv-map-fix > span { color: var(--tv-ok); }
.tv-map-pain b { display: block; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); line-height: 1.12; letter-spacing: -.02em; }
.tv-map-pain { position: relative; }
@media (min-width: 64rem) { .tv-map-pain::after { content: "→"; position: absolute; right: -1.75rem; top: 50%; transform: translateY(-50%); color: var(--tv-brand); font-size: 1.4rem; } }
.tv-map-fix ul { margin: 0; padding: 0; list-style: none; }
.tv-map-fix li { position: relative; padding: .4rem 0 .4rem 1.6rem; font-size: .97rem; }
.tv-map-fix li::before { content: ""; position: absolute; left: .15rem; top: .8rem; width: 11px; height: 6px; border-left: 2px solid var(--tv-ok); border-bottom: 2px solid var(--tv-ok); transform: rotate(-45deg); }
.tv-map-fix code { padding: .1rem .35rem; border-radius: 6px; border: 1px dashed var(--tv-brand); color: var(--tv-brand-ink); }
.tv-map-shot { margin: 0; }
.tv-map-shot img { border-radius: 14px; box-shadow: var(--tv-shadow), 0 0 0 1px var(--tv-line); }
.tv-map-phone img, .tv-map-tablet img { box-shadow: none; border-radius: 0; filter: drop-shadow(0 14px 24px var(--tv-device-shadow)); }
.tv-map-phone img { max-width: 190px; margin-inline: auto; }

/* Journey */
.tv-legend { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .5rem 1.25rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; color: var(--tv-quiet); }
@media (min-width: 60rem) { .tv-legend { justify-content: flex-end; } }
.tv-legend li { display: inline-flex; align-items: center; gap: .5rem; }
.tv-legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.tv-k1 { --c: var(--tv-k1); } .tv-k2 { --c: var(--tv-k2); } .tv-k3 { --c: var(--tv-k3); } .tv-k4 { --c: var(--tv-k4); }
.tv-path { position: relative; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tv-path li { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: 1.25rem 1.25rem 1.25rem 4.25rem; border-radius: var(--tv-r-sm); background: var(--tv-canvas); border-left: 4px solid var(--c); }
.tv-path li > span:not(.tv-step) { color: var(--tv-quiet); font-size: .9rem; }
.tv-path em { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tv-ink); }
.tv-path em::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tv-step { position: absolute; left: 1.1rem; top: 1.15rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: .9rem; }
@media (min-width: 64rem) {
  .tv-path { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; padding-top: 1.1rem; }
  .tv-path::before { content: ""; position: absolute; left: 4%; right: 4%; top: 2.15rem; border-top: 2px dashed var(--tv-line); }
  .tv-path li { padding: 3.75rem 1rem 1.25rem; border-left: 0; border-top: 4px solid var(--c); }
  .tv-step { left: 1rem; top: -1.1rem; box-shadow: 0 0 0 6px var(--tv-surface); }
}

/* ── Shots & zoom ── */
.tv-shot { margin: 0; }
.tv-zoom { display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--tv-surface); box-shadow: var(--tv-shadow), 0 0 0 1px var(--tv-line); cursor: zoom-in; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.tv-zoom:hover { transform: translateY(-4px); }
.tv-shot-bare .tv-zoom, .tv-sec-ink .tv-shot-bare .tv-zoom { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.tv-shot-bare img { filter: drop-shadow(0 18px 30px var(--tv-device-shadow)); }
.tv-sec-ink .tv-shot-bare img { filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); }
.tv-shot figcaption { margin-top: .85rem; font-size: .9rem; color: var(--tv-quiet); }
.tv-sec-ink .tv-zoom { box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.tv-shot-phone { max-width: 300px; margin-inline: auto; }

/* ── Use cases ── */
.tv-ucs { display: grid; gap: var(--tv-gap); }
@media (min-width: 56rem) { .tv-ucs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 90rem) { .tv-ucs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tv-uc { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--tv-r); background: var(--tv-surface); box-shadow: var(--tv-shadow); }
.tv-uc-img { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; background: var(--tv-brand-tint); }
.tv-uc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.tv-uc-bare img { width: auto; height: 88%; object-fit: contain; filter: drop-shadow(0 12px 20px var(--tv-device-shadow)); }
.tv-uc-img:hover { transform: none; }
.tv-uc-body { padding: clamp(1.25rem, 2vw, 1.75rem); }
.tv-uc-n { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tv-brand-ink); }
.tv-uc h3 { margin: .45rem 0 1rem; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; }
.tv-uc dl { display: grid; grid-template-columns: 5.5rem 1fr; gap: .55rem .75rem; margin: 0; font-size: .93rem; }
.tv-uc dt { font-weight: 700; color: var(--tv-quiet); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding-top: .2rem; }
.tv-uc dd { margin: 0; }

/* ── Value: before / after ── */
.tv-ba { overflow-x: auto; border-radius: var(--tv-r); background: var(--tv-canvas); }
.tv-ba table { width: 100%; min-width: 44rem; border-collapse: collapse; }
.tv-ba th, .tv-ba td { padding: 1.15rem 1.5rem; text-align: left; vertical-align: top; border-top: 1px dashed var(--tv-line); }
.tv-ba thead th { border-top: 0; padding-top: 1.5rem; }
.tv-ba tbody th { width: 18%; font-weight: 700; }
.tv-ba td { width: 41%; }
.tv-ba td:nth-child(2) { color: var(--tv-quiet); }
.tv-metrics { display: grid; gap: var(--tv-gap); margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .tv-metrics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .tv-metrics { grid-template-columns: repeat(5, 1fr); } }
.tv-metrics li { display: flex; flex-direction: column; gap: .45rem; padding: 1.35rem; border-radius: var(--tv-r-sm); border: 1.5px dashed var(--tv-line); }
.tv-metrics b { font-size: 1.05rem; }
.tv-metrics span { color: var(--tv-quiet); font-size: .9rem; }
.tv-metrics li::before { content: "To measure"; align-self: flex-start; padding: .15rem .55rem; border-radius: 999px; background: var(--tv-warn-tint); color: var(--tv-warn); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }

/* ── Gallery ── */
.tv-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.5rem; }
.tv-filter button { min-height: 42px; padding: .5rem 1.1rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: transparent; color: var(--tv-ink-sec-text); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; }
.tv-filter button:hover { background: rgba(255,255,255,.08); }
.tv-filter button[aria-pressed="true"] { background: var(--tv-ink-sec-text); color: var(--tv-ink-sec); border-color: var(--tv-ink-sec-text); }
.tv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 2.5rem var(--tv-gap); margin: 0; padding: 0; list-style: none; }
.tv-gallery li[hidden] { display: none; }
.tv-gallery .tv-g-phone .tv-shot-phone { max-width: 250px; }

/* ── Design system ── */
.tv-ds { display: grid; gap: var(--tv-gap); }
@media (min-width: 60rem) { .tv-ds { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.tv-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; margin: 1rem 0 0; padding: 0; list-style: none; }
.tv-swatches li { display: flex; flex-direction: column; font-size: .85rem; }
.tv-swatches i { height: 68px; margin-bottom: .5rem; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(24,27,39,.1); }
.tv-swatches code { color: var(--tv-quiet); font-weight: 500; }
.tv-ds-type p { margin: .35rem 0 0; color: var(--tv-ink); }
.tv-t1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.tv-t2 { font-size: 1.65rem; font-weight: 650; letter-spacing: -.025em; }
.tv-t3 { font-size: 1.15rem; font-weight: 650; }
.tv-ds-type .tv-t4 { color: var(--tv-quiet); }
.tv-ds-type .tv-t5 { margin-top: 1.25rem; font-size: .78rem; color: var(--tv-quiet); letter-spacing: .06em; text-transform: uppercase; }
.tv-demo-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.tv-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.15rem; border-radius: 12px; background: #4c5ff0; color: #fff; font-weight: 600; font-size: .92rem; box-shadow: 0 8px 18px -8px rgba(76,95,240,.7); }
.tv-btn-soft { background: var(--tv-brand-tint); color: var(--tv-brand-ink); box-shadow: none; }
.tv-btn-ghost { background: transparent; color: var(--tv-ink); box-shadow: inset 0 0 0 1px var(--tv-line); }
.tv-pill { display: inline-flex; align-items: center; padding: .3rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.tv-pill-brand { background: var(--tv-brand-tint); color: var(--tv-brand-ink); }
.tv-pill-ok { background: var(--tv-ok-tint); color: var(--tv-ok); }
.tv-pill-warn { background: var(--tv-warn-tint); color: var(--tv-warn); }
.tv-pill-bad { background: var(--tv-bad-tint); color: var(--tv-bad); }
.tv-token { padding: .35rem .7rem; border-radius: 10px; border: 1.5px dashed var(--tv-brand); color: var(--tv-brand-ink); font: 700 .82rem/1.2 ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.tv-tag { padding: .35rem .7rem; border-radius: 10px; background: var(--tv-canvas); font-size: .82rem; font-weight: 600; }
.tv-icons-img { margin-top: 1.25rem; border-radius: 18px; box-shadow: 0 0 0 1px var(--tv-line); }

/* ── Gaps & next ── */
.tv-gapcards { display: grid; gap: var(--tv-gap); margin: 0; padding: 0; list-style: none; }
@media (min-width: 44rem) { .tv-gapcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .tv-gapcards { grid-template-columns: repeat(3, 1fr); } }
.tv-gapcards li { display: flex; flex-direction: column; gap: .6rem; padding: clamp(1.25rem, 2vw, 1.75rem); border-radius: var(--tv-r); background: var(--tv-canvas); }
.tv-gapcards .tv-pill { align-self: flex-start; }
.tv-gapcards h3 { margin: .25rem 0 0; font-size: 1.2rem; letter-spacing: -.015em; }
.tv-gapcards p { margin: 0; font-size: .95rem; color: var(--tv-quiet); }
.tv-gapcards p b { color: var(--tv-ink); }

/* ── Reflection ── */
.tv-learn { display: grid; gap: var(--tv-gap); margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .tv-learn { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .tv-learn { grid-template-columns: repeat(4, 1fr); } }
.tv-learn li { padding: 1.5rem; border-radius: var(--tv-r); background: var(--tv-surface); box-shadow: var(--tv-shadow); }
.tv-learn b { display: block; font-size: 2.6rem; line-height: 1; font-weight: 800; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--tv-brand); }
.tv-learn p { margin: 1rem 0 0; font-size: 1rem; }
.tv-evidence-note { margin-top: 2rem; }

/* ── More work ── */
.tv-more .tv-head { align-items: end; }
.tv-link-arrow { font-weight: 600; text-decoration: none; }
@media (min-width: 60rem) { .tv-more .tv-sub { text-align: right; } }
.tv-morelist { display: grid; gap: var(--tv-gap); margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .tv-morelist { grid-template-columns: repeat(3, 1fr); } }
.tv-morelist a { display: flex; flex-direction: column; gap: .5rem; min-height: 190px; padding: 1.75rem; border-radius: var(--tv-r); background: var(--tv-canvas); color: var(--tv-ink) !important; text-decoration: none; box-shadow: 0 0 0 1px var(--tv-line); transition: transform .3s, box-shadow .3s; }
.tv-morelist a:hover { transform: translateY(-4px); box-shadow: 0 0 0 1.5px var(--tv-brand); }
.tv-more-tag { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tv-quiet); }
.tv-morelist b { font-size: 1.9rem; letter-spacing: -.03em; line-height: 1.1; }
.tv-more-go { margin-top: auto; color: var(--tv-brand-ink); font-weight: 600; font-size: .95rem; }

/* ── Footer ── */
.tv-footer { padding: 2.25rem 0; border-top: 1px dashed var(--tv-line); color: var(--tv-quiet); font-size: .9rem; }
.tv-footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.tv-footer p { margin: 0; }

/* ── Lightbox ── */
.tv-lightbox { width: min(96vw, 1440px); max-height: 94vh; padding: 0; border: 0; border-radius: 18px; background: var(--tv-surface); box-shadow: 0 40px 120px rgba(0,0,0,.5); }
.tv-lightbox::backdrop { background: rgba(12,14,20,.8); backdrop-filter: blur(6px); }
.tv-lightbox img { width: 100%; max-height: 94vh; object-fit: contain; }
.tv-lb-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tv-ink); color: var(--tv-canvas); font-size: 1rem; cursor: pointer; }

/* ── Motion ── */
@media (prefers-reduced-motion: no-preference) {
  .tv-js .tv-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .tv-js .tv-reveal.tv-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .tv-zoom, .tv-morelist a { transition: none; } .tv-zoom:hover, .tv-morelist a:hover { transform: none; } body.tv-cs { transition: none; } }

/* ── Print ── */
@media print {
  :root, :root[data-theme="dark"] { --tv-canvas: #fff; --tv-surface: #fff; --tv-ink: #000; --tv-quiet: #333; --tv-shadow: none; }
  .tv-top, .tv-skip, .tv-filter, .tv-lightbox, .tv-hero::before, .tv-more { display: none !important; }
  .tv-sec-ink { background: #fff; color: #000; }
  .tv-sec { padding: 1.5rem 0; }
  .tv-browser { transform: none; }
  .tv-uc, .tv-shot, .tv-card, .tv-stat, .tv-path li, .tv-map > li { break-inside: avoid; }
}

/* ═════════ Tailoring skin: type, decoration, closing ═════════ */
.tv-cs h1, .tv-cs h2, .tv-cs h3, .tv-stat b, .tv-map-pain b, .tv-learn b { font-family: var(--tv-serif); font-optical-sizing: auto; font-variation-settings: "SOFT" 50, "WONK" 0; }
.tv-cs h1, .tv-cs h2 { font-weight: 560; letter-spacing: -.025em; }
.tv-cs h3 { font-weight: 600; letter-spacing: -.01em; }
.tv-cs h1 em, .tv-cs h2 em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--tv-brand); }
.tv-head h2 { font-size: clamp(2rem, 1.2rem + 2.9vw, 3.5rem); line-height: 1.05; }
.tv-sec-ink .tv-head h2 { color: var(--tv-ink-sec-text); }

/* Header */
.tv-brand { display: none; align-items: center; gap: .55rem; font-family: var(--tv-serif); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
@media (min-width: 76rem) { .tv-brand { display: inline-flex; } }
.tv-btn-mark { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--tv-gold); box-shadow: inset 0 0 0 3px #a27f2f; }
.tv-btn-mark::before { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; background: radial-gradient(circle, #23211d 1.6px, transparent 2.1px) 0 0 / 5px 5px; }
.tv-theme { width: auto; height: 40px; padding: 0 1rem 0 .8rem; border-radius: 999px; gap: .5rem; display: inline-flex; align-items: center; font: 600 .9rem var(--tv-sans); }
.tv-theme[hidden] { display: none; }
.tv-theme-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.tv-theme[aria-pressed="true"] .tv-theme-dot { background: currentColor; }

/* Kicker, eyebrow, script */
.tv-kicker { color: var(--tv-brand-ink); }
.tv-kicker::after { border-top: 2px dashed var(--tv-stitch); opacity: 1; }
.tv-sec-ink .tv-kicker { color: var(--tv-gold); }
.tv-eyebrow { gap: .6rem; padding: .45rem 1rem; background: transparent; box-shadow: inset 0 0 0 1.5px var(--tv-stitch); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tv-quiet); }
.tv-script { margin: 1.1rem 0 .4rem; font-family: var(--tv-hand); font-weight: 600; font-size: clamp(1.8rem, 1.35rem + 1.4vw, 2.5rem); line-height: 1; color: var(--tv-brand-ink); transform: rotate(-3deg); transform-origin: left; }
.tv-script-sm { display: block; margin: .7rem 0 0; font-size: 1.55rem; text-transform: none; letter-spacing: 0; }

/* Hero */
.tv-hero::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--tv-gold) 24%, transparent), transparent); }
.tv-hero h1 { font-size: clamp(2.8rem, 1.4rem + 5.2vw, 5.6rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 520; }
.tv-hero h1 em { font-weight: 470; }
.tv-meta dt { color: var(--tv-brand-ink); }

/* Decorations: dashed stitch rings, a gold thread, a sewing button */
.tv-hero, .tv-close { isolation: isolate; }
.tv-deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.tv-ring { position: absolute; border-radius: 50%; border: 2px dashed var(--tv-stitch); }
.tv-ring-a { width: 220px; height: 220px; left: -80px; top: 24%; }
.tv-ring-b { width: 120px; height: 120px; right: 7%; top: 5%; border: 10px solid color-mix(in srgb, var(--tv-gold) 22%, transparent); }
.tv-ring-c { width: 380px; height: 380px; right: -150px; bottom: -170px; }
.tv-thread { position: absolute; left: 0; right: 0; bottom: 4%; width: 100%; height: 140px; }
.tv-thread path { fill: none; stroke: var(--tv-gold); stroke-width: 2; stroke-dasharray: 10 9; opacity: .55; }
.tv-button-deco { position: absolute; width: 64px; height: 64px; left: 45%; top: 8%; transform: rotate(18deg); }
.tv-button-deco circle { fill: none; stroke: var(--tv-gold); stroke-width: 3; opacity: .75; }
.tv-button-deco circle:nth-child(n+3) { fill: var(--tv-gold); stroke: none; }
.tv-button-deco .tv-bd-in { stroke-dasharray: 4 5; }
@media (max-width: 40rem) { .tv-button-deco, .tv-ring-b { display: none; } }

/* Warm accents */
.tv-stat-xl { background: linear-gradient(150deg, #a8432d, #7e2f1f); }
.tv-stat-xl b { font-weight: 480; }
.tv-stat b { font-weight: 540; }
.tv-hmw { background: var(--tv-brand-tint); border-color: var(--tv-stitch); }
.tv-hmw-label { color: var(--tv-brand-ink); }
.tv-hmw-text { font-family: var(--tv-serif); font-weight: 460; font-size: clamp(1.4rem, 1.05rem + 1.4vw, 2.2rem); line-height: 1.25; letter-spacing: -.015em; color: var(--tv-ink); }
.tv-pains li::after { border-bottom-color: var(--tv-terra); }
.tv-map-pain b { font-weight: 560; }
.tv-map-fix code, .tv-ticks code { border-color: var(--tv-brand); color: var(--tv-brand-ink); }
.tv-learn b { -webkit-text-stroke: 1.4px var(--tv-brand); font-weight: 600; }
.tv-uc-img { background: var(--tv-soft); }
.tv-nav a[aria-current="true"] { color: var(--tv-ink); background: var(--tv-brand-tint); }
.tv-back:hover, .tv-theme:hover { box-shadow: 0 0 0 1.5px var(--tv-brand); }
.tv-gallery figcaption { font-family: var(--tv-hand); font-size: 1.4rem; font-weight: 600; color: var(--tv-ink-sec-quiet); }

/* Closing, like a thank-you card */
.tv-close { position: relative; overflow: hidden; padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 6rem); background: var(--tv-ink-sec); color: var(--tv-ink-sec-text); --tv-stitch: #5e5648; }
.tv-close h2 { margin: .5rem 0 0; font-size: clamp(2.8rem, 1.2rem + 6vw, 6.2rem); line-height: 1; letter-spacing: -.035em; color: var(--tv-ink-sec-text); }
.tv-close h2 em { color: var(--tv-gold); }
.tv-close .tv-script { color: var(--tv-gold); }
.tv-close-by { margin: 2rem 0 0; font-size: 1.15rem; }
.tv-close-note { max-width: 62rem; margin: 1.75rem 0 0; padding: 1.25rem 1.5rem; border-radius: var(--tv-r-sm); border: 1px solid rgba(255,255,255,.16); font-size: 1.05rem; }
.tv-close-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.25rem; }
.tv-close .tv-small { color: var(--tv-ink-sec-quiet); }
.tv-cta { display: inline-flex; align-items: center; gap: .6rem; min-height: 56px; padding: 0 1.6rem; border-radius: 16px; background: var(--tv-gold); color: #1c1b18 !important; font-weight: 700; font-size: 1.1rem; text-decoration: none; box-shadow: 0 14px 30px -14px rgba(201,162,74,.7); transition: transform .25s; }
.tv-cta:hover { transform: translateY(-2px); }
.tv-close :focus-visible { outline-color: var(--tv-gold); }
.tv-footer { background: var(--tv-ink-sec); color: var(--tv-ink-sec-quiet); border-top: 1px dashed #3a3730; }
.tv-footer a { color: var(--tv-ink-sec-text); }
@media (prefers-reduced-motion: reduce) { .tv-cta { transition: none; } }
@media print { .tv-deco { display: none; } .tv-close { background: #fff; color: #000; } }

/* Editorial hero: headline left, intro + facts right, devices full width below */
.tv-hero-grid { grid-template-columns: minmax(0, 1fr) !important; }
.tv-hero h1 { font-size: clamp(2.8rem, 1.3rem + 4.6vw, 5.4rem); }
@media (min-width: 64rem) {
  .tv-hero-copy { display: grid; grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr); column-gap: clamp(2.5rem, 5vw, 5rem); grid-template-rows: auto auto 1fr auto; }
  .tv-hero-copy > .tv-eyebrow { grid-column: 1; justify-self: start; }
  .tv-hero-copy > .tv-script { grid-column: 1; }
  .tv-hero-copy > h1 { grid-column: 1; grid-row: 3 / 5; }
  .tv-hero-copy > .tv-lede { grid-column: 2; grid-row: 3; align-self: end; margin: 0; }
  .tv-hero-copy > .tv-meta { grid-column: 2; grid-row: 4; }
  .tv-devices { width: min(100%, 1120px); margin: 1rem auto 0; padding-bottom: 14%; }
  .tv-dev-tablet { width: 44%; left: -2%; }
  .tv-dev-phone { width: 18%; right: 1%; }
  .tv-button-deco { left: 50%; right: auto; top: 7%; }
}
@media (max-width: 47.99rem) { .tv-hero .tv-ring-a { display: none; } }
