/* =====================================================================
   Judith Cohen Design
   Editorial black-and-white design system.
   Typefaces: Instrument Serif (display) + Instrument Sans (body),
   loaded via <link> in the document head.
   ===================================================================== */

/* ---------- design tokens ---------- */
:root {
  --ink: #000000;          /* pure black: dark sections + text */
  --ivory: #ffffff;        /* pure white: canvas + light text */
  --border-soft: rgba(0, 0, 0, 0.16);
  --border-dark: rgba(255, 255, 255, 0.20);

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --tracking-label: 0.13em;
  --wrap: 1440px;
  --wrap-wide: 1800px;
  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
img, picture, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; }

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

/* ---------- base ---------- */
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* 17px desktop */
  line-height: 1.62;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 640px) { body { font-size: 1rem; } }
::selection { background: #000; color: #fff; }

/* ---------- editorial type: Instrument Serif ---------- */
.font-display { font-family: var(--font-display); }

.display-xl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: 0.004em;
  text-transform: uppercase;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0.004em;
  text-transform: uppercase;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: 0.006em;
  text-transform: uppercase;
}
.serif-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.editorial-italic { font-family: var(--font-display); font-style: italic; }

/* statements: serif, natural case, no ornament */
.statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.55rem, 3.2vw, 2.9rem);
  line-height: 1.16;
  text-wrap: balance;
}
.statement-sm {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  line-height: 1.22;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.67rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-block;
}
.body-lg { font-size: 1.11rem; line-height: 1.68; }
.muted { color: rgba(0,0,0,0.62); }
.muted-2 { color: rgba(0,0,0,0.45); }

/* prose */
.prose p { margin-bottom: 1.15em; line-height: 1.72; }
.prose p:last-child { margin-bottom: 0; }
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,0,0,0.5);
  transition: opacity 0.2s ease;
}
.prose a:hover { opacity: 0.6; }
.prose em { font-family: var(--font-display); font-style: italic; }

/* ---------- links ---------- */
.link-rule { transition: color 0.22s ease, opacity 0.22s ease; }
.link-rule:hover { opacity: 0.55; }
.underline-thin {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(0,0,0,0.4);
}
.link-arrow::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.45em;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.link-arrow:hover::after { transform: translateX(4px); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}
.on-dark :where(a, button):focus-visible { outline-color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--ink);
  padding: 1rem 2rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-ink { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.btn-ink:hover { background: transparent; color: var(--ink); }
.btn-ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn-ivory { border-color: var(--ivory); background: transparent; color: var(--ivory); }
.btn-ivory:hover { background: var(--ivory); color: var(--ink); }
.btn-sm { padding: 0.7rem 1.35rem; }
.btn-full { width: 100%; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.wrap-wide { max-width: var(--wrap-wide); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) {
  .wrap { padding-inline: 2.5rem; }
  .wrap-wide { padding-inline: 2.5rem; }
}
.section { padding-block: 5rem; }
.section-lg { padding-block: 5rem; }
.section-sm { padding-block: 3.5rem; }
@media (min-width: 768px) {
  .section { padding-block: 7rem; }
  .section-lg { padding-block: 8rem; }
  .section-sm { padding-block: 5rem; }
}
.section-dark {
  background: var(--ink);
  color: var(--ivory);
}
.section-dark .muted { color: rgba(255,255,255,0.6); }
.section-dark .muted-2 { color: rgba(255,255,255,0.45); }

.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }

/* generic responsive splits */
.split {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
  .split-l { grid-template-columns: 1fr 1.1fr; }
  .split-r { grid-template-columns: 1.1fr 1fr; }
  .split-text { grid-template-columns: 1fr 1.3fr; align-items: start; }
  .split-top { align-items: start; }
}

/* thin rules */
.rule-top { border-top: 1px solid var(--border-soft); }
.on-dark .rule-top, .section-dark .rule-top { border-top-color: var(--border-dark); }
hr.rule { border: 0; border-top: 1px solid var(--border-soft); }

/* ---------- imagery ---------- */
.img-frame {
  overflow: hidden;
  background: #f2f2f2;
  display: block;
  position: relative;
}
.section-dark .img-frame { background: #111; }
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}
.card-hover:hover .img-frame img,
a:hover .img-frame img { transform: scale(1.03); }

.ratio-21x10 { aspect-ratio: 21 / 10; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(8px);
}
.header-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
@media (min-width: 768px) { .header-inner { padding-inline: 2.5rem; } }
.logo { flex-shrink: 0; }
.logo img { height: 40px; width: auto; }
@media (min-width: 768px) { .logo img { height: 48px; } }

.nav-primary { display: none; }
@media (min-width: 1024px) {
  .nav-primary { display: flex; align-items: center; gap: 1.75rem; }
}
.nav-primary a.nav-link {
  font-family: var(--font-body);
  font-size: 0.67rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  padding-block: 0.5rem;
  transition: opacity 0.2s ease;
}
.nav-primary a.nav-link:hover { opacity: 0.55; }
.nav-primary a.nav-link.active { font-weight: 700; }

/* dropdown */
.has-menu { position: relative; }
.dropdown {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 280px;
  background: var(--ivory);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding-block: 0.75rem;
  z-index: 60;
}
.has-menu:hover .dropdown,
.has-menu:focus-within .dropdown { opacity: 1; visibility: visible; }
.dropdown a {
  display: block;
  padding: 0.65rem 1.5rem;
  font-size: 0.92rem;
  transition: background-color 0.2s ease;
}
.dropdown a:hover { background: #f5f5f5; }

/* hamburger */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle span {
  height: 1.5px;
  width: 24px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--ivory);
  z-index: 40;
  overflow-y: auto;
  padding: 2rem 1.5rem 4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu li { border-bottom: 1px solid rgba(0,0,0,0.1); }
.mobile-menu > ul > li > a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}
.mobile-menu .sub a {
  display: block;
  padding: 0.4rem 0 0.4rem 0.75rem;
  font-size: 0.95rem;
  color: rgba(0,0,0,0.7);
  border: 0;
}
.mobile-menu .sub { padding-bottom: 0.75rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--ivory);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 72%;
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.32) 45%, transparent);
}
.hero-inner {
  position: relative;
  max-width: var(--wrap-wide);
  margin-inline: auto;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10rem 1.25rem 3rem;
}
@media (min-width: 768px) {
  .hero-inner { padding: 10rem 2.5rem 3.5rem; }
}
.hero h1 { max-width: 22ch; text-shadow: 0 2px 28px rgba(0,0,0,0.55); }
.hero .eyebrow { color: rgba(255,255,255,0.9); text-shadow: 0 1px 14px rgba(0,0,0,0.5); }
.text-shadow-soft { text-shadow: 0 1px 10px rgba(0,0,0,0.6); }

/* page hero (compact, light) */
.page-hero { padding-top: 4rem; }
@media (min-width: 768px) { .page-hero { padding-top: 6rem; } }

/* ---------- index rows (dark link lists) ---------- */
.index-list { border-top: 1px solid var(--border-dark); }
.index-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0.25rem;
  border-bottom: 1px solid var(--border-dark);
  transition: background-color 0.28s ease, color 0.28s ease, padding 0.28s ease;
}
.index-row:hover, .index-row:focus-visible {
  background: #fff;
  color: #000;
  padding-inline: 0.9rem;
}
.index-row .row-label { font-family: var(--font-display); font-size: 1.3rem; }
.index-row .row-arrow { transition: transform 0.3s ease; opacity: 0.55; }
.index-row:hover .row-arrow { transform: translateX(6px); opacity: 1; }

/* light index list variant */
.index-list.on-light { border-top-color: var(--border-soft); }
.index-list.on-light .index-row { border-bottom-color: var(--border-soft); }
.index-list.on-light .index-row:hover { background: #000; color: #fff; }

/* ---------- cards ---------- */
.work-grid {
  display: grid;
  gap: 1.5rem 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 1.5rem; } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }

.card .card-cap {
  margin-top: 1.1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.card .card-title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.01em; }
.card:hover .card-title { opacity: 0.62; }
.card .card-meta { font-size: 0.67rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(0,0,0,0.45); }

/* service list rows */
.svc-list { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.svc-list > li { padding: 1.6rem 0; border-bottom: 1px solid var(--border-soft); }
.svc-list > li:last-child { border-bottom: 0; }
.svc-list h3 { font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.01em; }
.svc-list p { margin-top: 0.5rem; max-width: 64ch; color: rgba(0,0,0,0.7); line-height: 1.65; }

/* feature list with rule bullets (dark) */
.tick-list li { display: flex; gap: 0.85rem; padding-block: 0.35rem; }
.tick-list li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 0.72em;
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ---------- portfolio ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  background: none;
  border: 0;
  padding: 0.35rem 0;
  font-size: 0.67rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(0,0,0,0.45);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { color: #000; }
.filter-btn.active { color: #000; border-bottom-color: #000; }

.gallery {
  columns: 1;
  column-gap: 1.25rem;
}
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1024px) { .gallery { columns: 3; column-gap: 1.5rem; } }
.gallery .tile {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  width: 100%;
  display: block;
  background: none;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  text-align: left;
}
@media (min-width: 1024px) { .gallery .tile { margin-bottom: 1.5rem; } }
.gallery .tile .img-frame { background: #f2f2f2; }
.gallery .tile .img-frame img { height: auto; object-fit: contain; transition: transform 0.9s cubic-bezier(0.19,1,0.22,1), opacity 0.4s ease; }
.gallery .tile:hover .img-frame img { transform: scale(1.03); }
.gallery .tile .tile-cap {
  margin-top: 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
}
.tile.is-hidden { display: none; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; animation: lb-in 0.3s ease both; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: lbimg-in 0.4s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes lbimg-in { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
.lightbox-cap {
  position: absolute;
  bottom: 1.25rem;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.lb-btn {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-btn:hover { opacity: 1; }
.lb-close { top: 0.5rem; right: 0.5rem; font-size: 2rem; }
.lb-prev { left: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 2.5rem; }
.lb-next { right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 2.5rem; }
@media (max-width: 640px) { .lb-prev, .lb-next { font-size: 1.75rem; } }

/* ---------- forms ---------- */
.field { margin-bottom: 1.25rem; }
.field label, .field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  background: #fff;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink);
  outline: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.85rem; color: rgba(0,0,0,0.55); }

/* contact detail list */
.detail-list > div { padding-block: 0.35rem; }
.detail-list dt { font-size: 0.67rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(0,0,0,0.45); }
.detail-list dd { margin-top: 0.25rem; font-size: 1.05rem; }

/* card panel */
.panel { border: 1px solid var(--border-soft); padding: 2rem; }
@media (min-width: 768px) { .panel { padding: 3rem; } }

/* ---------- testimonials ---------- */
.quote-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .quote-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.quote { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.35; }
.quote-cite { margin-top: 1.25rem; font-size: 0.67rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(0,0,0,0.5); }
.section-dark .quote-cite { color: rgba(255,255,255,0.55); }

/* press logos / list */
.press-list { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .press-list { grid-template-columns: repeat(3, 1fr); } }
.press-item {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-soft);
  color: rgba(0,0,0,0.75);
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--ivory); }
.footer-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 4rem 1.25rem 2.5rem;
}
@media (min-width: 768px) { .footer-inner { padding: 6rem 2.5rem 3rem; } }
.footer-logo {
  height: 34px;
  width: auto;
  /* invert the black wordmark to white for the dark footer */
  filter: brightness(0) invert(1);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
  padding-top: 2.75rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-dark);
}
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .footer-cols { grid-template-columns: repeat(4, 1fr) 1.2fr; } }
.footer-cols h2 {
  font-size: 0.67rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.15rem;
}
.footer-cols a, .footer-cols li { font-size: 0.95rem; }
.footer-cols ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-cols a { transition: opacity 0.2s ease; }
.footer-cols a:hover { opacity: 0.6; }
.footer-brandline {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.3;
  max-width: 34ch;
  margin-top: 1.5rem;
}
@media (min-width: 768px) { .footer-brandline { font-size: 1.6rem; } }
.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}
@media (min-width: 768px) { .footer-legal { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- reveal motion ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: #000; color: #fff; padding: 0.5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-2 { margin-top: 0.5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-10 { margin-bottom: 2.5rem; }
.maxw-52 { max-width: 52ch; } .maxw-46 { max-width: 46ch; } .maxw-60 { max-width: 60ch; }
.maxw-30 { max-width: 30ch; } .maxw-24 { max-width: 24ch; } .maxw-18 { max-width: 18ch; }
.stack-6 > * + * { margin-top: 1.5rem; }
.flex-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
