/* Tendling — landing page.
   Brand: docs/design/brand.md in tendling-app. Coral print, warm black cat, cream eyes, paper. */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-ext.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 800; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  font-weight: 300 800; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --coral: #EE5A43;
  --coral-deep: #D94A34;
  --coral-shadow: #9C3322;
  --ink: #1E1A1C;
  --ink-2: #3A3436;
  --muted: #6F6669;
  --cream: #F4EEDC;
  --cream-2: #FBF7EC;
  --paper: #F1ECE4;
  --paper-2: #F7F3EC;
  --card: #FBF9F5;
  --nose: #E9876F;
  --whisker: #D8D2CC;
  --night: #24263A;
  --night-2: #2E3150;
  --line: rgba(30, 26, 28, .1);
  --line-cream: rgba(244, 238, 220, .18);

  --display: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, "Segoe UI", Roboto, sans-serif;

  --r-xl: 36px;
  --r-lg: 26px;
  --r-md: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --header-h: 68px;

  /* Gouache grain, as an image: tiny dark and light specks. */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(238, 90, 67, .28); }

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 560;
  letter-spacing: -.015em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(36px, 5.4vw, 68px); }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.005em; }
p { margin: 0; text-wrap: pretty; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.hero :focus-visible, .final :focus-visible, .drift :focus-visible { outline-color: var(--cream); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.fine { font-size: 14px; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase;
  color: var(--coral-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.eyebrow-cream { color: var(--cream); opacity: .9; }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; }
.lede-ink { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); margin-top: 18px; max-width: 34em; }
.lede-cream { font-size: clamp(18px, 1.6vw, 20px); color: rgba(244, 238, 220, .82); margin-top: 18px; max-width: 32em; }
.center-head { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 6vw, 72px); }
.center-head .lede-ink { margin-inline: auto; }

/* Buttons */
.btn {
  --bg: var(--ink); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font: 600 16px/1 var(--text); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .35s var(--spring), box-shadow .3s var(--ease-out), background-color .2s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 18px -8px rgba(30, 26, 28, .45);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 26px -10px rgba(30, 26, 28, .5); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.btn .apple { width: 15px; height: 18px; margin-top: -2px; }
.btn-cream { --bg: var(--cream); --fg: var(--ink); }
.btn-ink { --bg: var(--ink); --fg: var(--cream); }
.btn-ghost {
  --bg: rgba(30, 26, 28, .14); --fg: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(244, 238, 220, .45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { --bg: rgba(30, 26, 28, .22); box-shadow: inset 0 0 0 1.5px rgba(244, 238, 220, .7); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn-sm .apple { width: 12px; height: 15px; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 18px; }
.btn.is-soon { cursor: default; }
.btn.is-soon:hover { transform: none; }

/* Sound bars: four little bars that dance while something plays. */
.bars { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 14px; }
.bars i { width: 3px; height: 4px; border-radius: 2px; background: currentColor; transition: height .3s; }
.is-playing .bars i { animation: bar 1.1s ease-in-out infinite; }
.is-playing .bars i:nth-child(2) { animation-delay: -.35s; }
.is-playing .bars i:nth-child(3) { animation-delay: -.7s; }
.is-playing .bars i:nth-child(4) { animation-delay: -.2s; }
@keyframes bar { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* Header */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--cream); isolation: isolate;
  /* The blur is always on, so nothing switches abruptly; only the two tints below fade. */
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: color .45s var(--ease-out);
}
/* Two tints, crossfaded: coral glass over the hero, paper glass over the rest of the page. */
.top::before, .top::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none; transition: opacity .45s var(--ease-out); }
.top::before { background: rgba(236, 88, 66, .84); box-shadow: inset 0 -1px 0 rgba(255, 244, 230, calc(var(--glass, 0) * .14)); }
.top::after { background: rgba(241, 236, 228, .92); box-shadow: inset 0 -1px 0 var(--line); }
.top::before { opacity: var(--glass, 0); transition: none; }
.top.is-solid::after { opacity: 1; }
.top-in { height: 100%; display: flex; align-items: center; gap: 24px; width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.top.is-solid { color: var(--ink); }
.top.is-solid .wordmark { --dot: var(--nose); }
.logo { display: block; flex: none; padding: 6px 0; }
.wordmark { width: 118px; height: auto; aspect-ratio: 373.64 / 124.35; }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  opacity: .88; transition: background-color .2s, opacity .2s;
}
.nav a:hover { opacity: 1; background: rgba(30, 26, 28, .1); }
.top-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .top-end { margin-left: 0; }
.lang-link { font-size: 14px; font-weight: 500; text-decoration: none; padding: 8px 10px; border-radius: 999px; opacity: .85; }
.lang-link:hover { opacity: 1; background: rgba(30, 26, 28, .1); }
.sound-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px;
  border: 0; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500;
  background: rgba(30, 26, 28, .12); transition: background-color .2s;
}
.sound-toggle:hover { background: rgba(30, 26, 28, .2); }
.top.is-solid .sound-toggle { background: rgba(30, 26, 28, .07); }
.top.is-solid .btn-ink { box-shadow: none; }
.top:not(.is-solid) .btn-ink { --bg: var(--cream); --fg: var(--ink); box-shadow: none; }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  background: var(--coral);
  color: var(--cream);
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--header-h) + clamp(14px, 4.5vh, 56px)) var(--gutter) 0;
  --cat: clamp(300px, min(66vw, 50svh), 660px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); background-size: 240px; opacity: .22; mix-blend-mode: multiply;
}
.hero-light {
  position: absolute; inset: -20% -10% auto; height: 80%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 30%, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 70%);
}
.hero-copy { position: relative; z-index: 3; text-align: center; max-width: 1100px; }
.hero h1 {
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 580; letter-spacing: -.025em; line-height: .98;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.hero .lede { margin: 20px auto 0; max-width: 34em; color: rgba(251, 247, 236, .9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.hero-meta { margin-top: 18px; font-size: 14px; color: rgba(251, 247, 236, .78); }

.hero .hero-copy { animation: rise .9s var(--ease-out) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* The cat, peeking up over the bottom edge: its chin is cut by the edge, as on the icon. */
.cat-wrap {
  position: relative; z-index: 2; width: var(--cat); aspect-ratio: 1;
  margin-top: auto; margin-bottom: calc(var(--cat) * -0.15);
  animation: peek 1.5s var(--spring) .35s both;
}
@keyframes peek { from { transform: translateY(46%); } to { transform: none; } }
.cat { width: 100%; height: 100%; overflow: visible; }
.cat-body { transform-origin: 50% 92%; transform-box: view-box; transition: transform .5s var(--spring); }
.head { fill: var(--ink); }
.ear-inner { fill: #2C2629; opacity: .7; }
.eye-white { fill: var(--cream); }
.pupil { fill: #151113; }
.glint { fill: #FBF7EC; opacity: .95; }
.glint-s { opacity: .7; }
.lid { fill: var(--ink); transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.nose { fill: var(--nose); }
.whiskers path { fill: none; stroke: var(--whisker); stroke-opacity: .72; stroke-width: .38; stroke-linecap: round; }
.whiskers { transform-box: view-box; transition: transform .6s var(--spring); }
.whiskers-l { transform-origin: 42px 76px; }
.whiskers-r { transform-origin: 58px 76px; }
.happy { opacity: 0; transition: opacity .15s; }
.happy path { fill: none; stroke: var(--cream); stroke-width: 2.6; stroke-linecap: round; }
.cat-wrap.is-happy .happy { opacity: 1; }
.cat-wrap.is-happy .eyes { opacity: 0; }
.cat-wrap.is-happy .whiskers-l { transform: rotate(-4deg); }
.cat-wrap.is-happy .whiskers-r { transform: rotate(4deg); }
.cat-wrap.is-purring .cat-body { animation: purr .09s linear infinite alternate; }
@keyframes purr { from { transform: translateY(0) scale(1); } to { transform: translateY(.12px) scale(1.0025, .9985); } }
.cat-hit {
  position: absolute; z-index: 3; left: 15%; top: 10%; width: 70%; height: 75%;
  border: 0; background: transparent; border-radius: 45% 45% 40% 40%; cursor: grab; padding: 0;
}
.cat-hit:active { cursor: grabbing; }
.cat-hit:focus-visible { outline-offset: -6px; }
.prrr {
  position: absolute; z-index: 4; inset: 0; pointer-events: none;
}
.prrr span {
  position: absolute; font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(18px, 2.4vw, 28px); color: var(--cream); white-space: nowrap;
  animation: float-up 2.4s var(--ease-out) forwards;
}
@keyframes float-up {
  0% { opacity: 0; transform: translate(-50%, 10px) rotate(var(--r, 0deg)); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -90px) rotate(var(--r, 0deg)); }
}

/* The cat asks to be petted when the browser keeps the purr silent until a first touch. */
.purr-hint {
  position: absolute; z-index: 4; left: 80%; top: 4%; pointer-events: none; white-space: nowrap;
  padding: 10px 16px; border-radius: 18px 18px 18px 4px; background: var(--cream); color: var(--ink);
  font: 540 clamp(15px, 1.5vw, 18px)/1.2 var(--display); font-variation-settings: "SOFT" 100;
  box-shadow: 0 14px 30px -12px rgba(90, 26, 16, .45);
  opacity: 0; transform: translateY(8px) scale(.9); transform-origin: 0 100%;
  transition: opacity .4s, transform .5s var(--spring);
}
.purr-hint.is-on { opacity: 1; transform: none; animation: hint-bob 3.2s ease-in-out .6s infinite; }
@keyframes hint-bob { 50% { transform: translateY(-5px); } }
@media (max-width: 720px) { .purr-hint { left: auto; right: 2%; top: -6%; border-radius: 18px 18px 4px 18px; } }

/* A moth that crosses the print now and then; the cat's eyes follow it. */
.moth { position: absolute; z-index: 2; left: 0; top: 0; width: 38px; pointer-events: none; opacity: 0; will-change: transform; }
.moth svg { overflow: visible; }
.moth .wing path { fill: var(--cream); opacity: .92; }
.moth .moth-body { fill: #CFC6B0; }
.moth .wing { transform-box: view-box; transform-origin: 20px 15px; animation: flap .16s ease-in-out infinite alternate; }
.moth .wing-r { animation-delay: -.08s; }
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(.35); } }

/* Sections */
.section { position: relative; padding: clamp(76px, 10vw, 136px) 0; }
.split { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split-rev { grid-template-columns: 1fr 1fr; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.films .reveal:nth-child(3n+2), .hunts .reveal:nth-child(2n), .cards .reveal:nth-child(3n+2), .sound-grid .reveal:nth-child(2) { transition-delay: .08s; }
.films .reveal:nth-child(3n), .cards .reveal:nth-child(3n), .sound-grid .reveal:nth-child(3) { transition-delay: .16s; }
.sound-grid .reveal:nth-child(4) { transition-delay: .24s; }

/* How it works */
.how { background: var(--paper); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 6px; }
.step {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  padding: 18px 18px; border-radius: var(--r-md);
  transition: background-color .4s, box-shadow .4s;
}
.step h3 { font-size: 20px; }
.step p { color: var(--muted); margin-top: 6px; font-size: 16px; }
.step-n {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font: 600 16px/1 var(--display); background: rgba(30, 26, 28, .07); color: var(--ink-2);
  transition: background-color .4s, color .4s;
}
.step.is-on { background: var(--card); box-shadow: 0 1px 0 var(--line), 0 18px 40px -26px rgba(60, 30, 20, .35); }
.step.is-on .step-n { background: var(--coral); color: var(--cream); }

/* The Mac mock: a wallpaper, the menu bar, the popover. */
.mac {
  position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1 / 1.02;
  background: linear-gradient(160deg, #F8B49E 0%, #EE7A5F 38%, #C9586B 70%, #6E4C7E 100%);
  box-shadow: 0 40px 80px -40px rgba(80, 30, 20, .55), 0 0 0 1px rgba(30, 26, 28, .06);
}
.mac::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 240px; opacity: .14; mix-blend-mode: multiply; pointer-events: none; }
.mac-wall { position: absolute; inset: 0; font-family: var(--text); }
.menubar {
  position: absolute; inset: 0 0 auto; height: 30px; display: flex; align-items: center; gap: 16px; padding: 0 14px;
  background: rgba(250, 236, 228, .5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-size: 13px; color: #1d1d1f; z-index: 3;
}
.mb-apple { width: 12px; height: 14px; background: #1d1d1f; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 20'><path d='M14.1 10.6c0-2.6 2.1-3.8 2.2-3.9-1.2-1.8-3.1-2-3.7-2-1.6-.2-3.1.9-3.9.9-.8 0-2.1-.9-3.4-.9C3.5 4.7 1.9 5.7 1 7.3c-1.9 3.2-.5 8 1.3 10.6.9 1.3 1.9 2.7 3.3 2.6 1.3-.1 1.8-.9 3.4-.9 1.6 0 2 .9 3.4.8 1.4 0 2.3-1.3 3.2-2.6 1-1.5 1.4-2.9 1.4-3-.1 0-2.9-1.1-2.9-4.2ZM11.5 2.9c.7-.9 1.2-2 1.1-3.2-1 0-2.3.7-3 1.6-.7.8-1.2 2-1.1 3.1 1.1.1 2.3-.6 3-1.5Z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 20'><path d='M14.1 10.6c0-2.6 2.1-3.8 2.2-3.9-1.2-1.8-3.1-2-3.7-2-1.6-.2-3.1.9-3.9.9-.8 0-2.1-.9-3.4-.9C3.5 4.7 1.9 5.7 1 7.3c-1.9 3.2-.5 8 1.3 10.6.9 1.3 1.9 2.7 3.3 2.6 1.3-.1 1.8-.9 3.4-.9 1.6 0 2 .9 3.4.8 1.4 0 2.3-1.3 3.2-2.6 1-1.5 1.4-2.9 1.4-3-.1 0-2.9-1.1-2.9-4.2ZM11.5 2.9c.7-.9 1.2-2 1.1-3.2-1 0-2.3.7-3 1.6-.7.8-1.2 2-1.1 3.1 1.1.1 2.3-.6 3-1.5Z'/></svg>") center / contain no-repeat; }
.mb-app { font-weight: 700; }
.mb-spacer { flex: 1; }
.mb-glyph { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 5px; transition: background-color .2s; }
.mb-glyph svg { width: 17px; height: 17px; fill: #1d1d1f; }
.mb-glyph.is-open { background: rgba(0, 0, 0, .12); }
.mb-time { font-variant-numeric: tabular-nums; font-size: 12.5px; }
.mb-time:empty { display: none; }

.pop {
  position: absolute; z-index: 4; top: 36px; right: clamp(10px, 6%, 54px); width: min(320px, 86%);
  padding: 12px 14px 14px; border-radius: 16px;
  background: rgba(246, 242, 238, .84); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 24px 50px -12px rgba(40, 20, 30, .45);
  font-size: 12.5px; color: #1d1d1f;
  transform-origin: 80% 0; transform: scale(.94) translateY(-6px); opacity: 0;
  transition: transform .35s var(--spring), opacity .2s;
}
.pop.is-open { transform: none; opacity: 1; }
.pop-head { display: flex; align-items: center; gap: 10px; padding: 2px 2px 8px; }
.pop-head img { width: 28px; height: 28px; }
.pop-head strong { display: block; font-size: 13px; }
.pop-head span { display: block; color: #6e6e73; font-size: 11.5px; }
.pop-sep { height: 1px; background: rgba(0, 0, 0, .09); margin: 6px 0; }
.pop-sec { padding: 6px 2px; }
.pop-h { font-weight: 600; font-size: 12.5px; margin-bottom: 7px; }
.field {
  position: relative; height: 30px; display: flex; align-items: center; padding: 0 9px; border-radius: 7px;
  background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15), 0 0 0 3px rgba(238, 90, 67, .0);
  transition: box-shadow .25s;
}
.field.is-focus { box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15), 0 0 0 3px rgba(238, 90, 67, .35); }
.field-text { white-space: nowrap; overflow: hidden; }
.field-ph { position: absolute; left: 9px; color: #a1a1a6; white-space: nowrap; overflow: hidden; right: 9px; text-overflow: ellipsis; }
.field-text:not(:empty) ~ .field-ph { display: none; }
.caret { width: 1.5px; height: 15px; background: var(--coral); margin-left: 1px; opacity: 0; }
.field.is-focus .caret { opacity: 1; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.chip { padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .065); font-size: 11.5px; transition: background-color .2s, color .2s, transform .3s var(--spring); }
.chip.on { background: var(--coral-deep); color: #fff; transform: scale(1.04); }
.seg { display: flex; padding: 2px; border-radius: 8px; background: rgba(0, 0, 0, .07); }
.seg span { flex: 1; text-align: center; padding: 4px 0; border-radius: 6px; font-size: 11.5px; transition: background-color .25s, box-shadow .25s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg span.on { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .14), 0 0 0 .5px rgba(0, 0, 0, .06); font-weight: 600; }
.tiles { display: flex; justify-content: space-between; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; color: #6e6e73; flex: 1; }
.tile i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .075); color: #1d1d1f; transition: background-color .25s, color .25s, transform .35s var(--spring); }
.tile i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile.on { color: #1d1d1f; }
.tile.on i { background: var(--coral-deep); color: #fff; transform: scale(1.06); }
.start {
  display: flex; align-items: center; justify-content: center; gap: 7px; height: 34px; border-radius: 9px; margin-top: 4px;
  background: var(--coral-deep); color: #fff; font-weight: 600; font-size: 13px;
  transition: transform .25s var(--spring), filter .2s;
}
.start svg { width: 15px; height: 15px; fill: currentColor; }
.start.is-press { transform: scale(.97); filter: brightness(.92); }
.pointer { position: absolute; z-index: 6; left: 0; top: 0; width: 15px; transition: transform .75s cubic-bezier(.45, .05, .25, 1); }
.pointer svg { fill: #111; stroke: #fff; stroke-width: 1.3; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35)); overflow: visible; }
.mac-cat { position: absolute; z-index: 2; width: 34%; left: 5%; bottom: 3%; transition: opacity .6s; filter: drop-shadow(0 6px 10px rgba(60, 20, 20, .25)); }

/* The companion's films */
.companion { background: var(--paper-2); }
.films { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.film {
  margin: 0; border-radius: var(--r-lg); background: var(--tint, var(--card)); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  transition: transform .5s var(--spring), box-shadow .5s;
}
.film::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 240px; opacity: .08; mix-blend-mode: multiply; pointer-events: none; }
.film:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 30px 50px -30px rgba(60, 30, 20, .45); }
.film:nth-child(2n):hover { transform: translateY(-6px) rotate(.4deg); }
.film img { width: 82%; margin: 6% auto 0; aspect-ratio: 522 / 414; }
.film figcaption { padding: 4px 26px 26px; display: grid; gap: 4px; }
.film strong { font: 560 23px/1.15 var(--display); font-variation-settings: "SOFT" 100; letter-spacing: -.01em; }
.film span { color: var(--muted); font-size: 15.5px; }
.companion .fine { margin-top: 36px; font-size: 16px; }

/* The expedition */
.expedition { background: var(--paper); }
.trail { border-radius: var(--r-xl); background: var(--card); padding: clamp(10px, 1.4vw, 16px); box-shadow: 0 0 0 1px var(--line), 0 40px 70px -50px rgba(60, 30, 20, .5); }
.trail-stage { position: relative; aspect-ratio: 1800 / 384; border-radius: calc(var(--r-xl) - 10px); overflow: hidden; background: #EDE6DA; }
.trail-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s var(--ease-out); }
.trail-img.is-on { opacity: 1; }
.trail-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 6px 4px; }
.pills { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(30, 26, 28, .06); }
.pills button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--ink-2); transition: background-color .25s, box-shadow .25s, color .25s; }
.pills button:hover { color: var(--ink); }
.pills button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .05); }
.trail-note { padding: 4px 8px 6px; }
.hunts { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(20px, 3vw, 32px); }
.hunt { margin: 0; border-radius: var(--r-lg); background: linear-gradient(180deg, #EEF3E6, #E2EBD4); padding: 6px 6px 18px; text-align: center; }
.hunt:nth-child(2) { background: linear-gradient(180deg, #E8EFF2, #D9E5EA); }
.hunt:nth-child(3) { background: linear-gradient(180deg, #F3ECE0, #EADFCB); }
.hunt:nth-child(4) { background: linear-gradient(180deg, #34385A, #262A45); color: var(--cream); }
.hunt img { width: 100%; aspect-ratio: 522 / 414; }
.hunt figcaption { font: 540 17px/1.25 var(--display); font-variation-settings: "SOFT" 100; padding: 0 12px; }
.finds-block { display: grid; grid-template-columns: 1fr 1.25fr; grid-template-areas: "copy map" "shelf map"; gap: 28px clamp(28px, 5vw, 64px); margin-top: clamp(72px, 10vw, 120px); align-items: start; }
.finds-copy { grid-area: copy; align-self: end; }
.h3-big { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 14px; }
.finds-copy p { color: var(--ink-2); font-size: 18px; max-width: 28em; }
.shelf { grid-area: shelf; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-self: start; }
.shelf .find { aspect-ratio: 1; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; transition: transform .45s var(--spring); }
.shelf .find img { width: 78%; animation: bob 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
.shelf .find:hover { transform: translateY(-4px) rotate(-3deg) scale(1.04); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(2deg); } }
.map { grid-area: map; align-self: center; margin: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 40px 70px -40px rgba(60, 30, 20, .45); transform: rotate(1.2deg); transition: transform .6s var(--spring); }
.map:hover { transform: rotate(0) scale(1.01); }

/* Drift: the night section */
.drift { background: var(--night); color: var(--cream); overflow: hidden; }
.drift::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 240px; opacity: .25; mix-blend-mode: overlay; pointer-events: none; }
.drift .eyebrow { color: #F2A48F; }
.drift .eyebrow::before { background: #F2A48F; }
.modes { margin: 34px 0 0; display: grid; gap: 6px; }
.mode {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 16px;
  padding: 16px 18px 18px; border-radius: 20px; color: var(--cream); overflow: hidden;
  transition: background-color .35s var(--ease-out), opacity .35s;
}
.mode:hover { background: rgba(244, 238, 220, .04); }
.mode:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.mode-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-top: 8px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); transition: transform .4s var(--spring), box-shadow .4s; }
.mode-copy { display: grid; gap: 4px; }
.mode-copy strong { font: 560 22px/1.2 var(--display); font-variation-settings: "SOFT" 100; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mode-copy > span { color: rgba(244, 238, 220, .66); transition: color .35s; }
.mode[aria-selected="true"] { background: rgba(244, 238, 220, .07); }
.mode[aria-selected="true"] .mode-copy > span { color: rgba(244, 238, 220, .86); }
.mode[aria-selected="true"] .mode-dot { transform: scale(1.15); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 30%, transparent); }
.mode-time { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; border-radius: 2px; background: rgba(244, 238, 220, .08); opacity: 0; transition: opacity .3s; }
.mode-time i { display: block; height: 100%; border-radius: inherit; background: var(--c); transform: scaleX(0); transform-origin: 0 50%; }
.modes.is-auto .mode[aria-selected="true"] .mode-time { opacity: 1; }
.modes.is-auto .mode[aria-selected="true"] .mode-time i { animation: modeTime var(--dur, 8s) linear forwards; }
@keyframes modeTime { to { transform: scaleX(1); } }
.badge { font: 600 11px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; font-style: normal; padding: 5px 8px; border-radius: 999px; background: rgba(244, 238, 220, .12); color: rgba(244, 238, 220, .85); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The browser where the three modes play out */
.browser {
  position: relative; border-radius: 18px; background: #F7F4EF; color: #1d1d1f; aspect-ratio: 1.12;
  box-shadow: 0 60px 90px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
  font-family: var(--text); overflow: visible; --t: .5s;
}
.b-chrome { position: absolute; inset: 0; display: flex; flex-direction: column; }
.b-bar { display: flex; align-items: center; gap: 7px; height: 40px; flex: none; padding: 0 14px; border-radius: 18px 18px 0 0; background: #ECE7E0; }
.b-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #E0DAD2; flex: none; }
.b-bar > i:nth-child(1) { background: #FF5F57; } .b-bar > i:nth-child(2) { background: #FEBC2E; } .b-bar > i:nth-child(3) { background: #28C840; }
.b-tabs { display: flex; gap: 4px; margin-left: 12px; min-width: 0; }
.b-tab {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 10px; border-radius: 8px; color: #6e6e73; white-space: nowrap; overflow: hidden;
  max-width: 170px; min-width: 0; transition: opacity .45s, transform .5s var(--ease-out), max-width .5s var(--ease-out), padding .5s, background-color .3s, color .3s;
}
.b-tab.is-on { background: #F7F4EF; color: #1d1d1f; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.b-tab.is-closing { opacity: 0; transform: translateY(-6px) scale(.85); max-width: 0; padding-inline: 0; }
.fav { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.fav-doc { background: #7C8BD9; }
.fav-feed { background: conic-gradient(#F27A5E, #F2C46B, #9DC7A6, #7C8BD9, #F27A5E); border-radius: 50%; }
.b-x { width: 12px; height: 12px; border-radius: 4px; flex: none; position: relative; margin-left: 2px; transition: background-color .2s; }
.b-x::before, .b-x::after { content: ""; position: absolute; left: 2px; right: 2px; top: 5.5px; height: 1px; background: #8e8e93; transform: rotate(45deg); }
.b-x::after { transform: rotate(-45deg); }
.b-url { padding: 8px 14px; border-bottom: 1px solid rgba(0, 0, 0, .06); flex: none; }
.b-url span { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #6e6e73; background: #ECE7E0; border-radius: 8px; padding: 6px 12px; position: relative; overflow: hidden; }
.b-url em { font-style: normal; transition: opacity .35s, transform .45s var(--ease-out); }
.b-url em + em { position: absolute; left: 31px; opacity: 0; transform: translateY(8px); }
.lock { width: 8px; height: 7px; border-radius: 1.5px; background: #9a9aa0; position: relative; margin-top: 3px; flex: none; }
.lock::before { content: ""; position: absolute; left: 1.5px; top: -4px; width: 5px; height: 5px; border: 1.2px solid #9a9aa0; border-bottom: 0; border-radius: 3px 3px 0 0; box-sizing: border-box; }
.b-page { position: relative; flex: 1; overflow: hidden; border-radius: 0 0 18px 18px; }
.feed, .b-doc { position: absolute; inset: 18px; }
.feed { display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; gap: 10px; background: #F7F4EF; transform-origin: 20% 100%; transition: transform 1s cubic-bezier(.3, 0, .2, 1), opacity .55s .45s; }
.feed i { aspect-ratio: 16 / 10; border-radius: 10px; background: linear-gradient(135deg, #E9D9CE, #D9C7E0); animation: shimmer 3s ease-in-out infinite; }
.feed i:nth-child(2n) { background: linear-gradient(135deg, #D6E3EA, #E8DCC8); animation-delay: -1s; }
.feed i:nth-child(3n) { background: linear-gradient(135deg, #F0CFC4, #D7E2CF); animation-delay: -2s; }
@keyframes shimmer { 50% { filter: brightness(1.06) saturate(1.15); } }
.b-doc { display: grid; align-content: start; gap: 12px; padding: 8px 14% 0 6%; }
.b-doc strong { font: 560 26px/1.15 var(--display); font-variation-settings: "SOFT" 100; margin-bottom: 6px; }
.b-doc i { display: block; height: 9px; border-radius: 5px; background: #E4DED5; }
.b-doc i.short { width: 62%; }
.b-doc i.caret { width: 2px; height: 16px; border-radius: 1px; background: var(--coral-deep); animation: caret 1.05s steps(1) infinite; margin-top: -4px; }
@keyframes caret { 50% { opacity: 0; } }

.browser.is-work .feed { opacity: 0; transform: translateY(12px); transition: transform .5s var(--ease-out), opacity .35s; }
.browser.is-swept .feed { opacity: 0; transform: translateX(78%) rotate(9deg) scale(.86); }
.browser.is-work .b-url em:first-of-type, .browser.is-swept .b-url em:first-of-type { opacity: 0; transform: translateY(-8px); }
.browser.is-work .b-url em + em, .browser.is-swept .b-url em + em { opacity: 1; transform: none; transition-delay: .15s; }

/* The companion: four poses stacked, one shown */
.b-cat { position: absolute; z-index: 3; width: 40%; aspect-ratio: 319 / 253; left: 0; bottom: -6%; transform: translateX(var(--x, 160%)); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); transition: transform 1.5s cubic-bezier(.45, 0, .25, 1), opacity .5s; }
.b-cat img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .18s; }
.b-cat[data-show="resting"] [data-pose="resting"], .b-cat[data-show="noticing"] [data-pose="noticing"],
.b-cat[data-show="arriving"] [data-pose="arriving"], .b-cat[data-show="intervening"] [data-pose="intervening"] { opacity: 1; }
.b-cat.is-off { opacity: 0; --x: -70%; transition: opacity .4s; }
.b-cat.is-walking img { animation: trot .26s ease-in-out infinite alternate; }
@keyframes trot { from { translate: 0 0; rotate: -1.5deg; } to { translate: 0 -5%; rotate: 1.5deg; } }
.b-cat.is-swat { animation: swat .5s var(--ease-out); }
@keyframes swat { 30% { translate: 4% -3%; } }

.bubble, .toast {
  position: absolute; z-index: 4; padding: 14px 14px 12px; border-radius: 18px; background: #fff; color: #1d1d1f;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .45); opacity: 0; transform: scale(.6) translateY(10px); pointer-events: none;
  transition: transform .5s var(--spring), opacity .3s;
}
.bubble { right: 24%; bottom: 25%; width: min(260px, 62%); transform-origin: 90% 100%; }
.bubble::after, .toast::after { content: ""; position: absolute; bottom: -7px; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.bubble::after { right: 26px; }
.bubble p, .toast p { font-size: 14px; font-weight: 600; line-height: 1.3; }
.bubble-btns { display: flex; gap: 6px; margin-top: 10px; position: relative; z-index: 1; }
.bb { display: inline-block; font-size: 12px; font-weight: 600; padding: 7px 10px; border-radius: 8px; background: rgba(0, 0, 0, .07); white-space: nowrap; transition: transform .2s var(--spring), filter .2s; }
.bb-primary { background: var(--coral-deep); color: #fff; }
.bb.is-press { transform: scale(.93); filter: brightness(.88); }
.browser.is-asking .bubble { transform: none; opacity: 1; }
.toast { left: 31%; bottom: 27%; width: min(300px, 64%); transform-origin: 10% 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; overflow: visible; }
.toast::after { left: 26px; }
.toast-time { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: rgba(0, 0, 0, .06); overflow: hidden; }
.toast-time i { display: block; height: 100%; background: var(--coral); transform-origin: 0 50%; }
.browser.is-toast .toast { transform: none; opacity: 1; }
.browser.is-toast .toast-time i { animation: drain 4.6s linear forwards; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.note {
  position: absolute; z-index: 4; right: 6%; bottom: 31%; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px;
  border-radius: 999px; background: rgba(36, 38, 58, .92); color: var(--cream); font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(8px) scale(.92); transition: transform .5s var(--spring), opacity .35s;
}
.note-dot { width: 8px; height: 8px; border-radius: 50%; background: #9DC7A6; box-shadow: 0 0 0 4px rgba(157, 199, 166, .25); }
.browser.is-noted .note { opacity: 1; transform: none; }

.cursor { position: absolute; z-index: 6; left: 0; top: 0; width: 22px; height: 22px; opacity: 0; transform: translate(var(--cx, 70%), var(--cy, 120%)); transition: transform .9s cubic-bezier(.4, 0, .2, 1), opacity .3s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); pointer-events: none; }
.browser.show-cursor .cursor { opacity: 1; }
.cursor.is-click { scale: .86; transition: transform .9s cubic-bezier(.4, 0, .2, 1), opacity .3s, scale .12s; }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(64px, 9vw, 110px); position: relative; }
.promise { padding: 26px 26px 28px; border-radius: var(--r-lg); background: rgba(244, 238, 220, .06); box-shadow: inset 0 0 0 1px var(--line-cream); display: grid; gap: 8px; }
.promise strong { font: 560 24px/1.15 var(--display); font-variation-settings: "SOFT" 100; }
.promise span { color: rgba(244, 238, 220, .74); }

/* Sounds */
.sounds { background: var(--paper-2); }
.sound-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: auto auto; gap: clamp(12px, 1.6vw, 20px); }
.sound-card {
  --sc: var(--card);
  position: relative; overflow: hidden; isolation: isolate; text-align: left; border: 0; cursor: pointer;
  border-radius: var(--r-lg); background: var(--sc); padding: 24px; min-height: 200px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  transition: transform .45s var(--spring), box-shadow .45s;
}
.sound-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); background-size: 240px; opacity: .1; mix-blend-mode: multiply; }
.sound-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(60, 30, 20, .45); }
.sound-card:nth-child(4) { grid-column: 2 / 4; min-height: 180px; }
.sc-icon { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .7); display: grid; place-items: center; margin-bottom: auto; transition: transform .5s var(--spring); }
.sc-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sound-card.is-playing .sc-icon { animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.1); } }
.sc-copy { display: grid; gap: 4px; padding-right: 64px; }
.sc-copy strong { font: 560 28px/1.1 var(--display); font-variation-settings: "SOFT" 100; }
.sc-copy span { color: var(--ink-2); font-size: 15.5px; }
.sc-play { position: absolute; right: 20px; bottom: 20px; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; transition: transform .35s var(--spring); }
.sound-card:hover .sc-play { transform: scale(1.08); }
.sc-play svg { width: 18px; height: 18px; fill: currentColor; grid-area: 1 / 1; transition: opacity .2s, transform .3s var(--spring); }
.sc-play .i-stop { opacity: 0; transform: scale(.5); }
.sound-card.is-playing .i-play { opacity: 0; transform: scale(.5); }
.sound-card.is-playing .i-stop { opacity: 1; transform: none; }
.sound-purr { grid-row: 1 / 3; background: var(--coral); color: var(--cream); min-height: 440px; }
.sound-purr::before { opacity: .22; }
.sound-purr .sc-copy span { color: rgba(251, 247, 236, .88); }
.sound-purr .sc-copy strong { font-size: clamp(34px, 3.4vw, 46px); }
.sound-purr .sc-play { background: var(--cream); color: var(--ink); width: 60px; height: 60px; }
.sound-purr img { position: absolute; z-index: -1; width: 78%; left: 11%; top: 9%; filter: drop-shadow(0 18px 20px rgba(90, 26, 16, .35)); transition: transform .6s var(--spring); }
.sound-purr.is-playing img { animation: purr-img .1s linear infinite alternate; }
@keyframes purr-img { to { transform: translateY(.6px) scale(1.003); } }
.ring { position: absolute; z-index: -2; left: 50%; top: 40%; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(251, 247, 236, .35); transform: translate(-50%, -50%) scale(.6); opacity: 0; }
.sound-purr.is-playing .ring { animation: ring 2.4s var(--ease-out) infinite; }
.sound-purr.is-playing .r2 { animation-delay: 1.2s; }
@keyframes ring { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.6); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
.sounds .fine { margin-top: 28px; font-size: 15px; }

/* Breaks: the firefly meadow */
.breaks { background: var(--paper); }
.meadow { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1800 / 1150; background: #1C2036; box-shadow: 0 40px 80px -40px rgba(20, 20, 50, .6); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.meadow-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.meadow-cat { position: absolute; width: 30%; right: 3%; bottom: 2%; pointer-events: none; }
.flies { position: absolute; inset: 0; }
.fly {
  position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 0; padding: 0; background: transparent; cursor: pointer;
  border-radius: 50%; animation: fly-in .5s var(--ease-out) both;
}
.fly::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 240, 150, .95) 0 9%, rgba(255, 226, 110, .55) 22%, rgba(255, 210, 90, 0) 62%); animation: glow 1.4s ease-in-out infinite alternate; }
.fly::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #FFF6C4; box-shadow: 0 0 10px 3px rgba(255, 233, 140, .9); }
.fly.is-caught { pointer-events: none; animation: caught .45s var(--ease-out) forwards; }
@keyframes fly-in { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes glow { from { opacity: .65; transform: scale(.9); } to { opacity: 1; transform: scale(1.1); } }
@keyframes caught { to { opacity: 0; transform: scale(1.9) translateY(-14px); } }
.game-ui { position: absolute; left: 18px; top: 16px; right: 18px; display: flex; justify-content: space-between; color: var(--cream); font: 600 15px/1 var(--text); pointer-events: none; }
.game-ui span:empty { display: none; }
.game-ui span { padding: 8px 12px; border-radius: 999px; background: rgba(20, 20, 40, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-variant-numeric: tabular-nums; }
.game-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(70% 70% at 50% 50%, rgba(20, 22, 44, .15), rgba(20, 22, 44, .5)); transition: opacity .4s; }
.game-cover.is-hidden { opacity: 0; pointer-events: none; }
.game-result { color: var(--cream); font: 540 22px/1.2 var(--display); text-align: center; padding: 0 20px; min-height: 1.2em; }

/* Privacy */
.privacy { background: var(--paper-2); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.card { padding: 28px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.card-i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(238, 90, 67, .1); margin-bottom: 22px; }
.card-i svg { width: 24px; height: 24px; fill: none; stroke: var(--coral-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* FAQ */
.faq { background: var(--paper); }
.faq h2 { margin-bottom: 40px; }
.qa { display: grid; gap: 10px; }
.qa details { border-radius: var(--r-md); background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s; }
.qa details[open] { box-shadow: 0 0 0 1px var(--line), 0 20px 40px -30px rgba(60, 30, 20, .4); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative; font: 540 20px/1.3 var(--display); font-variation-settings: "SOFT" 100; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .35s var(--spring); }
.qa details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.qa p { padding: 0 24px 22px; color: var(--ink-2); max-width: 40em; }

/* Final */
.final { position: relative; isolation: isolate; overflow: hidden; background: var(--coral); color: var(--cream); text-align: center; padding: clamp(80px, 10vw, 130px) var(--gutter) clamp(90px, 11vw, 140px); }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); background-size: 240px; opacity: .22; mix-blend-mode: multiply; }
.final-in { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.final-cat { width: min(340px, 70vw); margin-bottom: 8px; filter: drop-shadow(0 18px 22px rgba(90, 26, 16, .3)); }
.final h2 { font-size: clamp(44px, 6.6vw, 84px); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.final .lede { margin: 18px 0 32px; color: rgba(251, 247, 236, .9); }

/* Footer */
.foot { background: var(--ink); color: rgba(244, 238, 220, .8); padding: 56px 0 64px; }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 32px; align-items: center; }
.wordmark-foot { width: 120px; color: var(--cream); --dot: var(--nose); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot nav a { text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--cream); }
.foot .fine { grid-column: 1 / -1; color: rgba(244, 238, 220, .5); }

/* Narrower screens */
@media (max-width: 1040px) {
  .nav { display: none; }
  .nav + .top-end { margin-left: auto; }
  .split, .split-rev { grid-template-columns: 1fr; }
  .mac { max-width: 560px; width: 100%; margin-inline: auto; }
  .browser { max-width: 560px; width: 100%; margin-inline: auto; }
  .hunts { grid-template-columns: repeat(2, 1fr); }
  .finds-block { grid-template-columns: 1fr; grid-template-areas: "copy" "shelf" "map"; }
  .sound-grid { grid-template-columns: 1fr 1fr; }
  .sound-purr { grid-row: auto; grid-column: 1 / -1; min-height: 380px; }
  .sound-purr img { width: 52%; left: 24%; top: 4%; }
  .sound-card:nth-child(4) { grid-column: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; }
  .top-in { gap: 8px; }
  .wordmark { width: 96px; }
  .lang-link { display: none; }
  .sound-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sound-toggle { padding: 0 12px; }
  .hero { --cat: clamp(260px, min(94vw, 46svh), 520px); }
  .hero-cta .btn { flex: 1 1 100%; max-width: 340px; }
  .films { grid-template-columns: 1fr 1fr; }
  .film figcaption { padding: 2px 16px 18px; }
  .film strong { font-size: 19px; }
  .film span { font-size: 14px; }
  .trail-stage { aspect-ratio: 1000 / 384; }
  .trail-img { object-position: 62% 50%; }
  .promises { grid-template-columns: 1fr; }
  .sound-grid { grid-template-columns: 1fr; }
  .sound-card { min-height: 150px; }
  .cards { grid-template-columns: 1fr; }
  .meadow { aspect-ratio: 4 / 3.4; }
  .meadow-bg { object-position: 40% 50%; }
  .meadow-cat { width: 44%; }
  .foot-in { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: repeat(4, 1fr); }
  .bubble { right: 16%; }
  .toast { left: 28%; }
  .b-doc strong { font-size: 21px; }
}
@media (max-width: 460px) {
  .films { grid-template-columns: 1fr; }
  .hunts { grid-template-columns: 1fr 1fr; }
  .hunt figcaption { font-size: 15px; }
  .btn-sm span { display: none; }
  .btn-sm { padding: 0 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .moth { display: none; }
}

.breaks .split-copy .fine { margin-top: 18px; }

/* The character picker: a segmented control on the coral, each with its little head. */
.picker {
  display: inline-flex; gap: 2px; padding: 4px; margin-bottom: 26px; border-radius: 999px;
  background: rgba(30, 26, 28, .14); box-shadow: inset 0 0 0 1px rgba(244, 238, 220, .16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.picker button {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 8px; border: 0; border-radius: 999px;
  background: transparent; color: var(--cream); font: 600 15px/1 var(--text); cursor: pointer;
  transition: background-color .3s, color .3s, transform .35s var(--spring);
}
.picker button:hover { background: rgba(30, 26, 28, .14); }
.picker button:active { transform: scale(.96); }
.picker svg { width: 28px; height: 28px; fill: var(--ink); transition: transform .45s var(--spring); }
.picker svg .pe { fill: var(--cream); }
.picker button[aria-checked="true"] { background: var(--cream); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(90, 26, 16, .5); }
.picker button[aria-checked="true"] svg { transform: translateY(-1px) scale(1.08); }
.picker button[data-pick="dog"] svg { fill: #3A2E29; }

/* The dog and the cat-dog heads, in the app's own colours. */
.dog-coat { fill: #3A2E29; }
.dog-muzzle { fill: #5C4B42; }
.ear-flop { fill: #1C1719; transform-box: fill-box; transition: transform .5s var(--spring); }
.ear-flop-l { transform-origin: 75% 4%; }
.ear-flop-r { transform-origin: 25% 4%; }
.catdog-ear { fill: #141113; }
.catdog-chin { fill: #EDE4D1; }
body[data-species="dog"] .nose { fill: #D9735E; }
.cat-wrap:hover .ear-flop-l { transform: rotate(-5deg); }
.cat-wrap:hover .ear-flop-r { transform: rotate(5deg); }
.cat-wrap.is-happy .ear-flop-l { transform: rotate(9deg); }
.cat-wrap.is-happy .ear-flop-r { transform: rotate(-9deg); }
@media (max-width: 460px) {
  .picker button { padding: 0 12px 0 6px; font-size: 14px; gap: 6px; }
  .picker svg { width: 24px; height: 24px; }
}
[data-head][hidden] { display: none; }
.picker { display: flex; width: fit-content; margin: 0 auto 24px; }
.purr-hint { white-space: normal; width: max-content; max-width: 280px; }
.picker { margin-bottom: 16px; }
.hero { padding-top: calc(var(--header-h) + clamp(8px, 2.5vh, 36px)); }
.hero h1 { font-size: clamp(40px, 5.6vw, 80px); }
/* The dog has no pointed ears to peek with: it rises a little higher, muzzle and all. */
.cat-wrap { transition: margin-bottom .6s var(--spring); }
body[data-species="dog"] .cat-wrap { margin-bottom: calc(var(--cat) * -0.06); }

/* The picker, round 2: one cream thumb slides under the choice with a little spring. */
.picker { position: relative; isolation: isolate; }
.picker-thumb {
  position: absolute; z-index: 0; left: 4px; top: 4px; bottom: 4px; width: 0; border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 8px 20px -10px rgba(90, 26, 16, .55), 0 1px 2px rgba(90, 26, 16, .18);
  transition: transform .5s cubic-bezier(.3, 1.1, .5, 1), width .45s cubic-bezier(.2, .8, .2, 1);
}
.picker button { position: relative; z-index: 1; transition: color .35s var(--ease-out), transform .35s var(--spring); }
.picker button:hover { background: transparent; color: #FFF8EA; }
.picker button[aria-checked="true"] { background: transparent; color: var(--ink); box-shadow: none; }
.picker button[aria-checked="true"]:hover { color: var(--ink); }
.picker button:focus { outline: none; }
.picker button:focus-visible { outline: 2px solid rgba(30, 26, 28, .55); outline-offset: -3px; border-radius: 999px; }
.picker button svg { transition: transform .45s var(--spring), fill .35s; }
.picker button:not([aria-checked="true"]) svg { transform: scale(.92); opacity: .92; }

/* While the page turns into another character: texts and pictures blur out, swap, settle. */
[data-sp], [data-film] img, [data-film] figcaption, [data-hunt], [data-sp-img], [data-sp-film], .shelf {
  transition: opacity .32s var(--ease-out), filter .32s var(--ease-out), transform .45s var(--spring);
}
body.is-switching :is([data-sp], [data-film] img, [data-film] figcaption, [data-hunt], [data-sp-img], [data-sp-film], .shelf) {
  opacity: 0; filter: blur(6px); transform: translateY(6px) scale(.985);
}
body.is-switching .purr-hint { transform: translateY(8px) scale(.9); }

/* Narrow screens: the little browser sits between the lede and the modes, so both stay in view. */
@media (max-width: 1040px) {
  .drift .split-rev { display: flex; flex-direction: column; gap: 0; }
  .drift .split-copy { display: contents; }
  .drift .split-copy > * { width: 100%; max-width: 640px; margin-inline: auto; }
  .drift .browser { order: 1; margin-top: 40px; }
  .drift .modes { order: 2; margin-top: 28px; }
}

/* Responsive pass (audit at 320–2560 px): the eyes always in the first view. */
.hero { --cat: clamp(240px, min(66vw, 44svh), 640px); }
.hero h1 { font-size: clamp(34px, min(5.6vw, 8.2svh), 80px); }
.hero .lede { font-size: clamp(16px, min(1.7vw, 2.5svh), 21px); }
@media (max-height: 860px) and (min-width: 721px) {
  .hero .eyebrow { margin-bottom: 10px; }
  .hero-cta { margin-top: 20px; }
  .hero-meta { margin-top: 12px; }
}
@media (max-width: 720px) {
  .hero { --cat: clamp(220px, min(86vw, 40svh), 440px); }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .hero .lede { font-size: 16px; margin-top: 14px; }
  .hero .eyebrow { margin-bottom: 10px; font-size: 11.5px; }
  .picker { margin-bottom: 12px; }
  .hero-cta { margin-top: 20px; gap: 10px; }
  .hero-cta .btn { min-height: 48px; }
  .hero-meta { display: none; }
}
@media (max-width: 380px) {
  .hero .lede { font-size: 15px; }
  .hero-cta .btn { min-height: 46px; font-size: 15px; }
  .seg span { font-size: 10px; letter-spacing: -.01em; }
}
/* The cat's bubble: never off screen; above the head on narrower screens. */
.purr-hint { max-width: min(280px, 42vw); }
@media (max-width: 1040px) {
  .purr-hint { left: auto; right: 0; top: -4%; max-width: min(260px, 70vw); border-radius: 18px 18px 4px 18px; }
}
/* Footer links: comfortable to tap. */
.foot nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; }
/* Phones: the big sound card keeps its room, the sleeper above the words. */
@media (max-width: 720px) {
  .sound-purr { min-height: 360px; }
  .sound-purr img { width: 64%; left: 18%; top: 6%; }
}

/* Contrast on the coral (WCAG AA): small text in deep cocoa, the big headlines in warm white. */
.hero h1, .final h2 { color: #FFF9F0; }
.hero .lede, .final .lede { color: #2A1512; }
.hero-meta, .final .hero-meta { color: rgba(42, 21, 18, .86); }
.hero .eyebrow-cream { color: #2A1512; opacity: 1; }
.hero .eyebrow-cream::before { background: #2A1512; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* The price, in the final call. */
.price {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 34px; text-align: left;
  margin: 0 0 30px; padding: 24px 30px; border-radius: 28px; color: var(--ink);
  background: rgba(255, 249, 240, .94); box-shadow: 0 30px 60px -30px rgba(90, 26, 16, .55), 0 0 0 1px rgba(255, 255, 255, .5);
}
.price-tag { display: grid; justify-items: center; line-height: 1; }
.price-tag strong { font: 600 clamp(56px, 6vw, 72px)/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; letter-spacing: -.03em; }
.price-tag span { margin-top: 6px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--coral-deep); }
.price-list { list-style: none; padding: 0 0 0 30px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; border-left: 1px solid var(--line); font-size: 15px; }
.price-list li { position: relative; padding-left: 22px; }
.price-list li::before { content: ""; position: absolute; left: 0; top: .42em; width: 12px; height: 7px; border: solid var(--coral-deep); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
@media (max-width: 720px) {
  .price { grid-template-columns: 1fr; padding: 22px; justify-items: center; }
  .price-list { grid-template-columns: 1fr; border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
}

/* Pause a scene: a quiet round button, shown on hover and keyboard focus (always on touch). */
.film, .hunt { position: relative; }
.film-pause {
  all: unset; box-sizing: border-box; position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--ink); background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 4px 12px -4px rgba(60, 30, 20, .3);
  opacity: 0; transform: scale(.9); transition: opacity .25s, transform .3s var(--spring);
}
.film-pause svg { width: 14px; height: 14px; fill: currentColor; }
.film-pause .g, [data-paused] .film-pause .p { display: none; }
[data-paused] .film-pause .g { display: inline; }
:is(.film, .hunt):hover .film-pause, .film-pause:focus-visible, [data-paused] .film-pause { opacity: 1; transform: none; }
.film-pause:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: none) { .film-pause { opacity: .9; transform: none; } }

/* Small phones: the browser's tabs drop their icons; the work tab shortens, the feed tab stays whole. */
@media (max-width: 420px) {
  .b-tabs { margin-left: 6px; gap: 2px; }
  .b-tab { display: block; padding: 6px 8px; text-overflow: ellipsis; }
  .b-tab .fav, .b-tab .b-x { display: none; }
  .b-tab[data-feed-tab] { flex: none; }
}
