/* ============================================================
   Silia Advisory — design tokens
   Palette: near-black + bone (paper) + a single mint-green
   accent, built to sit close to the davidecattaneo.it reference
   (grain, corner registration marks, two-tone editorial type,
   sticky section rail) while keeping Silia's own content, mark
   and copy voice.
   ============================================================ */

:root {
  --ink-950: #0a0b09;
  --ink-900: #121310;
  --ink-800: #1c1d18;
  --ink-700: #292a24;
  --ink-line: rgba(243, 239, 228, 0.12);

  --bone: #ebeae5;
  --bone-100: #dfded7;
  --bone-line: rgba(18, 22, 15, 0.12);

  --ink: #12160f;
  --ink-soft: rgba(18, 22, 15, 0.64);
  --paper-soft: rgba(243, 239, 228, 0.72);

  --accent: #8fe6ab;
  --accent-deep: #3f8f5c;
  --accent-soft: rgba(143, 230, 171, 0.14);

  --radius-card: 16px;
  --radius-input: 12px;
  --radius-pill: 999px;

  --font-display: "Cabinet Grotesk", "General Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "General Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
section { scroll-margin-top: var(--nav-h); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--ink); padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- corner registration marks ---------- */
/* Print-style crop marks framing the opening hero viewport only
   (they'd lose contrast against the bone sections further down).
   A deliberate reference to the editorial/technical source
   material rather than decoration for its own sake. */
.crop-marks span {
  position: absolute;
  width: 7px; height: 7px;
  background: var(--accent);
  z-index: 2;
  pointer-events: none;
}
.crop-marks span:nth-child(1) { top: 20px; left: 20px; }
.crop-marks span:nth-child(2) { top: 20px; right: 20px; }
.crop-marks span:nth-child(3) { bottom: 20px; left: 20px; }
.crop-marks span:nth-child(4) { bottom: 20px; right: 20px; }
@media (max-width: 640px) {
  .crop-marks { display: none; }
}

/* ---------- typography ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  max-width: 20ch;
}
.h2--wide { max-width: 28ch; }
.lede {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 1.5rem;
}
.section--dark .lede { color: rgba(243, 239, 228, 0.72); }

.statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
  max-width: 34ch;
  margin: 0 0 2rem;
}
.statement b { font-weight: 700; }
.statement--wide {
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
/* two-tone editorial rhythm: alternating full-weight and receded
   phrases within a sentence, independent of semantic emphasis */
.dim { opacity: 0.46; font-weight: 400; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--accent);
  color: var(--ink-950);
}
.btn--primary:hover { background: #b4f0c6; }
.btn--ghost-dark {
  border-color: rgba(243, 239, 228, 0.32);
  color: var(--bone);
}
.btn--ghost-dark:hover { border-color: var(--bone); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(10, 11, 9, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--ink-line);
}
.nav__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 2rem;
}
.nav__logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--bone);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-right: auto;
}
/* Minimal top bar: wordmark plus a single menu trigger, at every
   viewport width. No inline link row, no header CTA: the generic
   logo+links+button SaaS header is exactly the template we're
   moving away from. Section jumps live in the overlay and the rail. */
.nav__toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: none;
  border: none;
  color: var(--bone);
  padding: 0.4rem 0;
}
.nav__toggle-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav__toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.nav__toggle-icon i {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--bone);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav.is-open .nav__toggle-icon i:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav__toggle-icon i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Full-screen overlay menu, opened from the trigger above */
.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--ink-950);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  padding: calc(var(--nav-h) + 2.5rem) 24px 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.nav__overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.nav__overlay-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
.nav__overlay-links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  color: rgba(243, 239, 228, 0.5);
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease);
}
.nav__overlay-links a:hover,
.nav__overlay-links a:focus-visible { color: var(--bone); }
.nav__overlay-foot {
  max-width: 1240px;
  margin: 3rem auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.nav__overlay-foot a:not(.btn) {
  color: rgba(243, 239, 228, 0.6);
  font-size: 0.95rem;
}

/* ---------- section rail (desktop) ---------- */
/* Bottom-left, pinned, with a solid highlight block on the active
   item: the reference's own sticky section list. */
.rail {
  position: fixed;
  left: 28px;
  bottom: 28px;
  z-index: 40;
  opacity: 1;
  transition: opacity 0.3s var(--ease);
}
/* the hero and contact sections have their own left-aligned text at
   this position; the rail would sit on top of it, so it hides there */
body.rail-clear .rail { opacity: 0; pointer-events: none; }
.rail ul { display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; }
.rail a {
  display: block;
  padding: 0.15rem 0.45rem;
  margin-left: -0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.rail a:hover { color: var(--ink); }
.rail a.is-active { background: var(--accent); color: var(--ink-950); }

/* rail sits on dark sections too: flip inactive color via section awareness */
body.on-dark .rail a { color: rgba(243, 239, 228, 0.4); }
body.on-dark .rail a:hover { color: var(--bone); }
body.on-dark .rail a.is-active { background: var(--accent); color: var(--ink-950); }

/* ---------- sections ---------- */
.section { padding: 7rem 0; }
.section--bone { background: var(--bone); color: var(--ink); }
.section--dark { background: var(--ink-950); color: var(--bone); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 6rem;
  overflow: hidden;
  background: var(--ink-950);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,9,0.1) 0%, rgba(10,11,9,0.25) 45%, rgba(10,11,9,0.92) 100%),
    radial-gradient(ellipse 480px 260px at 86% 22%, rgba(10,11,9,0.78) 0%, rgba(10,11,9,0) 72%),
    linear-gradient(90deg, rgba(10,11,9,0.5) 0%, rgba(10,11,9,0) 40%);
}
.hero__content {
  position: relative; z-index: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.hero__tagline {
  position: absolute;
  top: 18%;
  right: 8%;
  z-index: 1;
  text-align: right;
  font-size: 1.05rem;
  color: rgba(243, 239, 228, 0.8);
  max-width: 30ch;
  margin: 0;
}
.hero__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.4vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 0 2rem;
  color: var(--bone);
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- shared card grid (Model + Services) ----------
   One grid language for both sections, theme-driven: light-safe
   colors by default, overridden under .section--dark. This is why
   Services (light) and Model (dark) can share every class and still
   look like the same system rather than two different components. */
.model-header {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: end;
}
.model-header .h2 { margin: 0; }
.section--dark .model-header .h2 { color: var(--bone); }
.model-header__lede {
  margin: 0;
  text-align: right;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-left: auto;
}
.section--dark .model-header__lede { color: rgba(243, 239, 228, 0.72); }

.model-frame { position: relative; margin-top: 3.5rem; }
/* corner marks scoped to the grid itself, overriding the hero's
   viewport-edge insets (same specificity, later in source wins) */
.crop-marks--local span:nth-child(1) { top: -14px; left: -14px; }
.crop-marks--local span:nth-child(2) { top: -14px; right: -14px; }
.crop-marks--local span:nth-child(3) { bottom: -14px; left: -14px; }
.crop-marks--local span:nth-child(4) { bottom: -14px; right: -14px; }

.model-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.service-grid { grid-template-columns: repeat(4, 1fr); }
.grid-mark {
  position: absolute;
  top: -7px;
  width: 7px; height: 7px;
  background: var(--accent);
  transform: translateX(-50%);
  z-index: 2;
}
.model-card {
  padding: 0 2rem;
  border-left: 1px solid var(--bone-line);
}
.section--dark .model-card { border-left-color: var(--ink-line); }
.model-card:first-child { border-left: none; padding-left: 0; }
.model-card:last-child { padding-right: 0; }
.model-card__icon {
  aspect-ratio: 3 / 2;
  border: 1px solid var(--bone-line);
  border-radius: 8px;
  background: rgba(18, 22, 15, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.section--dark .model-card__icon { border-color: var(--ink-line); background: rgba(255, 255, 255, 0.02); }
.model-card__icon i { font-size: 2rem; color: var(--accent-deep); transition: transform 0.3s var(--ease); }
.section--dark .model-card__icon i { color: var(--accent); }
.model-card:hover .model-card__icon i { transform: scale(1.12); }
.model-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.section--dark .model-card p { color: rgba(243, 239, 228, 0.68); }

.bento__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.bento__heading h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}
.section--dark .model-card .bento__heading h3 { color: var(--bone); }
.tag {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-deep);
  border: 1px solid currentColor;
  opacity: 0.75;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}
.section--dark .model-card .tag { color: var(--accent); }

/* ---------- audience ---------- */
.audience-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
/* Light-safe by default, overridden under .section--dark, same
   theme-driven pattern as .model-card. */
.audience-card {
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--bone-line);
}
.section--dark .audience-card { border-top-color: var(--ink-line); }
.audience-card i { font-size: 1.5rem; color: var(--accent-deep); margin-bottom: 1rem; display: block; }
.section--dark .audience-card i { color: var(--accent); }
.audience-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.5rem; font-family: var(--font-display); }
.audience-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.section--dark .audience-card p { color: rgba(243,239,228,0.68); }

/* ---------- team ---------- */
/* Portrait-first cards: the photo is the card, and the name sits on a
   floating bar inset from its corners. "View" flips a bio panel up over
   the same frame, so the grid keeps one clean row height whether or not
   anyone has opened a card. */
.team-header { margin-bottom: 3.5rem; }
.h2--display {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 1.5rem;
}
.team-header__lede { max-width: 66ch; margin-bottom: 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.team-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bone-100);
  isolation: isolate;
}

.team-card__photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
}
.team-card:hover .team-card__photo img { filter: grayscale(0.15); transform: scale(1.035); }
/* Placeholder state, shown until a real portrait replaces the icon */
.team-card__photo i {
  font-size: 3rem;
  color: rgba(18, 22, 15, 0.22);
  margin-bottom: 15%;
}

.team-card__bar {
  position: absolute;
  z-index: 2;
  left: 12px; right: 12px; bottom: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.7rem 0.7rem 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(10, 11, 9, 0.12);
}
.team-card__id { min-width: 0; }
.team-card__id h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.15rem;
  color: var(--ink);
}
.team-card__meta {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-card__view {
  flex: none;
  margin-left: auto;
  border: none;
  border-radius: var(--radius-pill);
  background: rgba(18, 22, 15, 0.07);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.05rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.team-card__view:hover { background: var(--accent); }
.team-card__view:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

.team-card__bio {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.4rem calc(12px + 62px + 1.1rem);
  background: rgba(10, 11, 9, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--bone);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.team-card.is-open .team-card__bio { opacity: 1; visibility: visible; transform: none; }
.team-card__bio-role {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.team-card__bio p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(243, 239, 228, 0.82);
}
.team-card__bio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bone);
  border-bottom: 1px solid rgba(243, 239, 228, 0.35);
  align-self: flex-start;
  padding-bottom: 2px;
}
.team-card__bio-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.team-card__bio-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.section--dark .team-card { background: var(--ink-800); }
.section--dark .team-card__photo i { color: rgba(243, 239, 228, 0.3); }

/* ---------- in the news ---------- */
/* 2x2, same "rule above content" language as .audience-card rather
   than a boxed card: each item is its own cell, not a list row. */
.news-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  margin-top: 3rem;
}
.news-item {
  display: block;
  padding-top: 1.75rem;
  border-top: 1px solid var(--bone-line);
}
.section--dark .news-item { border-top-color: var(--ink-line); }
.news-item__head { margin-bottom: 0.75rem; }
.news-item__pub { font-weight: 700; font-size: 0.85rem; }
.news-item__date { font-size: 0.85rem; color: var(--ink-soft); }
.section--dark .news-item__date { color: rgba(243, 239, 228, 0.5); }
.news-item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  max-width: 60ch;
}
.section--dark .news-item h3 { color: var(--bone); }
.news-item p { margin: 0 0 0.75rem; max-width: 60ch; color: var(--ink-soft); }
.section--dark .news-item p { color: rgba(243, 239, 228, 0.68); }
.news-item__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-deep);
  transition: gap 0.2s var(--ease);
}
.section--dark .news-item__link { color: var(--accent); }
.news-list a:hover .news-item__link { gap: 0.6rem; }

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact__detail {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 1.5rem;
  font-weight: 600;
}
.contact__detail i { color: var(--accent-deep); font-size: 1.1rem; }

.contact__form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--bone-line);
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact__form .btn { align-self: flex-start; margin-top: 0.5rem; }

/* ---------- footer ---------- */
.footer { background: var(--ink-950); color: var(--bone); padding: 4rem 0 2rem; border-top: 1px solid var(--ink-line); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem 3rem;
}
.footer__brand { display: flex; align-items: flex-start; gap: 0.7rem; }
.footer__brand p { margin: 0; color: rgba(243,239,228,0.68); font-size: 0.95rem; max-width: 32ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; align-content: start; }
.footer__links a { font-size: 0.9rem; color: rgba(243,239,228,0.72); }
.footer__links a:hover { color: var(--bone); }
.footer__copy {
  grid-column: 1 / -1;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
  font-size: 0.8rem;
  color: rgba(243,239,228,0.5);
}

/* ---------- motion ----------
   The hero sequences its own reveal via staggered --d delays (tagline,
   then headline, then actions). Elsewhere: short list-staggers where
   content is a list, plain fades otherwise, small hover feedback on
   the interactive grids. Nothing loops, nothing runs unprompted after
   it lands. (An earlier version used a clip-path curtain wipe on the
   headline; dropped after it left the element stuck unpainted on some
   loads, a real Chromium compositor bug with clip-path transitions,
   not a preference call.) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease) var(--d, 0ms), transform 0.6s var(--ease) var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Sibling stagger for the places content genuinely reads as a list.
   Capped at ~270ms total so it never feels like waiting. */
.audience-card:nth-child(1), .model-card:nth-of-type(1),
.team-card:nth-child(1), .news-item:nth-child(1) { --d: 0ms; }
.audience-card:nth-child(2), .model-card:nth-of-type(2),
.team-card:nth-child(2), .news-item:nth-child(2) { --d: 90ms; }
.audience-card:nth-child(3), .model-card:nth-of-type(3),
.team-card:nth-child(3), .news-item:nth-child(3) { --d: 180ms; }
.audience-card:nth-child(4), .model-card:nth-of-type(4), .team-card:nth-child(4),
.news-item:nth-child(4) { --d: 270ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .rail a, .nav__overlay, .nav__overlay-links a, .model-card__icon i,
  .team-card__photo img, .team-card__view { transition: none; }
  .team-card:hover .team-card__photo img { transform: none; }
  .team-card__bio { transition: opacity 0.01s, visibility 0.01s; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .rail { display: none; }
}

@media (max-width: 1024px) {
  .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .model-header { grid-template-columns: 1fr; gap: 1.25rem; }
  .model-header__lede { text-align: left; margin-left: 0; }
  .model-grid { grid-template-columns: 1fr; gap: 2rem; }
  .model-card { padding: 0; border-left: none; border-top: 1px solid var(--bone-line); padding-top: 1.75rem; }
  .section--dark .model-card { border-top-color: var(--ink-line); }
  .model-card:first-child { border-top: none; padding-top: 0; }
  .grid-mark { display: none; }

  .audience-scroll { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

@media (max-width: 640px) {
  .section { padding: 5rem 0; }
  .wrap { padding: 0 20px; }
  .hero { padding-bottom: 4rem; flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .hero__content { padding: 0 20px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }
  .hero__tagline {
    position: static;
    text-align: left;
    max-width: none;
    padding: 0 20px;
    margin: 0 0 1.5rem;
  }

  .audience-scroll { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { aspect-ratio: 4 / 5; }
  .team-header { margin-bottom: 2.5rem; }
  .news-list { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__inner { grid-template-columns: 1fr; }

  .nav__overlay-links a { font-size: clamp(1.6rem, 9vw, 2.4rem); }
  .nav__overlay-foot { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
