/* Poetry By Heart: home page styles
   Sections are headed "BLOCK: <name>", matching the BLOCK markers in the HTML and the modules in pbh.js.
   Tokens come from the Poetry By Heart design system. Fonts: Lexend and Merriweather (Google Fonts, linked in <head>). */

/* Tokens: Poetry By Heart design system (tokens.json). Single-look brand page: always "On light". */
:root {
  color-scheme: light;
  --yellow-50:#fffdeb; --yellow-300:#fff370; --yellow-500:#ffea00; --yellow-600:#e6d200;
  --lilac-100:#f0d1ff; --lilac-200:#e7b8ff; --lilac-600:#c552ff; --green-100:#c4f2cd; --green-200:#7fed93; --orange-50:#fef2ec; --orange-400:#f37f49; --orange-500:#f06220; --orange-600:#d24c0e; --orange-700:#aa3f0e; --orange-800:#81320e;
  --green-400:#3dab52; --green-500:#357541; --coffee-50:#f9f5f0; --lilac-50:#f8ebff; --coffee-100:#f1e6da; --orange-100:#fcddcf; --yellow-100:#fffbcc; --neutral-200:#ced0da; --neutral-600:#4c517b; --coffee-200:#e5d2bd; --coffee-500:#bd8c58; --coffee-700:#815d37;
  --green-50:#f0fff3; --green-300:#52cb68; --lilac-500:#d78aff; --lilac-900:#4f0971; --yellow-200:#fff7a3; --yellow-400:#ffef3d;
  --neutral-50:#f6f7f8; --neutral-300:#b1b4c5; --neutral-500:#6e7495; --neutral-800:#0e0542; --neutral-900:#01000b;
  --focus:#4d90fe; --video-blue:#00b5ed; --quote-deep:#15351b;
  --ink: var(--neutral-800);
  --font-sans: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --radius-sm:4px; --radius-xl:20px;
  --gutter: 86px; --pad: 24px;
  --h1:80px; --h4:36px; --h4-lh:45px; --h6:22px; --body-lg:18px; --body-lg-lh:27px; --body:16px; --body-lh:24px;
  --tile-r: 80px;
}
@media (max-width: 1099px) { :root { --gutter: 24px; --pad: 16px; --h4:30px; --h4-lh:36px; --h6:20px; --body-lg:16px; --body-lg-lh:24px; --tile-r:48px; } }
@media (max-width: 699px)  { :root { --gutter: 20px; --pad: 12px; --h4:24px; --h4-lh:32px; --h6:18px; --body:14px; --body-lh:21px; --tile-r:32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--yellow-500); color: var(--ink); font: 400 var(--body)/var(--body-lh) var(--font-sans); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h2, h3 { text-wrap: balance; }
/* Focus rings show for keyboard users only. pbh.js sets data-input="pointer" on <html> after a tap or click,
   so focus moved by script (menu, chat) doesn't draw a ring on touch devices. */
:root:not([data-input="pointer"]) :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[data-input="pointer"] :focus { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1400px; margin-inline: auto; }
.h4 { font-weight: 800; font-size: var(--h4); line-height: var(--h4-lh); letter-spacing: -0.02em; }

/* ==== SHARED: buttons ==== (from the design system Button component) */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 12px 14px; border: 0; border-radius: var(--radius-sm);
  font: 700 16px/24px var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, box-shadow .15s; background: none; }
.btn--sm { min-height: 40px; padding: 8px 14px; }
.btn--primary { background: var(--yellow-500); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-600); }
.btn--secondary { color: var(--orange-600); box-shadow: inset 0 0 0 1px var(--orange-600); background: #ffffff00; }
/* the design system's "Tertiary button": a bold underlined text link */
.btn-tertiary { padding: 0; border: 0; background: none; color: var(--ink); font: 700 14px/21px var(--font-sans); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.btn-tertiary:hover { color: rgba(14,5,66,.8); }
.btn-tertiary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.btn--secondary:hover { color: var(--ink); background: #ffffff33; box-shadow: inset 0 0 0 2px var(--orange-800); }
.btn--line-light { color: var(--orange-50); box-shadow: inset 0 0 0 1px var(--orange-50); }
.btn--line-light:hover { background: #ffffff26; box-shadow: inset 0 0 0 2px var(--orange-50); }
.btn--line-ink { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line-ink:hover { background: #ffffff33; box-shadow: inset 0 0 0 2px var(--ink); }
.btn--on-dark { color: var(--orange-600); background: var(--coffee-50); box-shadow: inset 0 0 0 1px var(--orange-50); }
.btn--on-dark:hover { background: var(--coffee-100); box-shadow: inset 0 0 0 2px var(--orange-100); }
.btn--join { background: var(--orange-500); color: var(--ink); text-transform: uppercase; }
.btn--join:hover { background: var(--orange-400); }
.btn--join .scribble { position: absolute; left: 50%; top: 50%; width: 126px; height: 60px; transform: translate(-50%, -50%); fill: var(--ink); pointer-events: none; }
.btn--join span { position: relative; }
.btn--block { display: flex; width: 100%; }
.btn:focus-visible { outline: none; }
:root:not([data-input="pointer"]) .btn:focus-visible { outline: none; box-shadow: inset 0 0 0 4px var(--focus); }

/* ==== BLOCK: site-news-flash ==== (News flash) */
.flash { background: var(--yellow-50); }
.flash { display: flex; justify-content: center; min-height: 56px; padding: 12px var(--gutter); }
/* News line: centred when it fits; when it is too long it scrolls in a loop inside the band (icon stays put) */
.flash-inner { display: flex; gap: 10px; align-items: center; min-width: 0; max-width: 100%; }
.flash-window { min-width: 0; overflow: hidden; }
.flash-track { display: flex; width: max-content; white-space: nowrap; }
.flash-track span + span { display: none; }
.flash.is-scrolling .flash-inner { flex: 1; }
.flash.is-scrolling .flash-window { flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 40px), transparent); }
.flash.is-scrolling .flash-track { animation: news var(--news-time, 20s) linear infinite; will-change: transform; }
.flash-window:hover .flash-track { animation-play-state: paused; }
/* classic ticker: enters from the right edge of the band, runs fully off the left, then repeats */
@keyframes news { from { transform: translateX(var(--news-from, 100%)); } to { transform: translateX(var(--news-to, -100%)); } }
@media (prefers-reduced-motion: reduce) { .flash.is-scrolling .flash-track { animation: none; } .flash.is-scrolling .flash-window { overflow-x: auto; } }
.flash svg { width: 21px; height: 18px; flex: none; fill: var(--ink); }
/* the pointing hand jabs towards the message: two soft taps, then a rest */
@keyframes jab { 0%, 100% { transform: translateX(0); } 14% { transform: translateX(5px); } 28% { transform: translateX(0); } 42% { transform: translateX(4px); } 56% { transform: translateX(0); } }
.flash svg { animation: jab 1.8s cubic-bezier(.45, 0, .55, 1) infinite; }
@media (prefers-reduced-motion: reduce) { .flash svg { animation: none; } }

/* ==== BLOCK: site-header ==== (Site navigation) */
.nav { background: var(--yellow-500); position: relative; z-index: 5; }
.nav-inner { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 24px; padding: 32px 56px 32px; }
.logo { grid-row: 1 / span 2; align-self: center; }
.logo img { width: 143px; height: auto; }
.nav-actions { grid-column: 3; display: flex; align-items: center; gap: 24px; justify-self: end; }
.login { font-weight: 700; font-size: 14px; line-height: 21px; text-decoration: none; color: var(--ink); }
.login:hover { color: var(--orange-700); }
/* Welcome {name}, [my dashboard | buy a plan] — only the trailing phrase is a link */
.nav-welcome {
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  color: var(--ink);
  text-decoration: none;
}
.nav-welcome a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.nav-welcome a:hover { color: var(--orange-700); }
.nav-inner > nav { grid-column: 2 / span 2; grid-row: 2; min-width: 0; }
.links { display: flex; align-items: center; justify-content: flex-end; gap: 28px; list-style: none; margin: 16px 0 0; padding: 0; }
.links > li > a { font-weight: 500; font-size: 16px; line-height: 20px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 4px; }
.links > li > a:hover { color: var(--orange-700); }
.links a .br { display: none; }
/* In-between desktops (1100–1299px): longer labels break onto two centred lines,
   everything hangs from the first line, the chevron sits on the second line */
@media (min-width: 1100px) and (max-width: 1299px) {
  .links { align-items: flex-start; gap: 24px; }
  .links > li > a { white-space: nowrap; text-align: center; align-items: flex-end; }
  .links a .br { display: block; }
  /* optical nudge: "The" is short, so pull Plans in and move the pair closer to "Poetry &" */
  .links .has-fly { margin-left: -8px; margin-right: -12px; }
  .links > li > a svg { margin-bottom: 1px; }
  .links .search { margin-left: 4px; margin-top: -4px; }
}
.links a[aria-current="page"] { color: var(--orange-700); font-weight: 800; }
.links > li > a svg { width: 18px; height: 18px; fill: currentColor; }
.has-fly { position: relative; }
.has-fly > a svg { transition: transform .15s; }
.fly { position: absolute; top: 100%; left: -16px; padding-top: 14px; display: none; z-index: 20; }
.has-fly:hover .fly, .has-fly:focus-within .fly, .has-fly.is-open .fly { display: block; }
.has-fly:hover > a svg, .has-fly.is-open > a svg { transform: rotate(180deg); }
.has-fly:hover > a, .has-fly.is-open > a { color: var(--orange-700); }
.fly-panel { display: flex; gap: 16px; padding: 16px; background: #fff; border-radius: 8px; box-shadow: 0 0 10px #00000040; }
.fly-card { position: relative; width: 320px; min-height: 429px; padding: 8px 8px 48px; border-radius: 4px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 16px; transition: background-color .15s; }
.fly-card--lilac { background: var(--lilac-100); } .fly-card--lilac:hover { background: var(--lilac-200); }
.fly-card--green { background: var(--green-100); } .fly-card--green:hover { background: var(--green-200); }
.fly-card:hover, .fly-card:focus-visible { color: var(--neutral-900); }
.fly-card img { width: 304px; height: 191px; object-fit: cover; border-radius: 20px; }
.fly-card strong { display: block; padding: 0 8px; font-weight: 800; font-size: 22px; line-height: 29px; letter-spacing: -0.02em; text-wrap: balance; } /* even lines, so short titles don't split at a hyphen */
.fly-card span { display: block; padding: 0 8px; font-size: 16px; line-height: 24px; margin-top: -8px; }
.fly-card svg { position: absolute; right: 17px; bottom: 18px; width: 25px; height: 21px; fill: #000; }
.nav-search { grid-column: 2 / span 2; grid-row: 2; margin-top: 16px; display: flex; align-items: center; gap: 16px; padding-left: 47px; align-self: center; }
/* Search and links share one grid cell and cross-fade: links drift up and out, the bar sweeps in from the magnifying glass */
.nav-inner > nav { transition: opacity .22s ease, transform .3s ease, visibility 0s linear 0s; }
.nav-search { visibility: hidden; opacity: 0; clip-path: inset(0 0 0 100%); transition: opacity .25s ease, clip-path .45s cubic-bezier(.2,.7,.2,1), visibility 0s linear .45s; }
.nav-search .go, .nav-search .shut { transition: transform .35s ease .1s; transform: scale(.8); }
.nav-inner.is-searching > nav { opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .18s ease, transform .25s ease, visibility 0s linear .25s; }
.nav-inner.is-searching .nav-search { visibility: visible; opacity: 1; clip-path: inset(-6px -6px -6px -6px); transition: opacity .25s ease .08s, clip-path .45s cubic-bezier(.2,.7,.2,1) .05s, visibility 0s; }
.nav-inner.is-searching .nav-search .go, .nav-inner.is-searching .nav-search .shut { transform: none; }
@media (prefers-reduced-motion: reduce) { .nav-inner > nav, .nav-search, .nav-search .go, .nav-search .shut { transition: none !important; } }
.nav-search .field { position: relative; flex: 1; }
.nav-search input { width: 100%; height: 45px; border: 1px solid #bebebe; border-radius: 0; background: #fff; padding: 0 44px 0 14px; font: 400 14px/1 var(--font-sans); color: var(--ink); }
.nav-search input::placeholder { color: #818181; }
.nav-search input:focus, .nav-search input:focus-visible, .menu-search input:focus, .menu-search input:focus-visible { outline: none; border-color: var(--neutral-500); }
.nav-search input::-webkit-search-cancel-button { display: none; }
.nav-search .clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #818181; padding: 6px; cursor: pointer; }
.nav-search .clear svg { width: 12px; height: 12px; fill: currentColor; display: block; }
.nav-search .go { flex: none; width: 45px; height: 45px; border: 0; border-radius: 4px; background: var(--yellow-600); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.nav-search .go:hover { background: #d9c600; }
.nav-search .go svg { width: 27px; height: 27px; fill: currentColor; }
.nav-search .shut { flex: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
.nav-search .shut svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.search { background: none; border: 0; padding: 4px; margin-left: 12px; color: var(--ink); cursor: pointer; display: inline-flex; }
.search svg { width: 27px; height: 27px; fill: currentColor; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.burger svg { width: 24px; height: 24px; fill: currentColor; }

/* ==== BLOCK: site-menu ==== */
/* Slide-out menu (tablet and mobile): full-screen dark panel, per the "Slide out menus" designs */
.menu { position: fixed; inset: 0; background: var(--neutral-900); color: #fff; z-index: 50; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 56px calc(48px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; }
.menu.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
.menu-close { align-self: flex-start; margin-left: -12px; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menu-close svg { width: 24px; height: 24px; fill: currentColor; }
.menu-search { display: flex; gap: 16px; margin-top: 36px; }
.menu-search .field { position: relative; flex: 1; }
.menu-search input { width: 100%; height: 45px; border: 1px solid #bebebe; border-radius: 0; background: #fff; padding: 0 40px 0 14px; font: 400 14px/1 var(--font-sans); color: var(--ink); }
.menu-search input::placeholder { color: #818181; }
.menu-search .clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #818181; padding: 6px; cursor: pointer; }
.menu-search .clear svg { width: 12px; height: 12px; fill: currentColor; display: block; }
.menu-search .go { flex: none; width: 45px; height: 45px; border: 0; border-radius: 4px; background: var(--yellow-600); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.menu-search .go:hover { background: var(--yellow-500); }
.menu-search .go svg { width: 27px; height: 27px; fill: currentColor; }
.menu-nav { padding: 56px 0 0 56px; flex: 1; }
.menu-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.menu-nav a { color: #fff; text-decoration: none; font-size: 22px; line-height: 22px; }
.menu-nav a:hover { color: var(--neutral-300); }
.menu-nav a[aria-current="page"] { color: var(--yellow-500); font-weight: 800; }
.menu-group { display: grid; gap: 16px; }
.menu-group > span { font-weight: 700; font-size: 16px; line-height: 38px; color: var(--neutral-500); margin-bottom: -16px; }
.menu-group ul { padding-left: 24px; gap: 32px; }
.menu-foot { padding: 64px 0 0 56px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.menu-foot a { color: #fff; text-decoration: none; font-weight: 500; font-size: 16px; line-height: 22px; }
.menu-foot a:hover { color: var(--neutral-300); }
.menu-foot .nav-welcome {
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  line-height: 22px;
}
.menu-foot .nav-welcome a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.menu-foot .nav-welcome a:hover { color: var(--neutral-300); }
@media (max-width: 699px) {
  .menu { padding-inline: 28px; }
  .menu-search { margin-top: 24px; gap: 12px; }
  .menu-nav { padding: 40px 0 0 16px; }
  .menu-nav ul { gap: 20px; }
  .menu-nav a { font-size: 18px; line-height: 22px; }
  .menu-group { gap: 12px; }
  .menu-group > span { font-size: 14px; line-height: 30px; margin-bottom: -8px; }
  .menu-group ul { padding-left: 16px; gap: 16px; }
  .menu-foot { padding: 48px 0 0 16px; }
}

/* ==== BLOCK: home-hero ==== (Hero) */
.hero { background: var(--yellow-500); padding: var(--pad); }
.hero .wrap { container-type: inline-size; }
/* Top row scales as one unit: column widths are fixed proportions (885 : 443) of the row width,
   and the row height is derived from that width, so both boxes grow and shrink together. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 885fr) minmax(0, 443fr); gap: 24px;
  grid-auto-rows: calc((100cqw - 24px) * 622 / 1328); }
.hero-grid > *, .tiles > * { min-width: 0; }
.hero-main { position: relative; clip-path: url(#blob-hero); background: #434770; display: flex; align-items: center; padding: 0 5%; overflow: hidden; }
/* the red and lilac brushstroke, zoomed in so the ring fills the shape */
.hero-brush { position: absolute; left: -40%; top: -22%; width: 165%; transform: scaleX(-1); height: auto; aspect-ratio: 1000 / 659; pointer-events: none; }
.hero-main h1 { position: relative; }
.hero-main h1 { color: #fff; font-weight: 700; font-size: clamp(22px, 5.95cqw, 80px); line-height: 1.05; letter-spacing: -0.02em; text-transform: uppercase; text-align: justify; text-align-last: left; } /* as Figma: every line justified to the full width except the last */
.intro { position: relative; background: #000 60% center / cover; /* image set inline from the CMS */ color: #fff; padding: clamp(16px, 2.8cqw, 38px); display: flex; flex-direction: column; align-items: flex-start; gap: clamp(10px, 1.2cqw, 16px); overflow: hidden; }
.intro::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #000000cc 0%, #00000080 45%, #00000000 75%); }
.intro > * { position: relative; }
.intro p { font-weight: 800; font-size: clamp(14px, 2.22cqw, 30px); line-height: 1.27; letter-spacing: -0.02em; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.tile { position: relative; aspect-ratio: 1; padding: clamp(28px, 3vw, 42px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; overflow: hidden; }
.tile h2 { font-weight: 800; font-size: min(var(--h4), 2.6vw); line-height: 1.25; letter-spacing: -0.02em; position: relative; }
.tile .btn { position: relative; }
.tile--green { background: var(--green-400); border-radius: var(--tile-r); color: var(--neutral-50); }
.tile--green .heart { position: absolute; left: 10%; top: 13%; width: 80%; height: auto; aspect-ratio: 347 / 321; fill: #ffffff4d; }
.tile--coffee { background: var(--coffee-500); color: var(--neutral-50); }
.tile--coffee img { position: absolute; right: -5%; bottom: -6%; width: 92%; height: auto; }
.tile--orange { background: var(--orange-500); clip-path: url(#blob-tile); color: var(--ink); }
.tile--orange .scribble-draw { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .4; pointer-events: none; } /* the doodle (white, 40%), drawn in on load */
.tile > .scribble-draw { animation: none; }

/* Load-in (the Figma prototype's "Load animation"): each box grows out of one edge or corner as it fades in, one after another;
   then its text rises in. The headline comes in word by word (pbh.js wraps the words); the brushstroke then paints itself. */
/* 'backwards', not 'both': once each animation ends, the box and its text drop the transform and filter altogether,
   so the browser redraws the text sharp instead of keeping the soft, scaled-up layer it animated with */
@keyframes grow { from { opacity: 0; transform: scale(.2); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes lift { from { opacity: 0; transform: translateY(16px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes word { from { opacity: 0; transform: translateY(.45em); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.hero-main, .intro, .tile { animation: grow .75s cubic-bezier(.2, .8, .2, 1) backwards; }
.hero-main { transform-origin: 0 50%; animation-delay: .1s; }              /* from the left */
.intro { transform-origin: 100% 0; animation-delay: .25s; }                /* from the top right */
.tile:nth-child(1) { transform-origin: 40% 100%; animation-delay: .4s; }   /* from the bottom */
.tile:nth-child(2) { transform-origin: 0 100%; animation-delay: .5s; }     /* from the bottom left */
.tile:nth-child(3) { transform-origin: 30% 30%; animation-delay: .6s; }    /* from near the middle */
.hero-main h1.is-split { animation: none; }
.hero-main h1 { animation: lift 1.1s cubic-bezier(.25, .6, .3, 1) .6s backwards; }  /* without JS: the line lifts in */
.hero-main h1 .w { display: inline-block; }
.hero-main h1 .w > span { display: inline-block; animation: word 1.2s cubic-bezier(.25, .6, .3, 1) backwards; animation-delay: calc(.5s + var(--i) * .1s); }  /* soft: fade, rise and un-blur, word by word */
.intro > *, .tile > h2, .tile > .btn { animation: lift 1s cubic-bezier(.25, .6, .3, 1) backwards; }
.intro > p { animation-delay: .65s; } .intro > .btn { animation-delay: .78s; }
.tile:nth-child(1) > h2 { animation-delay: .8s; } .tile:nth-child(1) > .btn { animation-delay: .9s; }
.tile:nth-child(2) > h2 { animation-delay: .9s; } .tile:nth-child(2) > .btn { animation-delay: 1s; }
.tile:nth-child(3) > h2 { animation-delay: 1s; } .tile:nth-child(3) > .btn { animation-delay: 1.1s; }
.tile > img { animation: none; }
/* the heart comes in on its own once the green box has grown: from 80% and transparent to full size, from its centre
   (uses the separate scale property, so it doesn't fight the heart's own positioning transform on phones) */
@keyframes heart-in { from { opacity: 0; scale: .8; } to { opacity: 1; scale: 1; } }
.tile > .heart { transform-origin: center; animation: heart-in 1s cubic-bezier(.25, .6, .3, 1) .85s backwards; }

/* Hover: the intro box and the three tiles are big links. The button's link is stretched over the whole box (one link per box,
   read out once with the button's wording); hovering anywhere lifts the box slightly and puts the button in its hover state.
   The pictures react too: the intro photo zooms, the heart swells, the girl rises, the doodle brightens. Phones: tap anywhere. */
.intro, .tile { isolation: isolate; cursor: pointer; transition: transform .35s cubic-bezier(.25, .6, .3, 1); }
.intro > .btn, .tile > .btn { position: static; }                                  /* so its ::after can cover the whole box */
.intro > .btn::after, .tile > .btn::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.intro::before { z-index: -1; }                                                      /* the dark gradient stays behind the text */
.intro::after { content: ""; position: absolute; inset: 0; z-index: -2; background: inherit; transition: transform .6s cubic-bezier(.25, .6, .3, 1); } /* the photo, on its own layer so it can zoom */
.tile > .heart, .tile > img, .tile > .scribble-draw { z-index: -1; }
.tile > .heart { transition: scale .5s cubic-bezier(.25, .6, .3, 1); }
.tile > img { transition: translate .5s cubic-bezier(.25, .6, .3, 1); }
.tile > .scribble-draw { transition: opacity .4s ease; }
@media (hover: hover) {
  .intro:hover, .tile:hover { transform: translateY(-4px) scale(1.02); }
  .intro:hover::after { transform: scale(1.05); }
  .tile:hover > .heart { scale: 1.06; }
  .tile:hover > img { translate: 0 -8px; }
  .tile:hover > .scribble-draw { opacity: .6; }
  .intro:hover .btn--on-dark { background: var(--coffee-100); box-shadow: inset 0 0 0 2px var(--orange-100); }
  .tile:hover .btn--line-light { background: #ffffff26; box-shadow: inset 0 0 0 2px var(--orange-50); }
  .tile:hover .btn--line-ink { background: #ffffff33; box-shadow: inset 0 0 0 2px var(--ink); }
}
/* keyboard: the focused button's box lifts the same way */
.intro:has(> .btn:focus-visible), .tile:has(> .btn:focus-visible) { transform: translateY(-4px) scale(1.02); }
@media (prefers-reduced-motion: reduce) { .intro:hover, .tile:hover, .intro:hover::after, .intro:has(> .btn:focus-visible), .tile:has(> .btn:focus-visible) { transform: none; } .tile:hover > .heart { scale: none; } .tile:hover > img { translate: none; } }
@media (prefers-reduced-motion: reduce) { .tile > .heart, .hero-main, .intro, .tile, .hero-main h1, .hero-main h1 .w > span, .intro > *, .tile > h2, .tile > .btn { animation: none; } }

/* ==== BLOCK: text-cta ==== (Adapt) */
.adapt { position: relative; background: #eef0f6; min-height: 740px; }
.adapt-img { position: absolute; inset: 0; background: center right / cover; } /* image set inline from the CMS */
.adapt-text { position: relative; }
.adapt-text { padding: 86px var(--gutter); max-width: calc(397px + 2 * var(--gutter)); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

/* ==== BLOCK: resource-links ==== (Anthologies) */
.band { background: var(--coffee-50); }
.anth { padding: 86px var(--gutter); display: grid; gap: 24px; }
.anth-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 46px; border-bottom: 1px solid var(--orange-500); }
.anth-head p { font-size: 18px; line-height: 27px; text-align: right; flex: none; }
.anth h3 { font-weight: 800; font-size: 22px; line-height: 29px; margin-top: 12px; }
.links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; margin: 0; padding: 0; }
.sb { transition: background-color .15s, box-shadow .15s; display: flex; align-items: center; gap: 18px; height: 130px; padding: 8px 16px 8px 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--coffee-200); text-decoration: none; transition: box-shadow .15s; }
.sb:hover { background: var(--orange-400); box-shadow: inset 0 0 0 1px var(--coffee-700); }
.sb:hover span:not(.title) { color: var(--yellow-50); }
.sb:hover span b { color: var(--ink); }
.sb img { width: 132px; height: 115px; object-fit: cover; border-radius: 37px; flex: none; }
.sb b { display: block; font-weight: 700; font-size: 46px; line-height: 1.1; letter-spacing: -0.02em; }
.sb span { flex: 1; font-weight: 700; font-size: 18px; line-height: 27px; }
.sb span.title { font-size: 20px; line-height: 26px; }
.sb svg { width: 30px; height: 25px; flex: none; fill: #000; }
/* Load-in: when a list reaches the middle of the screen (pbh.js adds .is-in), its buttons rise and fade in one after another,
   each picture growing and turning into place and the arrow sliding in. Without JS, or with reduced motion, they simply show. */
@keyframes sb-in { from { opacity: 0; transform: translateY(70px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes sb-img { from { opacity: 0; transform: scale(.55) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes sb-arrow { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.links-grid.sb-wait > li { opacity: 0; }
.links-grid.is-in > li { animation: sb-in 1.2s cubic-bezier(.2, .7, .25, 1) backwards; animation-delay: calc(var(--i, 0) * .18s); }
.links-grid.is-in .sb img { animation: sb-img 1.1s cubic-bezier(.2, .7, .25, 1) backwards; animation-delay: calc(var(--i, 0) * .18s + .3s); }
.links-grid.is-in .sb svg { animation: sb-arrow .9s cubic-bezier(.2, .7, .25, 1) backwards; animation-delay: calc(var(--i, 0) * .18s + .6s); }
@media (prefers-reduced-motion: reduce) { .links-grid.sb-wait > li { opacity: 1; } .links-grid.is-in > li, .links-grid.is-in .sb img, .links-grid.is-in .sb svg { animation: none; } }

/* ==== BLOCK: mantra ==== (Mantra) */
.mantra { background: #fff; padding: 112px var(--gutter); overflow-x: clip; }
.mantra-inner { max-width: 1100px; margin-inline: auto; }
.m-row { display: grid; align-items: end; padding-block: 16px; }
.m-row + .m-row { border-top: 1px solid var(--orange-500); }
.m-word { font-weight: 400; font-size: clamp(64px, 12.2vw, 170px); line-height: .88; letter-spacing: -0.02em; text-transform: uppercase; }
/* Load-in: each word's letters slide up one after another from behind a rectangular mask (pbh.js wraps the letters
   and adds .is-in when the word is well up the screen). Without JS, or with reduced motion, the words simply show. */
@keyframes m-letter { from { transform: translateY(110%); } to { transform: none; } }
.m-word .m-l { display: inline-block; overflow: hidden; vertical-align: top; padding-top: .1em; margin-top: -.1em; } /* the mask, a little taller than the caps */
.m-word:has(.m-l) { white-space: nowrap; }  /* the letters are separate boxes: keep the word on one line */
.m-word .m-l > span { display: inline-block; }
.m-word.m-wait .m-l > span { transform: translateY(110%); }
.m-word.is-in .m-l > span { animation: m-letter 1s cubic-bezier(.2, .7, .25, 1) backwards; animation-delay: calc(var(--i) * .07s); }
@media (prefers-reduced-motion: reduce) { .m-word.m-wait .m-l > span { transform: none; } .m-word.is-in .m-l > span { animation: none; } }
/* The "Choose a poem" drawing, alive: a looping idle built from the PSD's layers (positions in the drawing's own 1992 x 1597 units).
   The head sways and bobs gently, the ponytail swings, the eyes blink now and then, the mouth moves as if reading aloud,
   the arm shifts and the two fingers tap the keys. Reduced motion: the drawing stays still. */
.m-art { display: block; overflow: visible; }
.m-art.cp { aspect-ratio: 1992 / 1597; } .m-art.sp { aspect-ratio: 1830 / 1562; } .m-art.lh { aspect-ratio: 1646 / 1805; }
.cp g, .cp image { transform-box: view-box; }
@keyframes cp-head { 0%, 100% { transform: rotate(-3deg) translateY(0); } 22% { transform: rotate(1.5deg) translateY(-22px); } 40% { transform: rotate(-1deg) translateY(-6px); } 58% { transform: rotate(-5deg) translateY(12px); } 64% { transform: rotate(-4deg) translateY(16px); } 82% { transform: rotate(2.5deg) translateY(-14px); } }  /* sways, bobs, and leans in to the screen to read */
@keyframes cp-hair { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(10deg); } }
@keyframes cp-blink { 0%, 44%, 52%, 90%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.12); } 93% { transform: scaleY(.12); } 96% { transform: scaleY(1); } }  /* two blinks per loop */
@keyframes cp-mouth { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25, 1.6); } 30% { transform: scale(.9, .8); } 45% { transform: scale(1.18, 1.45); } 60%, 70% { transform: scale(1); } 85% { transform: scale(1.22, 1.5); } }
@keyframes cp-arm { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2.5deg) translateY(-6px); } }
@keyframes cp-tap { 0%, 55%, 100% { transform: none; } 20% { transform: translateY(-34px) rotate(-6deg); } }
.cp-head { transform-origin: 1360px 870px; animation: cp-head 6s ease-in-out infinite; }
.cp-hair { transform-origin: 1765px 530px; animation: cp-hair 2.8s ease-in-out infinite; }
.cp-eye1 { transform-origin: 1176px 429px; animation: cp-blink 4.6s ease-in-out infinite; }
.cp-eye2 { transform-origin: 1390px 572px; animation: cp-blink 4.6s ease-in-out infinite; }
.cp-mouth { transform-origin: 1244px 691px; animation: cp-mouth 2.6s ease-in-out infinite; }
.cp-arm { transform-origin: 1520px 770px; animation: cp-arm 3s ease-in-out infinite; }
.cp-f1 { transform-origin: 1406px 1000px; animation: cp-tap .7s ease-in-out infinite; }
.cp-f2 { transform-origin: 1356px 980px; animation: cp-tap .7s ease-in-out .35s infinite; }
@media (prefers-reduced-motion: reduce) { .cp-head, .cp-hair, .cp-eye1, .cp-eye2, .cp-mouth, .cp-arm, .cp-f1, .cp-f2 { animation: none; } }
/* The "Share it out loud" drawing, reciting: built from its PSD layers (1830 x 1562 units). The head lifts and nods on the
   stressed beats, the mouth opens and closes as if speaking, the eyes blink, the outstretched arm sweeps in a slow
   orator's gesture with the fingers loosening and closing, and the shoulders rise with each breath. */
.sp g, .sp image { transform-box: view-box; }
@keyframes sp-head { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-3deg) translateY(-8px); } 45% { transform: rotate(1.2deg); } 65% { transform: rotate(-2deg) translateY(-5px); } 85% { transform: rotate(.6deg); } }
@keyframes sp-hair { 0%, 100% { transform: none; } 25% { transform: rotate(-1.2deg); } 70% { transform: rotate(1deg); } }
@keyframes sp-mouth { 0%, 100% { transform: scale(1); } 10% { transform: scale(.94, .72); } 22% { transform: scale(1.04, 1.12); } 34% { transform: scale(.96, .8); } 46% { transform: scale(1); } 58% { transform: scale(.92, .66); } 70% { transform: scale(1.05, 1.1); } 84% { transform: scale(.97, .85); } }
@keyframes sp-blink { 0%, 88%, 100% { transform: scaleY(1); } 91% { transform: scaleY(.1); } 94% { transform: scaleY(1); } }
@keyframes sp-arm { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-4deg); } 60% { transform: rotate(2deg); } 80% { transform: rotate(-1deg); } }
@keyframes sp-finger { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(6deg); } }
@keyframes sp-breathe { 0%, 100% { transform: none; } 50% { transform: translateY(-8px); } }
.sp-head { transform-origin: 1360px 830px; animation: sp-head 4.4s ease-in-out infinite; }
.sp-hair { transform-origin: 1300px 330px; animation: sp-hair 4.4s ease-in-out .15s infinite; }
.sp-mouth { transform-origin: 1240px 470px; animation: sp-mouth 1.9s ease-in-out infinite; }
.sp-eye1 { transform-origin: 1252px 270px; animation: sp-blink 5s ease-in-out infinite; }
.sp-eye2 { transform-origin: 1461px 338px; animation: sp-blink 5s ease-in-out infinite; }
.sp-arm { transform-origin: 1120px 770px; animation: sp-arm 4.4s ease-in-out .3s infinite; }
.sp-f1 { transform-origin: 320px 1250px; animation: sp-finger 2.2s ease-in-out infinite; }
.sp-f2 { transform-origin: 370px 1290px; animation: sp-finger 2.2s ease-in-out .15s infinite; }
.sp-f3 { transform-origin: 470px 1290px; animation: sp-finger 2.2s ease-in-out .3s infinite; }
.sp-f4 { transform-origin: 510px 1295px; animation: sp-finger 2.2s ease-in-out .45s infinite; }
.sp-shoulder { transform-origin: 1560px 1525px; animation: sp-breathe 4.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .sp-head, .sp-hair, .sp-mouth, .sp-eye1, .sp-eye2, .sp-arm, .sp-f1, .sp-f2, .sp-f3, .sp-f4, .sp-shoulder { animation: none; } }
.lh g, .lh image { transform-box: view-box; }
/* Learn it by heart: eyes shut, murmuring the lines and nodding in time, a pause to recall (eyes squeeze, head tips up), then again */
@keyframes lh-head { 0%, 100% { transform: rotate(0); } 8% { transform: rotate(2.4deg) translateY(10px); } 15% { transform: rotate(.4deg); } 22% { transform: rotate(2.6deg) translateY(10px); } 29% { transform: rotate(.4deg); } 36% { transform: rotate(2.4deg) translateY(10px); } 43% { transform: rotate(.6deg); } 50% { transform: rotate(2.6deg) translateY(10px); } 58%, 72% { transform: rotate(-3.5deg) translateY(-12px); } 86% { transform: rotate(-1deg); } }
@keyframes lh-mouth { 0%, 56%, 100% { transform: scale(1); } 4% { transform: scale(.9, .55); } 8% { transform: scale(1.08, 1.25); } 12% { transform: scale(.92, .6); } 18% { transform: scale(1.06, 1.2); } 22% { transform: scale(.9, .55); } 26% { transform: scale(1.1, 1.3); } 32% { transform: scale(.94, .65); } 36% { transform: scale(1.05, 1.15); } 40% { transform: scale(.9, .55); } 46% { transform: scale(1.08, 1.25); } 51% { transform: scale(.94, .7); } 62%, 74% { transform: scale(.78, .45); } 80% { transform: scale(1); } }
@keyframes lh-squeeze { 0%, 56%, 80%, 100% { transform: scale(1); } 61%, 72% { transform: scale(1.12, .55); } }
@keyframes lh-breathe { 0%, 100% { transform: none; } 50% { transform: translateY(-14px) scaleY(1.008); } }
.lh-head { transform-origin: 826px 1275px; animation: lh-head 6.4s ease-in-out infinite; }
.lh-mouth { transform-origin: 826px 958px; animation: lh-mouth 6.4s ease-in-out infinite; }
.lh-eye1 { transform-origin: 621px 805px; animation: lh-squeeze 6.4s ease-in-out infinite; }
.lh-eye2 { transform-origin: 858px 738px; animation: lh-squeeze 6.4s ease-in-out infinite; }
.lh-body { transform-origin: 823px 1805px; animation: lh-breathe 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .lh-head, .lh-mouth, .lh-eye1, .lh-eye2, .lh-body { animation: none; } }
.m-sub { font-weight: 500; font-size: clamp(28px, 5vw, 70px); line-height: 1.1; text-transform: uppercase; }
.m-btns { display: flex; flex-wrap: wrap; gap: 16px; }
.m-row img, .m-row .m-art { height: auto; }
.m-choose { grid-template-columns: auto auto 1fr; grid-template-areas: "word word art" "btns sub art"; column-gap: 36px; row-gap: 12px; }
.m-choose .m-word { grid-area: word; }
.m-choose .m-btns { grid-area: btns; align-self: center; }
.m-choose .m-sub { grid-area: sub; text-align: right; }
.m-choose img, .m-choose .m-art { grid-area: art; width: 278px; justify-self: start; align-self: end; }
.m-learn { grid-template-columns: 235px auto 1fr; grid-template-areas: "art word word" "art sub btns"; column-gap: 20px; row-gap: 4px; padding-left: 112px; }
.m-learn img, .m-learn .m-art { grid-area: art; width: 235px; align-self: end; }
.m-learn .m-word { grid-area: word; }
.m-learn .m-sub { grid-area: sub; }
.m-learn .m-btns { grid-area: btns; align-self: center; margin-left: 20px; }
.m-share { grid-template-columns: 1fr auto min(280px, 21vw); grid-template-areas: "btns word art" "btns sub art"; column-gap: 36px; row-gap: 4px; }
.m-share .m-word { grid-area: word; }
.m-share .m-sub { grid-area: sub; }
.m-share .m-btns { grid-area: btns; flex-direction: column; align-items: flex-end; align-self: end; }
.m-share img, .m-share .m-art { grid-area: art; width: min(280px, 21vw); align-self: center; margin-left: -48px; }

/* ==== BLOCK: quote-carousel ==== (Quotes) */
.quotes { background: var(--coffee-50); padding-block: 60px; }
.q-viewport { overflow: hidden; }
.q-track { display: flex; gap: 40px; width: max-content; padding-left: 40px; animation: belt var(--belt-time, 60s) linear infinite; }
.q-viewport:hover .q-track, .q-viewport:focus-within .q-track { animation-play-state: paused; }
@keyframes belt { to { transform: translateX(var(--belt-shift, -50%)); } }
@media (prefers-reduced-motion: reduce) { .q-viewport { overflow-x: auto; } .q-track { animation: none; } }
.q-card { flex: 0 0 360px; width: 360px; height: 360px; overflow: hidden; border-radius: 80px; padding: 26px 33px; color: #fff; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.q-card blockquote { margin: 0; flex: 1; display: flex; align-items: center; text-align: center; font: 400 16px/24px var(--font-serif); }
/* Card colours, chosen per quote in the CMS */
.q-card--orange { background: var(--orange-500); } .q-card--lilac { background: var(--lilac-600); } .q-card--coffee { background: var(--coffee-500); } .q-card--green { background: var(--green-500); } .q-card--deep { background: var(--quote-deep); }
/* Content limits: quote text max 8 lines, attribution max 2 lines, both end in "…" if longer */
.q-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; line-clamp: 8; overflow: hidden; }
.q-who { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.q-card figcaption { display: flex; justify-content: flex-end; align-items: center; gap: 14px; font-weight: 700; font-size: 14px; line-height: 21px; text-align: right; }
.qm { width: 70px; height: 41px; fill: var(--yellow-500); flex: none; }
.qm.close { transform: rotate(180deg); }

/* ==== BLOCK: feature-image-text ==== (Globe) */
.globe { background: var(--coffee-50); padding: var(--pad); overflow-x: clip; } /* the text glow can reach past the edge on narrow tablets */
.globe .wrap { position: relative; }
.globe-card { position: relative; aspect-ratio: 1352 / 827; clip-path: url(#blob-globe); background: #3a2a1f; }
.globe-slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.6s ease-in-out; } /* images set inline from the CMS */
.globe-slide.is-on { opacity: 1; }
.globe-text { position: absolute; right: 3.4%; top: 9.6%; width: 31.1%; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.globe-text::before { content: ""; position: absolute; inset: -32px -40px -40px -40px; background: radial-gradient(closest-side, #00000080, #00000000); z-index: -1; }
.globe-text p { font-size: 18px; line-height: 27px; }

/* ==== BLOCK: video-feature ==== (Video) */
.video { background: var(--coffee-50); padding: 72px var(--gutter) 110px; }
.video h2 { max-width: 1132px; margin: 0 auto 40px; }
.video figure { margin: 0 auto; max-width: 803px; }
.video-frame { position: relative; aspect-ratio: 803 / 452; border-radius: var(--radius-xl); overflow: hidden; background: #222 center 38% / cover; /* still set inline from the CMS */ }
.play { position: absolute; left: 50%; top: 50%; width: 86px; height: 86px; transform: translate(-50%, -50%); border-radius: 50%; border: 0; background: var(--video-blue); cursor: pointer; display: grid; place-items: center; transition: transform .15s; }
.play:hover { transform: translate(-50%, -50%) scale(1.06); }
.play svg { width: 22px; height: 26px; fill: #fff; margin-left: 5px; }
.video figcaption { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-weight: 700; font-size: 14px; line-height: 21px; }
.video figcaption svg { width: 22px; height: 22px; fill: var(--ink); flex: none; }

/* ==== BLOCK: video-lightbox ==== (Video lightbox) */
.video-frame { cursor: pointer; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: #000000d9; display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.lb-inner { width: min(960px, 100%); display: grid; gap: 8px; transform: translateY(16px) scale(.98); transition: transform .4s cubic-bezier(.22,1,.36,1); }
.lightbox.is-open .lb-inner { transform: none; }
.lb-close { justify-self: end; background: none; border: 0; color: #fff; font: 400 16px/24px var(--font-sans); cursor: pointer; padding: 4px 0; display: inline-flex; gap: 8px; align-items: center; }
.lb-close:hover { text-decoration: underline; text-underline-offset: 3px; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000 center 38% / cover; /* JS copies the still from the video block that opened it */ color: #fff; font-family: var(--font-sans); }
.player::after { content: ""; position: absolute; inset: 0; background: #0000; transition: background .3s; pointer-events: none; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; background: #000; }
.player.is-live > :not(iframe) { visibility: hidden; }
.p-title { position: absolute; left: 24px; top: 24px; display: grid; justify-items: start; gap: 0; }
.p-title b, .p-title span { background: #202c2ab3; padding: 3px 8px; }
.p-title b { color: #00adef; font-size: clamp(16px, 2.2vw, 21px); line-height: 1.2; }
.p-title span { font-size: clamp(13px, 1.6vw, 16px); }
.p-bar { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 8px; align-items: stretch; z-index: 1; }
.p-play { width: 64px; height: 40px; border: 0; border-radius: 4px; background: #202c2ab3; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.p-play:hover { background: #0093cb; }
.p-play svg { width: 18px; height: 20px; fill: currentColor; }
.p-rail { flex: 1; display: flex; align-items: center; gap: 16px; padding: 0 12px; height: 40px; border-radius: 4px; background: #202c2ab3; }
.p-track { position: relative; flex: 1; height: 12px; border: 1px solid #fff; cursor: pointer; }
.p-buf { position: absolute; inset: 1px auto 1px 1px; width: 58%; background: #ffffff40; }
.p-prog { position: absolute; inset: 1px auto 1px 1px; width: 0; background: #0093cb; }
.p-time { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.p-icon { width: 22px; height: 22px; fill: #fff; flex: none; }
.p-vol { display: flex; gap: 2px; align-items: flex-end; height: 16px; }
.p-vol i { width: 3px; background: #0093cb; } .p-vol i:nth-child(1){height:5px} .p-vol i:nth-child(2){height:8px} .p-vol i:nth-child(3){height:11px} .p-vol i:nth-child(4){height:14px;background:#ffffff66}
.p-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #202c2ae6; padding: 10px 16px; border-radius: 4px; font-size: 14px; line-height: 21px; text-align: center; max-width: 80%; opacity: 0; transition: opacity .3s; pointer-events: none; }
.player.is-playing .p-note { opacity: 1; }
@media (max-width: 699px) { .p-title { left: 8px; top: 8px; right: 8px; } .p-title span { display: none; } .p-title b { font-size: 13px; } .p-note { font-size: 12px; line-height: 18px; padding: 6px 10px; } .p-bar { left: 8px; right: 8px; bottom: 8px; } .p-play { width: 48px; } .p-rail .p-icon, .p-vol { display: none; } }
@media (prefers-reduced-motion: reduce) { .lightbox, .lb-inner { transition: none; } }

/* ==== BLOCK: latest-stories ==== (Latest articles and news: the pinned LineBreak story, then the newest) */
.stories { background: var(--coffee-50); padding: 0 var(--pad) var(--pad); }
.stories-panel { background: #fff; border-radius: 48px; padding: 120px 112px; display: flex; flex-direction: column; gap: 40px; }
.stories-panel > * { width: 100%; max-width: 1128px; margin-inline: auto; }
.stories-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; }
.stories-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stories-img { position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 350 / 216; }
.stories-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.stories-pin { position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 4px; background: var(--yellow-500); display: grid; place-items: center; }
.stories-pin svg { width: 20px; height: 20px; fill: var(--ink); }
.stories-date { font-size: 14px; line-height: 21px; }
.stories-title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 22px; line-height: 29px; letter-spacing: -0.02em; }
.stories-title a { text-decoration: none; }
.stories-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* the whole card is the link */
.stories-excerpt { font-size: 16px; line-height: 24px; }
.stories-labels { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stories-labels li { height: 24px; padding: 3px 8px; border: 1px solid var(--neutral-500); border-radius: 30px; font-size: 12px; line-height: 18px; white-space: nowrap; }
.stories-card:hover .stories-img img { transform: scale(1.07); }
.stories-card:hover .stories-title { color: var(--orange-700); }
.stories-card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 20px; }
.stories-card a:focus-visible { outline: none; }
[data-input="pointer"] .stories-card:has(a:focus-visible) { outline: none; }
.stories-all { margin-top: 16px; }
.stories-miss { margin: 0; font-size: 16px; line-height: 24px; color: var(--neutral-600); }
@media (prefers-reduced-motion: reduce) { .stories-img img { transition: none; } .stories-card:hover .stories-img img { transform: none; } }
@media (max-width: 1099px) {
  .stories-panel { border-radius: 32px; padding: 72px 40px; }
  .stories-grid { gap: 24px; } /* tablet: still three across */
  .stories-img { border-radius: 18px; }
  .stories-date { font-size: 13px; line-height: 18px; }
  .stories-title { font-size: 18px; line-height: 26px; }
  .stories-excerpt { font-size: 14px; line-height: 21px; }
}
@media (max-width: 699px) {
  .stories-panel { border-radius: 24px; padding: 48px 20px; gap: 32px; }
  .stories-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .stories-img { border-radius: 16px; }
  .stories-title { font-size: 18px; line-height: 26px; }
  .stories-all { margin-top: 0; }
}

/* ==== BLOCK: plans ==== (Plans) */
.plans { background: var(--coffee-50); padding-block: var(--pad); }
.plans--white { background: #fff; padding-inline: var(--pad); } /* option: white surround on all four sides, instead of the full-width coffee band */
.plans-box { position: relative; background: var(--green-500); padding: 60px 24px 40px; overflow: hidden; }
.plans-box > .brush { position: absolute; left: 50%; top: 50%; width: 97%; max-width: 1309px; }
.plans-head, .plan-grid { max-width: 1304px; margin-inline: auto; }
.plans-box > .brush { transform: translate(-50%, -48%); pointer-events: none; }
.plans-head { position: relative; text-align: center; color: var(--neutral-50); display: grid; gap: 8px; margin-bottom: 40px; }
.plans-head { margin-inline: auto; }
.plans-head h2 { word-spacing: .2em; }
.plan-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 0 auto; padding: 0; }
.plan { background: #fff; border-radius: 48px; padding: 40px; display: flex; flex-direction: column; gap: 8px; }
.plan img { height: 114px; width: auto; align-self: flex-start; margin-bottom: 8px; }
.plan h3 { font-weight: 700; font-size: 46px; line-height: 57.5px; letter-spacing: -0.02em; text-transform: uppercase; }
.plan p { flex: 1; min-height: 72px; }
.plan .btns { display: grid; gap: 8px; margin-top: 24px; }

/* ==== BLOCK: support-cta ==== (Support) */
.support { background: var(--yellow-500); padding: var(--pad); }
.support-grid { display: grid; grid-template-columns: 837fr 491fr; gap: 64px; align-items: center; }
.support img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 30%; border-radius: 60px; }
.support-text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 411px; }
.support-text h2 { font-weight: 700; font-size: 46px; line-height: 57.5px; letter-spacing: -0.02em; text-transform: uppercase; }
.support-text p { font-size: 18px; line-height: 27px; }

/* ==== BLOCK: partner-logos ==== (Partners) */
.partners { background: var(--yellow-500); border-bottom: 1px solid #0000000f; padding: 56px 0 48px; display: flex; gap: 48px; align-items: flex-start; overflow: hidden; }
.partners h2 { font-size: 16px; line-height: 24px; font-weight: 700; margin-bottom: 20px; }
.funded { flex: none; margin-left: 0; padding: 12px 20px 12px 68px; }
.funded .logos { display: flex; align-items: center; gap: 46px; }
.funded img:first-child { width: 100px; } .funded img:last-child { width: 88px; }
.ours { min-width: 0; flex: 1; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.marquee ul { display: flex; align-items: center; gap: 52px; width: max-content; list-style: none; margin: 0; padding: 0; animation: slide 40s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee img { height: auto; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee ul { animation: none; } .menu { transition: none; } }

/* ==== BLOCK: site-footer ==== (Footer) */
.footer { position: relative; background: var(--yellow-500); padding: 80px var(--gutter) 40px; overflow: hidden; }
.footer .zig { position: absolute; right: -61px; bottom: -76px; width: 958px; max-width: none; height: auto; pointer-events: none; } /* Figma footer: 958px wide, cropped by the footer's right and bottom edges */
@media (max-width: 1099px) { .footer .zig { width: 576px; right: -63px; bottom: -48px; } }
@media (max-width: 699px)  { .footer .zig { width: 495px; right: -67px; bottom: -29px; } }
.foot-grid { position: relative; display: grid; grid-template-columns: 1fr 396px; gap: 42px; align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--orange-500); }
.foot-brand img { width: 105px; }
.linkedin { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--video-blue); display: grid; place-items: center; }
.linkedin img { width: 17px; height: 17px; }
.address { margin-top: 24px; font-size: 14px; line-height: 21px; }
.foot-links { display: grid; grid-template-columns: 200px 200px; gap: 8px 0; margin-top: 40px; }
.foot-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.foot-links a { font-size: 14px; line-height: 21px; text-decoration: none; }
.foot-links a:hover { color: var(--orange-700); }
.credit { margin-top: 48px; font-size: 12px; line-height: 21px; max-width: 396px; }
.address a, .credit a { color: inherit; text-decoration: none; }
.address a:hover, .credit a:hover { color: var(--orange-700); text-decoration: underline; text-underline-offset: 2px; }
.address a:focus-visible, .credit a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.news { position: relative; background: var(--yellow-300); border: 1px solid #e6d20066; border-radius: var(--radius-xl); padding: 28px; display: grid; gap: 16px; }
.news h2 { font-weight: 800; font-size: 22px; line-height: 29px; max-width: 200px; }
.news .bird { position: absolute; right: 28px; top: 22px; width: 93px; }
.news label { font-size: 14px; }
.news input { width: 100%; height: 45px; border: 1px solid var(--neutral-300); border-radius: var(--radius-sm); padding: 0 14px; font: 400 14px/1 var(--font-sans); color: var(--ink); background: #fff; }
.news input::placeholder { color: var(--neutral-500); }
.news .news-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.35; font-weight: 400; }
.news .news-consent input { width: auto; height: auto; margin-top: 2px; flex-shrink: 0; }
.news .btn { justify-self: start; min-width: 100px; }
.news .done { font-size: 14px; font-weight: 700; }
.news .done.is-error { font-weight: 600; }


/* ==== BLOCK: web-chat ==== (Web chat) */
/* TEMP OFF — remove this rule to bring the chat bubble back */
.chat-launch,
.chat[data-block="web-chat"] { display: none !important; }

.chat-launch { position: fixed; right: 44px; bottom: calc(44px + env(safe-area-inset-bottom, 0px)); width: 73px; height: 73px; border-radius: 50%; background: #fff; border: 0; padding: 0;
  box-shadow: 0 0 20px #00000080; display: grid; place-items: center; cursor: pointer; z-index: 45; transition: transform .2s ease, opacity .2s ease; }
.chat-launch img { width: 48px; height: 48px; }
.chat-launch:hover { transform: scale(1.137); } /* 73 → 83px, as the "Chat closed hover" variant */
.chat-launch.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }
.chat { position: fixed; right: 44px; bottom: calc(44px + env(safe-area-inset-bottom, 0px)); width: 363px; height: min(655px, calc(100vh - 88px)); z-index: 46;
  background: #fff; border-radius: 16px; box-shadow: 0 0 20px #00000040; display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right; transform: translateY(12px) scale(.96); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .2s ease, visibility 0s linear .25s; }
.chat.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .25s ease, opacity .2s ease; }
.chat-head { display: flex; align-items: flex-start; gap: 16px; padding: 16px; border-bottom: 1px solid var(--neutral-200); }
.chat-head img { width: 48px; height: 48px; flex: none; }
.chat-head div { flex: 1; }
.chat-head strong { display: block; font-weight: 700; font-size: 16px; line-height: 24px; }
.chat-head span { font-size: 14px; line-height: 21px; }
.chat-x { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; width: 24px; height: 24px; }
.chat-x svg { width: 24px; height: 24px; fill: currentColor; display: block; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 24px; list-style: none; margin: 0; }
.msg { display: flex; gap: 16px; font-size: 16px; line-height: 24px; }
.msg p { padding: 16px; border-radius: 16px; max-width: 259px; }
.msg img { width: 32px; height: 32px; flex: none; }
.msg--bot p { background: var(--yellow-100); color: var(--ink); }
.msg--me { justify-content: flex-end; padding-left: 88px; }
.msg--me p { background: var(--neutral-600); color: #fff; }
.typing p { display: flex; gap: 6px; align-items: center; min-height: 56px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--neutral-500); animation: blink 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-form { display: flex; align-items: center; gap: 10px; padding: 16px; background: var(--neutral-50); border-top: 1px solid var(--neutral-200); }
.chat-form input { flex: 1; min-width: 0; height: 48px; border: 1px solid var(--neutral-300); border-radius: 4px; padding: 0 16px; background: #fff; box-shadow: 0 0 5px #00000026; font: 400 16px/24px var(--font-sans); color: var(--ink); }
.chat-form input::placeholder { color: var(--neutral-500); }
.chat-form input:focus-visible { outline: none; border: 2px solid var(--focus); padding-inline: 15px; }
.chat-form button { background: none; border: 0; padding: 0; width: 24px; height: 24px; color: var(--ink); cursor: pointer; }
.chat-form button svg { width: 24px; height: 24px; fill: currentColor; display: block; }
@media (max-width: 1099px) { .chat-launch, .chat { right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); } .chat-launch { width: 60px; height: 60px; } .chat-launch img { width: 40px; height: 40px; } }
@media (max-width: 699px) { .chat { right: 12px; left: 12px; width: auto; height: min(655px, calc(100vh - 40px)); } }
@media (prefers-reduced-motion: reduce) { .chat, .chat-launch { transition: none; } .typing i { animation: none; opacity: .6; } }

/* ================= Tablet (810 design) =================
   Overrides for every block at 1099px and below, in page order. Each rule starts with its block's class. */
@media (max-width: 1099px) {
  .nav-inner { grid-template-columns: auto 1fr auto; grid-template-rows: auto; padding: 20px 24px; align-items: center; }
  .logo { grid-row: 1; }
  .logo img { width: 105px; }
  .nav-inner > nav, .login, .nav-search { display: none; }
  .burger { display: inline-flex; }
  .intro { padding: 24px; }
  .hero-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; grid-auto-rows: calc((100cqw - 16px) * 2 / 3 * 622 / 885); }
  .intro p { font-size: clamp(14px, 2.6cqw, 22px); }
  .tiles { gap: 16px; margin-top: 16px; }
  /* boxes stay square, as on desktop */
  .tile { padding: 24px; aspect-ratio: 1; min-height: 0; }
  .tile h2 { font-size: clamp(18px, 2.6vw, 26px); line-height: 1.25; }
  .tile--coffee img { width: 80%; }
  .adapt { min-height: 500px; }
  .adapt-text { padding: 48px 24px; max-width: 360px; }
  .anth { padding: 60px 24px; }
  .anth-head { padding-bottom: 24px; }
  .sb { height: 96px; gap: 12px; padding-right: 12px; }
  .sb img { width: 96px; height: 80px; border-radius: 24px; }
  .sb b { font-size: 30px; }
  .sb span { font-size: 16px; line-height: 21px; }
  .mantra { padding: 64px 24px; }
  .m-row { justify-content: center; }
  .m-choose { grid-template-columns: auto 190px; grid-template-areas: "word art" "sub art" "btns art"; column-gap: 36px; row-gap: 4px; }
  .m-choose .m-sub { text-align: left; }
  .m-choose .m-btns { margin-top: 8px; }
  .m-row { padding-block: 32px; }
  .m-choose img, .m-choose .m-art { width: 190px; }
  .m-learn { grid-template-columns: 170px auto; grid-template-areas: "art word" "art sub" "art btns"; padding-left: 0; }
  .m-learn img, .m-learn .m-art { width: 170px; }
  .m-learn .m-btns { margin-left: 0; }
  .m-share { grid-template-columns: auto 190px; grid-template-areas: "word art" "sub art" "btns art"; justify-content: center; }
  .m-share .m-btns { flex-direction: row; align-items: center; margin-top: 8px; }
  .m-share img, .m-share .m-art { width: 190px; margin-left: -24px; }
  .globe-text { width: 42%; gap: 12px; }
  .globe-text .h4 { font-size: 26px; line-height: 32px; }
  .globe-text p { font-size: 14px; line-height: 21px; }
  .video { padding: 56px 24px 72px; }
  .plans-box { padding: 40px 16px 24px; }
  .plan-grid { gap: 12px; }
  .plan { padding: 20px 16px; border-radius: 24px; }
  .plan img { height: 64px; }
  .plan h3 { font-size: 30px; line-height: 38px; }
  .plan p { font-size: 13px; line-height: 18px; }
  .support-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .support img { border-radius: 40px; }
  .support-text h2 { font-size: 36px; line-height: 43px; }
  .support-text p { font-size: 14px; line-height: 21px; }
  .partners { padding: 32px 0 32px; gap: 24px; }
  .funded { padding-left: 24px; }
  .footer { padding: 48px 24px 120px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-links { grid-template-columns: 1fr 1fr; }
}

/* ================= Mobile (390 design) =================
   Overrides for every block at 699px and below, in page order. */
@media (max-width: 699px) {
  .flash { font-size: 14px; line-height: 21px; padding-inline: 20px; }
  .nav-inner { padding: 16px 20px; column-gap: 12px; }
  .logo img { width: 105px; }
  .hero { padding: 16px; }
  .hero-grid, .tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; grid-auto-rows: auto; }
  .hero-grid > *, .tiles > * { min-width: 0; }
  .tiles { margin-top: 12px; }
  /* box heights follow the 358-wide design: 250 for the hero, 220 for the rest */
  .hero-main { aspect-ratio: auto; height: calc((100vw - 32px) * 250 / 358); }
  .hero-main h1 { font-size: clamp(24px, 7.2vw, 34px); }
  .intro p { font-size: var(--h4); }
  .intro { padding: 20px; gap: 12px; }
  .intro { min-height: calc((100vw - 32px) * 220 / 358); aspect-ratio: auto; padding: 20px; gap: 12px; }
  .intro p { font-size: var(--h4); line-height: var(--h4-lh); max-width: none; }
  .tile { min-height: 0; aspect-ratio: auto; height: calc((100vw - 32px) * 220 / 358); padding: 20px; gap: 12px; }
  .tile h2 { max-width: 250px; font-size: var(--h4); line-height: var(--h4-lh); }
  .tile--coffee img { width: auto; height: 112%; max-width: none; right: -6%; bottom: -14%; }
  .tile--green .heart { left: auto; right: 8%; top: 50%; width: auto; height: 78%; transform: translateY(-50%); }
  .adapt { background: #fff; min-height: 0; }
  .adapt-img { position: static; aspect-ratio: 390 / 210; background-position: 72% center; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
  .adapt-text { padding: 20px 20px 40px; max-width: none; }
  .anth { padding: 40px 20px 56px; }
  .anth-head { flex-direction: column; }
  .anth-head p { text-align: left; font-size: 14px; }
  .links-grid { grid-template-columns: 1fr; }
  .sb { height: 104px; }
  .mantra { padding: 48px 20px; }
  .m-row, .m-choose, .m-learn, .m-share { grid-template-columns: 1fr; grid-template-areas: "art" "word" "sub" "btns"; justify-items: center; text-align: center; row-gap: 8px; padding-block: 32px; }
  .m-choose .m-sub { text-align: center; }
  .m-row img, .m-choose img, .m-choose .m-art, .m-learn img, .m-learn .m-art, .m-share img, .m-share .m-art { width: 150px; justify-self: center; margin-left: 0; }
  .m-btns, .m-share .m-btns { flex-direction: column; align-items: stretch; width: min(100%, 220px); margin-top: 12px; }
  .globe-card { aspect-ratio: 287 / 175; }
  .globe-text { position: static; width: auto; color: var(--ink); padding: 24px 20px 8px; }
  .globe-text::before { display: none; }
  .globe-text p { font-size: 14px; line-height: 21px; }
  .video { padding: 48px 20px; }
  .plan-grid { grid-template-columns: 1fr; gap: 16px; }
  .plans-head { margin-bottom: 24px; }
  .plan { padding: 24px 20px; }
  .plan p { font-size: 14px; line-height: 21px; min-height: 0; }
  .support-grid { grid-template-columns: 1fr; gap: 24px; }
  .support-text { padding: 0 12px 24px; }
  .support-text h2 { font-size: 30px; line-height: 38px; }
  .partners { flex-direction: column; padding: 32px 20px; }
  .funded { padding: 0; }
  .ours { width: 100%; }
  .footer { padding: 40px 20px 150px; }
  .foot-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .foot-grid > div { display: contents; } /* lets the credit line move below the newsletter box, as in the Figma mobile footer */
  .footer .news { order: 1; margin-top: 40px; }
  .footer .credit { order: 2; margin-top: 40px; }
  .foot-links { grid-template-columns: 1fr 1fr; }
  .news .bird { width: 70px; right: 20px; }
}


/* ==== SHARED: page furniture ====
   Used on every inner template: section colours, header colour, breadcrumb, page title. */
.sec--green { background: var(--green-300); }
.sec--yellow { background: var(--yellow-500); }
.sec--lilac { background: var(--lilac-500); }
.sec--white { background: #fff; }
.nowrap { white-space: nowrap; }

/* Header colour follows the page's first section (page setting) */
.nav[data-colour="green"] { background: var(--green-300); }
.nav[data-colour="lilac"] { background: var(--lilac-500); }
.nav[data-colour="pale"] { background: var(--yellow-100); }

/* BLOCK: breadcrumb */
.crumbs { padding: 24px 56px 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; line-height: 21px; color: #000; }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs a { text-decoration: underline; text-underline-offset: 2px; }
.crumbs a:hover { color: var(--orange-700); }
.crumbs svg { width: 14px; height: 14px; fill: currentColor; flex: none; }

/* BLOCK: page-title (the design system's "Page title header"), with an optional brushstroke on the right */
.page-head { position: relative; overflow: hidden; }
.page-title { position: relative; z-index: 1; padding: 32px 86px; text-align: center; font-weight: 700; font-size: 46px; line-height: 58px; letter-spacing: -0.02em; word-spacing: .25em;
  text-transform: uppercase; text-wrap: balance; max-width: calc(17em + 172px); margin-inline: auto; }
.page-brush { position: absolute; left: calc(50% + 370px); top: 13px; width: 390px; height: auto; pointer-events: none; }

@media (max-width: 1099px) {
  .crumbs { padding: 24px 40px 0; }
  .crumbs ol { font-size: 13px; line-height: 18px; }
  .page-title { padding: 32px 40px; font-size: 36px; line-height: 45px; max-width: calc(17em + 80px); }
  .page-brush { left: auto; right: -50px; top: 20px; width: 214px; }
}
@media (max-width: 699px) {
  .crumbs { padding: 24px 24px 0; }
  .page-title { padding: 24px; font-size: 30px; line-height: 38px; max-width: none; }
  .page-brush { right: -87px; top: 72px; width: 174px; }
  /* second brushstroke tucked behind the header's top-right corner on phones */
  .nav[data-brush] { background-image: url("../img/lp-brush-orange.webp"); background-repeat: no-repeat; background-size: 214px auto; background-position: right -50px top -52px; }
}

/* ==== SHARED: footer at the bottom ==== on short pages the footer sits at the bottom of the window (longer pages scroll as normal) */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > * { flex-shrink: 0; }
body > .footer { margin-top: auto; }

/* ==== BLOCK: tooltip ==== (the design system's "Tool tip"): an info button; the note shows above it on hover, focus or tap */
.ttip { position: relative; display: inline-flex; flex: none; vertical-align: middle; }
.ttip-btn { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .15s; }
.ttip-btn svg { width: 24px; height: 24px; fill: currentColor; }
.ttip-btn:hover, .ttip-btn[aria-expanded="true"], .ttip-btn:focus-visible { background: var(--focus); }
.ttip-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ttip-box { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20; width: 264px; max-width: calc(100vw - 48px); padding: 10px; border-radius: 4px; background: var(--ink); color: #fff; box-shadow: 0 0 5px rgba(0,0,0,.25); font: 400 12px/18px var(--font-sans); text-align: center; white-space: normal;
  visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility 0s linear .15s; pointer-events: none; }
.ttip:hover .ttip-box, .ttip-btn:focus-visible + .ttip-box, .ttip-btn[aria-expanded="true"] + .ttip-box { visibility: visible; opacity: 1; transform: none; transition: opacity .15s, transform .15s, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .ttip-box { transition: none; transform: none; } }

/* ==== BLOCK: brush-layers ==== (layered brushstrokes start masked; pbh.js paints them in.
   Show the finished picture when there is no script or the visitor prefers reduced motion.) */
@media (scripting: none) { svg[data-draw-layers] image { mask: none; } }
@media (prefers-reduced-motion: reduce) { svg[data-draw-layers] image { mask: none; } }

/* ==== BLOCK: not-found ==== the 404 page: no footer, the message centred in the window */
body.page-404 > main { flex: 1 0 auto; display: flex; flex-direction: column; }
.nf { flex: 1 0 auto; display: grid; place-items: center; padding: 60px 24px; background: #fff; }
.nf-box { width: 100%; max-width: 595px; padding: 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.nf-img { width: 194px; height: auto; }
.nf-h { margin-top: 16px; color: var(--orange-500); font-weight: 800; font-size: 22px; line-height: 29px; letter-spacing: -0.02em; }
.nf-box p { margin-top: 8px; font-size: 16px; line-height: 24px; }
.nf-box .btn { margin-top: 16px; }
@media (max-width: 699px) {
  .nf { padding: 40px 16px; }
  .nf-img { width: 160px; }
  .nf-h { font-size: 20px; line-height: 26px; }
  .nf-box p { font-size: 14px; line-height: 21px; }
}
