:root {
  color-scheme: light;

  /* Clare's brand: logo aqua and blue, plus the bright cyan from her old site */
  --aqua: #cbe6e6;
  --aqua-soft: #eaf6f5;
  --cyan: #5ed1e3;
  --blue: #3f5f9c;
  --navy: #16264a;
  --ink-soft: #43506b;
  --paper: #fbfdfc;
  --white: #fff;
  /* One warm note, to bring some human warmth to all that cool blue */
  --peach: #ffc4ad;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --body: Figtree, "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --radius: clamp(1.25rem, 2.5vw, 2rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
  background: var(--navy);
}

/* Without this, the browser's scroll anchoring follows elements mid slide-in,
   and the page ends up about 12px further down on every refresh. */
html, body { overflow-anchor: none; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 400 clamp(1.0625rem, 1.03rem + .15vw, 1.125rem) / 1.5 var(--body);
  overflow-x: clip;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 800;
  text-wrap: balance;
}
h1 {
  font-size: min(12.2vw, 5.5rem); /* sized so "Mobile foot care" fits on one line */
  line-height: .96;
  letter-spacing: -.02em;
}
h2 {
  margin-bottom: .5em;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.01em;
}
h3 {
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
}
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .18em; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}
.visit :focus-visible, .footer :focus-visible { outline-color: var(--aqua); }

.wrap {
  width: min(100% - 2.5rem, 84rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 40;
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: var(--navy);
  color: var(--white);
}
.skip-link:focus { top: 1rem; }

.kicker {
  margin-bottom: .6rem;
  font-weight: 600;
  letter-spacing: .01em;
}

/* Buttons */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: .5rem 1.5rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font: 600 1.0625em/1.2 var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--spring), background-color .2s, color .2s, border-color .2s;
}
.pill:hover { transform: translateY(-3px) scale(1.02); background: var(--blue); border-color: var(--blue); }
.pill:active { transform: scale(.98); }
.pill[disabled] { opacity: .65; cursor: progress; }
.pill--ghost { background: transparent; color: var(--navy); }
.pill--ghost:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pill--small { min-height: 2.75rem; padding: .35rem 1.15rem; font-size: 1rem; }

/* Floating nav */
.nav {
  position: fixed;
  top: .75rem;
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(100% - 1.5rem, 66rem);
  padding: .4rem .4rem .4rem 1rem;
  border-radius: 999px;
  background: rgb(255 255 255 / .82);
  box-shadow: 0 6px 24px rgb(22 38 74 / .12);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  transform: translateX(-50%);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-right: auto;
  fill: var(--blue);
  font: 800 1.1875rem/1 var(--display);
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}
.nav__links { display: none; gap: .25rem; }
.nav__links a {
  padding: .5rem .85rem;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav__links a:hover { background: var(--aqua); }
.nav__links a[aria-current] { background: var(--blue); color: var(--white); }
.only-wide { display: none; }

/* Page map: the logo's five dots */
.trailnav {
  position: fixed;
  right: .75rem;
  top: 50%;
  z-index: 20;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .5rem .3rem;
  border-radius: 999px;
  background: rgb(255 255 255 / .82);
  box-shadow: 0 6px 24px rgb(22 38 74 / .12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
}
.trailnav a {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.25rem;
  min-height: 1.75rem;
  text-decoration: none;
}
.trailnav a::before {
  content: "";
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--blue);
  opacity: .32;
  transition: opacity .25s, transform .3s var(--spring);
}
.trailnav a:nth-child(1) { --size: .375rem; }
.trailnav a:nth-child(2) { --size: .5rem; }
.trailnav a:nth-child(3) { --size: .75rem; }
.trailnav a:nth-child(4) { --size: 1.125rem; }
.trailnav a:nth-child(5) { --size: 1.625rem; }
.trailnav a:hover::before { opacity: .7; transform: scale(1.15); }
.trailnav a[aria-current]::before { opacity: 1; transform: scale(1.15); }
.trailnav span {
  position: absolute;
  right: calc(100% + .75rem);
  padding: .25rem .7rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: .9375rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(.4rem);
  transition: opacity .2s, transform .2s;
}
.trailnav a:hover span, .trailnav a:focus-visible span { opacity: 1; transform: none; }

/* Hero */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  padding-block: 5.5rem 2.5rem;
  overflow: hidden;
  background: var(--aqua);
}
.hero__rings i {
  position: absolute;
  border: 2px solid var(--white);
  border-radius: 50%;
  opacity: .75;
}
.hero__rings i { right: -8vw; top: -10vw; width: 34vw; aspect-ratio: 1; }

.hero__grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
}
.hello {
  display: block;
  margin-bottom: .15em;
  font-size: .6em;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
  margin-bottom: -.08em;
  font-variation-settings: "opsz" 96; /* same letter widths at every size, so it fits on one line */
}
.line > span { display: block; }
/* "foot care", in blue with a highlighter stroke */
.highlight {
  display: inline-block;
  color: var(--blue);
  background: linear-gradient(var(--peach), var(--peach)) 0 86% / 100% .2em no-repeat;
}
.hero__sub {
  max-width: 28em;
  margin-top: .9rem;
  font-size: 1.15em;
  line-height: 1.4;
}

.hero__offer {
  width: fit-content;
  margin: 1rem 0 0;
  padding: .3rem .9rem;
  border-radius: 1rem;
  background: var(--peach);
  font-weight: 600;
}

/* Clare's car, driving to your house */
.route {
  --car: 4.5rem;
  --house: 3.5rem;
  position: relative;
  height: calc(var(--house) + .5rem);
  margin-top: 1.5rem;
  container-type: inline-size;
}
.route__road {
  position: absolute;
  inset: auto 0 .3rem;
  border-top: 3px dashed var(--blue);
}
.route__house {
  position: absolute;
  right: 0;
  bottom: .45rem;
  width: var(--house);
  aspect-ratio: 60 / 52;
  fill: var(--blue);
}
.route__car {
  position: absolute;
  left: 0;
  bottom: .4rem;
  width: var(--car);
  aspect-ratio: 72 / 38;
  overflow: visible;
  transform: translateX(calc(100cqi - var(--car) - var(--house) - .5rem)); /* parked, just short of the house */
}
.puffs { opacity: 0; } /* exhaust puffs, only shown while driving */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

/* Clare, inside her own logo */
.foot {
  position: relative;
  justify-self: center;
  width: min(62vw, 15rem);
  aspect-ratio: .68;
  margin: 0;
}
.foot__shadow, .foot__photo {
  position: absolute;
  left: 14.286%;
  top: 20.935%;
  width: 70.357%;
  height: 78.131%;
  clip-path: url(#sole-clip);
}
.foot__shadow {
  background: var(--blue);
  transform: translate(-5%, 2%);
}
.foot__photo { object-fit: cover; object-position: 50% 20%; }
.foot__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.foot__sole {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3px;
  vector-effect: non-scaling-stroke;
}
.toe {
  fill: rgb(255 255 255 / .3);
  stroke: var(--blue);
  stroke-width: 3.5px;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill .2s, transform .35s var(--spring);
}
.toe:hover { fill: var(--peach); transform: translateY(-6%) rotate(-8deg) scale(1.08); }

.badge {
  position: absolute;
  left: -9%;
  bottom: 15%;
  display: grid;
  place-items: center;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--peach);
  fill: var(--navy);
}
.badge > svg { grid-area: 1 / 1; }
.badge__spin { width: 100%; height: 100%; }
.badge__spin text { font: 700 19px var(--body); letter-spacing: .04em; }
.badge__mark { width: 34%; height: 34%; }

/* Ticker */
.ticker {
  overflow: hidden;
  padding-block: .7rem;
  background: var(--navy);
  color: var(--white);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  font: 700 clamp(1.25rem, 1rem + 1vw, 1.625rem)/1.1 var(--display);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.ticker i {
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: var(--cyan);
}
.ticker i:nth-of-type(3n+2) { width: .3em; height: .3em; }
.ticker i:nth-of-type(3n) { width: .8em; height: .8em; background: var(--peach); }

/* About */
.about { padding-block: clamp(3.5rem, 5.5vw, 5rem); overflow: hidden; }
.about__grid { display: grid; gap: 2.5rem; align-items: center; }
.about__media {
  position: relative;
  width: min(82%, 30rem);
  justify-self: center;
}
.about__oval {
  overflow: hidden;
  aspect-ratio: .8;
  border-radius: 50%;
  transform: rotate(5deg);
}
.about__oval img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(-5deg) scale(1.12);
}
.about__ring {
  position: absolute;
  right: -16%;
  top: -2%;
  width: 42%;
  aspect-ratio: .8;
  border: 3px solid var(--cyan);
  border-radius: 50%;
  transform: rotate(14deg);
}
.about__text p { max-width: 40em; }
.hours {
  padding: 1rem clamp(1.125rem, 1.8vw, 1.5rem);
  border-radius: var(--radius);
  background: var(--aqua-soft);
}
.hours h3 { margin-bottom: .35rem; }
.hours ul { display: grid; gap: .15rem; }
.hours li {
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.35;
}
.hours li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--blue);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.chips li {
  padding: .3rem .85rem;
  font-size: .9375rem;
  border-radius: 999px;
  background: var(--aqua);
  font-weight: 600;
}
.chips li:nth-child(even) { background: var(--navy); color: var(--white); }
.chips li:nth-child(1) { transform: rotate(-2deg); }
.chips li:nth-child(2) { transform: rotate(1.5deg); }
.chips li:nth-child(3) { transform: rotate(1deg); }
.chips li:nth-child(4) { transform: rotate(-1.5deg); }

/* Prices */
.prices {
  padding-block: clamp(3.5rem, 5.5vw, 5rem);
  background: var(--aqua-soft);
}
.offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  margin-bottom: .875rem;
  padding: 1rem clamp(1.125rem, 1.8vw, 1.5rem);
  border-radius: var(--radius);
  background: var(--peach);
}
.offer strong {
  font: 800 clamp(1.375rem, 1.1rem + 1vw, 1.75rem)/1.15 var(--display);
  letter-spacing: -.01em;
}
.offer a { font-weight: 600; white-space: nowrap; }
.bento {
  display: grid;
  gap: .875rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 8.5rem;
  padding: clamp(1.125rem, 1.8vw, 1.5rem);
  overflow: hidden;
  border-radius: var(--radius);
  container-type: inline-size;
}
.card p { margin: 0; }
.card > * { position: relative; }
.card::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  top: -2.5rem;
  width: 8rem;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: .16;
  transition: transform .5s var(--ease);
}
.card:hover::after { transform: scale(1.6); }
.card__price {
  font: 800 clamp(2rem, 14cqi, 2.75rem)/1 var(--display);
  letter-spacing: -.015em;
}
.card .card__note { margin-top: .35rem; font-size: .9375rem; line-height: 1.35; }
.prices__advice { margin: 1rem 0 0; }
.card--aqua { background: var(--aqua); }
.card--white { background: var(--white); }
.card--blue { background: var(--blue); color: var(--white); }
.card--cyan { background: var(--cyan); }
.card--time { background: var(--navy); color: var(--white); }
.card__big {
  font: 800 clamp(2.5rem, 18cqi, 3.5rem)/.98 var(--display);
  letter-spacing: -.02em;
}

/* Testimonials */
.testimonials { padding-block: clamp(3.5rem, 5.5vw, 5rem); }
.quotes { display: grid; gap: 1.5rem; }
.quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  border-radius: var(--radius);
  background: var(--aqua-soft);
}
.quote::before {
  content: "\201C";
  height: 2.75rem;
  color: var(--blue);
  font: 800 4.5rem/1 var(--display);
}
.quote blockquote { flex: 1; margin: 0; }
.quote blockquote p { margin-bottom: 1rem; font-size: 1.15em; line-height: 1.45; }
.quote figcaption { font-weight: 700; }

/* Before and after photos */
.stories {
  padding-block: clamp(3.5rem, 5.5vw, 5rem);
  background: var(--aqua-soft);
}
.stories h2 { margin-bottom: .2em; }
.stories__hint { margin-bottom: 1.25rem; }
.stories__grid { display: grid; gap: 1.5rem; }
.story {
  overflow: hidden;
  border-radius: var(--radius);
}

/* Drag to compare: the before photo sits on top, clipped at the slider */
.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare::before { /* the dividing line */
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 var(--pos);
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  pointer-events: none;
}
.compare::after { /* the handle */
  content: "\2194";
  position: absolute;
  z-index: 1;
  left: var(--pos);
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 10px rgb(22 38 74 / .3);
  color: var(--navy);
  font-size: 1.25rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.compare__tag {
  position: absolute;
  z-index: 1;
  left: .625rem;
  top: .625rem;
  padding: .15rem .65rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: .875rem;
  font-weight: 600;
  pointer-events: none;
}
.compare__tag--after { left: auto; right: .625rem; background: var(--white); color: var(--navy); }
.compare input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: -3px; }

/* Customers sending in their own review */
.share { margin-top: 1.5rem; }
.share summary {
  width: fit-content;
  min-height: 3.125rem;
  padding: .7rem 1.5rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.share summary:hover, .share[open] summary { background: var(--navy); color: var(--white); }
.share .form {
  max-width: 44rem;
  margin-top: 1rem;
  background: var(--aqua-soft);
}
.share .field input, .share .field textarea { background: var(--white); }
.consent {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  margin-bottom: 1rem;
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: .15rem 0 0;
  accent-color: var(--blue);
}
.share__photos { margin: 1rem 0 0; font-size: 1rem; }

@media (min-width: 52rem) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stories__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Visits */
.visit {
  padding-block: clamp(3.5rem, 5.5vw, 5rem);
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.visit .kicker { color: var(--cyan); }
.visit h2 { margin-bottom: .5em; }
.walk {
  display: flex;
  justify-content: space-between;
  padding-inline: 2vw;
  margin-block: .5rem 1.75rem;
  fill: var(--cyan);
}
.walk svg {
  width: clamp(1.75rem, 3.5vw, 2.75rem);
  height: clamp(1.75rem, 3.5vw, 2.75rem);
  transform: translateY(40%) rotate(90deg);
}
.walk svg:nth-child(even) { transform: translateY(-40%) rotate(90deg) scaleX(-1); }
.steps {
  display: grid;
  gap: 1.75rem;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: .75rem;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--navy);
  font: 800 1.1875rem/1 var(--display);
}
.steps h3 { margin-bottom: .35rem; font-size: 1.35em; }
.steps p { max-width: 24em; margin: 0; color: var(--aqua); }

/* Contact */
.contact {
  padding-block: clamp(3.5rem, 5.5vw, 5rem);
  background: var(--cyan);
}
.contact > .wrap { container-type: inline-size; }
.contact__phone {
  display: block;
  margin-bottom: 1.75rem;
  font: 800 15.5cqi/1 var(--display); /* sized so the number spans the full width on phones */
  font-variation-settings: "opsz" 96; /* same letter shapes at every size, so it always fits */
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.contact__phone:hover { color: var(--blue); }
.contact__grid { display: grid; gap: 2rem; }
.contact h2 {
  margin-bottom: .4em;
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
}
address { font-style: normal; font-weight: 500; overflow-wrap: anywhere; }

.form {
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  border-radius: var(--radius);
  background: var(--white);
}
.form__row { display: grid; gap: 0 1rem; }
.field { margin-bottom: .75rem; }
.field label {
  display: block;
  margin-bottom: .3rem;
  font-weight: 600;
}
.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 2.875rem;
  padding: .5rem .875rem;
  border: 2px solid transparent;
  border-radius: .875rem;
  background: var(--aqua-soft);
  box-shadow: inset 0 0 0 1px var(--ink-soft);
  color: var(--navy);
  font: inherit;
  transition: background-color .2s, border-color .2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.field textarea { resize: vertical; }
.form .pill { width: 100%; }

/* Off-screen rather than display:none, so bots still fill it in */
.trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__status {
  margin: 1rem 0 0;
  padding: .75rem 1rem;
  border-radius: .875rem;
  background: var(--aqua);
}
.form__status[data-kind="problem"] { background: var(--peach); }
.form__status a { font-weight: 600; }

/* Footer */
.footer {
  padding-block: 2rem;
  background: var(--navy);
  color: var(--aqua);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}
.footer__top img { width: 4.5rem; }
.footer__top p { margin: 0; }
.footer__word {
  flex-basis: 100%;
  order: 1;
  font: 800 13.4vw/1 var(--display); /* spans the full width on phones */
  font-variation-settings: "opsz" 96;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.footer__details { font-size: 1rem; }

/* Wider layouts */
@media (min-width: 40.01rem) {
  .only-narrow { display: none; }
  .only-wide { display: inline; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--time, .card--wide { grid-column: span 2; }
}

@media (min-width: 52rem) {
  .nav__links { display: flex; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 2; }
  .card--time { grid-column: span 2; grid-row: span 2; }
  .card--wide { grid-column: span 4; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  /* Photo with appointments beneath it, Clare's text beside them */
  .about__grid {
    grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr);
    grid-template-rows: auto 1fr;
    gap: 1.5rem 3.5rem;
    align-items: start;
  }
  .about__media { width: min(92%, 19rem); }
  .about__copy { grid-column: 2; grid-row: 1 / span 2; }
  .hours { grid-column: 1; grid-row: 2; }
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem; align-items: center; }
  .contact__phone { font-size: 6.4cqi; }
  /* Footer becomes one line: logo, name, details */
  .footer__top .footer__word { flex-basis: auto; order: 0; margin-right: auto; font-size: 2.5rem; }
  .footer__details { text-align: right; }
}

/* Hero: copy beside the photo at anything bigger than a phone */
@media (min-width: 40.01rem) {
  h1 { font-size: min(calc((100cqi - 2.5rem) * .6 / 7.4), 5.5rem); } /* one line, within the copy column */
  .hero__grid {
    /* The foot's width, shared with the road so they always line up */
    --foot-w: min(calc((100cqi - 2.5rem) * .4), calc((100svh - 9.5rem) * .68), 21rem);
    container-type: inline-size;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
    gap: 2.5rem;
  }
  .foot {
    width: var(--foot-w);
    margin-bottom: .3rem; /* the heel stands on the same line as the road */
    justify-self: end;
  }
  .badge { left: -16%; bottom: 22%; }
  /* Text starts at the top of the column; the road stays down at the heel */
  .hero__copy {
    display: flex;
    flex-direction: column;
    align-self: stretch;
  }
  .hero__copy h1 { margin-top: 1rem; }
  .hero__copy .hero__sub { margin-bottom: 0; }
  .hero__actions { margin-bottom: 1.5rem; }
  /* The road runs out of the copy column and stops just short of the heel */
  .route {
    flex: none;
    width: calc(100cqi - var(--foot-w) * .76);
    margin-top: auto;
  }
}

@media (min-width: 52rem) {
  .route { --car: 5.75rem; --house: 4.25rem; }
}

@media (min-width: 80rem) {
  .about__text { columns: 2; column-gap: 1.75rem; }
  .about__text p { break-inside: avoid; }
}

@media (min-width: 72rem) {
  .wrap { width: min(100% - 9rem, 72rem); } /* leaves room for the dots */
  .trailnav { display: flex; }
}

@media (max-width: 40rem) {
  .hero__actions .pill { width: 100%; }
  .hero__actions .pill--ghost { display: none; } /* keeps Clare's face on the first screen */
  .hero__grid { gap: 1.75rem; }
  .hero__grid { gap: 1.25rem; }
}

/* The smallest phones: drop the icon so the name and call button still fit */
@media (max-width: 22rem) {
  .nav { gap: .5rem; }
  .nav__brand svg { display: none; }
}

/* Motion, only for people who are happy to have it */
@media (prefers-reduced-motion: no-preference) {
  /* Set once the page has loaded, so a refresh lands straight on your place
     instead of gliding there. Menu links still glide. */
  html.loaded { scroll-behavior: smooth; }

  .line > span { animation: rise .9s var(--ease) both; }
  .highlight { animation: marker .7s .9s var(--ease) both; }
  .hello, .hero__sub, .route, .hero__actions, .kicker { animation: fade .8s .3s var(--ease) both; }

  /* The car sets off, the road draws behind it, and the house gives a little bounce as it parks */
  .route__car { animation: drive 3s .7s cubic-bezier(.45, 0, .2, 1) both; }
  .route__road { animation: road 3s .7s cubic-bezier(.45, 0, .2, 1) both; }
  .wheel { transform-box: fill-box; transform-origin: center; animation: wheel .5s .7s linear 6; animation-fill-mode: both; }
  .puffs { transform-box: fill-box; transform-origin: right center; animation: puff .55s .7s linear 5; }
  .route__house { transform-origin: 50% 100%; animation: arrive .6s 3.5s var(--spring) both; }

  .foot__photo, .foot__shadow, .foot__sole { animation: grow .9s .1s var(--ease) both; transform-origin: 50% 100%; }
  .foot__shadow { animation-name: grow-shadow; }
  .toe { animation: pop .6s calc(.65s + var(--i) * .11s) var(--spring) both; }
  .badge { animation: pop .7s 1.2s var(--spring) both; }
  .badge__spin { animation: spin 24s linear infinite; }

  .hero__rings i { animation: drift 19s ease-in-out infinite alternate-reverse; }

  .ticker__track { animation: ticker 38s linear infinite; }

  .js .reveal {
    opacity: 0;
    transform: translateY(1.75rem);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .bento .card:nth-child(3n+2) { transition-delay: .08s; }
  .bento .card:nth-child(3n) { transition-delay: .16s; }
  .steps li:nth-child(2) { transition-delay: .12s; }
  .steps li:nth-child(3) { transition-delay: .24s; }

  /* Footprints walking across the page */
  .js .walk svg { opacity: 0; transition: opacity .35s calc(var(--i) * .16s); }
  .js .walk.is-in svg { opacity: 1; }
}

@keyframes drive { from { transform: translateX(0); } }
@keyframes puff { from { opacity: .9; transform: none; } to { opacity: 0; transform: translate(-10px, -3px) scale(1.5); } }
@keyframes road { from { clip-path: inset(-2px 100% -2px 0); } to { clip-path: inset(-2px 0 -2px 0); } }
@keyframes wheel { to { transform: rotate(360deg); } }
@keyframes arrive { 50% { transform: scale(1.14); } }
@keyframes marker { from { background-size: 0 .2em; } }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; transform: translateY(.75rem); } }
@keyframes grow { from { opacity: 0; transform: translateY(6%) scale(.94); } }
@keyframes grow-shadow { from { opacity: 0; transform: translate(0, 6%) scale(.94); } }
@keyframes pop { from { opacity: 0; transform: scale(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate(2.5vw, -2vw) scale(1.06); } }
@keyframes ticker { to { transform: translateX(calc(-50% - .75rem)); } }
