/* ============================================================
   GLE World — Венский Институт Экзистенциального Анализа
   Design system: Modern International Academic / Editorial Luxury
   ============================================================ */

:root {
  --ink: #1C1917;
  --ink-soft: #57534E;
  --paper: #FAF9F7;
  --surface: #F3F0EA;
  --line: #E5E0D8;
  --gold: #955B06;
  --gold-bright: #E8940C;
  --white: #FFFFFF;

  --font-display: "Manrope", -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --font-body: "Golos Text", -apple-system, "Segoe UI", sans-serif;

  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;

  --container: 1200px;
  --radius: 2px;

  /* ---------- Motion system ----------
     Strong custom curves — the built-in CSS easings are too weak to feel
     intentional. Entrances/exits: --ease-out. On-screen movement:
     --ease-in-out. --ease-spring settles with a single, restrained
     overshoot for elements that should feel alive (approximated spring —
     works everywhere transitions do, unlike linear()). */
  --ease: cubic-bezier(.25,.46,.45,.94);            /* legacy, kept for colour fades */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.44, 1);
  --dur: 220ms;
  --dur-press: 140ms;
  --dur-enter: 480ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video { max-width: 100%; display: block; height: auto; }
a { color: var(--gold); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 1px; }
::selection { background: rgba(232,148,12,.22); }

/* ---------- Typography ---------- */
/* Heavy geometric sans: tight tracking, compact leading. The weight does
   the talking, so headings sit closer to the text that follows them. */
h1, h2, h3, h4, h5, h6, .display { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.22rem, 2vw, 1.4rem); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1.12rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
h5 { font-size: 1rem;    line-height: 1.35; font-weight: 700; letter-spacing: 0; }
h6 { font-size: .88rem;  line-height: 1.4;  font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
p  { max-width: 68ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); font-weight: 400; }
.muted { color: var(--ink-soft); }

.eyebrow {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-2);
}

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink .lead, .section--ink .muted { color: rgba(250,249,247,.72); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }

.grid { display: grid; gap: var(--s-5); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Header ---------- */
/* Scroll edge, not a permanent rule: the divider and the heavier glass only
   appear once content is actually travelling underneath. At the top of the
   page the header simply belongs to the page. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,247,.72);
  border-bottom: 1px solid transparent;
  transition: background-color 260ms var(--ease-out), border-color 260ms var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(250,249,247,.92);
  border-bottom-color: var(--line);
}
/* Frosted glass lives on a pseudo-layer: backdrop-filter on the header itself
   would make it the containing block for the fixed mobile nav panel
   (Filter Effects spec), collapsing the open menu to the header's height. */
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 44px; height: 39px; flex: none; }
.brand-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.02rem; line-height: 1.2; letter-spacing: .01em;
}
.brand-name small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }

/* The logo used to float on a 6s loop. A permanent ~0.17Hz oscillation in
   fixed chrome is exactly the kind of slow looping motion that reads as
   restless and is a vestibular irritant, and it animated whether or not
   anyone was looking. Motion now answers the pointer instead. */
.brand-logo { transition: transform 320ms var(--ease-spring), filter 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-logo {
    transform: translateY(-2px);
    filter: drop-shadow(0 3px 8px rgba(232, 148, 12, .3));
  }
}
.brand:active .brand-logo { transform: scale(0.96); transition-duration: var(--dur-press); }

/* ---------- Navigation ---------- */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px; line-height: 0;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.site-nav > ul > li { position: relative; }
.site-nav a, .site-nav .nav-group-label {
  display: block; padding: 10px 14px;
  font-size: .92rem; font-weight: 500; color: var(--ink);
  border-radius: var(--radius);
  background: none; border: none; text-align: left; width: 100%;
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
.site-nav a:hover, .site-nav .nav-group-label:hover { color: var(--gold); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--gold); }
.nav-group-label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-group-label svg { width: 12px; height: 12px; transition: transform var(--dur) var(--ease); }
.nav-group[aria-expanded="true"] > .nav-group-label svg,
.nav-item:focus-within .nav-group-label svg,
.nav-item:hover .nav-group-label svg { transform: rotate(180deg); }

.nav-sub {
  position: absolute; top: 100%; left: 0; min-width: 300px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(28,25,23,.09);
  padding: var(--s-1);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav-sub { display: block !important; }
.nav-sub li { width: 100%; }
.nav-sub a { white-space: normal; font-weight: 400; padding: 10px 14px; }
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav ul.nav-sub { display: block; }

.header-cta { margin-left: var(--s-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; min-height: 48px;
  font-size: .95rem; font-weight: 500; letter-spacing: .02em;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #3a3531; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.section--ink .btn-primary { background: var(--paper); color: var(--ink); }
.section--ink .btn-primary:hover { background: var(--white); }
.section--ink .btn-outline { color: var(--paper); border-color: rgba(250,249,247,.5); }
.section--ink .btn-outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.btn-gold {
  display: inline-flex;
  padding: 13px 26px;
  background: linear-gradient(120deg, #F0C010, #E8940C 55%, #E07F1E);
  background-size: 160% 100%;
  background-position: 0% 0;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  white-space: nowrap;
}
.btn.btn-gold:hover, .btn.btn-gold:focus-visible {
  background-position: 90% 0;
  color: var(--ink);
  box-shadow: 0 6px 26px rgba(232, 148, 12, 0.38);
  text-decoration: none;
}

.text-link {
  font-weight: 500; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.text-link::after { content: "→"; transition: transform 260ms var(--ease-spring); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(72px, 10vw, 144px); position: relative; overflow: hidden; }
/* cinematic hero: typography beside the living book, no static image */
.hero--scene { display: flex; align-items: center; min-height: min(86vh, 860px); }
/* small-viewport units: stable against mobile address-bar collapse (iOS/Android) */
@supports (height: 1svh) {
  .hero--scene { min-height: min(86svh, 860px); }
}
.hero--scene .hero-copy { max-width: 640px; }
/* Scoped to the scene hero: the headline now shares the row with the
   portrait, so it steps down a size. Interior page <h1>s are unaffected. */
.hero--scene h1 {
  margin-block: var(--s-2) var(--s-3);
  font-size: clamp(2.05rem, 4.15vw, 3.35rem);
}
.hero--scene .lead { margin-bottom: var(--s-5); }
.hero--scene .hero-meta { max-width: 560px; }
/* Hero portrait: tall crop that holds its own beside the headline block.
   Capped so the whole hero stays inside the first screen — uncapped, a 4:5
   crop at this column width runs past the fold. */
.hero--scene .hero-figure img { aspect-ratio: 4 / 5; max-height: min(50vh, 460px); }
@media (min-width: 1024px) {
  .hero--scene .hero-grid { gap: var(--s-7); }
  /* Top-aligned, not centred: the copy column is taller, so centring the
     portrait leaves a dead void above it and pushes it through the fold.
     Portrait high-right, animated book low-left — the two never meet. */
  .hero--scene .hero-figure { align-self: start; }
}
@media (max-width: 1023px) {
  /* stack: picture after the copy, capped so it never dominates the fold */
  .hero--scene .hero-figure img { aspect-ratio: 3 / 2; }
  .hero--scene .hero-figure { max-width: 560px; }
}
@media (max-width: 1023px) {
  .hero--scene { min-height: 72vh; text-align: left; }
  @supports (height: 1svh) {
    .hero--scene { min-height: 72svh; }
  }
}
.hero-grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; } }
.hero h1 { margin-block: var(--s-2) var(--s-3); }
.hero .lead { margin-bottom: var(--s-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero-figure figcaption {
  margin-top: var(--s-2); font-size: .85rem; color: var(--ink-soft);
  border-left: 2px solid var(--gold); padding-left: 12px;
}
/* Watermark spiral — oversized logo ghost */
.hero-watermark {
  position: absolute; right: -8%; top: -12%; width: 520px; opacity: .05;
  pointer-events: none; user-select: none; z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

.hero-meta { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.hero-meta div { min-width: 140px; }
.hero-meta dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.hero-meta dd { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-4);
  transition: border-color var(--dur) var(--ease),
              transform 300ms var(--ease-spring),
              box-shadow 300ms var(--ease-out);
}
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; border-color: var(--gold); }
.card h3 { margin-bottom: var(--s-2); }
.card .eyebrow { margin-bottom: var(--s-1); }
.card p { font-size: .95rem; color: var(--ink-soft); }
.card .text-link { margin-top: var(--s-2); }

.stat { border-left: 2px solid var(--gold); padding-left: var(--s-3); }
.stat dd { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 600; line-height: 1.1; }
.stat dt { font-size: .9rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Figures ---------- */
.figure-frame img { border-radius: var(--radius); object-fit: cover; width: 100%; }
.portrait { aspect-ratio: 4/5; object-fit: cover; }
figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: var(--s-1); }

/* ---------- Quote ---------- */
/* With the serif retired, a quote set in the heading face reads as another
   heading. The gold rule — the same device used by .stat and figcaption —
   gives it back a voice of its own without a second typeface. */
.pullquote {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 600; line-height: 1.4; letter-spacing: -0.015em; font-style: normal;
  max-width: 24em;
  padding-left: clamp(20px, 2.5vw, 32px);
  border-left: 2px solid var(--gold-bright);
}
.pullquote footer { font-family: var(--font-body); font-size: .9rem; color: var(--ink-soft); margin-top: var(--s-3); }
.pullquote footer::before { content: "— "; }

/* ---------- Prose (long-form pages) ---------- */
.prose > * + * { margin-top: var(--s-3); }
.prose h2 { margin-top: var(--s-6); }
.prose h3 { margin-top: var(--s-5); }
.prose ul, .prose ol { padding-left: 1.4em; max-width: 66ch; }
.prose li + li { margin-top: .5em; }
.prose strong { font-weight: 600; }

/* ---------- Definition list rows ---------- */
.info-rows { border-top: 1px solid var(--line); }
.info-row {
  display: grid; gap: var(--s-1);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) { .info-row { grid-template-columns: 260px 1fr; gap: var(--s-5); } }
.info-row dt { font-weight: 600; font-size: .95rem; }
.info-row dd { color: var(--ink-soft); font-size: .97rem; max-width: 62ch; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: var(--s-4); list-style: none; padding-left: 0; margin: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { counter-increment: step; border-top: 2px solid var(--ink); padding-top: var(--s-3); }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--gold);
  display: block; margin-bottom: var(--s-1);
}
.step h3 { font-size: 1.15rem; margin-bottom: var(--s-1); }
.step p { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Price list ---------- */
.price-list { border-top: 1px solid var(--line); max-width: 760px; }
.price-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3);
  padding-block: var(--s-3); border-bottom: 1px solid var(--line);
}
.price-item .label { font-weight: 500; }
.price-item .note { font-size: .88rem; color: var(--ink-soft); max-width: 46ch; margin-top: 4px; }
.price-item .amount { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: var(--s-3); max-width: 720px; }
@media (min-width: 640px) { .form-grid .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); } }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 6px; }
.field .req { color: var(--gold); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; min-height: 48px;
  font: inherit; font-size: .97rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(161,98,7,.12); }
.field .hint { font-size: .82rem; color: var(--ink-soft); margin-top: 5px; }
.field.invalid input, .field.invalid textarea { border-color: #B91C1C; }
.field .error-msg { display: none; font-size: .84rem; color: #B91C1C; margin-top: 5px; }
.field.invalid .error-msg { display: block; }
.field-check label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; font-weight: 400; color: var(--ink-soft);
  cursor: pointer; margin-bottom: 0;
}
.field-check input[type="checkbox"] {
  width: 20px; height: 20px; min-height: 0; flex: none;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}
.field-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.field-check.invalid label { color: #B91C1C; }
.form-status { margin-top: var(--s-2); font-size: .95rem; }
.form-status.ok { color: #166534; }
.form-status.err { color: #B91C1C; }

/* ---------- Publication list ---------- */
.pub-item {
  display: grid; gap: var(--s-2);
  padding-block: var(--s-4); border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .pub-item { grid-template-columns: 1fr auto; align-items: start; gap: var(--s-6); } }
.pub-item h3 { font-size: 1.2rem; }
.pub-item .authors { font-size: .88rem; color: var(--gold); font-weight: 500; margin-top: 2px; }
.pub-item p { font-size: .93rem; color: var(--ink-soft); margin-top: var(--s-1); }
.pub-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(250,249,247,.78); font-size: .93rem; }
.footer-main { display: grid; gap: var(--s-5); padding-block: var(--s-7) var(--s-5); }
@media (min-width: 900px) { .footer-main { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: var(--paper); margin-bottom: var(--s-3); }
.site-footer .brand-name small { color: rgba(250,249,247,.55); }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--paper); margin-bottom: var(--s-2); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(250,249,247,.78); }
.site-footer a:hover { color: var(--gold-bright); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(250,249,247,.14);
  padding-block: var(--s-3);
  display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: space-between;
  font-size: .82rem; color: rgba(250,249,247,.5);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: var(--s-3); font-size: .85rem; color: var(--ink-soft); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--gold); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.page-hero h1 { max-width: 18em; margin-top: var(--s-2); }
.page-hero .lead { margin-top: var(--s-3); }

/* ---------- Reveal animation (only when JS is available) ----------
   Entrances lead with movement (strong ease-out) and a breath of blur
   that bridges the two states — the eye reads one object arriving,
   not a crossfade. Transform/opacity/filter only: no layout, no paint. */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(5px);
  transition:
    opacity var(--dur-enter) var(--ease-out),
    transform var(--dur-enter) var(--ease-out),
    filter var(--dur-enter) var(--ease-out);
}
html.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 18px;
  border-radius: var(--radius); transition: top 150ms var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Mobile navigation ---------- */
.nav-close { display: none; }
@media (max-width: 1023px) {
  .nav-toggle { display: block; }
  /* Full-screen panel: inset 0 (no dependence on header height), above the
     sticky header, closed via its own button in the top-right corner. */
  .site-nav {
    position: fixed; inset: 0; z-index: 140;
    background: var(--paper);
    padding: 104px 24px var(--s-6);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    /* iOS sheet curve: brisk departure, feather-soft arrival */
    transition: transform 420ms cubic-bezier(0.32, 0.72, 0, 1), visibility 420ms;
  }
  .site-nav.open { transform: translateX(0); visibility: visible; }
  /* menu items cascade in behind the panel edge */
  .site-nav > ul > li {
    opacity: 0; transform: translateX(24px);
    transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out);
  }
  .site-nav.open > ul > li { opacity: 1; transform: none; }
  .site-nav.open > ul > li:nth-child(1) { transition-delay: 60ms; }
  .site-nav.open > ul > li:nth-child(2) { transition-delay: 105ms; }
  .site-nav.open > ul > li:nth-child(3) { transition-delay: 150ms; }
  .site-nav.open > ul > li:nth-child(4) { transition-delay: 195ms; }
  .nav-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 16px; right: 24px;
    width: 48px; height: 48px;
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    line-height: 0;
  }
  .nav-close svg { width: 22px; height: 22px; stroke: var(--ink); }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .site-nav > ul > li.header-cta-mobile { border-bottom: none; padding-top: var(--s-3); }
  .site-nav a { padding: 16px 4px; font-size: 1.05rem; white-space: normal; }
  .site-nav .header-cta-mobile .btn { padding: 13px 26px; font-size: .95rem; }
  .header-inner .btn.header-cta-desktop { display: none; }
  body.nav-locked { overflow: hidden; }
  /* off-canvas nav sits off-screen right; clip so it never adds horizontal scroll */
  html, body { overflow-x: clip; }
}
@media (min-width: 1024px) {
  .header-cta-mobile { display: none; }
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: var(--s-1); } .mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }
.center { text-align: center; }
.center p, .center .lead { margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ============================================================
   BRAND LIGHT — controlled gold accents
   ============================================================ */
/* The accent word used to differ from its heading three ways at once —
   another typeface (Unbounded), a lighter weight and a smaller size — which
   read as a mistake rather than emphasis. It now inherits the heading
   entirely; colour alone carries the accent. (Also retires a whole font
   family from the page payload.) */
.accent-word {
  font: inherit;
  background-image: linear-gradient(105deg, #C17408, #955B06 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section--ink .accent-word {
  background-image: linear-gradient(105deg, #F0C010, #E8940C 70%);
}
@supports not (background-clip: text) {
  .accent-word { color: var(--gold); background-image: none; }
  .section--ink .accent-word { color: var(--gold-bright); }
}
/* Never hyphenate or split accent words mid-word on narrow screens —
   scale them down instead so the word stays intact. */
@media (max-width: 480px) {
  .accent-word { font-size: 0.78em; }
}
@media (max-width: 359px) {
  .accent-word { font-size: 0.74em; }
}

/* eyebrows carry a bright brand tick */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px; height: 2px;
  margin-right: 10px;
  vertical-align: 0.22em;
  background: linear-gradient(90deg, #F0C010, #E8940C);
}

/* statistics glow warm (large type ⇒ AA-large safe) */
.stat dd { color: #C17408; }
.stat { border-left-color: var(--gold-bright); }
.section--ink .stat dd { color: var(--gold-bright); }

/* golden top seam — the institution's ribbon */
.site-header::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F0C010, #E8940C 45%, #E07F1E 75%, #F0C010);
}
.brand-name small { color: var(--gold); }

/* gold hairline flourish under section heads */
.section-head h2::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  margin-top: 18px;
  background: linear-gradient(90deg, #F0C010, #E8940C 60%, rgba(232,148,12,0));
}
.center .section-head h2::after, .center h2::after { margin-inline: auto;
  background: linear-gradient(90deg, rgba(232,148,12,0), var(--gold-bright), rgba(232,148,12,0)); }

/* navigation: golden underline reveal + active state */
.site-nav > ul > li > a, .nav-group-label { position: relative; }
@media (min-width: 1024px) {
  .site-nav > ul > li > a::after,
  .nav-group-label::after {
    content: "";
    position: absolute; left: 14px; right: 14px; bottom: 6px;
    height: 1.5px;
    background: linear-gradient(90deg, var(--gold-bright), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 240ms var(--ease-out);
  }
  .site-nav > ul > li > a:hover::after,
  .site-nav > ul > li > a[aria-current="page"]::after,
  .nav-item:hover .nav-group-label::after,
  .nav-item:focus-within .nav-group-label::after { transform: scaleX(1); }
}
.nav-sub a { border-left: 2px solid transparent; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), padding-left var(--dur) var(--ease); }
.nav-sub a:hover { border-left-color: var(--gold-bright); padding-left: 18px; }

/* ============================================================
   BUTTONS — premium tactile light
   ============================================================ */
.btn { position: relative; overflow: hidden; }
.btn > * { position: relative; }
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    rgba(240,192,16,0) 30%,
    rgba(240,192,16,0.28) 48%,
    rgba(232,148,12,0.34) 52%,
    rgba(240,192,16,0) 70%);
  transform: translateX(-110%);
  transition: transform 650ms var(--ease);
  pointer-events: none;
}
.btn-primary:hover::after, .btn-primary:focus-visible::after { transform: translateX(110%); }
.btn-primary:hover {
  background: #322d29;
  box-shadow: 0 4px 22px rgba(232, 148, 12, 0.24);
}
.btn-outline:hover {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
  box-shadow: 0 4px 18px rgba(232, 148, 12, 0.16);
}
.section--ink .btn-primary:hover { background: var(--white); box-shadow: 0 4px 26px rgba(240, 192, 16, 0.3); }
/* Press: instant confirmation the interface heard you. Release rides the
   spring curve back, so letting go feels alive rather than mechanical. */
.btn:active { transform: scale(0.97); transition-duration: var(--dur-press); }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
         border-color var(--dur) var(--ease), box-shadow 300ms var(--ease),
         transform 260ms var(--ease-spring); }
}

/* ============================================================
   MICRO-INTERACTIONS
   ============================================================ */
a.card { position: relative; }
@media (hover: hover) and (pointer: fine) {
  a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(28, 25, 23, 0.07); }
}
a.card:active { transform: translateY(-1px) scale(0.99); transition-duration: var(--dur-press); }
a.card::before {
  content: "";
  position: absolute; left: 0; right: auto; top: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  transition: width 350ms var(--ease-out);
}
a.card:hover::before { width: 100%; }

.figure-frame { overflow: hidden; border-radius: var(--radius); }
.figure-frame img { transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .figure-frame:hover img { transform: scale(1.025); }
}

.stat { transition: border-color 300ms var(--ease); }
.stat:hover { border-left-color: var(--gold-bright); }

.price-item { transition: background-color var(--dur) var(--ease); }
.price-item:hover { background: rgba(240, 192, 16, 0.045); }
.price-item:hover .amount { color: var(--gold); transition: color var(--dur) var(--ease); }

.info-row { transition: background-color var(--dur) var(--ease); }
.info-row:hover { background: rgba(240, 192, 16, 0.035); }

.step { transition: border-color 300ms var(--ease); }
.step:hover { border-top-color: var(--gold); }

/* ============================================================
   REVEAL VARIATIONS — hierarchy-aware entrances
   ============================================================ */
/* headings rise out of a mask line */
html.js .reveal-line { display: block; overflow: hidden; }
html.js .reveal-line > .rl-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 750ms var(--ease-out);
}
html.js .reveal-line.is-visible > .rl-inner { transform: translateY(0); }

/* images unveil with a clip sweep */
html.js .reveal-img { clip-path: inset(0 0 24% 0); opacity: 0;
  transition: clip-path 800ms var(--ease-out), opacity 600ms var(--ease-out); }
html.js .reveal-img.is-visible { clip-path: inset(0); opacity: 1; }

/* card grids stagger gently */
html.js .grid > .reveal:nth-child(2) { transition-delay: 70ms; }
html.js .grid > .reveal:nth-child(3) { transition-delay: 140ms; }
html.js .grid > .reveal:nth-child(4) { transition-delay: 210ms; }
html.js .grid > .reveal:nth-child(5) { transition-delay: 120ms; }
html.js .grid > .reveal:nth-child(6) { transition-delay: 190ms; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal-line > .rl-inner { transform: none; }
  html.js .reveal-img { clip-path: none; opacity: 1; }
  .btn-primary::after { display: none; }
}

/* ============================================================
   REDESIGN COMPONENTS — 3-page structure
   ============================================================ */

/* ---------- Trust strip ---------- */
.trust-strip { padding-block: var(--s-3); }
.trust-row {
  list-style: none; display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: var(--s-1) var(--s-5); font-size: .92rem;
  color: rgba(250, 249, 247, .82); text-align: center;
}
.trust-row li { position: relative; }
.trust-row li::before {
  content: ""; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-bright);
  margin-right: var(--s-2); vertical-align: .18em;
}
.trust-row li:first-child::before { display: none; }
.trust-row strong { color: var(--paper); font-weight: 600; }

/* ---------- Tick list (benefits / requirements) ---------- */
.tick-list { list-style: none; display: grid; gap: var(--s-2); }
.tick-list li {
  position: relative; padding-left: 30px;
  max-width: 64ch; color: var(--ink-soft); font-size: 1.02rem;
}
.tick-list li::before {
  content: ""; position: absolute; left: 4px; top: .28em;
  width: 7px; height: 12px;
  border: solid var(--gold); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Numbered list (course themes) ---------- */
.num-list { list-style: none; counter-reset: n; display: grid; gap: 0; border-top: 1px solid var(--line); }
.num-list li {
  counter-increment: n; position: relative;
  padding: var(--s-3) 0 var(--s-3) 56px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.num-list li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute; left: 0; top: calc(var(--s-3) - 2px);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
  color: var(--gold);
}

/* ---------- Cards with a full-bleed image (teachers / format) ---------- */
.teacher-card, .format-card {
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.teacher-card .figure-frame, .format-card .figure-frame { border-radius: 0; }
.teacher-card .figure-frame img, .format-card .figure-frame img { width: 100%; }
.teacher-body, .format-body { padding: var(--s-4); flex: 1; }
.teacher-body .eyebrow, .format-body .eyebrow { margin-bottom: var(--s-1); }
.teacher-body h3, .format-body h3 { margin-bottom: var(--s-2); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 840px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  padding-block: var(--s-3);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-item summary::after {
  content: "+"; flex: none;
  font-family: var(--font-body); font-size: 1.6rem; font-weight: 400; line-height: 1;
  color: var(--gold);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-body { padding-bottom: var(--s-3); }
.faq-body p { color: var(--ink-soft); max-width: 72ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-body { animation: faq-in 340ms var(--ease-out); }
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); filter: blur(3px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ============================================================
   MOBILE POLISH — typography, touch targets
   ============================================================ */
/* faster taps, no double-tap zoom ambiguity on interactive elements */
a, button, summary, input, textarea, select { touch-action: manipulation; }

@media (max-width: 1023px) {
  /* balanced, intact-word heading wraps (progressive enhancement) */
  h1, h2, h3, .pullquote { text-wrap: balance; }
  h1, h2, h3 { overflow-wrap: normal; word-break: normal; hyphens: manual; }

  /* iOS Safari auto-zooms into inputs with font-size < 16px */
  .field input, .field textarea, .field select { font-size: 16px; }

  /* comfortable touch targets for text links (44px min height) */
  .text-link { padding-block: 10px; }
  .site-footer li { margin-bottom: 2px; }
  .site-footer li a { display: inline-block; padding: 10px 0; }
  .footer-bottom { padding-block: var(--s-3); }
}

/* ============================================================
   PAGE TRANSITIONS — seamless travel between pages
   Native cross-document View Transitions where supported (html.vt,
   flagged pre-paint from the head bootstrap); a JS-assisted
   entrance/exit fallback everywhere else. Exits are brisk, entrances
   settle softly — the site answers fast and lands gently.
   NOTE: body carries opacity only. A transform on body would turn it
   into the containing block for the fixed scene canvas.
   ============================================================ */
@view-transition { navigation: auto; }

html.vt::view-transition-old(root) {
  animation: page-out 170ms var(--ease-in-out) both;
}
html.vt::view-transition-new(root) {
  animation: page-in-vt 380ms var(--ease-out) both;
}
@keyframes page-out {
  to { opacity: 0; transform: translateY(-10px); }
}
@keyframes page-in-vt {
  from { opacity: 0; transform: translateY(14px); }
}

/* fallback: entrance on load… */
html.js:not(.vt) body { animation: page-fade-in 340ms var(--ease-out) both; }
html.js:not(.vt) main { animation: page-rise-in 500ms var(--ease-out) both; }
@keyframes page-fade-in { from { opacity: 0; } }
@keyframes page-rise-in { from { transform: translateY(14px); } }

/* …exit when a same-site link is followed (class set by main.js) */
html.js:not(.vt).page-leaving body {
  opacity: 0;
  transition: opacity 160ms var(--ease-in-out);
}
html.js:not(.vt).page-leaving main {
  transform: translateY(-10px);
  transition: transform 160ms var(--ease-in-out);
}

/* ---------- Reduced transparency & increased contrast ----------
   Translucency is decoration; legibility is not. When the reader has asked
   for less of the former, the glass becomes a solid surface. */
@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-header.is-scrolled { background: var(--paper); }
  .site-header::after { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .site-header, .site-header.is-scrolled {
    background: var(--paper);
    border-bottom-color: var(--ink);
  }
  .site-header::after { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .card, .info-row, .price-item { border-color: var(--ink-soft); }
  .lead, .muted, .card p, figcaption { color: var(--ink); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .brand-logo { animation: none; }
  html.js .reveal { opacity: 1; transform: none; filter: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  html.js:not(.vt) body, html.js:not(.vt) main { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-actions { display: none; }
}
