/* =====================================================================
   Stackenta design system: styles.css  (v2 "Clean", 2026-09-29)
   The only stylesheet. Link this one file from any page, site, proposal or
   mockup and you get the whole system. Part 1 is tokens, part 2 is components.
   Nothing outside Part 1 defines a color, font, size, space, radius or shadow.
   ===================================================================== */

/* Fonts. To change a typeface: swap the family here AND in the --font-* tokens. */
@import url("https://fonts.googleapis.com/css2?family=Google+Sans:wght@400..700&family=Google+Sans+Code:wght@400..500&display=swap");

/* =====================================================================
   PART 1: TOKENS
   ===================================================================== */
:root {
  /* ---------- Typefaces ---------- */
  --font-heading: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Google Sans Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ---------- Grays (Apple-style, very slightly cool) ---------- */
  --gray-0: #ffffff;
  --gray-50: #fbfbfd;
  --gray-100: #f5f5f7;   /* page ground */
  --gray-150: #f0f0f2;   /* quiet fills: tags, tiles */
  --gray-200: #e3e3e8;   /* hairlines */
  --gray-300: #d2d2d7;   /* stronger lines */
  --gray-400: #aeaeb2;
  --gray-500: #86868b;   /* subtle text */
  --gray-600: #6e6e73;   /* muted text, second half of headlines */
  --gray-700: #48484a;
  --gray-800: #2c2c2e;
  --gray-900: #111113;   /* text and the action color */

  /* ---------- Action color ----------
     Black by design: it's what makes the system read as calm and premium.
     To add a brand color later, change these three lines and nothing else. */
  --action: var(--gray-900);
  --action-hover: var(--gray-800);
  --action-pressed: #000000;

  /* ---------- Semantic colors: components use ONLY these ---------- */
  --color-bg: var(--gray-100);              /* page ground */
  --color-surface: var(--gray-0);           /* cards, pills, fields */
  --color-surface-quiet: var(--gray-150);   /* tags, tiles inside cards */
  --color-text: var(--gray-900);
  --color-text-muted: var(--gray-600);
  --color-text-subtle: var(--gray-500);     /* captions, labels; short text only */
  --color-border: var(--gray-200);
  --color-border-strong: var(--gray-300);
  --color-accent: var(--action);            /* primary buttons, active states */
  --color-accent-hover: var(--action-hover);
  --color-accent-pressed: var(--action-pressed);
  --color-accent-text: var(--gray-900);     /* links and labels */
  --color-on-accent: var(--gray-0);         /* text on the action color */
  --color-on-photo: var(--gray-0);
  --color-photo-scrim: rgb(0 0 0 / 0.5);
  --color-focus: #3478f6;                   /* keyboard focus ring (Apple blue) */
  --color-focus-ring: rgb(52 120 246 / 0.25);
  --color-selection: #cfe0ff;
  --color-success: #1d7a45;
  --color-warning: #b26a00;
  --color-danger: #d23b30;
  /* The two dot fields behind a hero. Decorative only. */
  --color-field-cool: rgb(70 110 200 / 0.85);
  --color-field-warm: rgb(210 125 70 / 0.8);

  /* ---------- Type scale (fluid between ~375px and ~1440px) ---------- */
  --text-xs: 0.75rem;                                        /* 12 */
  --text-sm: 0.875rem;                                       /* 14 */
  --text-base: 1.0625rem;                                    /* 17 body */
  --text-lg: 1.25rem;                                        /* 20 lede */
  --text-xl: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
  --text-2xl: clamp(1.625rem, 1.35rem + 1.1vw, 2.25rem);
  --text-3xl: clamp(2rem, 1.5rem + 2vw, 3.25rem);            /* section titles */
  --text-4xl: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);        /* page titles */
  --text-display: clamp(3rem, 1.6rem + 6vw, 7rem);           /* one hero headline per page */

  --weight-regular: 400;
  --weight-medium: 500;   /* headings, buttons, labels: the system's "bold" */
  --weight-bold: 600;     /* rare: wordmark only */

  --leading-display: 1;
  --leading-tight: 1.05;
  --leading-snug: 1.15;
  --leading-normal: 1.6;
  --tracking-display: -0.045em;
  --tracking-tight: -0.035em;
  --tracking-wide: 0.08em;    /* small uppercase labels */
  --measure: 64ch;            /* max line length for running text */

  /* ---------- Space (4px base) ---------- */
  --space-1: 0.25rem;  /* 4 */
  --space-2: 0.5rem;   /* 8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.25rem;  /* 20 */
  --space-6: 1.5rem;   /* 24 */
  --space-8: 2rem;     /* 32 */
  --space-10: 2.5rem;  /* 40 */
  --space-12: 3rem;    /* 48 */
  --space-16: 4rem;    /* 64 */
  --space-20: 5rem;    /* 80 */
  --space-24: 6rem;    /* 96 */
  --space-section: clamp(4rem, 2.5rem + 6vw, 8.5rem);

  /* ---------- Layout ---------- */
  --container-max: 1240px;
  --container-narrow: 760px;
  --gutter: clamp(1rem, 0.4rem + 3vw, 2.5rem);   /* side padding, never under 16px */
  --nav-height: 80px;

  /* ---------- Radius ---------- */
  --radius-sm: 10px;
  --radius-md: 18px;     /* fields, small cards */
  --radius-lg: 28px;     /* cards, photos */
  --radius-pill: 999px;  /* buttons, nav pills, tags */

  /* ---------- Elevation (soft, neutral) ---------- */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow-md: 0 1px 2px rgb(0 0 0 / 0.04), 0 10px 30px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.05), 0 30px 60px rgb(0 0 0 / 0.12);
  --shadow-xl: 0 4px 10px rgb(0 0 0 / 0.08), 0 40px 80px rgb(0 0 0 / 0.18);
  --shadow-action: 0 4px 14px rgb(0 0 0 / 0.18);
  --shadow-action-hover: 0 8px 22px rgb(0 0 0 / 0.22);

  /* ---------- Motion ---------- */
  --duration-fast: 140ms;
  --duration-base: 240ms;
  --duration-slow: 500ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* ---------- Layers ---------- */
  --z-nav: 50;
  --z-overlay: 100;
}

/* =====================================================================
   PART 2: COMPONENTS
   ===================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-height) + var(--space-4)); }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-4xl); line-height: var(--leading-tight); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); letter-spacing: -0.01em; }
h4 { font-size: var(--text-lg); letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--color-accent-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-text-muted); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: var(--color-selection); color: var(--color-text); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: calc(var(--container-max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.section { padding-block: var(--space-section); }
.section-surface { background: transparent; }   /* sections separate by space, not by fills */
.stack { display: grid; gap: var(--space-6); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-12); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }

/* ---------- Text roles ---------- */
.display {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: var(--weight-medium);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
/* The signature move: the second half of a headline in gray. */
.headline-soft { color: var(--color-text-muted); }
.eyebrow { font-size: var(--text-base); font-weight: var(--weight-medium); color: var(--color-text-subtle); }
.label { font-size: var(--text-xs); font-weight: var(--weight-medium); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-subtle); }
.lede { font-size: var(--text-lg); color: var(--color-text-muted); max-width: var(--measure); }
.muted { color: var(--color-text-muted); }
.caption { font-size: var(--text-sm); color: var(--color-text-subtle); }
.prose { max-width: var(--measure); display: grid; gap: var(--space-5); }

/* ---------- Buttons: black and white pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-pill);
  border: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), translate var(--duration-base) var(--ease-out), scale var(--duration-fast) var(--ease-out);
}
.btn:active { scale: 0.97; }
.btn-primary { background: var(--color-accent); color: var(--color-on-accent); box-shadow: var(--shadow-action); }
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }
.btn-primary:active { background: var(--color-accent-pressed); }
.btn-secondary, .btn-ghost { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-md); }
.btn-secondary:hover, .btn-ghost:hover { background: var(--gray-50); color: var(--color-text); }
.btn-on-photo { background: var(--color-surface); color: var(--color-text); }
.btn-sm { min-height: 40px; padding: 0 var(--space-5); font-size: var(--text-sm); }
.btn-lg { min-height: 56px; padding: 0 var(--space-8); font-size: var(--text-lg); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex; justify-self: start; align-self: start; align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: var(--weight-medium); letter-spacing: 0.02em;
  background: var(--color-surface-quiet); color: var(--color-text-muted);
}

/* ---------- Pill (any small floating white label) ---------- */
.pill { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); background: var(--color-surface); border-radius: var(--radius-pill); box-shadow: var(--shadow-md); font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------- Navigation: floating pills, Menu centered ----------
   Wordmark pill left, Menu pill centered, primary action right.
   The bar itself is transparent; only the pills catch clicks. */
.nav { position: sticky; top: 0; z-index: var(--z-nav); pointer-events: none; }
.nav-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: var(--nav-height); padding-top: var(--space-4); }
.nav-inner > * { pointer-events: auto; }
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--weight-medium); font-size: var(--text-lg); letter-spacing: -0.02em;
  color: var(--color-text); text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--color-surface); box-shadow: var(--shadow-md); border-radius: var(--radius-pill); padding: var(--space-2) var(--space-5);
  transition: box-shadow var(--duration-base) var(--ease-out);
}
.nav-brand-mark { height: 1.15em; width: auto; flex: none; }
/* Trademark symbol after the wordmark: small, raised to cap height, no extra line height. */
.tm { font-size: 0.6em; font-weight: var(--weight-medium); letter-spacing: 0; line-height: 0; vertical-align: super; margin-left: 0.1em; position: relative; top: 0.2em; }
.nav-links { display: none; }  /* kept for markup compatibility; the menu card holds the links */
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-actions .btn { min-height: 48px; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  position: absolute; left: 50%; transform: translateX(-50%); top: var(--space-4);
  height: 48px; padding: 0 var(--space-6);
  background: var(--color-surface); color: var(--color-text); border: 0; border-radius: var(--radius-pill); box-shadow: var(--shadow-md);
  font: inherit; font-size: var(--text-base); font-weight: var(--weight-medium);
  cursor: pointer;
  transition: box-shadow var(--duration-base) var(--ease-out);
}
/* Two lines that close together when the menu opens. */
.nav-toggle::before { content: ""; width: 16px; height: 8px; border-block: 2px solid currentColor; transition: height var(--duration-base) var(--ease-out), rotate var(--duration-base) var(--ease-out); }
.nav[data-open="true"] .nav-toggle::before { height: 4px; rotate: 180deg; }
@media (max-width: 640px) {
  .nav-toggle { position: static; transform: none; padding: 0 var(--space-4); }
  .nav-actions .btn { display: none; }
}

/* The menu opens as a floating card under the Menu pill. */
.nav-menu {
  display: none;
  position: absolute; left: 50%; top: calc(var(--space-4) + 56px); transform: translateX(-50%);
  width: min(560px, calc(100vw - 2 * var(--gutter)));
  background: rgb(255 255 255 / 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: var(--space-8); pointer-events: auto;
}
.nav[data-open="true"] .nav-menu { display: block; }
.nav-menu .container { padding: 0; }
.nav-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.nav-menu a { display: block; padding: var(--space-1) 0; font-size: var(--text-3xl); font-weight: var(--weight-medium); letter-spacing: -0.02em; color: var(--color-text); text-decoration: none; transition: translate var(--duration-base) var(--ease-out), color var(--duration-fast) var(--ease-out); }
.nav-menu-label { display: block; margin-bottom: var(--space-3); font-size: var(--text-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-subtle); }
.nav-menu-foot { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--color-border); }
.nav-menu-foot a { font-size: var(--text-base); color: var(--color-text-muted); }

/* ---------- Hero: centered, dot field behind, big photo or photo fan ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4rem, 2rem + 7vw, 9rem) var(--space-12); text-align: center; }
.hero > .container { position: relative; z-index: 1; }
.hero-text { display: grid; gap: var(--space-6); justify-items: center; }
.hero .display { max-width: 14ch; margin-inline: auto; }
.hero-sub { font-size: var(--text-xl); line-height: 1.5; color: var(--color-text-muted); max-width: 40ch; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-4); }
.hero-media { margin-top: clamp(3rem, 2rem + 4vw, 6rem); box-shadow: var(--shadow-lg); }
.hero:has(.photo-stack) .hero-media { display: none; }  /* a fan replaces the single photo */

/* Dot field: two fields of fine dots (cool lower left, warm upper right), each
   faded out with a soft radial mask. Decorative; add .hero-plain to turn it off. */
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-size: 5px 5px, 7px 7px; }
.hero::before {
  background-image: radial-gradient(circle, var(--color-field-cool) 1px, transparent 1.3px), radial-gradient(circle, var(--color-field-cool) 0.9px, transparent 1.2px);
  -webkit-mask-image: radial-gradient(55% 45% at 6% 80%, #000 0%, rgb(0 0 0 / 0.5) 45%, transparent 75%);
  mask-image: radial-gradient(55% 45% at 6% 80%, #000 0%, rgb(0 0 0 / 0.5) 45%, transparent 75%);
}
.hero::after {
  background-image: radial-gradient(circle, var(--color-field-warm) 1px, transparent 1.3px), radial-gradient(circle, var(--color-field-warm) 0.9px, transparent 1.2px);
  -webkit-mask-image: radial-gradient(48% 40% at 96% 24%, #000 0%, rgb(0 0 0 / 0.45) 45%, transparent 75%);
  mask-image: radial-gradient(48% 40% at 96% 24%, #000 0%, rgb(0 0 0 / 0.45) 45%, transparent 75%);
}
.hero-plain::before, .hero-plain::after { display: none; }

/* ---------- Photos ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-surface-quiet); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-wide { aspect-ratio: 16 / 8; }
.photo-landscape { aspect-ratio: 4 / 3; }
.photo-portrait { aspect-ratio: 4 / 5; }
@media (max-width: 640px) { .photo-wide { aspect-ratio: 4 / 3; } }
.photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-12) var(--space-6) var(--space-5);
  background: linear-gradient(to top, var(--color-photo-scrim), transparent);
  color: var(--color-on-photo); font-size: var(--text-sm); line-height: 1.4;
}
.photo-caption strong { display: block; font-size: var(--text-base); font-weight: var(--weight-medium); }
/* Placeholder until a real photo is chosen. The label says what goes there. */
.photo-slot {
  display: grid; place-items: center; text-align: center; padding: var(--space-6);
  background: repeating-linear-gradient(135deg, var(--gray-50) 0 12px, var(--gray-200) 12px 13px);
  color: var(--color-text-muted); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em;
}

/* Photo fan: three tilted, white-framed photos, the center one on top. */
.photo-stack { position: relative; height: clamp(300px, 22rem + 10vw, 560px); margin-top: clamp(3rem, 2rem + 4vw, 6rem); }
.photo-stack .photo { position: absolute; top: 0; width: min(46%, 560px); aspect-ratio: 4 / 3; border-radius: 22px; box-shadow: var(--shadow-lg); border: 6px solid var(--color-surface); }
.photo-stack .photo:nth-child(1) { left: 2%; top: 14%; transform: rotate(-7deg); }
.photo-stack .photo:nth-child(2) { left: 27%; top: 0; transform: rotate(2deg); z-index: 2; }
.photo-stack .photo:nth-child(3) { right: 2%; top: 18%; transform: rotate(8deg); }
@media (max-width: 640px) {
  .photo-stack .photo { width: 70%; }
  .photo-stack .photo:nth-child(1) { left: 0; }
  .photo-stack .photo:nth-child(2) { left: 15%; }
  .photo-stack .photo:nth-child(3) { right: 0; }
}

/* ---------- Section head ---------- */
.section-head { display: grid; gap: var(--space-4); max-width: 44rem; margin: 0 auto var(--space-12); text-align: center; justify-items: center; }
.split .section-head, .section-head-left { text-align: left; justify-items: start; margin-inline: 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cards: white on gray, no borders, soft shadow ---------- */
.card, .addon-card, .audience-item, .resource-link, .booking-frame {
  background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.card { padding: var(--space-8); display: grid; gap: var(--space-3); }

/* Image card: photo inset in the card, then text. */
.addon-card { display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none; }
.addon-card .photo { margin: var(--space-2); aspect-ratio: 4 / 3; border-radius: calc(var(--radius-lg) - 8px); }
.addon-card-body { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-6) var(--space-6); }
.addon-card-title { font-size: var(--text-xl); }
.addon-card-text { color: var(--color-text-muted); }

/* Post tiles: a tagged post as an image card (image, title, short description). Three across,
   two on tablets, one on phones. */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }
.post-tile { display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none; background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.post-tile-image { display: block; width: calc(100% - var(--space-4)); height: auto; aspect-ratio: 1200 / 630; margin: var(--space-2); border-radius: calc(var(--radius-lg) - 8px); object-fit: cover; }
.post-tile-body { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-6) var(--space-6); }
.post-tile-title { font-size: var(--text-lg); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-tile-text { color: var(--color-text-muted); font-size: var(--text-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) and (pointer: fine) { .post-tile { transition: translate var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out); } .post-tile:hover { translate: 0 -4px; box-shadow: var(--shadow-lg); color: inherit; } }

/* Work card: a real client, named, with a place. */
.work-card { display: grid; gap: var(--space-4); }
.work-card .photo { aspect-ratio: 4 / 3; }
.work-card-quote { font-size: var(--text-lg); line-height: 1.45; }
.work-card-result { font-weight: var(--weight-medium); }

/* Text card in a row of three. */
.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.audience-item { display: grid; gap: var(--space-3); padding: var(--space-8); }
@media (max-width: 860px) { .audience { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Steps (numbered only when the order is real) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { display: grid; gap: var(--space-3); padding-top: var(--space-6); border-top: 1px solid var(--color-border-strong); counter-increment: step; transition: border-color var(--duration-base) var(--ease-out); }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-text-subtle); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }

/* ---------- FAQ (question headers, direct answer first) ---------- */
.faq { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-6);
  padding: var(--space-6) 0; cursor: pointer; list-style: none;
  font-family: var(--font-heading); font-size: var(--text-xl); font-weight: var(--weight-medium); letter-spacing: -0.01em;
  transition: color var(--duration-fast) var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-body); font-weight: var(--weight-regular); color: var(--color-text-subtle); font-size: var(--text-2xl); line-height: 1; transition: rotate var(--duration-base) var(--ease-out); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding-bottom: var(--space-6); max-width: var(--measure); color: var(--color-text-muted); display: grid; gap: var(--space-3); }
.faq-answer p:first-child { color: var(--color-text); }
@keyframes faq-open { from { opacity: 0; translate: 0 -6px; } }
@media (prefers-reduced-motion: no-preference) { .faq-item[open] .faq-answer { animation: faq-open var(--duration-base) var(--ease-out); } }

/* ---------- CTA band (ends every page) ---------- */
.cta-band { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(2.5rem, 1.5rem + 4vw, 5rem); display: grid; justify-items: center; text-align: center; gap: var(--space-8); }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { margin: var(--space-4) auto 0; color: var(--color-text-muted); max-width: 44ch; }

/* ---------- Letter (signed, for About pages) ---------- */
.letter {
  max-width: 44rem; margin-inline: auto;
  background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: clamp(2rem, 1rem + 5vw, 4.5rem);
  display: grid; gap: var(--space-5); font-size: var(--text-lg); line-height: 1.65;
}
.letter-greeting { font-weight: var(--weight-medium); }
.letter-signatures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-4); }
.signature { display: grid; gap: var(--space-1); }
.signature-name { font-size: var(--text-2xl); font-weight: var(--weight-medium); letter-spacing: -0.02em; line-height: 1.1; }
.signature-role { font-size: var(--text-sm); color: var(--color-text-subtle); }

/* ---------- Forms ---------- */
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: var(--weight-medium); }
.field-hint { font-size: var(--text-sm); color: var(--color-text-subtle); }
.input, .textarea, .select {
  width: 100%; min-height: 48px;
  padding: var(--space-3) var(--space-4);
  font: inherit; color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.textarea { min-height: 128px; resize: vertical; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--gray-400); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--color-focus); box-shadow: 0 0 0 4px var(--color-focus-ring); }
.input[aria-invalid="true"] { border-color: var(--color-danger); }
.field-error { font-size: var(--text-sm); color: var(--color-danger); }

/* ---------- Footer ---------- */
.footer { padding-block: var(--space-16) var(--space-10); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: var(--space-10); }
.footer .nav-brand { background: none; box-shadow: none; padding: 0; justify-self: start; }
.footer h4 { font-size: var(--text-sm); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-subtle); margin-bottom: var(--space-4); font-weight: var(--weight-medium); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer a { color: var(--color-text); text-decoration: none; }
.footer-base { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--color-border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); font-size: var(--text-sm); color: var(--color-text-subtle); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--space-8); text-align: center; }
.page-header .lede { margin: var(--space-5) auto 0; }
.page-header .hero-actions { justify-content: center; }

/* ---------- Article (long-form) ---------- */
.article { max-width: var(--measure); margin-inline: auto; display: grid; gap: var(--space-5); font-size: var(--text-lg); line-height: 1.7; }
.article h2 { font-size: var(--text-2xl); margin-top: var(--space-8); }
.article h3 { margin-top: var(--space-4); }
.article ul, .article ol { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-2); }
.article-meta { font-size: var(--text-sm); color: var(--color-text-subtle); }
.resource-list { display: grid; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.resource-link { display: grid; gap: var(--space-2); padding: var(--space-6); color: inherit; text-decoration: none; }
.resource-link:hover { color: inherit; }
.resource-link h2 { font-size: var(--text-xl); }

/* ---------- Embed frame (e.g. Calendly) ---------- */
.booking-frame { min-height: 700px; overflow: hidden; }
.booking-fallback { padding: var(--space-8); display: grid; gap: var(--space-4); justify-items: start; }

/* =====================================================================
   MOTION
   ===================================================================== */

/* Scroll-in: content is visible by default. Only when the page script adds
   .motion to <html> do [data-reveal] elements start hidden and fade up. */
@media (prefers-reduced-motion: no-preference) {
  .motion [data-reveal] {
    opacity: 0; transform: translateY(18px);
    transition:
      opacity 700ms var(--ease-out), transform 700ms var(--ease-out),
      translate var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out),
      background-color var(--duration-fast) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .motion [data-reveal].is-in { opacity: 1; transform: none; }
  /* Once revealed, the page script adds .done so hovers respond with no stagger delay. */
  .motion [data-reveal].done { transition-delay: 0ms; }
  /* The hero photo settles in slightly. */
  .motion .hero-media img { transform: scale(1.04); transition: transform 1600ms var(--ease-out); }
  .motion .hero-media.is-in img { transform: scale(1); }
  /* The photo fan deals itself in. */
  .motion .photo-stack .photo { transition: transform 1100ms var(--ease-out), opacity 900ms var(--ease-out); opacity: 0; }
  .motion .photo-stack.is-in .photo { opacity: 1; }
  .motion .photo-stack:not(.is-in) .photo { transform: translateY(40px) rotate(0deg); }
}
.photo-stack.done .photo { transition: translate var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out); }
.addon-card .photo img, .work-card .photo img { transition: scale 600ms var(--ease-out); }
.audience-item, .resource-link, .addon-card { transition: translate var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out); }

/* Hover: small and quick, only on devices with a real pointer, so phones never
   stick in a hover state. Lifts use `translate`, which doesn't fight the
   scroll-in animation's `transform`. */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { translate: 0 -1px; box-shadow: var(--shadow-action-hover); }
  .btn-secondary:hover, .btn-ghost:hover, .btn-on-photo:hover { translate: 0 -1px; box-shadow: var(--shadow-lg); }
  .nav-brand:hover, .nav-toggle:hover { box-shadow: var(--shadow-lg); }
  .nav-menu a:hover { translate: 6px 0; color: var(--color-text-muted); }

  .footer a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--duration-base) var(--ease-out); padding-bottom: 2px; }
  .footer a:hover { background-size: 100% 1px; color: var(--color-text); }

  .addon-card:hover, .audience-item:hover, .resource-link:hover { translate: 0 -4px; box-shadow: var(--shadow-lg); }
  .addon-card:hover .photo img, .work-card:hover .photo img { scale: 1.04; }

  .step:hover { border-top-color: var(--color-text); }
  .faq-item summary:hover { color: var(--color-text-muted); }
  .faq-item:not([open]) summary:hover::after { rotate: 90deg; }

  .resource-link h2 { transition: translate var(--duration-base) var(--ease-out); }
  .resource-link:hover h2 { translate: 4px 0; }

  .hero-media, .split > .photo { overflow: hidden; }
  .hero-media img, .split > .photo img { transition: scale 1200ms var(--ease-out); }
  .hero-media:hover img, .split > .photo:hover img { scale: 1.02; }

  /* Photo fan: it opens a little under the cursor and the hovered photo lifts
     in place. Stacking order never changes. */
  .photo-stack:hover .photo:nth-child(1) { translate: -14px 6px; }
  .photo-stack:hover .photo:nth-child(3) { translate: 14px 6px; }
  .photo-stack .photo:hover { translate: 0 -10px; box-shadow: var(--shadow-xl); }
  .photo-stack:hover .photo:nth-child(1):hover { translate: -14px -6px; }
  .photo-stack:hover .photo:nth-child(3):hover { translate: 14px -6px; }
}
