/* Cromia landing page (site/index.html). Self-hosted fonts and images only:
   nothing is loaded from third parties. Colours from lib/ui/theme.dart and the
   drapes of the app (sampled from the store screens). */

@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/fonts/SpaceMono-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --paper: #ECE9E4;
  --ink: #161513;
  --ink-2: #5F5B55;
  --line: #D9D4CC;
  --white: #FFFFFF;
  /* the drapes, in the order of the session */
  --muschio: #77915A;
  --ocra: #DD9E36;
  --pino: #37422B;
  --biscotto: #E8B687;
  --rosa: #A15C55;
  --mattone: #B24D49;
  --arancio: #F19E1B;
  /* set by app.js while the session scrolls */
  --drape: var(--pino);
  --on-drape: var(--white);
  --p: 0;
  --pad: clamp(20px, 5vw, 72px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(16px, 1.05vw + 12px, 19px)/1.55 "Barlow", system-ui, sans-serif;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 20; background: var(--white); padding: 8px 14px; border-radius: 10px; }

.display {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.005em;
  margin: 0;
}

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) var(--pad) 14px;
  transition: background .4s, box-shadow .4s;
}
.bar.scrolled { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .06em; }
.logo img { border-radius: 9px; }
.bar-cta { text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); }

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 178px; min-height: 60px; padding: 8px 22px 8px 16px;
  border-radius: 16px; background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 20px; line-height: 1.1; text-decoration: none;
  transition: transform .3s var(--ease-out);
}
.store span { display: flex; flex-direction: column; white-space: nowrap; }
.store small { font-weight: 400; font-size: 12px; opacity: .8; }
.store-icon { width: 28px; height: 28px; flex: none; }
.store:hover { transform: translateY(-3px); }
.store-light { background: var(--paper); color: var(--ink); }

/* ---------- phone ---------- */
.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  aspect-ratio: 600 / 1304;
  border-radius: calc(var(--w) * .15);
  padding: calc(var(--w) * .035);
  background: linear-gradient(145deg, #2b2926, #0d0c0b 60%, #2b2926);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.14),
    0 40px 80px -30px rgba(22,21,19,.55),
    0 18px 30px -18px rgba(22,21,19,.4);
}
.phone::after { /* the island */
  content: ""; position: absolute; top: calc(var(--w) * .062); left: 50%;
  width: 30%; height: calc(var(--w) * .085); translate: -50% 0;
  border-radius: 999px; background: #0d0c0b;
}
.screen { position: relative; height: 100%; border-radius: calc(var(--w) * .118); overflow: hidden; background: var(--paper); }
/* the new picture fades in over the old one, which leaves only once covered */
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 0; transition: opacity 0s .7s; }
.screen img.on { opacity: 1; z-index: 1; transition: opacity .7s ease; }
.screen img.was { opacity: 1; }

/* ---------- 1. hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 4vw;
  padding: 110px var(--pad) 70px;
  position: relative;
  overflow-x: clip;
}
.hero-copy { position: relative; z-index: 2; max-width: 640px; }
.hero h1 { font-size: clamp(54px, 8.4vw, 150px); margin-bottom: 28px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: block; }
.lead { max-width: 34em; color: var(--ink-2); margin: 0 0 30px; }

.hero-stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.phone-hero { --w: clamp(230px, 22vw, 320px); z-index: 2; }

/* the fan of swatches, as in the app icon */
.fan { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.fan .chip, .fan .pin { position: absolute; left: 50%; top: 50%; }
.fan .chip {
  --a: 0deg;
  width: clamp(92px, 8.6vw, 128px); height: clamp(300px, 27vw, 420px);
  margin: calc(clamp(300px, 27vw, 420px) * -0.92) 0 0 calc(clamp(92px, 8.6vw, 128px) * -.5);
  border-radius: 22px;
  transform-origin: 50% 92%;
  transform: rotate(var(--a)) translate(var(--tx, 0), var(--ty, 0));
  box-shadow: 0 16px 40px -18px rgba(22,21,19,.45), inset 0 0 0 1px rgba(255,255,255,.12);
}
.fan .chip:nth-child(1) { background: var(--muschio); --a: -72deg; }
.fan .chip:nth-child(2) { background: var(--ocra); --a: -48deg; }
.fan .chip:nth-child(3) { background: var(--pino); --a: -24deg; }
.fan .chip:nth-child(4) { background: var(--biscotto); --a: 0deg; }
.fan .chip:nth-child(5) { background: var(--rosa); --a: 24deg; }
.fan .chip:nth-child(6) { background: var(--mattone); --a: 48deg; }
.fan .chip:nth-child(7) { background: var(--arancio); --a: 72deg; }
.fan .pin { width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 5px var(--ink); translate: 0 calc(clamp(300px, 27vw, 420px) * -0.0); }
.fan { translate: 0 18%; }

/* the one orchestrated moment: on load the fan opens and the phone rises */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line > span { animation: rise 1.1s var(--ease-out) both; }
  .hero h1 .line:nth-child(2) > span { animation-delay: .09s; }
  .hero h1 .line:nth-child(3) > span { animation-delay: .18s; }
  .lead, .hero .stores { animation: fade 1s .45s var(--ease-out) both; }
  .fan .chip { animation: open 1.5s var(--ease-out) both; }
  .fan .chip:nth-child(2) { animation-delay: .05s; }
  .fan .chip:nth-child(3) { animation-delay: .1s; }
  .fan .chip:nth-child(4) { animation-delay: .15s; }
  .fan .chip:nth-child(5) { animation-delay: .2s; }
  .fan .chip:nth-child(6) { animation-delay: .25s; }
  .phone-hero { animation: lift 1.4s .25s var(--ease-out) both; }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
@keyframes open { from { transform: rotate(0deg) scale(.9); } }
@keyframes lift { from { opacity: 0; transform: translateY(70px) rotate(-4deg); } }

/* ---------- 2. drape session ---------- */
.session { position: relative; height: 260svh; }
.session-sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr auto;
  align-items: center; gap: 0 4vw;
  padding: 90px var(--pad) 36px;
  background: var(--drape);
  color: var(--on-drape);
  transition: color .5s ease;
  isolation: isolate;
}
.session-word {
  position: absolute; inset: 0; display: flex; align-items: center;
  pointer-events: none; overflow: hidden;
}
.session-word span {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(120px, 26vw, 420px); line-height: .8; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--on-drape) 35%, transparent);
  padding-left: 4vw;
  transform: translateX(calc(var(--p) * -28vw));
  transition: opacity .35s ease;
}
.session-word span.swap { opacity: 0; }
.session-head { grid-column: 1; grid-row: 1; position: relative; max-width: 30ch; }
.session-head h2 { font-size: clamp(40px, 4.6vw, 84px); margin-bottom: 18px; }
.session-head p { margin: 0; opacity: .85; }
.phone-session { --w: clamp(210px, 21vw, 310px); grid-column: 2; grid-row: 1 / span 2; justify-self: center; }
.session-notes {
  grid-column: 3; grid-row: 1; position: relative; list-style: none; margin: 0; padding: 0;
  min-height: 9em; max-width: 26ch;
}
.session-notes li {
  position: absolute; inset: 0 auto auto 0;
  opacity: 0; transform: translateY(18px);
  transition: opacity .18s ease, transform .3s ease;
}
.session-notes li.on { opacity: 1; transform: none; transition: opacity .45s .2s ease, transform .7s .2s var(--ease-out); }
.session-notes strong {
  display: block; font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(38px, 3.6vw, 64px); line-height: .9; margin-bottom: 10px;
}
.session-dots { grid-column: 1; grid-row: 2; display: flex; gap: 10px; align-self: end; }
.session-dots button {
  width: 30px; height: 30px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid color-mix(in srgb, var(--on-drape) 70%, transparent);
  transition: transform .3s var(--ease-out);
}
.session-dots button:nth-child(1) { background: var(--pino); }
.session-dots button:nth-child(2) { background: var(--mattone); }
.session-dots button[aria-current="true"] { transform: scale(1.3); border-color: var(--on-drape); }

/* ---------- 3. compare ---------- */
.compare {
  display: grid; grid-template-columns: 1fr auto; gap: 6vw; align-items: center;
  padding: clamp(90px, 14vw, 200px) var(--pad);
}
.compare-copy { max-width: 32em; }
.compare h2 { font-size: clamp(48px, 7vw, 120px); margin-bottom: 26px; }
.compare-copy p { color: var(--ink-2); margin: 0; }
.compare-frame {
  --pos: 50%;
  position: relative; width: clamp(260px, 30vw, 440px); aspect-ratio: 3 / 4;
  border-radius: 36px; overflow: hidden; background: var(--line);
  box-shadow: 0 40px 80px -40px rgba(22,21,19,.55);
  touch-action: pan-y;
}
.compare-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); pointer-events: none; }
.compare-handle span {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px;
  border-radius: 50%; background: var(--white); box-shadow: 0 6px 20px rgba(22,21,19,.3);
}
.compare-handle span::before, .compare-handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -7px;
  border: 7px solid transparent;
}
.compare-handle span::before { left: 7px; border-right-color: var(--ink); }
.compare-handle span::after { right: 7px; border-left-color: var(--ink); }
.compare-frame input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.compare-frame:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 4px; }

/* ---------- 4. inside ---------- */
.inside { padding: 0 var(--pad) clamp(90px, 12vw, 180px); }
.inside h2 { font-size: clamp(48px, 7vw, 120px); margin-bottom: clamp(36px, 5vw, 70px); }
.inside-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 44px); align-items: start; }
.inside figure { margin: 0; }
.inside figure:nth-child(even) { margin-top: clamp(40px, 7vw, 120px); }
.phone-small { --w: 100%; max-width: 280px; }
.phone-small::after { top: 3.2%; height: 4.2%; }
.inside .phone-small { border-radius: 14% / 6.5%; padding: 3.4%; }
.inside .screen { border-radius: 11% / 5.1%; }
.inside figcaption { margin-top: 18px; max-width: 24ch; color: var(--ink-2); }
.inside figcaption strong { color: var(--ink); }

/* ---------- 5. people and privacy ---------- */
.people {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 5vw; align-items: center;
  padding: clamp(90px, 12vw, 180px) var(--pad); background: var(--ink); color: var(--paper);
  overflow-x: clip;
}
.people h2 { font-size: clamp(48px, 6.4vw, 110px); margin-bottom: 26px; max-width: 10ch; }
.people-copy p { margin: 0; max-width: 30em; color: color-mix(in srgb, var(--paper) 78%, transparent); }
.people-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 34px); align-items: start; }
.expert {
  margin: 0; background: var(--white); color: var(--ink); border-radius: 26px; padding: 10px 10px 20px;
  box-shadow: 0 40px 70px -40px rgba(0,0,0,.8);
  transition: rotate .6s var(--ease-out), translate .6s var(--ease-out);
}
.expert img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.expert figcaption { padding: 16px 8px 0; display: grid; gap: 8px; justify-items: start; }
.expert strong { font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 3.2vw, 52px); line-height: .9; }
.expert span { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.expert .pill { font-style: normal; margin-top: 4px; }
.expert-giulia { rotate: -4deg; }
.expert-sissi { rotate: 3.5deg; margin-top: clamp(40px, 6vw, 90px); }
.expert:hover { rotate: 0deg; translate: 0 -8px; }
@media (prefers-reduced-motion: no-preference) {
  .js .expert { opacity: 0; translate: 0 60px; transition: rotate .6s var(--ease-out), translate 1s cubic-bezier(.34, 1.4, .64, 1), opacity .6s ease; }
  .js .people.in .expert { opacity: 1; translate: 0 0; }
  .js .people.in .expert-sissi { transition-delay: .15s; }
  .js .people.in .expert:hover { translate: 0 -8px; }
}

.privacy { padding: clamp(80px, 10vw, 150px) var(--pad); max-width: 1100px; }
.privacy h2 { font-weight: 600; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.12; margin: 0 0 18px; }
.privacy p { color: var(--ink-2); margin: 0; max-width: 40em; }

/* ---------- 6. download ---------- */
.download {
  padding: clamp(90px, 12vw, 180px) var(--pad);
  background: var(--drape); color: var(--on-drape);
  transition: background-color .6s ease;
}
.download h2 { font-size: clamp(52px, 8vw, 140px); max-width: 12ch; margin-bottom: 22px; }
.download { position: relative; overflow: hidden; }
.download > :not(.fan) { position: relative; z-index: 1; }
.download p { margin: 0 0 30px; }
.download .fan { inset: 0 0 0 auto; width: 46%; translate: 0 34%; opacity: .95; }
.download .fan .chip { box-shadow: 0 16px 40px -18px rgba(22,21,19,.35), inset 0 0 0 2px color-mix(in srgb, var(--on-drape) 30%, transparent); }

.foot { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; padding: 30px var(--pad) max(30px, env(safe-area-inset-bottom)); font-size: 14px; color: var(--ink-2); }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 18px; }

/* ---------- iPad and narrower ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; text-align: left; }
  .hero h1 { font-size: clamp(48px, 11.5vw, 120px); }
  .hero-stage { min-height: 640px; }
  .phone-hero { --w: clamp(210px, 34vw, 330px); }
  .session-sticky { grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 18px 5vw; }
  .session-head { grid-column: 1 / -1; grid-row: 1; max-width: 22ch; }
  .session-head p { display: none; }
  .phone-session { grid-column: 2; grid-row: 2; --w: clamp(200px, 40vw, 360px); }
  .session-head h2 { font-size: clamp(40px, 7vw, 72px); }
  .session-notes { grid-column: 1; grid-row: 2; }
  .session-dots { grid-column: 1 / -1; grid-row: 3; }
  .inside-row { grid-template-columns: repeat(2, 1fr); }
  .inside figure:nth-child(even) { margin-top: 60px; }
  .people { grid-template-columns: 1fr; }
  .people-cards { max-width: 640px; }
}

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .bar-cta { font-size: 14px; padding: 8px 14px; }
  .hero { padding-top: 96px; gap: 10px; }
  .hero h1 { font-size: clamp(38px, 11.2vw, 60px); }
  .hero-stage { min-height: 520px; order: 2; }
  .fan .chip { width: 74px; height: 250px; margin: calc(250px * -.92) 0 0 -37px; border-radius: 18px; }
  .phone-hero { --w: 210px; }
  .store { min-width: 0; flex: 1 1 150px; font-size: 17px; gap: 9px; padding: 8px 12px; }
  .store-icon { width: 24px; height: 24px; }

  .session { height: 250svh; }
  .session-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; padding-top: 80px; gap: 12px; justify-items: center; text-align: center; }
  .session-head { grid-column: 1; max-width: none; }
  .session-head h2 { font-size: 34px; margin: 0; }
  .phone-session { grid-column: 1; grid-row: 2; --w: min(46vw, 31svh); align-self: center; }
  .session-notes { grid-column: 1; grid-row: 3; min-height: 6.2em; max-width: 30ch; width: 100%; }
  .session-notes li { left: 0; right: 0; }
  .session-notes strong { font-size: 34px; margin-bottom: 4px; }
  .session-dots { grid-column: 1; grid-row: 4; gap: 8px; }
  .session-dots button { width: 26px; height: 26px; }

  .compare { grid-template-columns: 1fr; }
  .compare-frame { width: 100%; max-width: 380px; justify-self: center; }

  .inside-row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px;
    margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 10px; scrollbar-width: none;
  }
  .inside-row::-webkit-scrollbar { display: none; }
  .inside figure { flex: 0 0 62vw; scroll-snap-align: center; }
  .inside figure:nth-child(even) { margin-top: 0; }
  .foot { flex-direction: column; }
  .download .fan { display: none; }
  .people-cards { gap: 12px; }
  .expert { border-radius: 20px; padding: 7px 7px 14px; }
  .expert figcaption { padding: 10px 4px 0; }
  .expert span { font-size: 13px; }
  .expert .pill { white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .session-word span { transform: none; }
}


/* =========================================================
   Colour effects
   ========================================================= */

/* every colour named on the page */
.t-muschio { --c: #77915A; --t: #fff; } .t-ocra { --c: #DD9E36; --t: #161513; }
.t-pino { --c: #37422B; --t: #fff; } .t-biscotto { --c: #E8B687; --t: #161513; }
.t-rosa { --c: #A15C55; --t: #fff; } .t-mattone { --c: #B24D49; --t: #fff; }
.t-arancio { --c: #F19E1B; --t: #161513; } .t-corallo { --c: #FF7F61; --t: #161513; }
.t-lavanda { --c: #B6A6D6; --t: #161513; } .t-fucsia { --c: #D1157A; --t: #fff; }
.t-petrolio { --c: #1F5F64; --t: #fff; } .t-blu { --c: #1F4FD8; --t: #fff; }
.t-salvia { --c: #9EB49A; --t: #161513; } .t-cipria { --c: #E8B4BC; --t: #161513; }
.t-ruggine { --c: #B7472A; --t: #fff; } .t-senape { --c: #D4A017; --t: #161513; }
.t-oliva { --c: #6B7A3A; --t: #fff; } .t-cammello { --c: #C19A6B; --t: #161513; }
.t-terracotta { --c: #C8643B; --t: #fff; }

/* ---- hero: paint, glow, a fan you can touch ---- */
.paint { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-stage { z-index: 1; }
.glow {
  position: absolute; left: 50%; top: 48%; width: min(160%, 1000px); aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, var(--hero-drape, var(--muschio)) 0%, transparent 62%);
  opacity: .7; filter: blur(20px);
  transition: --hero-drape 1.2s ease;
}
@property --hero-drape { syntax: "<color>"; inherits: true; initial-value: #77915A; }
@media (prefers-reduced-motion: no-preference) {
  .glow { animation: breathe 7s ease-in-out infinite alternate; }
}
@keyframes breathe { to { scale: 1.12; opacity: .85; } }

.hero .fan .chip { pointer-events: auto; cursor: pointer; transition: --ty .45s var(--ease-out), filter .3s; }
@property --ty { syntax: "<length>"; inherits: false; initial-value: 0px; }
.hero .fan .chip:hover { --ty: -22px; filter: brightness(1.06); }
.hero .fan .chip.picked { --ty: -34px; }

/* ---- crossing ribbons ---- */
.ribbons { position: relative; height: clamp(170px, 20vw, 260px); overflow: hidden; margin: -10px 0; z-index: 1; }
.ribbon {
  position: absolute; left: -10%; width: 120%; top: 50%;
  padding: 12px 0; overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(22,21,19,.5);
}
.r1 { background: var(--ink); rotate: -4deg; translate: 0 -78%; }
.r2 { background: var(--white); rotate: 3deg; translate: 0 -12%; }
.track { display: flex; gap: 12px; width: max-content; animation: run 46s linear infinite; }
.r2 .track { animation-direction: reverse; animation-duration: 52s; }
@keyframes run { to { transform: translateX(-50%); } }
.tag {
  flex: none; padding: 8px 20px 6px; border-radius: 999px;
  background: var(--c); color: var(--t);
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(24px, 2.6vw, 40px); line-height: 1;
}

/* ---- the flood: the next drape spreads from the phone ---- */
.flood {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--flood, transparent);
  clip-path: circle(0 at var(--fx, 50%) var(--fy, 50%));
}
.flood.go { animation: flood .85s cubic-bezier(.45, 0, .2, 1) forwards; }
@keyframes flood { to { clip-path: circle(150% at var(--fx, 50%) var(--fy, 50%)); } }
.session-word { z-index: 0; }

/* ---- the seasons wheel ---- */
.seasons {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5vw;
  padding: clamp(90px, 12vw, 180px) var(--pad);
  overflow-x: clip;
}
.seasons h2 { font-size: clamp(48px, 6.4vw, 110px); margin-bottom: 24px; max-width: 11ch; }
.seasons-copy > p { color: var(--ink-2); max-width: 32em; margin: 0 0 28px; }
.season-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.season-tabs button {
  font: 600 16px/1 "Barlow", sans-serif; padding: 12px 18px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  transition: background .3s, color .3s, transform .3s var(--ease-out);
}
.season-tabs button:hover { transform: translateY(-2px); }
.season-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.season-desc { margin: 0 0 16px; font-weight: 600; }
.season-swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; max-width: 560px; }
.season-swatches li { font-size: 13px; line-height: 1.2; color: var(--ink-2); }
.season-swatches .sw {
  display: block; aspect-ratio: 3 / 4; border-radius: 12px; margin-bottom: 8px;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(22,21,19,.08);
}
@media (prefers-reduced-motion: no-preference) {
  .season-swatches.deal li { animation: deal .7s var(--ease-out) both; animation-delay: calc(var(--i) * 60ms); }
}
@keyframes deal { from { opacity: 0; transform: translateY(26px) rotate(-8deg) scale(.9); } }

.wheel-wrap { position: relative; width: min(100%, 560px); aspect-ratio: 1; justify-self: center; }
.wheel {
  position: absolute; inset: 0;
  rotate: var(--rot, 0deg);
  transition: rotate 1.1s cubic-bezier(.2, .8, .2, 1);
}
.wedge {
  position: absolute; inset: 0;
  background: var(--c);
  clip-path: polygon(50% 50%, 50% -10%, 65% -10%);
  -webkit-mask: radial-gradient(circle closest-side, transparent 52%, #000 52.6% 90%, transparent 90.6%);
  mask: radial-gradient(circle closest-side, transparent 52%, #000 52.6% 90%, transparent 90.6%);
  rotate: var(--a);
  transition: translate .6s var(--ease-out), filter .6s ease, opacity .6s ease;
}
.wheel.has-pick .wedge { filter: saturate(.55); opacity: .55; }
.wheel.has-pick .wedge.picked { filter: none; opacity: 1; translate: calc(sin(var(--a) + 7.5deg) * 4.5%) calc(cos(var(--a) + 7.5deg) * -4.5%); }
.wheel-hole {
  position: absolute; inset: 24%; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
}
.wheel-hole span {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(30px, 4vw, 58px); line-height: 1;
  transition: opacity .3s;
}
.wheel-hole span.swap { opacity: 0; }
.wheel-pointer {
  position: absolute; left: 50%; top: -2%; width: 0; height: 0; translate: -50% 0;
  border: 14px solid transparent; border-top: 20px solid var(--ink);
}

@media (max-width: 1024px) {
  .seasons { grid-template-columns: 1fr; }
  .wheel-wrap { width: min(86vw, 520px); order: -1; }
}
@media (max-width: 640px) {
  .season-swatches { grid-template-columns: repeat(3, 1fr); }
  .ribbons { height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; }
  .flood { display: none; }
}


/* ---- pills, as on the store pictures ---- */
.pill {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--white);
  font: 700 12px/1 "Space Mono", ui-monospace, monospace; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 10px 24px -10px rgba(22,21,19,.6);
  white-space: nowrap;
}
.compare-pill { position: absolute; bottom: 18px; z-index: 2; pointer-events: none; }
.compare-pill.left { left: 16px; rotate: -3deg; }
.compare-pill.right { right: 16px; rotate: 3deg; background: var(--white); color: var(--ink); }

/* ---- Dentro Cromia: the widget leaves the phone, enlarged ---- */
.inside-row { align-items: start; }
.feat-stage { position: relative; max-width: 280px; padding: 0 0 34px; }
.feat .phone-small { margin: 0 auto; }
.widget {
  position: absolute; z-index: 2; height: auto; max-width: none;
  border-radius: 16px; background: var(--white); padding: 5px;
  box-shadow: 0 30px 50px -24px rgba(22,21,19,.55), 0 0 0 1px rgba(22,21,19,.06);
}
.feat-result .widget { left: -9%; width: 118%; top: 50%; }
.feat-palette .widget { left: -11%; width: 122%; top: 21%; }
.feat-makeup .widget { left: -13%; width: 126%; top: 60%; }
.feat-compare .widget { width: 50%; top: 17%; padding: 4px; }
.feat-compare .card-a { left: -10%; rotate: -7deg; }
.feat-compare .card-b { right: -10%; rotate: 6deg; }
.feat-pill { position: absolute; z-index: 3; bottom: 6px; left: 50%; translate: -50% 0; rotate: -4deg; }

@media (prefers-reduced-motion: no-preference) {
  .js .feat .widget, .js .feat .feat-pill { opacity: 0; transition: opacity .5s ease, transform .9s cubic-bezier(.34, 1.56, .64, 1); }
  .js .feat .widget { transform: scale(.72) translateY(40px); }
  .js .feat .feat-pill { transform: translateY(24px); transition-delay: .25s; }
  .js .feat.in .widget, .js .feat.in .feat-pill { opacity: 1; transform: none; }
  .js .feat.in .card-b { transition-delay: .12s; }
}

@media (max-width: 1024px) {
  .feat-stage { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .inside-row { padding-top: 10px; padding-bottom: 24px; }
  .inside figure { flex: 0 0 64vw; }
  .feat-stage { max-width: none; margin: 0 9%; }
  .pill { font-size: 11px; padding: 9px 13px; }
}

.expert .ig {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
  line-height: 1.25;
}
.expert .ig svg { width: 18px; height: 18px; flex: none; }
.expert .ig:hover { text-decoration: underline; }
@media (max-width: 640px) { .expert .ig { font-size: 12px; } }
