:root {
  --ground: #fdfcf4;
  --ground-2: #f6f1e6;
  --land: #efe6d6;
  --land-edge: #d9ccb6;
  --ink: #2a2622;
  --ink-soft: #6b645c;
  --line: #eae1d3;
  --card: #ffffff;
  --orange: #f25f34;
  --orange-ink: #ffffff;
  --shadow: 0 1px 2px rgba(42,38,34,.06), 0 10px 28px rgba(42,38,34,.08);
  --shadow-lift: 0 3px 8px rgba(42,38,34,.10), 0 26px 50px rgba(42,38,34,.16);
  --c-arts: #f25f34;
  --c-sport: #256b82;
  --c-food: #c98a12;
  --c-mind: #85569a;
  --c-fauna: #52804a;
  --c-home: #9a5b35;
  --c-photo: #4c6a88;
  --c-music: #cf4f78;
  --c-lang: #6b645c;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Noto Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.22,.7,.3,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #1c1916; --ground-2: #24201c; --land: #2e2923; --land-edge: #4a4238;
    --ink: #f4eee4; --ink-soft: #b3a99c; --line: #38322b; --card: #2a2520;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.35);
    --shadow-lift: 0 3px 8px rgba(0,0,0,.35), 0 26px 50px rgba(0,0,0,.5);
    --c-sport: #3f93ad; --c-mind: #a877bd; --c-fauna: #74a86a; --c-home: #c07d52; --c-photo: #7394b5; --c-lang: #a39a8e;
  }
}
:root[data-theme="dark"] {
  --ground: #1c1916; --ground-2: #24201c; --land: #2e2923; --land-edge: #4a4238;
  --ink: #f4eee4; --ink-soft: #b3a99c; --line: #38322b; --card: #2a2520;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.35);
  --shadow-lift: 0 3px 8px rgba(0,0,0,.35), 0 26px 50px rgba(0,0,0,.5);
  --c-sport: #3f93ad; --c-mind: #a877bd; --c-fauna: #74a86a; --c-home: #c07d52; --c-photo: #7394b5; --c-lang: #a39a8e;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-inline: 20px; padding-block: 0 60px;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.icon svg { width: 100%; height: 100%; display: block; }

/* --- top ------------------------------------------------------------------ */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  margin-inline: -20px; padding: 12px 20px;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand { text-decoration: none; font-family: var(--display); font-size: 22px; display: flex; align-items: center; gap: 10px; }
.brand img { height: 32px; width: auto; display: block; }
.brand em { font-weight: 400; color: var(--ink-soft); padding-left: 10px; border-left: 1.5px solid var(--line); line-height: 1.1; }
.lang { font-weight: 600; font-size: 14px; letter-spacing: .06em; text-decoration: none; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.lang:hover { border-color: var(--ink); }
.tabs { margin-left: auto; display: flex; gap: 4px; background: var(--ground-2); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.tab { white-space: nowrap; border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--ink-soft); transition: background .2s var(--ease), color .2s var(--ease); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--ground); }
.tab:hover:not([aria-selected="true"]) { color: var(--ink); }

.intro { max-width: 1240px; margin: 34px auto 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 32px; align-items: end; }
.intro h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.intro h1 i { color: var(--orange); }
.intro p { margin: 0; color: var(--ink-soft); max-width: 34ch; font-size: 17px; }
.note { max-width: 1240px; margin: 0 auto 18px; font-size: 14px; color: var(--ink-soft); display: flex; gap: 8px; align-items: flex-start; }
.note .icon { width: 16px; height: 16px; flex: none; margin-top: 3px; }

.view { max-width: 1240px; margin: 0 auto; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 6px 13px 6px 10px; font-size: 15px; font-weight: 500;
  transition: transform .25s var(--spring), background .2s, border-color .2s, color .2s;
}
.chip .icon { width: 16px; height: 16px; color: var(--c); }
.chip:hover { transform: translateY(-2px) rotate(-1deg); }
.chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.chip[aria-pressed="true"] .icon { color: #fff; }
.chip .n { font-variant-numeric: tabular-nums; opacity: .6; font-size: 13px; }

/* --- board ---------------------------------------------------------------- */
/* fixed columns that only ever grow at the bottom: nothing on screen moves */
.board { display: flex; gap: 20px; align-items: flex-start; overflow-anchor: none; }
.board .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.tile {
  --rot: 0deg; --dy: 0px;
  position: relative; margin: 0; display: block;
  border-radius: 18px; overflow: hidden; background: var(--card);
  box-shadow: var(--shadow);
  transform: translateY(var(--dy)) rotate(var(--rot));
  transition: transform .45s var(--spring), box-shadow .3s var(--ease);
}
.tile:hover { transform: translateY(calc(var(--dy) - 6px)) rotate(0deg) scale(1.02); box-shadow: var(--shadow-lift); z-index: 2; }
.tile .ph { display: block; width: 100%; aspect-ratio: var(--ar, 4/5); overflow: hidden; background: var(--land); }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .45s var(--ease), transform 1.2s var(--ease); }
.ph img.ok { opacity: 1; }
.card .ph img, .row .th img { transition: opacity .45s var(--ease); }
.card .ph img:not(.ok) { opacity: 0; }
.tile:hover .ph img { transform: scale(1.06); }
.tile .cover { position: absolute; inset: 0; z-index: 1; }
.tile .meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px;
  background: linear-gradient(to top, rgba(20,16,12,.78), rgba(20,16,12,0));
  color: #fff; pointer-events: none;
}
.tile .meta b { display: block; font-weight: 500; font-size: 15.5px; line-height: 1.2; text-wrap: balance; }
.tile .meta span { font-size: 13.5px; opacity: .85; font-variant-numeric: tabular-nums; }
.tile .tag {
  position: absolute; top: 10px; left: 10px; z-index: 2; pointer-events: none;
  width: 30px; height: 30px; border-radius: 50%; padding: 7px;
  background: var(--c); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.save {
  position: absolute; top: 10px; right: 10px; z-index: 3; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 8px;
  background: rgba(255,255,255,.92); color: #2a2622;
  opacity: 0; transform: scale(.7); transition: opacity .2s, transform .3s var(--spring);
}
.tile:hover .save, .save:focus-visible, .save[aria-pressed="true"] { opacity: 1; transform: scale(1); }
.save[aria-pressed="true"] { background: var(--orange); color: #fff; }
.save[aria-pressed="true"] svg { fill: currentColor; }
.save.burst { animation: burst .45s var(--spring); }
@keyframes burst { 40% { transform: scale(1.35); } }
@media (hover: none) { .save { opacity: 1; transform: scale(1); } }

.tile .ph video { width: 100%; height: 100%; object-fit: cover; display: block; }
.playbadge i.dot { opacity: .35; }
.playing .playbadge i.dot { opacity: 1; }
.reel .playbadge { position: absolute; top: 12px; right: 52px; z-index: 2; }
.playbadge {
  pointer-events: none;
  display: flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border-radius: 999px;
  background: rgba(20,16,12,.55); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.playbadge .icon { width: 13px; height: 13px; }
.playbadge i.dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4d3a; }
.playing .playbadge i.dot { animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }

.quote {
  padding: 26px 22px 22px; background: var(--qbg); color: var(--qink);
  box-shadow: none; border-radius: 18px;
}
.quote q { display: block; font-family: var(--display); font-size: 25px; line-height: 1.12; letter-spacing: -.015em; quotes: none; text-wrap: balance; }

.quote small { display: block; margin-top: 16px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.q1 { --qbg: var(--orange); --qink: #fff; }
.q2 { --qbg: var(--ink); --qink: var(--ground); }
.q3 { --qbg: var(--land); --qink: var(--ink); }
.q4 { --qbg: var(--c-sport); --qink: #fff; }

.stat {
  padding: 22px; background: var(--ground-2); border: 1.5px dashed var(--land-edge); box-shadow: none;
}
.stat .big { font-family: var(--display); font-size: 64px; line-height: .9; letter-spacing: -.03em; color: var(--c); font-variant-numeric: tabular-nums; }
.stat p { margin: 8px 0 0; font-size: 15.5px; }

.sentinel { height: 1px; }
.more { display: block; margin: 12px auto 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent; border-radius: 999px;
  padding: 8px 16px; font-weight: 500; font-size: 15px;
  transition: transform .25s var(--spring), background .2s, color .2s;
}
.btn .icon { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); background: var(--ink); color: var(--ground); }
.btn.solid { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }

/* --- skills --------------------------------------------------------------- */
.pit-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.pit-bar .hint { color: var(--ink-soft); font-size: 15px; margin-right: auto; }
.pit {
  position: relative; height: clamp(460px, 74vh, 760px);
  border-radius: 28px; overflow: hidden; background: var(--ground-2);
  border: 1px solid var(--line); touch-action: pan-y;
}
.pit canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.pit canvas.grabbing { cursor: grabbing; }
.pit canvas.pointing { cursor: pointer; }
.pit .legend { position: absolute; left: 16px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-soft); pointer-events: none; max-width: calc(100% - 32px); }
.pit .legend span { display: inline-flex; align-items: center; gap: 5px; }
.pit .legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }

/* drawer */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(420px, 100vw); background: var(--ground);
  transform: translateX(105%); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s .5s;
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer.open { transform: none; visibility: visible; box-shadow: -20px 0 60px rgba(0,0,0,.18); transition: transform .5s var(--ease); }
.drawer header { padding: 22px 22px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.drawer header .ball { width: 52px; height: 52px; border-radius: 50%; background: var(--c); flex: none; color: #fff; padding: 13px; overflow: hidden; }
.drawer header .ball.face { padding: 0; }
.drawer header .ball img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drawer h2 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; margin: 2px 0 4px; letter-spacing: -.02em; }
.drawer header p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.drawer .x { margin-left: auto; border: 0; background: var(--ground-2); width: 36px; height: 36px; border-radius: 50%; padding: 9px; cursor: pointer; flex: none; }
.drawer-body { overflow-y: auto; padding: 12px 14px 24px; display: grid; gap: 4px; align-content: start; }
.row { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 14px; text-decoration: none; transition: background .2s; }
.row:hover { background: var(--ground-2); }
.row .th { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--c); color: #fff; display: grid; place-items: center; }
.row .th img { width: 100%; height: 100%; object-fit: cover; }
.row .th .icon { width: 24px; height: 24px; }
.row b { display: block; font-weight: 500; line-height: 1.2; }
.row span { font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(20,16,12,.3); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }

@media (max-width: 860px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { padding-inline: 16px; }
  .top { margin-inline: -16px; padding-inline: 16px; }
  .tabs { margin-left: 0; width: 100%; order: 3; }
  .tab { flex: 1; padding-inline: 4px; font-size: 14.5px; white-space: nowrap; }
  .tile { border-radius: 14px; }
  .quote q { font-size: 20px; }
  .stat .big { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* --- teacher tiles --------------------------------------------------------- */
.teacher {
  display: block; width: 100%; text-align: left; cursor: pointer; border: 0;
  padding: 20px 18px 18px; background: var(--card); color: var(--ink);
}
.teacher .face { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 26px; }
.teacher .face img { width: 100%; height: 100%; object-fit: cover; }
.teacher .eyebrow { display: block; margin-top: 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--c); font-weight: 600; }
.teacher b { display: block; font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.1; margin-top: 2px; text-wrap: balance; }
.teacher p { margin: 8px 0 0; font-size: 15px; line-height: 1.4; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.teacher .more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 14px; font-weight: 600; }
.teacher .more .icon { width: 14px; height: 14px; }

.bio { padding: 6px 8px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.bio p { margin: 0 0 10px; font-size: 16px; line-height: 1.5; }
.drawer-body h3 { margin: 10px 8px 2px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; font-family: var(--body); }
.row .by { display: block; font-size: 13px; }

/* --- road trip ------------------------------------------------------------- */
.trip { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 36px; align-items: start; }
.trip-map {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px);
  height: calc(100vh - 110px); max-height: 900px;
}
.trip-map svg { width: 100%; height: 100%; display: block; overflow: visible; }
.trip-map .land { fill: var(--land); stroke: var(--land-edge); stroke-width: 1.2; stroke-linejoin: round; }
.trip-map .route { fill: none; stroke: var(--land-edge); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.trip-map .done { fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.trip-map .stop circle { fill: var(--ground); stroke: var(--land-edge); stroke-width: 2; transition: r .35s var(--spring), fill .25s, stroke .25s; }
.trip-map .stop.past circle { fill: var(--orange); stroke: var(--orange); }
.trip-map .stop.now circle { fill: var(--orange); stroke: var(--ground); stroke-width: 3; }
.trip-map .stop text { font-family: var(--display); font-size: 15px; fill: var(--ink-soft); opacity: 0; transition: opacity .25s; }
.trip-map .stop.big text, .trip-map .stop.now text { opacity: 1; }
.trip-map .stop.now text { fill: var(--ink); font-size: 19px; font-style: normal; font-weight: 600; }
.trip-map .car { fill: var(--orange); }
.trip-map .pulse { fill: var(--orange); opacity: .25; transform-box: fill-box; transform-origin: center; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .45; } to { transform: scale(2.4); opacity: 0; } }

.stops { display: grid; gap: 0; min-width: 0; }
.stop-sec { padding: 26px 0 44px; border-top: 1px solid var(--line); min-width: 0; }
.stop-sec:first-child { border-top: 0; padding-top: 0; }
.stop-sec .eyebrow { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.stop-sec h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 76px); line-height: .95; letter-spacing: -.03em; margin: 6px 0 10px; }
.stop-sec.small h2 { font-size: clamp(30px, 4vw, 44px); }
.stop-sec .facts { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--ink-soft); font-size: 16px; margin-bottom: 14px; }
.stop-sec .facts b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.stop-sec .chips { margin-bottom: 16px; }
.stop-sec .chip { cursor: default; }
.stop-sec .chip:hover { transform: none; }

.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 230px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin-inline: -2px;
  scrollbar-width: thin; scrollbar-color: var(--land-edge) transparent;
}
.card { scroll-snap-align: start; position: relative; border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); text-decoration: none; display: block; transition: transform .35s var(--spring), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card .ph { display: block; aspect-ratio: 3/4; background: var(--land); }
.card .ph img, .card .ph video { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 10px; background: linear-gradient(to top, rgba(20,16,12,.8), rgba(20,16,12,0)); color: #fff; }
.card .meta b { display: block; font-weight: 500; font-size: 15px; line-height: 1.2; }
.card .meta span { font-size: 13px; opacity: .85; }
.card .tag { position: absolute; top: 9px; left: 9px; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--c); color: #fff; }
.card .playbadge { position: absolute; top: 11px; right: 10px; }
.card.all { display: grid; place-items: center; text-align: center; background: var(--ground-2); box-shadow: none; border: 1.5px dashed var(--land-edge); padding: 16px; font-family: var(--display); font-size: 22px; line-height: 1.1; cursor: pointer; color: var(--ink); width: 100%; }
.card.all small { display: block; font-family: var(--body); font-size: 14px; color: var(--ink-soft); margin-top: 6px; }

.meet { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 18px; background: var(--ground-2); border: 0; width: 100%; text-align: left; cursor: pointer; max-width: 620px; }
.meet .face { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex: none; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 22px; }
.meet .face img { width: 100%; height: 100%; object-fit: cover; }
.meet small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.meet b { display: block; font-weight: 600; }
.meet span.q { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; color: var(--ink-soft); }
.trip-end { padding: 40px 0 20px; font-family: var(--display); font-size: clamp(28px, 4vw, 44px); line-height: 1.05; }
.trip-end i { color: var(--orange); }

.foot { max-width: 1240px; margin: 60px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-soft); }

@media (max-width: 760px) {
  .trip { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .trip-map { top: calc(env(safe-area-inset-top, 0px) + 112px); height: calc(100vh - 130px); }
  .trip-map .stop text { display: none; }
  .strip { grid-auto-columns: 62%; }
  .stop-sec h2 { font-size: 42px; }
}

/* --- link, quote and end cards (always over a photo) ---------------------- */
.link-card, .quote-card { color: #fff; text-decoration: none; margin: 0; }
.link-card .ph, .quote-card .ph { aspect-ratio: var(--ar, 4/5); }
.shade { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--c, #2a2622) 88%, #000) 0%, color-mix(in srgb, var(--c, #2a2622) 55%, transparent) 45%, rgba(0,0,0,.05) 100%); pointer-events: none; }
.link-card .lc { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.link-card .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; opacity: .92; }
.link-card .eyebrow svg { width: 14px; height: 14px; }
.link-card b { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1; letter-spacing: -.02em; margin-top: 4px; text-wrap: balance; }
.link-card .n { font-size: 15px; opacity: .9; font-variant-numeric: tabular-nums; }
.link-card.end b { font-size: 26px; }
.quote-card { --c: #2a2622; }
.quote-card .shade { background: linear-gradient(to top, rgba(20,16,12,.85), rgba(20,16,12,.35)); }
.quote-card blockquote { position: absolute; inset: auto 0 0 0; margin: 0; padding: 20px; }
.quote-card q { display: block; font-family: var(--display); font-size: clamp(22px, 2vw, 27px); line-height: 1.1; letter-spacing: -.015em; quotes: none; text-wrap: balance; }
.quote-card small { display: block; margin-top: 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

.drawer-site { margin: 14px 8px 0; justify-self: start; }
.facts-link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; }
.facts-link svg { width: 15px; height: 15px; }

@media (max-width: 560px) {
  .board { gap: 12px; }
  .board .col { gap: 14px; }
  .brand img { height: 26px; }
  .brand em { font-size: 18px; }
  .lang { order: 2; margin-left: auto; }
  .top { gap: 10px; }
}

/* promo tiles: the photo sits under a solid wash of the promo colour */
.link-card.promo .shade { background: linear-gradient(to top, var(--c) 0%, color-mix(in srgb, var(--c) 78%, transparent) 55%, color-mix(in srgb, var(--c) 30%, transparent) 100%); }
.promo-icon { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--c); padding: 11px; margin-bottom: 10px; }
.promo-icon svg { width: 100%; height: 100%; }
.link-card .sub { font-size: 15px; line-height: 1.35; opacity: .92; margin-top: 6px; text-wrap: pretty; }
.link-card.promo .go { color: var(--c); }

/* --- maker match ----------------------------------------------------------- */
.match { max-width: 980px; margin: 0 auto; scroll-margin-top: 90px; }
.btn.big { font-size: 18px; padding: 12px 22px; }
.btn.ghost { border-color: transparent; }
.btn .icon, .btn > svg { width: 17px; height: 17px; }
.btn:disabled { opacity: .5; cursor: progress; }

.match-intro { display: grid; justify-items: center; gap: 26px; padding: 10px 0 30px; }
.invite { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 20px; background: var(--c); color: #fff; max-width: 520px; }
.invite-icon { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--c); padding: 11px; flex: none; }
.invite b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.15; }
.invite span:not(.invite-icon) { font-size: 16px; opacity: .92; }
.teaser { position: relative; width: min(520px, 100%); height: 360px; }
.tz { position: absolute; top: 20px; width: 42%; aspect-ratio: 3/4; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lift); border: 6px solid var(--card); background: var(--land); }
.tz video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tz0 { left: 4%; transform: rotate(-9deg); }
.tz1 { left: 29%; top: 0; z-index: 2; transform: rotate(2deg) scale(1.06); }
.tz2 { right: 4%; transform: rotate(10deg); }

.swipe { display: grid; justify-items: center; gap: 18px; padding-bottom: 20px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 22px; height: 5px; border-radius: 3px; background: var(--line); transition: background .3s; }
.dots i.on { background: var(--orange); }
.stack { position: relative; width: min(400px, 100%); aspect-ratio: 3/4.3; }
.swipe-card {
  position: absolute; inset: 0; border-radius: 26px; overflow: hidden; background: var(--land);
  box-shadow: var(--shadow-lift); touch-action: none; user-select: none; cursor: grab;
  transition: transform .35s var(--spring), opacity .3s;
  --yes: 0; --no: 0;
}
.swipe-card.held { transition: none; cursor: grabbing; }
.swipe-card.gone { transition: transform .32s var(--ease), opacity .32s; opacity: 0; pointer-events: none; }
.swipe-card[data-depth="1"] { transform: translateY(14px) scale(.95); }
.swipe-card[data-depth="2"] { transform: translateY(28px) scale(.9); opacity: .7; }
.swipe-card[data-depth="1"], .swipe-card[data-depth="2"] { pointer-events: none; }
.swipe-card .ph { position: absolute; inset: 0; }
.swipe-card .ph img, .swipe-card .ph video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.swipe-card .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 20px 20px; color: #fff; background: linear-gradient(to top, rgba(20,16,12,.85), rgba(20,16,12,0)); display: grid; gap: 4px; }
.swipe-card .meta b { font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1.08; text-wrap: balance; }
.swipe-card .meta .tag { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--c); color: #fff; margin-bottom: 4px; }
.stamp { position: absolute; top: 28px; padding: 6px 16px; border: 4px solid; border-radius: 12px; font-weight: 700; font-size: 30px; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.12); }
.stamp.yes { left: 22px; color: #3fbf6f; transform: rotate(-12deg); opacity: var(--yes); }
.stamp.no { right: 22px; color: #ff5a4f; transform: rotate(12deg); opacity: var(--no); }
.swipe-actions { display: flex; gap: 26px; }
.round { width: 68px; height: 68px; border-radius: 50%; border: 0; padding: 20px; cursor: pointer; background: var(--card); box-shadow: var(--shadow-lift); transition: transform .25s var(--spring); }
.round svg { width: 100%; height: 100%; }
.round.nope { color: #e0483e; }
.round.like { color: #fff; background: var(--orange); }
.round.like svg { fill: currentColor; }
.round:hover { transform: scale(1.08); }
/* not "pop": that class belongs to the "more like this" menu */
.round.tapped { animation: burst .4s var(--spring); }
.swipe-hint { margin: 0; font-size: 14px; color: var(--ink-soft); }
@media (hover: none) { .swipe-hint { display: none; } }

.result { display: grid; justify-items: center; gap: 18px; }
.maker-card {
  width: min(460px, 100%); border-radius: 30px; padding: 26px 28px 28px; color: #fff; overflow: hidden; position: relative;
  background: radial-gradient(120% 70% at 30% 0%, rgba(255,255,255,.22), rgba(255,255,255,0)), var(--c);
  box-shadow: var(--shadow-lift);
  animation: reveal .7s var(--spring) backwards;
}
@keyframes reveal { from { transform: translateY(24px) scale(.94) rotate(-2deg); } }
.collage { position: relative; height: 230px; margin-bottom: 10px; }
.pc { position: absolute; top: 10px; width: 40%; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; border: 5px solid #fff; box-shadow: 0 10px 24px rgba(0,0,0,.25); background: rgba(255,255,255,.2); }
.pc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc0 { left: 0; transform: rotate(-8deg); }
.pc1 { left: 30%; top: 0; z-index: 2; transform: rotate(3deg); }
.pc2 { right: 0; transform: rotate(9deg); }
.youare { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .9; }
.maker-card h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 56px); line-height: .98; letter-spacing: -.03em; margin: 4px 0 10px; text-wrap: balance; }
.maker-card p { margin: 0; font-size: 17px; line-height: 1.4; opacity: .95; }
.pct { margin-top: 16px; display: grid; gap: 6px; }
.pct span { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.pct span::after { content: ""; position: absolute; inset: 0; width: var(--p); background: #fff; border-radius: 4px; animation: fillbar 1.1s .3s var(--ease) backwards; }
@keyframes fillbar { from { width: 0; } }
.pct b { font-weight: 600; font-size: 15px; }
.made { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.made small { width: 100%; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.made span { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 14px; }
.picky { margin: 0; color: var(--ink-soft); }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.share-row .btn.solid { background: var(--c); border-color: var(--c); }
.toast { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--ink-soft); opacity: 0; transition: opacity .2s; }
.toast.show { opacity: 1; }
.picks-h { justify-self: start; font-family: var(--display); font-weight: 400; font-size: 28px; margin: 10px 0 0; }
.result .strip { justify-self: stretch; }

@media (max-width: 560px) {
  .teaser { height: 280px; }
  .stack { width: 100%; }
  .collage { height: 190px; }
  .maker-card { padding: 22px; }
}

/* --- hover stories --------------------------------------------------------- */
/* specific enough to beat the "not loaded yet" photo rules above */
.ph img.story-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; }
.ph img.story-img.in { opacity: 1; }
.tile .ph, .card .ph { position: relative; }
.bars { position: absolute; top: 8px; left: 10px; right: 10px; z-index: 4; display: flex; gap: 4px; pointer-events: none; opacity: .75; transition: opacity .25s var(--ease); }
.storying .bars { opacity: 1; }
.swipe-card .bars { top: 12px; left: 16px; right: 16px; }
.swipe-card .bars i { height: 4px; }
.bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.38); overflow: hidden; position: relative; box-shadow: 0 0 4px rgba(0,0,0,.25); }
.bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left center; }
.bars i.done::after { transform: scaleX(1); }
.bars i.run::after { animation: barfill 3s linear forwards; }
@keyframes barfill { to { transform: scaleX(1); } }
[data-story] .tag, [data-story] .save { top: 18px; }
.tile .tag, .tile .save, .card .tag { transition: top .25s var(--ease), opacity .2s, transform .3s var(--spring); }

/* --- icon badges: the svg fills the padded box, so it sits dead centre ------ */
.tile .tag, .card .tag, .save, .more-btn, .promo-icon, .swipe-card .meta .tag, .invite-icon, .drawer .x, .round {
  display: grid; place-items: center; box-sizing: border-box; line-height: 0;
}
.tile .tag > svg, .card .tag > svg, .save > svg, .more-btn > svg, .promo-icon > svg,
.swipe-card .meta .tag > svg, .invite-icon > svg, .drawer header .ball > svg, .row .th .icon > svg, .teacher .more > svg {
  width: 100%; height: 100%; display: block;
}
.teacher .more > svg { width: 16px; height: 16px; }

/* --- CTA inside link and promo cards --------------------------------------- */
.link-card .go {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  align-self: stretch; margin-top: 14px; padding: 9px 9px 9px 14px;
  border-radius: 14px; background: #fff; color: #2a2622;
  font-size: 14.5px; font-weight: 600; line-height: 1.15; text-wrap: balance; text-align: left;
}
.link-card .go > svg { flex: none; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--c); color: #fff; box-sizing: border-box; transition: transform .3s var(--spring); }
.link-card:hover .go { transform: none; }
.link-card:hover .go > svg { transform: translate(2px, -2px); }
.link-card.promo .go { color: #2a2622; }
.link-card.promo b { font-size: clamp(26px, 2.3vw, 32px); }
.link-card .sub { margin-top: 8px; line-height: 1.3; }
.link-card .lc { padding: 18px 16px 16px; }
@media (max-width: 560px) {
  .link-card .go { font-size: 13px; padding: 8px 8px 8px 11px; }
  .link-card .go > svg { width: 24px; height: 24px; padding: 5px; }
  .link-card .lc { padding: 12px; }
}

/* --- "..." menu on a card --------------------------------------------------- */
.more-btn {
  position: absolute; top: 10px; right: 52px; z-index: 3; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 8px;
  background: rgba(255,255,255,.92); color: #2a2622;
  opacity: 0; transform: scale(.7); transition: opacity .2s, transform .3s var(--spring), top .25s var(--ease);
}
.tile:hover .more-btn, .more-btn:focus-visible, .more-btn[aria-expanded="true"] { opacity: 1; transform: scale(1); }
[data-story] .more-btn { top: 18px; }
@media (hover: none) { .more-btn { opacity: 1; transform: scale(1); } }

.pop {
  position: fixed; z-index: 70; min-width: 230px; max-width: min(300px, calc(100vw - 24px));
  background: var(--card); color: var(--ink); border-radius: 18px; padding: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 24px 60px rgba(0,0,0,.22);
  transform-origin: var(--ox, top right);
  animation: popin .28s var(--spring) both;
}
.pop.closing { animation: popout .16s var(--ease) both; }
@keyframes popin { from { opacity: 0; transform: scale(.55) translateY(-6px); } }
@keyframes popout { to { opacity: 0; transform: scale(.85); } }
.pop h4 { margin: 6px 10px 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.pop button, .pop a {
  display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left;
  padding: 9px 10px; border-radius: 12px; font-size: 16px; cursor: pointer; text-decoration: none; color: inherit;
  animation: popitem .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms + 60ms);
}
@keyframes popitem { from { opacity: 0; transform: translateX(8px); } }
.pop button:hover, .pop a:hover, .pop button:focus-visible { background: var(--ground-2); }
.pop .pi { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; padding: 7px; box-sizing: border-box; background: var(--c, var(--ink)); color: #fff; }
.pop .pi > svg { width: 100%; height: 100%; }
.pop b { font-weight: 500; }
.pop small { display: block; font-size: 13px; color: var(--ink-soft); }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

.active-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -8px 0 20px; font-size: 16px; }
.active-filter .pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--ink); color: var(--ground); font-weight: 500; }
.active-filter .pill button { border: 0; width: 24px; height: 24px; border-radius: 50%; padding: 5px; display: grid; place-items: center; background: rgba(255,255,255,.18); color: inherit; cursor: pointer; }
.active-filter .pill button > svg { width: 100%; height: 100%; }
.active-filter .count { color: var(--ink-soft); }

/* the live badge sits beside the category icon, clear of the save and "..." buttons */
.reel .playbadge { right: auto; left: 48px; top: 13px; }
[data-story].reel .playbadge { top: 21px; }

/* --- page intro: title with its text underneath, compact -------------------- */
.intro { display: block; margin: 30px auto 22px; }
.intro h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; max-width: 17ch; }
.intro p { margin-top: 10px; max-width: 56ch; font-size: 18px; line-height: 1.45; }
/* Match carries its own hero so the start button is on the first screen */
body[data-view="match"] .intro { display: none; }

.match { max-width: 1120px; }
.match-intro {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
  gap: 24px 48px; justify-items: stretch; padding: 34px 0 30px; min-height: min(620px, calc(100vh - 120px));
}
.mi-copy { display: grid; gap: 16px; justify-items: start; }
.mi-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--ground-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.mi-eyebrow > svg { width: 15px; height: 15px; }
.match-intro h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.4vw, 72px); line-height: .98; letter-spacing: -.03em; text-wrap: balance; }
.match-intro h1 i { color: var(--c, var(--orange)); }
.match-intro p { margin: 0; font-size: 19px; line-height: 1.45; color: var(--ink-soft); max-width: 42ch; }
.mi-go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.mi-go span { font-size: 14px; color: var(--ink-soft); }
.match-intro .btn.solid { background: var(--c, var(--orange)); border-color: var(--c, var(--orange)); }
.match-intro .invite { max-width: none; }
.match-intro .teaser { width: 100%; height: 440px; }
.match-intro .tz { width: 46%; }
.match-intro .tz1 { left: 27%; }

@media (max-width: 860px) {
  .match-intro { grid-template-columns: minmax(0, 1fr); padding-top: 18px; min-height: 0; }
  /* words first, photos under them, and the cards size themselves off the row height */
  .match-intro .teaser { height: min(26svh, 230px); max-width: 420px; justify-self: center; display: flex; align-items: center; justify-content: center; }
  .match-intro .tz { position: static; height: 100%; width: auto; aspect-ratio: 3/4; margin-inline: -5%; }
  .match-intro .tz0 { transform: rotate(-8deg); }
  .match-intro .tz1 { transform: rotate(2deg) scale(1.04); }
  .match-intro .tz2 { transform: rotate(9deg); }
  .match-intro h1 { font-size: clamp(36px, 10vw, 48px); }
  .match-intro p { font-size: 17px; }
}
@media (max-width: 560px) {
  .intro { margin: 20px auto 16px; }
  .intro h1 { font-size: 34px; }
  .intro p { font-size: 16.5px; }
}
/* the deck and its buttons fit one screen, even on a short laptop */
.stack { width: min(400px, 100%, calc((100vh - 260px) * 0.7)); }
.swipe { padding-top: 16px; }
/* on phones the category chips are one row that scrolls sideways */
@media (max-width: 560px) {
  .view > .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .view > .chips::-webkit-scrollbar { display: none; }
  .view > .chips .chip { flex: none; }
}

/* --- match v2: where are you ------------------------------------------------ */
.where { max-width: 520px; margin: 18px auto 30px; padding: 30px 30px 24px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow-lift); display: grid; gap: 12px; justify-items: start; }
.where-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--orange); color: #fff; padding: 13px; box-sizing: border-box; display: grid; place-items: center; }
.where-icon > svg { width: 100%; height: 100%; }
.where h2 { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5vw, 46px); line-height: 1; letter-spacing: -.02em; }
.where-p { margin: 0 0 6px; color: var(--ink-soft); font-size: 17px; }
.btn.gps { width: 100%; justify-content: center; padding: 12px 16px; font-size: 16.5px; background: var(--ink); color: var(--ground); border-color: var(--ink); }
.btn.gps:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.gps > svg { width: 19px; height: 19px; }
.gps-status { margin: 0; min-height: 1.3em; font-size: 15px; color: var(--ink); }
.where-label { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); margin-top: 6px; }
.select { position: relative; width: 100%; }
.select select { width: 100%; appearance: none; font: inherit; font-size: 16.5px; padding: 12px 42px 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--ground); color: var(--ink); cursor: pointer; }
.select select:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 2px; }
.select > svg { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; color: var(--ink-soft); }
.radii { display: flex; flex-wrap: wrap; gap: 8px; }
.radii button { border: 1.5px solid var(--line); background: var(--ground); border-radius: 999px; padding: 7px 14px; font-weight: 500; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.radii button[aria-checked="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.where-count { margin: 4px 0 2px; min-height: 1.3em; font-size: 15.5px; line-height: 1.4; color: var(--ink); }
#build { width: 100%; justify-content: center; }
#build:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.where-privacy { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.where-privacy > svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }

/* --- match v2: deck notes ---------------------------------------------------- */
.swipe-top { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.where-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px 5px 9px; font-size: 14px; font-weight: 500; cursor: pointer; }
.where-chip > svg { width: 15px; height: 15px; color: var(--orange); }
.where-chip:hover { border-color: var(--ink); }
.swipe-note { margin: 0; max-width: 440px; text-align: center; font-size: 14px; line-height: 1.4; color: var(--ink-soft); text-wrap: balance; }

/* --- match v2: result -------------------------------------------------------- */
.maker-card.two { background: radial-gradient(120% 70% at 30% 0%, rgba(255,255,255,.22), rgba(255,255,255,0)), linear-gradient(135deg, var(--c), var(--c2)); }
.res-icons { display: flex; gap: 6px; margin-bottom: 8px; }
.res-icons span { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--c); padding: 9px; box-sizing: border-box; display: grid; place-items: center; }
.res-icons span:nth-child(2) { color: var(--c2); margin-left: -14px; box-shadow: -3px 0 0 rgba(0,0,0,.08); }
.res-icons svg { width: 100%; height: 100%; }
.maker-card .pair { display: block; margin: -4px 0 10px; font-weight: 600; font-size: 16px; opacity: .9; }
.mix { margin-top: 16px; display: grid; gap: 7px; }
.mix small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.mix .bar { display: grid; grid-template-columns: 78px minmax(0, 1fr) 42px; align-items: center; gap: 10px; font-size: 14.5px; }
.mix .bar i { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; }
.mix .bar b { display: block; height: 100%; border-radius: 4px; background: #fff; animation: fillbar 1s .25s var(--ease) backwards; }
.mix .bar em { font-style: normal; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.maker-card .badge { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.18); font-size: 13.5px; font-weight: 600; }
.near-head { justify-self: stretch; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.near-head .picks-h { margin: 0; }
.near-head span { color: var(--ink-soft); font-size: 15px; }
.pick-tag { position: absolute; top: 11px; right: 10px; padding: 3px 9px; border-radius: 999px; background: #fff; color: #2a2622; font-size: 12px; font-weight: 600; z-index: 3; }
[data-story] .pick-tag { top: 19px; }
.gap { justify-self: start; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 15px; }
.gap > svg { width: 15px; height: 15px; }
.again { display: grid; justify-items: center; gap: 8px; margin: 18px 0 10px; text-align: center; }
.again > span { font-size: 14px; color: var(--ink-soft); }
.again .btn.solid { background: var(--c); border-color: var(--c); }
.rotate { margin: 6px 0 0; font-size: 15px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.linkish { border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: 14px; display: inline-flex; gap: 5px; align-items: center; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish > svg { width: 14px; height: 14px; }
.share-row .btn > svg { width: 17px; height: 17px; }
@media (max-width: 560px) {
  .where { padding: 22px 18px 18px; border-radius: 22px; }
  .mix .bar { grid-template-columns: 64px minmax(0, 1fr) 38px; }
}
a.btn { text-decoration: none; }
.gps-status:empty { display: none; }

/* --- phones: the caption sits under the photo, not on top of it ------------- */
@media (max-width: 620px) {
  .tile .meta {
    position: static; padding: 8px 10px 10px; background: none; color: var(--ink);
    display: grid; gap: 1px;
  }
  .tile .meta b {
    font-size: 13.5px; font-weight: 600; line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .tile .meta span { font-size: 11.5px; color: var(--ink-soft); line-height: 1.25; }
  .tile { background: var(--card); }
  .card .meta { padding: 34px 10px 9px; }
  .card .meta b { font-size: 13.5px; }
  .card .meta span { font-size: 11.5px; }
  .swipe-card .meta b { font-size: 21px; }
  .swipe-card .meta span { font-size: 13.5px; }
  .save, .more-btn { width: 30px; height: 30px; padding: 7px; }
  .more-btn { right: 46px; }
  .tile .tag, .card .tag { width: 26px; height: 26px; padding: 6px; }
  .playbadge { font-size: 10.5px; padding: 3px 7px 3px 6px; }
  .reel .playbadge { left: 40px; }
}

/* a video iOS wouldn't start by itself says so, and one tap plays it */
.tap-to-play .ph::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: rgba(255,255,255,.92);
  box-shadow: 0 2px 10px rgba(0,0,0,.25); z-index: 2;
}
.tap-to-play .ph::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 3; margin: -9px 0 0 -5px;
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #2a2622;
}
.tap-to-play .playbadge { display: none; }

/* --- phones: Match fits one screen ----------------------------------------- */
@media (max-width: 860px) {
  .match-intro { gap: 16px; padding: 10px 0 16px; }
  .match-intro .teaser { height: min(34dvh, 260px); }
  .mi-copy { gap: 10px; }
  .match-intro h1 { font-size: clamp(30px, 8.2vw, 42px); }
  .match-intro p { font-size: 16px; line-height: 1.35; }
  .mi-go { gap: 10px; margin-top: 2px; }
  .btn.big { font-size: 16.5px; padding: 11px 18px; }
  .stack { width: min(400px, 100%, calc((100dvh - 232px) * 0.7)); }
  .swipe { gap: 12px; padding-top: 8px; }
  .swipe-top { gap: 8px; }
  .round { width: 58px; height: 58px; padding: 17px; }
  .swipe-actions { gap: 20px; }
  .result .maker-card { padding: 20px; }
  .collage { height: 165px; }
}
.match { scroll-margin-top: 104px; }
@media (max-width: 560px) { .match { scroll-margin-top: 118px; } }

/* --- phones: smaller everything so a step fits one screen ------------------- */
@media (max-width: 480px) {
  .intro h1 { font-size: 30px; }
  .intro p { font-size: 15.5px; }
  .intro { margin: 14px auto 12px; }
  .match-intro { padding: 6px 0 12px; gap: 12px; }
  .match-intro .teaser { height: min(23svh, 200px); }
  .match-intro h1 { font-size: clamp(26px, 7.6vw, 34px); }
  .match-intro p { font-size: 15px; line-height: 1.3; }
  .mi-eyebrow { font-size: 11.5px; padding: 5px 10px; }
  .mi-go span { font-size: 12.5px; }

  /* the where-am-I card */
  .where { padding: 16px 14px 14px; gap: 9px; margin-top: 8px; }
  .where-icon { width: 40px; height: 40px; padding: 10px; }
  .where h2 { font-size: 27px; }
  .where-p { font-size: 15px; margin-bottom: 2px; }
  .btn.gps { padding: 10px 14px; font-size: 15.5px; }
  .where-label { font-size: 11px; margin-top: 2px; }
  .select select { padding: 10px 38px 10px 12px; font-size: 15.5px; }
  .radii { gap: 6px; }
  .radii button { padding: 6px 11px; font-size: 13.5px; }
  .where-count { font-size: 13.5px; }
  .where-privacy { font-size: 11.5px; }
  #build { padding: 11px 16px; }

  /* the deck */
  .stack { width: min(400px, 100%, calc((100svh - 214px) * 0.68)); }
  .swipe { gap: 10px; }
  .swipe-note { font-size: 12.5px; }
  .where-chip { font-size: 13px; }
  .dots i { width: 16px; }
  .round { width: 54px; height: 54px; padding: 16px; }
  .swipe-card .meta { padding: 46px 14px 14px; }
  .swipe-card .meta b { font-size: 19px; }
}

/* --- phones: the road trip is a scroll, not a split screen ------------------ */
@media (max-width: 760px) {
  .trip { display: block; }
  .trip-map {
    position: static; height: auto; max-height: none;
    margin: 0 auto 18px; width: min(190px, 46vw);
  }
  .trip-map svg { height: 34svh; }
  .trip-map .stop text { display: none; }
  .stops { display: block; }
  .stop-sec { padding: 20px 0 30px; }
  .stop-sec h2 { font-size: clamp(34px, 11vw, 46px); }
  .stop-sec .facts { font-size: 15px; }
  .strip { grid-auto-columns: 74%; gap: 12px; scroll-padding-left: 16px; }
  .strip .card .ph { aspect-ratio: 4/5; }
  .meet { padding: 10px 12px; }
  .meet .face { width: 46px; height: 46px; }
  .meet span.q { -webkit-line-clamp: 3; }
}
.trip-progress { display: none; }
@media (max-width: 760px) {
  .trip-progress {
    display: flex; flex-direction: column; gap: 6px;
    position: sticky; top: calc(env(safe-area-inset-top, 0px) + 104px); z-index: 20;
    margin: 0 -16px 10px; padding: 8px 16px 10px;
    background: color-mix(in srgb, var(--ground) 92%, transparent);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .trip-progress i { display: block; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
  .trip-progress b { display: block; height: 100%; background: var(--orange); border-radius: 2px; transition: width .2s linear; }
  .trip-progress span { font-size: 13px; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
}

/* --- phones: a small map that follows you down the road trip ---------------- */
@media (max-width: 760px) {
  .trip-map {
    position: fixed; z-index: 30; top: calc(env(safe-area-inset-top, 0px) + 152px); right: 10px;
    width: 84px; height: 128px; margin: 0; padding: 6px;
    background: color-mix(in srgb, var(--card) 92%, transparent);
    border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: width .35s var(--spring), height .35s var(--spring);
    cursor: pointer;
  }
  .trip-map svg { height: 100%; }
  .trip-map.open { width: min(62vw, 280px); height: min(54svh, 440px); }
  /* at this size the route needs thicker lines to read at all */
  .trip-map { width: 92px; height: 140px; }
  .trip-map .done { stroke-width: 9; }
  .trip-map .route { stroke-width: 5; stroke-dasharray: 4 10; }
  .trip-map .car { r: 16; }
  .trip-map .pulse { r: 30; }
  .trip-map .stop circle { stroke-width: 4; }
  .trip-map.open { width: min(62vw, 280px); height: min(54svh, 440px); }
  .trip-map.open .done { stroke-width: 4; }
  .trip-map.open .route { stroke-width: 2.5; }
  .trip-map.open .car { r: 8; }
  .trip-map.open .pulse { r: 16; }
  .trip-map.open .stop circle { stroke-width: 2; }
  .trip-map.open .stop.now text, .trip-map.open .stop.big text { display: block; }
  .trip { padding-right: 0; }
  .stop-sec h2 { max-width: calc(100% - 100px); }
  .stop-sec .eyebrow { max-width: calc(100% - 100px); }
}

/* --- the deck always fits the window, buttons included --------------------- */
.swipe {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  height: calc(100svh - 104px); min-height: 420px; padding-top: 6px;
}
.stack-wrap { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; justify-content: center; }
.stack { height: 100%; width: auto; aspect-ratio: 3 / 4.3; max-width: min(400px, 100%); }
.swipe-note { flex: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.swipe-actions { flex: none; }
.swipe-hint { flex: none; margin: 0; }
@media (max-height: 760px) { .swipe-hint { display: none; } .swipe { gap: 8px; } }
@media (max-width: 560px) { .swipe { height: calc(100svh - 118px); } }

/* --- the same floating WhatsApp button handson.pt has ---------------------- */
.ho-wa-float {
  position: fixed; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: 2.6s infinite ho-wa-pulse;
}
.ho-wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.ho-wa-float svg { width: 33px; height: 33px; fill: #fff; }
@keyframes ho-wa-pulse {
  0% { box-shadow: 0 4px 14px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 4px 14px rgba(0,0,0,.25), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 14px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 560px) { .ho-wa-float { width: 52px; height: 52px; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } .ho-wa-float svg { width: 29px; height: 29px; } }
@media (prefers-reduced-motion: reduce) { .ho-wa-float { animation: none; } }

/* --- when it runs: a date, or "on request" -------------------------------- */
.when {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  margin-top: 6px; padding: 3px 9px 3px 7px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: #2a2622;
  font-size: 12.5px; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.when > svg { width: 13px; height: 13px; }
.when.soon { background: var(--orange); color: #fff; }
.when.on-request { background: rgba(255,255,255,.28); color: #fff; font-weight: 500; backdrop-filter: blur(4px); }
.tile .meta, .card .meta, .swipe-card .meta { display: grid; justify-items: start; gap: 2px; }
.row .when { margin-top: 4px; background: var(--ground-2); color: var(--ink-soft); font-weight: 500; }
.row .when.soon { background: var(--orange); color: #fff; font-weight: 600; }
.swipe-card .when { font-size: 14px; padding: 4px 12px 4px 9px; margin-top: 8px; }
.swipe-card .when > svg { width: 15px; height: 15px; }
@media (max-width: 620px) {
  /* on a phone the caption sits under the photo, so the chip needs its own colours */
  .tile .when { background: var(--ground-2); color: var(--ink); font-size: 11.5px; margin-top: 5px; }
  .tile .when.soon { background: var(--orange); color: #fff; }
  .tile .when.on-request { background: transparent; color: var(--ink-soft); padding-left: 0; backdrop-filter: none; }
}

/* --- Bricolage Grotesque: a grotesque needs weight where the serif had shape --- */
h1, h2, h3, .brand, .intro h1, .match-intro h1, .stop-sec h2, .maker-card h2,
.where h2, .drawer h2, .link-card b, .teacher b, .picks-h, .quote-card q, .trip-end,
.card.all, .swipe-card .meta b, .stat .big, .mix .bar, .pct b { font-family: var(--display); }
.intro h1, .match-intro h1, .stop-sec h2, .maker-card h2, .where h2, .drawer h2,
.quote-card q, .trip-end, .link-card b { font-weight: 500; letter-spacing: -.02em; }
.intro h1 i, .match-intro h1 i, .trip-end i, .brand em { font-style: normal; }
.brand em { font-weight: 500; }
.stat .big { font-weight: 600; letter-spacing: -.03em; }
.teacher b, .picks-h, .card.all { font-weight: 500; }
.trip-map .stop.now text { font-weight: 600; }
/* the new faces run wider than Fraunces and Afacad, so the big type comes down a notch */
.intro h1 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.06; }
.match-intro h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; }
.stop-sec h2 { font-size: clamp(34px, 5vw, 62px); }
.maker-card h2 { font-size: clamp(34px, 6vw, 48px); line-height: 1.02; }
.quote-card q { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.2; }
.link-card b { font-size: clamp(22px, 2vw, 29px); line-height: 1.05; }
.swipe-card .meta b { font-weight: 500; font-size: 24px; letter-spacing: -.01em; }
.tile .meta b, .card .meta b, .row b { font-family: var(--body); }
@media (max-width: 560px) {
  .intro h1 { font-size: 28px; }
  .match-intro h1 { font-size: clamp(25px, 7.4vw, 33px); }
  .stop-sec h2 { font-size: clamp(30px, 9.5vw, 40px); }
  .swipe-card .meta b { font-size: 19px; }
}

/* the collage sizes itself off the row height, so it never covers the words */
.collage { display: flex; align-items: center; justify-content: center; }
.maker-card .pc { position: static; height: 100%; width: auto; aspect-ratio: 3/4; margin-inline: -4%; }
.maker-card .pc0 { transform: rotate(-8deg); }
.maker-card .pc1 { transform: rotate(3deg); z-index: 2; }
.maker-card .pc2 { transform: rotate(9deg); }
