@font-face { font-family: 'Vazirmatn'; src: url('/fonts/vazirmatn-arabic-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EFD-10EFF, U+1EE00-1EEFF; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/vazirmatn-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin-wght-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --ink: #110c10;
  --ink-2: #1b1419;
  --paper: #f3e7d3;
  --mute: rgba(243, 231, 211, 0.64);
  --faint: rgba(243, 231, 211, 0.16);
  --saffron: #e9a93a;
  --saffron-2: #f0ba58;
  --crimson: #d2344b;
  --rose: #e58f8a;
  --display: 'Vazirmatn', system-ui, sans-serif;
  --body: 'Vazirmatn', system-ui, sans-serif;
  --pad: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
html[lang='en'] { --display: 'Fraunces', Georgia, serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; background: var(--ink); color: var(--paper);
  font-family: var(--body); font-size: 17px; line-height: 1.75; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
#strands { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
main, .top, .foot { position: relative; z-index: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; }
html[lang='en'] h1, html[lang='en'] h2 { font-weight: 600; letter-spacing: -0.01em; }
.dim { color: var(--mute); }
.small { font-size: 13px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 10; background: var(--saffron); color: var(--ink); padding: 6px 12px; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad); background: linear-gradient(to bottom, rgba(17, 12, 16, 0.85), rgba(17, 12, 16, 0));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: 0.01em; }
.brand img { height: 38px; width: auto; display: block; }
.top nav { display: flex; gap: clamp(12px, 2.4vw, 28px); font-size: 15px; }
.top nav a { text-decoration: none; color: var(--mute); transition: color 0.3s; position: relative; }
.top nav a:hover { color: var(--paper); }
.top nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: -4px; height: 1px; background: var(--saffron); transform: scaleX(0); transition: transform 0.4s var(--ease); }
.top nav a:hover::after { transform: scaleX(1); }
.top nav .lang { color: var(--saffron); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 999px;
  background: var(--saffron); color: var(--ink); font: 700 16px/1.2 var(--body); text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s, box-shadow 0.3s; box-shadow: 0 0 0 0 rgba(233, 169, 58, 0.5);
}
.btn:hover { transform: translateY(-2px); background: var(--saffron-2); box-shadow: 0 10px 40px -10px rgba(233, 169, 58, 0.6); }
.btn.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--faint); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--saffron); color: var(--saffron); }
.btn.big { padding: 16px 36px; font-size: 19px; }
.btn:disabled { opacity: 0.35; pointer-events: none; }
.link { color: var(--saffron); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.link:hover { border-color: var(--saffron); }
.kicker { color: var(--saffron); font-size: 14px; letter-spacing: 0.08em; margin: 0 0 12px; }
html[lang='en'] .kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; padding: 110px var(--pad) 48px; display: grid; grid-template-rows: auto 1fr auto; position: relative;
}
.hero-words { display: flex; flex-direction: column; align-self: center; margin: 0; font-weight: 900; line-height: 1.02; }
.hw {
  display: block; width: max-content; font-size: clamp(60px, min(15vw, 19svh), 230px);
  color: transparent; -webkit-text-stroke: 1px rgba(243, 231, 211, 0.24);
  opacity: 0; transform: translateY(24px); animation: rise 1.4s var(--ease) forwards; animation-delay: calc(0.25s + var(--i) * 0.22s);
}
html[lang='en'] .hw { font-weight: 700; font-style: italic; font-size: clamp(54px, min(12vw, 17svh), 200px); }
.hw:nth-child(2) { margin-inline-start: clamp(20px, 12vw, 260px); }
.hw:nth-child(3) { margin-inline-start: clamp(40px, 24vw, 520px); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 520px) auto; gap: 28px 56px; align-items: end; justify-content: space-between; }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--paper); margin: 0; text-shadow: 0 2px 18px var(--ink); }
.hero-actions { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.scroll-cue { position: absolute; inset-inline-end: var(--pad); bottom: 22px; font-size: 12px; color: var(--mute); writing-mode: vertical-rl; letter-spacing: 0.2em; }
.scroll-cue::after { content: ''; display: block; width: 1px; height: 46px; background: var(--saffron); margin: 10px auto 0; animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- progress thread ---------- */
.progress { min-width: min(320px, 80vw); }
.progress-num { display: flex; align-items: baseline; gap: 8px; }
.progress-num b { font-family: var(--display); font-size: 40px; color: var(--saffron); font-weight: 800; line-height: 1; }
.progress-num span { color: var(--mute); }
.progress-thread { height: 2px; background: var(--faint); margin-top: 10px; position: relative; overflow: hidden; border-radius: 2px; }
.progress-thread i { position: absolute; inset-block: 0; inset-inline-start: 0; width: max(var(--p), 3px); background: linear-gradient(90deg, var(--crimson), var(--saffron)); animation: grow 2s var(--ease) both; transform-origin: left; }
[dir='rtl'] .progress-thread i { transform-origin: right; background: linear-gradient(270deg, var(--crimson), var(--saffron)); }
@keyframes grow { from { transform: scaleX(0); } }

/* ---------- manifesto ---------- */
.manifesto { min-height: 120svh; padding: 18svh var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 12svh; max-width: 1100px; }
.m-line { font-family: var(--display); font-size: clamp(24px, 3.6vw, 48px); line-height: 1.45; margin: 0; font-weight: 600; text-shadow: 0 2px 30px var(--ink); }
.m-line:nth-child(2) { margin-inline-start: auto; text-align: end; max-width: 820px; }
.m-line.strong { color: var(--saffron); }
.reveal, .m-line { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in, .m-line.in { opacity: 1; transform: none; filter: none; }

/* ---------- stepper ---------- */
.create { min-height: 100svh; padding: 120px var(--pad) 60px; display: flex; }
.stepper { width: 100%; display: flex; flex-direction: column; gap: 32px; }
.step { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; }
.step legend { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin-bottom: 28px; cursor: default; }
.step-n { font-size: 14px; color: var(--saffron); border: 1px solid var(--saffron); border-radius: 999px; width: 30px; height: 30px; display: inline-grid; place-items: center; }
.step-word { font-family: var(--display); font-size: clamp(64px, 11vw, 160px); font-weight: 900; line-height: 1; }
html[lang='en'] .step-word { font-style: italic; font-weight: 700; }
.step-q { font-size: clamp(18px, 2vw, 24px); color: var(--mute); }
.choices { display: flex; flex-wrap: wrap; gap: 12px 14px; max-width: 1100px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: block; padding: 10px 22px; border-radius: 999px; font-size: clamp(17px, 1.7vw, 22px);
  box-shadow: inset 0 0 0 1px var(--faint); background: rgba(17, 12, 16, 0.55); backdrop-filter: blur(6px);
  transition: background 0.35s, color 0.35s, box-shadow 0.35s, transform 0.45s var(--ease);
}
.choice:hover span { box-shadow: inset 0 0 0 1px var(--saffron); transform: translateY(-2px); }
.choice input:checked + span { background: var(--saffron); color: var(--ink); box-shadow: none; transform: scale(1.04); }
.choice input:focus-visible + span { outline: 2px solid var(--saffron); outline-offset: 3px; }
.stepper-nav { display: flex; gap: 20px; align-items: center; justify-content: space-between; max-width: 1100px; }
.stepper-dots { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.stepper-dots li { width: 28px; height: 2px; background: var(--faint); transition: background 0.5s; }
.stepper-dots li.on { background: var(--saffron); }
.js .stepped .step { display: none; }
.js .stepped .step.active { display: block; }
.js .stepped .step.active .choice { animation: rise 0.8s var(--ease) both; animation-delay: calc(var(--i) * 40ms); opacity: 0; transform: translateY(16px); }
.js .stepped .step.active legend .step-word { animation: unveil 1s var(--ease) both; }
@keyframes unveil { from { opacity: 0; letter-spacing: 0.2em; filter: blur(10px); } to { opacity: 1; letter-spacing: normal; filter: none; } }
html:not(.js) .stepper-nav [data-back], html:not(.js) .stepper-dots { display: none; }

/* ---------- tiles ---------- */
.wall { padding: 80px var(--pad); }
.wall-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 0 0 22px; }
.wall-head h2 { font-size: clamp(28px, 3vw, 40px); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 44vw), 1fr)); gap: clamp(8px, 1.2vw, 16px); margin-bottom: 56px; grid-auto-flow: dense; }
.tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--ink-2); opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.tile.in { opacity: 1; transform: none; }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s; filter: saturate(0.9); }
.tile:hover img { transform: scale(1.06); filter: saturate(1.1); }
.tile-cap { position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; background: linear-gradient(to top, rgba(17, 12, 16, 0.9), transparent); display: flex; flex-direction: column; font-size: 13px; line-height: 1.4; transform: translateY(8px); opacity: 0; transition: 0.5s var(--ease); text-decoration: none; }
.tile-cap b { font-size: 16px; color: var(--saffron); }
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { transform: none; opacity: 1; }
@media (hover: none) { .tile-cap { opacity: 1; transform: none; } }

/* ---------- gallery ---------- */
.gallery { padding: 120px var(--pad) 40px; }
.gallery-head { display: grid; grid-template-columns: 1fr auto; gap: 10px 40px; align-items: end; margin-bottom: 40px; }
.gallery-head h1 { font-size: clamp(56px, 9vw, 130px); margin: 0; grid-column: 1 / -1; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 10px 0 60px; }

/* ---------- create: style step ---------- */
.create-style { padding: 120px var(--pad) 60px; max-width: 1200px; }
.triple { font-size: clamp(40px, 6.5vw, 96px); display: flex; flex-wrap: wrap; gap: 0 18px; align-items: baseline; }
.triple i { color: var(--saffron); font-style: normal; }
.triple span { animation: rise 1s var(--ease) both; }
.triple span:nth-of-type(2) { animation-delay: 0.15s; }
.triple span:nth-of-type(3) { animation-delay: 0.3s; }
.style-form h2 { font-size: 28px; margin-top: 40px; margin-bottom: 4px; }
.styles { border: 0; padding: 0; margin: 28px 0; }
.styles legend { color: var(--saffron); margin-bottom: 12px; }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.style-card { position: relative; cursor: pointer; display: flex; flex-direction: column; gap: 8px; animation: rise 0.8s var(--ease) both; animation-delay: calc(var(--i) * 35ms); opacity: 0; }
.style-card input { position: absolute; opacity: 0; }
.style-card img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; filter: grayscale(0.5) brightness(0.8); transition: filter 0.4s, transform 0.5s var(--ease), box-shadow 0.4s; }
.style-card span { font-size: 15px; color: var(--mute); transition: color 0.3s; }
.style-card:hover .style-pic img { filter: none; transform: translateY(-3px); }
.style-card input:checked ~ .style-pic img { filter: none; box-shadow: 0 0 0 3px var(--saffron), 0 18px 40px -16px rgba(233, 169, 58, 0.8); transform: scale(1.03); }
.style-card input:checked ~ span { color: var(--saffron); }
.style-card input:focus-visible ~ .style-pic { outline: 2px solid var(--saffron); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin: 36px 0 26px; }
.fields label { display: flex; flex-direction: column; gap: 6px; }
.fields small { color: var(--mute); font-size: 13px; }
.field-error, .fields .field-error { color: #f0907a; font-size: 13.5px; line-height: 1.7; margin: 2px 0 0; }
.field-error:empty { display: none; }
p.field-error { margin: 0 0 12px; font-size: 14.5px; }
input.invalid:not([type=radio]), textarea.invalid { border-color: #f0907a; border-bottom-color: #f0907a; }
input:not([type=radio]), textarea {
  font: inherit; color: var(--paper); background: rgba(17, 12, 16, 0.65); border: 0; border-bottom: 1px solid var(--faint);
  padding: 10px 2px; transition: border-color 0.3s; border-radius: 0;
}
input:not([type=radio]):focus, textarea:focus { outline: none; border-color: var(--saffron); }
.cf-turnstile { margin: 0 0 22px; min-height: 65px; }
.style-form.sending .btn { pointer-events: none; opacity: 0.6; }
.alert { border-inline-start: 3px solid var(--crimson); padding: 10px 16px; background: rgba(210, 52, 75, 0.12); }
.alert.ok { border-color: var(--saffron); background: rgba(233, 169, 58, 0.1); }

/* ---------- artwork ---------- */
.artwork { padding: 110px var(--pad) 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px clamp(28px, 5vw, 80px); align-items: start; }
.art-stage { position: sticky; top: 90px; }
.frame { margin: 0; aspect-ratio: 1; position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), inset 0 0 0 1px var(--faint); background: rgba(17, 12, 16, 0.4); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.pending { background: transparent; box-shadow: inset 0 0 0 1px rgba(233, 169, 58, 0.35); }
.frame-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; }
.frame-title { font-family: var(--display); font-size: clamp(22px, 2.4vw, 32px); margin: 0 0 8px; text-shadow: 0 2px 20px var(--ink); }
.frame.pending .frame-title { animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.45; } }
.art-info h1 { font-size: clamp(40px, 5vw, 76px); display: flex; flex-direction: column; gap: 0; }
.art-info h1 span:nth-child(2) { color: var(--saffron); }
.style-line { font-size: 20px; margin: 0; }
.by { color: var(--mute); margin: 4px 0 20px; }
.by b { color: var(--paper); font-weight: 600; }
.desc { font-size: 17px; line-height: 1.95; color: var(--paper); max-width: 60ch; border-inline-start: 1px solid var(--saffron); padding-inline-start: 18px; }
.story { max-width: 60ch; border-inline-start: 1px solid var(--saffron); padding-inline-start: 18px; margin: 4px 0 8px; }
.story-title { font-size: 21px; font-weight: 700; color: var(--saffron); margin: 0 0 10px; line-height: 1.5; }
.story p { font-size: 17px; line-height: 2; color: var(--paper); margin: 0 0 12px; }
.story p:last-child { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.fade-in { animation: rise 1s var(--ease) both; }

/* ---------- prose ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 130px var(--pad) 80px; }
.prose h1 { font-size: clamp(36px, 5vw, 64px); }
.prose h2 { font-size: 22px; margin-top: 2em; color: var(--saffron); }
.prose p { text-shadow: 0 1px 14px var(--ink); }
.prose.center { text-align: center; min-height: 80svh; display: grid; place-content: center; }
.forbidden { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 14px; }
.forbidden li { position: relative; font-size: clamp(18px, 2vw, 24px); font-family: var(--display); padding-inline-start: 0; width: fit-content; }
.forbidden li::after { content: ''; position: absolute; inset-inline: -4px; top: 55%; height: 2px; background: var(--crimson); transform: scaleX(0); transform-origin: var(--o, left); }
[dir='rtl'] .forbidden li::after { --o: right; }
.forbidden li.in::after { animation: strike 2.6s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 0.3s); }
.forbidden li.in { animation: freed 2.6s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 0.3s); }
@keyframes strike { 0% { transform: scaleX(0); } 40% { transform: scaleX(1); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1) translateY(-40px) rotate(-6deg); opacity: 0; } }
@keyframes freed { 0%, 65% { color: var(--mute); } 100% { color: var(--saffron); } }
.contact .fields { grid-template-columns: 1fr; }

/* ---------- footer ---------- */
.foot { padding: 0 var(--pad) 28px; background: linear-gradient(to top, var(--ink) 70%, rgba(17, 12, 16, 0.55)); }
.foot-hair { display: block; width: calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad)); height: 90px; overflow: visible; }
.foot-hair path { fill: none; stroke: var(--saffron); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .5; transform-origin: 50% 50%; animation: hairsway 11s ease-in-out infinite alternate; }
.foot-hair path:nth-child(2) { opacity: .28; animation-duration: 14s; animation-delay: -4s; }
.foot-hair path:nth-child(3) { opacity: .18; animation-duration: 17s; animation-delay: -8s; }
.foot-hair path:nth-child(4) { opacity: .12; animation-duration: 13s; animation-delay: -2s; }
@keyframes hairsway { from { transform: translateY(-4px) scaleY(.92); } to { transform: translateY(4px) scaleY(1.08); } }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px 48px; padding: 36px 0 48px; max-width: 1200px; margin: 0 auto; }
.foot-line { font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); line-height: 1.55; margin: 0 0 6px; max-width: 30ch; text-wrap: balance; }
.foot-line em { font-style: normal; color: var(--saffron); }
.foot-line.dim { font-size: clamp(16px, 1.6vw, 20px); max-width: 40ch; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-head { margin: 0 0 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--saffron); opacity: .85; }
.foot-col a { color: var(--mute); text-decoration: none; width: fit-content; background: linear-gradient(var(--saffron), var(--saffron)) no-repeat 100% 100% / 0 1px; transition: color .25s, background-size .35s; padding-bottom: 2px; }
.foot-col a:hover, .foot-col a:focus-visible { color: var(--paper); background-size: 100% 1px; }
[dir=ltr] .foot-col a { background-position: 0 100%; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; max-width: 1200px; margin: 0 auto; padding-top: 18px; border-top: 1px solid var(--faint); font-size: 13px; color: var(--mute); }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); text-decoration: none; }
.foot-since { opacity: .7; }
.foot-tags { margin-inline-start: auto; opacity: .7; }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding: 24px 0 36px; }
  .foot-sign { grid-column: 1 / -1; }
  .foot-tags { margin-inline-start: 0; width: 100%; }
  .foot-hair { height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .foot-hair path { animation: none; } }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .top nav a:not(.lang):nth-child(3) { display: none; }
  .brand span { display: none; }
  .hero-foot { grid-template-columns: 1fr; }
  .hw:nth-child(2) { margin-inline-start: 8vw; }
  .hw:nth-child(3) { margin-inline-start: 16vw; }
  .artwork { grid-template-columns: 1fr; }
  .art-stage { position: static; }
  .gallery-head { grid-template-columns: 1fr; }
  .tile.big { grid-column: span 2; grid-row: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .reveal, .m-line, .tile { opacity: 1; transform: none; filter: none; }
}

/* ---------- video ---------- */

/* ---------- home: an ordinary day ---------- */
body[data-scene='day'] { background: var(--sky-top, #06050f); }
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: linear-gradient(to bottom, var(--sky-top, #06050f), var(--sky-bot, #141026)); }
.stars { position: absolute; inset: 0; opacity: var(--night, 1); transition: opacity 0.6s;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent), radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent),
    radial-gradient(1.5px 1.5px at 38% 30%, #fff 50%, transparent), radial-gradient(1px 1px at 86% 40%, #fff 50%, transparent),
    radial-gradient(1px 1px at 55% 8%, #fff 50%, transparent), radial-gradient(1px 1px at 25% 45%, #fff 50%, transparent),
    radial-gradient(1.5px 1.5px at 92% 22%, #fff 50%, transparent), radial-gradient(1px 1px at 5% 35%, #fff 50%, transparent);
  background-size: 420px 380px; }
.sun, .moon { position: absolute; left: var(--x); top: var(--y); width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%;
  transition: opacity 0.8s, left 0.2s linear, top 0.2s linear; }
.sun { --x: var(--sun-x, 10vw); --y: var(--sun-y, 70vh); opacity: var(--sun-o, 0);
  background: radial-gradient(circle, #fff6d8 0 34%, #ffd27a 36%, rgba(255, 190, 90, 0.35) 52%, transparent 70%); }
.moon { --x: var(--moon-x, 10vw); --y: var(--moon-y, 70vh); opacity: var(--moon-o, 0); width: 70px; height: 70px; margin: -35px 0 0 -35px;
  background: #f3ead6; box-shadow: inset -16px -6px 0 0 rgba(30, 26, 60, 0.55), 0 0 40px rgba(243, 234, 214, 0.35); }
.city { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34vh; }
.city .range { fill: rgba(17, 12, 16, 0.55); }
.city .snow { fill: rgba(243, 231, 211, 0.55); }
.city .blocks { fill: #110c10; }
.city .lights rect { fill: #ffd27a; opacity: var(--night, 1); }

.day-hero { position: relative; z-index: 1; min-height: 100svh; padding: 120px var(--pad) 60px; display: flex; flex-direction: column; justify-content: center; gap: 22px; max-width: 1000px; }
.day-hero h1 { font-size: clamp(56px, 10vw, 150px); margin: 0; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45); }
.day-hero .lead { max-width: 620px; }
.day-hero .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 28px; }

.clock { position: fixed; z-index: 2; inset-inline-end: var(--pad); bottom: 22px; margin: 0; font: 800 clamp(40px, 6vw, 84px)/1 var(--display);
  color: var(--paper); text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); font-variant-numeric: tabular-nums; transition: opacity 0.5s; pointer-events: none; }
html[lang='en'] .clock { font-family: 'Fraunces', serif; font-weight: 600; }
.clock.away { opacity: 0; }

.moment { position: relative; z-index: 1; min-height: 115svh; padding: 18svh var(--pad); display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 40px; align-items: center; }
.moment-text { background: rgba(17, 12, 16, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 28px 30px; border-radius: 10px; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8); }
.moment-text time { display: block; font: 800 22px/1 var(--display); color: var(--saffron); margin-bottom: 14px; letter-spacing: 0.04em; }
.moment-text p { font-family: var(--display); font-size: clamp(21px, 2.2vw, 30px); line-height: 1.6; margin: 0 0 24px; font-weight: 600; }
.moment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.moment-art { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.moment-art .tile { border-radius: 6px; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9); }
.moment-art .tile.big { grid-column: span 2; grid-row: span 2; }
.moment:nth-of-type(even) .moment-text { order: 2; }

.create { position: relative; z-index: 1; background: var(--ink); }
.create-title { font-size: clamp(26px, 3vw, 40px); margin: 0 0 20px; color: var(--saffron); }

@media (max-width: 820px) {
  .moment { grid-template-columns: 1fr; min-height: auto; padding: 12svh var(--pad); }
  .moment:nth-of-type(even) .moment-text { order: 0; }
  .clock { font-size: 34px; bottom: 14px; }
}

/* ---------- archive ---------- */
.archive .gallery-head { display: block; max-width: 780px; }
.archive .gallery-head h1 { font-size: clamp(40px, 6vw, 80px); margin: 6px 0 14px; }
.archive-how { color: var(--paper); opacity: .86; line-height: 1.9; margin: 0 0 14px; }
.archive-stats { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.archive-stats li { border: 1px solid rgba(243,231,211,.18); border-radius: 8px; padding: 10px 16px; display: flex; gap: 12px; align-items: baseline; }
.archive-stats b { color: var(--saffron); }
.archive-notice { grid-column: 1 / -1; background: rgba(233,169,58,.1); border: 1px solid rgba(233,169,58,.35); border-inline-start: 4px solid var(--saffron); padding: 14px 18px; border-radius: 6px; margin: 0 0 22px; font-size: 15px; }
.archive-notice p { margin: 0 0 8px; }
.archive-notice-title { color: var(--saffron); font-weight: 800; font-size: 17px; }
.archive-notice-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0 !important; }
.gallery .empty { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.gallery .empty p { font-size: 20px; max-width: 520px; }
.moment.bare { grid-template-columns: minmax(0, 560px); justify-content: center; min-height: 100svh; }
.moment.bare .moment-text { order: 0 !important; }

/* ---------- glyphs: moving drawings on every choice ---------- */
.choices.glyphs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.glyphs .choice span.card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px 14px; border-radius: 16px; height: 100%; }
.glyphs .choice b { font-weight: 600; font-size: 16px; text-align: center; line-height: 1.4; }
.glyph { width: 100%; max-width: 124px; aspect-ratio: 1; overflow: visible; }
.glyph * { fill: none; stroke: var(--paper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.glyph .thin, .glyph .ground { stroke-width: 1.4; opacity: .7; }
.glyph .accent, .glyph .hair.accent { stroke: var(--saffron); }
.glyph .fill { fill: var(--paper); stroke: none; }
.glyph .accent-fill, .glyph .heart { fill: var(--crimson, #d2344b); stroke: var(--crimson, #d2344b); }
.glyph .beam { fill: rgba(233,169,58,.22); stroke: none; }
.glyph .hair { stroke-width: 2; }
.glyph .hair.crim { stroke: var(--crimson); }
.glyph .dress { fill: rgba(243,231,211,.16); stroke-width: 1.8; }
.choice input:checked + .card .glyph .dress { fill: rgba(17,12,16,.14); }
.glyph .burst path { stroke: var(--paper); stroke-width: 2; opacity: 0; }
.glyph .burst .accent { stroke: var(--crimson, #d2344b); }

/* draw in when the step appears or the card is hovered */
.glyph path, .glyph circle { stroke-dasharray: 320; stroke-dashoffset: 0; }
.js .stepped .step.active .glyph path, .js .stepped .step.active .glyph circle { animation: g-draw 1.4s var(--ease) both; animation-delay: calc(var(--i) * 40ms + .15s); }
@keyframes g-draw { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }

/* small loops: always gentle, livelier on hover and when chosen */
.glyph .sway { animation: g-sway 3.2s ease-in-out infinite; }
.glyph .sway.soft { animation-duration: 5s; }
.glyph .bob { animation: g-bob 1.6s ease-in-out infinite; }
.glyph .bob.fast { animation-duration: .7s; }
.glyph .rock { animation: g-rock 2.4s ease-in-out infinite; transform-origin: 50px 86px; }
.glyph .wave { animation: g-wave 3s linear infinite; }
.glyph .spin { animation: g-spin 1.2s linear infinite; }
.glyph .spin.slow { animation-duration: 14s; }
.glyph .float { animation: g-float 2.6s ease-in infinite; }
.glyph .float.slow { animation-duration: 5s; }
.glyph .twinkle { animation: g-twinkle 2.2s ease-in-out infinite; }
.glyph .pulse { animation: g-pulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.glyph .steam path { stroke-dasharray: 10 40; animation: g-steam 2.4s linear infinite; }
.glyph .ripple { animation: g-ripple 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.glyph .sweep { animation: g-sweep 4s ease-in-out infinite; }
.glyph .draw-loop path { animation: g-draw 3s ease-in-out infinite alternate; }
.glyph [class~='sway'], .glyph .bob, .glyph .rock, .glyph .wave, .glyph .spin, .glyph .float, .glyph .twinkle, .glyph .pulse, .glyph .ripple, .glyph .sweep, .glyph .steam path { animation-play-state: paused; }
.choice:hover .glyph *, .choice input:checked + .card .glyph *, .choice input:focus-visible + .card .glyph * { animation-play-state: running; }
.glyphs .choice:hover span.card { transform: translateY(-4px); }

@keyframes g-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(6deg); } }
@keyframes g-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes g-rock { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes g-wave { from { transform: translateX(0); } to { transform: translateX(-24px); } }
@keyframes g-spin { to { transform: rotate(360deg); } }
@keyframes g-float { 0% { transform: translateY(6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
@keyframes g-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes g-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes g-steam { from { stroke-dashoffset: 50; } to { stroke-dashoffset: 0; } }
@keyframes g-ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
@keyframes g-sweep { 0%, 100% { transform: rotate(-22deg); } 50% { transform: rotate(22deg); } }

/* chosen: the card turns saffron, lines turn ink, the hair breaks loose into a burst of strands */
.glyphs .choice input:checked + span.card { background: var(--saffron); color: var(--ink); transform: scale(1.06); box-shadow: 0 18px 50px -18px rgba(233,169,58,.7); }
.choice input:checked + .card .glyph * { stroke: var(--ink); }
.choice input:checked + .card .glyph .fill { fill: var(--ink); }
.choice input:checked + .card .glyph .hair.accent, .choice input:checked + .card .glyph .accent { stroke: var(--crimson, #d2344b); }
.choice input:checked + .card .glyph .hair { animation-duration: 1.1s; }
.choice input:checked + .card .glyph .burst path { animation: g-burst .9s var(--ease) both; }
.choice input:checked + .card .glyph .burst path:nth-child(2n) { animation-delay: .08s; }
@keyframes g-burst { 0% { opacity: 0; transform: scale(.5); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.35); } }
.glyph .burst { transform-origin: 50px 50px; }
.glyph .burst path { transform-origin: 50px 50px; }
.stepped .step.chosen .choice input:not(:checked) + span.card { opacity: .45; transition: opacity .3s; }

@media (prefers-reduced-motion: reduce) {
  .glyph *, .glyph path, .glyph circle { animation: none !important; }
}
@media (max-width: 600px) { .choices.glyphs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .glyphs .choice b { font-size: 13px; } }

.style-pic { position: relative; display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--ink); }
.style-pic img { width: 100%; height: 100%; display: block; border-radius: 0; transition: filter .4s, transform 6s var(--ease); }
.style-card input:checked ~ .style-pic { box-shadow: 0 0 0 3px var(--saffron), 0 18px 40px -16px rgba(233, 169, 58, 0.8); transform: scale(1.03); }

/* ---------- style samples: one tiny movement inside each painting, always on, a little stronger on hover ----------
   app.js lays "bits" over the picture: a soft-edged copy of one spot (birds, a scarf, flowers…) that moves a hair. */
.style-card .style-pic img { filter: none !important; transform: none !important; box-shadow: none !important; }
.style-card .style-pic { filter: grayscale(.35) brightness(.88); transition: filter .4s, box-shadow .4s, transform .5s var(--ease); --amp: 1; }
.style-card:hover .style-pic, .style-card input:checked ~ .style-pic { filter: none; --amp: 1.8; }
.style-pic .bit { position: absolute; inset: 0; background-size: 100% 100%; pointer-events: none; will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse var(--rw) var(--rh) at var(--cx) var(--cy), #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse var(--rw) var(--rh) at var(--cx) var(--cy), #000 45%, transparent 100%);
  transform-origin: var(--ox) var(--oy); animation: var(--a) var(--t, 4s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes b-sway { 0%, 100% { transform: rotate(calc(var(--amp) * -.9deg)); } 50% { transform: rotate(calc(var(--amp) * .9deg)); } }
@keyframes b-flap { 0%, 100% { transform: translate(0, 0) scaleY(1); } 25% { transform: translate(calc(var(--amp) * -.5%), calc(var(--amp) * -.6%)) scaleY(.9); } 50% { transform: translate(calc(var(--amp) * -1%), calc(var(--amp) * -.2%)) scaleY(1.05); } 75% { transform: translate(calc(var(--amp) * -.5%), calc(var(--amp) * -.7%)) scaleY(.92); } }
@keyframes b-away { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(calc(var(--amp) * -5%), calc(var(--amp) * -3%)); opacity: 0; } }
@keyframes b-glow { 0%, 100% { filter: none; } 50% { filter: brightness(calc(1 + var(--amp) * .12)) saturate(calc(1 + var(--amp) * .25)); } }
@keyframes b-hue { 0%, 100% { filter: none; transform: none; } 50% { filter: hue-rotate(calc(var(--amp) * 14deg)) saturate(1.15); transform: rotate(calc(var(--amp) * .4deg)); } }
@keyframes b-shift { 0%, 70%, 100% { transform: translate(0, 0); } 80%, 90% { transform: translate(calc(var(--amp) * .9%), calc(var(--amp) * -.6%)); } }
@keyframes b-lift { 0%, 100% { transform: rotate(0); filter: none; } 50% { transform: rotate(calc(var(--amp) * -1.6deg)) translateY(calc(var(--amp) * -.6%)); filter: drop-shadow(0 4px 4px rgba(0,0,0,.45)); } }
@keyframes b-bounce { 0%, 100% { transform: translateY(0) scaleY(1); } 40% { transform: translateY(calc(var(--amp) * -.8%)) scaleY(1.02); } 60% { transform: translateY(calc(var(--amp) * .3%)) scaleY(.99); } }

/* tilework and gold: a faint glint crosses now and then */
[data-fx=tilework]::after, [data-fx=gold-ornament]::after { content: ''; position: absolute; inset: -30%; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(115deg, transparent 44%, rgba(255,255,255,.75) 50%, transparent 56%); animation: s-glint 6s ease-in-out infinite; }
[data-fx=gold-ornament]::after { mix-blend-mode: color-dodge; background: linear-gradient(115deg, transparent 46%, rgba(255,205,110,.5) 50%, transparent 54%);
  -webkit-mask-image: radial-gradient(ellipse 22% 30% at 30% 72%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 22% 30% at 30% 72%, #000 40%, transparent 100%); animation-duration: 4.5s; }
.style-card:hover [data-fx=tilework]::after, .style-card:hover [data-fx=gold-ornament]::after { animation-duration: 2.6s; }
@keyframes s-glint { 0%, 55% { transform: translateX(-45%); } 100% { transform: translateX(45%); } }

/* chiaroscuro: the sunlight on the pavement breathes */
[data-fx=chiaroscuro]::after { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(ellipse 45% 22% at 62% 82%, rgba(255,220,150,.9), transparent 70%), radial-gradient(ellipse 18% 30% at 72% 30%, rgba(255,220,150,.6), transparent 70%);
  animation: s-breathe 5s ease-in-out infinite; }
@keyframes s-breathe { 0%, 100% { opacity: .2; } 50% { opacity: calc(.35 + var(--amp) * .3); } }

/* film-still: grain and a faint projector flicker */
[data-fx=film-still]::after { content: ''; position: absolute; inset: -20%; pointer-events: none; background: var(--noise); opacity: .22; mix-blend-mode: overlay; animation: s-grain .5s steps(3) infinite; }
[data-fx=film-still] img { animation: s-flicker 3s steps(1) infinite; }
@keyframes s-grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-4%, 3%); } 66% { transform: translate(3%, -2%); } }
@keyframes s-flicker { 0%, 100% { opacity: 1; } 47% { opacity: .93; } 49% { opacity: 1; } 81% { opacity: .96; } 82% { opacity: 1; } }

/* linocut: now and then a red plane leaf falls */
.style-pic .leaf { position: absolute; width: 7%; aspect-ratio: 1; pointer-events: none; opacity: 0; animation: s-fall 7s linear infinite; }
.style-pic .leaf svg { width: 100%; height: 100%; display: block; fill: #c8282c; animation: s-spin 1.6s ease-in-out infinite alternate; }
@keyframes s-fall { 0% { opacity: 0; transform: translate(0, 0); } 5% { opacity: 1; } 55% { transform: translate(-60%, 420%); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(40%, 820%); } }
@keyframes s-spin { from { transform: rotate(-35deg); } to { transform: rotate(40deg) scaleX(.6); } }

.style-pic { --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { .style-pic .bit, .style-pic .leaf, .style-pic::after, .style-pic img { animation: none !important; } .style-pic .leaf { display: none; } }

/* ---------- atelier: the waiting room, moving only as far as the painting really is ---------- */
.frame.atelier { background: radial-gradient(120% 90% at 50% 40%, rgba(243, 231, 211, 0.07), rgba(17, 12, 16, 0.55) 70%); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), inset 0 0 0 1px var(--faint); }
.atelier-in { position: absolute; inset: 0; }
.atelier-in .edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.atelier-in .edge rect { fill: none; stroke: var(--saffron); stroke-width: 3px; stroke-dasharray: 0 99999; filter: drop-shadow(0 0 6px rgba(233, 169, 58, 0.6)); }
.atelier-in .wash { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(6px) saturate(1.1); mix-blend-mode: screen; }
.atelier-in .sketch { position: absolute; inset: 9% 8% auto; display: flex; justify-content: center; gap: 4%; }
.atelier-in .sketch .glyph { width: 28%; max-width: none; opacity: 0.85; }
.atelier-in .sketch .glyph .burst { display: none; }
.atelier-in .sketch .glyph path, .atelier-in .sketch .glyph circle { stroke-dashoffset: 320; animation: none; }
.atelier-in .sketch .glyph :is(.fill, .accent-fill, .heart, .beam) { opacity: calc(var(--fills, 0) * .6); }
.atelier-in .sketch .glyph .dress { fill-opacity: var(--fills, 0); }
.frame .atelier-in img.sig { position: absolute; bottom: 4%; right: 4%; width: auto; height: 9%; opacity: 0; transform: scale(1.6) rotate(-8deg); transition: opacity .6s var(--ease), transform .6s var(--ease); z-index: 2; }
.frame .atelier-in:is([data-stage="signing"], [data-stage="ready"]) img.sig { opacity: 0.9; transform: none; }
.atelier-text { position: absolute; inset: auto 0 0; padding: 0 8% 15%; text-align: center; z-index: 2; }
.frame.atelier .atelier-text .frame-title { animation: none; margin-bottom: 14px; }
.stages { list-style: none; margin: 0 0 12px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.stages li { position: relative; padding-inline-start: 18px; color: var(--dim, rgba(243, 231, 211, .5)); transition: color .4s; }
.stages li::before { content: ''; position: absolute; inset-inline-start: 0; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; border: 1.5px solid currentColor; transition: background .4s, border-color .4s, box-shadow .4s; }
/* done steps are filled, the live step glows; set from data-stage, which only the server moves */
.atelier-in[data-stage="queued"] .stages li[data-i="0"],
.atelier-in[data-stage="painting"] .stages li[data-i="1"],
.atelier-in[data-stage="signing"] .stages li[data-i="2"],
.atelier-in[data-stage="ready"] .stages li[data-i="3"] { color: var(--paper); }
.atelier-in[data-stage="queued"] .stages li[data-i="0"]::before,
.atelier-in[data-stage="painting"] .stages li[data-i="1"]::before,
.atelier-in[data-stage="signing"] .stages li[data-i="2"]::before { border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(233, 169, 58, .18); animation: live 1.6s ease-in-out infinite; }
.atelier-in[data-stage="painting"] .stages li[data-i="0"],
.atelier-in[data-stage="signing"] .stages li:is([data-i="0"], [data-i="1"]),
.atelier-in[data-stage="ready"] .stages li:not([data-i="3"]) { color: var(--paper); }
.atelier-in[data-stage="painting"] .stages li[data-i="0"]::before,
.atelier-in[data-stage="signing"] .stages li:is([data-i="0"], [data-i="1"])::before,
.atelier-in[data-stage="ready"] .stages li::before { background: var(--saffron); border-color: var(--saffron); }
@keyframes live { 50% { box-shadow: 0 0 0 7px rgba(233, 169, 58, 0); } }
.tally { margin: 0 0 6px; font-size: 15px; }
.tally .secs { font-variant-numeric: tabular-nums; color: var(--saffron); font-size: 18px; }
.atelier-text .note { margin: 0 auto; max-width: 34em; line-height: 1.7; }
@media (max-width: 640px) { .stages { font-size: 13px; gap: 4px 12px; } .atelier-text { padding-bottom: 9%; } .atelier-text .note { display: none; } }
@media (prefers-reduced-motion: reduce) { .stages li::before { animation: none !important; } }
/* the finished painting develops out of the colour wash, like a print in the tray */
.frame.revealing img { animation: develop 1.8s var(--ease) both; }
@keyframes develop { from { filter: blur(22px) saturate(0.2) brightness(1.35); opacity: 0.2; transform: scale(1.03); } 60% { opacity: 1; } to { filter: none; opacity: 1; transform: none; } }

/* ---------- portrait (2:3): the new campaign is made for Instagram; archived paintings stay square ---------- */
.tile.tall { aspect-ratio: 2 / 3; }
.frame.tall { aspect-ratio: 2 / 3; max-width: min(100%, calc((100vh - 130px) * 2 / 3)); margin-inline: auto; }
/* the model's half-finished image: soft at first, sharper with each one that arrives */
.frame .atelier-in img.partial { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px) saturate(.8); opacity: .85; transition: filter 1.2s, opacity 1.2s; }
.frame .atelier-in img.partial[data-k="2"], .frame .atelier-in img.partial[data-k="3"] { filter: blur(5px); opacity: .95; }
.atelier-in.has-partial .wash { opacity: .35; transition: opacity 1.2s; }
.atelier-in.has-partial .sketch { opacity: .35; transition: opacity 1.2s; }
.atelier-text { background: linear-gradient(to top, rgba(17, 12, 16, .88) 40%, rgba(17, 12, 16, 0)); padding-top: 70px; }

/* the story on its way: a quiet line and three ink strokes breathing */
.story.waiting { padding-block: 4px 6px; }
.story-wait-text { font-size: 16px; color: var(--paper); opacity: .85; margin: 0 0 14px; }
.story-wait-text .dots i { font-style: normal; animation: dot 1.4s infinite both; }
.story-wait-text .dots i:nth-child(2) { animation-delay: .2s; } .story-wait-text .dots i:nth-child(3) { animation-delay: .4s; }
.story .ink { display: grid; gap: 11px; }
.story .ink i { display: block; height: 9px; border-radius: 9px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--saffron) 35%, transparent), transparent); background-size: 200% 100%; animation: ink 2.4s ease-in-out infinite; }
.story .ink i:nth-child(1) { width: 92%; } .story .ink i:nth-child(2) { width: 78%; animation-delay: .3s; } .story .ink i:nth-child(3) { width: 55%; animation-delay: .6s; }
.story.waiting.late .ink, .story.waiting.late .dots { display: none; }
@keyframes dot { 0%, 80%, 100% { opacity: .15 } 40% { opacity: 1 } }
@keyframes ink { 0% { background-position: 100% 0; opacity: .5 } 50% { opacity: 1 } 100% { background-position: -100% 0; opacity: .5 } }
@media (prefers-reduced-motion: reduce) { .story-wait-text .dots i, .story .ink i { animation: none; opacity: .6 } }

/* ---- style page: steps, numbered blocks, the bar that always says what comes next ---- */
.steps { list-style: none; display: flex; gap: 10px; padding: 0; margin: 26px 0 6px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: 14px; padding: 6px 12px 6px 14px; border: 1px solid var(--faint); border-radius: 99px; transition: color .3s, border-color .3s, background .3s; }
.steps li b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--faint); color: var(--paper); font-size: 12px; font-weight: 700; }
.steps li.now { color: var(--paper); border-color: var(--saffron); }
.steps li.now b { background: var(--saffron); color: #1a1310; }
.steps li.done { color: var(--saffron); }
.steps li.done b { background: transparent; border: 1px solid var(--saffron); color: var(--saffron); }
.step-block { scroll-margin-top: 90px; }
.style-form h2 { display: flex; align-items: center; gap: 12px; }
.step-n { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--saffron); color: var(--saffron); font-size: 17px; }
#step-send { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--faint); }
#step-send .fields { margin-top: 20px; }
#step-go { margin-top: 6px; }
.paint-submit { width: 100%; max-width: 420px; }
.paint-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); background: rgba(17, 12, 16, 0.92); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(233, 169, 58, 0.35); transition: transform .4s var(--ease), opacity .3s;
}
.paint-bar[hidden] { display: none; }
.paint-bar.away { transform: translateY(110%); opacity: 0; pointer-events: none; }
.paint-bar-style { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--paper); }
.paint-bar-style small { color: var(--mute); font-size: 13px; }
.paint-bar[data-state=pick] .paint-bar-style b { color: var(--mute); font-weight: 400; }
.paint-bar .btn { flex: none; min-width: 150px; }
.paint-bar[data-state=pick] .btn { background: transparent; color: var(--paper); border: 1px solid var(--faint); }
.paint-bar.pulse .btn { animation: barpulse .9s var(--ease); }
@keyframes barpulse { 0% { transform: scale(1) } 35% { transform: scale(1.07); box-shadow: 0 0 0 6px rgba(233, 169, 58, .25) } 100% { transform: scale(1) } }
body.has-paint-bar .create-style { padding-bottom: 120px; }
@media (max-width: 760px) {
  .create-style { padding-top: 96px; }
  .style-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .style-card span { font-size: 13px; }
  .style-form h2 { font-size: 22px; margin-top: 28px; }
  .steps li { font-size: 13px; padding: 4px 10px 4px 12px; }
  .paint-bar .btn { min-width: 0; padding-inline: 20px; }
  .paint-submit { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .paint-bar.pulse .btn { animation: none } }

/* ---- email: waiting for the confirmation, confirm/stop pages ---- */
.mail-wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 18px; }
.mail-wait p { max-width: 34ch; margin: 0; line-height: 1.75; }
.mail-wait .frame-title { font-size: 22px; color: var(--paper); }
.mail-wait .small { font-size: 13px; }
.mail-wait form { margin-top: 6px; }
.mail-wait-icon { width: 60px; height: 46px; fill: none; stroke: var(--saffron); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; animation: mailfloat 3.2s var(--ease) infinite; }
@keyframes mailfloat { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
.mail-flash { color: var(--saffron); font-size: 14px; }
.mail-flash:empty { display: none; }
.mail-flash.bad { color: #e8806b; }
.code-form { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 4px 0 0; }
.mail-wait .code-input { width: 8.6em; margin: 0; padding: 12px 14px; font: 700 24px/1 ui-monospace, "Courier New", monospace; letter-spacing: .22em; text-align: center;
  color: var(--paper); background: rgba(255,255,255,.06); border: 1px solid rgba(233,169,58,.55); border-radius: 10px; outline: none; }
.mail-wait .code-input:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(233,169,58,.22); }
.mail-wait .code-input::placeholder { color: rgba(255,255,255,.25); letter-spacing: .2em; }
.code-form.busy { opacity: .6; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mail-note { color: var(--mute); font-size: 14px; margin: 10px 0 0; }
.mail-page { max-width: 560px; margin: 0 auto; padding: 150px var(--pad) 120px; text-align: center; }
.mail-page h1 { font-size: clamp(28px, 6vw, 42px); margin: 0 0 18px; }
.mail-page p { line-height: 1.9; color: var(--mute); margin: 0 0 30px; }
@media (prefers-reduced-motion: reduce) { .mail-wait-icon { animation: none } }

/* ---- the "why" film ---- */
.why-film { margin: 48px auto 24px; max-width: 760px; }
.wf-stage { position: relative; aspect-ratio: 4 / 5; max-height: 82vh; margin: 0 auto; border: 1px solid var(--faint); border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, #21171c 0%, #120c10 70%); }
@media (min-width: 900px) { .wf-stage { aspect-ratio: 16 / 11; } }
.wf-hair { position: absolute; inset: 0; width: 100%; height: 100%; }
.wf-bars { position: absolute; top: 14px; inset-inline: 16px; display: flex; gap: 5px; z-index: 3; }
.wf-bars button { flex: 1; height: 14px; padding: 5px 0; background: none; border: 0; cursor: pointer; }
.wf-bars i { display: block; height: 3px; border-radius: 2px; background: rgba(243,231,211,.18); position: relative; overflow: hidden; }
.wf-bars i::after { content: ''; position: absolute; inset: 0; background: var(--saffron); transform: scaleX(var(--p, 0)); transform-origin: right; }
[dir=ltr] .wf-bars i::after { transform-origin: left; }
.wf-scenes { list-style: none; margin: 0; padding: 0; }
.wf-scene { margin: 0 0 40px; }
.wf-year { color: var(--saffron); font-size: 14px; letter-spacing: .14em; margin: 0 0 8px; }
.wf-big { font-family: var(--display); font-size: clamp(22px, 3.4vw, 34px); line-height: 1.6; margin: 0 0 12px; color: var(--paper); text-wrap: balance; }
.wf-small { color: var(--mute); font-size: clamp(15px, 1.7vw, 18px); line-height: 1.95; margin: 0; max-width: 40ch; text-wrap: pretty; }
.wf-cta { margin-top: 22px; }
.wf-prev, .wf-next, .wf-toggle { display: none; }
/* playing: one scene at a time, centred over the strands */
.playing-mode .wf-scenes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.playing-mode .wf-scene { position: absolute; inset: 0; margin: 0; padding: 60px clamp(24px, 6vw, 64px) 70px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.playing-mode .wf-scene .wf-small { margin-inline: auto; opacity: 0; transition: opacity .9s .9s; text-shadow: 0 1px 10px #120c10; }
.playing-mode .wf-scene.on { opacity: 1; transform: none; }
.playing-mode .wf-scene.on .wf-small { opacity: 1; }
.playing-mode .wf-scene .wf-big { text-shadow: 0 2px 18px #120c10, 0 0 4px #120c10; }
.playing-mode .wf-scene[data-mood=law] .wf-big { color: #fff; font-size: clamp(28px, 5vw, 48px); }
.playing-mode .wf-scene[data-mood=imagine] .wf-big { color: var(--saffron); }
.playing-mode .wf-prev, .playing-mode .wf-next { display: block; position: absolute; top: 40px; bottom: 60px; width: 22%; background: none; border: 0; z-index: 1; cursor: pointer; }
.playing-mode .wf-prev { inset-inline-start: 0; }
.playing-mode .wf-next { inset-inline-end: 0; }
.playing-mode .wf-scene.on .wf-cta { pointer-events: auto; position: relative; z-index: 4; }
.playing-mode .wf-toggle { display: block; position: absolute; bottom: 16px; inset-inline-end: 16px; z-index: 4; background: rgba(18,12,16,.6); color: var(--mute);
  border: 1px solid var(--faint); border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 13px; cursor: pointer; }
.playing-mode .wf-toggle:hover { color: var(--paper); border-color: var(--saffron); }
/* without the film (no JS or reduced motion): a quiet list of the same lines */
.why-film:not(.playing-mode) .wf-stage { aspect-ratio: auto; max-height: none; padding: 40px clamp(20px, 5vw, 48px) 10px; }
.why-film:not(.playing-mode) .wf-hair, .why-film:not(.playing-mode) .wf-bars { display: none; }

/* ---- the voiced "why" piece ---- */
.why-voice { margin: 48px auto 24px; max-width: 760px; }
.wv-stage { display: none; }
.wv-lines { list-style: none; padding: 0; margin: 20px 0; }
.wv-lines li { margin: 0 0 10px; line-height: 1.9; }
.wv-audio { width: 100%; }
.why-voice:not(.live) .wv-start, .why-voice:not(.live) .wv-cta, .why-voice:not(.live) .wv-bar { display: none; }
.why-voice.live .wv-audio { display: none; }
.why-voice.live .wv-stage { display: block; position: relative; aspect-ratio: 4 / 5; max-height: 84vh; margin: 0 auto; border: 1px solid var(--faint); border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, #21171c 0%, #120c10 70%); cursor: pointer; user-select: none; }
@media (min-width: 900px) { .why-voice.live .wv-stage { aspect-ratio: 16 / 11; } }
.why-voice.live .wv-lines { position: absolute; inset: 0; margin: 0; z-index: 2; pointer-events: none; }
.why-voice.live .wv-lines li { position: absolute; inset: 0 0 64px; margin: 0; padding: 60px clamp(26px, 7vw, 80px) 40px; display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--display); font-size: clamp(22px, 3.6vw, 36px); line-height: 1.7; color: var(--paper); text-wrap: balance;
  text-shadow: 0 2px 18px #120c10, 0 0 4px #120c10; opacity: 0; transform: translateY(16px); filter: blur(4px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); }
.why-voice.live .wv-lines li.past { transform: translateY(-14px); }
.why-voice.live .wv-lines li.on { opacity: 1; transform: none; filter: none; }
.why-voice.live .wv-lines li[data-mood=law] { color: #fff; }
.why-voice.live .wv-lines li[data-mood=imagine] { color: var(--saffron); }
.why-voice.live .wv-lines li:last-child { font-size: clamp(16px, 2vw, 20px); letter-spacing: .08em; color: var(--mute); }
.why-voice.live.ending .wv-lines li { inset-block-end: 130px; }
.wv-year { position: absolute; top: 20px; inset-inline-start: 22px; z-index: 3; margin: 0; color: var(--saffron); font-size: 14px; letter-spacing: .16em;
  opacity: 0; transform: translateY(-6px); transition: opacity .6s, transform .6s; }
.wv-year.on { opacity: 1; transform: none; }
.why-voice.live .wv-start { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(60% 50% at 50% 50%, rgba(18,12,16,.55), rgba(18,12,16,.15)); border: 0; color: var(--paper); font: inherit; cursor: pointer; transition: opacity .6s; }
.why-voice.started .wv-start { opacity: 0; pointer-events: none; }
.wv-disc { width: 86px; height: 86px; border-radius: 50%; border: 1.5px solid var(--saffron); position: relative; box-shadow: 0 0 0 0 rgba(233,169,58,.4); animation: wv-pulse 2.4s infinite; }
.wv-disc::after { content: ''; position: absolute; top: 50%; left: 52%; transform: translate(-40%, -50%); border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent var(--saffron); }
@keyframes wv-pulse { 70% { box-shadow: 0 0 0 22px rgba(233,169,58,0); } 100% { box-shadow: 0 0 0 0 rgba(233,169,58,0); } }
.wv-title { font-family: var(--display); font-size: clamp(26px, 4vw, 38px); }
.wv-len { color: var(--mute); font-size: 14px; letter-spacing: .1em; }
.why-voice.live .wv-cta { position: absolute; bottom: 86px; left: 50%; transform: translate(-50%, 10px); z-index: 4; opacity: 0; pointer-events: none; transition: opacity .8s, transform .8s; }
.why-voice.ending .wv-cta { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.why-voice.live .wv-bar { position: absolute; bottom: 0; inset-inline: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: linear-gradient(transparent, rgba(18,12,16,.85)); opacity: 0; transition: opacity .5s; }
.why-voice.started .wv-bar { opacity: 1; }
.wv-toggle { background: rgba(18,12,16,.6); color: var(--paper); border: 1px solid var(--faint); border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 13px; cursor: pointer; min-width: 64px; }
.wv-toggle:hover { border-color: var(--saffron); }
.wv-seek { flex: 1; accent-color: var(--saffron); height: 4px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .wv-disc { animation: none; } .why-voice.live .wv-lines li { transition: opacity .3s; transform: none; filter: none; } }
.why-voice.live:not(.started) .wv-lines { opacity: 0; }
.why-voice.live .wv-lines { transition: opacity .6s; }

/* ---------- the five-step form (home bottom + /create): one question per screen, a live sentence, a die ---------- */
.create { min-height: 0; display: block; padding: 110px var(--pad) 80px; }
.create-page { padding-top: 96px; min-height: 100svh; }
.wz { max-width: 1240px; margin: 0 auto; scroll-margin-top: 76px; }
.wz-head { margin-bottom: 28px; }
.wz-title { font-size: clamp(30px, 4vw, 52px); margin: 0 0 6px; }
.wz-lead { margin: 0; }
.wz-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 28px 56px; align-items: start; }
.wz-main { min-width: 0; grid-column: 1; grid-row: 1; }
.wz-preview { grid-column: 2; grid-row: 1; position: sticky; top: 92px; }

/* the card: the chosen style's sample above the sentence, each word a button back to its step */
.wz-card { border: 1px solid var(--faint); border-radius: 18px; padding: 14px; background: rgba(27, 20, 25, .7); }
.wz-pic { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--ink); display: grid; }
.wz-pic > * { grid-area: 1 / 1; }
.wz-pic img[data-style-pic] { width: 100%; height: 100%; object-fit: cover; display: block; }
.wz-pic-empty { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(233, 169, 58, .12), transparent 60%); }
.wz-pic-empty img { opacity: .35; }
.wz-pic-empty.surprise::after { content: '?'; font: 800 96px/1 var(--display); color: var(--saffron); grid-area: 1 / 1; place-self: center; }
.wz-pic-empty.surprise img { display: none; }
.wz-pic [hidden] { display: none !important; }
.wz-sentence { font-family: var(--display); font-size: clamp(20px, 1.9vw, 25px); line-height: 1.9; margin: 14px 4px 4px; font-weight: 600; }
.wz-slot { font: inherit; color: var(--mute); background: none; border: 0; padding: 0 2px; cursor: pointer; border-bottom: 2px dashed var(--faint); border-radius: 0; transition: color .3s, border-color .3s; }
.wz-slot.filled { color: var(--saffron); border-bottom: 2px solid rgba(233, 169, 58, .45); }
.wz-slot:hover { border-color: var(--saffron); color: var(--paper); }
.wz-pre { color: var(--paper); }

/* progress: five named steps; done ones are links back */
.wz-progress { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0; margin: 0 0 30px; }
.wz-progress button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; width: 100%; cursor: pointer; color: var(--mute); font-size: 14px; }
.wz-progress button:disabled { cursor: default; opacity: .55; }
.wz-progress button:focus-visible { outline: 2px solid var(--saffron); outline-offset: 4px; border-radius: 4px; }
.wz-progress i { display: block; height: 4px; border-radius: 4px; background: var(--faint); transition: background .4s; }
.wz-progress li.done i { background: rgba(233, 169, 58, .55); }
.wz-progress li.done button { color: var(--paper); }
.wz-progress li.now i { background: var(--saffron); }
.wz-progress li.now button { color: var(--saffron); font-weight: 700; }

/* one step */
.wz-step { border: 0; padding: 0; margin: 0 0 36px; min-width: 0; }
.wz-step legend { display: flex; align-items: center; gap: 14px; padding: 0; margin-bottom: 22px; }
.wz-n { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--saffron); color: var(--ink); font-weight: 800; font-size: 18px; }
.wz-q { font-family: var(--display); font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: 1.25; }
.wz-hint { margin: -10px 0 18px; }
.wz .choices.glyphs { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); max-width: none; }
.wz .glyphs .choice span.card { box-shadow: inset 0 0 0 1px var(--faint); background: rgba(27, 20, 25, .7); min-height: 100%; }
.wz .choice input:checked + span.card { position: relative; }
.wz .choice input:checked + span.card::after { content: '✓'; position: absolute; top: 8px; inset-inline-end: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--saffron); display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.js .stepped .wz-step { display: none; }
.js .stepped .wz-step.active { display: block; }

/* the style step: "surprise me" first and wide, then the three groups */
.wz-group { color: var(--saffron); margin: 22px 0 10px; font-size: 15px; }
.wz .style-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.wz .style-card { animation: none; opacity: 1; }
.wz .style-card > span:last-child { font-size: 14.5px; color: var(--paper); }
.wz .style-card input:checked ~ .style-pic::before { content: '✓'; position: absolute; z-index: 3; top: 8px; inset-inline-end: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--saffron); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.wz-surprise { flex-direction: row !important; align-items: center; gap: 16px !important; padding: 12px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--faint); background: rgba(27, 20, 25, .7); max-width: 460px; transition: box-shadow .3s, background .3s; }
.wz-surprise:hover { box-shadow: inset 0 0 0 1px var(--saffron); }
.wz-surprise:has(input:checked) { box-shadow: inset 0 0 0 2px var(--saffron); background: rgba(233, 169, 58, .1); }
.wz-surprise:has(input:focus-visible) { outline: 2px solid var(--saffron); outline-offset: 3px; }
.wz-surprise .surprise-mark { flex: none; width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: var(--saffron); color: var(--ink); font: 800 30px/1 var(--display); }
.wz-surprise-text { display: flex; flex-direction: column; gap: 2px; color: var(--paper) !important; }
.wz-surprise-text b { font-size: 17px; }
.wz-surprise-text small { color: var(--mute); font-size: 13.5px; }

/* extras under each step: the die and the ready-made moments */
.wz-extra { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.wz-dice { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--body); color: var(--paper); background: transparent; border: 1px dashed rgba(233, 169, 58, .6); border-radius: 999px; padding: 11px 18px; cursor: pointer; transition: background .3s, border-color .3s; }
.wz-dice:hover { background: rgba(233, 169, 58, .1); border-color: var(--saffron); }
.wz-dice svg { width: 22px; height: 22px; fill: none; stroke: var(--saffron); stroke-width: 1.6; }
.wz-dice svg circle { fill: var(--saffron); stroke: none; }
.wz-dice:active svg { transform: rotate(90deg); transition: transform .3s var(--ease); }
.wz-moments { width: 100%; }
.wz-moments > p { margin: 0 0 10px; font-size: 15px; }
.wz-moment-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.wz-moment { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--faint); background: rgba(27, 20, 25, .6); font-size: 14.5px; line-height: 1.7; transition: box-shadow .3s; }
.wz-moment:hover, .wz-moment:focus-visible { box-shadow: inset 0 0 0 1px var(--saffron); }
.wz-moment time { color: var(--saffron); font-size: 13px; }
.wz-moment span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* the last step: real boxes, labels above, one short line under each */
.wz-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 0 0 24px; max-width: 760px; }
.wz-field { display: flex; flex-direction: column; gap: 8px; }
.wz-field > span { font-weight: 700; }
.wz-field input:not([type=radio]) { background: rgba(27, 20, 25, .9); border: 1px solid rgba(243, 231, 211, .28); border-radius: 12px; padding: 14px 16px; font-size: 18px; min-height: 54px; }
.wz-field input:not([type=radio]):focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(233, 169, 58, .2); }
.wz-field input::placeholder { color: rgba(243, 231, 211, .3); }
.wz-field input[dir=ltr] { text-align: left; }
.wz-field small { color: var(--mute); font-size: 13.5px; line-height: 1.7; }
.wz-submit { width: 100%; max-width: 420px; min-height: 58px; }
.wz.sending .wz-submit { opacity: .6; pointer-events: none; }

/* back · 2 of 5 · next */
.wz-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: 1px solid var(--faint); }
.wz-nav .btn { min-width: 120px; min-height: 48px; }
.wz-nav [hidden] { display: none; }
.wz-count { color: var(--mute); font-size: 14px; }
.wz-count b { color: var(--paper); }
html:not(.js) .wz-nav, html:not(.js) .wz-progress, html:not(.js) .wz-dice, html:not(.js) .wz-moments { display: none; }

@media (max-width: 900px) {
  .wz-grid { grid-template-columns: 1fr; gap: 0; }
  .wz-preview { position: static; grid-column: 1; grid-row: 1; margin-bottom: 20px; }
  .wz-main { grid-row: 2; }
  .wz-card { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; }
  .wz-pic { width: 64px; flex: none; border-radius: 10px; }
  .wz-pic-empty img { width: 18px; height: auto; }
  .wz-pic-empty.surprise::after { font-size: 36px; }
  .wz-sentence { font-size: 17px; margin: 0; line-height: 1.8; }
  .wz-progress { margin-bottom: 22px; }
  .wz-progress button { font-size: 12px; gap: 6px; }
  .wz-step { margin-bottom: 20px; }
  .wz-step legend { margin-bottom: 16px; }
  .wz-n { width: 34px; height: 34px; font-size: 16px; }
  .wz-q { font-size: 24px; }
  .wz .choices.glyphs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .wz .glyphs .choice b { font-size: 13.5px; }
  .wz .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .wz .style-card > span:last-child { font-size: 13px; }
  .wz-surprise { max-width: none; }
  .wz-submit { max-width: none; }
  /* on the phone the nav sticks to the bottom while the form is on screen, thumbs never hunt for "next" */
  .wz-nav { position: sticky; bottom: 0; z-index: 30; margin: 0 calc(var(--pad) * -1); padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); background: rgba(17, 12, 16, .94); backdrop-filter: blur(10px); border-top: 1px solid rgba(233, 169, 58, .3); }
  .wz-nav .btn { min-width: 0; padding-inline: 22px; }
  .wz-nav [data-next] { flex: 1; max-width: 220px; }
}
@media (min-width: 901px) { .wz #wz-woman .choices.glyphs { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; } }

/* sharing a finished painting: the main thing to do after it is made (2026-11-30) */
.share-box { margin: 26px 0 0; padding: 20px 22px; border: 1px solid var(--faint); border-radius: 14px; background: rgba(233, 169, 58, 0.06); }
.share-box h2 { margin: 0 0 4px; font-size: 1.15rem; color: var(--saffron); }
.share-box > .dim { margin: 0; }
.share-box .actions { margin: 16px 0 12px; gap: 10px; }
.share-box .small { font-size: 0.88rem; margin: 0; }
@media (max-width: 600px) { .share-box { padding: 16px; } .share-box .actions .btn { flex: 1 1 40%; text-align: center; } }
