/* ==========================================================================
   Influential Iranians — site stylesheet
   Plain CSS, no build step. Tokens first, then base, then components.
   Colours follow the PSA website palette (green #124C43, gold #C99A2E,
   red #C8102E) and adapt to the system colour scheme via light-dark().
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-roman.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --paper:    light-dark(#F7F2E9, #0E1412);
  --paper-2:  light-dark(#FFFDF9, #141B18);
  --paper-3:  light-dark(#EEE7D8, #1A221E);
  --ink:      light-dark(#16201B, #ECE5D8);
  --ink-2:    light-dark(#4E5955, #B7B0A4);
  --ink-3:    light-dark(#626A65, #858F8A);   /* small print: at least 4.5:1 on paper and on bands */
  --line:     light-dark(#DCD3C3, #283330);
  --line-2:   light-dark(#B8AD98, #3A4741);
  --line-field: light-dark(#8C826E, #677570); /* form-control edges: at least 3:1 against the field */

  --green:       #124C43;
  --green-deep:  #0C3A33;
  --green-ink:   light-dark(#124C43, #A3D6C6);
  --green-soft:  light-dark(#E4EDE9, #15302A);
  --gold:        #C99A2E;
  --gold-ink:    light-dark(#84610E, #E0BB5A);
  --gold-soft:   #E6C877;
  --red:         #C8102E;
  --red-ink:     light-dark(#C8102E, #EC8592);  /* the same red, lifted so error text stays legible on dark */
  --cream:       #F6F1E8;

  --btn:       light-dark(#124C43, #1B5F53);
  --btn-hover: light-dark(#0C3A33, #22705F);
  --focus:     var(--gold-ink);
  --ii-arch:   light-dark(#124C43, #F6F1E8);    /* the mark's arch: green, cream on dark grounds */

  /* the arch outline, drawn as a 1px hairline at any size */
  --arch-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-.01 -.01 1.02 1.02' preserveAspectRatio='none'%3E%3Cpath d='M0 1V.537C0 .226.27.075.5 0c.23.075.5.226.5.537V1' fill='none' stroke='%23C99A2E' stroke-opacity='.75' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --arch-line-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-.01 -.01 1.02 1.02' preserveAspectRatio='none'%3E%3Cpath d='M0 1V.537C0 .226.27.075.5 0c.23.075.5.226.5.537V1' fill='none' stroke='%23E6C877' stroke-opacity='.4' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fa:    "Vazirmatn", "Inter", system-ui, sans-serif;

  --container: 78rem;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 3px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem); /* anchors land below the sticky header */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-align: start;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 450;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 1.4rem + 4.6vw, 5.75rem); line-height: 1.0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 1.25rem + 2.4vw, 3.4rem); margin-bottom: .4em; }
h3 { font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem); }
h4 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; text-wrap: pretty; max-width: 68ch; }
ul, ol { padding-inline-start: 1.2em; }
a {
  color: var(--green-ink);
  text-decoration-thickness: 1px; text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in oklab, currentColor 45%, transparent);
  transition: color .15s var(--ease), text-decoration-color .15s var(--ease);
}
a:hover { color: var(--gold-ink); text-decoration-color: currentColor; }
img, svg { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
strong { font-weight: 600; }
small { font-size: 0.875em; }
::selection { background: var(--gold-soft); color: #16201B; }

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

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -4rem;
  background: var(--green); color: var(--cream); padding: .6rem 1rem;
  z-index: 100; border-radius: var(--radius); transition: top .2s; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Persian text */
.fa { font-family: var(--fa); direction: rtl; unicode-bidi: isolate; font-weight: 600; }
/* Persian line above a headline: a shrink-wrapped block, so it starts where the headline starts */
.fa-line { display: block; width: fit-content; max-width: 100%; color: var(--gold-ink); font-size: 1.15rem; line-height: 1.5; margin-bottom: .55rem; letter-spacing: 0; }
.on-green .fa-line { color: var(--gold-soft); }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 56rem); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section + .section { padding-top: 0; }
.band { background: var(--paper-3); }
.band + .section, .section + .band { padding-top: var(--section); }
.page-hero + .section { padding-top: calc(var(--section) * .8); }
.on-green { background: var(--green); color: var(--cream); --focus: var(--gold-soft); }
.on-green a:not(.btn) { color: var(--cream); }
.on-green a:not(.btn):hover { color: var(--gold-soft); }
.on-green ::selection { background: var(--gold); color: #16201B; }

.grid { display: grid; gap: var(--gutter); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(var(--gutter) * 2); align-items: start; }
.grid--split-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: calc(var(--gutter) * 2); align-items: start; }
@media (max-width: 56em) {
  .grid--2, .grid--3, .grid--4, .grid--split, .grid--split-rev { grid-template-columns: 1fr; }
}
@media (min-width: 40em) and (max-width: 56em) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 56em) { .sticky { position: static; } }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: block;
  font-family: var(--sans); font-size: .75rem; font-weight: 600; line-height: 1.4;
  letter-spacing: .16em; text-transform: uppercase; font-feature-settings: "case";
  color: var(--gold-ink); margin-bottom: 1rem;
}
.on-green .eyebrow { color: var(--gold-soft); }
.eyebrow--ink { color: var(--ink-2); }
.lede { font-family: var(--serif); font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); line-height: 1.4; color: var(--ink-2); max-width: 32em; font-weight: 400; }
.on-green .lede { color: color-mix(in oklab, var(--cream) 84%, transparent); }
.serif { font-family: var(--serif); }
.muted { color: var(--ink-2); }
.small { font-size: .9375rem; }
.caps { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-feature-settings: "case"; }
.num {
  font-family: var(--serif); font-size: clamp(2.5rem, 2rem + 2vw, 4rem); line-height: 1;
  color: var(--gold); font-weight: 400; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.02em;
}
.prose p { max-width: 62ch; }
.prose h3 { margin-top: 2.2rem; }
.prose ul { max-width: 62ch; }
.prose li { margin-bottom: .35em; }

/* Lists inside cards and prose: gold diamond markers, the same mark used in the strip */
.card ul, .prose ul { list-style: none; padding: 0; margin: 0 0 1.1em; }
.card ul:last-child, .prose ul:last-child { margin-bottom: 0; }
.card li, .prose li { position: relative; padding-inline-start: 1.35em; margin-bottom: .6em; text-wrap: pretty; }
.card li:last-child, .prose li:last-child { margin-bottom: 0; }
.card li::before, .prose li::before {
  content: ""; position: absolute; inset-inline-start: .2em; top: .66em;
  width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg);
}

/* Section heading block */
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4.5vw, 3.75rem); }
.section-head .lede { margin: 0; }

/* Rules */
.rule { border: 0; height: 1px; background: var(--line); margin: 0; position: relative; overflow: visible; }
.rule--mark::before {
  content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg);
}
.on-green .rule { background: color-mix(in oklab, var(--cream) 22%, transparent); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--btn); --btn-fg: var(--cream); --btn-bd: var(--btn);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 2.9rem; padding: .7rem 1.4rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 600; line-height: 1.1; letter-spacing: .005em;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd);
  border-radius: 999px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { --btn-bg: var(--btn-hover); --btn-bd: var(--btn-hover); color: var(--cream); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn--gold { --btn-bg: var(--gold); --btn-fg: #1A1405; --btn-bd: var(--gold); }
.btn--gold:hover { --btn-bg: #B8891F; --btn-bd: #B8891F; color: #1A1405; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--green-ink); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bg: var(--green-soft); --btn-bd: var(--green-ink); color: var(--green-ink); }
.on-green .btn--ghost { --btn-fg: var(--cream); --btn-bd: color-mix(in oklab, var(--cream) 45%, transparent); }
.on-green .btn--ghost:hover { --btn-bg: color-mix(in oklab, var(--cream) 12%, transparent); --btn-bd: var(--cream); color: var(--cream); }
.on-green .btn--cream { --btn-bg: var(--cream); --btn-fg: var(--green); --btn-bd: var(--cream); }
.on-green .btn--cream:hover { --btn-bg: #fff; --btn-bd: #fff; color: var(--green-deep); }
.btn--sm { min-height: 2.4rem; padding: .45rem 1.05rem; font-size: .875rem; }
.btn .arrow { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
@media (max-width: 30em) {
  /* on phones, paired buttons share the row or take a full row each, never a ragged stack */
  .btn-row > .btn { flex: 1 1 auto; }
}

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow .arrow { width: 1em; height: 1em; flex: none; transition: transform .2s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 2.35rem; height: 2.35rem; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; }
.brand__sub { font-family: var(--sans); font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-top: .22rem; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav__link {
  display: inline-block; padding: .5rem .8rem; border-radius: 999px;
  font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover { background: var(--paper-3); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--green-ink); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; padding-inline: .3rem; margin-inline: .5rem; }
.nav__link[aria-current="page"]:hover { background: none; }
.nav__cta { margin-inline-start: .6rem; }
.nav__cta .btn[aria-current="page"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold); }

.nav-toggle {
  display: none; appearance: none; background: none; border: 1px solid var(--line-2); border-radius: 999px;
  width: 2.75rem; height: 2.75rem; cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--ink-3); background: var(--paper-3); }
.nav-toggle svg { width: 1.3rem; height: 1.3rem; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

@media (max-width: 62em) {
  .brand__name { font-size: 1.2rem; }
  .nav-toggle { display: inline-flex; }
  /* note: the header's backdrop-filter makes it the containing block for these fixed layers */
  .nav__list {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-block: 1px solid var(--line);
    padding: .35rem var(--gutter) 1.5rem;
    box-shadow: 0 24px 40px -24px rgb(0 0 0 / .35);
    transform-origin: top; opacity: 0; transform: translateY(-6px); visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .nav::after {
    content: ""; position: fixed; inset-inline: 0; top: var(--header-h); height: 100dvh; z-index: 48;
    background: rgb(8 16 13 / .4); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), visibility 0s linear .2s;
  }
  .nav--open::after { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav--open .nav__list { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav__list li { border-top: 1px solid var(--line); }
  .nav__list li:first-child, .nav__list li.nav__cta { border-top: 0; }
  .nav__link { display: block; padding: .95rem .2rem; font-size: 1.1rem; border-radius: 0; }
  .nav__link:hover { background: none; color: var(--green-ink); }
  .nav__link[aria-current="page"] { margin-inline: 0; padding-inline: .2rem; box-shadow: inset 3px 0 0 var(--gold); padding-inline-start: .9rem; }
  .nav__cta { margin: .75rem 0 0; padding-top: .5rem; }
  .nav__cta .btn { width: 100%; min-height: 2.9rem; font-size: .95rem; }
  body.nav-locked { overflow: hidden; }
}
/* No-JS: keep the menu reachable */
html.no-js .nav-toggle { display: none; }
@media (max-width: 62em) {
  html.no-js .nav__list { position: static; opacity: 1; transform: none; visibility: visible; box-shadow: none; padding-inline: 0; max-height: none; }
  html.no-js .site-header .container { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; }
.hero--home { padding-block: clamp(3.75rem, 7vw, 6.5rem) clamp(3.75rem, 7vw, 6.25rem); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
@media (max-width: 62em) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { max-width: 12.5em; margin-bottom: 1.5rem; }
/* three lines on desktop, four on phones: sized to the column, not to the viewport alone */
.hero--home h1 { font-size: clamp(2.6rem, 1.4rem + 3.7vw, 5.1rem); max-width: none; letter-spacing: -0.022em; }
.hero .lede { max-width: 27em; margin-bottom: 2.25rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid color-mix(in oklab, var(--cream) 16%, transparent);
  font-size: .9rem; color: color-mix(in oklab, var(--cream) 78%, transparent);
}
.hero__meta span { display: inline-flex; align-items: center; }
.hero__meta span::before { content: ""; display: inline-block; flex: none; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); margin-inline-end: .65rem; }

/* decorative arcade behind the hero */
.hero__arcade {
  position: absolute; inset: auto 0 0 0; height: 34%; pointer-events: none; opacity: .1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='200' viewBox='0 0 120 200'%3E%3Cpath d='M10 200V80C10 40 35 10 60 0c25 10 50 40 50 80v120' fill='none' stroke='%23F6F1E8' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x bottom center / 120px 200px;
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent); mask-image: linear-gradient(to top, #000 15%, transparent);
}

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.75rem, 5.5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4.75rem); max-width: 14em; margin-bottom: 0; }
.page-hero .lede { margin-top: 1.4rem; margin-bottom: 0; }
/* a page that is only a hero (404) still needs room before the footer */
main > .page-hero:last-child { border-bottom: 0; padding-bottom: var(--section); }

/* ---------- The arch ---------- */
.arch { clip-path: url(#arch-clip); }
.arch-card {
  position: relative;
  color-scheme: light;          /* always a cream surface: tokens inside resolve to their light values */
  color: var(--green);
  background:
    var(--arch-line) 50% 14px / calc(100% - 28px) calc(100% - 14px) no-repeat,
    var(--cream);
  width: 100%; max-width: 25rem; aspect-ratio: 4 / 5.5; margin-inline: auto;
  padding: clamp(4.25rem, 7.2vw, 6.25rem) clamp(1.75rem, 3.2vw, 2.6rem) clamp(2.1rem, 3.4vw, 2.75rem);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.arch-card--pattern {
  background:
    var(--arch-line) 50% 14px / calc(100% - 28px) calc(100% - 14px) no-repeat,
    radial-gradient(70% 42% at 50% 0%, rgb(201 154 46 / .16), transparent 72%),
    var(--cream);
}
.arch-card .mark { width: 3.4rem; height: 3.4rem; flex: none; margin: 0 auto auto; }
.arch-card .eyebrow { color: var(--gold-ink); margin: 1.5rem 0 .7rem; }
.arch-card h3 { font-size: clamp(2rem, 1.5rem + 1.5vw, 2.65rem); line-height: 1.04; margin: 0 0 .4rem; color: var(--green); }
.arch-card .role { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.35; color: var(--ink-2); margin: 0 0 1.35rem; }
.arch-card .when { font-size: .9rem; line-height: 1.55; color: var(--ink-2); margin: 0 0 1.6rem; }
.arch-card .when strong { color: var(--green); font-weight: 600; }
/* ornament: a gold diamond on a hairline that fades at both ends */
.arch-card .rule {
  width: 6.5rem; flex: none; margin: 0 auto 1.35rem;
  background: linear-gradient(90deg, transparent, #CDBB8E 22%, #CDBB8E 78%, transparent);
}
.arch-card .rule::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  background: var(--gold); transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 4px var(--cream);
}
.arch-card .btn { align-self: center; }
@supports not (clip-path: url(#arch-clip)) { .arch { border-radius: 50% 50% 0 0 / 40% 40% 0 0; } }

/* Portrait (arch-shaped) */
.portrait { clip-path: url(#arch-clip); aspect-ratio: 4 / 5; background: var(--green-soft); position: relative; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait--placeholder {
  display: grid; place-items: center; color: var(--gold-soft);
  background:
    var(--arch-line-soft) 50% 16px / calc(100% - 32px) calc(100% - 16px) no-repeat,
    linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
  background-color: var(--green);
}
.portrait--placeholder .initials { font-family: var(--serif); font-size: clamp(4rem, 10vw, 7rem); letter-spacing: .02em; line-height: 1; padding-top: 18%; text-align: center; }
.portrait--placeholder .initials small { display: block; font-family: var(--sans); font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in oklab, var(--cream) 62%, transparent); margin-top: 1.1rem; }

/* ---------- Ticker strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--paper-2); }
.strip__list { list-style: none; margin: 0; padding: 1.05rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.4rem; font-size: .9rem; color: var(--ink-2); }
.strip__list li { display: inline-flex; align-items: center; gap: .7rem; }
.strip__list li::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex: none; }
@media (min-width: 40.01em) and (max-width: 66em) {
  /* two even columns rather than a three-and-one wrap */
  .strip__list { display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: .55rem 3rem; }
}
@media (max-width: 40em) {
  .strip__list { flex-direction: column; align-items: flex-start; gap: .5rem; padding-block: 1.3rem; }
}

/* ---------- Editorial lists ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-bottom: 1px solid var(--line); }
.steps > li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1.5rem; align-items: baseline; padding: 1.9rem 0 2rem; border-top: 1px solid var(--line); }
.steps h3 { margin-bottom: .4rem; }
.steps p { margin-bottom: 0; color: var(--ink-2); }
@media (max-width: 40em) { .steps > li { grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; padding-block: 1.6rem 1.7rem; } }

/* Doors: one shared set of columns (subgrid), so every row lines up */
.doors {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) max-content; column-gap: clamp(1.5rem, 3.5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.doors > li {
  grid-column: 1 / -1; display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) max-content;
  grid-template-columns: subgrid;
  column-gap: inherit; row-gap: .5rem; align-items: baseline;
  padding: 1.65rem 0; border-top: 1px solid var(--line);
}
.doors h3 { margin: 0; font-size: 1.45rem; }
.doors p { margin: 0; color: var(--ink-2); max-width: 58ch; }
.doors .link-arrow { justify-self: end; white-space: nowrap; }
@media (max-width: 56em) {
  .doors { grid-template-columns: minmax(0, 1fr); }
  .doors > li { grid-template-columns: minmax(0, 1fr); padding-block: 1.4rem 1.5rem; }
  .doors .link-arrow { justify-self: start; margin-top: .3rem; }
}

/* Features: hairline columns; rows of label, title and text line up across each row */
.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); column-gap: var(--gutter); row-gap: 0;
}
.features > li {
  display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0;
  padding: 1.35rem 0 2.6rem; border-top: 1px solid var(--line);
}
.features h3 { font-size: 1.5rem; margin: 0 0 .5rem; align-self: end; } /* a title sits on its text, whatever wraps beside it */
.features p { margin: 0; color: var(--ink-2); }
.features .caps { color: var(--gold-ink); display: block; margin-bottom: .85rem; }
/* numbered features: a serif folio in place of the small caps label */
.features .idx { font-family: var(--serif); font-size: 1.75rem; font-weight: 400; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; margin-bottom: 1rem; }
@media (max-width: 40em) { .features > li { padding-bottom: 2.1rem; } }

/* Cards, used sparingly */
.card { background: var(--paper-2); border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--radius); }
.card h3 { margin-bottom: .6rem; }
.card p:last-child { margin-bottom: 0; }
.card--green { background: var(--green); color: var(--cream); border-color: var(--green); }
.card--green h3 { color: var(--cream); }
.card--green .eyebrow { color: var(--gold-soft); }
.card--gold { border-top: 2px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); }
.card .caps { display: block; margin-bottom: .7rem; }
/* a whole card that is a link: quiet hover, an arrow that sits on the same line in every card */
a.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
a.card:hover { border-color: var(--line-2); background-color: color-mix(in oklab, var(--paper-2) 55%, var(--green-soft)); color: inherit; }
a.card.card--gold:hover { border-top-color: var(--gold); }
a.card h3 { transition: color .2s var(--ease); }
a.card:hover h3 { color: var(--green-ink); }
a.card::after {
  content: ""; flex: none; width: 1.1rem; height: 1.1rem; margin-top: auto; translate: 0 0;
  background: var(--green-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: translate .2s var(--ease);
}
a.card p:last-of-type { margin-bottom: 1.4rem; }
a.card:hover::after { translate: 3px 0; }

/* Season grid */
.season { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.season > li { background: var(--paper-2); padding: clamp(1.5rem, 2.6vw, 2rem); display: flex; flex-direction: column; gap: .4rem; min-height: 15rem; }
.season .caps { color: var(--gold-ink); }
.season h3 { font-size: 1.6rem; margin: .3rem 0 .2rem; }
.season p { margin: 0; color: var(--ink-2); }
.season .tag { margin-top: auto; padding-top: 1.1rem; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-feature-settings: "case"; color: var(--ink-3); }
.season > li.is-live { background: var(--green); color: var(--cream); }
.season > li.is-live .caps, .season > li.is-live .tag { color: var(--gold-soft); }
.season > li.is-live h3 { color: var(--cream); }
.season > li.is-live p { color: color-mix(in oklab, var(--cream) 80%, transparent); }
@media (max-width: 56em) { .season { grid-template-columns: 1fr; } .season > li { min-height: 0; } }

/* Timeline (evening schedule) */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1.2rem; padding: 1.05rem 0 1.15rem; border-top: 1px solid var(--line); align-items: baseline; }
.timeline > li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; color: var(--gold-ink); font-variant-numeric: tabular-nums lining-nums; }
.timeline strong { display: block; font-weight: 600; }
.timeline span { color: var(--ink-2); }
@media (max-width: 40em) {
  .timeline > li { grid-template-columns: 4.75rem minmax(0, 1fr); gap: .9rem; }
  .timeline time { font-size: 1.2rem; }
}

/* Directory */
.directory { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--gutter); }
.directory > li { background: var(--paper-2); border: 1px solid var(--line); padding: clamp(1.5rem, 2.4vw, 1.8rem); display: flex; flex-direction: column; gap: .5rem; border-radius: var(--radius); }
.directory h3 { font-size: 1.45rem; margin: .1rem 0 .1rem; }
.directory p { margin: 0; color: var(--ink-2); }
.directory .caps { color: var(--gold-ink); }
.directory .links { margin-top: auto; padding-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .92rem; }
.directory .links a { font-weight: 600; text-decoration: none; }
.directory .links a:hover { text-decoration: underline; }
.directory > li.is-add { border-style: dashed; border-color: var(--line-2); background: transparent; justify-content: center; align-items: flex-start; }

/* Chips */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips a, .chips span {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: .45rem 1rem;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: .92rem; font-weight: 500; line-height: 1.3;
  text-decoration: none; color: var(--ink); background: var(--paper-2);
  transition: border-color .15s var(--ease), color .15s var(--ease), background-color .15s var(--ease);
}
.chips a:hover { border-color: var(--green-ink); color: var(--green-ink); background: var(--green-soft); }

/* Stat row (no invented numbers: facts only) */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1.5rem var(--gutter); }
.facts li { position: relative; border-top: 1px solid var(--line); padding-top: 1rem; }
.facts li::before { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 2px; background: var(--gold); }
.facts .caps { color: var(--ink-3); display: block; margin-bottom: .35rem; }
.facts strong { font-family: var(--serif); font-weight: 450; font-size: 1.5rem; display: block; line-height: 1.15; }
.facts .small { display: block; line-height: 1.45; margin-top: .3rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.25rem 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 450; line-height: 1.3;
  transition: color .15s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: .9rem; height: .9rem; margin-inline-end: .3rem; color: var(--gold-ink);
  background:
    linear-gradient(currentColor 0 0) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor 0 0) center / 1.5px 100% no-repeat;
  transition: transform .25s var(--ease);
}
.faq summary:hover, .faq details[open] > summary { color: var(--green-ink); }
.faq summary:focus-visible { outline-offset: 2px; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.5rem; max-width: 62ch; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }

/* Quote */
.pull {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.3;
  max-width: 24em; margin: 2.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line);
  color: var(--ink); text-wrap: balance; hanging-punctuation: first;
}
@supports not (hanging-punctuation: first) { .pull { text-indent: -.42em; } }
.pull footer { font-family: var(--sans); font-style: normal; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 1.2rem; text-indent: 0; }

/* CTA band */
.cta { padding-block: clamp(3.75rem, 7vw, 6rem); }
.cta__inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; }
.cta h2 { margin-bottom: .6rem; }
.cta p { margin: 0; }
.cta .btn-row { justify-content: flex-end; }
@media (max-width: 56em) { .cta__inner { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.3rem 1.25rem; }
.form--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .span-2 { grid-column: 1 / -1; }
@media (max-width: 40em) { .form--2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: .45rem; align-content: start; }
.field label, .legend { font-size: .9rem; font-weight: 600; line-height: 1.35; }
.field label .muted, .legend .muted { font-weight: 500; }
.field .hint { font-size: .85rem; line-height: 1.45; color: var(--ink-3); margin-top: -.1rem; }

/* text fields, selects and text areas (radios and checkboxes keep their native size);
   :where() keeps this at class weight so .field textarea / .field select can refine it */
.field :where(input:not([type="radio"], [type="checkbox"]), select, textarea) {
  width: 100%; font: inherit; color: var(--ink); background-color: var(--paper-2);
  border: 1px solid var(--line-field); border-radius: var(--radius); padding: .7rem .85rem; min-height: 3rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}
.field :is(input, textarea)::placeholder { color: var(--ink-3); opacity: 1; }
.field :where(input:not([type="radio"], [type="checkbox"]), select, textarea):hover { border-color: var(--ink-3); }
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-inline-end: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234E5955' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .95rem center; background-size: .75rem;
}
@media (prefers-color-scheme: dark) {
  .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23B7B0A4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
.field :where(input:not([type="radio"], [type="checkbox"]), select, textarea):focus {
  outline: 2px solid transparent; outline-offset: 1px; /* stays visible in forced-colours mode */
  border-color: var(--green-ink);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 42%, transparent);
}
.field :where(input:not([type="radio"], [type="checkbox"]), select, textarea):user-valid { border-color: color-mix(in oklab, var(--green-ink) 65%, var(--line-field)); }
.field :where(input:not([type="radio"], [type="checkbox"]), select, textarea):user-invalid,
.form.is-submitted .field :where(input:not([type="radio"], [type="checkbox"]), select, textarea):invalid,
.field .is-invalid {
  border-color: var(--red-ink);
  background-color: color-mix(in oklab, var(--red) 5%, var(--paper-2));
}
.field :is(input, select, textarea):user-invalid:focus,
.form.is-submitted .field :is(input, select, textarea):invalid:focus,
.field .is-invalid:focus { border-color: var(--red-ink); box-shadow: 0 0 0 3px color-mix(in oklab, var(--red) 22%, transparent); }
.field .error { display: none; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 500; line-height: 1.4; color: var(--red-ink); }
.field .error::before {
  content: ""; flex: none; width: .95rem; height: .95rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Cpath d='M8 4.6v4.2' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.2' r='.95'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Cpath d='M8 4.6v4.2' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.2' r='.95'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field :is(input, select, textarea):user-invalid ~ .error,
.form.is-submitted .field :is(input, select, textarea):invalid ~ .error,
.field .is-invalid ~ .error { display: flex; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; padding-top: .3rem; }
.form__note { font-size: .85rem; line-height: 1.45; color: var(--ink-3); margin: 0; max-width: 48ch; }
.form__status { font-size: .95rem; margin: 0; padding: .9rem 1.1rem; border-radius: var(--radius); border-inline-start: 3px solid transparent; display: none; }
.form__status.is-ok { display: block; background: var(--green-soft); color: var(--green-ink); border-inline-start-color: var(--green-ink); }
.form__status.is-err { display: block; background: color-mix(in oklab, var(--red) 9%, var(--paper-2)); color: var(--red-ink); border-inline-start-color: var(--red-ink); }
.form__status a { color: inherit; }
.form .honey { position: absolute; left: -9999px; }

/* radio and checkbox groups: an even grid instead of a ragged wrap */
.legend { display: block; }
.radio-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: .7rem 1.5rem; padding-top: .25rem; }
.radio-row label { display: inline-flex; align-items: flex-start; gap: .6rem; font-weight: 500; font-size: .95rem; line-height: 1.4; cursor: pointer; }
.radio-row input { accent-color: var(--green-ink); width: 1.1rem; height: 1.1rem; margin: .1rem 0 0; flex: none; cursor: pointer; }
.radio-row input:focus-visible { outline-offset: 2px; }
.radio-row[role="radiogroup"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }

/* Mailing-list block */
.signup { background: var(--paper-2); border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius); }
.signup h2 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); margin-bottom: .55rem; }
.signup__intro p { margin: 0; max-width: 36ch; }
.signup .form { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.9rem; }
@media (min-width: 64em) {
  .signup { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
  .signup .form { margin-top: .2rem; }
}
@media (max-width: 40em) { .signup .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep); color: color-mix(in oklab, var(--cream) 80%, transparent);
  --focus: var(--gold-soft); --ii-arch: var(--cream);
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; text-decoration-color: currentColor; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem var(--gutter); padding-block: clamp(3.5rem, 6vw, 5rem) clamp(2.5rem, 4vw, 3.25rem); }
@media (max-width: 56em) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 36em) { .footer__top { gap: 2.25rem 1.25rem; } .footer__col:last-child { grid-column: 1 / -1; } }
.footer__brand .brand { color: var(--cream); }
.footer__brand .brand:hover { text-decoration: none; }
.footer__brand .brand__sub { color: var(--gold-soft); }
.footer__brand p { margin-top: 1.1rem; font-size: .95rem; max-width: 32ch; }
.footer__col h4 { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-feature-settings: "case"; color: var(--gold-soft); margin-bottom: 1.1rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; font-size: .95rem; line-height: 1.35; }
.footer__psa { display: flex; align-items: center; gap: 1.25rem; padding-block: 1.75rem; border-top: 1px solid color-mix(in oklab, var(--cream) 16%, transparent); font-size: .9rem; }
/* the PSA cypress on a cream arch: the emblem keeps its own colours, the frame echoes our mark */
.footer__psa img {
  flex: none; width: 2.9rem; height: 4rem; object-fit: contain;
  padding: 1.05rem .55rem .5rem; background: var(--cream); clip-path: url(#arch-clip);
}
.footer__psa p { margin: 0; max-width: 70ch; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; padding-block: 1.3rem 2rem; border-top: 1px solid color-mix(in oklab, var(--cream) 16%, transparent); font-size: .82rem; color: color-mix(in oklab, var(--cream) 64%, transparent); }
.footer__legal p { margin: 0; max-width: none; }
.footer__fa { font-family: var(--fa); direction: rtl; font-weight: 600; color: var(--gold-soft); }

/* ---------- Motion ---------- */
/* Entry reveal is pure CSS (scroll-driven animation). Browsers without support, and people who
   prefer reduced motion, simply see the content; nothing is ever hidden behind JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal { animation: reveal-in linear both; animation-timeline: view(); animation-range: entry 0% entry 32%; }
    /* siblings that enter together settle one after another */
    .reveal[data-delay="1"] { animation-range: entry 4% entry 36%; }
    .reveal[data-delay="2"] { animation-range: entry 8% entry 40%; }
    .reveal[data-delay="3"] { animation-range: entry 12% entry 44%; }
    @keyframes reveal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  }
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .18s ease-in both vt-out; }
  ::view-transition-new(root) { animation: .28s ease-out both vt-in; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn .arrow, .link-arrow .arrow, .nav__list, .nav::after, .faq summary::after, a.card::after, .chips a, .field :is(input, select, textarea) { transition: none; }
  .btn:hover { transform: none; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta, .signup { display: none !important; }
  body { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
