/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Coastal Retreat palette */
  --paper: #F7F9F8;
  --paper-dim: #DBE2DC;
  --ink: #335765;          /* deep navy-teal — headings, primary text, dark-section bg */
  --ink-deep: #223941;     /* darker navy — hover/pressed states */
  --ink-soft: #4A6670;     /* secondary body text, ~5.7:1 on --paper */
  --ink-faint: #5C7981;    /* captions/meta, ~4.6:1 on --paper */
  --amber: #7F543D;        /* warm brown accent — passes AA directly as text, ~6:1 on --paper */
  --amber-bright: #C08A5E; /* lighter brown — decorative/large elements only */
  --amber-text: #6B4530;   /* extra-safe darker brown for small text */
  --amber-on-dark: #E6CBA8;/* warm accent text against the navy dark section */
  --teal: #74A8A4;         /* palette teal-green — decorative/large elements only */
  --teal-text: #3D6B66;    /* darkened teal-green, safe for text, ~5.6:1 on --paper */
  --teal-deep: #335765;    /* dark section background (same as --ink) */
  --sky: #B6D9E0;          /* light sky blue — subtle tints/borders */
  --line: rgba(51, 87, 101, 0.14);
  --line-strong: rgba(51, 87, 101, 0.28);

  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'Space Grotesk', 'IBM Plex Mono', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1160px;
  --gutter: clamp(1.5rem, 4vw, 4rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75em 1.25em;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ============================================================
   CALIBRATION BAR — signature element
   Doubles as scroll progress + a nod to Jeremy's QC/production background
   ============================================================ */
.calibration-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--line);
  z-index: 300;
}
.calibration-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ink), var(--amber));
  transition: width 0.08s linear;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 4px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: rgba(247, 249, 248, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__mark {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
}
.nav__mark img {
  height: 48px;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  gap: clamp(1rem, 2vw, 2.2rem);
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1.5px;
  background: var(--amber);
  transition: width 0.25s var(--ease);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { width: 100%; }
.nav__links a:hover { color: var(--ink); }

.nav__cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border: 1px solid var(--ink);
  padding: 0.5em 1.1em;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5em;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(5rem, 14vh, 9rem) var(--gutter) clamp(3rem, 8vh, 5rem);
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.hero__grid { max-width: 780px; margin: 0 auto; }

.hero__signal {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  padding: 0.45em 0.9em 0.45em 0.7em;
  border-radius: 999px;
  margin-bottom: 2rem;
}
.tally-light {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(127, 84, 61, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 84, 61, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(127, 84, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 84, 61, 0); }
}

.hero__title {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.hero__role {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--teal-text);
  font-weight: 500;
  margin-bottom: 1.6rem;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 2.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.hero__watch {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.hero__watch:hover { color: var(--amber-text); }
.hero__watch-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--amber);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.hero__watch-play svg { width: 11px; height: 11px; margin-left: 1px; }
.hero__watch:hover .hero__watch-play { border-color: var(--amber); transform: scale(1.08); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.9em 1.6em;
  border-radius: 2px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn::after {
  content: '\2192';
  display: inline-block;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--ink-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(51,87,101,0.4);
}
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn--large { padding: 1.05em 2em; font-size: 0.95rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem clamp(1.5rem, 4vw, 3rem);
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 0.35em; }
.stat dt {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--amber-text);
}
.stat dd {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink-faint);
  max-width: 18ch;
}

.hero__console {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
  max-width: 780px;
  margin: 4rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.hero__clock {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  white-space: nowrap;
}
.hero__clock time {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.hero__clock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-teal 2.2s infinite;
}
@keyframes pulse-teal {
  0% { box-shadow: 0 0 0 0 rgba(116, 168, 164, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(116, 168, 164, 0); }
  100% { box-shadow: 0 0 0 0 rgba(116, 168, 164, 0); }
}

.hero__meter {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 28px;
}
.hero__meter span {
  width: 5px;
  height: 8px;
  border-radius: 1px;
  background: var(--teal);
  animation: meter-levels 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.09s);
  transform-origin: bottom;
}
.hero__meter span:nth-child(odd) { background: var(--amber); }
.hero__meter span:nth-child(3n) { background: var(--sky); }

@keyframes meter-levels {
  0%, 100% { height: 6px; }
  50% { height: 26px; }
}

.hero__scroll-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 2.5rem auto 0;
  width: 36px;
  height: 36px;
  color: var(--ink-faint);
  transition: color 0.2s var(--ease);
}
.hero__scroll-cue:hover { color: var(--amber); }
.hero__scroll-cue svg {
  width: 20px;
  height: 20px;
  animation: scroll-cue-bounce 2s ease-in-out infinite;
}
@keyframes scroll-cue-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero__grid > .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero__grid > .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero__grid > .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero__grid > .reveal:nth-child(4) { transition-delay: 0.35s; }
.hero__grid > .reveal:nth-child(5) { transition-delay: 0.45s; }
.hero__grid > .reveal:nth-child(6) { transition-delay: 0.55s; }

/* Small cascade for timeline entries that enter the viewport together */
.timeline > .timeline__item:nth-child(1) { transition-delay: 0s; }
.timeline > .timeline__item:nth-child(2) { transition-delay: 0.08s; }
.timeline > .timeline__item:nth-child(3) { transition-delay: 0.16s; }
.timeline > .timeline__item:nth-child(4) { transition-delay: 0.24s; }
.timeline > .timeline__item:nth-child(5) { transition-delay: 0.32s; }
.timeline > .timeline__item:nth-child(6) { transition-delay: 0.4s; }

/* Work-output cards cascade in once their group is revealed. Keep the
   `transition` shorthand declared in exactly ONE rule per selector —
   splitting it across two rules makes the later one silently reset the
   earlier one's properties and delays. */
.doc-card,
.project,
.shots > .shot,
.photo-grid > .shot {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
    box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  transition-delay: calc(var(--ti, 0) * 0.06s), calc(var(--ti, 0) * 0.06s), 0s, 0s;
}
.reveal.is-visible .doc-card,
.reveal.is-visible .project,
.reveal.is-visible .shots > .shot,
.reveal.is-visible .photo-grid > .shot {
  opacity: 1;
  transform: translateY(0);
}
.reveal.is-visible .doc-card:hover,
.reveal.is-visible .shots > .shot:hover,
.reveal.is-visible .photo-grid > .shot:hover {
  transform: translateY(-4px);
}

/* ============================================================
   SHARED SECTION LAYOUT
   ============================================================ */
section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 7rem) var(--gutter);
}
.section-head { margin-bottom: clamp(2.5rem, 6vh, 4rem); max-width: 640px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-text);
  margin: 0 0 0.9em;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.01em;
}

/* ============================================================
   SECONDARY PAGES (Work Output, My Testimony)
   ============================================================ */
.page-header { padding-bottom: clamp(2rem, 5vh, 3rem); }
.page-header__back {
  display: inline-block;
  margin-bottom: 1.5em;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
  transition: color 0.2s var(--ease);
}
.page-header__back:hover { color: var(--ink); }
.page-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.6em;
}
.page-header__lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Work Output gallery */
.gallery__group { margin-bottom: clamp(3rem, 6vh, 4.5rem); }
.gallery__group:last-child { margin-bottom: 0; }
.gallery__group-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-text);
  font-weight: 500;
  margin-bottom: 1.25em;
}
.gallery__group-note {
  font-size: 0.92rem;
  color: var(--ink-faint);
  max-width: 62ch;
  margin: -0.5em 0 1.75em;
}

/* ---------- Work summary band ---------- */
.work-band {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: var(--paper);
  padding: 2rem;
  margin-bottom: 2.5rem;
}
.work-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(247,249,248,0.16) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(115deg, transparent 45%, black);
  mask-image: linear-gradient(115deg, transparent 45%, black);
}
.work-band__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1.5rem;
}
.work-band__n {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
}
.work-band__n em { font-style: normal; color: var(--amber-on-dark); font-size: 0.55em; }
.work-band__k {
  font-size: 0.74rem;
  color: rgba(247, 249, 248, 0.7);
  margin-top: 0.5em;
  line-height: 1.35;
}

/* ---------- Project meta tags ---------- */
.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin: 0 0 1.25em;
}
.project__meta span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35em 0.7em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-faint);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.project:hover .project__meta span { border-color: var(--amber); color: var(--amber-text); }

/* ---------- Filter bar ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.filters__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-right: 0.4rem;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  padding: 0.5em 1em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.filter-btn__n {
  opacity: 0.55;
  margin-left: 0.4em;
  font-size: 0.9em;
}
.gallery__group[hidden] { display: none; }
.filter-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ---------- Document cards (live preview of the real page) ---------- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}
/* NOTE: `transition` for .doc-card is declared once, in the reveal block above. */
.doc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(51, 87, 101, 0.06);
}
.doc-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 28px -12px rgba(51, 87, 101, 0.3);
}
.doc-card__preview {
  display: block;
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--paper-dim);
  border-bottom: 1px solid var(--line);
}
/* The preview is a real, scaled-down render of the document itself, so it can
   never drift out of sync with the page it links to. */
.doc-card__preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 900px;
  height: 1200px;
  border: 0;
  transform: scale(0.29);
  transform-origin: top left;
  pointer-events: none;
}
.doc-card__preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(255, 255, 255, 0.9));
}
.doc-card__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5em; }
.doc-card__type {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-text);
}
.doc-card__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.doc-card__desc { font-size: 0.85rem; color: var(--ink-faint); line-height: 1.45; }

/* ---------- Project blocks ---------- */
.project { margin-bottom: 2.75rem; }
.project:last-child { margin-bottom: 0; }
.project__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5em 1em;
  margin-bottom: 0.5em;
}
.project__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.project__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}
.project__brief {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 1.25em;
}

/* ---------- Shots ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: start;
}
.shots--three { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
/* NOTE: `transition` for .shot is declared once, in the reveal block above. */
.shot {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-dim);
  cursor: zoom-in;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot--tall { grid-row: span 2; }
.shot--tall img { max-height: 420px; object-position: top; }
.shot:hover { box-shadow: 0 12px 24px -10px rgba(51, 87, 101, 0.35); }
.shot__label {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35em 0.7em;
  border-radius: 3px;
  background: rgba(34, 57, 65, 0.85);
  color: var(--paper);
  backdrop-filter: blur(4px);
}

/* ---------- Photo grid ----------
   Uniform 4:5 cells rather than CSS `columns` masonry: masonry flows items
   into whichever column is shortest, so portrait/landscape mixes leave ragged
   column ends. A fixed aspect-ratio + object-fit:cover keeps every row aligned. */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.photo-grid .shot { aspect-ratio: 4 / 5; }
.photo-grid .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease);
}
.photo-grid .shot:hover img { transform: scale(1.06); }
/* Zoom cue on hover */
.photo-grid .shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(34, 57, 65, 0.45), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.photo-grid .shot:hover::after { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 57, 65, 0.94);
  backdrop-filter: blur(6px);
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}
.lightbox__figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(247, 249, 248, 0.75);
  text-align: center;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 249, 248, 0.25);
  border-radius: 50%;
  background: rgba(34, 57, 65, 0.6);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--amber); border-color: var(--amber); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
body.lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.6rem; }
  .doc-card__preview { height: 170px; }
  .shot--tall { grid-row: span 1; }
  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
}

.contact--compact { padding-top: clamp(2rem, 5vh, 3rem); }

/* ============================================================
   MY TESTIMONY
   ============================================================ */
.tst {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.tst__intro {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  border-left: 3px solid var(--amber);
  padding-left: 1.5rem;
  margin: 0 0 clamp(3rem, 7vh, 5rem);
  max-width: 60ch;
}
.tst__intro strong { color: var(--ink); font-weight: 500; }

/* Chapter */
.tst-stage { margin-bottom: clamp(3.5rem, 9vh, 6rem); }
.tst-stage__head {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  margin-bottom: 1.75rem;
}
.tst-stage__no {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.tst-stage__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
}
.tst-body p {
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--ink-soft);
  margin: 0 0 1.3em;
  max-width: 64ch;
}
.tst-body p strong { color: var(--ink); font-weight: 500; }
.tst-body em { font-style: italic; }
/* Drop cap on the first paragraph of a chapter */
.tst-lead::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.78;
  float: left;
  margin: 0.06em 0.12em 0 0;
  color: var(--amber-text);
  font-weight: 500;
}

/* Split row — paragraph beside a photo, alternating sides */
.tst-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin: 2.25rem 0;
}
.tst-split--flip .tst-split__media { order: -1; }
.tst-split__text p { margin-bottom: 1em; }
.tst-split__text p:last-child { margin-bottom: 0; }

/* Figure with graceful placeholder */
.tst-figure { margin: 0; }
.tst-figure__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px -18px rgba(51, 87, 101, 0.4);
}
.tst-figure__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.tst-figure:hover .tst-figure__frame img { transform: scale(1.04); }
.tst-figure--wide .tst-figure__frame { aspect-ratio: 3 / 2; }
/* Placeholder shown only when the image is missing (JS/onerror adds .is-empty) */
.tst-figure__ph {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  text-align: center;
  padding: 1.5rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}
.tst-figure__ph svg { width: 26px; height: 26px; opacity: 0.6; }
.tst-figure__frame.is-empty { border-style: dashed; }
.tst-figure__frame.is-empty .tst-figure__ph { display: flex; }
.tst-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
  margin-top: 0.85em;
  text-align: center;
}

/* Full-bleed cinematic photo break between beats */
.tst-break {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  margin: clamp(2.5rem, 6vh, 4.5rem) 0;
  overflow: hidden;
}
.tst-break__frame {
  position: relative;
  width: 100%;
  max-height: 68vh;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-dim);
}
.tst-break__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  transition: transform 1.4s var(--ease);
}
.tst-break.is-visible .tst-break__frame img { transform: scale(1); }
.tst-break__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(to top, rgba(34,57,65,0.82), transparent);
  color: var(--paper);
}
.tst-break__cap span {
  display: block;
  max-width: var(--container);
  margin: 0 auto;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  line-height: 1.3;
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}
.tst-break__empty {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.tst-break__empty svg { width: 26px; height: 26px; opacity: 0.6; }
.tst-break__frame.is-empty { border: 1px dashed var(--line-strong); }
.tst-break__frame.is-empty img { display: none; }
.tst-break__frame.is-empty .tst-break__empty { display: flex; }
.tst-break__frame.is-empty + .tst-break__cap,
.tst-break__frame.is-empty .tst-break__cap { display: none; }

/* Feature moment — a framed keepsake (e.g. Dad's letter), centered & intimate */
.tst-feature {
  margin: clamp(2.5rem, 6vh, 4rem) auto;
  max-width: 560px;
  text-align: center;
}
.tst-feature .tst-figure__frame {
  aspect-ratio: auto;
  background: var(--paper);
  padding: 0;
}
.tst-feature .tst-figure__frame img { aspect-ratio: auto; height: auto; display: block; }
.tst-feature a.tst-feature__zoom { display: block; cursor: zoom-in; }
.tst-feature a.tst-feature__zoom:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 3px; }
.tst-feature figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-top: 1.1em;
  line-height: 1.5;
}

/* Pull quote */
.tst-quote {
  margin: 2.5rem 0;
  padding: 0;
  text-align: center;
}
.tst-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 0.5em;
  max-width: 22ch;
  margin-inline: auto;
}
.tst-quote cite {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.tst-quote--tint {
  background: var(--paper-dim);
  border-radius: 10px;
  padding: clamp(2rem, 5vw, 3rem);
}

/* Life-now gallery cluster */
.tst-now {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}
.tst-now .tst-figure__frame { aspect-ratio: 1 / 1; }
.tst-now figcaption { margin-top: 0.6em; }

/* Closing block */
.tst-close {
  margin: clamp(3rem, 7vh, 5rem) 0 0;
  padding: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: var(--paper);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.tst-close::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(247,249,248,0.14) 1px, transparent 1px);
  background-size: 15px 15px;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(115deg, transparent 40%, black);
  mask-image: linear-gradient(115deg, transparent 40%, black);
  pointer-events: none;
}
.tst-close p { position: relative; color: rgba(247, 249, 248, 0.85); font-size: 1.08rem; line-height: 1.7; max-width: 60ch; }
.tst-close p:last-child { margin-bottom: 0; }
.tst-close strong { color: var(--paper); }
.tst-close .tst-close__dash {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--amber-on-dark);
  margin-bottom: 1em;
}

@media (max-width: 700px) {
  .tst-split { grid-template-columns: 1fr; gap: 1.25rem; }
  .tst-split--flip .tst-split__media { order: 0; }
  .tst-figure__frame { max-width: 340px; margin-inline: auto; }
}

/* ============================================================
   STORY
   ============================================================ */
.story { background: var(--paper-dim); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

/* ---------- Intro video ---------- */
.intro-video {
  margin-top: clamp(3rem, 7vh, 5rem);
  padding-top: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.intro-video__head .eyebrow { color: var(--amber-text); margin-bottom: 0.9em; }
.intro-video__head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
.intro-video__note {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 42ch;
  margin: 0;
}

.intro-video__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--teal-deep);
  cursor: pointer;
  box-shadow: 0 18px 40px -20px rgba(51, 87, 101, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.intro-video__frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -22px rgba(51, 87, 101, 0.55);
}
.intro-video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(0.9);
}
.intro-video__scrim {
  position: absolute;
  inset: 0;
  /* Light wash so the video frame reads clearly; a soft radial pool keeps the
     white play button legible over whatever is behind its centre. */
  background:
    radial-gradient(circle at 50% 50%, rgba(34,57,65,0.5) 0%, rgba(34,57,65,0.12) 42%, transparent 68%),
    linear-gradient(to top, rgba(34,57,65,0.45), rgba(34,57,65,0.05) 55%);
  transition: background 0.3s var(--ease);
}
.intro-video__frame:hover .intro-video__scrim {
  background:
    radial-gradient(circle at 50% 50%, rgba(34,57,65,0.42) 0%, rgba(34,57,65,0.1) 42%, transparent 68%),
    linear-gradient(to top, rgba(34,57,65,0.4), rgba(34,57,65,0.03) 55%);
}
.intro-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.4);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.intro-video__play::before {
  /* pulsing ring */
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  opacity: 0.7;
  animation: intro-pulse 2.4s ease-out infinite;
}
.intro-video__play svg { width: 26px; height: 26px; margin-left: 3px; }
.intro-video__frame:hover .intro-video__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--amber);
  color: var(--paper);
}
@keyframes intro-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}
.intro-video__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--paper);
  background: rgba(34, 57, 65, 0.7);
  backdrop-filter: blur(6px);
  padding: 0.45em 0.85em;
  border-radius: 999px;
}
.intro-video__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-on-dark);
  animation: pulse-teal 2.2s infinite;
}
/* Once a real Loom ID is wired in, JS adds .is-live to swap the copy/badge */
.intro-video.is-live .intro-video__badge { display: none; }
.intro-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .intro-video__play::before { animation: none; }
}
.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--teal-deep);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: perspective(800px) rotateX(0deg) rotateY(0deg) scale(1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s var(--ease);
  will-change: transform;
}
.photo-frame.is-tilting {
  transition: transform 0.08s linear;
  box-shadow: 0 20px 40px -16px rgba(51, 87, 101, 0.35);
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.photo-frame__fallback {
  display: none;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--amber-on-dark);
  letter-spacing: 0.02em;
}
.photo-frame--empty .photo-frame__fallback { display: block; }
.photo-caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 0.9em;
  text-align: center;
}
.story__copy p { font-size: 1.05rem; color: var(--ink-soft); max-width: 60ch; }
.story__signoff { font-family: var(--font-display); font-style: italic; color: var(--ink); font-size: 1.15rem; }

/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  border-left: 1px solid var(--line-strong);
  padding-left: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2.2rem, 5vh, 3.2rem);
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(1.5rem, 4vw, 3rem) - 5px);
  top: 0.4em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--amber);
}
/* Most recent role reads as "still live" — same pulse language as the hero's tally light */
.experience .timeline__item:first-child::before {
  background: var(--amber);
  animation: pulse 2.2s infinite;
}
.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--teal-text);
  margin-bottom: 0.5em;
}
.timeline__body h3 { font-size: 1.35rem; margin-bottom: 0.2em; }
.timeline__meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 0.9em;
}
.timeline__body ul { display: flex; flex-direction: column; gap: 0.5em; max-width: 66ch; }
.timeline__body li {
  position: relative;
  padding-left: 1.2em;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.timeline__body li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--amber-text);
}
.timeline__body strong { color: var(--ink); }

/* ============================================================
   SKILLS
   ============================================================ */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 3.5rem;
}
.skill-cluster h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-text);
  margin-bottom: 1em;
  font-weight: 500;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5em; }
.chips span {
  font-size: 0.85rem;
  padding: 0.5em 0.9em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease),
    opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--ci, 0) * 0.05s);
}
.reveal.is-visible .chips span {
  opacity: 1;
  transform: none;
}
.chips span:hover {
  border-color: var(--amber);
  color: var(--ink);
  background: rgba(127, 84, 61, 0.08);
}

.tools { border-top: 1px solid var(--line); padding-top: 2.5rem; }
.eyebrow--tools { margin-bottom: 1.2em; }
.tools__track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.tools__list {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  width: max-content;
  animation: scroll-tools 44s linear infinite;
  padding-right: 2rem;
}
.tool-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
  flex-shrink: 0;
  width: 88px;
}
.tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(51, 87, 101, 0.06);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.tool-tile:hover .tool-icon {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px -6px rgba(51, 87, 101, 0.22);
}
.tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tool-tile__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink-faint);
  text-align: center;
}
@keyframes scroll-tools {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .tools__list { animation: none; }
  .tools__track { overflow-x: auto; }
}

.languages {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.languages strong { color: var(--ink); }

/* ============================================================
   BEYOND
   ============================================================ */
.beyond { background: var(--teal-deep); color: var(--paper); }
.beyond .eyebrow { color: var(--amber-on-dark); }
.beyond h2 { color: var(--paper); }
.beyond__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.beyond__copy {
  font-size: 1.05rem;
  color: rgba(247, 249, 248, 0.82);
  max-width: 56ch;
}
.beyond__list { display: flex; flex-direction: column; gap: 0.9em; }
.beyond__list li {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  padding-left: 1.3em;
  position: relative;
  color: rgba(247, 249, 248, 0.85);
  white-space: nowrap;
}
.beyond__list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--amber-on-dark);
  font-size: 0.7em;
  top: 0.35em;
}

/* ============================================================
   VOICES / TESTIMONIALS
   ============================================================ */
.voice {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  box-shadow: 0 1px 0 rgba(51, 87, 101, 0.04);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.voices__grid .voice blockquote { flex: 1 1 auto; }
.reveal.is-visible.voice:hover,
.voices__grid .reveal.is-visible.voice:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(34, 57, 65, 0.4);
  border-color: var(--line-strong);
}
/* opening quote mark */
.voice::before {
  content: '\201C';
  position: absolute;
  top: clamp(0.1rem, 1vw, 0.4rem);
  left: clamp(1rem, 2.5vw, 1.8rem);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5rem);
  line-height: 1;
  color: var(--teal);
  opacity: 0.32;
  pointer-events: none;
}
.voice blockquote { margin: 0; position: relative; }
.voice blockquote p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1em;
}
.voice blockquote p:last-child { margin-bottom: 0; }
.voice figcaption {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}
.voice__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
}
.voice__role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--amber-text);
  text-transform: uppercase;
}
/* Featured (lead) testimonial */
.voice--lead {
  background: var(--teal-deep);
  border-color: transparent;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}
.voice--lead::before { color: var(--amber-on-dark); opacity: 0.38; }
.voice--lead blockquote {
  columns: 2;
  column-gap: clamp(2rem, 5vw, 3.5rem);
}
.voice--lead blockquote p {
  font-size: 1.08rem;
  color: rgba(247, 249, 248, 0.9);
  break-inside: avoid;
}
.voice--lead figcaption {
  margin-top: 1.75rem;
  border-top-color: rgba(247, 249, 248, 0.18);
}
.voice--lead .voice__name { color: var(--paper); }
.voice--lead .voice__role { color: var(--amber-on-dark); }
.voices__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  align-items: stretch;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__inner { max-width: 640px; }
.contact__lede { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 2.5rem; }
.contact__links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-bottom: 2.5rem;
}
.contact__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2em 0.2em;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.25s var(--ease), color 0.25s var(--ease);
}
.contact__link:hover {
  padding-left: 0.8em;
  color: var(--amber-text);
}
.contact__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact__value { font-size: 1.05rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 2.5rem var(--gutter) 3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  right: clamp(1.25rem, 3vw, 2.25rem);
  bottom: clamp(1.25rem, 3vw, 2.25rem);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s var(--ease);
  box-shadow: 0 6px 18px -6px rgba(51, 87, 101, 0.4);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--amber); }
.back-to-top svg { width: 20px; height: 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__mark span { display: none; }
}

@media (max-width: 860px) {
  .story__grid { grid-template-columns: 1fr; }
  .photo-frame { max-width: 220px; margin: 0 auto; }
  .photo-caption { text-align: center; }
  .beyond__grid { grid-template-columns: 1fr; }
  .intro-video { grid-template-columns: 1fr; gap: 1.75rem; }
  .voices__grid { grid-template-columns: 1fr; }
  .voice--lead blockquote { columns: 1; }
}

@media (max-width: 1040px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .nav--open .nav__links { max-height: 400px; overflow-y: auto; }
  .nav__links a {
    padding: 1.1em var(--gutter);
    border-top: 1px solid var(--line);
    white-space: normal;
  }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

@media (max-width: 700px) {
  .hero__stats { grid-template-columns: repeat(2, auto); }
}

.nav--open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__toggle span { transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__stats { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; }
  .beyond__list li { white-space: normal; }
}
