/* ==========================================================================
   David Calamari, magician. davidcalamari.com
   --------------------------------------------------------------------------
   One page whose only job is a booking enquiry for a private party.
   Black page, white type, no third colour: the palette is sampled from the
   client's own black wordmark and the black and white photographs, inverted
   so the dark club photos sit in the page instead of on it. Copy hangs off a
   left margin and the second column starts late; the intro, the clients and
   the two flourishes are centred.

   Four type roles, and nothing outside them:

   role           face                 where
   -------------  -------------------  -------------------------------------
   brand display  Cormorant Garamond   the name (matches the wordmark's face)
   heading        Cormorant Garamond   statements, reviews, the closing h2
   control caps   Jost, tracked caps   buttons, section labels, attributions
   body           Jost                 running copy, form fields

   Jost is a Futura-cut geometric: the deco caps sit with the theatre of it,
   and it is not the Inter every generated site ships with.

   The "accent" is solid white. It is spent on the primary button.
   ========================================================================== */

/* Fonts ---------------------------------------------------------------------
   Self-hosted latin subsets; never fonts.googleapis.com (render-blocking on a
   third origin). To refresh, open this URL in a browser and take the `src`
   under each "latin" comment:
   https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300..700&family=Jost:wght@400..600&display=swap */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens ------------------------------------------------------------------ */
:root {
  color-scheme: dark;              /* one committed theme */
  --bg: #0b0b0b;
  --bg-raised: #151515;
  --bg-field: #1e1e1e;             /* form fields: a clear step up from the page */
  --fg: #f5f5f5;
  --fg-dim: rgba(245, 245, 245, 0.76);   /* dimmed text is rgba of fg, never a separate grey */
  --fg-mute: rgba(245, 245, 245, 0.58);
  --accent: #ffffff;               /* the primary button, and only that */
  --ink: #0b0b0b;                  /* type on accent */
  --rule: rgba(245, 245, 245, 0.14);
  --rule-strong: rgba(245, 245, 245, 0.42);  /* lines that must hold over a photo, and field underlines */

  --font-brand: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-ui: "Jost", "Futura", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-hero: clamp(4rem, 17vw, 8.5rem);
  --step-h2: clamp(2.5rem, 6vw, 4.5rem);
  --step-statement: clamp(1.75rem, 3.4vw, 2.875rem);
  --step-body: clamp(1rem, 1.15vw, 1.0625rem);
  --step-caps: 1rem;               /* the floor: nothing on the site is set under 16px */

  --wrap: 80rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 12vw, 9rem);
  --header-h: 5.25rem;
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* clip, not hidden: hidden turns body into a scroll container and breaks sticky. */
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-body)/1.65 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Primitives -------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999rem; top: 0.5rem; z-index: 10; padding: 0.75rem 1rem; background: var(--accent); color: var(--ink); }
.skip:focus { left: 0.5rem; }

.caps {
  font: 500 var(--step-caps)/1.2 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* Section labels: an h2 in the control-caps role, quiet on purpose. */
.label { color: var(--fg-mute); }

/* Square corners: the wordmark is a sharp old-style serif, and a pill would
   be the only round thing on the page. 44px minimum tap height. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.5rem;
  border: 1px solid var(--fg);
  background: none; color: var(--fg); cursor: pointer;
  font: 500 var(--step-caps)/1 var(--font-ui);
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--primary:hover { background: transparent; color: var(--fg); }
.btn--ghost { border-color: var(--rule-strong); }
.btn--ghost:hover { border-color: var(--fg); }

.link { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 0.3em; transition: text-decoration-color 0.2s; }
.link:hover { text-decoration-color: currentColor; }

/* Header -------------------------------------------------------------------
   Laid over the top of the hero photograph, clear, and it scrolls away with
   the page: not sticky, by request. Nothing to script. */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 5; height: var(--header-h); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand img { width: 3.75rem; height: 3.75rem; }
.site-header .btn { min-height: 2.75rem; padding-inline: 1.125rem; }
/* Pages with no hero start below the bar. */
body:not([data-page="home"]) main { padding-top: var(--header-h); }

/* Hero ---------------------------------------------------------------------
   The show photograph, full bleed, running up behind the clear header. David
   stands at its right edge and the room laughs across the middle, so the copy
   takes the dark lower left (the backs of heads) and never covers a face.
   Phone: a square crop pinned right keeps David and the front row; the copy
   sits under it, pulled up into the fade so the button is on the first screen. */
.hero { position: relative; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 1 / 1; max-height: 64svh;
  object-fit: cover; object-position: 100% 50%;
}
/* Up from the page black, and down from the top so the header holds. On a
   phone the square crop puts bright lights behind the monogram, so the top
   left corner gets its own shade. */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0 0, rgba(11, 11, 11, 0.8), rgba(11, 11, 11, 0) 10rem),
    linear-gradient(to top, var(--bg), rgba(11, 11, 11, 0) 38%),
    linear-gradient(to bottom, rgba(11, 11, 11, 0.72), rgba(11, 11, 11, 0) 8rem);
}
.hero__copy {
  position: relative; z-index: 1;
  margin-top: -3.5rem;
  padding: 0 var(--gutter) clamp(2.5rem, 7vw, 3.5rem);
}
/* Sized off the viewport so the one line never wraps on a phone. */
.hero__eyebrow { color: var(--fg-dim); margin-bottom: 1.25rem; font-size: clamp(1rem, 4.2vw, 1.25rem); }
.hero h1 {
  font: 600 var(--step-hero)/0.84 var(--font-brand);
  letter-spacing: -0.02em;
  /* Optical: the D's stem sits inside its sidebearing at this size. */
  margin-left: -0.04em;
}
.hero h1 span { display: block; }
.hero__lead { max-width: 30ch; margin-top: 1.5rem; color: var(--fg-dim); font-size: 1.0625rem; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.hero__tel { display: inline-flex; align-items: center; min-height: 2.75rem; font-variant-numeric: tabular-nums; }

@media (min-width: 54rem) {
  .hero {
    display: grid;
    min-height: min(100svh, 60rem);
  }
  .hero__media, .hero__copy { grid-area: 1 / 1; }
  .hero__media img {
    position: absolute; inset: 0; height: 100%;
    aspect-ratio: auto; max-height: none;
    object-position: 50% 40%;
  }
  /* A third fade in from the left, under the copy. Gone before mid-room. */
  .hero__media::after {
    background:
      linear-gradient(to top, var(--bg), rgba(11, 11, 11, 0) 42%),
      linear-gradient(to bottom, rgba(11, 11, 11, 0.72), rgba(11, 11, 11, 0) 9rem),
      linear-gradient(to right, rgba(11, 11, 11, 0.82), rgba(11, 11, 11, 0) 52%);
  }
  .hero__copy {
    align-self: end;
    margin-top: 0;
    /* Left edge lines up with .wrap on wide screens. */
    padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(3rem, 6vh, 4.5rem) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  }
  /* Wide enough for the line to break once, balanced into two even lines. */
  .hero__lead { font-size: 1.125rem; max-width: 30rem; text-wrap: balance; }
}

/* Dividers -----------------------------------------------------------------
   A drawn flourish (assets/img/flourish.svg, our own) at the two places the
   page changes gear: out of the hero, and into the booking form. */
.divider { justify-self: center; width: 11rem; height: auto; opacity: 0.7; }

/* Backdrops ----------------------------------------------------------------
   A walk-around photograph behind a block of text: greyscaled, held well
   down under the page black, and faded out at top and bottom so it reads as
   a room behind the words rather than a picture with words on it.
   --deep holds it further down, for the form. */
.backdrop { position: relative; isolation: isolate; }
.backdrop__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.backdrop::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, var(--bg), rgba(11, 11, 11, 0) 30%, rgba(11, 11, 11, 0) 70%, var(--bg)),
    rgba(11, 11, 11, 0.72);
}
.backdrop--deep::before {
  background:
    linear-gradient(to bottom, var(--bg), rgba(11, 11, 11, 0) 30%, rgba(11, 11, 11, 0) 70%, var(--bg)),
    rgba(11, 11, 11, 0.84);
}
/* On phones the form sits on plain black: the photo behind a long stack of
   fields reads as noise. The image is lazy, so a hidden one is never fetched. */
@media (max-width: 53.99rem) {
  .book .backdrop__img, .book.backdrop::before { display: none; }
}

/* Intro --------------------------------------------------------------------
   The opening line as a statement and the paragraph under it, centred under
   the flourish at every width. */
.intro .wrap { display: grid; gap: 1.75rem; justify-items: center; text-align: center; }
.intro .divider { margin-bottom: clamp(1rem, 3vw, 2rem); }
/* Keep the laughing guest on the left in a phone's narrow crop. */
.intro .backdrop__img { object-position: 18% 40%; }
@media (min-width: 54rem) { .intro .backdrop__img { object-position: 50% 40%; } }
.statement {
  font: 500 var(--step-statement)/1.18 var(--font-brand);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.intro__statement { max-width: 20em; }
.intro__body { max-width: 52ch; color: var(--fg-dim); font-size: 1.0625rem; text-wrap: balance; }
.intro .btn { margin-top: 0.75rem; }

/* Wide enough to set the paragraph in three even lines. */
@media (min-width: 54rem) {
  .intro__body { max-width: 42rem; }
}

/* Photographs --------------------------------------------------------------
   Four frames in two rows that split differently (8/4, then 5/7), so no two
   edges line up down the page. In each row one picture keeps its own shape
   and its neighbour is cropped to that height. Phone: full, two halves, full.
   The masters are colour (sunset, stage blue); greyscaled here to hold the
   black and white page. Delete the filter to get the colour back. */
.photos__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.photos__item { position: relative; }
.photos__item img { width: 100%; height: 100%; object-fit: cover; }
.photos__item--party, .photos__item--volunteer { grid-column: 1 / -1; }
.photos__item--party img, .photos__item--volunteer img { aspect-ratio: 3 / 2; height: auto; }
.photos__item--stage img { aspect-ratio: 3 / 4; height: auto; object-position: 50% 20%; }
/* Stretched to the stage frame's height; the crop keeps her face and the card. */
.photos__item--gasp img { position: absolute; inset: 0; object-position: 12% 50%; }

@media (min-width: 54rem) {
  .photos__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; }
  .photos__item--party { grid-column: 1 / span 8; }
  .photos__item--stage { grid-column: 9 / span 4; }
  .photos__item--stage img { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
  .photos__item--gasp { grid-column: 1 / span 5; }
  .photos__item--volunteer { grid-column: 6 / span 7; }
}

/* Clients ------------------------------------------------------------------
   Nine marks lifted from the old site's "Select Clients" block, redrawn as
   white ink (tools note in the README). Centred under the label: three rows
   of three on a phone, two rows (five, then four) on desktop. Wrapping rows
   with each logo centred in its slot, so the short last row centres too. */
.clients__grid { display: grid; gap: 2.5rem; justify-items: center; }

.clients__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 2.75rem; width: 100%; }
.clients__list li { flex: 0 0 33.333%; display: flex; justify-content: center; padding-inline: 0.75rem; }
/* Width caps the long wordmarks, height caps the stacked ones; the ratio is kept. */
.clients__list img { width: auto; height: auto; max-width: min(100%, 10.5rem); max-height: 2.75rem; opacity: 0.86; }
.clients__list .clients__tall { max-height: 4.75rem; opacity: 1; }

@media (min-width: 54rem) {
  .clients__grid { gap: 3.5rem; }
  .clients__list { max-width: 68rem; row-gap: 4rem; }
  .clients__list li { flex-basis: 20%; padding-inline: 1.25rem; }
  .clients__list img { max-height: 3.25rem; max-width: min(100%, 12rem); }
  .clients__list .clients__tall { max-height: 5.75rem; }
}

/* Reviews ------------------------------------------------------------------
   One review at a time, set over the second show photograph. Every review
   sits in the same grid cell, so the band is as tall as the longest one and
   nothing jumps when they change. Without script only the first shows.
   The master is lit stage-blue; greyscaled here to hold the black and white
   page. Delete the filter to get the colour back. */
.reviews { position: relative; isolation: isolate; }
.reviews__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 78% 42%;
  filter: grayscale(1) contrast(1.08);
}
/* David is on the right of the frame, so the dark comes in from the left and
   up from the bottom. Dense enough that white type clears 4.5:1 on the flare. */
.reviews::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(11, 11, 11, 0.82), rgba(11, 11, 11, 0) 60%),
    linear-gradient(to right, rgba(11, 11, 11, 0.86), rgba(11, 11, 11, 0.48));
}
.reviews__inner {
  display: grid; align-content: end; gap: 2rem;
  min-height: 34rem;
  padding-block: clamp(6rem, 14vw, 9rem) clamp(2.5rem, 6vw, 4rem);
}
.reviews__stage { display: grid; touch-action: pan-y; }   /* sideways drags are ours: swipe */
/* The outgoing review drifts off left as the next drifts in from the right.
   Waiting reviews sit offset to the right, hidden; the script marks the one
   going out .is-leaving. */
.review {
  grid-area: 1 / 1; align-self: end;
  opacity: 0; visibility: hidden; transform: translateX(2rem);
  transition: opacity 0.3s, transform 0.3s ease-in, visibility 0s 0.3s;
}
.review.is-leaving { transform: translateX(-2rem); }
.review.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.45s 0.15s, transform 0.65s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.review blockquote { max-width: 21em; }
/* The opening quote mark hangs in the margin so the text edge stays true. */
.review blockquote p { text-indent: -0.42em; }
.review figcaption { margin-top: 1.25rem; color: var(--fg-dim); font: 500 var(--step-caps)/1.4 var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; }
.reviews__controls { display: flex; align-items: center; gap: 0.25rem; margin-left: -0.75rem; }
.reviews__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0;
  border: 0; background: none; color: var(--fg-dim); cursor: pointer;   /* no box, by request; the 44px target stays */
  transition: color 0.2s;
}
.reviews__btn:hover { color: var(--fg); }
.reviews__btn svg { width: 1.25rem; height: 1.25rem; }
/* Time left on this review: a hairline that fills, then the next one comes. */
.reviews__timer { position: relative; width: 4rem; height: 1px; margin-left: 0.75rem; background: var(--rule-strong); overflow: hidden; }
.reviews__timer::after { content: ""; position: absolute; inset: 0; background: var(--fg); transform: scaleX(0); transform-origin: left; }
.reviews__timer.is-running::after { animation: reviews-dwell 8s linear forwards; }   /* = DWELL in the script */
@keyframes reviews-dwell { to { transform: scaleX(1); } }

@media (min-width: 54rem) {
  .reviews__bg { object-position: 50% 42%; }
  .reviews__inner { min-height: min(84vh, 46rem); }
}

/* About --------------------------------------------------------------------
   The portrait on the left, narrower than the copy and taller than it. */
/* Short at the bottom: the booking section's own photo and flourish are
   the break, so the full section gap read as a hole. */
.about { padding-bottom: clamp(2rem, 5vw, 4rem); }
.about__grid { display: grid; gap: 2.5rem; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; }
.about__copy { display: grid; gap: 1.75rem; align-content: start; }
.about__lead { max-width: 20em; }
.about__body { max-width: 46ch; color: var(--fg-dim); }

@media (min-width: 54rem) {
  .about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; align-items: end; }
  .about__photo { grid-column: 1 / span 5; }
  .about__copy { grid-column: 7 / span 6; padding-bottom: 2rem; }
}

/* Booking ------------------------------------------------------------------
   The one form on the site: a plain POST to Formspark, no script. Fields are
   full boxes on a lighter ground so they read as places to type at a glance;
   the type inside stays 16px so iOS does not zoom. */
.book h2 { font: 500 var(--step-h2)/0.98 var(--font-brand); letter-spacing: -0.015em; max-width: 9em; }
.book { padding-top: clamp(3.5rem, 8vw, 6rem); }
.book__grid { display: grid; gap: 3rem; }
.book__divider { grid-column: 1 / -1; margin-bottom: clamp(0.5rem, 3vw, 2rem); }
.book__head { display: grid; gap: 1.75rem; align-content: start; }
.book__note { max-width: 40ch; color: var(--fg-dim); }
.book__note + .book__note { margin-top: 1rem; }
.book__contact { display: grid; gap: 0.125rem; justify-items: start; }
.book__contact a { display: inline-flex; align-items: center; min-height: 2.75rem; font: 500 1.5rem/1.2 var(--font-brand); overflow-wrap: anywhere; font-variant-numeric: lining-nums; }

.form { display: grid; gap: 1.75rem 2rem; }
.field { display: grid; gap: 0.5rem; }
.field label { color: var(--fg-dim); font-weight: 500; }
.field__opt { color: var(--fg-mute); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.625rem 0.875rem;
  background: var(--bg-field); color: var(--fg);
  border: 1px solid var(--rule-strong); border-radius: 0;
  font: 400 1rem/1.5 var(--font-ui);
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--fg-mute); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-color: var(--fg); background: #262626; }
.form .btn { justify-self: start; margin-top: 0.5rem; }

@media (min-width: 36rem) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--wide, .form .btn { grid-column: 1 / -1; }
}
@media (min-width: 54rem) {
  .book__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
  .book__head { grid-column: 1 / span 5; }
  .book__form { grid-column: 7 / span 6; }
}

/* Thanks page -------------------------------------------------------------- */
.thanks h1 { font: 500 var(--step-h2)/0.98 var(--font-brand); letter-spacing: -0.015em; }
.thanks p { max-width: 40ch; margin-top: 1.5rem; color: var(--fg-dim); }
.thanks .btn { margin-top: 2.5rem; }
.thanks { min-height: 60svh; }

/* Motion -------------------------------------------------------------------
   Two moves. On load the hero comes into focus: a short blur, a fade, a few
   pixels of rise. That is plain CSS, so it runs with script off. The hero
   photograph only pulls focus and never fades: fading the largest picture
   from nothing would hold back the first real paint.
   Further down the page there is no blur (tried, and it read as the page
   failing to load): blocks fade and rise as they enter. The script adds
   .reveal-ready to <html> and only then are [data-reveal] blocks hidden, so
   with script off, or with reduced motion (the script checks), everything is
   simply there. Each section's content is one group and arrives whole, and
   the header and the hero copy start together. */
@keyframes focus-in {
  from { opacity: 0; filter: blur(14px); transform: translateY(0.75rem); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes focus-pull {
  from { filter: blur(16px) brightness(0.6); transform: scale(1.05); }
  to { filter: blur(0) brightness(1); transform: none; }
}
.hero__media { overflow: hidden; }   /* the pull starts scaled up */
.hero__media img { animation: focus-pull 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.site-header .wrap > *, .hero__copy > * { animation: focus-in 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }

.reveal-ready [data-reveal] {
  opacity: 0; transform: translateY(1.5rem);
  transition: opacity 1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* Footer -------------------------------------------------------------------
   Phone: one centred column, mark first, each list under its label, so the
   email gets the full width and never wraps. Desktop: mark and name on the
   left, then three short lists; Follow is a row of brand marks. */
.site-footer { border-top: 1px solid var(--rule); padding-block: clamp(3rem, 7vw, 5rem) 2rem; }
.site-footer__grid { display: grid; gap: 2.5rem; justify-items: center; text-align: center; }
.site-footer__brand { display: grid; gap: 0.5rem; justify-items: center; }
.site-footer__brand img { width: 5rem; height: 5rem; }
.site-footer__name { font: 600 1.75rem/1.1 var(--font-brand); }
.site-footer__brand p + p { color: var(--fg-mute); }
.site-footer__col { display: grid; gap: 0.25rem; align-content: start; justify-items: center; }
.site-footer__col h2 { margin-bottom: 0.5rem; }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--fg-dim); text-decoration: none; overflow-wrap: anywhere; transition: color 0.2s; }
.site-footer__col a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 0.3em; }
/* Social marks: 44px targets, the glyph 20px inside. */
.site-footer__social { display: flex; gap: 0.25rem; }
.site-footer__social a { justify-content: center; min-width: 2.75rem; }
.site-footer__social svg { width: 1.25rem; height: 1.25rem; }
.site-footer__base { margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--fg-mute); text-align: center; }

@media (min-width: 54rem) {
  .site-footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem 2rem; justify-items: stretch; text-align: left; }
  .site-footer__brand { grid-column: 1 / span 5; justify-items: start; }
  .site-footer__brand img { margin-left: -0.375rem; }
  .site-footer__col { justify-items: start; }
  .site-footer__social { margin-left: -0.75rem; }   /* glyph, not target, on the label's edge */
  .site-footer__base { text-align: left; }
  .site-footer__col { grid-column: span 2; }
  .site-footer__col--contact { grid-column: span 3; }
}
