:root {
  /* Taken from a London street: painted brick, oat stone, and shopfront green */
  --brick: #16282a;
  --brick-soft: #21383a;
  --brick-line: #3a5052;
  --oat: #ebe3d2;
  --paper: #f9f5ee;
  --lead: #a6c398;
  --lead-light: #bad3ad;
  --alert: #f2c38b;
  --alert-deep: #b4640f;
  --ink: #16282a;
  --muted: #4b5d5e;
  --on-dark: #f9f5ee;
  --on-dark-muted: #c4cdc9;

  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --italic: "Libre Caslon Text", Georgia, serif;
  --body: "Hanken Grotesk", "Avenir Next", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(72px, 10vw, 152px);

  --dog-sheet: url("https://images.unsplash.com/photo-1757685546168-bbab7127b3aa?w=760&q=72&auto=format&fit=crop");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 clamp(1.0625rem, .3vw + 1rem, 1.15rem)/1.62 var(--body);
  overflow-x: clip;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lead); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, min(5.6vw, 9.4vh), 6.25rem); line-height: 1.02; }
h2 { font-size: clamp(2.375rem, 4.6vw, 4.25rem); line-height: 1.06; }
h1 em, h2 em, h3 em {
  font-family: var(--italic);
  font-style: italic;
  letter-spacing: -0.03em;
}
h1 em, h2 em, h3 em { font-size: .92em; }
/* Room for the italic's overhang: Safari clips it when a heading animates in */
h1, h2, h3 { padding: .08em .14em; margin: -.08em -.14em; }
h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; text-wrap: balance; }

.wrap { width: min(1320px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  padding: 10px 14px; background: var(--paper);
}
.skip:focus { top: 12px; }

.wordmark {
  font: 400 1.75rem/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark i { font-family: var(--italic); font-size: .86em; letter-spacing: -0.03em; }

/* Seal */
.seal { display: block; width: 116px; height: 116px; overflow: visible; }
.seal-line { fill: none; stroke: var(--seal-rule, var(--lead)); stroke-width: 1.5; }
.seal-ring {
  fill: var(--seal-ink, var(--on-dark));
  font: 500 14.2px var(--body);
  letter-spacing: .115em;
  text-transform: uppercase;
}
.seal-the { fill: var(--seal-ink, var(--on-dark)); font: italic 25px var(--italic); }
.seal-pack { fill: var(--seal-ink, var(--on-dark)); font: 40px var(--display); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--lead);
  color: var(--brick);
  font: 500 1.0625rem/1.1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--lead-light); }
.btn--small { min-height: 42px; padding: 8px 18px; font-size: .9375rem; }

/* Slim bar */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px var(--gutter);
  background: var(--brick);
  color: var(--on-dark);
  border-bottom: 1px solid var(--brick-line);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}
.bar.is-on { transform: none; visibility: visible; }
.bar .wordmark { font-size: 1.5rem; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  min-height: min(100svh, 980px);
  background: var(--brick);
  color: var(--on-dark);
}
.hero__panel {
  display: flex; flex-direction: column;
  padding: clamp(20px, 2.4vw, 36px) clamp(20px, 4vw, 64px) clamp(32px, 4vw, 56px);
}
.hero__copy { margin-block: auto; padding-top: 28px; }
.hero__kicker { margin-bottom: 18px; color: var(--lead); font-weight: 400; font-size: 1rem; line-height: 1.35; text-wrap: balance; }
.lede { max-width: 33em; margin-top: 22px; color: var(--on-dark); font-size: clamp(1.0625rem, .5vw + .95rem, 1.1875rem); line-height: 1.5; }
.hero__stage { position: relative; min-height: 100%; overflow: hidden; }
.hero__photo { display: block; position: absolute; inset: 0; }
.hero__photo img { position: absolute; inset: 0; object-position: 36% 50%; }
.phone--hero {
  position: absolute; right: clamp(16px, 3vw, 48px); bottom: -9%;
  font-size: clamp(10px, 1.32vh, 13px);
}

/* Sign-up */
.signup { margin-top: 26px; max-width: 560px; }
.signup__fields {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.field label { display: block; margin-bottom: 5px; font-size: .9375rem; font-weight: 400; }
.field input {
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid var(--on-dark-muted);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.2 var(--body);
}
.field input::placeholder { color: #667677; font-weight: 300; }
.field input[aria-invalid="true"] { border: 2px solid var(--alert-deep); }
.signup .btn { width: 100%; }
.signup__note { margin-top: 12px; color: var(--on-dark-muted); font-size: .9375rem; line-height: 1.4; }
.signup__note.is-error { color: var(--alert); font-weight: 400; }
.signup__note.is-preview { padding: 10px 14px; background: var(--oat); color: var(--ink); font-weight: 400; }

/* The lead: one line of colour that leaves a section and ends in a clip */
.lead {
  position: absolute; left: 50%; top: 0;
  width: 3px; height: clamp(56px, 7vw, 104px);
  background: var(--lead);
}
.lead::after {
  content: "";
  position: absolute; left: 50%; top: 100%;
  width: 19px; height: 19px;
  border: 3px solid var(--lead);
  border-radius: 50%;
  transform: translate(-50%, -2px);
}

/* Intro */
.intro { position: relative; padding-block: calc(var(--section) + 24px) var(--section); }
.intro__copy { max-width: 1040px; text-align: center; }
.intro__copy p { font: 400 clamp(1.875rem, 3.6vw, 3.25rem)/1.14 var(--display); letter-spacing: -0.01em; text-wrap: balance; }

/* Needs */
.needs { padding-block: var(--section); background: var(--oat); }
.needs__intro { max-width: 800px; margin-bottom: clamp(40px, 5vw, 72px); }
.needs__intro p { max-width: 34em; margin-top: 18px; }
.needs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}
.needs__grid article { padding-top: 14px; border-top: 1px solid var(--ink); }
.need__from { margin-bottom: 18px; color: var(--muted); font: italic 1.0625rem/1.25 var(--italic); text-decoration: line-through; text-decoration-thickness: 1px; }
.needs__grid h3 { margin-bottom: 12px; font-size: clamp(1.75rem, 1.2vw + 1.2rem, 2.25rem); line-height: 1.08; }

/* Story */
.story { position: relative; padding-block: calc(var(--section) + 24px) clamp(48px, 6vw, 88px); background: var(--brick); color: var(--on-dark); }
.story__head h2 { font-size: clamp(2.75rem, 7.4vw, 7rem); line-height: 1; }
.story__head p { max-width: 34em; margin-top: 26px; font-size: clamp(1.125rem, .7vw + 1rem, 1.3125rem); }
.panel {
  display: grid;
  grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
  align-items: center;
  margin-top: clamp(56px, 8vw, 120px);
}
.panel--flip { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
.panel--flip .scene { order: 2; }
.scene { position: relative; height: clamp(600px, 92vh, 860px); }
.scene__img { position: absolute; inset: 0; filter: saturate(.92) sepia(.05); }
.scene__img--class { object-position: 0 72%; }
.scene__img--pub { object-position: 0 50%; }
.scene__img--grass { object-position: 70% 50%; }
.scene__img--tube { object-position: 0 50%; }
.scene__img--sofa { object-position: 50% 50%; }
.scene .phone {
  position: absolute; top: 50%; right: 0;
  font-size: clamp(11.5px, 1.68vh, 14.5px);
  transform: translate(26%, -50%);
}
.panel--flip .scene .phone { right: auto; left: 0; transform: translate(-26%, -50%); }
.panel__copy { padding-inline: clamp(120px, 12vw, 190px) var(--gutter); max-width: 720px; }
.panel--flip .panel__copy { padding-inline: var(--gutter) clamp(120px, 12vw, 190px); justify-self: end; }
.panel__when { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--lead); font-size: 1rem; font-weight: 400; line-height: 1.25; }
.panel__when span {
  flex: none;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--lead);
  color: var(--brick);
  font: 1.0625rem/1 var(--display);
}
.panel__copy h3 { margin-bottom: 16px; font-size: clamp(2.125rem, 2.3vw + 1.1rem, 3.375rem); line-height: 1.05; }
.panel__copy h3 + p { font-size: clamp(1.125rem, .7vw + 1rem, 1.3125rem); line-height: 1.45; }
.panel__caveat { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--lead); color: var(--on-dark-muted); font-size: 1rem; line-height: 1.5; }
.story__note { margin-top: clamp(40px, 5vw, 64px); color: var(--on-dark-muted); font-size: .9375rem; }

/* The phone: everything inside is sized in ems, so one font-size scales the lot */
.phone {
  flex: none;
  width: 21.5em;
  padding: .55em;
  border-radius: 3.1em;
  background: #0b1415;
  box-shadow: 0 0 0 1px #34474a, 0 2.4em 5em rgb(0 0 0 / .42);
  color: var(--ink);
  line-height: 1.3;
}
.screen {
  position: relative;
  display: flex; flex-direction: column;
  height: 43.5em;
  overflow: hidden;
  border-radius: 2.6em;
  background: var(--paper);
  font-family: var(--body);
  font-weight: 400;
}
.screen::before {
  content: "";
  position: absolute; left: 50%; top: .7em; z-index: 3;
  width: 6.6em; height: 1.75em;
  border-radius: 1em;
  background: #0b1415;
  transform: translateX(-50%);
}
.status { position: relative; z-index: 2; flex: none; padding: .95em 1.9em .3em; font-size: .95em; font-weight: 600; }
.status--light { color: #fff; }
.status--dark { color: var(--brick); }
.app { flex: 1; min-height: 0; padding: 1.3em 1.35em 1em; overflow: hidden; }
.app__over { font-size: .9em; color: var(--muted); }
.app__title { margin-top: .1em; font: 2.05em/1.08 var(--display); letter-spacing: -0.01em; }
.app__title--plain { font: 600 2em/1.1 var(--body); letter-spacing: -0.02em; }
.app__meta { margin-top: .3em; font-size: .92em; color: var(--muted); }
.app__section { margin: 1.25em 0 .55em; font: italic .98em/1.2 var(--italic); }
.app__small { margin-top: .8em; font-size: .78em; line-height: 1.3; color: var(--muted); }
.app__small--centre { text-align: center; }
.row { display: flex; align-items: center; gap: .7em; padding: .58em 0; border-top: 1px solid rgb(22 40 42 / .12); }
.row__text { flex: 1; min-width: 0; }
.row__text b { display: block; font-weight: 600; font-size: .96em; line-height: 1.2; }
.row__text span { display: block; margin-top: .12em; font-size: .82em; line-height: 1.2; color: var(--muted); }
.signal { flex: none; width: .72em; height: .72em; border-radius: 50%; background: #3e8a4c; }
.signal--care { background: #d98a2b; }

/* Dogs stand in for avatars, all cropped from one photo */
.dog {
  display: block; flex: none;
  width: 2.7em; height: 2.7em;
  border-radius: 50%;
  background-color: var(--oat);
  background-image: var(--dog-sheet);
  background-size: 450% auto;
}
/* Fig is the spaniel from the pub, so his avatar comes from that photo */
.dog--fig {
  background-image: url("https://images.unsplash.com/photo-1592468257654-74160c844866?w=760&q=74&auto=format&fit=crop");
  background-size: 430% auto; background-position: 39% 34%;
}
.dog--bruno { background-position: 37% 26%; }
.dog--pickle { background-position: 64% 64%; }
.dog--moss { background-position: 87% 26%; }
.dog--otis { background-image: url("assets/cafe-pair.jpg"); background-size: 900% auto; background-position: 72.5% 76%; }
.dog--large { width: 4.3em; height: 4.3em; }
.dog--pin { width: 30px; height: 30px; border: 2px solid #fff; box-shadow: 0 1px 5px rgb(0 0 0 / .35); }
.dog--home { border-color: var(--lead); }
/* Fills the screen, so it needs its own much larger copy of the photo */
.dog--fig-wide {
  flex: none; width: 100%; height: 12.5em; margin-top: -3.1em; border-radius: 0;
  background-image: url("https://images.unsplash.com/photo-1592468257654-74160c844866?w=1600&q=76&auto=format&fit=crop");
  background-size: 215% auto; background-position: 36% 38%;
}
.endorse { margin-top: .9em; padding-top: .75em; border-top: 1px solid rgb(22 40 42 / .12); }
.endorse__list { display: flex; flex-wrap: wrap; gap: .35em; }
.endorse__list li { padding: .32em .65em; border-radius: 1.2em; background: #dde8d6; font-size: .84em; font-weight: 500; white-space: nowrap; }
.endorse__list b { margin-left: .25em; font-weight: 600; color: #3f6a48; }
.endorse p { margin-top: .5em; color: var(--muted); font: italic .78em/1.25 var(--italic); }
.endorse .compat { display: flex; align-items: center; gap: .5em; margin-top: .55em; color: var(--ink); font: 500 .84em/1.25 var(--body); }
.stack { display: inline-flex; }
.stack .dog { width: 1.9em; height: 1.9em; border: 2px solid #fff; margin-left: -.5em; }
.stack .dog:first-child { margin-left: 0; }

.event { margin-bottom: .55em; padding: .75em .85em; border-radius: 1em; background: #fff; box-shadow: 0 .1em .5em rgb(22 40 42 / .08); }
.event--flat { margin-top: .9em; background: var(--oat); box-shadow: none; }
.event__when { font-size: .8em; color: var(--muted); }
.event__name { margin-top: .05em; font: 1.3em/1.15 var(--display); }
.event__foot { display: flex; align-items: center; gap: .5em; margin-top: .45em; font-size: .82em; color: var(--muted); }
.app--today .app__section { margin-top: 1em; }

.search { margin: .9em 0; padding: .6em .85em; border-radius: 1.2em; background: var(--oat); font-size: .95em; }
.search::before { content: "⌕ "; color: var(--muted); }
.card-dog { display: flex; align-items: center; gap: .85em; padding: .85em; border-radius: 1em; background: #fff; box-shadow: 0 .1em .5em rgb(22 40 42 / .08); }
.card-dog b { display: block; font: 1.65em/1 var(--display); }
.card-dog span { display: block; margin-top: .15em; font-size: 1em; font-weight: 600; }
.card-dog small { display: block; margin-top: .2em; font-size: .78em; line-height: 1.25; color: var(--muted); }
.card-dog__text { flex: 1; min-width: 0; }
.starter { margin-top: .75em; padding: .85em; border-radius: 1em; background: var(--lead); }
.starter__label { margin-bottom: .25em; font: italic .86em/1.2 var(--italic); }
.starter p:last-child { font-size: .98em; font-weight: 500; line-height: 1.28; }
.app-btn {
  display: block; width: 100%;
  margin-top: .75em;
  padding: .82em;
  border: 1px solid var(--brick);
  border-radius: 2em;
  background: transparent;
  color: var(--brick);
  font: 600 1em/1.1 var(--body);
  text-align: center;
  cursor: pointer;
}
.app-btn--solid { background: var(--brick); color: var(--paper); }
.app-btn.is-done { border-color: var(--lead); background: var(--lead); color: var(--brick); cursor: default; }
.app-btn.is-done::before { content: "✓ "; }
.app--profile { padding-top: .9em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4em; margin-top: .8em; }
.stats span { font-size: .78em; line-height: 1.15; color: var(--muted); }
.stats b { display: block; font: 2em/1 var(--display); color: var(--ink); }
.tabs { position: relative; z-index: 3; flex: none; display: flex; justify-content: space-around; padding: .55em .5em 1.05em; border-top: 1px solid rgb(22 40 42 / .1); background: var(--paper); font-size: .74em; line-height: 1.1; color: var(--muted); }
.tabs span { display: flex; flex-direction: column; align-items: center; gap: .22em; min-width: 3.6em; }
.tabs svg { display: block; width: 1.65em; height: 1.65em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabs .is-on { color: var(--ink); font-weight: 600; }
.tabs .is-on svg { stroke-width: 2.1; }
.screen--map .tabs { position: absolute; left: 0; right: 0; bottom: 0; }

/* The class screen: photo, then details, with a clear break before the description */
.event-photo { position: relative; flex: none; height: 10em; margin-top: -3.1em; overflow: hidden; }
.event-photo img { object-position: 22% 0; }
.event-photo::after { content: ""; position: absolute; inset: 0 0 auto; height: 4em; background: linear-gradient(rgb(0 0 0 / .5), transparent); }
.app--event { padding-top: .75em; }
.event-host { margin-top: .3em; color: var(--muted); font-size: .88em; line-height: 1.25; }
.event-desc { margin-top: .6em; padding-top: .6em; border-top: 1px solid rgb(22 40 42 / .12); font-size: .88em; line-height: 1.3; }
.event-rsvp { margin-top: .7em; padding: .7em; }
.app--event .app__section { margin: .8em 0 .3em; }
.app--event .row { padding: .42em 0; }
.app--event .app__small { margin-top: .4em; }

/* The pack score: a number and a ledger, nothing louder */
.score { margin: .1em 0 .35em; font: 4.3em/1 var(--display); letter-spacing: -0.02em; }
.ledger { display: flex; justify-content: space-between; gap: 1em; padding: .48em 0; border-top: 1px solid rgb(22 40 42 / .12); font-size: .9em; line-height: 1.2; }
.ledger b { flex: none; font-weight: 600; }

/* The shout */
.screen--map { background: #dfe6d5; }
.minimap { position: absolute; inset: 0 0 auto; width: 100%; height: auto; }
.minimap__ground { fill: #e9e7d8; }
.minimap__park { fill: #bcd2ac; }
.minimap__canal { fill: none; stroke: #b9d0d6; stroke-width: 11; }
.minimap__streets path { fill: none; stroke: #fff; stroke-width: 6; }
.minimap__route { fill: none; stroke: var(--brick); stroke-width: 3.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.ring { fill: none; stroke: var(--brick); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 2.8s ease-out infinite; }
.ring--2 { animation-delay: 1.4s; }
@keyframes ring { from { transform: scale(.7); opacity: .8; } to { transform: scale(4.4); opacity: 0; } }
.screen--map .status { z-index: 2; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 4.1em; z-index: 2;
  padding: .9em 1.1em .85em;
  border-radius: 1.6em 1.6em 0 0;
  background: var(--paper);
  box-shadow: 0 -.3em 1.4em rgb(22 40 42 / .18);
}
.sheet__to { margin-bottom: .6em; font-size: .78em; color: var(--muted); }
.bubble { margin-top: .4em; padding: .55em .75em; border-radius: 1em 1em 1em .25em; background: #fff; font-size: .92em; line-height: 1.27; box-shadow: 0 .05em .3em rgb(22 40 42 / .1); }
.bubble b { display: block; font-size: .85em; font-weight: 600; color: var(--muted); }
.bubble--me { margin-left: 1.6em; border-radius: 1em 1em .25em 1em; background: var(--brick); color: var(--paper); box-shadow: none; }
.bubble--hero { background: var(--lead); }
.bubble--hero b { color: var(--brick); }
.sheet__status { display: flex; align-items: center; gap: .5em; margin-top: .75em; font-size: .86em; font-weight: 600; }
.sheet__status i { width: .6em; height: .6em; border-radius: 50%; background: #3e8a4c; }

/* Screens play through when they come into view */
.js .seq > * { opacity: 0; transform: translateY(.9em); transition: opacity .5s ease, transform .5s ease; }
.js .is-live .seq > * { opacity: 1; transform: none; }
.js .is-live .seq > :nth-child(1) { transition-delay: .15s; }
.js .is-live .seq > :nth-child(2) { transition-delay: .4s; }
.js .is-live .seq > :nth-child(3) { transition-delay: .65s; }
.js .is-live .seq > :nth-child(4) { transition-delay: .9s; }
.js .is-live .seq--slow > :nth-child(2) { transition-delay: 1.2s; }
.js .is-live .seq--slow > :nth-child(3) { transition-delay: 2.2s; }
.js .sheet__status { opacity: 0; transition: opacity .5s ease; }
.js .is-live .sheet__status { opacity: 1; transition-delay: 2.9s; }

/* What we keep hearing: a shelf you can scroll sideways */
.proof { padding-block: var(--section); overflow: hidden; }
.proof__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; }
.proof__head h2 { font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: 1; }
.proof__head p { max-width: 24em; color: var(--muted); font-size: 1.0625rem; line-height: 1.4; }
.shelf {
  --inset: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  display: flex; gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(32px, 4vw, 56px);
  padding: 4px var(--inset) 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--inset);
  scrollbar-width: thin;
  scrollbar-color: var(--lead) transparent;
}
.quote {
  flex: 0 0 clamp(272px, 30vw, 400px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: clamp(280px, 26vw, 340px);
  padding: clamp(22px, 2.2vw, 32px);
  background: var(--oat);
  scroll-snap-align: start;
}
.quote blockquote { margin: 0; font: 400 clamp(1.5rem, 1.1vw + 1.05rem, 1.9375rem)/1.16 var(--display); letter-spacing: -0.005em; }
.quote p { color: var(--muted); font: italic 1rem/1.3 var(--italic); }

/* House rules: the one loud moment, framed like a painted sign */
.rules { padding-block: clamp(24px, 3vw, 44px); background: var(--lead); color: var(--brick); }
.rules .wrap { width: min(1400px, 100%); padding-inline: clamp(12px, 3vw, 44px); }
.rules__frame {
  padding: clamp(40px, 7vw, 104px) clamp(20px, 6vw, 96px);
  border: 2px solid var(--brick);
  outline: 1px solid var(--brick);
  outline-offset: -9px;
}
.rules h2 { text-align: center; font-size: clamp(2.75rem, 7.4vw, 7rem); line-height: 1; }
.rules__list {
  counter-reset: rule;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4.5vw, 72px) clamp(24px, 4vw, 64px);
  margin-top: clamp(40px, 6vw, 88px);
}
.rules__list li { counter-increment: rule; padding-top: 14px; border-top: 1px solid var(--brick); }
.rules__list li::before {
  content: counter(rule);
  display: block;
  margin-bottom: 18px;
  font: italic 1.375rem/1 var(--italic);
}
.rules__list h3 { margin-bottom: 8px; font-size: clamp(1.625rem, 1.2vw + 1.1rem, 2.125rem); line-height: 1.1; }
.rules__list p { font-size: 1.0625rem; font-weight: 400; line-height: 1.45; }

/* Founder */
.founder { padding-block: var(--section); }
.founder__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 7vw, 112px);
}
.founder__photo img { aspect-ratio: 1; height: auto; }
.founder__photo figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-family: var(--italic); font-style: italic; font-size: .9375rem; }
.founder__copy h2 { margin-bottom: 24px; }
.founder__copy p { max-width: 33em; }
.founder__copy p + p { margin-top: 14px; }
.founder__copy p em { font-family: var(--italic); font-style: italic; font-size: .95em; }
.founder__copy .founder__sign { margin-top: 24px; font: 400 1.375rem/1.2 var(--display); }
.founder__sign span { display: block; margin-top: 4px; color: var(--muted); font: 300 .9375rem/1.3 var(--body); }

/* FAQ */
.faq { padding-block: 0 var(--section); }
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 7vw, 112px);
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--ink);
}
.faq h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px;
  padding-block: 14px;
  font-family: var(--display);
  font-size: clamp(1.25rem, .5vw + 1.1rem, 1.5rem);
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font: 400 1.625rem/1 var(--body);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { max-width: 36em; padding-bottom: 22px; }

/* Final */
.final {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  background: var(--brick);
  color: var(--on-dark);
  scroll-margin-top: 50px;
}
.final__photo { position: relative; min-height: 680px; }
.final__photo img { position: absolute; inset: 0; object-position: 50% 80%; filter: saturate(.9) sepia(.07) contrast(1.02); }
.final__race { max-width: 34em; margin-top: 18px; font-size: clamp(1.0625rem, .4vw + 1rem, 1.1875rem); line-height: 1.45; }
.final__race strong { display: block; margin-bottom: 4px; color: var(--lead); font: 400 clamp(1.5rem, 1vw + 1.1rem, 1.875rem)/1.15 var(--display); }
.final__panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 7vw, 104px) clamp(20px, 6vw, 96px);
}
.pass {
  --seal-ink: var(--brick);
  --seal-rule: var(--brick);
  display: flex; flex-direction: column; justify-content: space-between;
  width: min(340px, 100%);
  aspect-ratio: 1.586;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--lead);
  color: var(--brick);
  box-shadow: 0 18px 40px rgb(0 0 0 / .35);
  transform: rotate(-3deg);
  transition: transform .4s ease;
}
.pass:hover { transform: rotate(-1deg) translateY(-3px); }
.pass__top { display: flex; align-items: flex-start; justify-content: space-between; }
.pass .seal { width: 58px; height: 58px; }
.pass__bottom { display: flex; justify-content: space-between; gap: 16px; font-weight: 400; font-size: 1rem; line-height: 1.25; }
.pass__bottom span:last-child { text-align: right; }
.pass small { display: block; font: italic .8125rem/1.3 var(--italic); }
.pass b { font-weight: 400; }

/* Footer */
.foot { padding-block: 22px 18px; border-top: 1px solid var(--brick-line); background: var(--brick); color: var(--on-dark); overflow: hidden; }
.foot__note { color: var(--on-dark-muted); font-size: .9375rem; line-height: 1.4; }
.foot__mark { margin-top: clamp(24px, 4vw, 56px); font-size: clamp(5rem, 27vw, 22.5rem); line-height: .85; letter-spacing: -0.03em; }

/* A quiet settle as things come into view */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Layout changes */
@media (max-width: 1100px) {
  .rules__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero, .final { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero { position: relative; }
  .hero__panel { order: 2; padding-top: 28px; }
  .hero__stage { order: 1; height: min(46svh, 480px); min-height: 0; }
  .hero__photo img { object-position: 30% 55%; }
  .hero__stage::after {
    content: "";
    position: absolute; inset: 0 0 auto; height: 110px;
    background: linear-gradient(rgb(22 40 42 / .78), transparent);
  }
  .phone--hero { z-index: 1; bottom: -46%; font-size: 10.5px; }
  .wordmark--hero { position: absolute; left: var(--gutter); top: 16px; z-index: 2; color: #fff; }
  .hero__copy { padding-top: 0; }
  .founder__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .needs__grid { grid-template-columns: minmax(0, 1fr); }
  .founder__photo { max-width: 460px; }
  .final__photo { min-height: 0; height: 62svh; }

  /* Story: photo, then the phone hanging off its bottom edge, then the words */
  .panel, .panel--flip { grid-template-columns: minmax(0, 1fr); }
  .panel--flip .scene { order: 0; }
  .scene { height: clamp(420px, 58svh, 640px); margin-bottom: 320px; }
  .scene__img--grass { object-position: 50% 29%; }
  .scene .phone, .panel--flip .scene .phone {
    top: auto; bottom: -300px; left: 50%; right: auto;
    font-size: 11px;
    transform: translateX(-50%);
  }
  .panel__copy, .panel--flip .panel__copy { max-width: none; padding-inline: var(--gutter); padding-top: 28px; justify-self: stretch; }
}
@media (max-width: 600px) {
  .hero__photo img { object-position: 50% 0; }
  /* Shown whole above the phone, so the people on the lawn aren't hidden behind it */
  .scene__img--class { height: 62%; object-position: 0 78%; }
  /* Enlarged and clipped so only the dogs and younger owners stay in frame */
  .scene__img--grass { inset: auto 0 0; height: 145%; object-position: 62% 100%; clip-path: inset(31% 0 0 0); }
  .phone--hero { right: 10px; bottom: -62%; font-size: 8.5px; }
}
@media (max-width: 560px) {
  .rules__list { grid-template-columns: minmax(0, 1fr); }
  .signup__fields { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
