/* =====================================================================
   Flash · the style
   The tattoo studio: Pirata One blackletter for headlines, Chivo for
   reading and Chivo Mono for sizes, prices and labels, on aged flash
   paper with ink black and one flash red.
   Signature pieces: the flash sheet (.flash: designs that ink themselves
   in, line first then colour, tap to see size, time and price; claimed
   one-offs stamped), the estimator (.sizer: size, placement and colour
   to hours, price range and deposit), the books (.books: each artist's
   months open, waitlist or closed) and the healing timeline (.heal).
   Motion: html.calm stills everything (footer switch, remembered as
   "site-motion"; default from prefers-reduced-motion).
   ===================================================================== */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
html.calm:focus-within { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--flash-soft); color: var(--ink); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--r-s); background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; transition: top var(--d) var(--ease); }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.h1, .h2, .h3 { font-family: var(--display); font-weight: 400; color: var(--ink); text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 0.95; letter-spacing: 0.005em; }
.h2 { font-size: var(--fs-h2); line-height: 1; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; }
/* the lit phrase: flash red, with a hard black shadow like a lettered banner */
.h1 em, .h2 em { font-style: normal; color: var(--flash); text-shadow: 0.045em 0.045em 0 rgba(0, 0, 0, 0.88); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.tag { display: inline-flex; align-items: center; gap: 10px; font: 500 var(--fs-label)/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tag::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--flash); clip-path: polygon(50% 0, 61% 36%, 100% 38%, 69% 61%, 80% 100%, 50% 77%, 20% 100%, 31% 61%, 0 38%, 39% 36%); }
.tag b { font-weight: 700; color: var(--flash); }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.prose p + p { margin-top: 1em; }
.prose a, .link { color: var(--flash); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; font-weight: 700; }
.prose a:hover, .link:hover { color: var(--flash-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--r-s); border: 2px solid var(--ink); font: 700 15px/1 var(--body); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--d-fast) var(--ease), background var(--d-fast), color var(--d-fast), box-shadow var(--d-fast); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--d) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-flash { background: var(--flash); color: var(--on-flash); box-shadow: 4px 4px 0 var(--ink); }
.btn-flash:hover { background: var(--flash-2); }
.btn-line { background: var(--card); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-line:hover { background: var(--well); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 13.5px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- top line ---------- */
.topline { background: var(--ink); color: var(--paper); }
.topline .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; padding-block: 8px; text-align: center; font: 400 14px/1.4 var(--body); }
.topline b { font: 500 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fill-yellow); }
:root[data-theme="dark"] .topline { background: #000; color: #f2e8d6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topline { background: #000; color: #f2e8d6; } }
@media (max-width: 560px) { .topline b { display: none; } }

/* ---------- header and phone menu ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
.nav-in { position: relative; display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
/* the mark: a flash star with an ink outline */
.brand-mark { position: relative; flex: none; width: 34px; height: 34px; background: var(--ink); clip-path: polygon(50% 0, 61% 36%, 100% 38%, 69% 61%, 80% 100%, 50% 77%, 20% 100%, 31% 61%, 0 38%, 39% 36%); }
.brand-mark::after { content: ""; position: absolute; inset: 5px; background: var(--flash); clip-path: inherit; }
.brand-word { font: 400 31px/1 var(--display); letter-spacing: 0.01em; }
.brand-sub { display: block; font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { position: relative; padding: 10px 13px; text-decoration: none; font: 500 15.5px/1 var(--body); color: var(--ink-2); transition: color var(--d-fast); }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--flash); transform: scaleX(0); transform-origin: left; transition: transform var(--d) var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: none; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: var(--r-s); border: 2px solid var(--ink); background: var(--card); cursor: pointer; place-items: center; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform var(--d) var(--ease), background var(--d-fast); }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
.site-menu { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 14px var(--gutter) 24px; background: var(--card); border-bottom: 2px solid var(--ink); box-shadow: var(--shadow-lift); animation: fl-open var(--d) var(--ease) both; }
.site-menu a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 0; border-bottom: 1px dashed var(--line); text-decoration: none; font: 400 36px/1.1 var(--display); color: var(--ink); }
.site-menu a::after { content: attr(data-no); font: 500 11px/1 var(--mono); color: var(--muted); }
.site-menu a[aria-current="page"] { color: var(--flash); }
.site-menu .btn { display: flex; justify-content: center; margin-top: 18px; border-bottom: 2px solid var(--ink); font: 700 15px/1 var(--body); color: var(--on-flash); }
.site-menu .btn::after { display: none; }
@keyframes fl-open { from { opacity: 0; transform: translateY(-8px); } }
html.calm .site-menu { animation: none; }
@media (max-width: 1040px) { .nav-links { display: none; } .menu-btn { display: grid; } }
@media (max-width: 560px) { .nav .nav-cta { display: none; } }
@media (min-width: 1041px) { .site-menu { display: none !important; } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 116px); }
.section.alt { background: var(--well); }
.section-head { display: grid; gap: 14px; justify-items: start; max-width: 780px; margin-bottom: clamp(30px, 4.5vw, 56px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.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: 20px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
.grid-2.lean { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .grid-2.lean { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(34px, 5.5vw, 84px) clamp(60px, 8vw, 104px); overflow: clip; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero-facts { display: grid; gap: 6px; font: 400 14px/1.4 var(--mono); color: var(--ink-2); }
.hero-facts li { display: flex; gap: 10px; align-items: center; }
.hero-facts li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--flash); clip-path: polygon(50% 0, 61% 36%, 100% 38%, 69% 61%, 80% 100%, 50% 77%, 20% 100%, 31% 61%, 0 38%, 39% 36%); }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- the flash sheet (signature) ---------- */
.flash { position: relative; display: grid; gap: 18px; min-width: 0; }
.sheet { position: relative; padding: clamp(18px, 2.6vw, 30px) clamp(14px, 2.4vw, 28px) clamp(16px, 2.2vw, 24px); background: radial-gradient(120% 80% at 85% 10%, rgba(140, 96, 40, 0.13), transparent 55%), radial-gradient(60% 50% at 10% 90%, rgba(140, 96, 40, 0.12), transparent 60%), radial-gradient(14% 10% at 72% 78%, rgba(120, 80, 30, 0.12), transparent 70%), var(--sheet); color: var(--sheet-ink); box-shadow: 0 0 0 1px rgba(23, 18, 14, 0.12), var(--shadow-lift); transform: rotate(-1.2deg); }
/* pins */
.sheet::before, .sheet::after { content: ""; position: absolute; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), var(--fill-red); box-shadow: 0 3px 4px rgba(0, 0, 0, 0.35); }
.sheet::before { left: 12px; } .sheet::after { right: 12px; background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), var(--fill-black); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 18px 12px; border-bottom: 2px solid var(--sheet-ink); font: 500 11px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sheet-muted); }
.sheet-head b { font: 400 26px/1 var(--display); letter-spacing: 0.01em; text-transform: none; color: var(--sheet-ink); }
.designs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(4px, 1vw, 10px); margin-top: 14px; }
.design { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 8%; border: 0; border-radius: 50%; background: transparent; color: var(--sheet-ink); cursor: pointer; transition: transform var(--d) var(--snap), background var(--d-fast); }
.design:hover { transform: rotate(-3deg) scale(1.06); background: rgba(23, 18, 14, 0.05); }
.design[aria-pressed="true"] { background: rgba(194, 48, 31, 0.08); box-shadow: inset 0 0 0 2px var(--fill-red); }
.design:focus-visible { outline-color: var(--sheet-ink); border-radius: 50%; }
.design svg { width: 100%; height: 100%; overflow: visible; }
.design svg * { stroke: var(--sheet-ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.design svg .thin { stroke-width: 2; }
.design svg .f-red { fill: var(--fill-red); } .design svg .f-green { fill: var(--fill-green); } .design svg .f-yellow { fill: var(--fill-yellow); }
.design svg .f-black { fill: var(--fill-black); } .design svg .f-skin { fill: var(--fill-skin); } .design svg .f-steel { fill: var(--fill-steel); }
.design svg .f-blue { fill: var(--fill-blue); } .design svg .f-paper { fill: var(--sheet); } .design svg .f-ink { fill: var(--sheet-ink); }
/* inking in: the line draws, then the colour packs in */
.js .flash:not(.inked) .design svg * { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
.js .flash.inking .design svg * { stroke-dasharray: 1; animation: fl-line 1100ms var(--ease) both, fl-pack 500ms ease-out both; animation-delay: calc(var(--k, 0) * 140ms), calc(var(--k, 0) * 140ms + 1000ms); }
@keyframes fl-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fl-pack { from { fill-opacity: 0; } to { fill-opacity: 1; } }
html.calm .flash .design svg * { animation: none !important; stroke-dasharray: none !important; stroke-dashoffset: 0 !important; fill-opacity: 1 !important; }
/* claimed one-offs */
.design[data-taken]::after { content: attr(data-taken); position: absolute; left: 50%; top: 50%; padding: 3px 8px; border: 2.5px solid var(--fill-red); border-radius: 3px; color: var(--fill-red); font: 700 clamp(9px, 1vw, 12px)/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; transform: translate(-50%, -50%) rotate(-14deg); background: rgba(244, 233, 207, 0.82); white-space: nowrap; }
.design[data-taken] svg { opacity: 0.55; }
.flash-out { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: start; padding: 16px 18px; border-radius: var(--r-m); background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }
.flash-out b { font: 400 30px/1 var(--display); }
.flash-out small { display: block; margin-top: 6px; font: 400 15px/1.45 var(--body); color: var(--ink-2); }
.flash-out dl { display: grid; gap: 2px; text-align: right; font: 400 13.5px/1.4 var(--mono); color: var(--muted); }
.flash-out dd { margin: 0; color: var(--ink); font-weight: 700; }
.flash-out dl > div { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 520px) { .flash-out { grid-template-columns: 1fr; } .flash-out dl { text-align: left; } .flash-out dl > div { justify-content: flex-start; } .sheet { transform: none; } }

/* ---------- the estimator ---------- */
.sizer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(20px, 3vw, 40px); padding: clamp(22px, 3vw, 36px); border-radius: var(--r-l); background: var(--card); box-shadow: inset 0 0 0 2px var(--ink), 8px 8px 0 var(--ink); }
.sizer-in { display: grid; gap: 22px; align-content: start; min-width: 0; }
.sizer-in h3 { font: 500 12px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sizer-cm { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sizer-cm b { font: 400 44px/1 var(--display); }
.sizer-out { display: grid; gap: 16px; align-content: start; min-width: 0; }
.ruler { position: relative; display: grid; place-items: end center; height: 220px; padding-bottom: 28px; border-radius: var(--r-m); background: var(--sheet); color: var(--sheet-ink); overflow: hidden; }
.ruler::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: repeating-linear-gradient(90deg, var(--sheet-ink) 0 1.5px, transparent 1.5px 10px) bottom / 100% 8px no-repeat, repeating-linear-gradient(90deg, var(--sheet-ink) 0 2px, transparent 2px 50px) bottom / 100% 16px no-repeat; border-top: 1px solid rgba(23, 18, 14, 0.2); }
.ruler .art { width: calc(var(--cm, 10) * var(--px, 8px)); max-width: 92%; max-height: 180px; aspect-ratio: 1; transition: width var(--d-slow) var(--snap); }
.ruler .art svg { width: 100%; height: 100%; overflow: visible; }
.ruler .art svg * { stroke: var(--sheet-ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.ruler .art svg .thin { stroke-width: 2; }
.ruler .art.bw svg [class*="f-"] { fill: #7a7068 !important; }
.ruler .art svg .f-red { fill: var(--fill-red); } .ruler .art svg .f-green { fill: var(--fill-green); } .ruler .art svg .f-yellow { fill: var(--fill-yellow); } .ruler .art svg .f-black, .ruler .art svg .f-ink { fill: var(--fill-black); } .ruler .art svg .f-skin { fill: var(--fill-skin); } .ruler .art svg .f-steel { fill: var(--fill-steel); } .ruler .art svg .f-blue { fill: var(--fill-blue); } .ruler .art svg .f-paper { fill: var(--sheet); }
.ruler .scale { position: absolute; left: 10px; top: 10px; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sheet-muted); }
.est { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 2px solid var(--ink); }
.est > div { display: grid; gap: 4px; padding: 12px 10px 12px 0; min-width: 0; }
.est > div + div { padding-left: 12px; border-left: 1px dashed var(--line); }
.est span { font: 500 11px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.est b { font: 400 30px/1 var(--display); }
.est b.bump { animation: fl-bump 420ms var(--snap); }
@keyframes fl-bump { 40% { transform: translateY(-4px); color: var(--flash); } }
html.calm .est b.bump { animation: none; }
@media (max-width: 860px) { .sizer { grid-template-columns: 1fr; box-shadow: inset 0 0 0 2px var(--ink), 5px 5px 0 var(--ink); } }
@media (max-width: 420px) { .est { grid-template-columns: 1fr; } .est > div + div { padding-left: 0; border-left: 0; border-top: 1px dashed var(--line); } }

/* ---------- the books ---------- */
.books { display: grid; border-radius: var(--r-l); background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); overflow: hidden; }
.books-head, .book-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) repeat(6, minmax(0, 1fr)); align-items: center; }
.books-head { background: var(--ink); color: var(--paper); font: 500 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.books-head > * { padding: 12px 10px; }
.book-row + .book-row { border-top: 1px dashed var(--line); }
.book-row > :first-child { padding: 14px 16px; }
.book-row b { display: block; font: 400 25px/1 var(--display); }
.book-row small { display: block; margin-top: 4px; font: 400 13.5px/1.3 var(--body); color: var(--muted); }
.mo { display: grid; place-items: center; gap: 4px; padding: 10px 4px; font: 500 12px/1.2 var(--mono); text-align: center; }
.mo i { width: 14px; height: 14px; border-radius: 50%; }
.mo.open { color: var(--green); } .mo.open i { background: var(--green); }
.mo.wait { color: var(--amber); } .mo.wait i { box-shadow: inset 0 0 0 3px var(--amber); }
.mo.closed { color: var(--muted); } .mo.closed i { background: repeating-linear-gradient(45deg, var(--muted) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--muted); }
.books-key { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px; border-top: 2px solid var(--ink); font: 400 13px/1.3 var(--mono); color: var(--muted); }
.books-key .mo { display: inline-flex; padding: 0; gap: 7px; }
.book-row .mo:nth-child(2) { position: relative; }
.book-row .mo:nth-child(2)::after { content: ""; position: absolute; inset: 4px 2px; border-radius: var(--r-s); background: var(--flash-soft); z-index: -1; opacity: 0.6; }
.book-row { position: relative; isolation: isolate; }
@media (max-width: 760px) {
  .books-head { display: none; }
  .book-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .book-row > :first-child { grid-column: 1 / -1; padding-bottom: 4px; }
  .mo { padding: 8px 1px 14px; font-size: 10.5px; letter-spacing: -0.02em; }
  .mo::before { content: attr(data-m); display: block; margin-bottom: 2px; font-weight: 700; color: var(--ink-2); }
}

/* ---------- healing timeline ---------- */
.heal { display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-l); background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }
.heal-track { position: relative; display: grid; grid-template-columns: 4fr 11fr 16fr 15fr; height: 16px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 2px var(--ink); }
.heal-track i:nth-child(1) { background: var(--fill-red); }
.heal-track i:nth-child(2) { background: var(--fill-yellow); }
.heal-track i:nth-child(3) { background: color-mix(in srgb, var(--fill-green) 60%, var(--fill-yellow)); }
.heal-track i:nth-child(4) { background: var(--fill-green); }
.heal-track i + i { border-left: 2px solid var(--ink); }
.heal-days { display: grid; grid-template-columns: 4fr 11fr 16fr 15fr; font: 500 11.5px/1 var(--mono); color: var(--muted); }
.heal-days span:last-child { text-align: right; }
.heal-days span { white-space: nowrap; }
.heal .range { width: 100%; }
.heal-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 20px; align-items: start; }
.heal-panel .day { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--ink); color: var(--paper); text-align: center; font: 500 11px/1.1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.heal-panel .day b { display: block; font: 400 38px/0.9 var(--display); letter-spacing: 0; text-transform: none; }
.heal-panel h3 { font: 400 30px/1.05 var(--display); }
.heal-panel p { color: var(--ink-2); }
.heal-panel ul { display: grid; gap: 6px; margin-top: 10px; }
.heal-panel li { display: flex; gap: 10px; }
.heal-panel li::before { content: "+"; font: 700 16px/1.5 var(--mono); color: var(--flash); }
.heal-panel li.no::before { content: "×"; color: var(--muted); }
@media (max-width: 520px) { .heal-panel { grid-template-columns: 1fr; } .heal-panel .day { width: 76px; height: 76px; } }

/* ---------- artists, deposit, cards, facts, notices ---------- */
.artist { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-m); background: var(--card); box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-card); min-width: 0; }
.artist .mark { width: 84px; height: 84px; padding: 10px; border-radius: 50%; background: var(--sheet); box-shadow: inset 0 0 0 2px var(--sheet-ink), 0 0 0 4px var(--card), 0 0 0 6px var(--ink); }
.artist .mark svg { width: 100%; height: 100%; overflow: visible; }
.artist .mark svg * { stroke: var(--sheet-ink); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.artist .mark svg .thin { stroke-width: 2.5; }
.artist .mark svg .f-red { fill: var(--fill-red); } .artist .mark svg .f-green { fill: var(--fill-green); } .artist .mark svg .f-yellow { fill: var(--fill-yellow); } .artist .mark svg .f-black, .artist .mark svg .f-ink { fill: var(--fill-black); } .artist .mark svg .f-skin { fill: var(--fill-skin); } .artist .mark svg .f-steel { fill: var(--fill-steel); } .artist .mark svg .f-blue { fill: var(--fill-blue); } .artist .mark svg .f-paper { fill: var(--sheet); }
.artist .role { font: 500 12px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--flash); }
.artist h3 { font: 400 32px/1 var(--display); }
.artist p { font-size: 15.5px; color: var(--ink-2); }
.artist .books-state { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1.2 var(--mono); }
.artist .books-state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.artist .books-state.open { color: var(--green); } .artist .books-state.wait { color: var(--amber); } .artist .books-state.closed { color: var(--muted); }
.deposit { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; border-radius: var(--r-m); background: var(--sheet); color: var(--sheet-ink); box-shadow: 0 0 0 2px var(--sheet-ink), var(--shadow-card); overflow: hidden; }
.deposit-main { display: grid; gap: 8px; padding: 20px 22px; }
.deposit-main .k { font: 500 11.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sheet-muted); }
.deposit-main b { font: 400 54px/0.9 var(--display); }
.deposit-main ul { display: grid; gap: 4px; font-size: 15px; }
.deposit-main li { display: flex; gap: 8px; }
.deposit-main li::before { content: "—"; color: var(--fill-red); }
.deposit-stub { display: grid; place-items: center; width: 64px; border-left: 2px dashed var(--sheet-ink); background: var(--fill-red); color: #fff; font: 700 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.card { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--r-m); background: var(--card); box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-card); min-width: 0; }
.card .k { font: 500 12px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--flash); }
.card h3 { font: 400 28px/1.05 var(--display); }
.card p { color: var(--ink-2); font-size: 16px; }
.facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; border-block: 2px solid var(--ink); }
.facts > div { display: grid; gap: 6px; align-content: start; padding: 20px 18px 20px 0; min-width: 0; }
.facts > div + div { padding-left: 18px; border-left: 1px dashed var(--line); }
.facts .k { font: 500 12px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--flash); }
.facts b { font: 400 28px/1.05 var(--display); }
.facts p { font-size: 15.5px; color: var(--ink-2); }
.facts.stack { grid-template-columns: 1fr; }
.facts.stack > div + div { padding-left: 0; border-left: 0; border-top: 1px dashed var(--line); }
@media (max-width: 900px) { .facts:not(.stack) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px dashed var(--line); } }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 18px 20px; border-radius: var(--r-m); background: var(--flash-soft); font-size: 16px; color: var(--ink-2); }
.notice svg { width: 20px; height: 20px; color: var(--flash); margin-top: 3px; }
.notice b { color: var(--ink); }

/* ---------- closing ---------- */
.close { padding-block: clamp(56px, 8vw, 100px); }
.close-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 30px; align-items: end; padding: clamp(30px, 5vw, 64px); border-radius: var(--r-l); background: #17120e; color: #f2e8d6; overflow: hidden; isolation: isolate; }
.close-card::before { content: ""; position: absolute; z-index: -1; right: -40px; top: -60px; width: 300px; height: 300px; background: var(--close-em, #c2301f); opacity: 0.16; clip-path: polygon(50% 0, 61% 36%, 100% 38%, 69% 61%, 80% 100%, 50% 77%, 20% 100%, 31% 61%, 0 38%, 39% 36%); }
html:not(.calm) .close-card::before { animation: fl-turn 40s linear infinite; }
@keyframes fl-turn { to { transform: rotate(360deg); } }
.close-card .h2 { color: #fff; }
.close-card .h2 em { color: var(--close-em, #ff8a6e); }
.close-card p { color: #cdbfa9; max-width: 52ch; margin-top: 14px; }
.close-card .tag { color: #b3a590; }
.close-card .tag b { color: var(--close-em, #ff8a6e); }
.close-card .btn-flash { background: #f4e9cf; color: #17120e; border-color: #f4e9cf; box-shadow: 4px 4px 0 #c2301f; }
.close-card :focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .close-card { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border-radius: var(--r-m); background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 18px 22px; font: 700 18px/1.35 var(--body); border-radius: var(--r-m); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); background: linear-gradient(var(--flash), var(--flash)) center / 10px 1.6px no-repeat, linear-gradient(var(--flash), var(--flash)) center / 1.6px 10px no-repeat; transition: transform var(--d) var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); max-width: 72ch; }

/* ---------- footer ---------- */
.foot { padding-block: 56px 30px; border-top: 1px solid var(--line); background: var(--well); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { font: 500 var(--fs-label)/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { display: grid; gap: 9px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--flash); }
.licence { margin-top: 28px; padding: 14px 16px; border-radius: var(--r-s); background: var(--card); box-shadow: 0 0 0 1px var(--line); font: 400 12px/1.7 var(--mono); color: var(--muted); }
.licence b { color: var(--ink); font-weight: 500; }
.foot-base { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.foot-switches { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- switch ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); cursor: pointer; font: 500 14.5px/1 var(--body); color: var(--ink-2); }
.switch .sw { position: relative; flex: none; width: 38px; height: 22px; border-radius: var(--r-pill); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); transition: background var(--d-fast); }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform var(--d) var(--ease); }
.switch[aria-checked="true"] .sw { background: var(--flash); box-shadow: none; }
.switch[aria-checked="true"] .sw::after { transform: translateX(16px); background: #fff; }

/* =====================================================================
   Multi-page kit
   ===================================================================== */
.page-head { position: relative; padding-block: clamp(30px, 4.5vw, 64px) clamp(34px, 4.5vw, 60px); border-bottom: 1px solid var(--line); overflow: clip; }

.page-head .wrap { position: relative; }
.page-head .h1 { font-size: clamp(38px, 5vw, 68px); margin-top: 16px; }
.page-head .lead { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--flash); }
.crumbs span[aria-hidden] { opacity: 0.6; }

.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field > span, .field-set > legend { font: 600 15.5px/1.25 var(--body); color: var(--ink); }
.field small, .field-set > legend small { color: var(--muted); font: 400 14px/1.35 var(--body); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 15px; border-radius: var(--r-s); border: 2px solid var(--ink); background: var(--card); color: var(--ink); transition: box-shadow var(--d-fast), border-color var(--d-fast); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.field [aria-invalid="true"] { border-color: var(--flash); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flash) 20%, transparent); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-size: 6px 6px; background-position: right 22px center, right 16px center; background-repeat: no-repeat; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
fieldset.field-set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
fieldset.field-set > legend { padding: 0; margin-bottom: 10px; }
fieldset.field-set > .seg { justify-self: start; }
.form-card { display: grid; gap: 22px; padding: clamp(22px, 3.5vw, 38px); border-radius: var(--r-l); background: var(--card); box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-card); }
.form-done { padding: 16px 18px; border-radius: var(--r-m); background: var(--flash-soft); color: var(--ink); font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--flash); }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: grid; gap: 3px; height: 100%; padding: 15px 17px; border-radius: var(--r-s); border: 2px solid var(--ink); background: var(--card); box-shadow: 0 3px 0 var(--ink); transition: border-color var(--d-fast), background var(--d-fast), box-shadow var(--d-fast); }
.choice > span b { font: 700 17px/1.2 var(--body); }
.choice > span small { color: var(--muted); font-size: 14.5px; }
.choice:hover > span { background: var(--well); }
.choice input:checked + span { border-color: var(--flash); box-shadow: 0 3px 0 var(--flash); background: var(--flash-soft); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); }
.seg button, .seg label { position: relative; padding: 9px 15px; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; font: 500 14.5px/1 var(--body); color: var(--ink-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button:hover, .seg label:hover { background: var(--well); }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--ink); color: var(--paper); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

input.range { --p: 50%; appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--flash) 0 var(--p), var(--line) var(--p) 100%); cursor: pointer; }
input.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 2px solid var(--flash); box-shadow: var(--shadow-card); }
input.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--flash); }

.table { overflow-x: auto; border-radius: var(--r-m); background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table caption { caption-side: bottom; text-align: left; padding: 12px 18px; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child > * { border-bottom: 0; }
.table thead th { font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--well); border-bottom: 1px solid var(--line); }
.table tbody th { font: 700 16.5px/1.35 var(--body); }
.table td { color: var(--ink-2); }
.table .r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 680px) {
  .table.stack table, .table.stack tbody, .table.stack tr, .table.stack td, .table.stack th { display: block; }
  .table.stack table { display: flex; flex-direction: column; }
  .table.stack caption { display: block; order: 1; }
  .table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table.stack td, .table.stack th { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; border: 0; padding: 4px 0; text-align: left !important; }
  .table.stack th[scope="row"] { display: block; }
  .table.stack td::before { content: attr(data-label); font: 500 10.5px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
}

.field input.range { min-height: 0; height: 6px; padding: 0; border: 0; margin: 14px 0 8px; box-shadow: none; background: linear-gradient(90deg, var(--flash) 0 var(--p), var(--line) var(--p) 100%); }


/* ---------- reveal on scroll ---------- */
.js [data-enter] { opacity: 0; transform: translateY(16px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
.js [data-enter].entered { opacity: 1; transform: none; }
html.calm [data-enter] { opacity: 1 !important; transform: none !important; transition: none !important; }

@media print { .nav, .foot-switches, .menu-btn, .site-menu { display: none !important; } body { background: #fff; } .sheet { transform: none; } }
