/* Cards carousel · stage 2 — a card. The card, its window and the picture inside it (larger than the window, so it
   has room to move), the words each look puts on a card, and the See-all card's mosaic (section 4 and 5).

   1 tokens: primitive → semantic (per look) → component     2 the page, ambient light, the site's header
   3 the showcase's words     4 the carousel: rig, card, window, words     5 each look's cards     7 screens */

/* ---- 1. TOKENS ---- */
:root {
  --n-0: #fff; --b-40: rgb(0 0 0 / .4);
  /* films: a dark screening room lit by the poster in front of you, one gold for the ratings */
  --fi-950: #06050A; --fi-900: #0E0C14; --fi-800: #18151F; --fi-500: #625C70; --fi-300: #A8A2B8; --fi-100: #F3F1F8; --fi-red: #FF3D5A; --fi-lamp: #F5C451; --fi-gold: #F5C451;
  /* icons: a gallery window by day — warm white wall, a glossy floor, black ink, a brass hand */
  --ic-50: #FBF9F6; --ic-100: #F1ECE4; --ic-200: #E2DACE; --ic-ink: #141210; --ic-ink-2: #6B655C; --ic-brass: #B4884A;
  /* cars: graphite night, headlight amber, chalk */
  --ca-950: #07080A; --ca-900: #0D0F12; --ca-800: #161A1F; --ca-500: #59616B; --ca-300: #9AA3AD; --ca-100: #EEF1F4; --ca-amber: #FFB020; --ca-red: #FF4D3A;

  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --anton: 'Anton', 'Archivo', sans-serif;
  --wide: 'Archivo', 'Geist', sans-serif;
  --serif: 'Fraunces', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
[data-look="films"] {
  --page: var(--fi-950); --on-field: var(--fi-100); --on-field-muted: var(--fi-300); --chip: var(--fi-red); --on-chip: var(--fi-100);
  --accent: var(--fi-red); --on-accent: var(--fi-100); --light: rgb(255 200 140 / .08); --avatar-ring: var(--fi-100); --lockup: none;
  --title-face: var(--sans); --title-w: 700; --title-size: 58px; --title-track: -.045em; --title-case: none; --em-face: var(--serif); --em-style: italic; --em-w: 300; --em: var(--fi-gold);
  --card-r: 16px; --card-edge: rgb(255 255 255 / .1); --card-drop: 0 30px 50px -24px rgb(0 0 0 / .9);
  --btn: rgb(255 255 255 / .06); --btn-edge: rgb(255 255 255 / .14); --on-btn: var(--fi-100); --dot: rgb(255 255 255 / .22); --dot-on: var(--fi-lamp);
  --pill: var(--fi-900); --pill-edge: rgb(255 255 255 / .12); --on-pill: var(--fi-100); --on-pill-muted: var(--fi-300); --pill-icon: var(--fi-red); --on-pill-icon: var(--fi-100);
}
[data-look="icons"] {
  --page: var(--ic-100); --on-field: var(--ic-ink); --on-field-muted: var(--ic-ink-2); --chip: var(--ic-ink); --on-chip: var(--ic-50);
  --accent: var(--ic-ink); --on-accent: var(--ic-50); --light: rgb(255 244 228 / .7); --avatar-ring: var(--ic-ink); --lockup: brightness(0);
  --title-face: var(--serif); --title-w: 350; --title-size: 64px; --title-track: -.045em; --title-case: none; --em-face: var(--serif); --em-style: italic; --em-w: 300; --em: var(--ic-brass);
  --card-r: 4px; --card-edge: rgb(20 18 16 / .08); --card-drop: none;
  --btn: var(--ic-50); --btn-edge: rgb(20 18 16 / .12); --on-btn: var(--ic-ink); --dot: rgb(20 18 16 / .18); --dot-on: var(--ic-ink);
  --pill: rgb(251 249 246 / .9); --pill-edge: rgb(20 18 16 / .1); --on-pill: var(--ic-ink); --on-pill-muted: var(--ic-ink-2); --pill-icon: var(--ic-ink); --on-pill-icon: var(--ic-50);
}
[data-look="cars"] {
  --page: var(--ca-950); --on-field: var(--ca-100); --on-field-muted: var(--ca-300); --chip: var(--ca-amber); --on-chip: var(--ca-950);
  --accent: var(--ca-amber); --on-accent: var(--ca-950); --light: rgb(255 176 32 / .07); --avatar-ring: var(--ca-amber); --lockup: none;
  --title-face: var(--wide); --title-w: 900; --title-size: 64px; --title-track: -.03em; --title-case: uppercase; --em-face: var(--wide); --em-style: normal; --em-w: 300; --em: var(--ca-amber);
  --card-r: 14px; --card-edge: rgb(255 255 255 / .1); --card-drop: 0 40px 60px -30px rgb(0 0 0 / .95);
  --btn: rgb(255 255 255 / .05); --btn-edge: rgb(255 255 255 / .14); --on-btn: var(--ca-100); --dot: rgb(255 255 255 / .2); --dot-on: var(--ca-amber);
  --pill: var(--ca-900); --pill-edge: rgb(255 255 255 / .12); --on-pill: var(--ca-100); --on-pill-muted: var(--ca-300); --pill-icon: var(--ca-amber); --on-pill-icon: var(--ca-950);
}

/* ---- 2. the page, ambient light, the site's header ---- */
* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; min-height: 100dvh; font-family: var(--sans); color: var(--on-field); background: var(--page); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.amb { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.glow { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, var(--light), transparent); }
.glow.g1 { left: -12vw; top: 20vh; width: 60vmax; height: 60vmax; }
.glow.g2 { right: -14vw; bottom: -10vh; width: 54vmax; height: 54vmax; opacity: .8; }

/* the site's header: brand, links (from a tablet up), its call to action */
.site { position: relative; z-index: 5; display: flex; align-items: center; gap: 28px; height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); position: relative; }
[data-look="films"] .mark { border-radius: 50%; background: conic-gradient(from 210deg, var(--fi-gold), var(--fi-red), #7B5CFF, var(--fi-gold)); }
[data-look="films"] .mark::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--page); }
[data-look="icons"] .mark { border-radius: 50%; background: var(--ic-ink); }
[data-look="icons"] .mark::after { content: ''; position: absolute; left: 8px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--ic-brass); }
[data-look="icons"] .brand { font-family: var(--serif); font-weight: 500; font-size: 19px; }
[data-look="cars"] .mark { border-radius: 4px; background: linear-gradient(135deg, var(--ca-amber) 0 50%, var(--ca-red) 50%); transform: skewX(-12deg); }
[data-look="cars"] .brand { font-family: var(--wide); font-weight: 800; text-transform: uppercase; font-size: 14px; letter-spacing: .06em; }
.links { display: none; gap: 26px; font-size: 14px; font-weight: 500; color: var(--on-field-muted); }
.links a { text-decoration: none; } .links a:hover { color: var(--on-field); }
.cta { margin-left: auto; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 650; text-decoration: none; white-space: nowrap;
  color: var(--on-accent); background: var(--accent); }
[data-look="icons"] .cta { color: var(--ic-ink); background: none; box-shadow: inset 0 0 0 1px rgb(20 18 16 / .2); }
@media (min-width: 720px) { .links { display: flex; } }

/* ---- 3. the showcase: its words, then the carousel, then a link on ---- */
.showcase { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: clamp(18px, 4vh, 56px) clamp(16px, 4vw, 40px) clamp(28px, 6vh, 72px); }
.intro { max-width: 640px; text-align: left; }
.eyebrow { margin: 0 0 10px; font: 600 11.5px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--em); }
#sc-title { margin: 0; font-family: var(--title-face); font-weight: var(--title-w); font-size: clamp(34px, 6.4vw, 64px); line-height: 1.02; letter-spacing: var(--title-track); text-transform: var(--title-case); text-wrap: balance; }
#sc-title em { font-family: var(--em-face); font-style: var(--em-style); font-weight: var(--em-w); text-transform: none; color: var(--em); }
.lede { margin: 14px 0 0; max-width: 460px; font-size: clamp(14.5px, 1.6vw, 17px); line-height: 1.5; color: var(--on-field-muted); text-wrap: pretty; }
.after { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 6px; }
.more { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--on-field); border-bottom: 1px solid var(--em); padding-bottom: 2px; }
.credit-line { margin: 0; font-size: 10.5px; color: var(--on-field-muted); opacity: .75; text-align: center; }

/* ---- 4. the carousel ---- */
.carousel { position: relative; height: clamp(460px, 64vh, 560px); margin: 8px calc(clamp(16px, 4vw, 40px) * -1) 0; outline: none; }
.rig { position: absolute; left: 0; right: 0; top: 0; bottom: 60px; perspective: 1100px; overflow: hidden; }
.rig-in { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 50%; }
.card { --cw: 200px; --ch: 300px; position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--ch); margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2);
  transform-style: preserve-3d; will-change: transform; }
.win { position: absolute; inset: 0; overflow: hidden; border-radius: var(--card-r); background: #222; box-shadow: inset 0 0 0 1px var(--card-edge), var(--card-drop); }
.pic { position: absolute; left: -14%; top: -8%; width: 128%; height: 116%; object-fit: cover; pointer-events: none; }
.glare { position: absolute; inset: 0; border-radius: var(--card-r); pointer-events: none; opacity: 0; mix-blend-mode: soft-light;
  background: radial-gradient(60% 50% at var(--gx, 50%) var(--gy, 30%), rgb(255 255 255 / .9), transparent 70%); }
.info { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; pointer-events: none; opacity: 0; }

/* ---- 5. each look's rig ---- */
/* FILMS: a screening room; the posters stand in it (stage 5 curves the wall) */
[data-look="films"] .rig { perspective: 1000px; }
[data-look="films"] .card { --cw: 210px; --ch: 315px; margin-top: calc(var(--ch) / -2 - 22px); }
[data-look="films"] .card .win { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), 0 30px 60px -24px rgb(0 0 0 / .95);
}
[data-look="films"] .info { inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px;
  background: linear-gradient(180deg, transparent 45%, rgb(5 4 8 / .55) 62%, rgb(5 4 8 / .94)); border-radius: var(--card-r); }
.f-rate { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: conic-gradient(var(--fi-gold) calc(var(--r, 80) * 1%), rgb(255 255 255 / .14) 0); }
.f-rate::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: rgb(10 8 14 / .86); }
.f-rate b, .f-rate i { position: relative; line-height: 1; }
.f-rate b { font: 700 14px var(--sans); color: #fff; margin-top: 6px; }
.f-rate i { font: 600 7px var(--mono); letter-spacing: .1em; font-style: normal; color: var(--fi-gold); margin-bottom: 6px; }
.f-tags { display: flex; gap: 5px; margin: 0; }
.f-tags span { padding: 3px 8px; border-radius: 99px; font: 600 9.5px var(--sans); letter-spacing: .04em; color: #fff; background: rgb(255 255 255 / .16); }
.f-meta { margin: 0; font: 500 11px var(--sans); color: rgb(255 255 255 / .74); }
.f-acts { display: flex; gap: 6px; margin: 2px 0 0; }
.f-play { flex: 1; display: grid; place-items: center; height: 32px; border-radius: 9px; font: 650 12px var(--sans); color: #0A0810; background: #fff; }
.f-add { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font: 500 18px var(--sans); color: #fff; background: rgb(255 255 255 / .16); }

/* a picture still to come: the window shows a quiet gradient */
.win.is-empty { background: radial-gradient(80% 60% at 50% 35%, rgb(255 255 255 / .16), transparent 70%), linear-gradient(160deg, #3A3530, #191613); }
.win.is-empty .pic { visibility: hidden; }

/* ICONS: a gallery window by day — framed products (stage 5 hangs them on threads) */
[data-look="icons"] body { background: linear-gradient(180deg, #F6F2EC, var(--ic-100) 55%, #E7E0D5 78%, #EDE7DE); }
[data-look="icons"] .rig { perspective: 1100px; perspective-origin: 50% 40%; }
/* a gallery frame: black walnut, a white mat cut on a bevel round the picture, a museum caption under it */
[data-look="icons"] .card { --cw: 236px; --ch: 344px; margin-top: calc(var(--ch) / -2 - 8px); transform-origin: 50% -320px; border-radius: 3px;
  background: linear-gradient(135deg, #3A2E25, #1B1511 45%, #2B221B); box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), inset 0 0 0 1px rgb(0 0 0 / .4); }
[data-look="icons"] .card::before { content: ''; position: absolute; inset: 9px; border-radius: 1px; background: linear-gradient(180deg, #FDFCF9, #F6F2EA);
  box-shadow: inset 0 2px 4px rgb(0 0 0 / .28), inset 0 0 0 1px rgb(0 0 0 / .1); }
[data-look="icons"] .win { inset: 26px 26px auto; height: 66%; border-radius: 0; background: var(--ic-200);
  box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgb(150 130 100 / .35), 0 0 0 3px rgb(255 255 255 / .9), inset 0 1px 3px rgb(0 0 0 / .25); }
[data-look="icons"] .glare { border-radius: 3px; }
[data-look="icons"] .info { inset: auto 26px 24px; padding: 0; opacity: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pg-no { margin: 0; font: 600 8.5px var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--ic-brass); }
.pg-name { margin: 4px 0 0; font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -.02em; line-height: 1; color: var(--ic-ink); }
.pg-line { margin: 5px 0 0; font-family: var(--serif); font-style: italic; font-size: 12px; color: var(--ic-ink-2); }
.pg-text { display: none; }
[data-look="icons"] .card.is-all .win { inset: 26px; height: auto; }
[data-look="icons"] .card.is-all .info { inset: 26px; padding: 0 14px; background: radial-gradient(70% 60% at 50% 50%, rgb(20 18 16 / .55), rgb(20 18 16 / .85)); border-radius: 0; }
[data-look="icons"] .card.is-all .all-n, [data-look="icons"] .card.is-all .all-k { color: #FBF8F2; }
[data-look="icons"] .card.is-all .all-go { color: var(--ic-ink); background: #FBF8F2; }

/* CARS: a row of cars under one warm light (stage 5 makes them drift) */
[data-look="cars"] body { background: radial-gradient(60% 40% at 50% 62%, rgb(255 176 32 / .10), transparent 70%), radial-gradient(90% 60% at 50% 0%, rgb(255 255 255 / .04), transparent 70%), var(--page); }
[data-look="cars"] #sc-title { font-style: italic; font-stretch: 110%; }
[data-look="cars"] #sc-title em { font-style: italic; font-weight: 900; }
[data-look="cars"] .rig { perspective: 1000px; perspective-origin: 50% 50%; }
[data-look="cars"] .card { --cw: 236px; --ch: 330px; margin-top: calc(var(--ch) / -2 - 11px); }
[data-look="cars"] .win { border-radius: 14px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), 0 26px 40px -22px #000;
}
[data-look="cars"] .info { top: 0; bottom: auto; padding: 14px 16px 34px; background: linear-gradient(180deg, rgb(7 8 10 / .82), rgb(7 8 10 / .5) 60%, transparent); border-radius: 14px 14px 0 0; }
.c-year { margin: 0; font: 600 10px var(--mono); letter-spacing: .2em; color: var(--ca-amber); }
.c-name { margin: 2px 0 8px; font-family: var(--wide); font-size: 21px; font-weight: 800; font-style: italic; letter-spacing: -.02em; color: var(--ca-100); text-transform: uppercase; font-stretch: 108%; }
.c-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.c-specs span { display: grid; font: 500 9px var(--mono); letter-spacing: .06em; color: var(--ca-300); text-transform: uppercase; }
.c-specs b { font: 800 18px var(--wide); font-style: italic; letter-spacing: -.01em; color: var(--ca-100); font-variant-numeric: tabular-nums; }

/* the See-all card: a mosaic of the set under a veil, a count, and the way on */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: #000; }
.mosaic i { background: center / cover no-repeat; filter: saturate(.8) brightness(.8); }
.card.is-all .info { inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 2px;
  background: radial-gradient(70% 60% at 50% 50%, rgb(0 0 0 / .55), rgb(0 0 0 / .78)); border-radius: var(--card-r); }
.all-k { margin: 0; font: 600 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--em); }
.all-n { margin: 0; font-family: var(--title-face); font-weight: var(--title-w); font-size: 34px; letter-spacing: -.03em; color: var(--on-field); }
.all-go { margin: 8px 0 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: var(--on-accent); background: var(--accent); }
.all-go i { font-style: normal; }

/* ---- 7. screens: the rig is drawn for a phone and scaled by app.js; here its height grows with the screen ---- */
@media (min-width: 900px) {
  .showcase { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 40px; }
  .intro { grid-column: 1; } .after { grid-column: 2; grid-row: 1; align-items: flex-end; margin: 0 0 6px; }
  .carousel { grid-column: 1 / -1; height: clamp(560px, 66vh, 700px); }
}
@media (max-width: 380px) { .site { gap: 12px; } .cta { padding: 0 12px; font-size: 12.5px; } }
