/* =========================================================================
   Yoosuf Zaman — Portfolio
   Shared stylesheet: design tokens + component styles (homepage + booking).

   R1 (docs/ux-seo-plan.md) rebuilt this on a token API. Rules:
     - No raw color values outside the token blocks below. Everything downstream
       references a token, so swapping the direction block re-skins the site.
     - Contrast of every (foreground, background) pair in use is verified >= 4.5:1
       (>= 3:1 for borders/underlines). Ratios are noted next to the tokens.
   ========================================================================= */

/* ========================================================================= */
/*  FONTS — self-hosted (R4). Both files are variable fonts: one woff2 each   */
/*  covers the full weight range used on the site, so a single @font-face    */
/*  per family (with a weight range) replaces the four static declarations   */
/*  Google Fonts served. font-optical-sizing:auto (set on headings below)    */
/*  drives Fraunces' opsz axis from the variable file directly.              */
/* ========================================================================= */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/fraunces-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-variable.woff2') format('woff2');
}

/* ========================================================================= */
/*  TOKENS — COLOR DIRECTION                                                 */
/*  Exactly one direction block may be active. Direction A is live; to switch */
/*  to B, comment out block A and uncomment block B. Nothing else changes.    */
/* ========================================================================= */

/* ---- Direction A — "Midnight & Brass" (ACTIVE) ------------------------- */
:root {
  --paper:            #F6F4EF;             /* page background (warm paper) */
  --surface:          #FFFFFF;             /* cards, fields */
  --ink:              #101C33;             /* headings on light  (15.5:1 on paper) */
  --body:             #3D4658;             /* body text on light  (8.6:1 on paper) */
  --muted:            #636B7B;             /* placeholder text    (4.9:1 on paper) */

  --dark:             #0A1F44;             /* hero / services / CTA surfaces */
  --dark-deep:        #071733;             /* footer */
  --dark-elevated:    #11294F;             /* panels sitting on --dark */

  --accent:           #C9A227;             /* gold: CTAs + text on dark only (6.7:1 on --dark) */
  --accent-hover:     #DDB63A;             /* gold hover (8.4:1 on --dark) */
  --accent-ink:       #856713;             /* gold for text on light (4.8:1 on paper) */

  --line:             rgba(16, 28, 51, 0.12);   /* decorative hairlines on light */
  --line-strong:      rgba(16, 28, 51, 0.50);   /* field + ghost-button borders (3.2:1 — WCAG 1.4.11) */
  --line-accent:      rgba(201, 162, 39, 0.25); /* gold hairlines on dark */
  --line-dark:        rgba(246, 244, 239, 0.14);/* hairlines on dark */
  --line-dark-strong: rgba(246, 244, 239, 0.40);/* ghost-button border on dark (3.4:1 — WCAG 1.4.11) */

  --on-dark:          #F6F4EF;                  /* text on dark (14.8:1 on --dark) */
  --on-dark-muted:    rgba(246, 244, 239, 0.76);/* secondary text on dark (9.0:1) */
  --on-dark-faint:    rgba(246, 244, 239, 0.55);/* tertiary text on dark (5.6:1) */

  --header-bg:        rgba(246, 244, 239, 0.90);
  --focus-ring:       rgba(201, 162, 39, 0.28); /* field focus glow */

  --shadow-card:       0 1px 2px rgba(16, 28, 51, 0.05), 0 8px 24px rgba(16, 28, 51, 0.06);
  --shadow-card-hover: 0 2px 4px rgba(16, 28, 51, 0.06), 0 16px 40px rgba(16, 28, 51, 0.11);

  /* Select chevron. The stroke is the one color baked into a data URI, so it
     lives here and is overridden per direction like any other token. */
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23101C33' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* ---- Direction B — "Boardroom Green & Brass" (INACTIVE) ----------------
   To activate: comment out block A above, uncomment this block. It is written
   to be valid as-is — do not add annotations between the declarations.
   Also regenerate assets/og-image.png, the favicons and <meta name="theme-color">
   (they are navy/gold today) — see docs/ux-seo-plan.md §3 and R4.

   Verified ratios:  --ink 16.6:1 / --body 8.7:1 / --muted 4.8:1 / --accent-ink 6.1:1
   (all on --paper) · --accent 6.0:1 on --dark and 4.9:1 on --dark-elevated ·
   --accent-hover 7.2:1 on --dark · --on-dark 11.7:1 on --dark ·
   --line-strong 3.3:1 and --line-dark-strong 3.2:1 (WCAG 1.4.11).
   Note: --accent is brighter than the plan's #C99B4A, which failed on
   --dark-elevated (3.95:1); see docs/ux-seo-plan.md R1 notes.

:root {
  --paper:            #FAF8F3;
  --surface:          #FFFFFF;
  --ink:              #151A18;
  --body:             #3E4A45;
  --muted:            #66706B;

  --dark:             #1B3A2F;
  --dark-deep:        #12291F;
  --dark-elevated:    #24493C;

  --accent:           #D4AF6E;
  --accent-hover:     #E3C084;
  --accent-ink:       #79591A;

  --line:             rgba(21, 26, 24, 0.12);
  --line-strong:      rgba(21, 26, 24, 0.50);
  --line-accent:      rgba(212, 175, 110, 0.25);
  --line-dark:        rgba(250, 248, 243, 0.14);
  --line-dark-strong: rgba(250, 248, 243, 0.40);

  --on-dark:          #FAF8F3;
  --on-dark-muted:    rgba(250, 248, 243, 0.76);
  --on-dark-faint:    rgba(250, 248, 243, 0.55);

  --header-bg:        rgba(250, 248, 243, 0.90);
  --focus-ring:       rgba(212, 175, 110, 0.28);

  --shadow-card:       0 1px 2px rgba(21, 26, 24, 0.05), 0 8px 24px rgba(21, 26, 24, 0.06);
  --shadow-card-hover: 0 2px 4px rgba(21, 26, 24, 0.06), 0 16px 40px rgba(21, 26, 24, 0.11);

  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23151A18' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
------------------------------------------------------------------------- */

/* ========================================================================= */
/*  TOKENS — TYPE, SPACE, LAYOUT, MOTION (direction-independent)             */
/* ========================================================================= */
:root {
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Type scale */
  --text-display:  clamp(44px, 6.5vw, 84px);  /* hero h1 */
  --text-title:    clamp(32px, 4vw, 52px);    /* section h2 */
  --text-title-s:  clamp(24px, 3vw, 32px);    /* sub-heads, card h3 */
  --text-lead:     19px;
  --text-body:     16.5px;
  --text-small:    14.5px;
  --text-micro:    11px;

  --lh-display:    1.05;
  --lh-title:      1.15;
  --lh-body:       1.7;
  --tracking-tight: -0.015em;
  --tracking-caps:  0.14em;

  /* Space — 4pt scale */
  --space-2xs:  8px;
  --space-xs:  12px;
  --space-s:   16px;
  --space-m:   24px;
  --space-l:   40px;
  --space-xl:  64px;
  --space-2xl: 128px;

  /* Layout */
  --maxw:        1200px;
  --maxw-narrow: 760px;
  --gutter:      32px;
  --nav-h:       76px;

  /* Section rhythm multiplier — mobile scales the whole vertical drum at once
     rather than each section re-declaring its own padding. */
  --rhythm: 1;

  /* Contextual tokens. Re-pointed on dark surfaces further down, so links,
     focus rings and hairlines follow their background without extra selectors. */
  --focus:      var(--accent-ink);
  --link:       var(--ink);
  --link-hover: var(--accent-ink);

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:     cubic-bezier(0.64, 0, 0.78, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Dark surfaces re-point the contextual tokens for everything inside them. */
.hero,
.section--dark,
.cta-banner,
.site-footer {
  --focus:      var(--accent);
  --link:       var(--on-dark);
  --link-hover: var(--accent);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

img { display: block; max-width: 100%; }

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
a:hover { color: var(--link-hover); }

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

/* Skip link: visually hidden until focused, lets keyboard users bypass the nav */
.skip-link {
  position: absolute;
  top: -48px;
  left: var(--space-s);
  z-index: 100;
  background: var(--dark);
  color: var(--on-dark);
  padding: var(--space-xs) var(--space-m);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: var(--text-small);
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip-link:hover { color: var(--on-dark); }
.skip-link:focus-visible {
  top: var(--space-s);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------- Utilities */
/* Constrains width only; horizontal padding comes from the padded parent
   section (matches the export, avoids doubled gutters). */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.container--narrow { max-width: var(--maxw-narrow); }

/* ----------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--ink);
}

/* Ghost button, light surfaces (404 page). */
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}

/* Ghost button, dark surfaces (hero). */
.btn-ghost--dark {
  border-color: var(--line-dark-strong);
  color: var(--on-dark);
}
.btn-ghost--dark:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========================================================================= */
/*  NAV                                                                       */
/* ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand__tag {
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-ink);
  white-space: nowrap;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-l);
}

/* Shared underline mechanic for both the anchor links and the action link. */
.nav__link,
.nav__action {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;             /* tap target */
  font-size: var(--text-small);
  white-space: nowrap;
  transition: color 0.2s var(--ease-out);
}
.nav__link::after,
.nav__action::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 14px;
  width: 100%;
  height: 2px;
  background: var(--accent-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav__link {
  font-weight: 500;
  color: var(--body);
}
.nav__link:hover,
.nav__link.is-active { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__action {
  font-weight: 600;
  color: var(--accent-ink);
}
.nav__action:hover { color: var(--accent-ink); }
.nav__action:hover::after { transform: scaleX(1); }

/* Slim nav (booking / 404): wordmark only, narrower content width */
.nav--narrow {
  max-width: var(--maxw-narrow);
  justify-content: flex-start;
}
/* 404-only affordance, pushed to the far side of the slim nav. */
.nav__back {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--body);
}
.nav__back:hover { color: var(--ink); }

/* ========================================================================= */
/*  HERO                                                                      */
/* ========================================================================= */
.hero {
  background: var(--dark);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(128px * var(--rhythm)) var(--gutter) calc(96px * var(--rhythm));
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}
/* Left-biased on the 12-col grid: the headline column runs 8 of 12, so the
   hero reads as a considered column of text instead of a full-bleed banner. */
.hero__content {
  grid-column: 1 / span 8;
}
.hero__content::before {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  background: var(--accent);
  margin-bottom: var(--space-m);
}
.hero__title {
  font-size: var(--text-display);
  line-height: var(--lh-display);
  color: var(--on-dark);
  margin: 0 0 var(--space-m);
  max-width: 15.5em;
}
.hero__sub {
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--on-dark-muted);
  max-width: 560px;
  margin: 0 0 var(--space-l);
}
.hero__actions {
  display: flex;
  gap: var(--space-s);
  flex-wrap: wrap;
}

/* ========================================================================= */
/*  SECTION SCAFFOLD                                                          */
/*  Per-section rhythm: each section sets its own --sec-t / --sec-b, and       */
/*  --rhythm scales the whole drum down on small screens.                      */
/* ========================================================================= */
.section {
  --sec-t: 104px;
  --sec-b: 104px;
  padding: calc(var(--sec-t) * var(--rhythm)) var(--gutter) calc(var(--sec-b) * var(--rhythm));
}
.section--light { background: var(--paper); }
.section--dark  { background: var(--dark); }

#work    { --sec-t: 112px; --sec-b: 128px; }
#services{ --sec-t: 96px;  --sec-b: 96px; }
#about   { --sec-t: 128px; --sec-b: 128px; }

section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.section__head {
  margin-bottom: var(--space-l);
  max-width: 720px;
}
.section__title {
  font-size: var(--text-title);
  line-height: var(--lh-title);
  color: var(--ink);
  margin: 0 0 var(--space-xs);
}
.section__lead {
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--body);
  max-width: 560px;
}

/* Two-column head: title left, standfirst right, baselines aligned. Stacks
   below 900px (see RESPONSIVE). */
.section__head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: var(--space-xl);
  max-width: none;
  margin-bottom: var(--space-xl);
}
.section__standfirst {
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--body);
  max-width: 46ch;
}

/* ========================================================================= */
/*  HERO PROOF STRIP                                                          */
/*  Six real marks under the hero CTAs. Each sits on its own uniform light    */
/*  chip rather than straight on the navy: DESIGN_BRIEF §3 requires it, and   */
/*  the alternative (monochrome marks on dark) collapses the two logos built  */
/*  from knocked-out white detail into featureless blobs.                     */
/* ========================================================================= */
.proof {
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line-dark);
}
.proof__label {
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin: 0 0 var(--space-s);
}
.proof__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  list-style: none;
  margin: 0;
  padding: 0;
}
.proof__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 4px;
  padding: 6px 12px;
}
.proof__chip img { width: 88px; height: auto; }

/* ========================================================================= */
/*  FEATURED WORK                                                             */
/*  tools/normalize_logos.py exports every mark onto one shared 640x320       */
/*  canvas, matched for optical weight. That buys the single img rule below:   */
/*  no per-logo classes, and a new business needs no CSS at all.              */
/* ========================================================================= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-m);
}
.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.work-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.work-card__logo {
  min-height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-m) var(--space-l);
  border-bottom: 1px solid var(--line);
}
.work-card__logo img { width: 240px; height: auto; }
.work-card__body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.work-card__title {
  font-size: 21px;
  line-height: var(--lh-title);
  color: var(--ink);
  margin: 0 0 var(--space-2xs);
}
.work-card__sector {
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--space-xs);
}
.work-card__blurb {
  font-size: var(--text-small);
  line-height: var(--lh-body);
  color: var(--body);
  margin: 0;
  flex: 1;
}

/* Lead card: the first entry runs the full grid width with the mark beside the
   copy, so the section opens on one business instead of six equal tiles. */
.work-card--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  margin-bottom: var(--space-s);
}
.work-card--lead .work-card__logo {
  padding: var(--space-l);
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.work-card--lead .work-card__logo img { width: 288px; }
.work-card--lead .work-card__body {
  justify-content: center;
  padding: var(--space-l);
}
.work-card--lead .work-card__title { font-size: var(--text-title-s); }
.work-card--lead .work-card__blurb {
  font-size: var(--text-body);
  max-width: 54ch;
  flex: none;
}

/* Status and link rows are optional per card: both are content the client still
   owes (docs/ux-seo-plan.md §6). A status ships once a business's state is
   confirmed, a link only where there's a live site to point at. */
.work-card__status {
  margin-top: var(--space-s);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-ink);
}
.work-card__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  /* Padded out to a 44px tap target, then pulled back in so the label still
     lines up with the copy above it. */
  margin: var(--space-2xs) 0 -11px -12px;
  padding: 11px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-ink);
}
.work-card__link:hover { color: var(--accent-ink); }
.work-card__arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease-out);
}
.work-card__link:hover .work-card__arrow { transform: translateX(4px); }

/* Reserved for a venture that hasn't launched: no mark exists yet, so the tile
   carries a monogram and the card reads as deliberately unfinished instead of
   as a card with a broken image. */
.work-card--soon {
  background: var(--paper);
  border-style: dashed;
  box-shadow: none;
}
.work-card--soon:hover {
  box-shadow: none;
  transform: none;
}
.work-card--soon .work-card__logo { border-bottom-style: dashed; }
.work-card__monogram {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
}

/* ========================================================================= */
/*  SERVICES                                                                  */
/* ========================================================================= */
.services-head {
  margin-bottom: var(--space-l);
}
.services-head .section__title { color: var(--on-dark); margin: 0; }

.pillar-list {
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-m);
}
.pillar {
  background: var(--dark-elevated);
  border: 1px solid var(--line-accent);
  border-radius: 4px;
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.pillar__num {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 44px);
  font-style: normal;
  font-variant-numeric: lining-nums;
  color: var(--accent);
  line-height: 1;
}
.pillar__title {
  font-size: 22px;
  line-height: var(--lh-title);
  color: var(--on-dark);
  margin: 0;
}
.pillar__desc {
  font-size: var(--text-small);
  line-height: var(--lh-body);
  color: var(--on-dark-muted);
  margin: 0;
}
.services-note {
  margin-top: var(--space-l);
  font-size: var(--text-small);
  color: var(--on-dark-muted);
  max-width: 560px;
}

/* ========================================================================= */
/*  ABOUT                                                                     */
/* ========================================================================= */
.about {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: start;
}
/* Interim headshot slot: a designed monogram plate rather than a missing
   image. Same container/aspect as the eventual photo, so a real <img> drops
   into .about__photo with no layout change. */
.about__photo {
  aspect-ratio: 4 / 5;
  background: var(--dark);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__photo::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
}
.about__monogram {
  position: relative;
  font-family: var(--serif);
  font-size: 88px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.about__title {
  font-size: var(--text-title-s);
  line-height: var(--lh-title);
  color: var(--ink);
  margin: 0 0 var(--space-s);
}
.about__copy {
  font-size: var(--text-body);
  line-height: 1.75;
  color: var(--body);
  margin: 0 0 var(--space-s);
}
.about__copy:last-child { margin-bottom: 0; }

/* ========================================================================= */
/*  CTA BANNER                                                                */
/* ========================================================================= */
.cta-banner {
  background: var(--dark);
  padding: calc(96px * var(--rhythm)) var(--gutter);
}
.cta-banner__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.cta-banner__title {
  font-size: var(--text-title);
  line-height: var(--lh-title);
  color: var(--on-dark);
  margin: 0 0 var(--space-m);
}
.cta-banner__note {
  margin-top: var(--space-s);
  font-size: var(--text-small);
  color: var(--on-dark-muted);
}

/* ========================================================================= */
/*  BOOKING PAGE                                                             */
/* ========================================================================= */
.booking {
  padding: calc(88px * var(--rhythm)) var(--gutter) calc(112px * var(--rhythm));
}
.booking__title {
  font-size: var(--text-title);
  line-height: var(--lh-title);
  color: var(--ink);
  margin: 0 0 var(--space-s);
}
.booking__lead {
  font-size: 18px;
  line-height: var(--lh-body);
  color: var(--body);
  max-width: 540px;
  margin: 0 0 var(--space-l);
}

.steps {
  list-style: none;
  margin: 0 0 var(--space-l);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.steps li {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  font-size: var(--text-small);
  color: var(--body);
}
.steps__num {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--accent-ink);
  min-width: 1.4em;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
/* [hidden] alone loses to .booking-form{display:flex} on specificity, since
   both are single-selector rules and ours comes later in the cascade. */
.booking-form[hidden] { display: none; }

.form-alert {
  padding: var(--space-s) var(--space-m);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: var(--text-small);
  color: var(--ink);
  background: var(--paper);
}

.booking-success {
  padding: var(--space-l);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.booking-success__title {
  font-size: var(--text-title-s);
  line-height: var(--lh-title);
  color: var(--ink);
  margin: 0 0 var(--space-2xs);
}
.booking-success__copy {
  color: var(--body);
  margin: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.field__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input,
.field select { min-height: 48px; }
.field textarea {
  line-height: 1.6;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.booking-form__submit {
  align-self: flex-start;
  margin-top: 6px;
}

.booking-note {
  margin-top: var(--space-l);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.booking-note p {
  margin: 0;
  font-size: 15px;
  color: var(--body);
}

/* ========================================================================= */
/*  FOOTER                                                                    */
/* ========================================================================= */
.site-footer {
  background: var(--dark-deep);
  padding: var(--space-xl) var(--gutter) var(--space-l);
}
.site-footer--slim { padding: var(--space-l) var(--gutter); }
.site-footer--slim .site-footer__copy { padding-top: 0; }
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-dark);
}
.site-footer__brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--on-dark);
  margin-bottom: var(--space-2xs);
}
.site-footer__tagline {
  font-size: var(--text-small);
  color: var(--on-dark-faint);
  max-width: 320px;
  line-height: 1.6;
}
.site-footer__note {
  font-size: var(--text-small);
  color: var(--on-dark-faint);
  max-width: 320px;
  line-height: 1.6;
  margin-top: var(--space-2xs);
}
.site-footer__links {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  flex-wrap: wrap;
}
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-small);
  color: var(--on-dark-muted);
}
.site-footer__copy {
  padding-top: var(--space-m);
  font-size: 13px;
  color: var(--on-dark-faint);
}

.site-footer__slim-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-m);
  flex-wrap: wrap;
}

/* ========================================================================= */
/*  MOTION — scroll-reveal + smooth scroll (skipped under reduced motion)    */
/*  The hiding rule is scoped to .js (set by an inline <head> script), so if  */
/*  main.js never loads nothing is left invisible. See ux-seo-plan R1.6.      */
/* ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @keyframes ripIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .js .rip { opacity: 0; }
  .js .rip.in { animation: ripIn 0.7s var(--ease-out) forwards; }

  /* Stagger: position within its parent sets the reveal delay */
  .js .rip:nth-child(1) { animation-delay: 0ms; }
  .js .rip:nth-child(2) { animation-delay: 90ms; }
  .js .rip:nth-child(3) { animation-delay: 180ms; }
  .js .rip:nth-child(4) { animation-delay: 270ms; }
}

/* ========================================================================= */
/*  RESPONSIVE                                                                */
/* ========================================================================= */

/* The work grid is 3-up here; the two-column section head and the side-by-side
   lead card run out of room before it does. */
@media (max-width: 900px) {
  .hero__content { grid-column: 1 / -1; }

  .section__head--split {
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--space-s);
    margin-bottom: var(--space-l);
  }
  .work-card--lead { grid-template-columns: 1fr; }
  .work-card--lead .work-card__logo {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .work-card--lead .work-card__body { padding: 26px 28px 28px; }

  .about { grid-template-columns: 1fr; }
}

/* Nav collapses ahead of the general mobile breakpoint: the full brand +
   tag + links + action doesn't fit between ~641-768px and overlaps. */
@media (max-width: 780px) {
  .brand__tag { display: none; }
  .nav__link  { display: none; }
  .nav__links { gap: var(--space-m); }
  .brand__name { font-size: 20px; }
}

@media (max-width: 640px) {
  :root {
    --rhythm: 0.65;
    --gutter: 24px;
    --nav-h: 64px;
  }

  .about { gap: var(--space-l); }

  /* Three chips per row, so the six marks read as two tidy rows. */
  .proof { margin-top: var(--space-l); }
  .proof__chip { padding: 5px 10px; }
  .proof__chip img { width: 72px; }

  .work-card__logo { min-height: 132px; }
  .work-card__logo img,
  .work-card--lead .work-card__logo img { width: 216px; }

  .pillar-list { grid-template-columns: 1fr; }
  .pillar { padding: var(--space-m); }
}

@media (max-width: 380px) {
  :root { --gutter: 20px; }
  .brand__name { font-size: 19px; }
}
