/* bundle-contact.css — GENERATED, do not edit. Sources, in order:
     css/base/fonts.css
     css/base/tokens.css
     css/base/reset.css
     css/base/typography.css
     css/layouts/grid.css
     css/layouts/header.css
     css/layouts/footer.css
     css/components/nav.css
     css/components/button.css
     css/components/card.css
     css/pages/contact.css
     css/components/materialize.css
   Regenerate with the bundler; the ?v= hash in the HTML must be updated too. */

/* ==== css/base/fonts.css ==== */
/* Self-hosted variable fonts — generated from Google Fonts, latin + latin-ext only.
   Replaces the render-blocking fonts.googleapis.com stylesheet.
   One file per (family, style); font-weight declares the variable axis range. */
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400 600;font-display:swap;src:url('/fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400 600;font-display:swap;src:url('/fonts/cormorant-garamond-italic-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:'Cormorant Garamond';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/cormorant-garamond-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/cormorant-garamond-normal-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:'DM Sans';font-style:italic;font-weight:300;font-display:swap;src:url('/fonts/dm-sans-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'DM Sans';font-style:italic;font-weight:300;font-display:swap;src:url('/fonts/dm-sans-italic-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:'DM Sans';font-style:normal;font-weight:300 500;font-display:swap;src:url('/fonts/dm-sans-normal-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:300 500;font-display:swap;src:url('/fonts/dm-sans-normal-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;}

/* ==== css/base/tokens.css ==== */
/* tokens.css — single source of truth for all design tokens */

:root {

  /* ─── COLOR ──────────────────────────────────────────────
     WMWH brand — pure monochrome, gallery-wall philosophy.
     - #050505 near-black (logo fill, brand preview --bg)
     - #F6F5F0 gallery-wall white (reads white-first, warmth on dwell)
     - #F5F5F0 sibling cream for type-on-dark (brand preview reference)
     - Neutral grays from brand preview (#A1A1A1, #6F6F6F)
     No accent hue. All emphasis via inversion contrast.
  ──────────────────────────────────────────────────────── */
  --color-bg:             #FFFFFF;  /* white-first — no cream backgrounds */
  --color-bg-dark:        #050505;
  --color-charcoal:       #1F1F24;  /* nav — lifted off pure black so the bar reads as a distinct object */
  --color-surface:        #FFFFFF;  /* same white as bg — sections separated by border/shadow, not tint */
  --color-surface-dark:   #0B0B0D;
  --color-text-primary:   #050505;
  --color-text-secondary: #6F6F6F;
  --color-text-inverse:   #F5F5F0;
  --color-text-muted:     #A1A1A1;

  /* Primary CTA — brand near-black, inversion-based contrast.
     ONE USE per page applies to weight, not hue (multiple solid-black
     fills dilute "this is THE action"). */
  --color-accent:         #050505;
  --color-accent-hover:   #1F1F1F;

  --color-border:         rgba(5, 5, 5, 0.10);
  --color-border-dark:    rgba(245, 245, 240, 0.10);
  --color-spotlight:      rgba(245, 245, 240, 0.06);

  /* ─── TYPOGRAPHY ─────────────────────────────────────── */
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;

  --size-hero:   clamp(4rem, 9vw, 9rem);
  --size-h1:     clamp(2.5rem, 5vw, 5rem);
  --size-h2:     clamp(1.75rem, 3vw, 3rem);
  --size-h3:     clamp(1.25rem, 2vw, 1.75rem);
  --size-body:   1rem;
  --size-small:  0.875rem;
  --size-eyebrow:0.6875rem;

  --leading-tight: 1.05;
  --leading-body:  1.65;

  --tracking-tight: -0.02em;
  --tracking-wide:   0.12em;

  /* ─── SPACING ────────────────────────────────────────── */
  --space-xs:     0.5rem;
  --space-sm:     1rem;
  --space-md:     1.75rem;   /* tightened from 2rem — less dead air */
  --space-lg:     3rem;      /* tightened from 4rem */
  --space-xl:     5rem;      /* tightened from 8rem — luxury, not empty */
  --space-2xl:    9rem;      /* tightened from 14rem */
  --section-pad:  clamp(3rem, 6vw, 6rem); /* tightened from 5-10rem — sections breathe, not yawn */

  /* ─── LAYOUT ─────────────────────────────────────────── */
  --container-max: 1280px;
  --container-pad: clamp(1.5rem, 5vw, 4rem);

  /* ─── RADIUS ─────────────────────────────────────────── */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-card: 16px;
  --radius-pill: 999px;

  /* ─── SHADOW ─────────────────────────────────────────── */
  --shadow-card: 0 2px 12px rgba(5, 5, 5, 0.06);
  --shadow-nav:  0 4px 24px rgba(5, 5, 5, 0.08);

  /* ─── Z-INDEX ────────────────────────────────────────── */
  --z-base:       0;
  --z-above:      10;
  --z-sticky:     100;
  --z-nav:        900;
  --z-drawer:     950;
  --z-overlay:    940;
  --z-cursor:     9999;
  --z-transition: 9998;

  /* ─── MOTION ─────────────────────────────────────────── */
  /* All tween durations/eases live in animations.js MOTION_SYSTEM.
     These vars are for CSS-only transitions only. */
  --ease-feedback: cubic-bezier(0.37, 0, 0.63, 1);   /* sine.inOut equivalent */
  --ease-entrance: cubic-bezier(0.16, 1, 0.3, 1);    /* power2.out equivalent */
  --ease-morph:    cubic-bezier(0.87, 0, 0.13, 1);   /* power3.inOut equivalent */

  --dur-feedback: 0.18s;
  --dur-entrance: 0.6s;
  --dur-morph:    0.5s;

  /* ─── MATERIALIZATION ────────────────────────────────────
     Apple-style placeholder → content reveal. These are NOT
     skeleton loaders. The metaphor is matte paper under a
     drifting gallery spotlight. See css/components/materialize.css.
  ──────────────────────────────────────────────────────── */
  --ease-spring:     cubic-bezier(0.34, 1.30, 0.64, 1);  /* gentle overshoot, content arriving */
  --ease-settle:     cubic-bezier(0.16, 1, 0.3, 1);      /* alias of --ease-entrance, placeholder leaving */
  --dur-materialize: 320ms;
  --dur-blur-focus:  420ms;
  --dur-layer-gap:    90ms;  /* spacing between materialization layers */
  --dur-mat-min:     180ms;  /* minimum placeholder display window */

}

/* ==== css/base/reset.css ==== */
/* reset.css — modern CSS reset */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100dvh;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Remove list semantics that are purely visual */
ul, ol {
  list-style: none;
}

/* Remove anchor decoration — components style links explicitly */
a {
  color: inherit;
  text-decoration: none;
}

/* Images + media block-level by default */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* Form elements inherit font */
input, button, textarea, select {
  font: inherit;
}

/* Avoid text overflow on long words */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Remove button defaults */
button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* Restore native pointer over interactives while custom cursor is hidden.
   Two classes on <html> outrank the single-class `html.has-custom-cursor a` rule. */
html.has-custom-cursor.cursor-native a,
html.has-custom-cursor.cursor-native button,
html.has-custom-cursor.cursor-native [role="button"],
html.has-custom-cursor.cursor-native input,
html.has-custom-cursor.cursor-native textarea,
html.has-custom-cursor.cursor-native label,
html.has-custom-cursor.cursor-native .btn,
html.has-custom-cursor.cursor-native summary,
html.has-custom-cursor.cursor-native [data-magnetic] {
  cursor: pointer;
}

/* Root stacking context for page transition curtain */
#page-transition-curtain {
  position: fixed;
  inset: 0;
  z-index: var(--z-transition);
  background: var(--color-bg-dark);
  transform: translateY(-100%);
  pointer-events: none;
}

/* ==== css/base/typography.css ==== */
/* typography.css — type scale, utilities. Fonts via Google CDN in HTML <head>. */

/* ─── HEADINGS ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 600;
}

h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }

/* ─── TYPE SCALE UTILITIES ──────────────────────────────── */

.text-hero {
  font-family: var(--font-display);
  font-size: var(--size-hero);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 600;
}

.text-h1 {
  font-family: var(--font-display);
  font-size: var(--size-h1);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 600;
}

.text-h2 {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 600;
}

.text-h3 {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  line-height: var(--leading-tight);
  font-weight: 600;
}

.text-body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  font-weight: 400;
}

.text-small {
  font-family: var(--font-body);
  font-size: var(--size-small);
  line-height: var(--leading-body);
  font-weight: 400;
}

.text-eyebrow {
  font-family: var(--font-body);
  font-size: var(--size-eyebrow);
  line-height: 1;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
}

@media (max-width: 767px) {
  .text-eyebrow {
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
  }
}

/* ─── DISPLAY ITALIC (editorial quotes, hero secondary lines) */
.text-display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ─── COLOR UTILITIES ────────────────────────────────────── */
.text-primary   { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-inverse   { color: var(--color-text-inverse); }
.text-muted     { color: var(--color-text-muted); }

/* ─── ALIGNMENT ──────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* ─── BODY COPY ──────────────────────────────────────────── */
p {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
}

p + p {
  margin-top: var(--space-sm);
}

/* ─── STRONG / EM ────────────────────────────────────────── */
strong {
  font-weight: 600;
  color: var(--color-text-primary);
}

em {
  font-style: italic;
}

/* ==== css/layouts/grid.css ==== */
/* grid.css — container, section rhythm, layout primitives */

/* ─── CONTAINER ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 860px;
}

.container--wide {
  max-width: 1440px;
}

/* ─── SECTION SHELL ─────────────────────────────────────── */
.section {
  padding-block: var(--section-pad);
  position: relative;
}

.section--full {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ─── DARK SECTION VARIANT ───────────────────────────────── */
[data-dark] {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

[data-dark] p {
  color: var(--color-text-muted);
}

[data-dark] .text-eyebrow {
  color: var(--color-text-muted);
}

/* ─── SPOTLIGHT LAYER (cursor effect on dark sections) ───── */
[data-dark] .spotlight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-above);
  background: radial-gradient(
    400px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    var(--color-spotlight),
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--dur-feedback) var(--ease-feedback);
}

/* ─── GRID PRIMITIVES ────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ─── FLEX UTILITIES ─────────────────────────────────────── */
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

/* ─── SECTION DIVIDER ────────────────────────────────────── */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

[data-dark] .section-divider {
  background: var(--color-border-dark);
}

/* ─── SCROLL REVEAL BASE STATES ──────────────────────────── */
/* Set by IntersectionObserver in animations.js — not driven by JS rendering */
[data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity var(--dur-entrance) var(--ease-entrance),
    transform var(--dur-entrance) var(--ease-entrance);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay via CSS custom property set from data-stagger-index in HTML */
[data-stagger-index] {
  transition-delay: calc(var(--i, 0) * 197ms); /* +35% on prior 146ms — restrained cascade */
}

/* ==== css/layouts/header.css ==== */
/* header.css — page header shell (not the nav component) */

/* ─── SITE HEADER WRAPPER ────────────────────────────────── */
/* Used on pages that have a distinct header region below the nav */
.page-header {
  padding-top: calc(var(--section-pad) + 80px); /* clear fixed nav */
  padding-bottom: var(--section-pad);
  position: relative;
  overflow: hidden;
}

.page-header--centered {
  text-align: center;
}

.page-header__eyebrow {
  margin-bottom: var(--space-sm);
}

.page-header__heading {
  margin-bottom: var(--space-sm);
}

.page-header__subhead {
  font-size: var(--size-body);
  color: var(--color-text-secondary);
  max-width: 560px;
}

.page-header--centered .page-header__subhead {
  margin-inline: auto;
}

/* ==== css/layouts/footer.css ==== */
/* footer.css — footer layout and content styles */

/* ─── FOOTER SHELL ───────────────────────────────────────── */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding-block: var(--section-pad);
}

/* ─── FOOTER GRID — 2 COLUMN ─────────────────────────────── */
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* ─── LEFT COL: LOGO + TAGLINE ───────────────────────────── */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.footer__logo-img {
  height: clamp(40px, 5vw, 56px);
  width: auto;
}

.footer__tagline {
  font-family: var(--font-body);
  font-size: var(--size-small);
  color: var(--color-text-muted);
  line-height: var(--leading-body);
  max-width: 280px;
}

/* ─── RIGHT COL: LINKS + LEGAL ───────────────────────────── */
.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-md);
}

.footer__nav {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer__nav-link {
  font-family: var(--font-body);
  font-size: var(--size-small);
  color: var(--color-text-muted);
  transition: color var(--dur-feedback) var(--ease-feedback);
}

.footer__nav-link:hover {
  color: var(--color-text-inverse);
}

/* ─── LEGAL LINE ─────────────────────────────────────────── */
.footer__legal {
  font-family: var(--font-body);
  font-size: var(--size-eyebrow);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* ─── DIVIDER ────────────────────────────────────────────── */
.footer__divider {
  width: 100%;
  height: 1px;
  background: var(--color-border-dark);
  margin-block: var(--space-lg);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__right {
    align-items: flex-start;
  }

  .footer__nav {
    justify-content: flex-start;
  }
}

/* ==== css/components/nav.css ==== */
/* nav.css — floating pill nav, scrolled state, mobile drawer */

/* ─── NAV SHELL ──────────────────────────────────────────────
   The nav morphs progressively against scroll position — driven by a
   ScrollTrigger scrub timeline in animations.js (initNavScroll).
   No CSS transitions on .nav / .nav__pill: GSAP sets live values per frame.

   Rest values defined here are the t=0 of the morph; ScrollTrigger interpolates
   them toward the scrolled values inline. The .scrolled class is unused by JS
   but kept as a fallback for prefers-reduced-motion (instant snap to end state).

   Per user directive: color stays #050505 in both states — shape & position morph only.
*/
.nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-nav);
  width: 100%;
  max-width: none; /* truly full-width at rest — no inner cap */
  /* GSAP writes top/width/left/x as live values; no CSS transition. */
}

/* ─── NAV BAR ────────────────────────────────────────────────
   Padding values are fixed pixels (no clamp) so GSAP can interpolate
   cleanly between rest and scrolled states. */
.nav__pill {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 16px 36px;
  border-radius: 0;
  background: #050505;
  border: 1px solid transparent;
  border-bottom-color: rgba(245, 245, 240, 0.06);
  /* Zero-alpha placeholder shadow so GSAP can interpolate to the
     scrolled-state two-layer shadow without a discrete jump. */
  box-shadow:
    0 20px 44px -18px rgba(5, 5, 5, 0),
    0 6px 16px -8px rgba(5, 5, 5, 0);
}

/* ─── REDUCED-MOTION FALLBACK ─────────────────────────────────
   Users with reduced-motion preference get a binary snap via .scrolled.
   ScrollTrigger is skipped in JS; this rule sets the end state directly. */
@media (prefers-reduced-motion: reduce) {
  .nav.scrolled {
    top: 18px;
    left: 50%;
    width: 85%;
    transform: translateX(-50%);
  }
  .nav.scrolled .nav__pill {
    padding: 12px 22px;
    border-radius: 14px;
    border-color: rgba(245, 245, 240, 0.10);
    box-shadow:
      0 20px 44px -18px rgba(5, 5, 5, 0.55),
      0 6px 16px -8px rgba(5, 5, 5, 0.35);
  }
}

/* ─── LOGO ───────────────────────────────────────────────── */
.nav__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.nav__logo-img {
  display: none;
  height: clamp(28px, 3.2vw, 38px);
  width: auto;
}

/* Desktop nav background is always #050505 → show the light wordmark.
   Mobile swaps below tie the visible variant to .is-scrolled. */
.nav__logo-img--light {
  display: block;
}

/* ─── DESKTOP LINKS ──────────────────────────────────────── */
/* Push links + CTA to the right edge; logo anchors the left. */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto; /* push links + CTA to the right edge; logo anchors left */
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--color-text-inverse);
  position: relative;
  padding-bottom: 2px;
}

/* Underline slide from left on hover */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text-inverse);
  transition: width var(--dur-feedback) var(--ease-feedback);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  width: 100%;
}

/* ─── CTA IN NAV ─────────────────────────────────────────── */
.nav__cta {
  flex-shrink: 0;
}

/* Inverted nav → CTA becomes a cream outline on the charcoal bar.
   Kept transparent (not a solid fill) so the cream cursor stays legible
   while hovering it, and so the bar reads less generic-SaaS. */
.nav__cta .btn-primary {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: var(--color-text-inverse);
}

.nav__cta .btn-primary:hover {
  background: rgba(245, 245, 240, 0.10);
  border-color: var(--color-text-inverse);
}

.nav__cta .btn-primary:focus-visible {
  outline-color: var(--color-text-inverse);
}

/* ─── HAMBURGER BUTTON ───────────────────────────────────── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: calc(var(--z-drawer) + 10);
  position: relative;
  margin-left: auto; /* push to far right of nav__pill */
}

.nav__hamburger-line {
  width: 22px;
  height: 1.5px;
  background: var(--color-text-inverse);
  border-radius: 2px;
  transition:
    transform var(--dur-morph) var(--ease-morph),
    opacity var(--dur-feedback) var(--ease-feedback);
  transform-origin: center;
}

/* Hamburger → X state when drawer open */
.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── MOBILE OVERLAY ─────────────────────────────────────── */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: var(--z-overlay);
  opacity: 0;
  transition: opacity var(--dur-morph) var(--ease-morph);
}

.nav__overlay.is-open {
  opacity: 1;
}

/* ─── MOBILE DRAWER ──────────────────────────────────────── */
.nav__drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 100vw);
  height: 100dvh;
  background: var(--color-bg);
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  transform: translateX(100%);
  transition: transform var(--dur-morph) var(--ease-morph);
}

.nav__drawer.is-open {
  transform: translateX(0);
}

.nav__drawer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: auto;
  padding-top: var(--space-xl);
}

.nav__drawer-link {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--color-text-primary);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color var(--dur-feedback) var(--ease-feedback);
}

.nav__drawer-link:hover {
  color: var(--color-text-secondary);
}

.nav__drawer-cta {
  width: 100%;
  margin-top: var(--space-lg);
}

/* ─── RESPONSIVE: SHOW HAMBURGER, HIDE DESKTOP LINKS ─────── */
@media (max-width: 767px) {
  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__overlay {
    display: block;
    pointer-events: none;
  }

  .nav__overlay.is-open {
    pointer-events: auto;
  }

  /* Mobile nav: full-width, anchored top, no floating pill.
     Transparent at rest, solid charcoal once the user scrolls past threshold.
     JS toggles .is-scrolled (see initNavScroll mobile branch). */
  .nav {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
  }

  .nav__pill {
    padding: 12px 18px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transition:
      background-color 0.25s var(--ease-feedback),
      border-color 0.25s var(--ease-feedback);
  }

  .nav.is-scrolled .nav__pill {
    background: #050505 !important;
    border-bottom-color: rgba(245, 245, 240, 0.06) !important;
  }

  /* Transparent state sits over the white hero — text must read dark.
     Solid (scrolled) state sits on charcoal — text flips to cream. */
  .nav:not(.is-scrolled) .nav__logo {
    color: var(--color-text-primary);
  }

  .nav:not(.is-scrolled) .nav__hamburger-line {
    background: var(--color-text-primary);
  }

  .nav.is-scrolled .nav__logo {
    color: var(--color-text-inverse);
  }

  .nav.is-scrolled .nav__hamburger-line {
    background: var(--color-text-inverse);
  }

  /* Mobile logo swap — transparent state needs dark wordmark over white hero;
     scrolled (charcoal) state flips back to the light wordmark. */
  .nav__logo-img--light { display: none; }
  .nav:not(.is-scrolled) .nav__logo-img--dark { display: block; }
  .nav.is-scrolled .nav__logo-img--light { display: block; }
  .nav.is-scrolled .nav__logo-img--dark { display: none; }
}

/* ─── TABLET: COMPRESS LINKS ─────────────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) {
  .nav__pill {
    gap: var(--space-md);
    padding: 11px 14px 11px 20px;
  }
  .nav__links {
    gap: var(--space-sm);
  }
}

/* ==== css/components/button.css ==== */
/* button.css — .btn-primary and .btn-ghost — all states */

/* ─── BASE ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  /* Hardware-accelerated transform only — no layout properties */
  transition:
    transform var(--dur-feedback) var(--ease-feedback),
    opacity var(--dur-feedback) var(--ease-feedback),
    box-shadow var(--dur-feedback) var(--ease-feedback);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── PRIMARY — brand near-black, ONE USE PER PAGE ────────── */
.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(5, 5, 5, 0.22);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ─── GHOST — outlined, no fill ─────────────────────────── */
.btn-ghost {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-text-primary);
  transform: translateY(-1px);
}

.btn-ghost:active {
  transform: translateY(0);
}

.btn-ghost:focus-visible {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 3px;
}

/* ─── GHOST INVERSE (on dark sections) ───────────────────── */
.btn-ghost-inverse {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: var(--color-border-dark);
}

.btn-ghost-inverse:hover {
  border-color: var(--color-text-inverse);
  transform: translateY(-1px);
}

.btn-ghost-inverse:focus-visible {
  outline: 2px solid var(--color-text-inverse);
  outline-offset: 3px;
}

/* ─── FULL-WIDTH MODIFIER ────────────────────────────────── */
.btn--full {
  width: 100%;
  padding: 18px 28px;
}

/* ─── LARGE MODIFIER ─────────────────────────────────────── */
.btn--lg {
  font-size: var(--size-body);
  padding: 18px 40px;
}

/* ─── MAGNETIC WRAPPER (GSAP target) ─────────────────────── */
/* JS wraps CTA buttons in .btn-magnetic-wrap for cursor pull */
.btn-magnetic-wrap {
  display: inline-block;
  position: relative;
}

/* ==== css/components/card.css ==== */
/* card.css — Double-Bezel card standard */

/* ─── CARD SHELL ─────────────────────────────────────────── */
/* Flex column so .card__inner stretches to the full grid-row height —
   keeps every card (and its bezel frame) uniform regardless of copy length. */
.card {
  position: relative;
  display: flex;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* ─── DOUBLE-BEZEL INNER INSET ───────────────────────────── */
/* Outer border on .card + 8px inner padding creates optical frame */
.card__inner {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(var(--space-md) + 8px);
  position: relative;
  z-index: 1;
}

/* Subtle inset rule — optical inner frame */
.card__inner::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--radius-card) - 6px);
  border: 1px solid var(--color-border);
  pointer-events: none;
  z-index: 0;
}

/* ─── DARK VARIANT ───────────────────────────────────────── */
.card--dark {
  background: var(--color-surface-dark);
  border-color: var(--color-border-dark);
  box-shadow: none;
}

.card--dark .card__inner::before {
  border-color: var(--color-border-dark);
}

/* ─── CARD EYEBROW ───────────────────────────────────────── */
.card__eyebrow {
  font-family: var(--font-body);
  font-size: var(--size-eyebrow);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

/* ─── CARD HEADING ───────────────────────────────────────── */
.card__heading {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.card--dark .card__heading {
  color: var(--color-text-inverse);
}

/* ─── CARD BODY ──────────────────────────────────────────── */
.card__body {
  font-family: var(--font-body);
  font-size: var(--size-small);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
}

.card--dark .card__body {
  color: var(--color-text-muted);
}

/* ─── CARD PRICE ─────────────────────────────────────────── */
.card__price {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-block: var(--space-sm);
}

.card--dark .card__price {
  color: var(--color-text-inverse);
}

/* ─── CARD LIST ──────────────────────────────────────────── */
.card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.card__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--size-small);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
}

.card--dark .card__list-item {
  color: var(--color-text-muted);
}

.card__list-item::before {
  content: '—';
  flex-shrink: 0;
  color: var(--color-text-muted);
  font-size: var(--size-small);
  margin-top: 2px;
}

/* ─── CARD ICON SLOT ─────────────────────────────────────── */
.card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
  flex-shrink: 0;
}

.card--dark .card__icon {
  color: var(--color-text-inverse);
}

/* ─── CARD FOOTER ────────────────────────────────────────── */
.card__footer {
  margin-top: auto; /* pin to bottom — aligns CTAs across uniform-height cards */
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card--dark .card__footer {
  border-top-color: var(--color-border-dark);
}

/* ==== css/pages/contact.css ==== */
/* contact.css — contact.html only.
   One section. Single Double-Bezel card centered in viewport. */

/* ─── CONTACT STAGE ─────────────────────────────────────── */

.contact-stage {
  min-height: 100dvh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-lg), 6vw, var(--space-2xl));
  padding: calc(var(--section-pad) + 100px) var(--space-md) var(--section-pad);
}

/* ─── PAGE HEADER (h1 + subhead, added Phase 3) ─────────── */

.contact-stage__header {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-primary);
}

.contact-stage__logo {
  display: block;
  height: clamp(56px, 7vw, 88px);
  width: auto;
  margin: 0 auto var(--space-md);
}

.contact-stage__eyebrow {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.contact-stage__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-md);
}

.contact-stage__subhead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: var(--leading-relaxed, 1.6);
  color: var(--color-text-secondary);
  max-width: 64ch;
  margin: 0 auto;
}

/* ─── WHAT HAPPENS NEXT (added Phase 3) ─────────────────── */

.contact-stage__next {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  color: var(--color-text-primary);
  text-align: left;
}

.contact-stage__next-heading {
  font-family: var(--font-body);
  font-size: var(--size-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
}

.contact-stage__next-list {
  list-style: decimal;
  padding-left: 1.25em;
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--leading-relaxed, 1.6);
  color: var(--color-text-primary);
}

.contact-stage__next-list li + li {
  margin-top: var(--space-sm);
}

/* ─── CONTACT CARD (Double-Bezel, dark variant) ─────────── */

.contact-card {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.contact-card .card__inner {
  padding-block: clamp(var(--space-lg), 6vw, var(--space-xl));
  padding-inline: clamp(var(--space-md), 6vw, var(--space-2xl));
  align-items: center;
}

.contact-card__eyebrow {
  font-family: var(--font-body);
  font-size: var(--size-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  display: block;
}

.contact-card__email {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 4.5vw, 3.25rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-inverse);
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur-feedback, 0.18s) var(--ease-feedback, ease);
  margin-bottom: var(--space-lg);
}

.contact-card__email:hover,
.contact-card__email:focus-visible {
  background-size: 100% 1px;
}

.contact-card__cta {
  margin-top: var(--space-xs);
}

/* ─── CONTACT FORM SECTION (above footer) ───────────────── */

.contact-form-section {
  background: var(--color-bg);
  padding: var(--section-pad) var(--space-md);
  border-top: 1px solid var(--color-border);
}

.contact-form-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.contact-form-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.contact-form-eyebrow {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.contact-form-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-md);
}

.contact-form-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.0625rem);
  line-height: var(--leading-relaxed, 1.6);
  color: var(--color-text-secondary);
  max-width: 56ch;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-form-row {
  display: flex;
  flex-direction: column;
}

.contact-form-label {
  font-family: var(--font-body);
  font-size: var(--size-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}

.contact-form-req {
  color: var(--color-text-primary);
  font-weight: 600;
}

.contact-form-opt {
  color: var(--color-text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
}

.contact-form-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-primary);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0 12px;
  outline: none;
  transition: border-color var(--dur-feedback) var(--ease-feedback);
}

.contact-form-input::placeholder {
  color: color-mix(in srgb, var(--color-text-primary) 32%, transparent);
}

.contact-form-input:focus {
  border-bottom-color: var(--color-text-primary);
}

.contact-form-input.is-error {
  border-bottom-color: #c83b3b;
}

.contact-form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-text-primary) 50%),
    linear-gradient(135deg, var(--color-text-primary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
  cursor: pointer;
}

.contact-form-textarea {
  resize: vertical;
  min-height: 120px;
  border: 1px solid var(--color-border);
  padding: 12px 14px;
}

.contact-form-textarea:focus {
  border-color: var(--color-text-primary);
  border-bottom-color: var(--color-text-primary);
}

.contact-form-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-sm);
}

/* Restore native cursor inside the form section — the custom cursor
   conflicts with text-input UX (caret hidden, select arrows fight). */
.contact-form-section,
.contact-form-section * {
  cursor: auto !important;
}
.contact-form-section input,
.contact-form-section textarea {
  cursor: text !important;
}
.contact-form-section button,
.contact-form-section select,
.contact-form-section .btn {
  cursor: pointer !important;
}
/* Hide the global custom cursor while the pointer is over the form section. */
html.has-custom-cursor:has(.contact-form-section:hover) #cursor-arrow,
html.has-custom-cursor:has(.contact-form-section:hover) #cursor-diamond {
  display: none !important;
}

.contact-form-actions .btn {
  min-width: 240px;
}

.contact-form-msg {
  font-family: var(--font-body);
  font-size: var(--size-small);
  line-height: var(--leading-relaxed, 1.6);
  color: var(--color-text-primary);
  margin: var(--space-sm) 0 0;
  min-height: 1.5em;
}

.contact-form-msg.is-error {
  color: #c83b3b;
}

.contact-form-msg.is-success {
  color: var(--color-text-primary);
}

/* ─── MOBILE ─────────────────────────────────────────────── */

@media (max-width: 768px) {
  .contact-stage {
    padding-top: calc(var(--section-pad) + 80px);
  }

  .contact-card__email {
    /* Tight enough that khai@wemakeithappenmedia.com stays on a single line
       across every supported mobile width down to ~320px. */
    font-size: clamp(0.85rem, 4.4vw, 1.35rem);
  }

  .contact-card__cta .btn {
    width: 100%;
  }

  .contact-form-section {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .contact-form-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ==== css/components/materialize.css ==== */
/* materialize.css
   Apple-style materialization placeholders for WMWH.

   These are NOT skeleton loaders. The metaphor is matte paper
   under a slowly drifting gallery spotlight — not iOS frosted glass.

   Sections:
   1. .mat-stack    — required grid-stacked wrapper (placeholder + content at 1/1)
   2. Primitives    — .mat-text / .mat-heading / .mat-block / .mat-pill / .mat-avatar
   3. Luminance     — ::before/::after pseudos drive 7s/11s coprime drift + 9s warmth pass
   4. Blur-to-focus — image filter transition for .mat-block--image
   5. Crossfade     — placeholder out + content in, simultaneous within a layer
   6. Layer cascade — data-layer="1..5" delays the reveal per layer
   7. Ambient       — half-alpha drift on settled .card / .tier / hero panel
   8. Reduced-motion overrides + high-contrast hardening
*/


/* ═══════════════════════════════════════════════════════════
   0. CUSTOM PROPERTIES — drift coordinates
   @property registers the typed custom props so they can be
   smoothly animated cross-browser. Safari old fallback: the
   @keyframes still animate the value, they just won't tween
   between keyframes — perceptually identical at this speed.
   ═══════════════════════════════════════════════════════════ */

@property --mat-drift-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 30%;
}
@property --mat-drift-y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 40%;
}


/* ═══════════════════════════════════════════════════════════
   1. .mat-stack — grid-stacked wrapper
   Placeholder and content share grid-area: 1/1.
   Zero pixel shift on toggle. Required parent.
   ═══════════════════════════════════════════════════════════ */

.mat-stack {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  position: relative;
}

.mat-stack > [data-mat-placeholder],
.mat-stack > [data-mat-content] {
  grid-area: 1 / 1;
  min-width: 0;
}

/* Content starts hidden. JS removes data-loading after layer fires. */
.mat-stack > [data-mat-content] {
  opacity: 0;
  transition: opacity var(--dur-materialize) var(--ease-spring);
  pointer-events: none;
}

.mat-stack[data-loading="false"] > [data-mat-content] {
  opacity: 1;
  pointer-events: auto;
}

.mat-stack > [data-mat-placeholder] {
  opacity: 1;
  transition: opacity var(--dur-materialize) var(--ease-settle);
  pointer-events: none;
}

.mat-stack[data-loading="false"] > [data-mat-placeholder] {
  opacity: 0;
  /* After fade-out completes, remove from a11y/layout tree. */
  visibility: hidden;
  transition:
    opacity var(--dur-materialize) var(--ease-settle),
    visibility 0s linear var(--dur-materialize);
}


/* ═══════════════════════════════════════════════════════════
   2. PRIMITIVES — base surfaces

   Base surface = rgba(5,5,5,0.035) — warm off-white, not gray.
   Overlay layers add the drift; the base itself never animates.
   ═══════════════════════════════════════════════════════════ */

.mat-text,
.mat-heading,
.mat-block,
.mat-pill,
.mat-avatar {
  position: relative;
  display: block;
  background-color: rgba(5, 5, 5, 0.035);
  overflow: hidden;
  isolation: isolate;
  /* Stable height so layout matches the final content footprint. */
  flex-shrink: 0;
}

/* ── Text rows — sans-serif body proportion ─────────────── */
.mat-text {
  height: 0.875em;
  margin: calc(1.65em * 0.225) 0;  /* mirrors --leading-body 1.65 */
  border-radius: 3px;
  width: var(--mat-w, 85%);
}
.mat-text[data-w="30"]   { --mat-w: 30%; }
.mat-text[data-w="45"]   { --mat-w: 45%; }
.mat-text[data-w="60"]   { --mat-w: 60%; }
.mat-text[data-w="75"]   { --mat-w: 75%; }
.mat-text[data-w="85"]   { --mat-w: 85%; }
.mat-text[data-w="100"]  { --mat-w: 100%; }

/* Display modifier — serif proportions (Cormorant), tighter leading. */
.mat-text--display {
  height: 1em;
  margin: calc(1.05em * 0.18) 0;
}

/* ── Headings — three sizes, tight leading ───────────────── */
.mat-heading {
  border-radius: 4px;
  width: var(--mat-w, 70%);
  height: 1em;
  margin: 0.15em 0 0.45em;
  /* Heading line-height matches --leading-tight (1.05). */
}
.mat-heading[data-size="h1"] { font-size: var(--size-h1); }
.mat-heading[data-size="h2"] { font-size: var(--size-h2); }
.mat-heading[data-size="h3"] { font-size: var(--size-h3); }
.mat-heading[data-size="hero"] { font-size: var(--size-hero); }

/* ── Blocks — surfaces / image placeholders ──────────────── */
.mat-block {
  border-radius: var(--radius-card);
  width: 100%;
  aspect-ratio: var(--mat-ratio, 16 / 9);
}
.mat-block[data-ratio="1-1"]   { --mat-ratio: 1 / 1; }
.mat-block[data-ratio="16-9"]  { --mat-ratio: 16 / 9; }
.mat-block[data-ratio="4-5"]   { --mat-ratio: 4 / 5; }
.mat-block[data-ratio="3-4"]   { --mat-ratio: 3 / 4; }
.mat-block[data-ratio="21-9"]  { --mat-ratio: 21 / 9; }

/* ── Pill / CTA stand-in ──────────────────────────────────── */
.mat-pill {
  border-radius: var(--radius-pill);
  height: 3rem;
  width: var(--mat-w, 14rem);
  max-width: 100%;
}
.mat-pill[data-size="sm"] { height: 2.25rem; }
.mat-pill[data-size="lg"] { height: 3.5rem;  width: var(--mat-w, 18rem); }

/* ── Avatar — circle ──────────────────────────────────────── */
.mat-avatar {
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
}


/* ═══════════════════════════════════════════════════════════
   3. LUMINANCE DRIFT — ambient motion overlays

   Two overlays:
   ::after  — radial spotlight, X cycles 7s, Y cycles 11s (coprime).
   ::before — diagonal warmth pass at 9s. Imperceptibly soft.

   Peak alpha 0.18 (Facebook shimmer is 0.55+ — deliberately a third).
   Only the overlays animate. Base surface is static.
   ═══════════════════════════════════════════════════════════ */

.mat-text::after,
.mat-heading::after,
.mat-block::after,
.mat-pill::after,
.mat-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse at var(--mat-drift-x, 30%) var(--mat-drift-y, 40%),
    rgba(245, 245, 240, 0.18) 0%,
    rgba(245, 245, 240, 0.05) 30%,
    rgba(245, 245, 240, 0) 55%
  );
  animation:
    mat-drift-x 7s ease-in-out infinite alternate,
    mat-drift-y 11s ease-in-out infinite alternate;
  will-change: --mat-drift-x, --mat-drift-y;
}

.mat-text::before,
.mat-heading::before,
.mat-block::before,
.mat-pill::before,
.mat-avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 100%
  );
  transform: translateX(-30%);
  animation: mat-warmth 9s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes mat-drift-x {
  0%   { --mat-drift-x: 20%; }
  100% { --mat-drift-x: 78%; }
}
@keyframes mat-drift-y {
  0%   { --mat-drift-y: 30%; }
  100% { --mat-drift-y: 72%; }
}
@keyframes mat-warmth {
  0%   { transform: translateX(-30%); }
  100% { transform: translateX(30%); }
}


/* ═══════════════════════════════════════════════════════════
   4. BLUR-TO-FOCUS — image materialization

   Usage: <img class="mat-image" data-mat-src="/path/to/full.jpg"
                src="data:image/jpeg;base64,...24px LQIP..." alt="">
   On materialize:layer-3 the JS sets data-mat-loaded; CSS transitions
   filter from blur(20px) saturate(1.1) → blur(0) saturate(1).
   ═══════════════════════════════════════════════════════════ */

.mat-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slight upscale hides LQIP block edges. */
  transform: scale(1.04);
  filter: blur(20px) saturate(1.1);
  transition:
    filter var(--dur-blur-focus) var(--ease-spring),
    transform var(--dur-blur-focus) var(--ease-spring);
  will-change: filter, transform;
}

.mat-image[data-mat-loaded="true"] {
  filter: blur(0) saturate(1);
  transform: scale(1);
}

/* When the .mat-block wraps an image, it inherits the final radius
   and clips the blur-to-focus image to its corners. */
.mat-block--image {
  background-color: rgba(5, 5, 5, 0.06);
  position: relative;
  aspect-ratio: var(--mat-ratio, 16 / 9);
  overflow: hidden;
}
.mat-block--image > .mat-image {
  position: absolute;
  inset: 0;
}


/* ═══════════════════════════════════════════════════════════
   5. LAYER CASCADE — data-layer="1..5"

   data-layer drives a transition-delay on .mat-stack so layers
   fire in sequence with --dur-layer-gap (90ms) spacing.

   Layer 1: headings        (delay 0)
   Layer 2: body text       (delay 90ms)
   Layer 3: images          (delay 180ms)
   Layer 4: CTAs / secondary (delay 270ms)
   Layer 5: scroll-triggered animations bind (no DOM delay — JS event)
   ═══════════════════════════════════════════════════════════ */

.mat-stack[data-layer="1"] > [data-mat-content],
.mat-stack[data-layer="1"] > [data-mat-placeholder] {
  transition-delay: 0ms;
}
.mat-stack[data-layer="2"] > [data-mat-content],
.mat-stack[data-layer="2"] > [data-mat-placeholder] {
  transition-delay: var(--dur-layer-gap);
}
.mat-stack[data-layer="3"] > [data-mat-content],
.mat-stack[data-layer="3"] > [data-mat-placeholder] {
  transition-delay: calc(var(--dur-layer-gap) * 2);
}
.mat-stack[data-layer="4"] > [data-mat-content],
.mat-stack[data-layer="4"] > [data-mat-placeholder] {
  transition-delay: calc(var(--dur-layer-gap) * 3);
}


/* ═══════════════════════════════════════════════════════════
   6. PATTERN UTILITIES — content-aware placeholder layouts

   Each .mat-pattern-* traces the shape of a real component.
   The shapes go in materialize.js; these classes give the
   placeholder its layout so it footprints the same as content.
   ═══════════════════════════════════════════════════════════ */

.mat-pattern {
  display: block;
  width: 100%;
}

/* Hero display pattern — eyebrow line, two heading rows, body, CTA. */
.mat-pattern--hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.mat-pattern--hero .mat-text--eyebrow {
  height: 0.6875em;
  width: 12rem;
  margin: 0 0 0.5rem;
}

/* Card pattern — image area, heading, two body rows, CTA. */
.mat-pattern--card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: var(--card-pad, 1.75rem);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  height: 100%;
  box-sizing: border-box;
}

/* Card grid pattern — wraps multiple card patterns. */
.mat-pattern--card-grid {
  display: grid;
  gap: 1.25rem;
}
.mat-pattern--card-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.mat-pattern--card-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.mat-pattern--card-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .mat-pattern--card-grid[data-cols="3"],
  .mat-pattern--card-grid[data-cols="4"] {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .mat-pattern--card-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Pricing tiers — middle taller. */
.mat-pattern--tiers {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.mat-pattern--tiers > .mat-pattern--card:nth-child(2) {
  transform: scaleY(1.04);
  transform-origin: center;
}
@media (max-width: 900px) {
  .mat-pattern--tiers {
    grid-template-columns: 1fr;
  }
  .mat-pattern--tiers > .mat-pattern--card:nth-child(2) {
    transform: none;
  }
}

/* Accordion rows — FAQ list. */
.mat-pattern--accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mat-pattern--accordion .mat-accordion-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}
.mat-pattern--accordion .mat-accordion-row > .mat-text { flex: 1; margin: 0; }
.mat-pattern--accordion .mat-accordion-row > .mat-chevron {
  width: 12px; height: 12px;
  background-color: rgba(5, 5, 5, 0.035);
  border-radius: 2px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Diagnosis card pattern — heading + 4 answer pills. */
.mat-pattern--diagnosis {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 720px;
}
.mat-pattern--diagnosis .mat-answer-stack {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.mat-pattern--diagnosis .mat-pill {
  width: 100%;
  height: 4.25rem;
  border-radius: var(--radius-card);
}

/* Contact form pattern — labels + inputs + submit. */
.mat-pattern--form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 560px;
}
.mat-pattern--form .mat-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mat-pattern--form .mat-field > .mat-text {
  height: 0.75em;
  width: 8rem;
  margin: 0;
}
.mat-pattern--form .mat-field > .mat-block {
  aspect-ratio: auto;
  height: 3rem;
  border-radius: var(--radius-md);
}
.mat-pattern--form .mat-field--textarea > .mat-block {
  height: 8rem;
}


/* ═══════════════════════════════════════════════════════════
   7. AMBIENT MOTION (post-materialization)

   After materialize:complete the body gets data-mat-settled="true"
   which enables a half-alpha drift on settled content surfaces.
   Card-like surfaces feel softly alive at all times.

   Pauses on:
     - prefers-reduced-motion
     - :hover of interactive elements
     - data-mat-no-ambient (text-heavy reading pages)
   ═══════════════════════════════════════════════════════════ */

body[data-mat-settled="true"] .card::after,
body[data-mat-settled="true"] .price-tier::after,
body[data-mat-settled="true"] .hero__content::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at var(--mat-drift-x, 30%) var(--mat-drift-y, 40%),
    rgba(245, 245, 240, 0.09) 0%,
    rgba(245, 245, 240, 0.02) 35%,
    rgba(245, 245, 240, 0) 60%
  );
  animation:
    mat-drift-x 7s ease-in-out infinite alternate,
    mat-drift-y 11s ease-in-out infinite alternate;
}

/* Ambient drift surfaces need a positioning context. The .card class
   already gets position:relative via card.css; this is a guard. */
body[data-mat-settled="true"] .card,
body[data-mat-settled="true"] .price-tier {
  position: relative;
}

/* Pause ambient drift on hover so motion doesn't compete with the user. */
body[data-mat-settled="true"] .card:hover::after,
body[data-mat-settled="true"] .price-tier:hover::after,
body[data-mat-settled="true"] .hero__content:hover::after {
  animation-play-state: paused;
  opacity: 0;
  transition: opacity var(--dur-feedback) var(--ease-feedback);
}

/* Opt-out for text-heavy reading pages. */
body[data-mat-no-ambient="true"] .card::after,
body[data-mat-no-ambient="true"] .price-tier::after,
body[data-mat-no-ambient="true"] .hero__content::after {
  display: none;
}


/* ═══════════════════════════════════════════════════════════
   8. ACCESSIBILITY — visually hidden announcer
   ═══════════════════════════════════════════════════════════ */

.mat-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ═══════════════════════════════════════════════════════════
   9. REDUCED MOTION + HIGH CONTRAST
   ═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .mat-text::after,
  .mat-heading::after,
  .mat-block::after,
  .mat-pill::after,
  .mat-avatar::after,
  .mat-text::before,
  .mat-heading::before,
  .mat-block::before,
  .mat-pill::before,
  .mat-avatar::before,
  body[data-mat-settled="true"] .card::after,
  body[data-mat-settled="true"] .price-tier::after,
  body[data-mat-settled="true"] .hero__content::after {
    animation: none;
  }

  .mat-stack > [data-mat-placeholder],
  .mat-stack > [data-mat-content] {
    transition-duration: 100ms;
    transition-timing-function: linear;
  }

  .mat-image {
    transition-duration: 120ms;
    transition-timing-function: linear;
  }
}

@media (prefers-contrast: more) {
  .mat-text::after,
  .mat-heading::after,
  .mat-block::after,
  .mat-pill::after,
  .mat-avatar::after,
  .mat-text::before,
  .mat-heading::before,
  .mat-block::before,
  .mat-pill::before,
  .mat-avatar::before {
    background: transparent;
    animation: none;
  }
  .mat-text,
  .mat-heading,
  .mat-block,
  .mat-pill,
  .mat-avatar {
    background-color: rgba(5, 5, 5, 0.10);
  }
}
