/* Ani Cotton v2 — layout: a living silk ground (WebGL) runs behind every page and shifts tone by section;
   content floats on it in a floating pill nav, rounded tinted panels and big tight type. Dark first, light on request. */
:root {
  --brand: #94000E;          /* Primary colour 01 */
  --ink-brand: #221C1C;      /* Primary colour 02 */
  --rose: #FFBBBA; --coral: #FF7A7B; --flame: #FF5353;

  --bg: #0F0A0B;
  --surface: rgba(30, 20, 22, .72);
  --surface-2: rgba(44, 28, 31, .78);
  --solid: #1A1214;
  --text: #F8EFEF;
  --text-muted: #C2B0B1;
  --border: rgba(255, 210, 210, .12);
  --accent: #FF7A7B;          /* text-level accent on dark */
  --btn: #B3071B;             /* action fill */
  --btn-hover: #D0122A;
  --btn-text: #FFFFFF;
  --good: #3FBF7F; --warn: #F2B544; --bad: #FF5C5C;
  --nav: rgba(20, 12, 14, .62);
  --tile: rgba(255, 255, 255, .05);
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);

  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px; --pill: 999px;
  --max: 1280px;
  --g-l: max(20px, env(safe-area-inset-left, 0px));
  --g-r: max(20px, env(safe-area-inset-right, 0px));
  --out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #FBF4F3; --surface: rgba(255, 255, 255, .78); --surface-2: rgba(255, 244, 243, .9); --solid: #FFFFFF;
  --text: #1E1416; --text-muted: #6B5557; --border: rgba(80, 10, 20, .12); --accent: #94000E;
  --btn: #94000E; --btn-hover: #B3071B; --nav: rgba(255, 250, 249, .72); --tile: rgba(148, 0, 14, .05);
  --shadow: 0 30px 70px rgba(120, 20, 30, .16); color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #FBF4F3; --surface: rgba(255, 255, 255, .78); --surface-2: rgba(255, 244, 243, .9); --solid: #FFFFFF;
    --text: #1E1416; --text-muted: #6B5557; --border: rgba(80, 10, 20, .12); --accent: #94000E;
    --btn: #94000E; --btn-hover: #B3071B; --nav: rgba(255, 250, 249, .72); --tile: rgba(148, 0, 14, .05);
    --shadow: 0 30px 70px rgba(120, 20, 30, .16); color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 90; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: .98; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--g-l); padding-right: var(--g-r); }
.muted { color: var(--text-muted); }
.skip { position: fixed; left: -999px; top: 10px; z-index: 200; background: var(--btn); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 10px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- living ground ---------- */
#silk { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -3; display: block; }
#silk.fallback { background: radial-gradient(80% 60% at 80% 10%, #C2132B, transparent 60%), radial-gradient(70% 70% at 0% 100%, #4A0008, transparent 60%), #2A050A; }
.veil { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: color-mix(in srgb, var(--bg) var(--veil, 0%), transparent); transition: background .8s var(--out); }
.grain { position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }

/* ---------- progress + nav ---------- */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), var(--coral)); z-index: 95; }
.nav { position: fixed; z-index: 80; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); width: min(calc(100% - 28px), 1240px); }
.nav-in { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 10px 0 18px; border-radius: var(--pill); background: var(--nav); border: 1px solid var(--border); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 10px 40px rgba(0,0,0,.18); transition: transform .4s var(--out); }
.nav.hide .nav-in { transform: translateY(-120%); }
.brand { display: flex; align-items: center; height: 100%; flex: none; }
.brand img { height: 44px; width: auto; }
:root:not([data-theme="light"]) .brand img.l, :root[data-theme="light"] .brand img.d { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .brand img.d { display: none; } :root:not([data-theme="dark"]) .brand img.l { display: block; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img.l { display: none; } }
.links { display: flex; gap: 4px; margin: 0 auto; }
.links a { position: relative; text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 14px; border-radius: var(--pill); transition: background .2s, color .2s; white-space: nowrap; }
.links a:hover { background: var(--tile); }
.links a[aria-current="page"] { background: var(--tile); color: var(--accent); }
.links a.house { font-family: var(--display); letter-spacing: .14em; font-size: 13px; text-transform: uppercase; }
.tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ib { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: transparent; transition: background .2s, transform .2s var(--out); text-decoration: none; }
.ib:hover { background: var(--tile); }
.ib:active { transform: scale(.94); }
.ib svg { width: 20px; height: 20px; }
.count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--btn); color: #fff; font: 700 11px/20px var(--body); text-align: center; }
.count.bump { animation: bump .45s var(--out); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; }
@media (max-width: 1060px) { .links { display: none; } .menu-btn { display: inline-grid; } .nav-in { padding-left: 14px; } }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--pill); border: 0; background: var(--btn); color: var(--btn-text); font: 600 16px/1 var(--body); text-decoration: none; transition: background .2s, transform .2s var(--out); overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--out); }
.btn:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--out); }
.btn:hover svg { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn.ghost:hover { background: var(--tile); }
.btn.light { background: #fff; color: #7A000C; }
.btn.light:hover { background: #FFEDED; }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--accent); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--out); padding-bottom: 2px; }
.link:hover { background-size: 100% 2px; }

/* ---------- reveal ---------- */
.js [data-r] { opacity: 0; transform: translateY(24px); }
.js [data-r].in { opacity: 1; transform: none; transition: opacity .7s var(--out), transform .7s var(--out); transition-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { .js [data-r] { opacity: 1; transform: none; } .grain { animation: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; align-items: center; padding-block: 120px 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(54px, 7.6vw, 118px); color: #fff; letter-spacing: -0.045em; line-height: .9; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.hero h1 .w > span { display: inline-block; }
.js .hero h1 .w > span { transform: translateY(105%); }
.hero h1.go .w > span { transform: none; transition: transform 1s var(--out); transition-delay: var(--d); }
.hero .lede { margin-top: 24px; max-width: 46ch; font-size: 19px; color: rgba(255, 240, 240, .86); }
:root[data-theme="light"] .hero h1 { color: #fff; }
.intent { margin-top: 34px; display: inline-flex; padding: 6px; gap: 4px; border-radius: var(--pill); background: rgba(20, 6, 8, .38); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); flex-wrap: wrap; }
.intent button { border: 0; background: transparent; color: rgba(255,255,255,.82); padding: 12px 18px; border-radius: var(--pill); font-weight: 600; font-size: 15px; transition: background .25s var(--out), color .25s; }
.intent button[aria-pressed="true"] { background: #fff; color: #7A000C; }
.intent button:hover:not([aria-pressed="true"]) { background: rgba(255,255,255,.1); }
.hero-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-cta .hint { color: rgba(255, 235, 235, .78); font-size: 15px; max-width: 30ch; }
.stage { position: relative; height: min(76svh, 720px); min-height: 520px; }
.arch { position: absolute; left: 50%; bottom: 0; width: min(78%, 420px); aspect-ratio: 3 / 4.6; transform: translateX(-50%); border-radius: 999px 999px 32px 32px; overflow: hidden; background: radial-gradient(90% 60% at 50% 18%, rgba(255, 187, 186, .55), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 0 80px rgba(255, 180, 180, .18), 0 40px 120px rgba(40, 0, 6, .55); }
.arch::before { content: ""; position: absolute; inset: 14px; border-radius: inherit; border: 1px dashed rgba(255,255,255,.28); }
.arch img.ani { position: absolute; left: 50%; top: 7%; width: 96%; max-width: none; transform: translateX(-46%); filter: drop-shadow(0 20px 30px rgba(40,0,6,.5)); }
.float { position: absolute; width: var(--w, 180px); filter: drop-shadow(0 26px 30px rgba(20, 0, 4, .45)); will-change: transform; }
.float img { width: 100%; animation: bob var(--t, 7s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
@keyframes bob { from { transform: translateY(-10px) rotate(var(--rot, 0deg)); } to { transform: translateY(12px) rotate(calc(var(--rot, 0deg) * -1)); } }
.float .tag { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); white-space: nowrap; background: rgba(18, 8, 10, .72); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: var(--pill); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); text-decoration: none; }
.f1 { left: -6%; top: 4%; --w: 170px; --rot: -6deg; }
.f2 { right: -6%; top: 14%; --w: 170px; --rot: 5deg; --t: 8s; --dl: -2s; }
.f3 { left: -2%; bottom: 6%; --w: 150px; --rot: 4deg; --t: 6.5s; --dl: -4s; }
.f4 { right: -4%; bottom: 4%; --w: 140px; --rot: -4deg; --t: 7.5s; --dl: -1s; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255,255,255,.5); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: #fff; transform: translateX(-50%); animation: cue 1.8s var(--out) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }
@media (max-width: 920px) {
  .hero { padding-top: 110px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .stage { height: 520px; min-height: 0; }
  .f1 { --w: 140px; } .f2 { --w: 140px; } .f3 { --w: 120px; } .f4 { --w: 110px; }
  .scroll-cue { display: none; }
}

/* ---------- marquee ---------- */
.marquee { position: relative; padding-block: 34px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: slide 60s linear infinite; }
.marquee.paused .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.chip-card { display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--border); text-decoration: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .25s var(--out), background .2s; }
.chip-card:hover { transform: translateY(-3px); background: var(--surface-2); }
.chip-card .th { width: 64px; height: 64px; border-radius: 50%; background: var(--sw, #444); display: grid; place-items: center; overflow: hidden; }
.chip-card .th img { width: 88%; height: 88%; object-fit: contain; }
.chip-card b { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; }
.chip-card span { font-size: 14px; color: var(--text-muted); }
.pause { position: absolute; right: var(--g-r); bottom: 0; }

/* ---------- section shells ---------- */
.sec { padding-block: clamp(90px, 12vw, 170px); position: relative; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 48px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(40px, 5.6vw, 78px); max-width: 16ch; }
.sec-head p { max-width: 42ch; color: var(--text-muted); font-size: 18px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-weight: 600; font-size: 15px; color: var(--accent); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; text-decoration: none; min-width: 0; transition: transform .35s var(--out), border-color .3s; }
.tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tile h3 { font-size: clamp(30px, 3vw, 44px); }
.tile p { color: var(--text-muted); max-width: 34ch; }
.tile .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.tile .go svg { width: 18px; transition: transform .3s var(--out); }
.tile:hover .go svg { transform: translateX(5px); }
.t-shop { grid-column: span 7; grid-row: span 2; background: radial-gradient(70% 60% at 80% 30%, rgba(255, 83, 83, .35), transparent 70%), var(--surface); }
.t-blanks { grid-column: span 5; }
.t-custom { grid-column: span 5; }
.t-house { grid-column: span 12; min-height: 200px; background: linear-gradient(110deg, #0A0A0A 0%, #1B1612 60%, #2A2118 100%); border-color: rgba(214, 186, 140, .25); color: #F3ECE2; flex-direction: row; align-items: center; flex-wrap: wrap; }
.t-house h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; font-size: clamp(30px, 4vw, 52px); }
.t-house p { color: #BDB3A5; }
.t-house .go { color: #E7D4AE; }
.fan { position: relative; height: 300px; margin-top: 10px; }
.fan img { position: absolute; bottom: 0; width: 36%; max-height: 100%; object-fit: contain; transition: transform .6s var(--out); filter: drop-shadow(0 24px 24px rgba(0,0,0,.35)); }
.fan img:nth-child(1) { left: 2%; transform: rotate(-10deg) translateY(10px); }
.fan img:nth-child(2) { left: 32%; z-index: 2; transform: translateY(-12px); }
.fan img:nth-child(3) { right: 2%; transform: rotate(9deg) translateY(10px); }
.t-shop:hover .fan img:nth-child(1) { transform: rotate(-16deg) translate(-18px, 0); }
.t-shop:hover .fan img:nth-child(2) { transform: translateY(-26px) scale(1.04); }
.t-shop:hover .fan img:nth-child(3) { transform: rotate(15deg) translate(18px, 0); }
.t-blanks .ph { position: absolute; right: -10px; bottom: -40px; width: 40%; transform: rotate(6deg); transition: transform .6s var(--out); filter: drop-shadow(0 20px 20px rgba(0,0,0,.3)); }
.t-blanks:hover .ph { transform: rotate(2deg) translateY(-8px); }
.t-blanks h3, .t-blanks p { max-width: 60%; }
.stitch-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stitch-svg path { fill: none; stroke: var(--coral); stroke-width: 2; stroke-dasharray: 10 8; stroke-linecap: round; animation: sew 6s linear infinite; opacity: .7; }
@keyframes sew { to { stroke-dashoffset: -180; } }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .t-shop, .t-blanks, .t-custom, .t-house { grid-column: auto; grid-row: auto; } .fan { height: 240px; } }

/* ---------- product cards / rail ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 18px; overflow-x: auto; padding: 6px var(--g-r) 26px var(--g-l); scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; }
.rail-wrap { position: relative; }
.rail-nav { display: flex; gap: 8px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } }
.card { display: grid; gap: 14px; text-decoration: none; scroll-snap-align: start; min-width: 0; }
.card-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: radial-gradient(60% 55% at 50% 42%, rgba(255,255,255,.34), transparent 72%), radial-gradient(80% 70% at 50% 35%, color-mix(in srgb, var(--sw, #888) 50%, transparent), transparent 70%), linear-gradient(180deg, rgba(255,240,240,.10), rgba(255,240,240,.03)), var(--surface); border: 1px solid var(--border); max-width: 100%; transition: transform .35s var(--out); }
.card:hover .card-media { transform: translateY(-4px); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: opacity .45s var(--out), transform .7s var(--out); }
.card-media img.b { opacity: 0; transform: scale(.96); }
.card:hover .card-media img.b { opacity: 1; transform: none; }
.card:hover .card-media img.a { opacity: 0; transform: scale(1.04); }
.card .quick { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--solid); color: var(--text); display: grid; place-items: center; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s var(--out), background .2s; box-shadow: var(--shadow); }
.card:hover .quick, .card .quick:focus-visible { opacity: 1; transform: none; }
.card .quick:hover { background: var(--btn); color: #fff; }
.card .quick svg { width: 20px; }
@media (hover: none) { .card .quick { opacity: 1; transform: none; } }
.badge { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: var(--pill); background: var(--solid); font-size: 12px; font-weight: 600; }
.card-meta { display: grid; gap: 3px; padding-inline: 4px; }
.card-meta .c { font-size: 13px; color: var(--text-muted); }
.card-meta .n { font-weight: 600; font-size: 16px; line-height: 1.3; }
.card-meta .p { font-variant-numeric: tabular-nums; color: var(--text-muted); }
.dots { display: flex; gap: 5px; margin-top: 4px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--border); }

/* ---------- chapters (collections) ---------- */
.chapters { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.ch-sticky { position: sticky; top: 120px; display: grid; gap: 20px; }
.ch-sticky h3 { font-size: clamp(48px, 6vw, 88px); }
.ch-sticky .story { color: var(--text-muted); max-width: 40ch; min-height: 5.5em; }
.ch-index { display: flex; gap: 8px; flex-wrap: wrap; }
.ch-index button { border: 1px solid var(--border); background: transparent; padding: 10px 16px; border-radius: var(--pill); font-weight: 600; font-size: 14px; transition: background .25s, color .25s; }
.ch-index button[aria-current="true"] { background: var(--text); color: var(--bg); }
.ch-swap { transition: opacity .35s var(--out), transform .35s var(--out); }
.ch-swap.out { opacity: 0; transform: translateY(10px); }
.ch-list { display: grid; gap: 22px; }
.ch-card { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; text-decoration: none; display: block; background: radial-gradient(55% 55% at 50% 45%, rgba(255,255,255,.32), transparent 72%), radial-gradient(70% 70% at 50% 40%, color-mix(in srgb, var(--sw) 60%, transparent), transparent 75%), var(--surface); border: 1px solid var(--border); max-width: 100%; }
.ch-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform 1s var(--out); }
.ch-card:hover img { transform: scale(1.04) rotate(-1deg); }
.ch-card .lbl { position: absolute; left: 18px; bottom: 18px; background: var(--solid); padding: 10px 16px; border-radius: var(--pill); font-weight: 600; font-size: 15px; }
@media (max-width: 900px) { .chapters { grid-template-columns: 1fr; } .ch-sticky { position: static; } }

/* ---------- thread process ---------- */
.process { position: relative; }
.thread { position: absolute; left: 0; right: 0; top: 42px; height: 120px; width: 100%; pointer-events: none; }
.thread path { fill: none; stroke: var(--coral); stroke-width: 2.5; stroke-linecap: round; }
.thread .dash { stroke-dasharray: 9 9; opacity: .9; }
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.step { padding: 26px 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.step .knot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: #fff; font-family: var(--display); font-weight: 700; font-size: 18px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--btn) 25%, transparent); }
.step h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.step p { color: var(--text-muted); font-size: 15px; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } .thread { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Ani band ---------- */
.ani-band { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding: clamp(28px, 4vw, 56px); overflow: hidden; }
.ani-frame { position: relative; height: 560px; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; background: radial-gradient(80% 55% at 50% 22%, #FF7A7B, #B3071B 55%, #4A0008); max-width: 100%; }
.ani-frame img { position: absolute; left: 50%; top: 9%; height: 145%; width: auto; max-width: none; transform: translateX(-50%); }
.ani-frame .ring { position: absolute; inset: 16px; border-radius: inherit; border: 1px dashed rgba(255,255,255,.4); }
.ani-copy { display: grid; gap: 20px; }
.ani-copy h2 { font-size: clamp(40px, 5vw, 70px); }
.ani-copy .big { font-size: 22px; line-height: 1.45; max-width: 36ch; }
.ani-copy p { color: var(--text-muted); max-width: 52ch; }
@media (max-width: 900px) { .ani-band { grid-template-columns: 1fr; } .ani-frame { height: 440px; } }

/* ---------- blanks picker ---------- */
.picker { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; overflow: hidden; }
.pk-media { position: relative; min-height: 560px; background: radial-gradient(55% 55% at 50% 45%, rgba(255,255,255,.32), transparent 72%); }
.pk-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: opacity .4s var(--out), transform .6s var(--out); }
.pk-media img.out { opacity: 0; transform: scale(.97); }
.pk-body { padding: clamp(24px, 3.5vw, 48px); display: grid; gap: 20px; align-content: start; border-left: 1px solid var(--border); }
.pk-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-tabs button { border: 1px solid var(--border); background: transparent; padding: 8px 12px; border-radius: var(--pill); font-size: 13px; font-weight: 600; transition: background .2s, color .2s; }
.pk-tabs button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.pk-body h3 { font-size: clamp(30px, 3vw, 42px); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 0; font-size: 15px; }
.specs dt { color: var(--text-muted); }
.specs dd { margin: 0; font-weight: 500; }
.pill { display: inline-flex; padding: 7px 12px; border-radius: var(--pill); background: var(--tile); border: 1px solid var(--border); font-size: 13px; font-weight: 500; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.price-lg { font-family: var(--display); font-size: 34px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .picker { grid-template-columns: 1fr; } .pk-media { min-height: 380px; } .pk-body { border-left: 0; border-top: 1px solid var(--border); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border-radius: var(--r-md); padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 300; transition: transform .3s var(--out); color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--text-muted); max-width: 70ch; }

/* ---------- CTA band + footer ---------- */
.cta-band { text-align: center; padding: clamp(48px, 7vw, 96px) 24px; display: grid; gap: 22px; justify-items: center; background: radial-gradient(60% 90% at 50% 0%, rgba(255, 83, 83, .45), transparent 70%), var(--surface); }
.cta-band h2 { font-size: clamp(40px, 6vw, 84px); max-width: 14ch; }
.foot { position: relative; padding-block: 90px 34px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(8, 4, 5, .82) 18%); color: #F1E3E3; }
:root[data-theme="light"] .foot { background: linear-gradient(180deg, transparent, rgba(34, 10, 14, .94) 18%); }
.foot-mark { width: min(520px, 80%); margin-bottom: 56px; opacity: .95; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.foot h4 { font-family: var(--body); letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--coral); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.foot a { text-decoration: none; color: #E8D7D7; }
.foot a:hover { color: #fff; }
.foot-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 14px; color: #B9A6A6; align-items: center; }
.theme-switch { display: inline-flex; padding: 4px; border-radius: var(--pill); background: rgba(255,255,255,.08); gap: 2px; }
.theme-switch button { border: 0; background: transparent; color: #E8D7D7; padding: 8px 12px; border-radius: var(--pill); font-size: 13px; font-weight: 600; }
.theme-switch button[aria-pressed="true"] { background: #fff; color: #1A1214; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- page heads + generic ---------- */
.page-head { padding-block: 150px 40px; }
.page-head h1 { font-size: clamp(52px, 8vw, 116px); letter-spacing: -0.045em; line-height: .9; }
.page-head p { margin-top: 20px; max-width: 54ch; font-size: 19px; color: var(--text-muted); }
.crumbs { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--text); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--border); background: var(--surface); padding: 10px 16px; border-radius: var(--pill); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; backdrop-filter: blur(8px); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.select { min-height: 44px; padding: 0 38px 0 16px; border-radius: var(--pill); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 14px var(--body); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; padding-block: 130px 90px; align-items: start; }
.gal { display: grid; gap: 14px; min-width: 0; }
.gal-main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(55% 55% at 50% 45%, rgba(255,255,255,.34), transparent 72%), radial-gradient(70% 70% at 50% 40%, color-mix(in srgb, var(--sw, #888) 55%, transparent), transparent 75%), var(--surface); border: 1px solid var(--border); cursor: zoom-in; max-width: 100%; }
.gal-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .3s var(--out), opacity .3s; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.gal-main.zoom img { transform: scale(1.8); }
.thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: none; width: 84px; height: 84px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); padding: 6px; transition: border-color .2s; }
.thumbs button[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buy { position: sticky; top: 104px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; min-width: 0; }
.buy h1 { font-size: clamp(36px, 3.6vw, 52px); letter-spacing: -0.035em; }
.buy .price-lg { font-size: 30px; }
.opt-group { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.opt-group legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.opt-group legend span { color: var(--text-muted); font-weight: 500; }
.sw-row, .sz-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-opt input, .sz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sw-opt span { display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--c); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--border); cursor: pointer; transition: box-shadow .2s, transform .2s var(--out); }
.sw-opt input:checked + span { box-shadow: 0 0 0 2px var(--accent); transform: scale(1.06); }
.sw-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.sz-opt span { display: grid; place-items: center; min-width: 56px; height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; font-weight: 600; font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.sz-opt input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.sz-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--pill); }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; border-radius: 50%; }
.qty input { width: 44px; text-align: center; border: 0; background: none; color: var(--text); font: 600 16px var(--body); font-variant-numeric: tabular-nums; }
.buy-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.acc details { border-top: 1px solid var(--border); padding-block: 14px; }
.acc summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.acc summary::after { content: "+"; color: var(--accent); }
.acc details[open] summary::after { content: "–"; }
.acc details > *:not(summary) { margin-top: 10px; color: var(--text-muted); font-size: 15px; }
.err { color: var(--bad); font-size: 14px; font-weight: 500; }
@media (max-width: 960px) { .pdp { grid-template-columns: 1fr; padding-top: 110px; } .buy { position: static; } }

/* ---------- drawer (bag + menu) ---------- */
.scrim { position: fixed; inset: 0; z-index: 120; background: rgba(10, 4, 6, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s var(--out); }
.scrim.on { opacity: 1; }
.drawer { position: fixed; z-index: 130; top: 10px; bottom: 10px; right: 10px; width: min(440px, calc(100vw - 20px)); border-radius: var(--r-lg); background: var(--solid); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; grid-template-rows: auto 1fr auto; transform: translateX(calc(100% + 20px)); transition: transform .45s var(--out); padding-top: env(safe-area-inset-top, 0px); }
.drawer.on { transform: none; }
.dr-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.dr-head h2 { font-size: 26px; letter-spacing: -0.02em; }
.dr-body { overflow-y: auto; padding: 6px 22px; }
.dr-foot { padding: 20px 22px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.li { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--border); align-items: start; }
.li .im { width: 84px; height: 100px; border-radius: 14px; background: radial-gradient(70% 70% at 50% 40%, color-mix(in srgb, var(--sw, #888) 55%, transparent), transparent 75%), var(--surface); display: grid; place-items: center; }
.li .im img { width: 88%; height: 88%; object-fit: contain; }
.li .nm { font-weight: 600; line-height: 1.3; }
.li .vr { font-size: 14px; color: var(--text-muted); }
.li .rm { border: 0; background: none; color: var(--text-muted); font-size: 13px; text-decoration: underline; padding: 0; justify-self: start; }
.li .qty { margin-top: 6px; transform: scale(.85); transform-origin: 0 50%; }
.row { display: flex; justify-content: space-between; gap: 12px; }
.empty { text-align: center; padding: 50px 10px; display: grid; gap: 14px; justify-items: center; }
.empty svg { width: 54px; height: 54px; color: var(--accent); }
.menu { position: fixed; inset: 0; z-index: 130; background: linear-gradient(160deg, #7A000C, #3A0006); color: #fff; padding: calc(24px + env(safe-area-inset-top, 0px)) var(--g-r) 30px var(--g-l); display: flex; flex-direction: column; gap: 8px; clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .6s var(--out); visibility: hidden; }
.menu.on { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.menu a { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 9vw, 56px); letter-spacing: -0.03em; text-decoration: none; line-height: 1.12; }
.menu .close { align-self: flex-end; border-color: rgba(255,255,255,.3); color: #fff; }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 16px/1.4 var(--body); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.field .hint { font-size: 13px; color: var(--text-muted); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--bad); }
.field .msg { font-size: 13px; color: var(--bad); }
.hp { position: absolute; left: -5000px; }
.form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; padding-bottom: 90px; }
.form-card { padding: clamp(22px, 3vw, 40px); }
.aside { display: grid; gap: 18px; align-content: start; padding: clamp(22px, 3vw, 36px); }
.aside ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--text-muted); }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr; } }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 150; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--solid); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 15px; animation: tin .35s var(--out); }
.toast.ok::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--good); flex: none; }
.toast.bad::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); flex: none; }
.toast a { color: var(--accent); font-weight: 600; margin-left: auto; white-space: nowrap; }
@keyframes tin { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- page transition + cursor + top button ---------- */
.curtain { position: fixed; inset: 0; z-index: 140; pointer-events: none; background: linear-gradient(160deg, #B3071B, #5A0009); clip-path: inset(100% 0 0 0); }
.curtain.in { clip-path: inset(0 0 0 0); transition: clip-path .42s cubic-bezier(.7, 0, .3, 1); }
.curtain.out { clip-path: inset(0 0 100% 0); transition: clip-path .5s cubic-bezier(.7, 0, .3, 1); }
.curtain img { position: absolute; left: 50%; top: 50%; width: 220px; transform: translate(-50%, -50%); opacity: .9; }
.cursor { opacity: 0; position: fixed; left: 0; top: 0; z-index: 160; pointer-events: none; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; mix-blend-mode: difference; transition: width .3s var(--out), height .3s var(--out), margin .3s var(--out); display: grid; place-items: center; }
.cursor.big { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor span { font: 700 12px var(--body); color: #000; opacity: 0; transition: opacity .2s; }
.cursor.big span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
.totop { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--btn); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s var(--out); }
.totop.on { opacity: 1; transform: none; }
.totop svg { width: 22px; }
.prose { max-width: 72ch; display: grid; gap: 16px; padding: clamp(24px, 4vw, 48px); margin-bottom: 90px; }
.prose h2 { font-size: 30px; margin-top: 12px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--text-muted); }
.status { padding: 14px 16px; border-radius: 14px; font-size: 15px; }
.status.ok { background: color-mix(in srgb, var(--good) 16%, transparent); }
.status.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.contact-cards .panel { padding: 24px; display: grid; gap: 6px; overflow-wrap: anywhere; }
@media (max-width: 800px) { .contact-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .marquee-track, .float img, .stitch-svg path, .scroll-cue::after { animation: none; } .curtain { display: none; } }

.cursor.live { opacity: 1; }
@media (max-width: 920px) { .f1 { left: 0; } .f2 { right: 0; } .f3 { left: 0; } .f4 { right: 0; } }
@media (max-width: 560px) {
  .intent { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .intent button { flex: none; padding: 11px 14px; font-size: 14px; }
  #theme-btn { display: none; }
  .hero h1 { font-size: clamp(46px, 13vw, 64px); }
}
.li .im, .chip-card .th { background: radial-gradient(60% 60% at 50% 45%, rgba(255,255,255,.35), transparent 75%), var(--sw, #444); }
@media (max-width: 560px) {
  .stage { height: 470px; }
  .f3, .f4 { display: none; }
  .f1 { --w: 118px; top: 8%; } .f2 { --w: 118px; top: 30%; }
  .arch { width: 74%; }
  .float .tag { display: none; }
}
