/* Novly — one motif: the ribbon bookmark that draws the N (its diagonal and its swallowtail notch). */

@font-face { font-family: "Lora"; src: url("lora-var.ttf") format("truetype"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("lora-italic-var.ttf") format("truetype"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("dm-sans-var.ttf") format("truetype"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  /* brand: ink indigo, paper, ribbon gold */
  --ground: #f5f2ea;
  --tone: #ebe5d8;
  --ink: #1d1a30;
  --ink-soft: #57536a;
  --accent: #4a35c6;
  --accent-strong: #3a28a3;
  --accent-ink: #ffffff;
  --night: #221a5c;
  --night-ink: #f3eee4;
  --gold: #f4b25f;
  --gold-ink: #241a12;
  --lilac: #e6e0fa;
  --paper: #fdfcf9;
  --cream: #f3ead7;

  --serif: "Lora", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  /* the five sizes */
  --s-display: clamp(52px, 6.4vw, 104px);
  --s-heading: clamp(36px, 4.2vw, 68px);
  --s-statement: clamp(22px, 2.2vw, 34px);
  --s-body: 18px;
  --s-small: 15px;

  --m: clamp(16px, 2.8vw, 44px);
  --section: clamp(120px, 13vw, 210px);
  --notch: clamp(28px, 3.4vw, 56px);
  --cut: clamp(72px, 9vw, 150px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 260ms;
  --t-reveal: 820ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #14112a;
    --tone: #1f1a3d;
    --ink: #efeae1;
    --ink-soft: #b6b0c9;
    --accent: #8f7bff;
    --accent-strong: #a796ff;
    --accent-ink: #14112a;
    --night: #2b2273;
    --lilac: #2a2456;
    --cream: #e9dfca;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--s-body)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

h1, h2 { font-family: var(--serif); font-weight: 450; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
h2 { font-size: var(--s-heading); }
.statement { font-family: var(--serif); font-size: var(--s-statement); line-height: 1.32; letter-spacing: -0.015em; max-width: 34ch; text-wrap: pretty; }

.shell { width: min(100% - var(--m) * 2, 1520px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; z-index: 20; left: 16px; top: 12px; padding: 10px 18px; background: var(--ink); color: var(--ground); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* The motif ------------------------------------------------------------- */
/* Buttons are ribbons: square, with the swallowtail notch at their end. */
.ribbon-button {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.9em 0 1.25em;
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--s-small)/1 var(--sans); letter-spacing: -0.01em; text-decoration: none;
  border: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.75em) 50%, 100% 100%, 0 100%);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.ribbon-button:active { transform: scale(0.97); }
.small-button { min-height: 42px; padding: 0 1.7em 0 1em; }
@media (hover: hover) and (pointer: fine) { .ribbon-button:hover { background: var(--accent-strong); } }

/* Pictures sit inside the ribbon's end: the bottom edge carries the notch. */
.notch-mask { clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - var(--notch)), 0 100%); overflow: hidden; }

/* Navigation --------------------------------------------------------------- */
.nav { position: relative; z-index: 3; display: flex; align-items: center; gap: 32px; height: 92px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 var(--s-statement)/1 var(--serif); letter-spacing: -0.045em; text-decoration: none; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: var(--s-small); }
.nav-links a { text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover, .footer a:hover { text-decoration-color: currentColor; } }

/* Hero — fragment on a shaped stage ---------------------------------------------- */
.hero { position: relative; min-height: max(760px, 100svh); margin-top: -92px; padding-top: 92px; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; padding-top: clamp(40px, 7vh, 96px); pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.hero h1 { font-size: var(--s-display); max-width: 9.5em; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }
.hero-lead { margin-top: 28px; max-width: 38ch; font-size: var(--s-body); line-height: 1.5; }
.hero-action { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 30px; }
.note { font-size: var(--s-small); color: var(--ink-soft); }

.stage {
  position: absolute; z-index: 3;
  left: 46%; right: 0; top: 40%; bottom: 0;
  background: var(--accent);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 calc(var(--cut) * 1.05));
}
@media (prefers-color-scheme: dark) { .stage { background: var(--night); } }

/* The live manuscript: the product's own page, at true size. */
.page-ui {
  position: absolute; left: calc(var(--cut) * 0.9); top: 92px;
  width: min(640px, calc(100% - var(--cut) * 0.9 - 40px));
  background: var(--paper); color: #1c1917;
  border-radius: 12px 12px 0 0;
  font-family: var(--sans);
}
.page-ui__bar { display: flex; justify-content: space-between; gap: 16px; padding: 14px 22px; background: #f1efe9; border-radius: 12px 12px 0 0; font-size: 13px; color: #55515f; }
.page-ui__book { font-weight: 600; color: #1c1917; }
.page-ui__paper { padding: 26px 40px 160px; }
.page-ui__title { font: 600 30px/1.1 var(--serif); letter-spacing: -0.03em; margin-bottom: 14px; }
.manuscript { position: relative; }
.manuscript__mirror, .manuscript__input {
  margin: 0; padding: 0; border: 0;
  font: 400 17px/1.62 var(--serif); letter-spacing: 0; word-spacing: 0;
  white-space: pre-wrap; overflow-wrap: break-word;
  width: 100%;
}
.manuscript__mirror { color: #1c1917; min-height: 18em; }
.manuscript__mirror mark { color: inherit; border-radius: 4px; padding: 0 0.12em; margin: 0 -0.12em; background: color-mix(in srgb, var(--c) 18%, transparent); text-decoration: underline 2px color-mix(in srgb, var(--c) 60%, transparent); text-underline-offset: 0.18em; }
.manuscript__input {
  position: absolute; inset: 0; height: 100%;
  background: transparent; color: transparent; caret-color: #4a35c6;
  resize: none; outline: none;
}
.manuscript__input::selection { background: rgba(74, 53, 198, 0.25); color: transparent; }
.page-ui:focus-within { outline: 3px solid var(--gold); outline-offset: 4px; }
.menu-ui {
  position: absolute; left: 0; bottom: -12px; transform: translateY(100%);
  width: 280px; padding: 6px; background: #ffffff; color: #1c1917;
  border-radius: 10px; box-shadow: 0 18px 40px rgba(20, 12, 61, 0.22); /* taste-skill-ignore: a real dropdown overlay */
  font-size: 14px; z-index: 4;
  transform-origin: top left;
  transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out);
}
.menu-ui[hidden] { display: block; opacity: 0; pointer-events: none; transform: translateY(100%) scale(0.97); }
.menu-ui button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: transparent; border-radius: 7px; text-align: left; }
.menu-ui button.is-active, .menu-ui button:hover { background: #ece8fb; }
.menu-ui .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c); flex: none; }
.menu-ui small { margin-left: auto; color: #6d6878; font-size: 13px; }
.mentions-ui { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; font-size: 13px; min-height: 30px; }
.mentions-ui span { padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, #fff); color: color-mix(in srgb, var(--c) 42%, #1c1917); }
.mentions-ui b { font-weight: 600; }

/* The real thing — signature shutter ----------------------------------------------- */
.room { padding-top: var(--section); }
.room-copy { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; }
.room-copy h2 { grid-column: 1 / 7; }
.room-copy .statement { grid-column: 8 / 13; }
.room-shot { margin-top: 64px; }
.room-shot .shutter { background: transparent; }
.room-shot img { width: 100%; }
.room-shot figcaption { margin-top: 18px; font-size: var(--s-small); color: var(--ink-soft); }

/* Showcase — one control, blown up ----------------------------------------------- */
.showcase {
  position: relative; overflow: hidden; margin-top: var(--section);
  min-height: 92svh; padding-block: clamp(56px, 8vw, 110px);
  background: var(--gold); color: var(--gold-ink);
  transition: background-color 700ms var(--ease-in-out), color 700ms var(--ease-in-out);
}
.showcase[data-state="night"] { background: var(--night); color: var(--night-ink); }
.showcase-copy { position: relative; z-index: 2; }
.showcase h2 { font-size: var(--s-heading); max-width: 11em; }
.showcase-copy > p { margin-top: 22px; max-width: 44ch; font-size: var(--s-body); }
.showcase-copy .providers { font-size: var(--s-small); max-width: 52ch; }
.continuation { min-height: 7.5em; max-width: 40ch; margin-top: 30px !important; font: italic 400 var(--s-body)/1.55 var(--serif); }
.continuation:empty { min-height: 0; }
.control-wrap { position: absolute; right: -9vw; bottom: 9svh; z-index: 1; font-size: clamp(56px, 11.5svh, 136px); }
.continue-ui {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.42em 0.95em 0.42em 0.7em; border: 0; border-radius: 999px;
  background: #4f46e5; color: #ffffff; /* taste-skill-ignore: the app's own button colour (data-ui) */
  font: 500 1em/1.1 var(--sans); letter-spacing: -0.03em; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.continue-ui svg { width: 0.85em; height: 0.85em; fill: currentColor; }
.continue-ui:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .continue-ui:hover { background: #4338ca; } }
.showcase[data-state="night"] .continue-ui { background: var(--gold); color: var(--gold-ink); }

/* Features — close-ups on a board ----------------------------------------------- */
.board-section { margin-top: var(--section); padding-inline: 10px; }
.board {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 104px; gap: 8px;
  grid-template-areas:
    "h h h h h h ai ai ai sb sb sb"
    "h h h h h h ai ai ai sb sb sb"
    "in in in in in in ai ai ai sb sb sb"
    "in in in in in in ai ai ai sb sb sb"
    "ch ch ch ch ch ch sh sh sh me me me"
    "ch ch ch ch ch ch sh sh sh me me me"
    "ch ch ch ch ch ch sh sh sh hl hl hl"
    "ch ch ch ch ch ch sh sh sh hl hl hl";
}
.tile { position: relative; overflow: hidden; padding: 20px; }
.t-heading { grid-area: h; background: var(--tone); }
.t-heading h2 { max-width: 9em; }
.t-ai { grid-area: ai; background: var(--lilac); }
.t-sidebar { grid-area: sb; background: var(--cream); color: #1c1917; }
.t-insight { grid-area: in; background: var(--night); color: var(--night-ink); }
.t-chart { grid-area: ch; background: #e8dcc4; color: #1c1917; }
.t-shelf { grid-area: sh; background: var(--tone); }
.t-mentions { grid-area: me; background: var(--accent); color: var(--accent-ink); }
.t-highlight { grid-area: hl; background: var(--gold); color: var(--gold-ink); }

.tile-media { position: absolute; inset: 0 0 100px 0; overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.t-ai .tile-media img { object-position: 20% 8%; transform: scale(1.18); transform-origin: 0 0; }
.t-sidebar .tile-media img { object-position: 0 0; transform: scale(1.3); transform-origin: 0 0; }
.t-shelf .tile-media img { object-position: 50% 0; }
.t-chart .tile-media img { object-position: 40% 35%; }
.tile figcaption, .tile .caption { position: absolute; left: 20px; right: 20px; bottom: 20px; font-size: var(--s-small); line-height: 1.4; }
.tile figcaption strong, .tile .caption strong { display: block; font-size: var(--s-body); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 2px; }

.insight-ui {
  position: absolute; left: 20px; top: 20px; right: -10%;
  display: grid; grid-template-columns: auto 1fr; gap: 0.3em 0.55em; align-items: start;
  padding: 0.6em 0.8em; border-radius: 0.5em; background: #ffffff; color: #1c1917;
  font: 500 clamp(16px, 1.55vw, 24px)/1.25 var(--sans);
}
.insight-ui__dot { width: 0.5em; height: 0.5em; margin-top: 0.4em; border-radius: 50%; background: #f59e0b; }
.insight-ui__actions { grid-column: 2; display: flex; gap: 0.5em; font-size: 0.6em; }
.insight-ui__actions span { padding: 0.25em 0.7em; border-radius: 999px; background: #ece8fb; color: #3a28a3; }
.insight-ui__actions span + span { background: #f1efe9; color: #55515f; }

.chips-ui { position: absolute; left: 20px; top: 22px; display: flex; flex-wrap: wrap; gap: 0.35em; width: 160%; font: 500 clamp(18px, 1.9vw, 30px)/1 var(--sans); }
.chips-ui span { padding: 0.35em 0.6em; border-radius: 999px; background: #ffffff; color: color-mix(in srgb, var(--c) 42%, #1c1917); white-space: nowrap; }
.chips-ui b { font-weight: 700; }
.highlight-ui { position: absolute; left: 20px; top: 26px; width: 150%; font: 400 clamp(22px, 2.4vw, 38px)/1.2 var(--serif); }
.highlight-ui mark { background: rgba(255, 255, 255, 0.72); color: #1c1917; padding: 0 0.15em; }

/* The band ------------------------------------------------------------------- */
.ribbon-band { margin-top: var(--section); overflow: hidden; }
.ribbon-band__strip {
  height: clamp(44px, 5vw, 80px); width: 86%; margin-left: -4%;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--notch)) 50%, 100% 100%, 0 100%);
}

/* About — words and pictures ------------------------------------------------- */
.carroll { padding-top: clamp(80px, 9vw, 140px); }
.carroll-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: start; }
.carroll-copy { grid-column: 1 / 6; padding-top: 24px; }
.carroll-copy .statement { margin-top: 28px; }
.carroll-detail { margin-top: 24px; max-width: 40ch; }
.carroll-main { grid-column: 7 / 12; grid-row: 1 / 3; background: #d9c7a3; }
.carroll-main img { width: 100%; transform-origin: center; }
.carroll-small { grid-column: 1 / 6; grid-row: 2; align-self: start; margin-top: 48px; background: #fff; }
.carroll-small video { display: block; width: 100%; height: auto; aspect-ratio: 854 / 436; object-fit: cover; }
.credit { grid-column: 7 / 12; margin-top: 16px; font-size: var(--s-small); color: var(--ink-soft); }

/* How it works — stages as one bar ------------------------------------------------- */
.journey { padding-top: var(--section); }
.journey h2 { font-size: var(--s-display); max-width: 11em; }
.bar, .bar-notes { display: flex; gap: 6px; }
.bar { margin-top: 64px; height: 22vh; min-height: 150px; }
.bar__seg { flex: var(--grow) 1 0; min-width: 12%; padding: 20px; transform-origin: left center; }
.bar__label { font: 500 var(--s-statement)/1.1 var(--serif); letter-spacing: -0.02em; }
.s1 { background: var(--gold); color: var(--gold-ink); }
.s2 { background: var(--accent); color: var(--accent-ink); }
.s3 { background: var(--night); color: var(--night-ink); }
.s4 { background: var(--lilac); color: var(--ink); }
.bar-notes { margin-top: 18px; }
.bar-notes p { flex: var(--grow) 1 0; min-width: 12%; font-size: var(--s-body); line-height: 1.4; padding-right: 16px; text-wrap: pretty; }

/* List — one item per poster line ------------------------------------------------ */
.poster { margin-top: var(--section); padding-block: 80px; background: var(--night); color: var(--night-ink); }
.poster-list { padding-inline: var(--m); }
.poster-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.poster-item { font: 450 var(--s-display)/0.94 var(--serif); letter-spacing: -0.045em; text-transform: lowercase; transition: color var(--t-hover) ease; }
.poster-fact { display: inline-flex; align-items: center; gap: 12px; font-size: var(--s-body); font-variant-numeric: tabular-nums; text-align: right; }
.poster-fact::before { content: ""; width: 12px; height: 18px; background: var(--gold); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); flex: none; }
@media (hover: hover) and (pointer: fine) { .poster-list li:hover .poster-item { color: var(--gold); } }

/* FAQ — tabbed index cards ----------------------------------------------------- */
.faq { padding-top: var(--section); }
.faq-inner { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
.faq h2 { grid-column: 3 / 11; }
.cards { grid-column: 3 / 11; margin-top: 48px; }
.card { position: relative; margin-top: -16px; padding-top: 40px; }
.card:first-child { margin-top: 0; }
.card:nth-child(3n + 1) { --card: var(--lilac); --card-ink: var(--ink); }
.card:nth-child(3n + 2) { --card: var(--cream); --card-ink: #1c1917; }
.card:nth-child(3n + 3) { --card: var(--tone); --card-ink: var(--ink); }
.card__tab {
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: var(--card-ink);
}
.card__topic {
  position: absolute; top: 0; left: calc(var(--n) * (100% - 200px) / 5);
  display: flex; align-items: center; height: 41px; width: 200px; padding: 0 22px;
  background: var(--card); font-size: var(--s-small);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
}
.card__q { display: block; padding: 22px 26px 34px; background: var(--card); font: 500 var(--s-body)/1.3 var(--sans); letter-spacing: -0.01em; }
.card__panel { display: grid; grid-template-rows: 0fr; background: var(--card); color: var(--card-ink); transition: grid-template-rows 360ms var(--ease-out); }
.card__panel > div { overflow: hidden; }
.card__panel p { max-width: 50ch; padding: 0 26px 34px; font-size: var(--s-body); }
.card.is-open .card__panel { grid-template-rows: 1fr; }
@media (hover: hover) and (pointer: fine) { .card__tab:hover .card__q { text-decoration: underline; text-decoration-thickness: 0.06em; } }

/* CTA — a sentence with a blank -------------------------------------------------- */
.cta { padding-block: var(--section); }
.cta-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; }
.cta-sentence { grid-column: 1 / 10; display: flex; flex-wrap: wrap; align-items: last baseline; gap: 18px 28px; }
.cta-sentence h2 { font-size: var(--s-heading); line-height: 1.12; }
.cta-sentence h2 > span { display: block; white-space: nowrap; }
.cta-sentence input {
  width: 6.4em; height: 1.08em; padding: 0 0.25em; margin-left: 0.1em; vertical-align: baseline;
  border: 0; background: var(--tone); color: var(--ink); letter-spacing: -0.03em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.28em) 50%, 100% 100%, 0 100%);
}
.cta-sentence input::placeholder { color: var(--ink-soft); opacity: 0.7; }
.cta-sentence input:focus { outline: none; background: var(--lilac); }
.cta-button {
  min-height: 56px; padding: 0 2em 0 1.3em; border: 0;
  background: var(--accent); color: var(--accent-ink); font: 500 var(--s-body)/1 var(--sans);
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.8em) 50%, 100% 100%, 0 100%);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.cta-button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .cta-button:hover { background: var(--accent-strong); } }
.cta-note { grid-column: 1 / 8; grid-row: 2; margin-top: 22px; font-size: var(--s-small); color: var(--ink-soft); }
.cover-ui {
  grid-column: 10 / 13; grid-row: 1 / 3; position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  background: #4a35c6; color: #fff8ea; padding: 26px 22px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.cover-ui__ribbon { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--gold); clip-path: polygon(0 0, 22% 0, 100% 74%, 100% 92%, 82% 100%, 0 14%); opacity: 0.95; }
.cover-ui__title { position: relative; font: 500 var(--s-statement)/1.05 var(--serif); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.cover-ui__author { position: relative; margin-top: 8px; font-size: var(--s-small); opacity: 0.85; }

/* Footer — the mark, built large -------------------------------------------------- */
.footer { background: var(--night); color: var(--night-ink); padding-block: clamp(56px, 7vw, 100px) 36px; }
.footer-mark { display: flex; align-items: flex-end; gap: clamp(20px, 4vw, 56px); padding-bottom: clamp(16px, 3vw, 40px); }
.mark-large { width: clamp(120px, 22vw, 300px); height: auto; flex: none; }
.footer-word { font-family: var(--serif); font-size: clamp(56px, 14vw, 220px); line-height: 1; letter-spacing: -0.05em; color: var(--cream); margin: 0 0 -0.13em; }
.m-page { fill: var(--cream); }
.m-band { fill: color-mix(in srgb, var(--cream) 70%, var(--night)); }
.m-ribbon { fill: var(--gold); }
.m-ribbon-band { fill: color-mix(in srgb, var(--gold) 70%, #6b3a10); }
.m-shelf { fill: color-mix(in srgb, var(--accent) 70%, var(--cream)); }
.maker { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 56px; max-width: 880px; }
.maker__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; outline: 3px solid var(--gold); outline-offset: 4px; }
.maker__text { display: grid; gap: 12px; font-size: var(--s-small); line-height: 1.6; color: color-mix(in srgb, var(--night-ink) 82%, transparent); }
.maker__text p { max-width: 62ch; }
.maker__lead { font-family: var(--serif); font-weight: 450; font-size: var(--s-statement); line-height: 1.25; letter-spacing: -0.015em; color: var(--night-ink); }
.maker__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; color: var(--night-ink); }
.maker__links a, .footer-bottom a:not(.ribbon-button) { text-decoration-color: currentColor; text-underline-offset: 3px; }
.footer-links { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; margin-top: 56px; font-size: var(--s-small); }
.footer-links nav { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; }
.footer-links p:first-child { font-weight: 600; margin-bottom: 4px; }
.footer-links a { text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
.footer-credits { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.footer-credits a { text-decoration-color: currentColor; }
.footer-credits p { max-width: 60ch; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 64px; font-size: var(--s-small); }
.footer .ribbon-button { background: var(--gold); color: var(--gold-ink); }

/* Phone ----------------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav { height: 76px; gap: 16px; }
  .nav-links { display: none; }
  .nav .ribbon-button { margin-left: auto; }
  .hero { min-height: 0; margin-top: -76px; padding-top: 76px; }
  .hero h1 { font-size: 11vw; }

  .stage { position: relative; left: auto; top: auto; margin-top: 44px; height: 640px; --cut: 72px; }
  .page-ui { left: 16px; top: 88px; width: calc(100% - 16px); border-radius: 12px 0 0 0; }
  .page-ui__bar { border-radius: 12px 0 0 0; }
  .page-ui__paper { padding: 22px 22px 120px; }
  .page-ui__stats { display: none; }
  .room-copy { display: block; }
  .room-copy .statement { margin-top: 20px; }
  .showcase { min-height: 86svh; }
  .control-wrap { right: auto; left: -4vw; bottom: 7svh; font-size: 13vw; } /* the enlarged product control (data-ui) */

  .board { grid-template-columns: 1fr 1fr; grid-auto-rows: 28vw; gap: 6px;
    grid-template-areas: "h h" "h h" "ai ai" "ai ai" "ai ai" "in in" "in in" "sb me" "sb me" "sb hl" "sb hl" "ch ch" "ch ch" "ch ch" "sh sh" "sh sh" "sh sh"; }
  .insight-ui { right: 14px; font-size: 16px; }
  .t-heading h2, .faq h2, .showcase h2, .room-copy h2, .carroll h2 { font-size: 9vw; }
  .tile figcaption, .tile .caption { left: 14px; right: 14px; bottom: 14px; }

  .tile-media { inset: 0 0 92px 0; }

  .carroll-grid { display: block; }
  .carroll-main { margin-top: 40px; }
  .carroll-small { width: 56%; margin-top: 16px; }
  .credit { margin-top: 12px; }
  .journey h2 { font-size: 11vw; }
  .bar { flex-direction: column; height: 70svh; }
  .bar__seg { flex: var(--grow) 1 0; min-width: 0; min-height: 72px; }
  .bar-notes { flex-direction: column; gap: 6px; }
  .bar-notes p { max-width: 40ch; }
  .poster-list li { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 22px; }
  .poster-item { font-size: 11vw; }
  .poster-fact { text-align: left; }
  .faq h2, .cards { grid-column: 1 / -1; }

  .card__topic { left: calc(var(--n) * (100% - 120px) / 5); width: 120px; padding: 0 14px; }
  .card__q { padding: 18px 20px 28px; }
  .card__panel p { padding: 0 20px 26px; }
  .cta-sentence { grid-column: 1 / -1; }
  .cta-sentence h2 { font-size: 9vw; }
  .cta-sentence input { width: 5.2em; }
  .cta-note { grid-column: 1 / -1; }
  .cover-ui { grid-column: 1 / 7; grid-row: auto; margin-top: 32px; }
  .footer-links nav { grid-column: span 6; }
  .footer-credits { grid-column: 1 / -1; }
  .footer-bottom { flex-wrap: wrap; }
  .maker { grid-template-columns: 1fr; gap: 20px; }
  .maker__photo { width: 76px; height: 76px; }
}

/* Motion ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* hero load: lines rise from behind their baseline, then the rest */
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 1000ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 120ms + 120ms); }
  .js [data-rise] { opacity: 0; transform: translateY(22px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 200ms); }
  .js .stage[data-rise] { transform: translateY(60px); animation-duration: 1200ms; }

  /* sections: parts arrive in reading order */
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .poster-list li[data-reveal] { transform: translateY(40%); }
  .js .poster-list li[data-reveal].is-in { transform: none; }

  /* signature: the app opens like a shutter */
  .js [data-shutter] .shutter { clip-path: inset(0 0 100% 0); transition: clip-path 1200ms var(--ease-in-out); }
  .js [data-shutter] .shutter img { transform: scale(1.12); transition: transform 1700ms var(--ease-soft); }
  .js [data-shutter].is-in .shutter { clip-path: inset(0 0 0 0); }
  .js [data-shutter].is-in .shutter img { transform: none; }

  /* the bar fills stage by stage */
  .js .bar[data-reveal] { opacity: 1; transform: none; }
  .js .bar .bar__seg { transform: scaleX(0); transition: transform 900ms var(--ease-out); }
  .js .bar.is-in .bar__seg { transform: none; }
  .js .bar.is-in .s2 { transition-delay: 140ms; }
  .js .bar.is-in .s3 { transition-delay: 280ms; }
  .js .bar.is-in .s4 { transition-delay: 420ms; }

  /* close-ups settle */
  .js .picture-tile img { transition: transform 1600ms var(--ease-soft); }
  .js .picture-tile:not(.is-in) img { transform: scale(1.08); }

  /* moving pictures and the band: tied to the scroll */
  @supports (animation-timeline: view()) {
    .drift { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .drift-tile img { animation: drift-slow linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .drift-x { animation: drift-x linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translateY(-5%) scale(1.08); } to { transform: translateY(5%) scale(1.08); } }
@keyframes drift-slow { from { transform: scale(1.14) translate(-2%, -3%); } to { transform: scale(1.14) translate(2%, 3%); } }
@keyframes drift-x { from { transform: translateX(-5%); } to { transform: translateX(5%); } }

/* Brand page (brand.html) keeps working with these. */
.small { font-size: var(--s-small); color: var(--ink-soft); line-height: 1.6; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--ink); color: var(--ground); text-decoration: none; }

@media (prefers-reduced-motion: reduce) { .carroll-small video { display: none; } .carroll-small { background: center / cover url("writing-with-fountain-pen-poster.jpg"); aspect-ratio: 854 / 436; } }

/* Hero carousel ------------------------------------------------------------------- */
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; visibility: hidden; }
.slide.is-active, .slide.is-leaving { visibility: visible; }
.slide-tabs { position: absolute; z-index: 3; top: 26px; left: calc(var(--cut) * 0.9); display: flex; gap: 6px; }
.slide-tab {
  position: relative; overflow: hidden; display: flex; align-items: center; height: 38px; padding: 0 1.9em 0 1em;
  border: 0; background: rgba(255, 255, 255, 0.16); color: #ffffff; font: 500 var(--s-small)/1 var(--sans);
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.75em) 50%, 100% 100%, 0 100%);
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.slide-tab:active { transform: scale(0.97); }
.slide-tab.is-active { background: rgba(255, 255, 255, 0.24); }
.slide-tab__fill { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.slide-tab.is-done .slide-tab__fill { transform: scaleX(1); opacity: 0.35; }
.slide-tab.is-active .slide-tab__fill { transform: scaleX(1); }
.slide-tab__label { position: relative; }
.slide-tab.is-active .slide-tab__label { color: var(--gold-ink); }
@media (hover: hover) and (pointer: fine) { .slide-tab:hover { background: rgba(255, 255, 255, 0.3); } }

/* the gold ribbon along the stage's diagonal cut */
.stage-ribbon { position: absolute; z-index: 2; left: 0; top: 0; width: var(--cut); height: calc(var(--cut) * 1.05); overflow: visible; pointer-events: none; }
.stage-ribbon path { fill: none; stroke: var(--gold); stroke-width: 7; vector-effect: non-scaling-stroke; stroke-dasharray: 260; stroke-dashoffset: 0; }

/* slide 2: the AI writing */
.ai-page { font: 400 17px/1.62 var(--serif); margin-bottom: 1em; }
.ai-page--typing { min-height: 8em; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -0.18em; background: #4a35c6; }
.assistant-ui {
  position: absolute; right: 28px; bottom: 36px; width: 300px; padding: 16px; border-radius: 12px;
  background: #ffffff; color: #1c1917; font: 400 14px/1.4 var(--sans);
  box-shadow: 0 22px 50px rgba(20, 12, 61, 0.28); /* taste-skill-ignore: a floating panel in the product */
}
.assistant-ui__head { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; font-weight: 600; }
.assistant-ui__head small { grid-column: 2; font-weight: 400; color: #6d6878; font-size: 13px; }
.assistant-ui__mark { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 8px; background: #4f46e5; } /* taste-skill-ignore: the app's colour */
.assistant-ui__ask { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #f1efe9; color: #3f3b48; }
.assistant-ui__button { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 10px; border-radius: 999px; background: #4f46e5; color: #fff; font-weight: 500; } /* taste-skill-ignore: the app's button */
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; }

/* slide 3: a character card */
.cast-ui {
  position: absolute; left: calc(var(--cut) * 0.9); top: 92px; width: min(560px, calc(100% - var(--cut) * 0.9 - 40px));
  padding: 28px 30px 140px; border-radius: 12px 12px 0 0; background: #ffffff; color: #1c1917; font: 400 15px/1.45 var(--sans);
}
.cast-ui__hero { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; }
.cast-ui__avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #f59e0b; color: #fff; font: 600 28px/1 var(--serif); }
.cast-ui__name { font: 600 28px/1.1 var(--serif); letter-spacing: -0.03em; }
.cast-ui__aka { color: #6d6878; }
.cast-ui__aka span { padding: 2px 9px; border-radius: 999px; background: #fef3c7; color: #8a4b05; font-size: 13px; }
.cast-ui__facts { display: grid; gap: 10px; margin: 0; }
.cast-ui__facts div { padding: 12px 14px; border-radius: 9px; background: #faf7f0; }
.cast-ui__facts dt { font-size: 13px; font-weight: 600; color: #8a4b05; }
.cast-ui__facts dd { margin: 2px 0 0; }
.cast-ui__label { margin-top: 18px; font-size: 13px; font-weight: 600; color: #6d6878; }
.cast-ui__rel { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cast-ui__rel em { margin-left: auto; font-style: normal; font-size: 13px; padding: 2px 9px; border-radius: 999px; background: #f1efe9; color: #55515f; }
.cast-ui__mini { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #7c3aed; color: #fff; font-size: 13px; font-weight: 600; } /* taste-skill-ignore: Ivo's colour in the app */
.cast-ui__mini--place { background: #10b981; }
.cast-ui__foot { margin-top: 18px; padding: 10px 14px; border-radius: 9px; background: #fef3c7; color: #8a4b05; font-weight: 500; }

/* slide 4: a picture-book page on its canvas */
.kids-ui { position: absolute; left: calc(var(--cut) * 0.9); top: 92px; width: min(720px, calc(100% - var(--cut) * 0.9 - 30px)); background: #f1efe9; border-radius: 12px 12px 0 0; overflow: hidden; }
.kids-ui__bar { display: flex; justify-content: space-between; padding: 12px 18px; font: 500 13px/1 var(--sans); color: #55515f; }
.kids-ui__canvas { position: relative; aspect-ratio: 4 / 3; background: #1f2a63; overflow: hidden; }
.kids-ui__moon { position: absolute; right: 12%; top: 12%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #fdf3c4; }
.kids-ui__hill { position: absolute; left: -10%; right: -10%; bottom: -38%; height: 62%; border-radius: 50%; background: #2f7d5b; }
.kids-ui__star { position: absolute; width: 2.2%; aspect-ratio: 1; background: #ffe7a1; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.s-a { left: 14%; top: 18%; } .s-b { left: 34%; top: 9%; width: 3.2%; } .s-c { left: 56%; top: 26%; } .s-d { left: 24%; top: 36%; width: 1.6%; }
.kids-ui__text { position: absolute; left: 7%; right: 7%; bottom: 9%; padding: 0.6em 0.9em; border-radius: 10px; background: rgba(255, 255, 255, 0.9); color: #1e293b; font: 500 clamp(17px, 1.7vw, 24px)/1.35 "Chalkboard SE", "Comic Sans MS", var(--sans); text-align: center; }
.kids-ui__text b { color: #b45309; }

@media (max-width: 860px) {
  .slide-tabs { left: 16px; top: 84px; flex-wrap: wrap; right: 16px; }
  .slide-tab { height: 34px; }
  .stage { height: 700px; }
  .page-ui, .cast-ui, .kids-ui { top: 140px; left: 16px; width: calc(100% - 16px); }
  .assistant-ui { right: 12px; bottom: 24px; width: 250px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* incoming slide wipes in along the ribbon's diagonal; the outgoing one drifts away */
  .slide.is-active { animation: slide-in 900ms var(--ease-in-out) both; }
  .slide.is-leaving { animation: slide-out 700ms var(--ease-in-out) both; }
  .slide.is-first { animation: none; }
  .js .stage-ribbon path { stroke-dashoffset: 260; animation: draw-ribbon 1400ms var(--ease-out) 900ms forwards; }
  .slide-tab.is-active .slide-tab__fill { transform: scaleX(0); animation: tab-fill var(--slide-time, 7000ms) linear forwards; }
  .slides.is-paused ~ .slide-tabs .slide-tab.is-active .slide-tab__fill, .slide-tabs.is-paused .slide-tab.is-active .slide-tab__fill { animation-play-state: paused; }
  .caret { animation: blink 1s steps(1) infinite; }
  .spinner { animation: spin 900ms linear infinite; }
  .kids-ui__star { animation: twinkle 3.2s ease-in-out infinite; }
  .s-b { animation-delay: -1.1s; } .s-c { animation-delay: -2.1s; } .s-d { animation-delay: -0.6s; }
  .kids-ui__moon { animation: moon 9s ease-in-out infinite alternate; }
  .slides { transition: transform 600ms var(--ease-out); }
}
@keyframes slide-in { from { clip-path: polygon(0 0, 0 0, 0 0, 0 0); transform: translate(36px, 24px); } 60% { transform: none; } to { clip-path: polygon(0 0, 200% 0, 0 200%, 0 0); transform: none; } }
@keyframes slide-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate(-40px, -12px); } }
@keyframes draw-ribbon { to { stroke-dashoffset: 0; } }
@keyframes tab-fill { to { transform: scaleX(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
@keyframes moon { to { transform: translate(-8px, 6px); } }

/* STORY MAP */
.map-section { margin-top: var(--section); padding-block: clamp(64px, 8vw, 120px); background: var(--night); color: var(--night-ink); }
.map-copy { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; }
.map-copy h2 { grid-column: 1 / 7; }
.map-copy .statement { grid-column: 8 / 13; }
.map-switch { display: flex; gap: 8px; margin-top: 48px; }
.map-tab { font: inherit; font-size: var(--s-small); font-weight: 600; color: var(--night-ink); background: transparent; border: 0; background: color-mix(in srgb, var(--night-ink) 12%, transparent); border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: background var(--t-hover) ease, color var(--t-hover) ease; }
.map-tab:hover { background: color-mix(in srgb, var(--night-ink) 22%, transparent); }
.map-tab[aria-selected="true"] { background: var(--gold); color: var(--gold-ink); }
.map-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.map-shot { margin-top: 24px; padding-inline: 10px; --notch: clamp(12px, 1.4vw, 22px); }
.map-frames { display: grid; }
.map-frame { grid-area: 1 / 1; width: 100%; opacity: 0; transition: opacity 600ms var(--ease-in-out); }
.map-frame.is-active { opacity: 1; }
.map-notes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 56px; }
.map-notes__lead { grid-column: 1 / 5; font-family: var(--serif); font-size: var(--s-statement); line-height: 1.3; max-width: 22ch; }
.map-notes__list { grid-column: 6 / 13; list-style: none; margin: 0; padding: 0; display: grid; }
.map-notes__list { gap: 22px; }
.map-notes__list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4px 32px; align-items: baseline; font-size: var(--s-small); line-height: 1.5; }
.map-notes__list strong { color: var(--gold); }
.map-notes__list strong { font-size: var(--s-body); line-height: 1.35; }
.map-notes__list span { color: color-mix(in srgb, var(--night-ink) 78%, transparent); }
@media (max-width: 860px) {
  .map-copy h2, .map-copy .statement { grid-column: 1 / -1; }
  .map-copy .statement { margin-top: 20px; }
  .map-notes__lead, .map-notes__list { grid-column: 1 / -1; }
  .map-notes__list li { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .map-frame { transition: none; } }
