/* ============================================================
   BRETTE DIGON · PORTFOLIO
   Static build — plain HTML / CSS / JS / PHP, no build step.
   Structured for CMS port: each section is self-contained,
   styles scoped by section selector, no framework deps.
   ============================================================ */

/* --- tokens ------------------------------------------------- */
:root {
  --ink:        #223F54;          /* deep blue        — primary */
  --ink-soft:   #3A5A6E;          /* softer ink for body        */
  --ink-mute:   #7894A4;          /* muted text / metadata      */
  --cream:      #FCF6EF;          /* warm off-white   — base bg */
  --cream-deep: #F2E9DA;          /* hover, dividers            */
  --mist:       #81A5BB;          /* dusty steel blue           */
  --mist-soft:  #B6CCD8;          /* light mist tint            */
  --ember:      #EA337F;          /* hot pink         — accent  */
  --ember-deep: #C81F66;          /* hover state                */
  --line:       rgba(34,63,84,.12);

  --serif: "Instrument Serif", "Source Serif 4", Georgia, serif;
  --sans:  "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
}

/* --- reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* --- base typography ---------------------------------------- */
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.italic { font-style: italic; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.ember { color: var(--ember); }
.ember-underline {
  background-image: linear-gradient(transparent 64%, rgba(234,51,127,.22) 64%, rgba(234,51,127,.22) 92%, transparent 92%);
  padding: 0 .05em;
}

/* --- layout ------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* --- buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 26px 9px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background .2s ease, color .2s ease;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.4;
}
.btn--ember {
  background: var(--ember);
  color: #fff;
}
.btn--ember:hover { background: var(--ember-deep); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Deep-blue ink as the nav surface; transparency + blur preserved so
     content tinted underneath still shows through. */
  background: rgba(34,63,84,.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
  color: var(--cream);
}
.nav.is-scrolled {
  border-bottom-color: rgba(252,246,239,.14);
  background: rgba(34,63,84,.88);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--cream);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__brand .dot {
  width: 9px; height: 9px;
  background: var(--ember);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-2px);
}
.nav__brand small {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist-soft);
  margin-left: 4px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--ember); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { font-size: 14px; }
/* On the dark nav surface, the ghost button inverts: cream outline + cream
   text → fills cream on hover with deep-blue text. Scoped so the hero's
   ghost button (on cream bg) keeps its original ink-on-cream styling. */
.nav .btn--ghost.nav__cta {
  color: var(--cream);
  border-color: rgba(252,246,239,.55);
}
.nav .btn--ghost.nav__cta:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.nav__toggle { display: none; }

@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--cream); font-size: 14px; font-weight: 500;
  }
  .nav__toggle svg { width: 22px; height: 22px; }
}

/* mobile drawer - dark theme */
.drawer {
  position: fixed; inset: 0;
  background: var(--ink);
  color: var(--cream);
  z-index: 60;
  padding: 0 var(--gutter);
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform .35s ease;
}
.drawer.is-open { transform: translateY(0); }
.drawer__top {
  display: flex; justify-content: space-between; align-items: center;
  height: 72px;
}
.drawer__top .nav__brand { color: var(--cream); font-size: 22px; }
.drawer__top .nav__brand small { color: var(--mist-soft); font-size: 11px; }
.drawer__top .dot { background: var(--ember); }
.drawer__close { color: var(--cream); }
.drawer__links {
  display: flex; flex-direction: column;
  gap: 18px;
  margin-top: 48px;
  font-family: var(--serif);
  font-size: 40px;
  color: var(--cream);
}
.drawer__links a { color: var(--cream); }
.drawer__links a:hover { color: var(--ember); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(40px, 7vw, 96px) 0 clamp(60px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero__top {
  margin-bottom: clamp(32px, 5vw, 56px);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
}
.hero__kicker .rule { width: 36px; height: 1px; background: var(--ink-mute); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7.6vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 32px;
}
.hero h1 .l1 { display: block; }
.hero h1 .l2 { display: block; font-style: italic; color: var(--ink-soft); }
.hero h1 .l3 { display: block; }
.hero h1 .l3 em {
  font-style: italic;
  color: var(--ember);
  font-weight: 400;
}
.hero__sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 0 36px;
  display: none;
}
.hero__actions {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.hero__meta {
  margin-top: 56px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__meta div { display: flex; flex-direction: column; gap: 4px; }
.hero__meta strong {
  font-family: var(--serif); font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* portrait column */
.hero__portrait {
  position: relative;
  height: 100%;
  min-height: 480px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--mist);
}
.hero__portrait .placeholder {
  width: 100%; height: 100%;
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero__portrait .tag {
  position: absolute;
  left: 16px; bottom: 16px;
  background: var(--cream);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 2px;
}
.hero__portrait .frame-mark {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,.35);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__portrait { order: -1; max-width: 360px; aspect-ratio: 4/5; height: auto; min-height: 0; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.about::before {
  /* subtle warm grain on top */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 10%, rgba(234,51,127,.06), transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 90%, rgba(129,165,187,.10), transparent 60%);
  pointer-events: none;
}
.about__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about__eyebrow { color: var(--mist-soft); margin-bottom: 24px; }
.about__quote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin: 0;
}
.about__quote em {
  font-style: italic;
  color: var(--ember);
}
.about__copy { font-size: 17px; line-height: 1.7; color: rgba(252,246,239,.85); }
.about__copy p + p { margin-top: 18px; }
.about__sectors {
  margin-top: 36px;
  display: flex; flex-direction: column; gap: 6px;
}
.about__sectors .eyebrow { color: var(--mist-soft); }
.about__sectors strong {
  font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

@media (max-width: 820px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio {
  padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 100px);
}
.portfolio__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.portfolio__head h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}
.portfolio__head .sub {
  color: var(--ink-mute);
  font-size: 15px;
  max-width: 340px;
}

/* filter bar */
.filters {
  display: flex; align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  position: relative;
  padding: 10px 20px 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.filter:hover { color: var(--ink); }
.filter.is-active {
  color: var(--cream);
  background: var(--ink);
}
.filter__count {
  font-size: 11px;
  margin-left: 6px;
  opacity: .65;
}

/* grid */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px 24px;
}
/* asymmetric tile sizing */
.card { grid-column: span 4; }
.card.is-pair { grid-column: span 6; }
@media (max-width: 1024px) {
  .card, .card.is-pair { grid-column: span 6; }
}
@media (max-width: 640px) {
  .card, .card.is-pair { grid-column: span 12; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  padding: 0;
}
/* Suppress the browser's default focus ring (the blue box that lingered on
   a card after closing the lightbox), but keep a branded ring for keyboard
   users via :focus-visible so focus stays visible for accessibility. */
.card:focus { outline: none; }
.card:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
  border-radius: 4px;
}
/* NOTE: deliberate deviation from the original design — the card
   hover-lift (transform: translateY(-4px)) was removed per client
   request. All other card:hover effects (fan spread, cover gradient,
   image zoom, "See the work" reveal) are unchanged. */
.card__cover {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--mist);
  margin-bottom: 18px;
}
.card.is-pair .card__cover { aspect-ratio: 16 / 10; }
.card__cover .placeholder { width: 100%; height: 100%; }
.card__cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(34,63,84,.55) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover .card__cover::after { opacity: 1; }
.card__view {
  position: absolute;
  left: 16px; bottom: 16px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: inline-flex; gap: 10px; align-items: center;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 2;
}
.card:hover .card__view { opacity: 1; transform: translateY(0); }
.card__cat {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 8px;
}
.card__title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
}
.card.is-pair .card__title { font-size: 30px; }
.card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta {
  margin-top: 14px;
  display: flex; gap: 12px; align-items: center;
  color: var(--ink-mute);
  font-size: 13px;
}
.card__meta .pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream-deep);
  padding: 4px 10px;
  border-radius: 999px;
}

/* empty state when filter has nothing */
.grid__empty {
  grid-column: 1 / -1;
  padding: 60px 0;
  text-align: center;
  color: var(--ink-mute);
  font-family: var(--serif);
  font-size: 22px;
}

/* ============================================================
   EXPERIENCE  (visible, awaiting final copy)
   ============================================================ */
.experience {
  background: var(--cream-deep);
  padding: clamp(80px, 10vw, 140px) 0;
}
.experience__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.experience__sub {
  color: var(--ink-mute);
  font-size: 15px;
  max-width: 340px;
  margin: 0;
}
.experience h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}
.experience__sub-old { color: var(--ink-mute); font-size: 15px; max-width: 420px; }
.exp-list { display: flex; flex-direction: column; }
.exp-row {
  display: grid;
  grid-template-columns: 120px 1.4fr 1fr 80px;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.exp-row:last-child { border-bottom: 1px solid var(--line); }
.exp-row__date {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
/* Progression connector — pink vertical line in the gap to the left
   of the date column, linking grouped consecutive roles at the same
   company. Shown only at the desktop grid breakpoint. */
.exp-row--prog { position: relative; }
.exp-row--prog::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ember);
  opacity: 0.55;
  border-radius: 2px;
}
.exp-row--prog-start::before { top: 50%; }
.exp-row--prog-end::before { bottom: 50%; }
.exp-row--prog .exp-row__date {
  color: var(--ember);
}
.exp-row__role {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.exp-row__co { font-size: 15px; color: var(--ink-soft); }
.exp-row__tag {
  justify-self: start;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}
.exp-note {
  margin-top: 32px;
  padding: 18px 22px;
  background: rgba(234,51,127,.06);
  border-left: 3px solid var(--ember);
  border-radius: 2px;
  font-size: 14px;
  color: var(--ink-soft);
}
@media (max-width: 820px) {
  .exp-row { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .exp-row__tag { justify-self: start; }
  .exp-row--prog::before { display: none; }
}

/* ============================================================
   SERVICES (hidden at launch via body.launch class)
   ============================================================ */
body.launch .services,
body.launch .testimonials { display: none; }

.services {
  background: var(--cream);
  padding: clamp(80px, 10vw, 140px) 0;
}
.services h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  margin: 0 0 48px;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.svc {
  padding: 32px;
  background: var(--cream-deep);
  border-radius: 4px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
}
.svc__num {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--ember);
  line-height: 1;
}
.svc h3 {
  font-family: var(--serif);
  font-size: 26px; font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.svc p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 820px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TESTIMONIALS (hidden at launch)
   ============================================================ */
.testimonials {
  background: var(--mist);
  color: var(--ink);
  padding: clamp(80px, 10vw, 140px) 0;
}
.testimonials .eyebrow { color: var(--ink); }
.testimonials h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 12px 0 48px;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}
.quote {
  background: var(--cream);
  padding: 32px;
  border-radius: 4px;
}
.quote p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 20px;
}
.quote footer {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink-soft);
}
.quote footer strong { color: var(--ink); font-weight: 500; }
@media (max-width: 820px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(80px, 10vw, 140px) 0;
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact .eyebrow { color: var(--mist-soft); }
.contact h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.4vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 16px 0 32px;
}
.contact h2 em {
  font-style: italic;
  color: var(--ember);
}
.contact__intro {
  font-size: 17px;
  color: rgba(252,246,239,.78);
  max-width: 380px;
  margin: 0 0 36px;
}
.contact__direct {
  display: flex; flex-direction: column; gap: 12px;
  font-size: 15px;
  padding-top: 24px;
  border-top: 1px solid rgba(252,246,239,.18);
}
.contact__direct a { color: var(--cream); }
.contact__direct a:hover { color: var(--ember); }
.contact__direct strong { color: var(--mist-soft); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist-soft);
}
.field input,
.field textarea {
  font: inherit;
  background: transparent;
  border: 1px solid rgba(252,246,239,.28);
  border-radius: 4px;
  color: var(--cream);
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease;
  font-size: 17px;
  font-family: var(--sans);
}
.field input:focus,
.field textarea:focus { border-color: var(--ember); }
.field textarea { resize: vertical; min-height: 110px; }
.form__submit { align-self: flex-start; margin-top: 8px; }

@media (max-width: 820px) {
  .contact__inner { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--cream);
  padding: 40px 0 32px;
  color: var(--ink-mute);
  font-size: 13px;
}
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__credit a { color: var(--ink-mute); border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.footer__credit a:hover { color: var(--ember); border-bottom-color: var(--ember); }
/* Mobile: tighten the footer so it doesn't eat vertical space. */
@media (max-width: 640px) {
  .footer { padding: 20px 0; }
  .footer__inner { gap: 6px; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(21, 41, 58, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__panel {
  background: var(--cream);
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border-radius: 4px;
  overflow: hidden;
  transform: translateY(8px);
  transition: transform .25s ease;
}
.lightbox.is-open .lightbox__panel { transform: translateY(0); }
.lightbox__media {
  background: #15293A;
  position: relative;
  min-height: 480px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__media iframe,
.lightbox__media img,
.lightbox__media .pdf {
  width: 100%; height: 100%;
  border: none;
  display: block;
}
.lightbox__media img { object-fit: contain; }
.lightbox__media .placeholder { width: 100%; height: 100%; }
.lightbox__info {
  padding: 36px 36px 28px;
  display: flex; flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.lightbox__info .cat {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
}
.lightbox__info h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}
.lightbox__info p {
  font-size: 15px; line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.lightbox__nav {
  display: flex; gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.lightbox__nav button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lightbox__nav button:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.lightbox__nav .count { margin-left: auto; align-self: center; font-size: 12px; color: var(--ink-mute); letter-spacing: 0.10em; text-transform: uppercase; }
.lightbox__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(252,246,239,.92);
  color: var(--ink);
  border-radius: 50%;
  z-index: 5;
  transition: transform .2s ease, background .2s ease;
}
.lightbox__close:hover { background: var(--ember); color: var(--cream); transform: rotate(90deg); }
@media (max-width: 900px) {
  .lightbox__panel { grid-template-columns: 1fr; max-height: 100%; height: 100%; }
  .lightbox__media { min-height: 280px; max-height: 50vh; }
}

/* ============================================================
   PDF COLLAGE THUMBNAIL — 3D fanned page stack
   Used on cards whose cover should display a multi-page PDF
   as a hand-spread document, not a flat tile.
   ============================================================ */
.pdf-collage {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  perspective-origin: 50% 55%;
  background: linear-gradient(135deg, #223F54 0%, #2F5269 55%, #3F6A82 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pdf-collage::before {
  /* faint stripe matching the placeholder language */
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(252,246,239,.0) 0 22px,
      rgba(252,246,239,.035) 22px 44px);
  pointer-events: none;
}
.pdf-collage__stage {
  position: relative;
  width: 78%;
  height: 88%;
  transform-style: preserve-3d;
  transform: rotateX(8deg);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  /* Establish a sizing container so the page images can be constrained
     by both stage height (so portraits don't tower) and stage width
     (so squares/landscapes don't grow wide enough to spill the fan
     past the card edge at hover). */
  container-type: size;
}
.pdf-collage__page {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Every page in a single collage shares the same shape, driven by
     the front page (p1)'s natural aspect ratio (set via JS on the
     parent .pdf-collage). This is critical for fan centering: with
     mixed-aspect images, different page widths offset symmetric
     translateX values, drifting the fan off-center. Locked shape =
     uniform width = mathematically centered fan.

     Sizing rule: page fits within 78cqh × 70cqw, preserving its
     aspect-ratio. For tall (portrait) pages, height bounds the size
     (page = 78cqh tall, width = 78cqh × aspect). For wide (landscape)
     pages, width bounds the size (page = 70cqw wide, height = 70cqw /
     aspect). This lets landscape thumbnails like case studies and
     wide web screenshots show in full without object-fit cropping. */
  width: min(70cqw, calc(78cqh * var(--page-aspect, 0.85)));
  height: auto;
  aspect-ratio: var(--page-aspect, 0.85);
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.7,.2,1),
              box-shadow .4s ease;
  border-radius: 2px;
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 1px 0 rgba(34,63,84,.18),
    0 12px 28px rgba(34,63,84,.32),
    0 22px 48px rgba(34,63,84,.18);
  will-change: transform;
}
.pdf-collage__page img {
  /* Image fills the page. p1 naturally matches (page aspect = p1's
     aspect, no crop). Back pages (p2/p3/p4) may have their image
     cropped slightly to match the locked aspect — but only their
     edges show past p1, and that edge content is preserved at the
     image's natural top/left/right/bottom by object-position. */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* per-page fan positions (back → front) */
.pdf-collage__page--p4 {
  transform: translate(-50%, -50%) translateX(-26%) translateZ(-30px) rotateZ(-11deg) rotateY(6deg);
  z-index: 1;
}
.pdf-collage__page--p3 {
  transform: translate(-50%, -50%) translateX(-9%) translateZ(-12px) rotateZ(-4.5deg) rotateY(2.5deg);
  z-index: 2;
}
.pdf-collage__page--p2 {
  transform: translate(-50%, -50%) translateX(8%) translateZ(8px) rotateZ(3.5deg) rotateY(-2deg);
  z-index: 3;
}
.pdf-collage__page--p1 {
  transform: translate(-50%, -50%) translateX(24%) translateZ(28px) rotateZ(9deg) rotateY(-5.5deg);
  z-index: 4;
  box-shadow:
    0 1px 0 rgba(34,63,84,.18),
    0 18px 34px rgba(34,63,84,.36),
    0 32px 60px rgba(34,63,84,.22);
}
/* depth tint on the back pages (simulated paper in shadow) */
.pdf-collage__page--p3::after,
.pdf-collage__page--p4::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(34,63,84,.18);
  pointer-events: none;
}
.pdf-collage__page--p4::after { background: rgba(34,63,84,.32); }
/* hover: spread the fan wider */
.card:hover .pdf-collage__stage { transform: rotateX(4deg) translateY(-4px); }
.card:hover .pdf-collage__page--p4 {
  transform: translate(-50%, -50%) translateX(-38%) translateZ(-30px) rotateZ(-17deg) rotateY(7deg);
}
.card:hover .pdf-collage__page--p3 {
  transform: translate(-50%, -50%) translateX(-14%) translateZ(-12px) rotateZ(-7deg) rotateY(3deg);
}
.card:hover .pdf-collage__page--p2 {
  transform: translate(-50%, -50%) translateX(13%) translateZ(8px) rotateZ(6deg) rotateY(-2.5deg);
}
.card:hover .pdf-collage__page--p1 {
  transform: translate(-50%, -50%) translateX(36%) translateZ(28px) rotateZ(14deg) rotateY(-7deg);
}
.pdf-collage__fallback.placeholder {
  display: none;
  position: absolute; inset: 0;
}
.pdf-collage.is-fallback { display: none; }

/* Single-image full-bleed thumbnail variant (short-form 1-image pieces).
   Sits inside .card__cover. Image is cropped from the top so the
   headline/lockup of an ad reads in the thumbnail. */
.img-cover {
  position: absolute;
  inset: 0;
  background: #223F54;
  overflow: hidden;
}
.img-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.card:hover .img-cover img { transform: scale(1.04); }
.pdf-collage.is-fallback + .pdf-collage__fallback.placeholder { display: flex; }

/* Single-page variant of the collage — same striped background, but
   one floating page centered with a subtle tilt. Used on short-form
   pieces that only have one thumbnail so the portfolio grid stays
   visually unified with the multi-page collage cards. */
.pdf-collage--single .pdf-collage__stage {
  transform: rotateX(6deg);
}
.pdf-collage--single .pdf-collage__page--p1 {
  /* Single page gets to fill more of the stage since there's no fan.
     Same fit-within-box approach: width capped at 88cqw, height at
     92cqh, preserves aspect-ratio in both directions. */
  width: min(88cqw, calc(92cqh * var(--page-aspect, 0.85)));
  height: auto;
}
.pdf-collage--single .pdf-collage__page--p1 {
  /* Single page: a touch larger so it commands the frame */
  transform:
    translate(-50%, -50%)
    translateZ(20px)
    rotateZ(-3deg)
    rotateY(-3deg);
  box-shadow:
    0 1px 0 rgba(34,63,84,.18),
    0 22px 40px rgba(34,63,84,.38),
    0 38px 70px rgba(34,63,84,.24);
}
.card:hover .pdf-collage--single .pdf-collage__stage {
  transform: rotateX(3deg) translateY(-4px);
}
.card:hover .pdf-collage--single .pdf-collage__page--p1 {
  transform:
    translate(-50%, -50%)
    translateZ(28px)
    rotateZ(-5deg)
    rotateY(-5deg)
    scale(1.03);
}

/* Fan re-centering: 2-page (p3,p1) and 3-page (p3,p2,p1) collages need
   their own translateX values. The 4-page fan's values (-26, -9, +8, +24)
   have a mean of −0.75% (centered). Take just the trailing 3 values and
   the mean shifts to +7.67% (right of center); take just p3+p1 and it's
   +7.5%. A fixed stage shift can't fix this because each collage has a
   different page-aspect ratio, and translateX is in % of page width.
   Solution: rewrite translateX for the 2 and 3-page variants to be
   symmetric around 0, independent of page width. */

/* 2-page fan: p3 + p1 only, symmetric around 0 */
.pdf-collage:not(.pdf-collage--single):has(.pdf-collage__page--p3):not(:has(.pdf-collage__page--p2)) .pdf-collage__page--p3 {
  transform: translate(-50%, -50%) translateX(-16%) translateZ(-12px) rotateZ(-4.5deg) rotateY(2.5deg);
}
.pdf-collage:not(.pdf-collage--single):has(.pdf-collage__page--p3):not(:has(.pdf-collage__page--p2)) .pdf-collage__page--p1 {
  transform: translate(-50%, -50%) translateX(16%) translateZ(28px) rotateZ(9deg) rotateY(-5.5deg);
}
.card:hover .pdf-collage:not(.pdf-collage--single):has(.pdf-collage__page--p3):not(:has(.pdf-collage__page--p2)) .pdf-collage__page--p3 {
  transform: translate(-50%, -50%) translateX(-22%) translateZ(-12px) rotateZ(-7deg) rotateY(3deg);
}
.card:hover .pdf-collage:not(.pdf-collage--single):has(.pdf-collage__page--p3):not(:has(.pdf-collage__page--p2)) .pdf-collage__page--p1 {
  transform: translate(-50%, -50%) translateX(22%) translateZ(28px) rotateZ(14deg) rotateY(-7deg);
}

/* 3-page fan: p3 + p2 + p1, symmetric around 0 */
.pdf-collage:not(.pdf-collage--single):has(.pdf-collage__page--p2):not(:has(.pdf-collage__page--p4)) .pdf-collage__page--p3 {
  transform: translate(-50%, -50%) translateX(-16%) translateZ(-12px) rotateZ(-4.5deg) rotateY(2.5deg);
}
.pdf-collage:not(.pdf-collage--single):has(.pdf-collage__page--p2):not(:has(.pdf-collage__page--p4)) .pdf-collage__page--p2 {
  transform: translate(-50%, -50%) translateX(0%) translateZ(8px) rotateZ(3.5deg) rotateY(-2deg);
}
.pdf-collage:not(.pdf-collage--single):has(.pdf-collage__page--p2):not(:has(.pdf-collage__page--p4)) .pdf-collage__page--p1 {
  transform: translate(-50%, -50%) translateX(16%) translateZ(28px) rotateZ(9deg) rotateY(-5.5deg);
}
.card:hover .pdf-collage:not(.pdf-collage--single):has(.pdf-collage__page--p2):not(:has(.pdf-collage__page--p4)) .pdf-collage__page--p3 {
  transform: translate(-50%, -50%) translateX(-22%) translateZ(-12px) rotateZ(-7deg) rotateY(3deg);
}
.card:hover .pdf-collage:not(.pdf-collage--single):has(.pdf-collage__page--p2):not(:has(.pdf-collage__page--p4)) .pdf-collage__page--p2 {
  transform: translate(-50%, -50%) translateX(0%) translateZ(8px) rotateZ(6deg) rotateY(-2.5deg);
}
.card:hover .pdf-collage:not(.pdf-collage--single):has(.pdf-collage__page--p2):not(:has(.pdf-collage__page--p4)) .pdf-collage__page--p1 {
  transform: translate(-50%, -50%) translateX(22%) translateZ(28px) rotateZ(14deg) rotateY(-7deg);
}

/* ============================================================
   LIGHTBOX — PDF VARIANT (vertical, single-column)
   Applied ONLY when .lightbox has .is-pdf class.
   All other lightbox types use the existing two-column layout.
   ============================================================ */
.lightbox__titlebar,
.lightbox__bottombar { display: none; }
.lightbox.is-pdf .lightbox__info { display: none; }
.lightbox.is-pdf .lightbox__panel {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  width: min(860px, 100%);
  max-height: 95vh;
  height: 95vh;
}
.lightbox.is-pdf .lightbox__titlebar {
  display: flex;
  align-items: center;
  gap: 4px 16px;
  padding: 10px 60px 10px 24px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  flex-shrink: 0;
}
.lightbox.is-pdf .lightbox__titlebar .cat {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  white-space: nowrap;
  flex-shrink: 0;
}
.lightbox.is-pdf .lightbox__titlebar h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
  flex: 1;
  min-width: 0;
}
.lightbox.is-pdf .lightbox__media {
  min-height: 0;
  background: #2E4858;
  height: auto;
  display: block;
  overflow: hidden;
}
.lightbox.is-pdf .lightbox__media iframe.pdf {
  width: 100%;
  height: 100%;
  min-height: 78vh;
  display: block;
}
/* Hide the inline "drop file at..." fallback overlay the existing
   lightbox JS injects alongside the iframe — when a real PDF is
   loaded, the iframe shows it natively. (Additive CSS, no JS edit.) */
.lightbox.is-pdf .lightbox__media > .placeholder { display: none; }
.lightbox.is-pdf .lightbox__bottombar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--cream);
  flex-shrink: 0;
}
.lightbox.is-pdf .lightbox__bottombar p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
  min-width: 0;
}
.lightbox.is-pdf .lightbox__bottombar .lightbox__nav {
  margin: 0;
  padding: 0;
  border: none;
  flex-shrink: 0;
}
.lightbox.is-pdf .lightbox__close {
  top: 4px;
  right: 8px;
  width: 40px; height: 40px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
}
.lightbox.is-pdf .lightbox__close:hover {
  background: var(--ember);
  color: var(--cream);
}
@media (max-width: 720px) {
  .lightbox.is-pdf .lightbox__panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
  }
  .lightbox.is-pdf .lightbox__media iframe.pdf { min-height: 0; height: 100%; }
  .lightbox.is-pdf .lightbox__media { min-height: 38vh; }

  /* Stacked titlebar: category above title, title wraps to multiple lines.
     Close button (absolute top-right) gets clearance via padding-right. */
  .lightbox.is-pdf .lightbox__titlebar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 56px 14px 18px;
    min-height: 0;
  }
  .lightbox.is-pdf .lightbox__titlebar h3 {
    font-size: 18px;
    line-height: 1.2;
  }

  /* Stacked bottom bar: full description above, nav row below. */
  .lightbox.is-pdf .lightbox__bottombar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 18px 16px;
  }
  .lightbox.is-pdf .lightbox__bottombar p { font-size: 13.5px; }
  .lightbox.is-pdf .lightbox__bottombar .lightbox__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
  }
  .lightbox.is-pdf .lightbox__bottombar .lightbox__nav .count {
    margin-left: auto;
  }
  .lightbox.is-pdf .lightbox__close { top: 4px; right: 4px; }
}

/* ============================================================
   LIGHTBOX — IMAGES VARIANT (vertical scroll of stacked images)
   Same chrome as is-pdf: titlebar + scrollable media + bottombar.
   Used for short-form pieces that are 1+ standalone images.
   ============================================================ */
.lightbox.is-images .lightbox__info { display: none; }
.lightbox.is-images .lightbox__panel {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  width: min(900px, 100%);
  max-height: 95vh;
  height: 95vh;
}
.lightbox.is-images .lightbox__titlebar {
  display: flex;
  align-items: center;
  gap: 4px 16px;
  padding: 10px 60px 10px 24px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  flex-shrink: 0;
}
.lightbox.is-images .lightbox__titlebar .cat {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  white-space: nowrap;
  flex-shrink: 0;
}
.lightbox.is-images .lightbox__titlebar h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
  flex: 1;
  min-width: 0;
}
.lightbox.is-images .lightbox__media {
  min-height: 0;
  /* Override the base lightbox's @media(max-width:900px) max-height:50vh,
     which otherwise caps this scroll area mid-row on mobile and leaves a
     blank gap above the description. Here the media should fill its 1fr
     row so the artwork gets the full scroll height. */
  max-height: none;
  background: #2E4858;
  height: auto;
  display: block;
  overflow-y: auto;
  padding: 28px 28px 36px;
}
.lightbox.is-images .lightbox__media .image-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin: 0 auto;
}
.lightbox.is-images .lightbox__media .image-stack img {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.2);
}
.lightbox.is-images .lightbox__bottombar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--cream);
  flex-shrink: 0;
}
.lightbox.is-images .lightbox__bottombar p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
  min-width: 0;
}
.lightbox.is-images .lightbox__bottombar .lightbox__nav {
  margin: 0;
  padding: 0;
  border: none;
  flex-shrink: 0;
}
.lightbox.is-images .lightbox__close {
  top: 4px;
  right: 8px;
  width: 40px; height: 40px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
}
.lightbox.is-images .lightbox__close:hover {
  background: var(--ember);
  color: var(--cream);
}
@media (max-width: 720px) {
  .lightbox.is-images .lightbox__panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
  }
  .lightbox.is-images .lightbox__media { padding: 18px 14px 24px; }
  .lightbox.is-images .lightbox__titlebar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 56px 14px 18px;
    min-height: 0;
  }
  .lightbox.is-images .lightbox__titlebar h3 {
    font-size: 18px;
    line-height: 1.2;
  }
  .lightbox.is-images .lightbox__bottombar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 18px 16px;
  }
  .lightbox.is-images .lightbox__bottombar p { font-size: 13.5px; }
  .lightbox.is-images .lightbox__bottombar .lightbox__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
  }
  .lightbox.is-images .lightbox__bottombar .lightbox__nav .count {
    margin-left: auto;
  }
  .lightbox.is-images .lightbox__close { top: 4px; right: 4px; }
}

/* ============================================================
   PLACEHOLDERS (striped svg)
   ============================================================ */
.placeholder {
  background-color: var(--mist);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(34,63,84,.0) 0 18px,
      rgba(34,63,84,.10) 18px 36px);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
  position: relative;
}
.placeholder span {
  background: rgba(34,63,84,.55);
  padding: 6px 10px;
  border-radius: 2px;
  max-width: 80%;
}
.placeholder[data-tone="cream"] {
  background-color: var(--cream-deep);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(34,63,84,.0) 0 18px,
      rgba(34,63,84,.06) 18px 36px);
  color: var(--ink);
}
.placeholder[data-tone="cream"] span { background: rgba(34,63,84,.10); color: var(--ink); }
.placeholder[data-tone="dark"] {
  background-color: #15293A;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(252,246,239,.0) 0 18px,
      rgba(252,246,239,.06) 18px 36px);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ============================================================
   HERO FX — animated background canvases
   (Tuning panel from the design source intentionally omitted;
   the canvas ships with its tuned default settings.)
   ============================================================ */
.hero > .wrap { position: relative; z-index: 1; }
.hero__fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__fx canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
