/*
  base.css: design tokens and shared building blocks for the whole page.
  Every section stylesheet builds on these; nothing here belongs to one section.

  Brand: Paradise Yards & Design has no website, so these tokens were defined
  for this demo from the business's own photos and its real yard sign:
  seashell white (their seashell path), paver sand, the near-black of their
  night lighting photo, and the orange-red of the "Paradise Yard" sign they put
  out on jobs. That sign color is the one accent, used for the call buttons.
  Tone: calm, crafted, private ("secluded from everything" is their own phrase).
  Not loud, not corporate, not cheap.
  Type: Newsreader (an editorial serif with optical sizes) for headings, their
  words and quotes; Figtree (a plain, friendly sans) for body text and buttons.
  Shape: the arch is the one motif (a garden gate). Buttons are pills that echo
  it; everything else is square. No shadows: surfaces are separated by color.
  Motion: the owner of this demo asked for a wow effect, so several sections
  move on scroll (GSAP). Each one is fully readable without it: motion only
  starts when <html> has the "motion-ready" class (src/scripts/base.js).
*/

:root {
  /* Colors */
  --shell: #f1f0eb;          /* page background: the seashell path */
  --sand: #e5dccf;           /* alternate light sections: paver sand */
  --ink: #161b19;            /* text on light (15:1 on shell) */
  --ink-soft: #4a514d;       /* secondary text on light (7.2:1 shell, 6.0:1 sand) */
  --night: #0f1412;          /* dark sections: the night yard photo */
  --on-night: #ece8df;       /* text on night (15:1) */
  --on-night-soft: #b9bcb4;  /* secondary text on night (9.7:1) */
  --sign: #b9401f;           /* the accent: their yard sign. White text on it is 5.5:1 */
  --sign-bright: #ef7a4f;    /* the same accent on night backgrounds (6.7:1) */
  --line: rgba(22, 27, 25, 0.18);        /* hairlines on light */
  --line-night: rgba(236, 232, 223, 0.2); /* hairlines on night */

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-sm: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.03rem + 0.45vw, 1.375rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --fs-h2: clamp(2.25rem, 1.45rem + 3.4vw, 5rem);
  --fs-display: clamp(2.75rem, 1.55rem + 6vw, 8rem);

  /* Spacing scale (4 to 128) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --pill: 999px;             /* buttons; the arch frames compute their own radius */
  --container: 1280px;
  --gutter: var(--s4);

  /* Easing used by CSS transitions, matched to GSAP's "power3.out" */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Focus ring; dark sections switch it to --sign-bright so it stays visible. */
  --focus: var(--sign);
}

@media (min-width: 640px) { :root { --gutter: var(--s5); } }
@media (min-width: 1024px) { :root { --gutter: var(--s7); --fs-body: 1.125rem; } }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--shell);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }

/* Lenis smooth scrolling (rules from the Lenis package). Lenis does the
   smoothing itself, so the browser's own smooth scrolling is switched off. */
html.lenis, html.lenis body { height: auto; scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Header links jump to sections; leave a little air above each one. */
[id] { scroll-margin-top: var(--s5); }

h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.01em; }
em { font-style: italic; }
p { text-wrap: pretty; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Screen-reader-only text */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons: 52px tall for thumbs, pill-shaped to echo the arch.
   .btn-sign is the one action on this site: calling. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  min-height: 52px;
  padding: var(--s3) var(--s6);
  border: 1.5px solid transparent;
  border-radius: var(--pill);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sign { background: var(--sign); color: #fff; }
.btn-sign:hover { background: var(--ink); }

/* Five-star row shown next to the real Google rating */
.stars { display: inline-flex; gap: 2px; color: var(--sign); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }

/* Visitors who ask for reduced motion: CSS transitions (link underlines, the
   floating call button) become instant. GSAP motion is skipped in base.js. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip link: the first thing a keyboard user reaches */
.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 300;
  padding: var(--s3) var(--s4);
  background: var(--shell);
  color: var(--ink);
  border-radius: var(--pill);
  font-weight: 600;
}
.skip-link:focus { top: var(--s3); }

/* HomeSampleNotice: the "sample website" strip above the header. */
.sample-notice {
  --focus: var(--sign-bright);
  background: var(--night);
  color: var(--on-night);
  font-size: var(--fs-sm);
  line-height: 1.4;
  text-align: center;
}
.sample-notice p { padding-block: var(--s2); }
.sample-notice a { font-weight: 650; text-decoration-color: var(--sign-bright); }

/*
  HomeHeader: wordmark, section links (tablet and up) and the call button.
  Not sticky: see the note in HomeHeader.html.
*/
.site-header { background: var(--shell); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s2);
  padding-block: var(--s2);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1;
}
.wordmark__and {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
}

/* Narrow phones (320px): "& Design" goes under the name so the call button fits. */
@media (max-width: 399.98px) {
  .wordmark { flex-direction: column; align-items: flex-start; gap: 2px; }
}

.site-nav { display: none; }

.site-header__call { min-height: 44px; padding-inline: var(--s4); }
.site-header__number { display: none; }

@media (min-width: 900px) {
  .site-header__inner { min-height: 88px; }
  .wordmark__name { font-size: 1.75rem; }
  .site-nav { display: block; margin-left: auto; }
  .site-nav ul { display: flex; gap: var(--s6); list-style: none; padding: 0; }
  .site-nav a {
    display: inline-block;
    padding-block: var(--s3);
    font-weight: 550;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat;
    transition: background-size 0.3s var(--ease-out);
  }
  .site-nav a:hover { background-size: 100% 1.5px; }
  .site-header__call { margin-left: var(--s5); padding-inline: var(--s5); }
  .site-header__number { display: inline; }
}

/*
  HomeHero: centered headline block, then the arch-shaped "gate" photo.
  The gate box is always full width; clip-path cuts the arch out of it, so the
  same element can later widen to the full screen without any layout change.
  --gw is the arch width: the page width minus gutters on phones, a tall
  narrow window on wider screens.
*/
.hero { background: var(--shell); }

.hero__text {
  display: grid;
  justify-items: center;
  gap: var(--s4);
  padding-block: var(--s4) var(--s6);
  text-align: center;
}

.hero__kicker {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
}

.hero__title {
  max-width: 13ch;
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.hero__title em {
  color: var(--sign); /* 4.8:1 on shell; the headline is large text */
  font-weight: 350;
}
/* SplitText wraps each word in a clipping mask; widen the italic word's mask
   (without moving anything) so the slanted last letter is not cut off. */
.hero__title em > div { padding-right: 0.08em; margin-right: -0.08em; }

.hero__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s2);
}
.hero__proof {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--fs-sm);
}
.hero__proof strong { font-weight: 700; }

.hero__note {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  .hero__row { flex-direction: row; gap: var(--s5); }
}

@media (min-width: 1024px) {
  .hero__text { gap: var(--s5); padding-block: var(--s5) var(--s7); }
  .hero__kicker { font-size: 1rem; }
  .hero__proof, .hero__note { font-size: 1rem; }
}

/* The gate */
.hero__gate {
  --gw: calc(100vw - 2 * var(--gutter));
  position: relative;
  height: 84vh;
  height: 84svh;
  min-height: 440px;
  overflow: hidden; /* clip-path only hides visually; this stops the zoomed photo from widening the page */
  background: var(--night);
  clip-path: inset(0 calc((100% - var(--gw)) / 2) 0 calc((100% - var(--gw)) / 2)
             round calc(var(--gw) / 2) calc(var(--gw) / 2) 0 0);
}

@media (min-width: 768px) {
  .hero__gate {
    --gw: clamp(320px, 38vw, 600px);
    height: 100vh;
    height: 100svh;
    min-height: 560px;
  }
}

.hero__media,
.hero__media picture,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media img { object-fit: cover; object-position: 50% 55%; }

/* Fades the photo's lawn into the night-colored section below and keeps the caption readable. */
.hero__gate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 18, 0) 55%, rgba(15, 20, 18, 0.72) 88%, var(--night) 100%);
  pointer-events: none;
}

.hero__dusk { display: none; }
.hero__measure {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--gw);
  height: 0;
  visibility: hidden;
}

.hero__caption {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: var(--s5);
  width: min(calc(var(--gw) - 2 * var(--s5)), 44ch);
  transform: translateX(-50%);
  color: var(--on-night);
  font-size: var(--fs-sm);
  line-height: 1.4;
  text-align: center;
}

/* Before HomeHero.js starts: hide what the opening reveals (head.js sets .motion
   before the first paint; it is removed after 3 seconds if the scripts never run). */
.motion .hero__kicker,
.motion .hero__title,
.motion .hero__row,
.motion .hero__note { opacity: 0; }
.motion .hero__gate { clip-path: inset(0 50% 0 50%); }
.motion .hero__dusk {
  display: block;
  position: absolute;
  inset: 0;
  background: var(--night);
  opacity: 0.9;
}

/*
  HomeWords: night section. A large serif quote, then the services as a short
  typographic list with hairlines (no icon cards).
*/
.words {
  --focus: var(--sign-bright);
  background: var(--night);
  color: var(--on-night);
  padding-block: var(--s8) var(--s9);
}

.words__inner { display: grid; gap: var(--s7); }

.words__label {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--on-night-soft);
}

.words__figure { display: grid; gap: var(--s5); }

.words__quote p {
  max-width: 24ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.35rem + 3vw, 4.25rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.words__quote em { color: var(--sign-bright); font-weight: 400; }

.words__source {
  font-size: var(--fs-sm);
  color: var(--on-night-soft);
}

.words__offer {
  display: grid;
  gap: var(--s4);
  padding-top: var(--s6);
  border-top: 1px solid var(--line-night);
}
.words__offer-title {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--on-night-soft);
}

.words__list li {
  --draw: 1; /* 0 to 1: how much of the dividing line shows; HomeWords.js animates it */
  position: relative;
  padding-block: var(--s4);
  font-family: var(--serif);
  font-size: var(--fs-h3);
  line-height: 1.2;
}
/* The dividing line is its own layer so HomeWords.js can draw it from the left. */
.words__list li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line-night);
  transform-origin: left center;
  transform: scaleX(var(--draw));
}

.words__estimate { padding-top: var(--s3); color: var(--on-night-soft); }
.words__estimate a {
  color: var(--on-night);
  font-weight: 650;
  text-decoration-color: var(--sign-bright);
}

@media (min-width: 900px) {
  .words { padding-block: var(--s9) var(--s10); }
  /* Two columns: small labels on the left, the words themselves on the right. */
  .words__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: var(--s7);
    row-gap: var(--s8);
  }
  .words__label { padding-top: var(--s4); }
  .words__offer {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: var(--s7);
    align-items: start;
  }
  .words__offer-title { padding-top: var(--s4); }
  .words__list, .words__estimate { grid-column: 2; }
}

/*
  HomeWork: the project photo spread.
  Phones: one column; plates B and E are narrower and sit on alternate
  sides so the column does not read as a plain stack.
  Tablets: a 6-column grid. Desktops: a 12-column grid with plates of
  different widths and offsets, like a garden-book spread.
*/
.work { padding-block: var(--s9) var(--s10); }

.work__head {
  display: grid;
  gap: var(--s4);
  max-width: 44rem;
  margin-bottom: var(--s8);
}
.work__head p { color: var(--ink-soft); font-size: var(--fs-lead); max-width: 38rem; }

.work__spread {
  display: grid;
  gap: var(--s8);
}

.plate { display: grid; gap: var(--s3); align-content: start; }

.plate__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand); /* shows while a lazy photo loads */
}
.plate--e .plate__frame { aspect-ratio: 3 / 4; }
.plate--f .plate__frame { aspect-ratio: 1 / 1; }
/* Arch frames: a large radius on the top corners only; the browser scales it
   down to half the width, which gives a true semicircle at any size. */
.plate--arch .plate__frame { border-radius: 999px 999px 0 0; }

.plate__reveal { height: 100%; }
.plate__reveal img { width: 100%; height: 100%; object-fit: cover; }

.plate__caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.plate__no {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--sign); /* 4.8:1 on shell */
}
.plate__text q {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.3;
}
.plate__by { display: block; margin-top: var(--s1); color: var(--ink-soft); }
.plate__date {
  color: var(--ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Phones: two narrower plates on alternate sides */
.plate--b, .plate--e { width: 84%; }
.plate--b { justify-self: end; }

@media (min-width: 768px) {
  .work__spread {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: var(--s6);
    row-gap: var(--s8);
  }
  .plate--b, .plate--e { width: auto; }
  .plate--a { grid-column: 1 / -1; }
  .plate--b { grid-column: 1 / 4; justify-self: stretch; }
  .plate--c { grid-column: 4 / 7; align-self: end; }
  .plate--d { grid-column: 2 / 7; }
  .plate--e { grid-column: 1 / 4; }
  .plate--f { grid-column: 4 / 7; align-self: center; }
}

@media (min-width: 1024px) {
  .work__head { margin-bottom: var(--s9); }
  .work__spread {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--s6);
    row-gap: var(--s9);
  }
  .plate--a { grid-column: 1 / 9; }
  /* Drops a little into the next row; plate D starts lower, so they never touch. */
  .plate--b { grid-column: 9 / 13; align-self: end; margin-bottom: calc(-1 * var(--s8)); }
  .plate--c { grid-column: 2 / 7; align-self: start; }
  .plate--d { grid-column: 7 / 13; margin-top: var(--s10); }
  .plate--e { grid-column: 1 / 5; }
  .plate--f { grid-column: 6 / 11; align-self: center; }
}

/*
  HomePath: sand-colored section. Phones: heading, photo, numbers, quote.
  Desktops: photo on the left, heading, numbers and quote on the right.
  The SVG line shares the photo's 3:4 box and "slice" scaling, so it stays on
  the edging at every size, and both sit in .path__media so they move together.
*/
.path {
  background: var(--sand);
  padding-block: var(--s9);
}

.path__grid { display: grid; gap: var(--s6); }

.path__head { display: grid; gap: var(--s3); }
.path__head p { color: var(--ink-soft); font-size: var(--fs-lead); }

.path__photo { display: grid; gap: var(--s3); }
.path__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--shell);
}
.path__media { position: absolute; inset: 0; }
.path__media img { width: 100%; height: 100%; object-fit: cover; }
.path__trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--sign-bright);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 1000;   /* with pathLength="1000": one dash as long as the whole line */
  stroke-dashoffset: 0;     /* HomePath.js animates this from 1000 (hidden) to 0 (drawn) */
}
.path__credit { font-size: var(--fs-sm); color: var(--ink-soft); }

.path__text { display: grid; gap: var(--s6); }

.path__figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
}
.path__figure {
  display: flex;
  flex-direction: column-reverse; /* the number reads first visually; the term stays first in the markup */
  justify-content: flex-end;      /* in column-reverse this packs to the top, so both numbers line up */
  gap: var(--s2);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}
.path__figure dt { font-size: var(--fs-sm); color: var(--ink-soft); max-width: 16ch; }
.path__figure dd {
  font-family: var(--serif);
  font-size: clamp(4rem, 2.4rem + 8vw, 9.5rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums tabular-nums;
}

.path__quote { display: grid; gap: var(--s3); }
.path__quote p {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-style: italic;
  line-height: 1.3;
}
.path__quote figcaption { font-size: var(--fs-sm); color: var(--ink-soft); }

@media (min-width: 900px) {
  .path { padding-block: var(--s10); }
  .path__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas: "photo head" "photo text";
    grid-template-rows: auto 1fr;
    column-gap: var(--s8);
    row-gap: var(--s7);
  }
  .path__head { grid-area: head; align-self: end; }
  .path__photo { grid-area: photo; }
  .path__text { grid-area: text; align-content: start; }
}

/*
  HomeReviews: night section. Desktops: the score sits in a sticky left column
  while the three quotes pass on the right; the topic bars run full width
  below. Phones: score, quotes, then topics, stacked.
  The score and quotes share their own wrapper (.reviews__main) on purpose:
  a sticky element stays stuck for the whole height of its parent, and when
  the parent was the full section the score slid down over "What reviewers
  mention". Now it lets go after the last quote.
  Topic bar lengths come from the review counts (is-2 ... is-8 set --n; the
  longest topic has 8 mentions). Classes are used instead of inline styles
  because the site's content security policy blocks style attributes.
*/
.reviews {
  --focus: var(--sign-bright);
  background: var(--night);
  color: var(--on-night);
  padding-block: var(--s9) var(--s10);
}

.reviews__grid { display: grid; gap: var(--s8); }
.reviews__main { display: grid; gap: var(--s8); }

.reviews__score { display: grid; gap: var(--s4); align-content: start; }
.reviews__title {
  max-width: 14ch;
  font-size: var(--fs-h2);
  font-weight: 300;
}
.reviews__count {
  color: var(--sign-bright);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(6rem, 3rem + 14vw, 14rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  font-variant-numeric: lining-nums tabular-nums;
}
.reviews__rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  color: var(--on-night-soft);
}
.reviews .stars { color: var(--sign-bright); }
.reviews .stars svg { width: 22px; height: 22px; }
.reviews__link {
  justify-self: start;
  padding-block: var(--s3);
  font-weight: 650;
  text-decoration-color: var(--sign-bright);
}

.reviews__quotes { display: grid; gap: var(--s7); }
.quote {
  display: grid;
  gap: var(--s4);
  padding-top: var(--s5);
  border-top: 1px solid var(--line-night);
}
.quote p {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.15rem + 1vw, 2rem);
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.quote--lead p {
  font-size: clamp(1.625rem, 1.2rem + 1.9vw, 2.75rem);
  line-height: 1.18;
}
.quote figcaption { font-weight: 650; }
.quote figcaption span {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--on-night-soft);
}

.reviews__topics { display: grid; gap: var(--s3); align-content: start; }
.reviews__topics-title { font-size: var(--fs-h3); }
.reviews__topics-note { max-width: 46ch; font-size: var(--fs-sm); color: var(--on-night-soft); }

.topics { display: grid; gap: var(--s3); margin-top: var(--s4); }
.topics__row {
  display: grid;
  grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr) 2ch;
  align-items: center;
  gap: var(--s3);
  font-size: 0.9375rem;
}
.topics__bar { height: 10px; background: var(--line-night); }
.topics__bar span {
  display: block;
  width: calc(var(--n) / 8 * 100%);
  height: 100%;
  background: var(--sign-bright);
  transform-origin: left center;
}
.topics__count { text-align: right; font-variant-numeric: tabular-nums; }

.is-8 { --n: 8; }
.is-6 { --n: 6; }
.is-5 { --n: 5; }
.is-4 { --n: 4; }
.is-3 { --n: 3; }
.is-2 { --n: 2; }

@media (min-width: 1024px) {
  .reviews__grid { row-gap: var(--s10); }
  .reviews__main {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--s9);
  }
  .reviews__score { position: sticky; top: var(--s8); align-self: start; }
  .reviews__quotes { gap: var(--s8); }
  .reviews__topics {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--s9);
  }
  .reviews__topics-title, .reviews__topics-note { grid-column: 1; }
  .topics { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .topics__row { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 2ch; font-size: 1rem; }
}

/*
  HomeContact: light section. The phone number is the biggest thing on it,
  set in the display serif; hours and links sit in a quieter side column.
*/
.contact { padding-block: var(--s9) var(--s10); }

.contact__grid { display: grid; gap: var(--s8); }

.contact__main { display: grid; gap: var(--s4); align-content: start; }

.contact__phone {
  justify-self: start;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 0.9rem + 9vw, 6.5rem); /* fills a 320px phone without spilling over */
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-decoration-color: var(--sign);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
  font-variant-numeric: lining-nums;
}
.contact__phone:hover { color: var(--sign); text-decoration-thickness: 3px; }

.contact__status { font-weight: 650; }
.contact__status span { font-weight: 400; color: var(--ink-soft); }

.contact__email { color: var(--ink-soft); overflow-wrap: anywhere; }
.contact__email a { color: var(--ink); }

.contact__side { display: grid; gap: var(--s6); align-content: start; }
.contact__block { display: grid; gap: var(--s3); padding-top: var(--s4); border-top: 1px solid var(--line); }
.contact__block h3 {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.hours { display: grid; gap: var(--s2); }
.hours__row {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s2) var(--s3);
  margin-inline: calc(-1 * var(--s3));
}
.hours__row dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Today's row, marked by HomeContact.js */
.hours__row.is-today { background: var(--sand); font-weight: 650; }

.contact__small { font-size: var(--fs-sm); color: var(--ink-soft); }

.contact__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.contact__links a { display: inline-block; padding-block: 10px; } /* 46px tall tap target */

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: var(--s9);
  }
}

/*
  HomeFooter: night band. Extra space at the bottom on phones so the floating
  call button (HomeCallBar) never covers the sample notice.
*/
.site-footer {
  --focus: var(--sign-bright);
  background: var(--night);
  color: var(--on-night);
  padding-block: var(--s8) calc(var(--s9) + env(safe-area-inset-bottom, 0px));
}

.site-footer__grid { display: grid; gap: var(--s7); }

.site-footer__brand { display: grid; gap: var(--s3); align-content: start; color: var(--on-night-soft); }
.site-footer__mark {
  color: var(--on-night);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.site-footer__mark span {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.site-footer__links { display: grid; gap: 0; justify-items: start; }
.site-footer__links a {
  display: inline-block;
  padding-block: 10px; /* 46px tall tap target */
  text-decoration-color: var(--sign-bright);
  overflow-wrap: anywhere;
}

.site-footer__fine {
  display: grid;
  gap: var(--s3);
  padding-top: var(--s5);
  border-top: 1px solid var(--line-night);
  font-size: var(--fs-sm);
  color: var(--on-night-soft);
}
.site-footer__sample { color: var(--on-night); }
.site-footer__sample a { font-weight: 650; text-decoration-color: var(--sign-bright); }

@media (min-width: 900px) {
  .site-footer { padding-bottom: var(--s8); }
  .site-footer__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: var(--s9); }
  .site-footer__fine { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--s7); }
}

/*
  HomeCallBar: fixed to the bottom of the screen. Full width (inside the
  gutters) on phones, a pill in the bottom-right corner from 768px up.
  Hidden with visibility as well as opacity so it cannot take keyboard focus
  while it is out of sight.
*/
.callbar {
  position: fixed;
  z-index: 100;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--s4) + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(140%);
  transition: transform 0.45s var(--ease-out), opacity 0.3s ease, visibility 0s linear 0.45s;
}
.callbar.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: transform 0.45s var(--ease-out), opacity 0.3s ease, visibility 0s;
}

.callbar__btn {
  width: 100%;
  pointer-events: auto;
  border-color: rgba(255, 255, 255, 0.3); /* thin light edge keeps it distinct over the dark photo and sections */
}
.callbar__btn:hover { background: var(--ink); }
.callbar__long { display: none; }

@media (min-width: 768px) {
  .callbar { left: auto; right: var(--gutter); bottom: var(--s5); }
  .callbar__btn { width: auto; }
  .callbar__short { display: none; }
  .callbar__long { display: inline; }
}
