/* ---- common/styles/brand.css ---- */
/* ==========================================================================
   brand.css — The CB Creative design tokens
   Single source of truth for brand styling: color, type, spacing scale.
   Every page/section/common stylesheet should reference these variables
   rather than hardcoding values.
   ========================================================================== */

:root {

  /* ---- Color ---- */
  --color-paper: #F6F3EC;   /* cream — primary light background, and text-on-dark */
  --color-ink: #1C1F16;     /* near-black — primary dark background, and text-on-light */
  --color-forest: #2F3A1F;  /* brand dark green — accents on light backgrounds */
  --color-sage: #93A876;    /* brand light green — accents on dark backgrounds */

  --color-muted-on-light: #6E6B5D; /* body copy over paper */
  --color-muted-on-dark: #9A9789;  /* body copy over ink/forest */
  --color-border: #D9D5C9;         /* hairlines, input underlines, dashed borders */
  --color-cta-bg: #1E2614;         /* slightly deeper green used only behind the CTA band */
  --color-nav-hairline: #D8D5CA;   /* thin bottom border on the light/frosted nav */
  --color-forest-deep: #12160C;    /* darkest green — service card 1 & 2 photo overlays */
  --color-error: #8A2F22;          /* form error text; 7.5:1 on paper */

  /* R,G,B triplets (no rgb() wrapper) for --color-paper/--color-ink, so any
     stylesheet can drop them into rgba(var(--color-paper-rgb), 0.2) for a
     translucent tint instead of re-deriving/hardcoding the same triplet. */
  --color-paper-rgb: 246, 243, 236;
  --color-ink-rgb: 28, 31, 22;
  --color-sage-rgb: 147, 168, 118;
  --color-forest-rgb: 47, 58, 31;

  /* ---- Motion ---- */
  /* Signature "ease out, settle" curve used for every scroll-reveal and
     hover-pop transition on the site — one place to retune the feel. */
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- Font families ---- */
  --font-serif: 'Playfair Display', Georgia, serif;       /* headlines */
  --font-serif-accent: 'Cormorant Garamond', serif;       /* italic accents, quote marks */
  --font-sans: 'Geist', system-ui, -apple-system, sans-serif; /* body copy, UI, labels */

  /* ---- Font sizes — desktop scale ---- */
  --fs-hero-headline: 3.5rem;       /* 64px */
  --fs-section-headline: 3.25rem; /* 52px */
  --fs-card-title: 3rem;          /* 48px */
  --fs-quote: 3rem;               /* 48px */
  --fs-body-lg: 1.0625rem;        /* 17px */
  --fs-body: 1rem;                /* 16px */
  --fs-body-sm: 0.9375rem;        /* 15px */
  --fs-label: 0.6875rem;          /* 11px — eyebrows, buttons, form labels */
  --fs-caption: 0.625rem;         /* 10px */

  /* ---- Font sizes — mobile scale ---- */
  --fs-hero-headline-mobile: 2.5rem; /* 40px */
  --fs-section-headline-mobile: 2.375rem; /* 38px */
  --fs-card-title-mobile: 2rem;   /* 32px */

  /* ---- Letter spacing ---- */
  --ls-label: 0.14em;   /* eyebrows */
  --ls-button: 0.12em;  /* buttons */
  --ls-caption: 0.1em;

  /* ---- Line height ---- */
  --lh-tight: 1.08;
  --lh-headline: 1.15;
  --lh-body: 1.6;
  --lh-body-loose: 1.75;

  /* ---- Spacing scale ---- */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2rem;     /* 32px */
  --space-xl: 3rem;     /* 48px */
  --space-2xl: 4rem;    /* 64px */
  --space-3xl: 6rem;    /* 96px */

  /* ---- Layout ---- */
  --page-max-width: 1440px;
  --gutter-desktop: 96px;
  --gutter-mobile: 24px;
  --nav-height: 92px;
  --nav-height-mobile: 76px;

  /* ---- Radius (used only for the portfolio card treatment) ---- */
  --radius-card: 20px;
  --radius-card-mobile: 18px;
}

/* ---- common/styles/base.css ---- */
/* ==========================================================================
   base.css — shared component primitives
   Buttons, eyebrows, dividers, numbered markers used across nav, footer,
   and every homepage section. Reference brand.css tokens only.
   ========================================================================== */

/* Border-box everywhere. Without this, `width`/`height` describe only the
   content box, so any element with both an explicit size and padding or a
   border renders wider than asked for and overflows its container — the
   cause of several bugs on this site (a full-width button spilling 74px
   past the page gutter, panels with padding overflowing their column).
   Setting it once here means those cases just work, rather than needing a
   box-sizing declaration remembered at each call site. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  /* Browsers apply an 8px default margin on body — this was never reset,
     so every full-bleed element on the site has had a ~8px cream sliver on
     all four edges the whole time (most visible against a dark full-bleed
     photo, like the contact page, but this was very likely also the root
     cause of the long-standing "white border on the right side" issue
     noticed earlier on the homepage). */
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: var(--lh-body);
  overflow-x: hidden;
  max-width: 100%;
}

/* Nav is fixed/out-of-flow (see navigation.css), so every page's content
   needs top padding to clear it — except the home page, which wants its
   hero photo to bleed up behind the translucent nav (see pages/home/home.css). */
main#main-content {
  padding-top: var(--nav-height);
}

@media (max-width: 768px) {
  main#main-content {
    padding-top: var(--nav-height-mobile);
  }
}

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

a {
  color: inherit;
}

/* Visible keyboard-focus ring, sitewide — the browser default outline still
   works without this, but a branded ring in sage is easier to spot against
   both the dark and light sections. :focus-visible (not :focus) so it only
   shows for keyboard/AT navigation, not on every mouse click. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-sage);
  outline-offset: 3px;
}

/* Sage only passes contrast (3:1 non-text minimum) against the dark ink
   sections it was designed for — against the site's light/paper sections
   it drops to ~2.3:1. Swap to forest (10.8:1 on paper) anywhere the focus
   ring lands on a light background instead. */
.services :focus-visible,
.contact :focus-visible,
.nav--light :focus-visible {
  outline-color: var(--color-forest);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: var(--lh-headline);
}

h1, h2 {
  letter-spacing: 5px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: 12px 20px;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---- Eyebrow (small caps label + accent line) ---- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
  font-size: var(--fs-label) !important;
  letter-spacing: var(--ls-label) !important;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.eyebrow__line {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* Eyebrow color context: dark sections use sage, light sections use forest */
.hero .eyebrow,
.portfolio-teaser .eyebrow,
.why-not-ai .eyebrow,
.about .eyebrow,
.contact__info .eyebrow,
.thank-you .eyebrow {
  color: var(--color-sage);
}

.services .eyebrow {
  color: var(--color-forest);
}

/* ---- Divider ---- */

.divider {
  border: none;
  height: 1px;
  width: 48px;
  background: var(--color-border);
  margin: var(--space-lg) 0;
}

.why-not-ai .divider {
  background: rgba(var(--color-paper-rgb), 0.2);
  width: 100%;
  max-width: none;
  margin: var(--space-sm) 0;
}

.about .divider,
.contact__info .divider,
.thank-you .divider {
  background: rgba(var(--color-paper-rgb), 0.2);
}

/* ---- Photo panel with Ken Burns zoom ----
   A full-bleed background photo that slowly zooms (see @keyframes below),
   clipped by a static frame (.photo-bg) so the zoom and the dark vignette
   overlay (::after) never move — only the photo itself does. Originated on
   the homepage quote section; reused wherever a panel wants a "living"
   photo behind its text instead of a flat image. Parent needs
   position: relative (and usually overflow: hidden) for this to fill it. */
.photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: var(--color-ink);
}

.photo-bg__photo {
  position: absolute;
  inset: 0;
  /* Gradient fallback shows if the photo is ever missing; the inline
     background-image set per-usage paints over it. */
  background-image: linear-gradient(160deg, var(--color-forest), var(--color-ink));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: photo-bg-zoom 10s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes photo-bg-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-bg__photo {
    animation: none;
  }
}

.photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-ink);
  opacity: 0.75;
  box-shadow: inset 0px -6px 20px 0px rgba(0, 0, 0, 0.25), inset 0px 8px 24px 0px rgba(0, 0, 0, 0.35);
}

/* ---- Numbered markers (about list, service cards) ---- */

.num {
  font-family: var(--font-serif-accent);
  font-style: italic;
  color: var(--color-sage);
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  position: relative;
  z-index: 0;
  overflow: hidden;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 18px 36px;
  border: 1px solid transparent;
  transition: color 0.35s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn--primary,
.btn--outline {
  background: var(--color-paper);
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.btn--primary:hover,
.btn--outline:hover {
  color: var(--color-paper);
  border-color: var(--color-sage);
}

/* Transparent with a hairline border and cream text — for sitting over a
   dark photo, where the solid cream fill of .btn--primary would be too
   heavy. Shares the base .btn hover sweep, so the ink fill still wipes in
   from the left on hover; the border brightens to full paper to match. */
.btn--ghost {
  background: transparent;
  color: var(--color-paper);
  border-color: rgba(var(--color-paper-rgb), 0.5);
}

.btn--ghost:hover {
  color: var(--color-paper);
  border-color: var(--color-paper);
}

.btn--link {
  padding: 18px 0;
  color: var(--color-paper);
  border: none;
  position: relative;
}

.btn--link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.btn--link:hover::after {
  opacity: 1;
}

.btn--full {
  display: block;
  width: 100%;
}

.text-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-sage);
  border-bottom: 1px solid rgba(var(--color-sage-rgb), 0.4);
  padding-bottom: 4px;
  transition: border-color 0.2s ease;
}

.text-link:hover {
  border-color: var(--color-sage);
}

/* ---- Section transitions ----
   A soft blurred band straddling the seam between stacked homepage
   sections, so hard background-color/photo edges (e.g. cream -> ink)
   blend rather than cut sharply. Purely decorative — no pointer events. */

.about,
.services,
.portfolio-teaser,
.quote,
.why-not-ai,
.cta,
.gallery {
  position: relative;
}

.about::before,
.services::before,
.portfolio-teaser::before,
.quote::before,
.gallery::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 120px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 40%, black 60%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 40%, black 60%, transparent);
  pointer-events: none;
  z-index: 5;
}


/* ---- common/navigation/navigation.css ---- */
/* ---- Navigation (common component) ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
  box-sizing: border-box;
  padding: 0 var(--gutter-desktop);
  border-bottom: 1px solid rgba(var(--color-ink-rgb), 0.1);
  box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.22);
}

/* Translucent overlay layer, separated so opacity/blur don't affect the
   logo/links sitting on top of it. Default = dark overlay for sitting on
   top of the hero photo. .nav--light = frosted cream, for sections with
   no photo behind the nav (portfolio, contact). */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(var(--color-ink-rgb), 0.88), rgba(var(--color-ink-rgb), 0));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.nav--light::before {
  background: var(--color-paper);
  opacity: 0.82;
}

.nav__logo {
  display: block;
  line-height: 0;
}

.nav__logo img {
  height: 64px;
  width: auto;
}

.nav__links ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav__links a {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-paper);
  transition: color 0.2s ease;
}

.nav--light .nav__links a {
  color: var(--color-ink);
}

.nav__links a:hover {
  color: var(--color-sage);
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__links a[aria-current='page'] {
  color: var(--color-sage);
}

.nav--light .nav__links a[aria-current='page'] {
  color: var(--color-forest);
}

.nav__links a[aria-current='page']::after {
  background: var(--color-sage);
  transform: scaleX(1);
}

.nav--light .nav__links a[aria-current='page']::after {
  background: var(--color-forest);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-paper);
  transition: background 0.2s ease, transform 0.3s ease, opacity 0.2s ease;
}

.nav--light .nav__hamburger span {
  background: var(--color-ink);
}

/* Morph into an X when the mobile menu is open. */
.nav__hamburger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav__hamburger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 40px;
  position: fixed;
  top: var(--nav-height-mobile);
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--color-ink);
  padding: var(--space-lg) var(--gutter-mobile);
}

.mobile-menu.open {
  display: flex;
}

/* The nav's drop shadow is meant to lift it off the hero photo behind it —
   with the mobile menu open, that same shadow bleeds onto the menu's solid
   background and reads as a gap. Suppress it while the menu is open. */
.nav:has(~ .mobile-menu.open) {
  box-shadow: none;
}

.mobile-menu a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-body-sm);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-paper);
}

@media (max-width: 768px) {
  .nav {
    height: var(--nav-height-mobile);
    padding: 0 var(--gutter-mobile);
  }

  /* The mobile nav bar is 76px tall, so the logo can comfortably take ~54px
     and still leave breathing room above and below. At 42px it read as
     undersized next to the hamburger and lost the wordmark's legibility. */
  .nav__logo img {
    height: 54px;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }
}

/* ---- common/footer/footer.css ---- */
/* ---- Footer (common component) ---- */

.site-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-ink);
  padding: var(--space-lg) var(--gutter-desktop);
  border-top: 1px solid rgba(var(--color-paper-rgb), 0.1);
}

.site-footer__logo {
  display: block;
  line-height: 0;
}

.site-footer__logo img {
  height: 44px;
  width: auto;
}

.site-footer__copy {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  color: var(--color-sage);
}

@media (max-width: 768px) {
  .site-footer {
    padding: var(--space-lg) var(--gutter-mobile);
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  /* Soft blend from the CTA section above into the footer, replacing the
     hard border-top with a gentle blurred seam on mobile. */
  .site-footer {
    border-top: none;
  }

  .site-footer::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 120px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 40%, black 60%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 40%, black 60%, transparent);
    pointer-events: none;
    z-index: 5;
  }
}

/* ---- common/reveal/reveal.css ---- */
/* ---- Scroll reveal (common) ----
   Elements marked [data-reveal] start faded out, slightly lowered, and
   slightly scaled down, then ease up to full size as they scroll into
   view (see reveal.js) — reads as the content gently zooming into place
   rather than just fading. Purely decorative — content is never hidden
   if JS doesn't run. */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.94);
  transition: opacity 1.4s var(--ease-reveal),
    transform 1.4s var(--ease-reveal);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger multi-item groups so they cascade in rather than popping
   together all at once. */
.service-card:nth-child(2) {
  transition-delay: 0.12s;
}

.service-card:nth-child(3) {
  transition-delay: 0.24s;
}

.portfolio-card:nth-child(2) {
  transition-delay: 0.08s;
}

.portfolio-card:nth-child(3) {
  transition-delay: 0.16s;
}

.portfolio-card:nth-child(4) {
  transition-delay: 0.24s;
}

.faq-row:nth-child(3) {
  transition-delay: 0.08s;
}

.faq-row:nth-child(4) {
  transition-delay: 0.16s;
}

.field:nth-child(2) {
  transition-delay: 0.05s;
}

.field:nth-child(3) {
  transition-delay: 0.1s;
}

.field:nth-child(4) {
  transition-delay: 0.15s;
}

.field:nth-child(5) {
  transition-delay: 0.2s;
}

.field:nth-child(6) {
  transition-delay: 0.25s;
}

/* (7) is the file upload — previously missed, so it arrived before the
   fields above it. */
.field:nth-child(7) {
  transition-delay: 0.3s;
}

/* The submit button sits below the fold of the form's own scroll container,
   so unlike the fields above it, it's never part of the arrival cascade — it
   reveals only once the user scrolls down to reach it. Making them then sit
   through the full 1.4s fade reads as the button being slow to load. */
.form > .btn--full {
  transition-delay: 0.06s;
  transition-duration: 0.5s;
}

/* No motion for anyone who's asked for it, and no invisible content if JS
   never runs (script removes .no-js from <html> as soon as it executes). */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ---- sections/hero/hero.css ---- */
/* ---- Hero (section component) ---- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 780px;
  background: var(--color-ink);
  padding: 0 var(--gutter-desktop);
  overflow: hidden;
  /* Nav is fixed/out-of-flow, so it floats transparently over the photo —
     the hero itself needs no offset to sit behind it. */
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 50%;
  padding: var(--space-2xl) 0;
}

.hero__content h1 {
  font-size: var(--fs-hero-headline);
  line-height: var(--lh-tight);
  color: var(--color-paper);
  margin-bottom: var(--space-lg);
  letter-spacing: 9px;
}

.hero__content h1 em {
  font-family: var(--font-serif-accent);
  font-weight: 300;
  font-style: normal;
}

.hero__subhead {
  font-size: var(--fs-body-lg);
  color: var(--color-paper);
  opacity: 0.72;
  max-width: 30em;
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.hero__collage {
  position: absolute;
  top: 15%;
  right: 5%;
  width: 39%;
  height: 85%;
}

.hero__image--main {
  position: absolute;
  top: 0;
  right: 14%;
  width: 79%;
  height: 79%;
  object-fit: cover;
}

.hero__image--accent {
  position: absolute;
  left: 47%;
  top: 64%;
  width: 41%;
  height: 42%;
  object-fit: cover;
  border: 8px solid var(--color-paper);
  transform: translateY(-50%) rotate(4deg);
  z-index: 2;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 0;
  }

  .hero__collage {
    position: relative;
    width: 100%;
    height: 460px;
    right: 0;
  }

  .hero__image--main {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
  }

  .hero__image--accent {
    width: 39%;
    height: 205px;
    right: var(--gutter-mobile);
    bottom: -90px;
    border-width: 8px;
    left: 51%;
    top: 84%;
  }

  .hero__content {
    width: 100%;
    padding: var(--space-2xl) var(--gutter-mobile) var(--space-xl);
    box-sizing: border-box;
  }

  .hero__content h1 {
    font-size: var(--fs-hero-headline-mobile);
    line-height: 1.06;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
}

/* ---- sections/about/about.css ---- */
/* ---- About (section component) ---- */

.about {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xl) var(--gutter-desktop);
  background: var(--color-ink);
  border-top: 1px solid rgba(var(--color-paper-rgb), 0.08);
  border-bottom: 1px solid rgba(var(--color-paper-rgb), 0.08);
  box-shadow: 0px 28px 26px 0px rgba(0, 0, 0, 0.25);
}

.about__media {
  position: relative;
  width: 40%;
  flex-shrink: 0;
  height: 460px;
}

.about__plate {
  position: absolute;
  left: -24px;
  top: 60px;
  width: 84%;
  height: 90%;
  background: var(--color-forest);
}

.about__portrait {
  position: absolute;
  left: 40px;
  top: 0;
  width: 84%;
  height: 90%;
  object-fit: cover;
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.2), -20px 20px 32px -4px rgba(0, 0, 0, 0.4);
}

.about__content {
  width: 56%;
}

.about__content h2 {
  font-size: var(--fs-section-headline);
  color: var(--color-paper);
  margin-bottom: var(--space-lg);
}

.about__content p {
  font-size: var(--fs-body-sm);
  color: var(--color-muted-on-dark);
  line-height: var(--lh-body-loose);
  max-width: 44em;
  margin-bottom: var(--space-md);
}

.about__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md) var(--space-xl);
}

.about__list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--color-muted-on-dark);
}

@media (max-width: 768px) {
  .about {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--gutter-mobile);
  }

  .about__media {
    width: 100%;
    height: auto;
    /* A fixed pixel height here made the frame go very wide/short on
       anything close to the tablet end of this breakpoint (mobile width
       stretches out, height didn't), so object-fit: cover on the portrait
       was cropping down to just a tight band across the face. Locking the
       frame to a portrait ratio keeps the crop sane at any width. */
    aspect-ratio: 4 / 5;
  }

  .about__plate {
    left: auto;
    right: 5%;
    top: 40px;
    width: 80%;
  }

  .about__portrait {
    left: 0;
    width: 82%;
  }

  .about__content {
    width: 100%;
  }

  .about__content h2 {
    font-size: var(--fs-section-headline-mobile);
  }

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

/* ---- sections/services/services.css ---- */
/* ---- Services (section component) ---- */

.services {
  background: var(--color-paper);
  filter: drop-shadow(0px 43px 4.5px rgba(0, 0, 0, 0.25));
}

.services__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-xl);
  padding: var(--space-xl) var(--gutter-desktop) var(--space-lg);
}

.services__title-col h2 {
  font-size: var(--fs-section-headline);
  color: var(--color-ink);
}

.services__headline-wrap {
  position: relative;
}

.services__title-reflection {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0;
  transform: scaleY(-1);
  transform-origin: center;
  filter: blur(9px);
  opacity: 0.28;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 70%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 70%);
  pointer-events: none;
  user-select: none;
}

.services__intro {
  font-size: var(--fs-body-sm);
  color: var(--color-muted-on-light);
  line-height: var(--lh-body-loose);
  max-width: 26em;
  text-align: right;
}

.services__cards {
  display: flex;
  /* Fallback behind the cards themselves — the reveal-in transition scales
     each card down slightly (see reveal.css [data-reveal]), and a flex
     item's transform doesn't shrink its reserved layout slot, so without
     this the section's cream background could peek through at the edges
     mid-transition. Ink matches the cards' own dark tone so any sliver is
     invisible instead of showing as a white seam. */
  background: var(--color-ink);
}

.service-card {
  position: relative;
  flex: 1;
  min-height: 751px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--color-paper);
  z-index: 1;
  /* Dark fallback so any subpixel seam around the photo (from the scale
     transforms below) shows ink, not the section's cream background. */
  background: var(--color-ink);
  transition: transform 0.5s var(--ease-reveal), box-shadow 0.5s ease;
}

/* Pop the card forward slightly on hover, with its photo fogging over like
   frosted glass behind the (still-sharp) text. */
.service-card:hover {
  transform: scale(1.045);
  z-index: 5;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

/* Promote all three cards to their own compositor layers as soon as the
   pointer enters the row — before any individual card's hover transition
   starts. Without this the browser promotes a card at the moment its own
   hover begins, and for a frame or two the photo and its dark overlay are
   rasterized separately, flashing un-overlaid photo along the edge where
   the growing card overlaps its neighbour. */
.services__cards:hover .service-card {
  will-change: transform;
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: filter 0.5s ease, transform 0.6s ease;
}

.service-card:hover img {
  filter: blur(6px) brightness(0.92);
  transform: scale(1.08);
}

.service-card--photo::after {
  content: '';
  position: absolute;
  /* -1px, not 0: at fractional scale values the overlay's edge can round a
     subpixel short of the photo's, leaving a hairline of un-darkened photo.
     The overspill is clipped by the card's overflow: hidden. */
  inset: -1px;
  background: var(--color-ink);
  opacity: 0.72;
  z-index: 1;
}

.service-card--color {
  background: var(--color-cta-bg);
}

/* Cards 1 and 2 get a deeper, dark-forest-tinted treatment. */
.service-card:nth-child(1)::after {
  background: var(--color-forest-deep);
  opacity: 0.88;
}

.service-card:nth-child(2) {
  background: var(--color-forest-deep);
}

.service-card:nth-child(3)::after {
  opacity: 0.8;
}

.service-card__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 360px;
  padding: 0 var(--space-xl);
  max-width: 400px;
  box-sizing: border-box;
}

.service-card__text .num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-sage);
  margin-bottom: var(--space-sm);
}

.service-card__text h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-card-title);
  letter-spacing: 8px;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.service-card__text p {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: var(--lh-body);
  opacity: 0.8;
  max-width: 26em;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .services__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-xl) var(--gutter-mobile);
  }

  .services__title-col h2 {
    font-size: var(--fs-section-headline-mobile);
  }

  .services__intro {
    text-align: left;
  }

  .services__cards {
    flex-direction: column;
  }

  .service-card {
    min-height: 480px;
    box-shadow: 0 32px 56px rgba(0, 0, 0, 0.55), 0 12px 20px rgba(0, 0, 0, 0.35);
  }

  /* Scale is driven directly by scroll position on mobile (see
     reveal.js) — no transition, so it tracks the scroll 1:1 instead of
     lagging behind it. */
  .service-card img {
    transition: none;
  }

  .service-card__text {
    height: 340px;
    padding: 0 var(--space-lg);
  }

  .service-card__text h3 {
    font-size: var(--fs-card-title-mobile);
  }

  /* A thin line under the stacked cards to mark the end of the services
     section before the dark portfolio-teaser section begins. */
  .services {
    border-bottom: 1px solid rgba(var(--color-paper-rgb), 0.18);
  }
}

/* ---- sections/portfolio-teaser/portfolio-teaser.css ---- */
/* ---- Portfolio Teaser (section component) ---- */

.portfolio-teaser {
  background: var(--color-ink);
  padding: var(--space-xl) var(--gutter-desktop);
  text-align: left;
}

.portfolio-teaser__content {
  margin: 0 auto;
}

.portfolio-teaser .eyebrow {
  justify-content: flex-start;
}

.portfolio-teaser__content h2 {
  font-size: 2.25rem;
  color: var(--color-paper);
  margin-bottom: var(--space-md);
}

.portfolio-teaser__content p {
  font-size: var(--fs-body-sm);
  color: var(--color-muted-on-dark);
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .portfolio-teaser {
    padding: var(--space-lg) var(--gutter-mobile);
  }

  .portfolio-teaser .eyebrow {
    justify-content: flex-end;
  }

  .portfolio-teaser__content h2 {
    font-size: var(--fs-section-headline-mobile);
  }
}

/* ---- sections/quote/quote.css ---- */
/* ---- Quote (section component) ---- */

.quote {
  position: relative;
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--gutter-desktop);
  overflow: hidden;
}

/* .quote__bg / .quote__bg-photo carry the shared .photo-bg / .photo-bg__photo
   classes too (see base.css) — that's where the zoom/frame/vignette
   mechanics live. Only quote-specific extras stay here. */

/* Two soft, independently-drifting light/mist blobs layered over the photo
   for extra atmosphere and movement beyond the slow background zoom —
   screen blend mode so they read as light breaking through the trees
   rather than a flat haze, and kept subtle so the quote text stays
   legible. Sits above the dark vignette (::after) via z-index so the
   drift is actually visible against the darkened photo. */
.quote__bg-fog {
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(var(--color-paper-rgb), 0.22), transparent 45%),
    radial-gradient(circle at 75% 65%, rgba(197, 213, 172, 0.16), transparent 40%);
  background-repeat: no-repeat;
  animation:
    quote-fog-drift-a 26s ease-in-out infinite alternate,
    quote-fog-drift-b 34s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes quote-fog-drift-a {
  0% {
    transform: translate(-4%, -2%) scale(1);
  }
  100% {
    transform: translate(4%, 3%) scale(1.08);
  }
}

@keyframes quote-fog-drift-b {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote__bg-fog {
    animation: none;
  }
}

.quote blockquote {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.quote p {
  font-family: var(--font-serif-accent);
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-quote);
  line-height: 1.3;
  color: var(--color-paper);
  margin-bottom: var(--space-lg);
}

.quote cite {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  font-style: normal;
  color: var(--color-sage);
}

@media (max-width: 768px) {
  .quote {
    min-height: 320px;
    padding: var(--space-lg) var(--gutter-mobile);
    /* A real drop shadow (not inset) so the section reads as sitting
       forward/raised above the sections around it, rather than a framed
       window sunk into the page. box-shadow on the section itself isn't
       clipped by its own overflow: hidden, so it bleeds onto the
       neighboring sections above and below. */
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  }

  .quote p {
    font-size: 1.75rem;
  }
}

/* ---- sections/why-not-ai/why-not-ai.css ---- */
/* ---- Why Not AI (section component) ---- */

.why-not-ai {
  background: var(--color-ink);
  padding: var(--space-lg) var(--gutter-desktop);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.why-not-ai__left h2 {
  font-style: italic;
  font-size: 2.75rem;
  color: var(--color-paper);
  margin: var(--space-xs) 0 var(--space-sm);
}

.why-not-ai__left p {
  font-size: var(--fs-body-sm);
  color: var(--color-muted-on-dark);
  line-height: 1.5;
  max-width: 30em;
}

.why-not-ai__faq > p {
  font-size: var(--fs-body-sm);
  color: var(--color-muted-on-dark);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.faq-row {
  padding: 6px 0;
}

.faq-row h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-paper);
  margin-bottom: 2px;
}

.faq-row p {
  font-size: 0.875rem;
  color: var(--color-muted-on-dark);
  line-height: 1.4;
}

.why-not-ai__closing {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.625rem;
  color: var(--color-paper);
  margin-top: var(--space-sm);
}

@media (max-width: 768px) {
  .why-not-ai {
    grid-template-columns: 1fr;
    padding: var(--space-2xl) var(--gutter-mobile);
    gap: var(--space-md);
  }

  .why-not-ai__left h2 {
    font-size: var(--fs-section-headline-mobile);
  }

  .why-not-ai__closing {
    font-size: 1.375rem;
  }
}

/* ---- sections/cta/cta.css ---- */
/* ---- CTA (section component) ---- */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  text-align: left;
  background: var(--color-cta-bg);
  padding: var(--space-xl) var(--gutter-desktop);
}

.cta h2 {
  font-style: italic;
  font-size: 1.75rem;
  color: var(--color-paper);
  margin: 0;
}

.cta .btn {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--gutter-mobile);
    gap: var(--space-lg);
  }

  .cta h2 {
    font-size: 1.5rem;
  }
}

/* ---- pages/home/home.css ---- */
/* ---- Home page — page-specific layout ---- */

body {
  max-width: var(--page-max-width);
  margin: 0 auto;
}

main {
  display: block;
}

/* Home page's hero bleeds up behind the fixed nav, unlike every other page. */
main#main-content {
  padding-top: 0;
}
