/* All fonts are served from the site itself: no request to Google or any other third party. */
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-var.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --cream: #FEF7F2;
  --burgundy: #65010E;
  --rose: #99797D;
  --pale: #F3E0DE;
  --offwhite: #FFF8F3;
  --chosen: #2E5E3F;

  --display: "Fraunces", Georgia, serif;
  --body: "Public Sans", system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --measure: 34rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--burgundy);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 18ch; text-wrap: balance; }
p { text-wrap: pretty; }
h3 { font-size: 1.45rem; line-height: 1.2; }
p { margin: 0; max-width: var(--measure); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.5rem; }
.logo img { display: block; height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); font-size: 0.95rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.lang { color: var(--rose); }
.lang strong { color: var(--burgundy); font-weight: 600; }
@media (max-width: 720px) { .nav .section-link { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); text-align: center; }
/* Hero lockup: the hat is as tall as the C and stands on the baseline, with a small overshoot
   top and bottom like a round letter. The dotted master cut needs the hat at 130 px or more,
   so smaller screens get the XL cut. */
.lockup {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.22em;
  margin: 0 auto;
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  font-size: 190px;
  line-height: 1;
}
.lockup picture { display: flex; }
.lockup img { display: block; height: 1.06cap; width: auto; margin-bottom: -0.03cap; }
@media (max-width: 999px) { .lockup { font-size: clamp(84px, 19vw, 170px); } }
/* Sits right under the big lockup, like a descriptor of the name. The descender space of the
   lockup's line box is pulled back so the two read as one unit. */
.eyebrow { margin: -0.15em auto clamp(2.5rem, 6vw, 4rem); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose); }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  font-weight: 450;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 auto;
  text-wrap: balance;
}
.hero-foot {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.hero-foot p { font-size: 1.2rem; line-height: 1.55; max-width: 58rem; }
@media (max-width: 999px) { .hero-foot p { max-width: 36rem; } .wide-only { display: none; } }
.credential { font-size: 0.95rem; color: var(--rose); text-decoration: none; border-bottom: 1px solid var(--pale); padding-bottom: 2px; }
.credential:hover { color: var(--burgundy); border-color: var(--burgundy); }
.actions { display: flex; gap: 1.5rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--burgundy);
  color: var(--offwhite);
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.btn:hover { background: #4e000a; }
.text-link { text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- generic section ---------- */
section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split p + p { margin-top: 1rem; }
.lede { font-size: 1.2rem; line-height: 1.55; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- the catalogue narrowing down (pinned while scrolling) ---------- */
.narrow { height: 420vh; padding: 0; border-top: 1px solid var(--pale); overflow-x: clip; }
.narrow-stick { position: sticky; top: 4.5rem; height: calc(100vh - 4.5rem); display: flex; align-items: center; }
.narrow-grid { width: 100%; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.narrow-text p.lede { margin-top: 1.25rem; }
.counter { margin-top: clamp(2rem, 5vw, 3.5rem); display: flex; flex-direction: column; }
.count { font-family: var(--display); font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 1; font-variation-settings: "opsz" 144, "SOFT" 50; font-variant-numeric: tabular-nums lining-nums; }
/* Fixed height, sized for the larger final line, so the column never shifts when the label changes. */
.count-label { margin-top: 0.5rem; color: var(--rose); font-size: 1.05rem; height: 2.2rem; line-height: 2.2rem; white-space: nowrap; }
.count-label.shortlisted, .count-label.decides { color: var(--burgundy); font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.count-label.shortlisted { font-weight: 500; }
.count-label.decides { font-weight: 650; }
.stages-static { display: none; list-style: none; padding: 0; margin: 2rem 0 0; }
.stages-static li { padding: 0.4rem 0; }
.illustrative-dark { margin-top: 1.5rem; font-size: 0.85rem; color: var(--rose); }
.field { position: relative; height: min(62vh, 34rem); }
.field canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* The five suggestions. Their dots fly into the bullet position of each card. */
.shortlist-wrap {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(100%, 30rem);
}
/* The programmer: the flat figure from the system video, entering from the right to pick a title. */
.picker { position: absolute; left: 0; top: 0; width: 180px; height: 276px; overflow: visible; z-index: 3; pointer-events: none; opacity: 0; }
@media (min-width: 1100px) { .shortlist-wrap { left: 42%; } }
/* Narrower desktops: the list moves left and slims down so the figure beside it stays on screen. */
@media (min-width: 1100px) and (max-width: 1365px) { .shortlist-wrap { left: 0; transform: translate(0, -50%); width: min(30rem, calc(100% - 9.5rem)); } }
@media (max-width: 1099px) { .picker { display: none; } }
.shortlist {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.shortlist li {
  position: relative;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.85rem 1.25rem 0.85rem 2.75rem;
  border-radius: 14px;
  background: var(--offwhite);
  border: 1px solid var(--pale);
  opacity: 0;
}
.shortlist .name { font-family: var(--display); font-size: 1.2rem; font-variation-settings: "SOFT" 50; line-height: 1.2; }
.shortlist .meta { color: var(--rose); font-size: 0.88rem; white-space: nowrap; }
.shortlist li.chosen { background: var(--chosen); border-color: var(--chosen); color: var(--offwhite); }
.shortlist li.chosen .meta { color: #D6E6D9; }
@media (max-width: 820px) {
  .narrow-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .narrow-text h2 { font-size: 2rem; }
  .narrow-text p.lede { font-size: 1.05rem; margin-top: 0.75rem; }
  .counter { margin-top: 1rem; flex-direction: row; align-items: baseline; gap: 0.75rem; }
  .count { font-size: 2.6rem; }
  .illustrative-dark { display: none; }
  .field { height: 46vh; }
  .shortlist { gap: 0.4rem; }
  .shortlist li { padding: 0.6rem 1rem 0.6rem 2.4rem; }
  .shortlist .name { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .narrow { height: auto; padding: clamp(4.5rem, 10vw, 8rem) 0; }
  .narrow-stick { position: static; height: auto; }
  .counter { display: none; }
  .stages-static { display: block; }
}

/* ---------- cockpit: one window, three generic screens behind tabs ---------- */
.cockpit { background: var(--pale); }
.cockpit .intro { text-align: center; }
.cockpit .intro h2 { max-width: 22ch; margin: 0 auto; }
.cockpit .intro .lede { max-width: 40rem; margin: 1.25rem auto 0; }

/* The window stays pinned while the three tabs advance with the scroll. */
.cockpit-track { height: 300vh; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.cockpit-stick { position: sticky; top: 4.5rem; height: calc(100vh - 4.5rem); display: flex; align-items: center; justify-content: center; }
.cockpit-window {
  width: min(100%, calc((100vh - 4.5rem - 12rem) / 0.54 + 3rem));
  background: var(--cream);
  border-radius: 24px;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  box-shadow: 0 24px 60px -36px rgba(101, 1, 14, 0.45);
}
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.5rem, 2vw, 1.5rem); }
.tab {
  position: relative;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  background: none; border: 0; border-top: 3px solid var(--pale);
  padding: 0.9rem 0.25rem 1.1rem;
  opacity: 0.55; transition: opacity 0.3s, border-color 0.3s;
}
.tab:hover { opacity: 0.85; }
.tab[aria-selected="true"] { opacity: 1; }
.tab .bar { position: absolute; left: 0; top: -3px; height: 3px; width: 0; background: var(--burgundy); }
.tab strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.3rem; font-variation-settings: "SOFT" 50; }
.tab span { display: block; margin-top: 0.3rem; font-size: 0.98rem; line-height: 1.45; }
/* Phones: no pinning (it left a screen of empty space around a short window); the tabs advance on a timer instead. */
@media (max-width: 720px) { .cockpit-track { height: auto; } .cockpit-stick { position: static; height: auto; display: block; } }
@media (max-width: 720px) { .tab span { display: none; } .tab strong { font-size: 0.9rem; line-height: 1.25; hyphens: auto; overflow-wrap: anywhere; } .tabs { gap: 0.5rem; } }

/* The screen is drawn at 1000 x 540 and scaled to fit, so it keeps its proportions on any width. */
.screen-frame { position: relative; border-radius: 14px; overflow: hidden; background: #141414; aspect-ratio: 1000 / 540; }
.screen { position: absolute; left: 0; top: 0; width: 1000px; height: 540px; transform-origin: 0 0; color: #EDEDED; font-family: var(--body); opacity: 0; transition: opacity 0.45s ease; }
.screen.on { opacity: 1; }
.art { position: relative; overflow: hidden; background: #333; }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.picked { outline: 3px solid #3FA36B; outline-offset: 3px; }
.tick { position: absolute; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: #2E5E3F; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.tick svg { width: 15px; height: 15px; }

/* Linear TV: tonight's guide, channel columns on a timeline. */
.tv { padding: 26px 32px; }
.tv-head { display: flex; justify-content: space-between; align-items: center; }
.tv-head b { font-size: 24px; font-weight: 600; }
.pill { font-size: 14px; padding: 7px 14px; border-radius: 8px; background: #2A2A2A; }
.tv-cols { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.badge { width: 38px; height: 38px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 14px; }
.tv-col .slots { border-left: 3px solid var(--line, #555); padding-left: 12px; display: flex; flex-direction: column; gap: 18px; }
.gslot { position: relative; }
.gslot .art { aspect-ratio: 16 / 9; border-radius: 4px; }
.gslot time { display: block; margin-top: 8px; font-size: 15px; color: #CFCFCF; position: relative; }
.gslot time::before { content: ""; position: absolute; left: -19px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--line, #555); }
.gslot .t { display: block; font-size: 16px; font-weight: 600; margin-top: 2px; }
.gslot .tick { right: -8px; top: -8px; }

/* Streaming: a home page, hero banner and a row of thumbnails. */
.st-nav { height: 54px; display: flex; align-items: center; gap: 28px; padding: 0 32px; font-size: 15px; color: #BDBDBD; position: relative; z-index: 2; }
.st-logo { display: grid; place-items: center; width: 34px; height: 26px; border: 2px solid #fff; border-radius: 7px; }
.st-logo svg { width: 11px; height: 12px; margin-left: 2px; }
.st-nav .srch { margin-left: auto; width: 22px; height: 22px; border: 2px solid #BDBDBD; border-radius: 50%; }
.st-hero { position: absolute; left: 0; top: 0; width: 100%; height: 300px; }
.st-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.95) 0%, rgba(20,20,20,.55) 45%, rgba(20,20,20,0) 75%), linear-gradient(0deg, #141414 0%, rgba(20,20,20,0) 35%); }
.st-copy { position: relative; z-index: 2; padding: 50px 32px 0; height: 246px; }
.st-copy b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.st-copy small { display: block; font-size: 15px; color: #CFCFCF; margin-top: 6px; }
.st-btns { margin-top: 20px; display: flex; gap: 12px; }
.st-btns span { font-size: 15px; font-weight: 600; padding: 10px 22px; border-radius: 6px; background: #fff; color: #141414; }
.st-btns span + span { background: rgba(255,255,255,.18); color: #fff; }
.st-row { position: relative; z-index: 2; padding: 0 32px; }
.st-row h4 { margin: 0 0 12px; font-size: 19px; font-weight: 700; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.thumb { position: relative; }
.thumb .art { aspect-ratio: 16 / 9; border-radius: 6px; }
.thumb .dur { position: absolute; right: 8px; top: 8px; z-index: 1; font-size: 12px; font-weight: 600; background: rgba(0,0,0,.65); padding: 2px 7px; border-radius: 4px; }
.thumb .t { display: block; margin-top: 8px; font-size: 14px; color: #DADADA; }
.thumb .tick { left: -8px; top: -8px; }

/* Documentaries: search the archive by theme. */
.doc { padding: 24px 32px; }
.doc h4 { margin: 0 0 16px; font-size: 26px; font-weight: 700; }
.doc-search { height: 46px; border-radius: 23px; background: #262626; display: flex; align-items: center; gap: 12px; padding: 0 18px; font-size: 16px; color: #9E9E9E; }
.doc-search i { width: 16px; height: 16px; border: 2px solid #9E9E9E; border-radius: 50%; }
.chips { margin-top: 16px; display: flex; gap: 10px; }
.chips span { font-size: 14px; padding: 6px 14px; border-radius: 99px; border: 1px solid #444; color: #CFCFCF; }
.chips span.on { background: #EDEDED; color: #141414; border-color: #EDEDED; }
.doc-count { margin-top: 16px; font-size: 14px; color: #9E9E9E; }
.posters { margin-top: 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.poster { position: relative; }
.poster .art { aspect-ratio: 2 / 3; border-radius: 6px; }
.poster .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 45%); }
.poster .t { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; font-size: 15px; font-weight: 700; line-height: 1.2; }
.poster .tick { right: -8px; top: -8px; }

.properties { margin-top: clamp(1rem, 3vw, 2rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.75rem); }
.property { background: var(--cream); border-radius: 18px; padding: 1.75rem; }
.property p { margin-top: 0.5rem; font-size: 1rem; }
@media (max-width: 820px) { .properties { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .cockpit-track { height: auto; }
  .cockpit-stick { position: static; height: auto; }
  .tab[aria-selected="true"] .bar { width: 100%; }
}

/* ---------- how it works ---------- */
.how { background: var(--burgundy); color: var(--offwhite); }
.how .split { align-items: center; }
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; padding: 0.9rem 0; border-top: 1px solid rgba(255, 248, 243, 0.18); }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 1.25rem; opacity: 0.6; line-height: 1.4; }

.loop { width: 100%; max-width: 32rem; justify-self: center; overflow: visible; }
.loop text { font-family: var(--body); font-size: 17px; fill: var(--offwhite); }
.loop .track { fill: none; stroke: none; }
.loop .arc { fill: none; stroke: rgba(255, 248, 243, 0.5); stroke-width: 2; stroke-linecap: round; }
.loop marker path { fill: rgba(255, 248, 243, 0.8); }
.loop .disc { fill: var(--offwhite); }
.loop .vcheck circle { fill: #16A34A; stroke: var(--burgundy); stroke-width: 3; }
.loop .vcheck path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.loop .icon { fill: none; stroke: var(--burgundy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.loop .pulse { fill: var(--offwhite); opacity: 0; }

/* the demo */
.demo {
  /* eight goals, one fixed colour each (validated against the cream cards) */
  --g1: #2a78d6; --g2: #eb6834; --g3: #1baf7a; --g4: #eda100;
  --g5: #e87ba4; --g6: #008300; --g7: #6250d6; --g8: #e34948;
}
.try { margin-top: clamp(3.5rem, 8vw, 6rem); font-family: var(--display); font-weight: 500; font-variation-settings: "opsz" 144, "SOFT" 50; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.try + .demo, .try-sub + .demo { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.try-sub { max-width: none; margin-top: 0.6rem; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 800; line-height: 1.3; }
.demo { margin-top: clamp(3.5rem, 8vw, 6rem); display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }

.slot { background: var(--cream); color: var(--burgundy); border-radius: 22px; padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; }
.slot-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--pale); }
.slot-head h3 { font-size: 1.6rem; }
.slot-head span { color: var(--rose); font-size: 0.9rem; }
.slot-head .illus { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--pale); border-radius: 999px; padding: 0.25rem 0.65rem; cursor: help; }
.titles { list-style: none; padding: 0; margin: 0; flex: 1; display: flex; flex-direction: column; }
.titles li { flex: 1 1 auto; overflow: hidden; display: grid; grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr) auto; column-gap: 1.25rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--pale); }
.titles li:last-child { border-bottom: 0; }
.titles .name { display: block; font-family: var(--display); font-size: 1.12rem; font-variation-settings: "SOFT" 50; line-height: 1.2; }
.titles .meta { display: block; margin-top: 0.15rem; color: var(--rose); font-size: 0.8rem; white-space: nowrap; }
/* The three signals that weigh most for this title, coloured as in the chart. */
.signals { display: grid; gap: 0.3rem; }
.sig { display: grid; grid-template-columns: 5.75rem minmax(0, 1fr); align-items: center; column-gap: 0.6rem; font-size: 0.74rem; line-height: 1; }
.sig i { display: block; height: 6px; border-radius: 999px; background: var(--pale); overflow: hidden; }
.sig b { display: block; height: 100%; border-radius: 999px; background: var(--c); }
.pick { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--chosen); background: transparent; border: 1.5px solid var(--chosen); transition: background-color 0.2s, color 0.2s; }
.pick svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pick:hover, .pick:focus-visible { background: rgba(46, 94, 63, 0.1); }
.titles li.chosen .pick { background: var(--chosen); color: var(--offwhite); }
@media (max-width: 560px) {
  .titles li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.6rem; }
  .signals { grid-column: 1; grid-row: 2; }
  .pick { grid-column: 2; grid-row: 1 / span 2; }
}

.weights {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem); border-radius: 22px;
  background: var(--cream); color: var(--burgundy);
}
.dist { margin: 0; }
.dist svg { display: block; width: 100%; height: auto; overflow: visible; }
.dist .base { stroke: var(--rose); stroke-width: 1; opacity: 0.5; }
.dist .area { opacity: 0; transition: opacity 0.2s; }
.dist .ring { fill: none; stroke: var(--cream); stroke-width: 5; stroke-linejoin: round; }
.dist .curve { fill: none; stroke-width: 2; stroke-linejoin: round; transition: opacity 0.2s, stroke-width 0.2s; }
.dist .hit { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: default; }
.dist .tag { font-family: var(--body); font-size: 13px; font-weight: 650; fill: var(--burgundy); paint-order: stroke; stroke: var(--cream); stroke-width: 4px; pointer-events: none; }
.dist svg.focusing .series { opacity: 0.12; }
.dist svg.focusing .series.on { opacity: 1; }
.dist svg.focusing .series.on .curve { stroke-width: 3; }
.dist svg.focusing .series.on .area { opacity: 0.16; }
.legend { list-style: none; padding: 0; margin: 0.9rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.15rem 1rem; }
.legend button { display: flex; align-items: center; gap: 0.55rem; width: 100%; font: inherit; font-size: 0.9rem; color: var(--burgundy); background: none; border: 0; padding: 0.2rem 0; cursor: default; text-align: left; }
.legend i { flex: none; width: 1.1rem; height: 3px; border-radius: 2px; background: var(--c); }
.legend.focusing button { opacity: 0.4; }
.legend.focusing button.on { opacity: 1; font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.weights h3 { font-size: 1.35rem; }
.weights p { font-size: 0.98rem; margin-top: 0.6rem; }
.weights-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 0.92rem; }
.weights-foot button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; opacity: 0.8; }
.illustrative { margin-top: 1rem; font-size: 0.85rem; opacity: 0.6; }

/* ---------- the Choi mark and emphasis ---------- */
/* "Choi" in running text is set like the logo: Fraunces, heavier, slightly larger. */
.choi {
  font-family: var(--display);
  font-weight: 650;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  font-size: 1.1em;
  line-height: 1;
  letter-spacing: -0.01em;
}
h1 .choi, h2 .choi, h3 .choi { font-weight: 700; font-size: 1em; }
svg .choi { font-weight: 700; }
/* Emphasis stays in the text face, so it never competes with the mark. */
p strong, .steps strong { font-family: var(--body); font-weight: 800; }

/* ---------- hero showcase: four invented screens of the tool, tilted ---------- */
.showcase { position: relative; width: 100%; max-width: 1120px; margin: clamp(3rem, 7vw, 5rem) auto 0; aspect-ratio: 1120 / 560; }
.showcase .stage { position: absolute; left: 0; top: 0; width: 1120px; height: 560px; transform-origin: 0 0; transform: scale(var(--k, 1)); }
.showcase .shot { position: absolute; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 40px 70px -30px rgba(101, 1, 14, 0.35), 0 2px 8px rgba(60, 20, 20, 0.08); animation: drift 9s ease-in-out infinite; }
.showcase .shot img { display: block; width: 100%; height: auto; }
.showcase .shot-1 { left: 10px; top: 205px; width: 480px; z-index: 3; transform: perspective(1400px) rotateY(18deg) rotateX(6deg) rotateZ(-1deg); }
.showcase .shot-2 { left: 230px; top: 25px; width: 440px; z-index: 1; transform: perspective(1400px) rotateY(14deg) rotateX(8deg); animation-delay: -3s; }
.showcase .shot-3 { left: 600px; top: 15px; width: 440px; z-index: 2; transform: perspective(1400px) rotateY(-12deg) rotateX(8deg); animation-delay: -5s; }
.showcase .shot-4 { left: 630px; top: 215px; width: 480px; z-index: 4; transform: perspective(1400px) rotateY(-16deg) rotateX(5deg); animation-delay: -7s; }
/* Today's date over the recommendations screen; box from screen-1.png (x 28, y 114, 12.5 px) at 480 / 1280 scale. */
.showcase .live-date { position: absolute; left: 10.5px; top: 42.75px; font-family: var(--body); font-size: 4.69px; line-height: 6px; color: #64748B; white-space: nowrap; }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .showcase .shot { animation: none; } }

/* ---------- research ---------- */
.facts { margin-top: clamp(3rem, 7vw, 4.5rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.fact { border-top: 1px solid var(--rose); padding-top: 1.25rem; }
.fact p { margin-top: 0.6rem; font-size: 1rem; }
@media (max-width: 1100px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr; } }
.research .properties { margin-top: clamp(3rem, 7vw, 5rem); }
.research .property { background: var(--pale); }
.paper { border-left: 3px solid var(--burgundy); padding-left: 1.5rem; }
.paper .venue { font-family: var(--display); font-size: 1.6rem; line-height: 1.25; font-variation-settings: "SOFT" 50; }
.paper .detail { color: var(--rose); margin-top: 0.4rem; font-size: 0.98rem; }
.paper .links { margin-top: 1.25rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- team ---------- */
.team { border-top: 1px solid var(--pale); }
.people { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(2, minmax(0, 22rem)); gap: clamp(2rem, 5vw, 4rem); }
.person .photo { aspect-ratio: 4 / 5; background: var(--pale); border-radius: 18px; display: grid; place-items: center; font-family: var(--display); font-size: 3.5rem; color: var(--rose); }
.person .photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; border-radius: inherit; display: block; }
.person h3 { margin-top: 1.25rem; }
.person .name-row { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.25rem; }
.person .name-row h3 { margin-top: 0; }
.person .role { color: var(--rose); margin-top: 0.2rem; }
.person p:not(.role) { margin-top: 0.75rem; font-size: 1rem; }
.person .li-link { display: inline-flex; color: var(--burgundy); opacity: 0.85; transition: opacity 0.2s; }
.person .li-link:hover, .person .li-link:focus-visible { opacity: 1; }
.person .li-link svg { display: block; }
@media (max-width: 640px) { .people { grid-template-columns: 1fr; } .person .photo { max-width: 13rem; } }

/* ---------- news ---------- */
.news { padding-top: 0; }
.news-list { list-style: none; padding: 0; margin: 2rem 0 0; max-width: 46rem; }
.news-list li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--pale); }
.news-list time { color: var(--rose); }
@media (max-width: 560px) { .news-list li { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ---------- faq ---------- */
.faq { padding-top: 0; }
.faq-list { margin-top: 2rem; max-width: 46rem; border-bottom: 1px solid var(--pale); }
.faq details { border-top: 1px solid var(--pale); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0; font-family: var(--display); font-weight: 500; font-size: 1.25rem; color: var(--burgundy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body, inherit); font-size: 1.4rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; }
.faq details p { margin: 0 0 1.2rem; max-width: 40rem; }
.faq details a { color: inherit; }

/* ---------- contact ---------- */
.contact { background: var(--pale); }
.contact .email {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 5.5vw, 4rem);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
.contact p { margin-top: 1.25rem; }

footer { padding: 2.5rem 0 3rem; font-size: 0.92rem; color: var(--rose); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
footer nav { display: flex; gap: 1.5rem; }
footer img { height: 26px; display: block; }
footer .copy { flex-basis: 100%; margin: 0; font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip span { transition: none; }
}

/* ---------- legal notice and privacy (legal.html, fr/mentions-legales.html) ---------- */
.legal { padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 9vw, 6rem); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 3rem; max-width: none; }
.legal p, .legal ul { margin-top: 1rem; max-width: 40rem; }
.legal ul { padding-left: 1.2rem; }
.legal li + li { margin-top: 0.4rem; }
.legal .updated { color: var(--rose); font-size: 0.92rem; margin-top: 0.75rem; }
/* A value Théo must fill in before the site goes live. Loud on purpose. */
.todo { background: #FFE58A; color: #3A2A00; padding: 0 0.3em; border-radius: 3px; font-weight: 700; }
