/* Cards carousel · stage 1 — the look. The markup and the tokens of the three looks: Films (Aurora Cinemas, a dark
   screening room), Icons (Objet & Co., a gallery window by day) and Cars (Redline Collection, graphite night). The page,
   its ambient light, the site's header and the showcase's words; the carousel is an empty stage for now.

   1 tokens: primitive → semantic (per look) → component     2 the page, ambient light, the site's header
   3 the showcase's words     4 the carousel: its stage     5 each look's page     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: its stage (stage 2 puts the cards on it) ---- */
.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%; }

/* ---- 5. each look's page ---- */
/* FILMS: a dark screening room */
[data-look="films"] .rig { perspective: 1000px; }

/* ICONS: a gallery window by day */
[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%; }

/* CARS: graphite night under one warm light */
[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%; }

/* ---- 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; } }
