/* KmicWear · 06 Golden Hour — one day in Accra, told by the sky. */

:root {
  --display: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --ui: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --dawn-1: #7e7bc9; --dawn-2: #c7a6e0; --dawn-3: #f6a6b2; --dawn-4: #ffb38a;
  --day-1: #1e9bd7; --day-2: #4cc9f0; --day-3: #bff1ff; --day-4: #fff4d6;
  --gold-1: #5b1a4a; --gold-2: #d7263d; --gold-3: #f25c54; --gold-4: #ff9f1c; --gold-5: #ffc15e;
  --night-1: #0d1b2a; --night-2: #1b1f4b; --night-3: #3a2466;

  --ink-dark: #1f1236;
  --ink-light: #fff7ea;
  --amber: #ff9f1c;
  --magenta: #d7263d;
  --sun-grad: linear-gradient(120deg, #ffc15e 0%, #ff9f1c 40%, #d7263d 100%);

  --gutter: clamp(16px, 5vw, 80px);
  --radius-lg: 28px;
  --radius-md: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-film: cubic-bezier(0.77, 0, 0.18, 1);
  --dur: 0.5s;
  --header-h: 68px;
}

html[data-ink='dark'] { --ink: var(--ink-dark); --ink-soft: rgba(31, 18, 54, 0.72); --glass: rgba(255, 255, 255, 0.3); --line: rgba(31, 18, 54, 0.2); }
html[data-ink='light'] { --ink: var(--ink-light); --ink-soft: rgba(255, 247, 234, 0.75); --glass: rgba(14, 10, 34, 0.38); --line: rgba(255, 247, 234, 0.22); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--night-1);
  color: var(--ink-dark);
  font: 400 1rem/1.6 var(--ui);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
ul[role='list'] { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink-dark); color: #fff; border-radius: 999px; }
.skip-link:focus { top: 12px; }

/* ---------- the sky ---------- */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sky__layer { position: absolute; inset: 0; will-change: opacity; }
.sky__layer--dawn { background: linear-gradient(to top, var(--dawn-4) 0%, var(--dawn-3) 32%, var(--dawn-2) 64%, var(--dawn-1) 100%); }
.sky__layer--day { background: linear-gradient(to top, var(--day-4) 0%, var(--day-3) 34%, var(--day-2) 72%, var(--day-1) 100%); opacity: 0; }
.sky__layer--golden { background: linear-gradient(to top, var(--gold-5) 0%, var(--gold-4) 22%, var(--gold-3) 48%, var(--gold-2) 70%, var(--gold-1) 100%); opacity: 0; }
.sky__layer--night { background: radial-gradient(120% 60% at 50% 100%, var(--night-3) 0%, var(--night-2) 45%, var(--night-1) 100%); opacity: 0; }
.sky__layer--storm { background: linear-gradient(to top, #4a5568 0%, #2b3445 45%, #121826 100%); opacity: 0; }
.sky__stars { position: absolute; left: 0; top: 0; width: 100%; height: 80%; opacity: 0; }
.sky__sun, .sky__moon { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.sky__sun { width: clamp(90px, 16vmin, 190px); aspect-ratio: 1; }
.sky__sun::before {
  content: ''; position: absolute; inset: -140%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 120, 0.55) 0%, rgba(255, 159, 28, 0.18) 30%, transparent 62%);
}
.sky__sun-core, .sky__sun-white { position: absolute; inset: 0; border-radius: 50%; }
.sky__sun-core { background: radial-gradient(circle at 45% 40%, #fff3c4 0%, #ffcf6b 45%, #ff8a3d 100%); box-shadow: 0 0 60px 18px rgba(255, 159, 28, 0.45); }
.sky__sun-white { background: radial-gradient(circle, #fffef6 0%, #fff6d8 60%, #ffe9a8 100%); box-shadow: 0 0 90px 30px rgba(255, 252, 230, 0.7); opacity: 0; }
.sky__moon { width: clamp(52px, 9vmin, 110px); aspect-ratio: 1; border-radius: 50%; box-shadow: inset -1.6vmin 1.1vmin 0 0 #f6efd9; filter: drop-shadow(0 0 22px rgba(246, 239, 217, 0.45)); opacity: 0; }
.skyline {
  position: absolute; left: 0; bottom: -1px; width: calc(100% + 240px);
  height: clamp(130px, 30vh, 330px); will-change: transform, filter;
}
.skyline--far { fill: #8a76a8; opacity: 0.55; height: clamp(110px, 26vh, 290px); }
.skyline--mid { fill: #4a3466; }
.skyline--near { fill: #24173a; height: clamp(120px, 32vh, 360px); }
.skyline__beam { opacity: 0; }
.skyline__beam path { transform-box: view-box; transform-origin: 1130px 104px; animation: sweep 7s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: scaleX(1); } to { transform: scaleX(-1); } }

.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(130% 90% at 50% 45%, transparent 55%, rgba(10, 4, 24, 0.35) 100%); }

/* ---------- header + clock ---------- */
.masthead {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter); color: var(--ink);
  background: linear-gradient(to bottom, var(--glass), transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font: 700 1.55rem/1 var(--display); text-decoration: none; letter-spacing: -0.01em; }
.brand em { font-weight: 400; font-style: italic; color: var(--amber); }
.masthead__nav { display: flex; gap: clamp(16px, 3vw, 40px); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; }
.masthead__nav a { text-decoration: none; position: relative; padding: 6px 0; }
.masthead__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease-out); }
.masthead__nav a:hover::after, .masthead__nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.masthead__tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; padding: 6px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; }
.lang button[aria-pressed='true'] { background: var(--ink); color: var(--night-1); }
html[data-ink='dark'] .lang button[aria-pressed='true'] { color: #fff; }
.bag-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--glass); border-radius: 999px; padding: 8px 14px 8px 12px; font-weight: 500; transition: transform 0.25s var(--ease-out); }
.bag-btn:hover { transform: translateY(-1px); }
.bag-btn__count { min-width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--sun-grad); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 0 6px; }
.bag-btn__count.bump { animation: bump 0.5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.35); } }

.clock {
  position: fixed; left: 18px; bottom: 18px; z-index: 40; color: var(--ink);
  display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: baseline;
  padding: 12px 18px 12px 16px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.clock__label { grid-column: 1 / -1; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.75; }
.clock__time { font: italic 600 1.9rem/1.1 var(--display); font-variant-numeric: tabular-nums lining-nums; }
.clock__phase { font-size: 0.78rem; letter-spacing: 0.08em; opacity: 0.85; }
.clock__track { grid-column: 1 / -1; position: relative; width: 96px; height: 2px; margin-top: 8px; background: var(--line); border-radius: 2px; }
.clock__dot { position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); transition: transform 0.3s linear; }

/* ---------- shared bits ---------- */
main, .credits { position: relative; z-index: 2; }
.slug { margin: 0 0 18px; font: 500 0.72rem/1.4 var(--ui); letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.85; }
.slug span { font-weight: 700; }
.kicker { margin: 0 0 10px; font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 700; }
.glass {
  background: rgba(255, 255, 255, 0.24); border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 30px 80px -30px rgba(60, 20, 70, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 700 0.92rem/1.2 var(--ui); letter-spacing: 0.02em; text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), opacity 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--ink { background: var(--ink-dark); color: #fff; box-shadow: 0 14px 30px -14px rgba(31, 18, 54, 0.7); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--sun { background: var(--sun-grad); color: #fff; box-shadow: 0 16px 36px -14px rgba(215, 38, 61, 0.75); }
.btn--sun:hover { box-shadow: 0 20px 44px -12px rgba(255, 159, 28, 0.85); }
.btn--wide { width: 100%; }
.btn__time { font-weight: 400; opacity: 0.8; }
.link-btn { background: none; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; font-size: 0.85rem; opacity: 0.85; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: inherit; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- hero (chapter 1) ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 6vh) var(--gutter) 14vh; color: var(--ink-dark); }
.hero__welcome { margin: 0; font: italic 400 clamp(1.2rem, 2.4vw, 2rem)/1 var(--display); color: #6a2c5a; }
.hero__title {
  margin: 0.08em 0 0.12em -0.04em; font: 900 clamp(3.4rem, 16.5vw, 17rem)/0.82 var(--display);
  letter-spacing: -0.035em; color: var(--ink-dark);
}
.hero__title span { font-style: italic; font-weight: 400; color: #8b2f5a; }
.hero__line { max-width: 22ch; margin: 0 0 32px; font: italic 400 clamp(1.3rem, 2.8vw, 2.4rem)/1.2 var(--display); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cue { display: flex; align-items: center; gap: 14px; margin: 9vh 0 0; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; }
.hero__cue-line { width: 1px; height: 56px; background: currentColor; transform-origin: top; animation: cue 2.4s var(--ease-film) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- chapters ---------- */
.chapter { position: relative; padding: 18vh 0 24vh; color: var(--c-ink, var(--ink-dark)); --accent: #8b2f5a; }
.chapter--hero { padding-top: 0; }
.chapter--light { --c-ink: var(--ink-light); --accent: #ffc15e; }
.chapter#ch-makola { --accent: #c2410c; }
.chapter#ch-midday { --accent: #0e6aa8; }
.chapter#ch-night { --accent: #b9a6ff; }
.chapter--light .chapter__sub, .chapter--light .slug { text-shadow: 0 2px 18px rgba(20, 6, 30, 0.55); }
.chapter__inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 110px);
  max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter);
}
.chapter--right .chapter__head { order: 2; }
.chapter__head { position: sticky; top: 20vh; align-self: start; }
.chapter__time {
  margin: 0 0 -0.12em -0.04em; font: italic 400 clamp(4.2rem, 12vw, 11.5rem)/0.9 var(--display);
  font-variant-numeric: lining-nums tabular-nums; color: transparent; -webkit-text-stroke: 1.2px var(--c-ink, var(--ink-dark)); opacity: 0.6; text-shadow: none;
}
.chapter__title { margin: 0 0 18px; font: 700 clamp(2.3rem, 5.4vw, 5.4rem)/0.98 var(--display); letter-spacing: -0.02em; }
.chapter__title em { font-weight: 400; color: var(--accent); }
.chapter__sub { max-width: 34ch; margin: 0; font-size: clamp(1rem, 1.3vw, 1.18rem); opacity: 0.9; }

.reel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); align-items: start; }
.still:nth-child(even) { margin-top: 16vh; }
.still__btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.still__frame {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 3px;
  box-shadow: 0 40px 80px -36px rgba(20, 6, 30, 0.7);
}
.still__frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 6, 30, 0.35)), linear-gradient(115deg, rgba(255, 190, 120, 0.25), transparent 45%);
  mix-blend-mode: soft-light;
}
.still__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter 1.2s var(--ease-out); }
.still__btn:hover img, .still__btn:focus-visible img { transform: scale(1.06); filter: saturate(1.15); }
.still__meta { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding-top: 14px; }
.still__name { font: italic 600 clamp(1.1rem, 1.6vw, 1.45rem)/1.15 var(--display); }
.still__twi { grid-row: 2; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; }
.still__price { grid-row: 1 / 3; grid-column: 2; align-self: center; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }

.chapter--rain { overflow: hidden; }
.rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.lightning { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(80% 60% at 70% 10%, rgba(220, 235, 255, 0.65), transparent 70%); opacity: 0; animation: flash 9s infinite; }
@keyframes flash { 0%, 91%, 100% { opacity: 0; } 92% { opacity: 0.9; } 93% { opacity: 0.1; } 94.5% { opacity: 0.6; } 96% { opacity: 0; } }

/* ---------- today in Accra ---------- */
.today { position: relative; max-width: 1240px; margin: 0 auto; padding: 8vh var(--gutter) 6vh; color: var(--ink-dark); }
.today__head { margin-bottom: 26px; }
.today__title { margin: 0; font: 700 clamp(2.4rem, 5.8vw, 5rem)/1 var(--display); letter-spacing: -0.02em; }
.wx { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; }
.wx__loading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; padding: 60px 24px; font-style: italic; }
.wx__spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(31, 18, 54, 0.2); border-top-color: var(--amber); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wx__now { padding: clamp(22px, 4vw, 44px); border-right: 1px solid rgba(255, 255, 255, 0.5); display: flex; flex-direction: column; gap: 14px; }
.wx__badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.wx__badge--live { background: rgba(31, 18, 54, 0.88); color: #fff; }
.wx__badge--live i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; animation: pulse 1.6s ease-in-out infinite; }
.wx__badge--typical { background: rgba(255, 255, 255, 0.6); color: #7a2a12; border: 1px dashed #c2410c; }
@keyframes pulse { 50% { opacity: 0.25; } }
.wx__temp { display: flex; align-items: center; gap: 14px; }
.wx__icon { width: clamp(56px, 7vw, 84px); height: auto; color: var(--amber); filter: drop-shadow(0 6px 18px rgba(255, 159, 28, 0.55)); }
.wx__deg { font: 700 clamp(4.2rem, 9vw, 7.4rem)/0.9 var(--display); letter-spacing: -0.04em; font-variant-numeric: lining-nums; }
.wx__deg sup { font-size: 0.32em; font-weight: 400; vertical-align: top; margin-left: 4px; letter-spacing: 0; }
.wx__cond { margin: 0; font: italic 400 1.35rem/1.2 var(--display); }
.wx__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 22px; margin: 4px 0 0; }
.wx__facts dt { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.75; }
.wx__facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.wx__jump { margin-top: auto; align-self: flex-start; font-weight: 400; padding: 11px 18px; font-size: 0.85rem; }
.wx-look { padding: clamp(22px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; background: linear-gradient(140deg, rgba(255, 193, 94, 0.22), rgba(215, 38, 61, 0.12)); }
.wx-look__kicker { margin: 0; font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; }
.wx-look__reason { margin: 0; font: italic 400 clamp(1.25rem, 2.2vw, 1.8rem)/1.25 var(--display); }
.wx-look__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wx-look__item { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.wx-look__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; transition: transform 0.6s var(--ease-out); }
.wx-look__item:hover img { transform: translateY(-4px) rotate(-1deg); }
.wx-look__name { font: italic 600 0.98rem/1.2 var(--display); }
.wx-look__price { font-size: 0.8rem; font-weight: 700; opacity: 0.8; }
.wx-look .btn { align-self: flex-start; }

/* ---------- the full wardrobe ---------- */
.wardrobe { max-width: 1480px; margin: 0 auto; padding: 18vh var(--gutter) 14vh; color: var(--ink-light); }
.wardrobe__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 24px; margin-bottom: 30px; }
.wardrobe__head .kicker { grid-column: 1 / -1; color: #ffc15e; }
.wardrobe__title { margin: 0; font: 700 clamp(2.6rem, 7vw, 6.4rem)/0.95 var(--display); letter-spacing: -0.03em; }
.wardrobe__count { margin: 0; font: italic 400 1.1rem var(--display); opacity: 0.8; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { border: 1px solid rgba(255, 247, 234, 0.3); background: rgba(13, 10, 30, 0.35); color: var(--ink-light); padding: 10px 18px; border-radius: 999px; font-size: 0.85rem; letter-spacing: 0.04em; transition: background 0.3s, border-color 0.3s; }
.filters button:hover { border-color: #ffc15e; }
.filters button[aria-pressed='true'] { background: var(--sun-grad); border-color: transparent; color: #fff; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(14px, 2vw, 26px); grid-auto-flow: dense; }
.card { position: relative; }
.card__btn {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 10px; text-align: left; color: var(--ink-light);
  border: 1px solid rgba(255, 247, 234, 0.14); border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(160deg, rgba(40, 26, 80, 0.55), rgba(10, 12, 32, 0.6));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.5s var(--ease-out), border-color 0.4s;
}
.card__btn:hover { transform: translateY(-6px); border-color: rgba(255, 193, 94, 0.55); }
.card__media { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 5; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.card__btn:hover .card__media img { transform: scale(1.05); }
.card__glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen; transition: opacity 0.45s;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(255, 244, 214, 0.75) 0%, rgba(255, 193, 94, 0.35) 10%, rgba(255, 159, 28, 0.12) 26%, transparent 50%),
    radial-gradient(circle at calc(100% - var(--mx, 50%)) calc(100% - var(--my, 20%)), rgba(215, 38, 61, 0.25) 0%, transparent 12%);
}
.card__btn:hover .card__glare, .card__btn:focus-visible .card__glare { opacity: 1; }
.card__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 6px 4px; }
.card__name { font: italic 600 1.15rem/1.2 var(--display); }
.card__twi { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 8px; }
.card__price { font-weight: 700; }
.card__tags { font-size: 0.7rem; opacity: 0.6; text-align: right; }

/* ---------- credits ---------- */
.credits { padding: 16vh var(--gutter) 22vh; text-align: center; color: var(--ink-light); }
.credits__roll { max-width: 760px; margin: 0 auto; }
.credits .kicker { color: #ffc15e; }
.credits__title { margin: 0 0 48px; font: italic 400 clamp(1.8rem, 4.4vw, 3.4rem)/1.15 var(--display); }
.credits__list { display: grid; gap: 22px; margin: 0 0 40px; }
.credits__list dt { font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.7; }
.credits__list dd { margin: 4px 0 0; font: 400 1.2rem/1.4 var(--display); }
.credits__tag { margin: 0 0 40px; opacity: 0.75; }
.credits__back { display: inline-block; padding: 12px 22px; border: 1px solid rgba(255, 247, 234, 0.35); border-radius: 999px; text-decoration: none; font-weight: 700; transition: background 0.3s; }
.credits__back:hover { background: rgba(255, 247, 234, 0.12); }

/* ---------- product sheet (film title card) ---------- */
dialog { color: inherit; }
.sheet, .bag { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.sheet::backdrop, .bag::backdrop { background: rgba(8, 4, 20, 0.55); backdrop-filter: blur(4px); }
.sheet__bar { position: absolute; left: 0; right: 0; height: 7vh; background: #050308; transform: scaleY(0); transition: transform 0.55s var(--ease-film); z-index: 2; }
.sheet__bar--top { top: 0; transform-origin: top; }
.sheet__bar--bottom { bottom: 0; transform-origin: bottom; }
.sheet__panel {
  position: absolute; left: 50%; bottom: 7vh; z-index: 1; width: min(1180px, 100% - 2 * var(--gutter)); max-height: 86vh;
  display: flex; color: var(--ink-light); border-radius: 22px 22px 0 0; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 159, 28, 0.28), transparent 55%), linear-gradient(170deg, #26123f 0%, #0f0a1e 70%);
  box-shadow: 0 -30px 90px -20px rgba(255, 140, 60, 0.35);
  transform: translate(-50%, 110%); opacity: 0;
  transition: transform 0.75s var(--ease-film) 0.15s, opacity 0.4s 0.15s;
}
.sheet.is-open .sheet__bar { transform: scaleY(1); }
.sheet.is-open .sheet__panel { transform: translate(-50%, 0); opacity: 1; }
.sheet.is-closing .sheet__panel { transition-delay: 0s; }
.sheet.is-closing .sheet__bar { transition-delay: 0.2s; }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.sheet__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; overflow: auto; overscroll-behavior: contain; }
.sheet__media { margin: 0; min-height: 100%; background: #000; }
.sheet__media img { width: 100%; height: 100%; max-height: 86vh; object-fit: cover; }
.sheet__info { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; }
.sheet__title { margin: 0; font: 700 clamp(2rem, 4vw, 3.6rem)/1 var(--display); letter-spacing: -0.02em; padding-right: 40px; }
.sheet__twi { margin: 8px 0 0; font: italic 400 1.3rem var(--display); color: #ffc15e; }
.sheet__story { margin: 18px 0; max-width: 42ch; opacity: 0.85; }
.sheet__price { margin: 0 0 22px; font: 600 1.6rem var(--display); }
.sheet__form { display: flex; flex-direction: column; gap: 18px; margin-top: auto; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 8px; padding: 0; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.75; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; min-width: 46px; padding: 9px 14px; text-align: center; border: 1px solid rgba(255, 247, 234, 0.3); border-radius: 999px; font-size: 0.86rem; transition: background 0.25s, border-color 0.25s; }
.chip input:hover + span { border-color: #ffc15e; }
.chip input:checked + span { background: var(--ink-light); color: #1f1236; border-color: var(--ink-light); font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }
.sheet__buy { display: flex; gap: 12px; align-items: center; }
.sheet__buy .btn { flex: 1; }
.stepper { display: inline-flex; align-items: center; border: 1px solid rgba(255, 247, 234, 0.3); border-radius: 999px; }
.stepper__btn { width: 44px; height: 44px; border: 0; background: none; font-size: 1.2rem; border-radius: 50%; }
.stepper__btn:hover { background: rgba(255, 247, 234, 0.1); }
.stepper__val { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper--sm .stepper__btn { width: 34px; height: 34px; font-size: 1rem; }

/* ---------- bag drawer ---------- */
.bag__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: flex; flex-direction: column; gap: 18px;
  padding: 22px clamp(18px, 3vw, 30px) 28px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; color: var(--ink-light);
  background: radial-gradient(90% 50% at 100% 100%, rgba(255, 159, 28, 0.25), transparent 70%), linear-gradient(180deg, #1c1036 0%, #2c1236 60%, #3a1630 100%);
  border-left: 1px solid rgba(255, 247, 234, 0.12);
  transform: translateX(100%); transition: transform 0.6s var(--ease-film);
}
.bag.is-open .bag__panel { transform: translateX(0); }
.bag__head { display: flex; justify-content: space-between; align-items: center; }
.bag__head h2 { margin: 0; font: italic 600 2rem var(--display); }
.bag__view { display: flex; flex-direction: column; gap: 16px; }
.bag__view[hidden], .bag__footer[hidden], .bag__empty[hidden] { display: none; }
.bag__empty { margin: 30px 0; font: italic 400 1.3rem/1.4 var(--display); opacity: 0.85; }
.bag__lines { display: flex; flex-direction: column; gap: 14px; }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 247, 234, 0.12); }
.line img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; }
.line__name { margin: 0; font: italic 600 1.05rem/1.2 var(--display); }
.line__meta { margin: 2px 0 8px; font-size: 0.78rem; opacity: 0.7; }
.line__end { text-align: right; }
.line__price { margin: 0 0 6px; font-weight: 700; white-space: nowrap; }
.bag__footer { display: flex; flex-direction: column; gap: 14px; }
.horizon { position: relative; height: 44px; margin-top: 8px; overflow: hidden; }
.horizon__line { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 2px; background: rgba(255, 247, 234, 0.2); }
.horizon__fill { display: block; height: 100%; background: linear-gradient(90deg, #ffc15e, #ff9f1c, #d7263d); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 0.8s var(--ease-out); }
.horizon__track { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 0; transform: translateX(calc(var(--p, 0) * 100%)); transition: transform 0.8s var(--ease-out); }
.horizon__sun {
  position: absolute; left: 0; bottom: 0; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff3c4, #ffb347 55%, #ff7b2e);
  box-shadow: 0 0 16px 4px rgba(255, 159, 28, 0.6);
  transform: translate(-50%, calc(55% - var(--p, 0) * 40%));
}
.horizon.is-free .horizon__sun { box-shadow: 0 0 30px 10px rgba(255, 193, 94, 0.8); }
.horizon__label { margin: 0; font-size: 0.86rem; opacity: 0.9; }
.totals { margin: 0; display: grid; gap: 8px; }
.totals div { display: flex; justify-content: space-between; }
.totals dt { opacity: 0.8; }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals__grand { padding-top: 10px; border-top: 1px solid rgba(255, 247, 234, 0.2); font: 600 1.35rem var(--display); }
.totals__grand dt { opacity: 1; }
.checkout .field { display: flex; flex-direction: column; gap: 6px; }
.checkout label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
.checkout input, .checkout textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; font: inherit; color: var(--ink-light);
  background: rgba(255, 247, 234, 0.07); border: 1px solid rgba(255, 247, 234, 0.25);
}
.checkout input::placeholder, .checkout textarea::placeholder { color: rgba(255, 247, 234, 0.45); }
.checkout input:focus-visible, .checkout textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.checkout [aria-invalid='true'] { border-color: #ff6b6b; }
.field__err { min-height: 1em; margin: 0; font-size: 0.8rem; color: #ffb4a8; }
.checkout__momo { margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(255, 193, 94, 0.6); font-size: 0.86rem; color: #ffe2b0; }
.bag__thanks-title { margin: 20px 0 0; font: italic 700 3rem var(--display); background: var(--sun-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- film leader ---------- */
.leader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 24px; background: radial-gradient(circle, #3a2c1c 0%, #120c06 75%); color: #f3e6c8; transition: opacity 0.6s; }
.leader[hidden] { display: none; }
.leader.is-done { opacity: 0; }
.leader__frame { position: relative; width: min(64vmin, 440px); aspect-ratio: 1; display: grid; place-items: center; filter: sepia(0.6); }
.leader__dial { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(243, 230, 200, 0.55); stroke-width: 1.2; }
.leader__sweep { position: absolute; inset: 6%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(243, 230, 200, 0.35) 0deg, rgba(243, 230, 200, 0.05) 300deg, transparent 360deg); animation: spin 0.9s linear infinite; }
.leader__num { position: relative; font: 900 clamp(7rem, 30vmin, 15rem)/1 var(--display); }
.leader__num.tick { animation: tick 0.9s var(--ease-out); }
@keyframes tick { from { transform: scale(1.25); opacity: 0.2; } to { transform: scale(1); opacity: 1; } }
.leader__credit { margin: 0; font: italic 400 1.1rem var(--display); letter-spacing: 0.1em; opacity: 0.8; }
.leader__skip { color: #f3e6c8; }

/* ---------- toast ---------- */
.toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; max-width: min(380px, calc(100% - 36px)); padding: 14px 20px; border-radius: 16px;
  color: var(--ink-light); background: rgba(20, 10, 36, 0.88); border: 1px solid rgba(255, 193, 94, 0.4); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translateY(0); }
.toast:empty { visibility: hidden; }

/* Headline reveals wait for the motion engine (only when it is available). */
html.motion-pending [data-split] { visibility: hidden; }

/* ---------- responsive ---------- */
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
  .card:nth-child(7n + 1) .card__media { aspect-ratio: auto; flex: 1; min-height: 0; }
  .card:nth-child(7n + 1) .card__name { font-size: 1.7rem; }
  .card:nth-child(7n + 1) .card__media img { object-position: 50% 62%; }
}
@media (max-width: 900px) {
  .masthead__nav { display: none; }
  .chapter__inner { grid-template-columns: minmax(0, 1fr); }
  .chapter--right .chapter__head { order: 0; }
  .chapter__head { position: relative; top: 0; }
  .chapter { padding: 12vh 0 16vh; }
  .still:nth-child(even) { margin-top: 10vh; }
  .wx { grid-template-columns: minmax(0, 1fr); }
  .wx__now { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
  .sheet__body { grid-template-columns: minmax(0, 1fr); }
  .sheet__media img { max-height: 46vh; }
  .sheet__panel { width: 100%; bottom: 0; max-height: 92vh; }
  .sheet__bar { height: 4vh; }
}
@media (max-width: 560px) {
  :root { --header-h: 60px; }
  .brand { font-size: 1.3rem; }
  .bag-btn__label { display: none; }
  .bag-btn { padding: 8px 10px; }
  .lang button { padding: 6px 8px; }
  .reel { gap: 14px; }
  .still__meta { grid-template-columns: 1fr; }
  .still__price { grid-row: auto; grid-column: 1; }
  .wx-look__grid { gap: 8px; }
  .wx__facts { gap: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__btn { padding: 6px; }
  .card__tags { display: none; }
  .btn__price { display: none; }
  .card__name { font-size: 1rem; }
  .clock { left: 10px; bottom: 10px; padding: 8px 12px; border-radius: 14px; }
  .clock__time { font-size: 1.3rem; }
  .clock__track, .clock__label { display: none; }
  .skyline { height: 20vh; }
  .skyline--near { height: 22vh; }
  .hero__cue { margin-top: 6vh; }
}
@media (max-width: 360px) {
  .lang button { padding: 5px 6px; font-size: 0.66rem; }
  .masthead { gap: 8px; }
}

/* ---------- reduced motion: the sky switches per section, nothing drifts ---------- */
html.reduced { scroll-behavior: auto; }
html.reduced *, html.reduced *::before, html.reduced *::after { animation: none !important; transition: none !important; }
html.reduced .grain { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
