/* Hollin: styles, written for this template.
   BRAND SETTINGS: change colours and fonts here. */
:root {
  /* BRAND SETTINGS */
  --t-ground: #efe7d6;          /* page background (oat) */
  --t-ink: #231f1c;             /* main text (charcoal) */
  --t-accent: #a63a2c;          /* buttons and highlights (madder) */
  --t-on-accent: #f8f0e0;       /* text on accent buttons */
  --t-deep: #1f3252;            /* deep band colour (indigo) */
  --t-night: #1b1612;           /* dark surfaces and the floor behind the loom */
  --t-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --t-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* end of BRAND SETTINGS */

  --oat-2: #e6dbc4;
  --oat-3: #f7f1e4;
  --line: rgba(35, 31, 28, 0.16);
  --muted: rgba(35, 31, 28, 0.68);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --gutter: clamp(16px, 4.5vw, 64px);
  --veil-left: 1;
  color-scheme: light;
}

@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-display-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-display-latin-wght-italic.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; background: var(--t-night); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; font-family: var(--t-body); font-size: 1rem; line-height: 1.6; color: var(--t-ink); background: var(--t-night); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--t-ground); color: var(--t-ink); border-radius: 8px; transition: top 0.3s var(--ease); }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display, .h2, .h3 { font-family: var(--t-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.01em; margin: 0; }
.display, .h2, .h3, .last .lede { text-wrap: balance; }
.display { font-size: clamp(2.75rem, 7.2vw, 6.4rem); letter-spacing: -0.025em; }
.display em, .h2 em { font-style: italic; font-weight: 500; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.08; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.18; font-weight: 600; }
.label { margin: 0 0 18px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.label::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.lede { font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.65; margin: 22px 0 0; max-width: 56ch; }
.fine { font-size: 0.82rem; color: var(--muted); margin: 20px 0 0; }
.note { background: var(--oat-3); padding: 14px 16px; border-radius: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; background: var(--t-accent); color: var(--t-on-accent); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; text-decoration: none; cursor: pointer; transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.4s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(35, 20, 12, 0.6); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.88rem; }
.btn-light { background: var(--t-ground); color: var(--t-ink); }
.btn-line { background: transparent; color: var(--t-ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--t-ink); box-shadow: none; }

/* ---------- the fixed loom layer ---------- */
.layer { position: fixed; inset: 0; z-index: 0; background: var(--t-night); overflow: hidden; }
.layer .poster, .layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.layer canvas { opacity: 0; transition: opacity 1.2s var(--ease); }
html.gl-ready .layer canvas { opacity: 1; }
html.gl-ready .layer .poster { opacity: 0; transition: opacity 1.2s var(--ease) 0.2s; }
html.gl-off .layer { visibility: hidden; }
.veil { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 14, 10, calc(0.86 * var(--veil-left))) 0%, rgba(20, 14, 10, calc(0.62 * var(--veil-left))) 38%, rgba(20, 14, 10, 0) 78%),
    linear-gradient(0deg, rgba(20, 14, 10, 0.5) 0%, rgba(20, 14, 10, 0) 38%),
    radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.4) 100%); }

main { position: relative; z-index: 1; }

/* ---------- navigation ---------- */
.nav { position: fixed; z-index: 60; top: 14px; left: 50%; transform: translateX(-50%); width: min(1120px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 24px; border-radius: 999px; background: rgba(27, 22, 18, 0.88); border: 1px solid rgba(255, 244, 224, 0.12); color: #f3ead8; -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
.brand { font-family: var(--t-display); font-style: italic; font-weight: 600; font-size: 1.55rem; line-height: 1; text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.nav-links a { font-size: 0.86rem; text-decoration: none; opacity: 0.8; position: relative; padding: 6px 0; transition: opacity 0.3s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 8px 0 18px; border-radius: 999px; border: 0; background: #f3ead8; color: var(--t-ink); font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: transform 0.4s var(--ease); }
.cart-btn:hover { transform: translateY(-1px); }
.cart-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--t-accent); color: var(--t-on-accent); font-size: 0.78rem; font-variant-numeric: tabular-nums; transition: transform 0.5s var(--ease); }
.cart-count.bump { transform: scale(1.35); }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; gap: 40px; padding: 120px var(--gutter) 30px; color: #f6eedd; }
.hero-inner { max-width: 760px; }
.hero .label { color: #f0d9b4; }
.hero .display { text-shadow: 0 2px 40px rgba(20, 10, 5, 0.45); }
.hero .display em { color: #f1c27a; }
.hero .lede { color: rgba(250, 242, 226, 0.92); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .btn:not(.btn-ghost) { background: #f3ead8; color: var(--t-ink); }
.hero .btn-ghost { color: #f6eedd; border-color: rgba(246, 238, 221, 0.6); }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(246, 238, 221, 0.22); font-size: 0.86rem; }
.hint { margin: 0; opacity: 0.8; }
.dye { display: flex; align-items: center; gap: 14px; }
.dye-label { opacity: 0.85; }
.dye-chips { display: flex; gap: 8px; }
.chip { min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(246, 238, 221, 0.4); background: rgba(20, 14, 10, 0.35); color: #f6eedd; font-size: 0.84rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease); }
.chip i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); }
.chip:hover { transform: translateY(-1px); border-color: #f6eedd; }
.chip[aria-pressed="true"] { background: #f3ead8; color: var(--t-ink); border-color: #f3ead8; }

/* ---------- collection ---------- */
.collection { position: relative; }
.collection-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
.sample { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: flex-end; padding: 0 var(--gutter) 48px; color: #f6eedd; pointer-events: none; }
.sample-name { margin: 0; font-family: var(--t-display); font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 600; line-height: 1.05; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5); }
.sample-name em { font-weight: 400; color: #f1c27a; }
.sample-meta { margin: 6px 0 0; font-size: 0.9rem; opacity: 0.85; }
.sample .label { color: #f0d9b4; margin-bottom: 10px; }
.shelf { background: var(--t-ground); padding: clamp(64px, 9vh, 110px) clamp(20px, 4vw, 56px) 72px; border-radius: 36px 0 0 0; box-shadow: -30px 0 60px -30px rgba(10, 5, 2, 0.6); min-height: 100vh; }
.shelf .label { color: var(--t-accent); }
.shelf-head { margin-bottom: 44px; }
.cards { display: grid; gap: 18px; }
.shelf-note { margin: 28px 0 0; font-size: 0.86rem; color: var(--muted); max-width: 52ch; }

.card { position: relative; display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 24px; padding: 18px; border-radius: 22px; background: var(--oat-3); border: 1px solid var(--line); transition: border-color 0.5s var(--ease), box-shadow 0.6s var(--ease), transform 0.6s var(--ease); }
.card.active { border-color: var(--t-accent); box-shadow: 0 24px 50px -28px rgba(80, 30, 20, 0.55); }
.card .tag { position: absolute; top: 14px; right: 16px; padding: 3px 10px; border-radius: 999px; background: var(--t-accent); color: var(--t-on-accent); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0; transform: translateY(-4px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.card.active .tag { opacity: 1; transform: none; }
html.still .card .tag, html.gl-off .card .tag { display: none; }
.thumb { align-self: start; aspect-ratio: 5 / 4; border-radius: 14px; background: #2b231d; display: grid; place-items: center; padding: 14px; overflow: hidden; }
.thumb canvas { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 3px; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.7); transition: transform 0.8s var(--ease); }
.card:hover .thumb canvas { transform: scale(1.04) rotate(-0.6deg); }
.card-info { display: flex; flex-direction: column; min-width: 0; }
.card-kind { margin: 0; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card-name { margin: 4px 0 0; }
.card-blurb { margin: 8px 0 0; font-size: 0.93rem; color: var(--muted); }
.card-size { margin: 10px 0 0; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.swatch { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); transition: transform 0.4s var(--ease); }
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"] { outline: 2px solid var(--t-ink); outline-offset: 3px; }
.swatch-name { font-size: 0.86rem; margin-left: 4px; }
.card-foot { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.price { font-family: var(--t-display); font-size: 1.7rem; font-weight: 600; margin-right: auto; font-variant-numeric: lining-nums; }
.card-foot .btn { min-height: 44px; padding: 0 20px; }

/* ---------- story (pinned) ---------- */
.story { position: relative; }
.story-stage { height: 100vh; height: 100svh; display: flex; align-items: center; padding: 0 var(--gutter); }
.story-card { width: min(470px, 100%); padding: 34px 34px 28px; border-radius: 24px; color: #f3ead8; background: rgba(27, 22, 18, 0.82); border: 1px solid rgba(255, 244, 224, 0.12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.story-card .label { color: #f0d9b4; }
.beats { list-style: none; margin: 0; padding: 0; display: grid; }
.beat { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), visibility 0s linear 0.7s; }
.beat.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0.12s, 0.12s, 0s; }
.beat-no { margin: 0 0 12px; color: #f1c27a; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.beat .h3 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); line-height: 1.1; }
.beat p:not(.beat-no) { margin: 16px 0 0; color: rgba(243, 234, 216, 0.88); }
.meter { margin-top: 28px; }
.meter-bar { height: 3px; background: rgba(243, 234, 216, 0.2); border-radius: 3px; overflow: hidden; }
.meter-bar span { display: block; height: 100%; width: 0; background: #e08a4a; }
.meter-row { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 0; font-size: 0.76rem; letter-spacing: 0.04em; color: rgba(243, 234, 216, 0.72); font-variant-numeric: tabular-nums; }

/* ---------- sections below the loom ---------- */
.care, .reviews, .shipping, .faq, .last { position: relative; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.care { background: var(--t-ground); padding: clamp(80px, 11vw, 150px) 0; }
.care .label, .shipping .label, .faq .label { color: var(--t-accent); }
.materials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.material p { color: var(--muted); margin: 12px 0 0; }
.material .h3 { margin-top: 20px; }
.swatch-canvas { width: 100%; aspect-ratio: 3 / 2; border-radius: 14px; box-shadow: 0 20px 36px -22px rgba(40, 20, 10, 0.6); background: var(--oat-2); }
.care-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: 72px; padding-top: 52px; border-top: 1px solid var(--line); }
.specs { margin: 0; }
.specs div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.specs dd { margin: 0; }
.care-list { list-style: none; counter-reset: care; margin: 0; padding: 0; }
.care-list li { counter-increment: care; position: relative; padding: 15px 0 15px 56px; border-bottom: 1px solid var(--line); }
.care-list li::before { content: counter(care, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--t-display); font-style: italic; font-size: 1.35rem; color: var(--t-accent); }

.reviews { background: var(--t-deep); color: #f1e9d6; padding: clamp(80px, 11vw, 150px) 0; overflow: hidden; }
.reviews .label { color: #f1c27a; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; padding: 34px 30px 28px; border-radius: 22px; background: rgba(255, 244, 224, 0.06); border: 1px solid rgba(255, 244, 224, 0.14); display: flex; flex-direction: column; justify-content: space-between; gap: 34px; transition: transform 0.7s var(--ease), background 0.5s; }
.review:hover { transform: translateY(-6px); background: rgba(255, 244, 224, 0.1); }
.review blockquote { margin: 0; font-family: var(--t-display); font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.45; font-style: italic; position: relative; }
.review blockquote::before { content: '“'; display: block; font-size: 4rem; line-height: 0.7; color: #e08a4a; font-style: normal; margin-bottom: 8px; }
.review figcaption { display: flex; flex-direction: column; font-size: 0.86rem; color: rgba(241, 233, 214, 0.74); }
.review figcaption strong { color: #f7efdd; font-size: 0.95rem; }
.reviews .fine { color: rgba(241, 233, 214, 0.6); }

.shipping { background: var(--oat-2); padding: clamp(80px, 11vw, 150px) 0; }
.shipping-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.shipping .sec-head { margin-bottom: 0; }
.rates { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.rates th, .rates td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.rates thead th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
.rates tbody th { font-weight: 600; }
.returns { margin-top: 44px; }
.returns ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
.returns li { margin-bottom: 8px; padding-left: 4px; }
.returns li::marker { color: var(--t-accent); }

.faq { background: var(--t-ground); padding: clamp(80px, 11vw, 150px) 0; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .sec-head { margin-bottom: 0; position: sticky; top: 110px; }
.faq .lede a { color: var(--t-accent); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--t-display); font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 600; line-height: 1.25; transition: color 0.3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--t-body); font-weight: 300; font-size: 1.4rem; line-height: 1; transition: transform 0.5s var(--ease), background 0.3s, color 0.3s, border-color 0.3s; }
.qa summary:hover { color: var(--t-accent); }
.qa[open] summary::after { transform: rotate(135deg); background: var(--t-accent); color: var(--t-on-accent); border-color: var(--t-accent); }
.qa p { margin: 0 0 26px; max-width: 62ch; color: var(--muted); animation: open 0.7s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.last { background: var(--t-accent); color: var(--t-on-accent); text-align: center; padding: 0 0 clamp(80px, 11vw, 140px); overflow: hidden; }
.band { width: 100%; height: clamp(70px, 10vw, 130px); object-fit: cover; margin-bottom: clamp(60px, 9vw, 120px); box-shadow: 0 12px 30px -14px rgba(20, 8, 4, 0.7); }
.last-inner { display: flex; flex-direction: column; align-items: center; }
.last .display { max-width: 14ch; font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.last .display em { color: #f6cf91; }
.last .lede { text-align: center; margin: 22px auto 34px; }

.foot { background: var(--t-night); color: rgba(243, 234, 216, 0.82); padding: 64px 0 28px; font-size: 0.92rem; position: relative; z-index: 1; }
.foot-inner { display: grid; grid-template-columns: 1.2fr 1.2fr 1.2fr 1fr; gap: 32px; }
.foot-inner p { margin: 0; }
.foot-brand { font-family: var(--t-display); font-style: italic; font-size: 2.2rem; line-height: 1; color: #f3ead8; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot nav { display: flex; flex-direction: column; gap: 6px; }
.foot-fine { width: min(1180px, 100% - 2 * var(--gutter)); margin: 48px auto 0; padding-top: 22px; border-top: 1px solid rgba(243, 234, 216, 0.16); font-size: 0.8rem; opacity: 0.65; }

/* ---------- basket drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(20, 12, 8, 0.55); opacity: 0; transition: opacity 0.5s var(--ease); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.scrim.show { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--t-ground); color: var(--t-ink); transform: translateX(104%); transition: transform 0.7s var(--ease), box-shadow 0.7s; }
.drawer.open { transform: none; box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.6); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background 0.3s; }
.icon-btn:hover { background: var(--oat-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.empty { padding: 36px 0; color: var(--muted); }
.line { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line .thumb { aspect-ratio: 1; padding: 6px; border-radius: 10px; }
.line h3 { margin: 0; font-family: var(--t-display); font-size: 1.2rem; line-height: 1.2; }
.line-meta { margin: 2px 0 0; font-size: 0.84rem; color: var(--muted); }
.line-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; border-radius: 50%; }
.qty button:hover { background: var(--oat-2); }
.qty span { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.line-price { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.line-links { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.line-links .btn { min-height: 38px; padding: 0 16px; font-size: 0.85rem; }
.remove { background: none; border: 0; padding: 4px; font-size: 0.82rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.drawer-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); background: var(--oat-3); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 1rem; }
.total strong { font-family: var(--t-display); font-size: 1.8rem; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translate(-50%, 30px); padding: 12px 20px; border-radius: 999px; background: var(--t-night); color: #f3ead8; font-size: 0.9rem; opacity: 0; pointer-events: none; transition: opacity 0.4s, transform 0.6s var(--ease); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- still version: reduced motion, no WebGL ---------- */
html.still .layer { position: absolute; inset: 0 0 auto 0; height: 100vh; height: 100svh; }
html.still .layer canvas { display: none; }
html.still .sample { display: none; }
html.still .collection-grid { display: block; }
html.still .shelf { border-radius: 0; box-shadow: none; min-height: 0; }
html.still .shelf-head, html.still .cards, html.still .shelf-note { max-width: 1100px; margin-left: auto; margin-right: auto; }
html.still .cards { grid-template-columns: repeat(2, 1fr); }
html.still .story { background: var(--t-night); padding: clamp(70px, 9vw, 120px) var(--gutter); }
html.still .story-stage { height: auto; display: block; }
html.still .story-card { width: min(1100px, 100%); margin: 0 auto; background: none; border: 0; box-shadow: none; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
html.still .beats { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
html.still .beat { grid-area: auto; opacity: 1; visibility: visible; transform: none; padding: 30px; border-radius: 20px; background: rgba(255, 244, 224, 0.06); border: 1px solid rgba(255, 244, 224, 0.12); }
html.still .meter { display: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 1020px) {
  .nav-links a:nth-child(n+4) { display: none; }
  .materials { grid-template-columns: 1fr; max-width: 560px; }
  .care-split, .shipping-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq .sec-head { position: static; margin-bottom: 36px; }
  .shipping .sec-head { margin-bottom: 44px; }
  .review-grid { grid-template-columns: 1fr; max-width: 640px; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .veil { background: linear-gradient(0deg, rgba(20, 14, 10, calc(0.9 * var(--veil-left))) 0%, rgba(20, 14, 10, calc(0.72 * var(--veil-left))) 45%, rgba(20, 14, 10, 0.12) 80%), radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.4) 100%); }
  .nav-links { display: none; }
  .nav { padding-left: 20px; }
  .hero { padding-top: 110px; gap: 28px; }
  .hero-foot .hint { display: none; }
  .collection-grid { display: block; }
  .sample { height: 46vh; height: 46svh; min-height: 280px; position: relative; padding-bottom: 20px; }
  .shelf { border-radius: 28px 28px 0 0; box-shadow: 0 -30px 60px -30px rgba(10, 5, 2, 0.6); padding: 56px 18px 56px; min-height: 0; }
  .card { grid-template-columns: 1fr; gap: 18px; }
  .thumb { aspect-ratio: 16 / 10; }
  .story-stage { align-items: flex-end; padding-bottom: 14px; }
  .story-card { width: 100%; padding: 22px 20px 18px; border-radius: 20px; }
  .beat .h3 { font-size: 1.4rem; }
  .beat p:not(.beat-no) { margin-top: 10px; font-size: 0.93rem; line-height: 1.5; }
  .meter { margin-top: 16px; }
  .story-card .label { margin-bottom: 10px; }
  html.still .cards, html.still .beats { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .display { font-size: clamp(2.5rem, 12.4vw, 3.6rem); }
  .actions .btn { flex: 1 1 auto; }
  .dye { flex-wrap: wrap; gap: 8px; }
  .card-foot .price { flex-basis: 100%; }
  .card-foot .btn { flex: 1 1 auto; }
  .foot-inner { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 96px 1fr; }
  .rates { font-size: 0.88rem; }
  .rates td:last-child { min-width: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

html.still .dye, html.still .hint { display: none; }
html.still .hero-foot { display: none; }
