/* WARO Studios store.
   An evening room: brand charcoal lit by one warm lamp, light grain over everything, and the scripts
   themselves on the table. WARO orange is the lamp and the actions; nothing else is colored.
   Layout: a 12-column grid at max 1240px. Display type is Archivo pushed wide; small labels are
   Archivo pulled narrow. */

@font-face {
    font-family: 'Archivo';
    src: url('fonts/archivo-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #17171F;
    --bg-deep: #111117;
    --raise: #1F1E27;
    --raise-2: #2A2832;
    --line: rgba(255, 238, 222, 0.08);
    --line-strong: rgba(255, 238, 222, 0.18);
    --text: #F5F0E9;
    --muted: #ACA49C;
    --faint: #77716C;
    --orange: #FF8A3D;
    --orange-deep: #D9621A;
    --lamp: 255, 160, 90;
    --ink-on-orange: #1C1007;
    --good: #7BD88F;

    --font: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --wide: 118%;
    --narrow: 78%;
    --wrap: 1240px;
    --gutter: max(20px, env(safe-area-inset-left, 0px));
    --radius: 8px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg-deep); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
/* Film grain over the whole room. Fixed, so it stays still while the page moves. */
body::after {
    content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
/* Containers that only receive focus from script or the skip link (main, after the splash) are not
   controls; a ring around them draws a page-wide line along their bottom edge. */
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--ink-on-orange); padding: 8px 14px; border-radius: var(--radius); z-index: 100; }
.skip:focus { left: 8px; }
.label { display: block; font-size: 12.5px; font-weight: 650; font-stretch: var(--narrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.eyebrow { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 650; font-stretch: var(--narrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }

/* Header ----------------------------------------------------------------------------------- */
.top { view-transition-name: header; position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; }
.top.solid { background: rgba(20, 19, 26, 0.86); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.top-inner { display: flex; align-items: center; gap: 40px; height: 76px; }
.brand img { height: 30px; width: auto; }
.cats { display: flex; gap: 28px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { position: relative; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; white-space: nowrap; padding: 26px 0 24px; transition: color 0.15s; }
.cats a::after { content: ''; position: absolute; left: 50%; bottom: 18px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--orange); opacity: 0; transform: scale(0.4); transition: opacity 0.2s, transform 0.2s var(--ease); }
.cats a:hover { color: var(--text); }
.cats a[aria-current="page"] { color: var(--text); }
.cats a[aria-current="page"]::after { opacity: 1; transform: none; }
.top-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.who { color: var(--muted); font-size: 15px; font-weight: 500; white-space: nowrap; }
.who:hover { color: var(--text); }
.who b { color: var(--text); font-weight: 600; }
/* Signed out: the login is the header's one orange button. */
.who.login { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 18px 0 15px; border-radius: 999px; background: var(--orange); color: var(--ink-on-orange); font-weight: 700; box-shadow: 0 6px 18px -8px rgba(255, 138, 61, 0.7); transition: background 0.15s, transform 0.15s var(--ease), box-shadow 0.15s; }
.who.login:hover { color: var(--ink-on-orange); background: #FF9C5A; transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(255, 138, 61, 0.8); }
.who.login:active { background: var(--orange-deep); transform: none; }
.who.login svg { width: 17px; height: 17px; flex: none; }
.basket-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-size: 15px; transition: border-color 0.15s, background 0.15s; }
.basket-btn:hover { border-color: var(--text); }
.count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--raise-2); color: var(--muted); font-size: 12.5px; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.count.has { background: var(--orange); color: var(--ink-on-orange); }

/* Buttons ---------------------------------------------------------------------------------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 15.5px; text-decoration: none; white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s var(--ease), box-shadow 0.2s; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--orange); color: var(--ink-on-orange); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 -2px 0 rgba(0, 0, 0, 0.12) inset, 0 10px 30px -10px rgba(var(--lamp), 0.6); }
.btn-primary:hover { background: #FF9A55; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 -2px 0 rgba(0, 0, 0, 0.12) inset, 0 14px 36px -10px rgba(var(--lamp), 0.75); }
.btn-primary:active { background: var(--orange-deep); }
.btn-line { border: 1px solid var(--line-strong); color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.btn-dark { background: var(--bg-deep); color: var(--text); }
.btn-dark:hover { background: #000; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn-block { width: 100%; }
.text-btn { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.text-btn:hover { color: var(--text); text-decoration-color: currentColor; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding-bottom: 2px; border-bottom: 1px solid var(--line-strong); transition: border-color 0.15s, gap 0.2s var(--ease); }
.link-arrow::after { content: '→'; font-weight: 500; }
.link-arrow:hover { border-color: var(--orange); gap: 12px; }
.link-arrow.ext::after { content: '↗'; }

/* Home hero: a room with one lamp. room3d.js draws it in 3D; room.js draws the flat picture shown
   first and kept for reduced motion. The room's own glow follows the lamp through --light (1 on, 0 off). */
.hero { --light: 1; position: relative; isolation: isolate; margin-top: -77px; padding-top: 77px; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(40% 46% at 72% 52%, rgba(var(--lamp), calc(0.04 + 0.16 * var(--light))), transparent 70%),
        radial-gradient(30% 24% at 18% 8%, rgba(var(--lamp), calc(0.02 + 0.05 * var(--light))), transparent 70%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 60%, var(--bg) 100%);
}
/* Over the scene and under the words: a little dimming with the lamp off. */
.hero::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: rgba(9, 9, 13, calc(0.3 * (1 - var(--light)))); }
.room { position: absolute; inset: 0; z-index: 0; display: block; touch-action: pan-y; transition: opacity 0.6s; }
.room.retired { opacity: 0; pointer-events: none; }
/* The 3D room's box: a still picture of it first, then the live canvas on top. The picture has no
   edges; it fades out at the sides and the bottom into the page (and at the top too on narrow screens,
   where the cable starts just under the words). */
.room-box { position: absolute; z-index: 0; overflow: hidden; pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 88%, transparent), linear-gradient(to top, transparent, #000 18%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 14%, #000 88%, transparent), linear-gradient(to top, transparent, #000 18%); mask-composite: intersect; }
.room-box.stacked { -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to top, transparent, #000 14%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to top, transparent, #000 14%, #000 88%, transparent); }
.room-box.poster-gen { -webkit-mask-image: none; mask-image: none; }
.room-poster { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; display: block; opacity: 0; transition: opacity 0.25s; }
.room-poster.in { opacity: 1; }
.room3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; pointer-events: auto; opacity: 0; transition: opacity 0.15s; }
.room3d.ready { opacity: 1; }
.room3d.grabbing { cursor: grabbing !important; }
.room.grabbing { cursor: grabbing !important; }

.hero-copy { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: 24px; padding-block: 40px 24px; pointer-events: none; }
.hero-text { pointer-events: auto; padding-block: 40px; }
.hero h1 { margin: 0; font-weight: 800; font-stretch: var(--wide); font-size: clamp(40px, 5.2vw, 76px); line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
.hero-text p { margin: 26px 0 0; max-width: 38ch; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 34px; }
.room-slot { height: clamp(460px, 44vw, 640px); }
#browse > .section:first-child { padding-top: 56px; }
.rise { animation: rise-in 0.9s var(--ease) both; }
.rise.d1 { animation-delay: 0.08s; }
.rise.d2 { animation-delay: 0.18s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }

/* The note by the pull cord, moved along with it by room.js. It's also a button, so the lamp works from the keyboard. */
.room-hint { position: absolute; left: 0; top: 0; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 4px 2px; color: rgba(245, 240, 233, 0.7); font-size: 13.5px; font-weight: 500; font-style: italic; white-space: nowrap; transition: opacity 0.5s, color 0.2s; will-change: transform; }
.room-hint::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: 0.6; }
.room-box ~ .room-hint { flex-direction: row-reverse; text-shadow: 0 1px 8px rgba(9, 9, 13, 0.9); }
.room-hint:hover { color: var(--text); }
.room-hint.gone { opacity: 0; }

/* Sections --------------------------------------------------------------------------------- */
.section { padding-block: 120px 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 16px 56px; margin-bottom: 48px; }
.section-head h2 { margin: 0; font-size: clamp(32px, 3.6vw, 52px); font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.section-head .lede { margin: 0; color: var(--muted); font-size: 17px; max-width: 44ch; }
.section-head .lede p { margin: 0; }

/* A product given the whole row (used while the store has fewer than three). */
.showcase { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.showcase + .showcase { margin-top: 96px; }
.showcase.flip > :first-child { order: 2; }
.showcase .shot { display: block; position: relative; border-radius: 14px; }
.showcase .shot::before { content: ''; position: absolute; inset: 8% 4% -6%; z-index: -1; border-radius: 40px; background: radial-gradient(closest-side, rgba(var(--lamp), 0.22), transparent); filter: blur(30px); }
.showcase .media { border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 30px 70px -30px rgba(0, 0, 0, 0.9); }
.showcase h3 { margin: 0; font-size: clamp(32px, 3.4vw, 50px); font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.showcase h3 a { text-decoration: none; }
.showcase .excerpt { margin: 20px 0 0; color: var(--muted); font-size: 17px; max-width: 44ch; }
.showcase .buyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.showcase .buyrow .price { font-size: 24px; margin-right: 6px; }
.showcase .more-links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 26px; }


/* Product grid (three products and up) ----------------------------------------------------------- */
.spotlight { margin-bottom: 96px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
.grid.two .item-name { font-size: 20px; }
.item { text-decoration: none; display: flex; flex-direction: column; }
.media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--raise); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.item .media { box-shadow: 0 0 0 1px var(--line); transition: transform 0.45s var(--ease), box-shadow 0.45s; }
.item:hover .media { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-strong), 0 30px 50px -28px rgba(0, 0, 0, 0.9); }
.item:hover .media img { transform: scale(1.03); }
.media.empty { display: grid; place-items: center; }
.media.empty img { width: 22%; height: auto; opacity: 0.18; transform: none !important; object-fit: contain; }
.sale-tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--orange); color: var(--ink-on-orange); font-size: 12.5px; font-weight: 700; }
.item-body { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 16px; }
.item-name { margin: 0; font-size: 18px; font-weight: 650; line-height: 1.3; }
.item-cat { margin-top: 3px; color: var(--faint); font-size: 14px; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price s { color: var(--faint); font-weight: 500; margin-right: 8px; }

/* The Discord: the one orange room in the house. */
.invite { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 32px; margin-top: 140px; padding: 64px clamp(28px, 5vw, 72px); border-radius: 20px; color: var(--ink-on-orange);
    background: radial-gradient(80% 120% at 85% 20%, #FFA463, transparent 60%), linear-gradient(135deg, #FF8A3D, #D9621A); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 40px 80px -40px rgba(var(--lamp), 0.55); }
.invite::after { content: ''; position: absolute; z-index: -1; right: -60px; top: 50%; width: 520px; aspect-ratio: 990 / 710; transform: translateY(-50%) rotate(-6deg); opacity: 0.16;
    background: url('brand/symbol-white.svg') center / contain no-repeat; }
.invite h2 { margin: 0; font-size: clamp(32px, 3.8vw, 54px); font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.03em; line-height: 1; }
.invite p { margin: 16px 0 0; font-size: 18px; max-width: 40ch; color: rgba(28, 16, 7, 0.78); }
.invite .actions { display: flex; justify-content: flex-end; }

/* Category / list pages -------------------------------------------------------------------- */
.page-head { position: relative; padding-block: 72px 48px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; font-size: clamp(38px, 5vw, 72px); font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.035em; line-height: 1; }
.page-head .lede { margin-top: 18px; color: var(--muted); max-width: 56ch; font-size: 18px; }
.page-head .lede p { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--faint); font-size: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.glow-top { position: relative; isolation: isolate; overflow-x: clip; }
.glow-top::before { content: ''; position: absolute; z-index: -1; left: 50%; top: -200px; width: min(1400px, 140vw); height: 900px; transform: translateX(-30%); pointer-events: none;
    background: radial-gradient(45% 45% at 50% 40%, rgba(var(--lamp), 0.13), transparent 70%); }

/* Package page ----------------------------------------------------------------------------- */
.pkg { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; padding-block: 40px 0; }
.gallery .media { border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; scrollbar-width: thin; padding: 4px 2px; }
.thumbs button { flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--raise); opacity: 0.55; outline-offset: 2px; transition: opacity 0.15s; }
.thumbs button:hover { opacity: 0.85; }
.thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--orange); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .play { display: grid; place-items: center; height: 100%; font-size: 12px; font-weight: 700; color: var(--text); background: var(--raise-2); }
.thumbs .play.is-demo { display: flex; align-items: center; justify-content: center; gap: 7px; background: radial-gradient(90% 90% at 50% 0%, rgba(var(--lamp), 0.28), var(--raise-2)); }
.thumbs .play.is-demo::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.buy { position: sticky; top: 108px; align-self: start; }
.buy h1 { margin: 0; font-size: clamp(34px, 3.6vw, 52px); font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.buy .lead { margin: 16px 0 0; color: var(--muted); font-size: 16.5px; }
.buy .price { display: block; margin-top: 22px; font-size: 30px; }
.buy .note { margin-top: 4px; color: var(--faint); font-size: 14px; }
.buy .actions { display: grid; gap: 12px; margin-top: 26px; }
.facts { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts span { color: var(--muted); }
.facts b { font-weight: 600; text-align: right; }
.delivery { margin-top: 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.delivery a { color: var(--text); }

.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; margin-top: 96px; padding-top: 64px; border-top: 1px solid var(--line); }

/* Package description (written in Tebex) ------------------------------------------------------ */
.prose { font-size: 17px; line-height: 1.7; color: #DDD7CF; max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; margin: 2.2em 0 0.6em; }
.prose h1 { font-size: 30px; font-stretch: var(--wide); }
.prose h2 { font-size: 26px; font-stretch: var(--wide); }
.prose h3 { font-size: 21px; }
.prose h4 { font-size: 13px; font-stretch: var(--narrow); text-transform: uppercase; letter-spacing: 0.14em; color: var(--faint); }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--orange); text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--text); font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: 0.35em 0; padding-left: 0.2em; }
.prose ul li::marker { color: var(--orange); }
.prose ol li::marker { color: var(--muted); font-weight: 700; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; height: auto; }
.prose iframe, .prose video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); margin: 1.6em 0; background: var(--raise); }
.prose blockquote { margin: 1.6em 0; padding: 2px 0 2px 20px; border-left: 2px solid var(--orange); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.88em; background: var(--raise-2); padding: 2px 6px; border-radius: 4px; }
.prose pre { background: var(--raise); padding: 16px 18px; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }

/* More from the category. */
.more { margin-top: 112px; padding-top: 56px; border-top: 1px solid var(--line); }
.more h2 { margin: 0 0 32px; font-size: 28px; font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.02em; }

/* About ---------------------------------------------------------------------------------------- */
/* Opening: the words on the left, the mark being put together on the right, under the lamp. */
.about-page { overflow-x: clip; }
.about-hero { position: relative; isolation: isolate; margin-top: -77px; padding-top: 77px; }
.about-hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(42% 60% at 74% 44%, rgba(var(--lamp), 0.20), transparent 70%), linear-gradient(180deg, var(--bg-deep), var(--bg) 60%); }
.about-hero-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: 40px; padding-block: 88px 112px; }
.about-hero h1 { margin: 0; font-size: clamp(40px, 5.4vw, 80px); font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
.about-hero p { margin: 30px 0 0; max-width: 42ch; color: var(--muted); font-size: 19px; }
.about-mark { position: relative; margin-right: -4%; }
.mark { width: 100%; height: auto; overflow: visible; }
.mark-guides line { stroke: rgba(255, 238, 222, 0.14); stroke-width: 1.2; stroke-dasharray: 5 8; vector-effect: non-scaling-stroke; }
.mark-guides circle { fill: none; stroke: var(--orange); stroke-width: 2.5; }
.mark-ghost path { fill: none; stroke: rgba(255, 238, 222, 0.3); stroke-width: 1.2; vector-effect: non-scaling-stroke; transform: translate(-26px, 22px); }
.mark-solid path { fill: var(--orange); animation: piece 1.1s var(--ease) both; }
.mark-solid { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45)); }
.mark-solid .p0 { fill: #FF9550; --from: translate(-60px, -40px); }
.mark-solid .p1 { fill: #F27A33; --from: translate(0, 70px); animation-delay: 0.12s; }
.mark-solid .p2 { fill: #FFB07A; --from: translate(60px, -50px); animation-delay: 0.24s; }
@keyframes piece { from { opacity: 0; transform: var(--from); } }

/* Process: one made-up screen, four stages. */
.process { padding-top: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { position: relative; display: flex; flex-direction: column; }
.step-art { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 100% at 50% 0%, #2A2731, #1C1B23); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -30px rgba(0, 0, 0, 0.9); transition: transform 0.45s var(--ease); }
.step-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.step:hover .step-art { transform: translateY(-4px); }
/* The thread running between the stages. */
.step:not(:last-child)::after { content: ''; position: absolute; top: 37.5%; right: -20px; width: 20px; height: 1px; background: var(--orange); opacity: 0.6; }
.step-text { padding-top: 20px; }
.step-n { display: block; font-size: 12.5px; font-weight: 650; font-stretch: var(--narrow); letter-spacing: 0.14em; color: var(--orange); }
.step h3 { margin: 6px 0 0; font-size: 26px; font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.02em; }
.step p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; max-width: 30ch; }
.tune-glow { animation: tune 2.6s ease-in-out infinite; }
@keyframes tune { 50% { opacity: 0.25; } }
.cursor { animation: nudge 3.2s var(--ease) infinite; transform-box: fill-box; }
@keyframes nudge { 0%, 100% { transform: translate(0, 0); } 45%, 60% { transform: translate(-8px, -3px); } }

/* Values: four words set large, read like a table of contents. */
.value-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.value-rows li { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: baseline; gap: 12px 56px; padding: 30px 0 32px; border-bottom: 1px solid var(--line); }
.value-rows li { position: relative; }
.value-rows h3 { margin: 0; font-size: clamp(34px, 4.4vw, 64px); font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.035em; line-height: 1; transition: color 0.3s, transform 0.4s var(--ease); }
.value-rows li::before { content: ''; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--orange); transition: width 0.5s var(--ease); }
.value-rows li:hover::before { width: 100%; }
.value-rows li:hover h3 { color: var(--orange); transform: translateX(10px); }
.value-rows p { margin: 0; color: var(--muted); font-size: 17px; max-width: 34ch; }

/* The founder's note: one quiet block of large type. */
.founder-note { position: relative; margin: 140px 0 0; padding: 72px clamp(28px, 6vw, 96px) 64px; border-radius: 20px; background: linear-gradient(160deg, #221F28, #19181F); box-shadow: 0 0 0 1px var(--line); overflow: hidden; isolation: isolate; }
.founder-note::before { content: ''; position: absolute; z-index: -1; inset: -30% -10% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(var(--lamp), 0.14), transparent); }
.note-mark { display: block; width: 56px; height: auto; fill: var(--orange); margin-bottom: 32px; }
.founder-note blockquote { margin: 0; max-width: 32ch; font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; font-stretch: 104%; line-height: 1.3; letter-spacing: -0.015em; text-wrap: pretty; }
.founder-note figcaption { margin-top: 32px; color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 14px; }
.founder-note figcaption::before { content: ''; width: 32px; height: 1px; background: var(--orange); }

.practical-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.practical-list li { display: grid; gap: 6px; padding: 26px 24px 26px 0; }
.practical-list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.practical-list b { font-weight: 600; font-size: 16px; line-height: 1.35; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-block: 48px 0; }
.about-page .section-head { margin-bottom: 40px; }
.about-page > .wrap:not(.process) { padding-top: 120px; }
.about-page > .wrap:has(.founder-note) { padding-top: 0; }

/* States ----------------------------------------------------------------------------------- */
.state { padding-block: 140px; text-align: center; color: var(--muted); }
.state h1 { color: var(--text); font-size: 36px; font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.02em; margin: 0 0 12px; }
.state p { margin: 0 auto; max-width: 52ch; }
.state .btn { margin-top: 28px; }
.skeleton { background: linear-gradient(90deg, var(--raise) 0%, var(--raise-2) 50%, var(--raise) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--radius); }
.sk-line { height: 18px; margin-top: 14px; width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Basket drawer ---------------------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(8, 8, 12, 0.6); backdrop-filter: blur(2px); animation: fade 0.2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(440px, 100%); background: #1B1A22; border-left: 1px solid var(--line); display: flex; flex-direction: column; animation: slide 0.25s cubic-bezier(.2, .8, .2, 1); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 22px; font-weight: 800; font-stretch: var(--wide); }
.drawer-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.lines { list-style: none; margin: 0; padding: 8px 26px; }
.line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line .media { border-radius: 6px; }
.line-name { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.line .text-btn { font-size: 13px; margin-top: 4px; }
.drawer-foot { margin-top: auto; padding: 22px 26px 26px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: inherit; font-size: 15px; }
.coupon input::placeholder { color: var(--faint); }
.coupon .btn { height: 46px; padding: 0 18px; font-size: 14.5px; }
.applied { display: flex; flex-wrap: wrap; gap: 8px; }
.applied span { font-size: 13px; color: var(--good); }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--muted); }
.total b { font-size: 26px; color: var(--text); font-variant-numeric: tabular-nums; }
.signed { font-size: 14px; color: var(--muted); }
.signed b { color: var(--text); font-weight: 600; }
.drawer .empty-note { padding: 64px 26px; text-align: center; color: var(--muted); }
.drawer .empty-note p { margin: 0 0 22px; }

/* Toast ------------------------------------------------------------------------------------ */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; max-width: calc(100% - 40px); padding: 13px 22px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px; animation: toast-in 0.25s; }
@keyframes toast-in { from { transform: translate(-50%, 8px); opacity: 0; } }

/* Footer ----------------------------------------------------------------------------------- */
.foot { position: relative; margin-top: 140px; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--bg-deep); border-top: 1px solid var(--line); overflow: hidden; }
.foot-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-block: 64px 48px; }
.foot-brand { max-width: 360px; }
.foot-brand img { height: 30px; width: auto; }
.foot-brand p { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.foot-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.foot h4 { margin: 0 0 16px; font-size: 12.5px; font-stretch: var(--narrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 650; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { text-decoration: none; color: var(--muted); font-size: 15px; }
.foot ul a:hover { color: var(--text); }
.legal { position: relative; padding-block: 24px 40px; color: var(--faint); font-size: 13px; line-height: 1.6; }
.legal::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.legal p { margin: 0 0 8px; max-width: 80ch; }
.legal a { color: var(--muted); margin-right: 18px; text-decoration: none; }
.legal a:hover { color: var(--text); }

/* Demo: a script's own preview, full screen over the store ------------------------------------ */
.demo-btn { margin-top: 12px; }
.demo { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; background: #0d0b12; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(20px, env(safe-area-inset-left, 0px)); padding-top: max(12px, env(safe-area-inset-top, 0px)); border-bottom: 1px solid var(--line); font-weight: 600; }
.demo-bar em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 10px; font-size: 14px; }
.demo iframe { flex: 1; width: 100%; border: 0; display: block; }
body.demo-open { overflow: hidden; }

/* Responsive ------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pkg, .about, .showcase, .invite { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .showcase.flip > :first-child { order: 0; }
    .invite .actions { justify-content: flex-start; }
    .buy { position: static; }
    .hero-copy, .section-head { grid-template-columns: minmax(0, 1fr); }
    .about-hero-inner, .value-rows li { grid-template-columns: minmax(0, 1fr); }
    .about-mark { max-width: 560px; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
    .step:nth-child(2)::after { display: none; }
    .practical-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .practical-list li:nth-child(3) { padding-left: 0; border-left: 0; }
    .practical-list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
    .top-inner { flex-wrap: wrap; height: auto; gap: 0 16px; padding-top: 14px; }
    .brand img { height: 24px; }
    .top-actions { gap: 14px; }
    .who { font-size: 14px; }
    .who.login { height: 36px; padding: 0 14px 0 12px; }
    .basket-btn { height: 36px; font-size: 14px; }
    .cats { order: 3; flex-basis: 100%; gap: 22px; margin-top: 4px; }
    .cats a { padding: 12px 0 14px; font-size: 14.5px; }
    .cats a::after { bottom: 6px; }
    .hero { margin-top: -105px; padding-top: 105px; }
    .hero-copy { padding-block: 16px 0; gap: 0; }
    .hero-text { padding-block: 24px 0; }
    .hero-text p { font-size: 16.5px; }
    .room-slot { height: 400px; }
    #browse > .section:first-child { padding-top: 40px; }
    .section { padding-block: 80px 0; }
    .section-head { margin-bottom: 32px; }
    .grid, .grid.two { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .pkg { padding-block: 16px 0; }
    .about { margin-top: 56px; padding-top: 40px; }
    .prose { font-size: 16px; }
    .invite { margin-top: 96px; padding: 44px 26px; }
    .invite::after { width: 300px; right: -90px; top: 24%; }
    .about-hero { margin-top: -105px; padding-top: 105px; }
    .about-hero-inner { padding-block: 40px 64px; }
    .about-mark { order: -1; width: 82%; margin: 0 auto; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
    .step:not(:last-child)::after { display: none; }
    .step-art { border-radius: 10px; }
    .step-text { padding-top: 12px; }
    .step h3 { font-size: 20px; }
    .step p { font-size: 14px; }
    .value-rows li { padding: 22px 0 24px; }
    .founder-note { margin-top: 88px; padding: 44px 24px 40px; }
    .practical-list { grid-template-columns: minmax(0, 1fr); }
    .practical-list li, .practical-list li + li { padding: 18px 0; border-left: 0; }
    .practical-list li + li { border-top: 1px solid var(--line); }
    .about-page > .wrap:not(.process) { padding-top: 80px; }
    .foot { margin-top: 96px; }
    .foot-cols { gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Splash: a dark room, the mark comes together, the lamp clicks on, the room is revealed. ---------------- */
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; align-content: center; gap: 26px; background: #0E0E13; overflow: hidden; }
.splashing, .splashing body { overflow: hidden; }
.splash-mark { position: relative; z-index: 1; width: clamp(120px, 16vw, 190px); height: auto; overflow: visible; }
.splash-mark path { fill: #3A3640; }
.splash-word { position: relative; z-index: 1; color: rgba(245, 240, 233, 0.32); font: 600 12px/1 var(--font); font-stretch: 112%; letter-spacing: 0.62em; text-transform: uppercase; margin-right: -0.62em; }
/* The light: a warm bloom behind the mark that clicks on, dips, and spreads. */
.splash-glow { position: absolute; left: 50%; top: 50%; width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax; border-radius: 50%; opacity: 0; transform: scale(0.25);
    background: radial-gradient(closest-side, rgba(255, 196, 140, 0.55), rgba(255, 138, 61, 0.22) 30%, rgba(255, 138, 61, 0.06) 55%, transparent 75%); }
.splash.play .splash-mark path { animation: splash-piece 0.55s cubic-bezier(.2, .8, .2, 1) both, splash-lit 0.5s 0.62s ease-out forwards; }
.splash.play .p0 { --from: translate(-90px, -50px) rotate(-8deg); }
.splash.play .p1 { --from: translate(0, 90px) rotate(6deg); animation-delay: 0.08s, 0.62s; }
.splash.play .p2 { --from: translate(80px, -70px) rotate(10deg); animation-delay: 0.16s, 0.62s; }
.splash.play .splash-word { animation: splash-word 0.5s 0.35s ease-out both; }
.splash.play .splash-glow { animation: splash-glow 0.75s 0.62s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes splash-piece { from { opacity: 0; transform: var(--from); } }
@keyframes splash-lit { to { fill: #FF8A3D; } }
@keyframes splash-word { from { opacity: 0; letter-spacing: 0.9em; } }
@keyframes splash-glow { 0% { opacity: 0; transform: scale(0.25); } 8% { opacity: 0.9; } 16% { opacity: 0.35; } 26% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
.splash.calm .splash-mark path { fill: #FF8A3D; }
.splash.calm .splash-glow { opacity: 0.8; transform: none; }
/* The reveal: the dark lifts away and the mark drifts up into the light. */
.splash.out { animation: splash-out 0.5s cubic-bezier(.4, 0, .2, 1) forwards; }
.splash.out .splash-mark, .splash.out .splash-word { transition: transform 0.5s cubic-bezier(.4, 0, .2, 1); transform: translateY(-14px) scale(1.04); }
.splash.out-fast { animation: splash-out 0.2s ease-out forwards; }
.splash.calm.out { animation-duration: 0.3s; }
.splash.calm.out .splash-mark, .splash.calm.out .splash-word { transform: none; }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
/* Reduced motion turns off animation everywhere above; the splash keeps its short fade. */
.splash.calm.out { animation: splash-out 0.3s ease-out forwards !important; }

/* Page changes (View Transitions): the page fades and rises a little; the header stays put; a product's
   picture flies between its card and the product page's gallery. app.js skips all of this with reduced
   motion and in browsers without View Transitions. */
::view-transition-old(root) { animation: vt-out 0.2s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in 0.26s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
::view-transition-group(header), ::view-transition-old(header), ::view-transition-new(header) { animation: none; }
::view-transition-group(product-media) { animation-duration: 0.38s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
::view-transition-old(product-media), ::view-transition-new(product-media) { height: 100%; object-fit: cover; }
