/* Pan Hub — whitewashed paper, typewriter type, cotton labels, four stitches. */

@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --paper: #E8E8E5;
  --cotton: #FAFAF8;
  --ink: #151413;
  --ink-soft: #545452;
  --lining: #0F0E0D;
  --thread: #F2EFE8;
  --thread-soft: #ADA9A1;
  --rule: rgba(21, 20, 19, 0.2);
  --type: "Courier Prime", "Courier New", monospace;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-flood: cubic-bezier(0.76, 0, 0.24, 1);
  --display: clamp(2.75rem, 1.2rem + 6.6vw, 6rem);
  --h2: clamp(2rem, 1rem + 3.4vw, 3.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--type);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Paper grain, drawn once over everything (kept out of the 4K frames so they stay light). */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 80; pointer-events: none;
  opacity: 0.07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--ink); color: var(--paper); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--paper); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px dashed currentColor; outline-offset: 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 86rem; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem var(--gutter);
  color: #fff; mix-blend-mode: difference;
  font-size: 0.875rem;
}
.bar__mark { font-weight: 700; letter-spacing: 0.04em; text-transform: lowercase; font-size: 1.05rem; }
.bar__nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.bar__nav a { position: relative; padding: 0.35rem 0.1rem; display: inline-block; }
.bar__nav a[aria-current="page"]::before {
  content: ""; position: absolute; inset: -0.2rem -0.65rem; border: 1px solid currentColor;
  border-radius: 50%; transform: rotate(-4deg);
}
.bar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 10px);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out);
}
.bar__nav a:not([aria-current]):hover::after, .bar__nav a:not([aria-current]):focus-visible::after { transform: scaleX(1); }

/* ---------- Page curtain (transition) ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 90; background: var(--cotton);
  display: grid; place-items: center; pointer-events: none; visibility: hidden;
  will-change: transform; /* positioned only by GSAP */
}
.curtain__label { font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; }
.curtain__stitch { position: absolute; width: 2.4rem; height: 3px; background: var(--ink); border-radius: 3px; }
.curtain__stitch:nth-of-type(1) { top: 2rem; left: 2rem; rotate: 45deg; }
.curtain__stitch:nth-of-type(2) { top: 2rem; right: 2rem; rotate: -45deg; }
.curtain__stitch:nth-of-type(3) { bottom: 2rem; left: 2rem; rotate: -45deg; }
.curtain__stitch:nth-of-type(4) { bottom: 2rem; right: 2rem; rotate: 45deg; }

/* ---------- Cursor (pointer devices only) ---------- */
.cursor { position: fixed; inset: 0; z-index: 95; pointer-events: none; mix-blend-mode: difference; display: none; }
.has-cursor .cursor { display: block; opacity: 0; transition: opacity 0.4s; }
.has-cursor .cursor.is-live { opacity: 1; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; translate: -50% -50%; }
.cursor__dot { width: 6px; height: 6px; background: #fff; }
.cursor__ring {
  width: 34px; height: 34px; border: 1px solid #fff;
  display: grid; place-items: center;
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), background-color 0.45s var(--ease-out);
}
.cursor__label { font-size: 0.6875rem; color: #000; opacity: 0; transition: opacity 0.3s; white-space: nowrap; }
.cursor.is-hover .cursor__ring { width: 56px; height: 56px; }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; background: #fff; }
.cursor.is-label .cursor__label { opacity: 1; }

/* ---------- Scroll-scrubbed scenes ---------- */
.scene__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.scene--paper .scene__stage { background: var(--paper); }
.scene--lining .scene__stage { background: var(--lining); color: var(--thread); }
.scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(4.5rem, 12vh, 8rem); pointer-events: none; }
.hero__title { font-weight: 700; font-size: var(--display); line-height: 0.95; letter-spacing: -0.04em; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line > span { display: block; }
.hero__sub { margin-top: 1.5rem; max-width: 34ch; color: var(--ink-soft); }

.scene__hint {
  position: absolute; right: var(--gutter); bottom: clamp(4.5rem, 12vh, 8rem);
  font-size: 0.8125rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.75rem;
}
.scene__hint::after {
  content: ""; width: 1px; height: 2.5rem;
  background: repeating-linear-gradient(180deg, var(--ink) 0 5px, transparent 5px 9px);
  animation: hint 2.4s var(--ease-out) infinite; transform-origin: top;
}
@keyframes hint { 0% { transform: scaleY(0); } 60%, 100% { transform: scaleY(1); opacity: 0; } }

.captions {
  list-style: none; position: absolute; left: var(--gutter); top: clamp(6rem, 22vh, 14rem);
  width: min(24ch, 38vw);
  font-size: clamp(1.2rem, 0.9rem + 1.3vw, 1.9rem); line-height: 1.3; letter-spacing: -0.01em;
}
.caption + .caption { margin-top: 1rem; }
.js .caption { position: absolute; inset: 0 auto auto 0; margin: 0; }
.caption small { display: block; margin-top: 0.75rem; font-size: 0.875rem; color: var(--thread-soft); letter-spacing: 0; }

/* ---------- Statement (word-by-word scrub) ---------- */
.statement { padding: clamp(7rem, 16vw, 13rem) 0; }
.statement__text {
  font-weight: 700; font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  line-height: 1.12; letter-spacing: -0.035em; max-width: 22ch; text-wrap: balance;
}

/* ---------- Record tag ---------- */
.record { padding: clamp(5rem, 12vw, 10rem) 0; }
.record__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34rem); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.record__title { font-weight: 700; font-size: var(--h2); line-height: 1.02; letter-spacing: -0.035em; max-width: 14ch; text-wrap: balance; }
.record__aside { margin-top: 1.75rem; max-width: 36ch; color: var(--ink-soft); }
.tag {
  background: var(--cotton); padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 1px 2px rgba(30, 30, 28, 0.08), 0 30px 60px -28px rgba(30, 30, 28, 0.35);
  transform: rotate(-1deg);
}
.tag__name { font-weight: 700; text-transform: uppercase; letter-spacing: 0.32em; font-size: 0.875rem; padding-bottom: 1.25rem; }
.tag__list > div { border-top: 1px dashed var(--rule); padding: 1rem 0; display: grid; gap: 0.25rem; }
.tag__list dt { font-size: 0.8125rem; color: var(--ink-soft); }
.tag__list dd { max-width: 60ch; }

/* ---------- Velocity marquee (adapted from 21st.dev Scroll Velocity Text) ---------- */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--ink); padding: 1.1rem 0; user-select: none; }
.marquee--lining { background: var(--lining); color: var(--thread); border-color: var(--lining); }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__run { display: inline-flex; align-items: center; flex: none; }
.marquee__item { font-weight: 700; font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem); letter-spacing: -0.04em; padding-inline: clamp(1rem, 2vw, 2rem); }
.marquee__sep { width: 2.2rem; height: 3px; background: currentColor; border-radius: 3px; rotate: -45deg; flex: none; }

/* ---------- Trade rows ---------- */
.trade { padding: clamp(6rem, 12vw, 10rem) 0; }
.section-title { font-weight: 700; font-size: var(--h2); letter-spacing: -0.035em; line-height: 1.02; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); text-wrap: balance; }
.rows { list-style: none; border-bottom: 1px solid var(--ink); }
.row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 3rem); align-items: center;
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(0.5rem, 1.5vw, 1.25rem);
  border-top: 1px solid var(--ink); transition: color 0.6s var(--ease-out);
}
.row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: inset(0 100% 0 0); transition: clip-path 0.7s var(--ease-out); }
.row:hover, .row:focus-visible { color: var(--paper); }
.row:hover::before, .row:focus-visible::before { clip-path: inset(0 0 0 0); }
.row:focus-visible { outline-offset: -6px; }
.row__name { font-weight: 700; font-size: clamp(1.6rem, 0.8rem + 3.4vw, 3.75rem); letter-spacing: -0.04em; line-height: 1; }
.row__desc { opacity: 0.75; max-width: 40ch; }
.arrow { width: 2.5rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 0.6s var(--ease-out); flex: none; }
.row:hover .arrow { transform: translateX(0.5rem); }

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex; align-items: center; gap: 0.75rem; min-height: 3rem;
  padding: 0.85rem 1.5rem; border: 1px solid var(--ink); font: inherit; font-size: 0.9375rem;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
.button:hover { background: var(--ink); color: var(--paper); }
.button--ink { background: var(--ink); color: var(--paper); }
.button--ink:hover { background: transparent; color: var(--ink); }
.button[disabled] { opacity: 0.45; cursor: not-allowed; }
.text-link { border-bottom: 1px dashed currentColor; padding-bottom: 0.1rem; }
.text-link:hover { border-bottom-style: solid; }

/* ---------- Contact card ---------- */
.contact { padding: clamp(5rem, 12vw, 10rem) var(--gutter) clamp(6rem, 14vw, 12rem); display: grid; place-items: center; }
.label-card {
  position: relative; width: min(46rem, 100%); background: var(--cotton); text-align: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  box-shadow: 0 1px 2px rgba(30, 30, 28, 0.08), 0 40px 80px -40px rgba(30, 30, 28, 0.4);
}
.stitch { position: absolute; width: 2.25rem; height: 3px; border-radius: 3px; background: var(--ink); }
.stitch--tl { top: -0.6rem; left: -1.4rem; rotate: 45deg; }
.stitch--tr { top: -0.6rem; right: -1.4rem; rotate: -45deg; }
.stitch--bl { bottom: -0.6rem; left: -1.4rem; rotate: -45deg; }
.stitch--br { bottom: -0.6rem; right: -1.4rem; rotate: 45deg; }
.contact__title { font-weight: 700; font-size: clamp(2.1rem, 1rem + 4vw, 4rem); letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }
.contact__text { margin: 1.5rem auto 0; max-width: 38ch; color: var(--ink-soft); }
.contact__actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ---------- Footer ---------- */
.foot { padding: 0 var(--gutter) 2.5rem; display: grid; gap: 1.5rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.875rem; }
.numbers { width: 100%; max-width: 61rem; height: auto; overflow: visible; }
.numbers text { font-family: var(--type); font-size: 22px; fill: var(--ink); text-anchor: middle; }
.numbers__circle { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.foot__legal { font-size: 0.8125rem; color: var(--ink-soft); }

/* ---------- Inner-page hero ---------- */
.page-hero { min-height: 88vh; min-height: 88svh; display: grid; align-content: end; padding: 9rem 0 clamp(3rem, 8vh, 6rem); }
.page-hero__title { font-weight: 700; font-size: var(--display); line-height: 0.95; letter-spacing: -0.04em; }
.page-hero__sub { margin-top: 1.75rem; max-width: 46ch; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-soft); }
.page-hero__meta { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; font-size: 0.875rem; color: var(--ink-soft); border-top: 1px solid var(--ink); padding-top: 1rem; }

/* ---------- Atelier chapters ---------- */
.chapter { padding: clamp(5rem, 11vw, 9rem) 0; border-top: 1px solid var(--rule); }
.chapter__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.chapter__mark { font-style: italic; font-size: 1rem; color: var(--ink-soft); }
.chapter__title { font-weight: 700; font-size: var(--h2); letter-spacing: -0.035em; line-height: 1.02; margin-top: 0.5rem; }
.chapter__body p { max-width: 58ch; }
.chapter__body p + p { margin-top: 1.1rem; }
.chapter__figure { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px dashed var(--rule); }
.chapter__num { font-weight: 700; font-size: clamp(3rem, 1.5rem + 6vw, 6rem); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.chapter__caption { margin-top: 0.6rem; font-size: 0.875rem; color: var(--ink-soft); }
.chapter--lining { background: var(--lining); color: var(--thread); border-top: 0; }
.chapter--lining .chapter__mark, .chapter--lining .chapter__caption { color: var(--thread-soft); }
.chapter--lining .chapter__figure { border-color: rgba(242, 239, 232, 0.2); }

.weeks { margin-top: 3rem; display: grid; grid-template-columns: repeat(52, minmax(0, 1fr)); gap: clamp(2px, 0.4vw, 6px) clamp(1px, 0.25vw, 4px); }
.weeks span { height: clamp(10px, 1.6vw, 22px); background: var(--thread); border-radius: 1px; transform-origin: 50% 100%; }
.weeks__legend { display: flex; justify-content: space-between; margin-top: 0.75rem; font-size: 0.8125rem; color: var(--thread-soft); }

.coda { padding: clamp(6rem, 14vw, 11rem) 0; text-align: center; }
.coda__quote { font-weight: 700; font-size: clamp(1.75rem, 1rem + 3vw, 3.25rem); line-height: 1.12; letter-spacing: -0.035em; max-width: 24ch; margin: 0 auto; text-wrap: balance; }
.coda__actions { margin-top: 2.5rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Collection: horizontal tags ---------- */
.hscroll { overflow: hidden; }
.hscroll__track { display: flex; gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(5rem, 14vh, 9rem) var(--gutter); width: max-content; align-items: center; min-height: 100vh; min-height: 100svh; }
.hscroll__intro { width: min(30rem, 80vw); flex: none; }
.hscroll__intro p { margin-top: 1.25rem; color: var(--ink-soft); max-width: 34ch; }
.ctag {
  position: relative; flex: none; width: min(30rem, 82vw); background: var(--cotton);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: 0 1px 2px rgba(30, 30, 28, 0.08), 0 40px 70px -36px rgba(30, 30, 28, 0.42);
}
.ctag:nth-child(odd) { rotate: 1.2deg; }
.ctag:nth-child(even) { rotate: -1.4deg; }
.ctag__hole { position: absolute; top: 1.25rem; right: 1.25rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; border: 1px solid var(--ink); }
.ctag__name { font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -0.04em; line-height: 1.02; padding-right: 2rem; }
.ctag dl { margin-top: 1.5rem; }
.ctag dl > div { border-top: 1px dashed var(--rule); padding: 0.85rem 0; display: grid; gap: 0.2rem; }
.ctag dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.24em; color: var(--ink-soft); }
.ctag__foot { margin-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; }

/* ---------- Process ---------- */
.process { padding: clamp(6rem, 12vw, 10rem) 0; }
.steps { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); padding-top: 3.5rem; }
.steps__seam { position: absolute; top: 0.6rem; left: 0; width: 100%; height: 6px; overflow: visible; }
.steps__seam path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 14 10; stroke-linecap: round; }
.steps-wrap { position: relative; }
.step__knot { position: absolute; top: -3.2rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--ink); }
.step { position: relative; }
.step__name { font-weight: 700; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); letter-spacing: -0.035em; }
.step__term { font-style: italic; color: var(--ink-soft); font-size: 0.875rem; }
.step p { margin-top: 0.75rem; max-width: 30ch; }

/* ---------- FAQ (adapted from 21st.dev Slit Type FAQ) ---------- */
.faq { padding: clamp(6rem, 12vw, 10rem) 0; --faq-rule: 1px; }
.faq__title { font-weight: 700; font-size: clamp(2.75rem, 1rem + 8vw, 8rem); line-height: 0.86; letter-spacing: -0.05em; text-transform: lowercase; }
.faq__title .fl { display: block; overflow: hidden; padding-top: 0.06em; margin-top: -0.06em; }
.faq__title .fc { display: inline-block; transform: translateY(var(--cut, 0.12em)); transition: transform 0.82s var(--ease-out); transition-delay: min(calc(var(--i) * 26ms), 420ms); }
.faq__title.is-pending .fc { transform: translateY(104%); transition: none; }
@media (hover: hover) and (pointer: fine) { .faq__title:hover .fc { transform: translateY(0); transition-duration: 0.42s; transition-delay: min(calc(var(--i) * 14ms), 220ms); } }
.faq__intro { margin: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); max-width: 40ch; color: var(--ink-soft); }
.faq__list { list-style: none; border-bottom: var(--faq-rule) solid var(--ink); }
.faq__item { position: relative; isolation: isolate; border-top: var(--faq-rule) solid var(--ink); }
.faq__fill { position: absolute; z-index: -1; inset: -1px calc(var(--gutter) * -1) 0; background: var(--ink); clip-path: inset(0 100% 0 0); pointer-events: none; }
.faq__item[data-state="open"] .faq__fill { clip-path: inset(0 0 0 0); transition: clip-path 0.4s var(--ease-flood); }
.faq__item[data-state="closing"] .faq__fill { clip-path: inset(0 0 0 100%); transition: clip-path 0.28s var(--ease-flood); }
.faq__h { font: inherit; }
.faq__btn { position: relative; display: block; width: 100%; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.faq__btn:focus-visible { outline: none; }
.faq__btn:focus-visible .faq__row:not(.faq__row--inv) { outline: 2px dashed var(--ink); outline-offset: -4px; }
.faq__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.25rem;
  min-height: 4rem; padding: clamp(1rem, 2vw, 1.6rem) 0;
  font-weight: 700; font-size: clamp(1.15rem, 0.9rem + 1.1vw, 1.9rem); line-height: 1.15; letter-spacing: -0.025em;
}
.faq__row--inv {
  position: absolute; inset: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter);
  color: var(--paper); clip-path: inset(0 100% 0 0); pointer-events: none;
}
.faq__item[data-state="open"] .faq__row--inv { clip-path: inset(0 0 0 0); transition: clip-path 0.4s var(--ease-flood); }
.faq__item[data-state="closing"] .faq__row--inv { clip-path: inset(0 0 0 100%); transition: clip-path 0.28s var(--ease-flood); }
.faq__label { transition: transform 0.24s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .faq__btn:hover .faq__label { transform: translateX(0.3em); } }
.faq__plus { width: 1.6rem; height: 1.6rem; transition: transform 0.28s var(--ease-out); }
.faq__plus path { stroke: currentColor; stroke-width: 2; }
.faq__item[data-state="open"] .faq__plus { transform: rotate(135deg); transition-duration: 0.4s; }
.faq__panel { position: relative; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.24s var(--ease-out); }
.faq__item[data-state="open"] .faq__panel { grid-template-rows: 1fr; transition-duration: 0.36s; }
.faq__panel-in { overflow: hidden; min-height: 0; }
.faq__item[data-state="closed"] .faq__panel-in { visibility: hidden; }
.faq__answer { color: var(--paper); padding: 0 0 clamp(1.5rem, 2.6vw, 2.25rem); max-width: 58ch; margin-left: auto; margin-right: clamp(0rem, 6vw, 6rem); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); }

/* ---------- Contact page: commission form ---------- */
.commission { padding: 0 0 clamp(6rem, 12vw, 10rem); }
.commission__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.form-card { position: relative; background: var(--cotton); padding: clamp(1.75rem, 5vw, 4rem); box-shadow: 0 1px 2px rgba(30, 30, 28, 0.08), 0 40px 80px -40px rgba(30, 30, 28, 0.4); }
.field { display: grid; gap: 0.5rem; padding: 1.25rem 0; border-top: 1px dashed var(--rule); }
.field:first-of-type { border-top: 0; padding-top: 0; }
.field > label, .field legend { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink-soft); }
.field fieldset { border: 0; display: grid; gap: 0.75rem; }
.field input[type="text"], .field input[type="date"], .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); padding: 0.6rem 0; border-radius: 0;
  caret-color: var(--ink);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: 0.7; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-width: 2px; }
.field [aria-invalid="true"] { border-bottom-color: #8B1E1E; }
.field__error { font-size: 0.875rem; color: #8B1E1E; min-height: 1.3em; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 1rem; border: 1px solid var(--ink); font-size: 0.9375rem; transition: background-color 0.3s, color 0.3s; }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px dashed var(--ink); outline-offset: 3px; }
.form-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-note { font-size: 0.875rem; color: var(--ink-soft); }
.form-done { display: none; }
.form-card.is-done form { display: none; }
.form-card.is-done .form-done { display: block; }
.form-done h2 { font-weight: 700; font-size: var(--h2); letter-spacing: -0.035em; line-height: 1.02; }
.form-done p { margin-top: 1rem; max-width: 42ch; }
.lines { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.lines > div { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.lines dt { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink-soft); }
.lines dd { margin-top: 0.35rem; font-size: 1.15rem; }
.lines__note { margin-top: 1.5rem; color: var(--ink-soft); font-size: 0.9375rem; max-width: 36ch; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .record__inner, .chapter__grid, .commission__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
}
@media (max-width: 760px) {
  .bar__nav a:not(.bar__cta) { display: none; }
  .row { grid-template-columns: 1fr auto; }
  .row__desc { grid-column: 1 / -1; grid-row: 2; }
  .row .arrow { grid-row: 1; grid-column: 2; }
  .scene__hint { display: none; }
  .captions { top: auto; bottom: clamp(2.5rem, 7vh, 4rem); width: calc(100% - 2 * var(--gutter)); min-height: 6.5em; }
  .js .caption { inset: auto auto 0 0; }
  .label-card { width: calc(100% - 1.5rem); }
  .weeks { grid-template-columns: repeat(26, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .steps__seam { display: none; }
  .js .hscroll__track { width: auto; flex-direction: column; align-items: stretch; }
  .js .ctag { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .scene__hint::after { animation: none; }
  .row::before, .row, .arrow, .bar__nav a::after, .faq__fill, .faq__row--inv, .faq__panel, .faq__plus, .faq__title .fc { transition: none !important; }
}
