/* Asadin Edu — one umbrella, four worlds of knowledge. No framework, no external requests. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f3eee3;
  --paper-2: #ebe4d5;
  --card: #faf7f0;
  --ink: #17140f;
  --ink-2: #3b352b;
  --muted: #5f584d;
  --rule: #d8cfbd;
  --rule-strong: #b9ad97;
  --accent: #d9601a;
  --accent-text: #a8460c;

  /* Solid world colours stay the same in both themes (tiles and buttons). */
  --bio-solid: #186846;
  --chem-solid: #2457d6;
  --phys-solid: #bd382c;
  --myth-solid: #2a2218;
  --myth-gold: #e2b65c;

  /* World colours used as text on the page background. */
  --bio-text: #176344;
  --chem-text: #2457d6;
  --phys-text: #b5352a;
  --myth-text: #7a550f;
  --bio-soft: #e1eadb;
  --chem-soft: #dfe5f5;
  --phys-soft: #f3dfd8;
  --myth-soft: #ece1cb;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 1px 0 rgba(23, 20, 15, 0.04), 0 24px 48px -32px rgba(23, 20, 15, 0.45);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14120e;
    --paper-2: #1b1813;
    --card: #1f1b15;
    --ink: #f1ebdd;
    --ink-2: #d6cdbb;
    --muted: #a69d8c;
    --rule: #332d24;
    --rule-strong: #4b4336;
    --accent: #f07a33;
    --accent-text: #f2894a;
    --bio-text: #6fcf9b;
    --chem-text: #94acf6;
    --phys-text: #f28d7e;
    --myth-text: #e0b25c;
    --bio-soft: #17251d;
    --chem-soft: #171d2d;
    --phys-soft: #2a1815;
    --myth-soft: #262015;
    --shadow: 0 24px 48px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

[data-tone="bio"] { --tone-text: var(--bio-text); --tone-solid: var(--bio-solid); --tone-soft: var(--bio-soft); --tone-on: #fff; }
[data-tone="chem"] { --tone-text: var(--chem-text); --tone-solid: var(--chem-solid); --tone-soft: var(--chem-soft); --tone-on: #fff; }
[data-tone="phys"] { --tone-text: var(--phys-text); --tone-solid: var(--phys-solid); --tone-soft: var(--phys-soft); --tone-on: #fff; }
[data-tone="myth"] { --tone-text: var(--myth-text); --tone-solid: var(--myth-solid); --tone-soft: var(--myth-soft); --tone-on: var(--myth-gold); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 16px; }

/* ---------- Type helpers ---------- */
.eyebrow, .kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); flex-shrink: 0; }
.h2 {
  font: 400 clamp(2rem, 3.8vw, 3.1rem)/1.06 var(--serif);
  letter-spacing: -0.028em; font-variation-settings: "opsz" 120;
  margin-top: 14px; text-wrap: balance;
}
.link {
  font-size: 0.95rem; color: var(--ink-2);
  text-decoration: underline; text-decoration-color: var(--rule-strong);
  text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: color 0.2s, text-decoration-color 0.2s;
  min-height: 44px; display: inline-flex; align-items: center;
}
.link:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  text-decoration: none; font-size: 0.98rem; font-weight: 600; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s;
}
.btn svg, .tile__arrow, .support__card svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn[href^="#"]:hover svg { transform: translateY(3px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { box-shadow: 0 12px 26px -14px rgba(23, 20, 15, 0.7); }
.btn--line { border: 1px solid var(--rule-strong); }
.btn--line:hover { border-color: var(--ink); }
.btn--tone { background: var(--tone-solid); color: var(--tone-on); }
.btn--tone:hover { box-shadow: 0 12px 26px -14px var(--tone-solid); }
.btn--paper { background: #f3eee3; color: #17140f; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.masthead.is-scrolled { border-bottom-color: var(--rule); }
.masthead__row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; min-height: 44px; }
.brand__name { font: 500 1.26rem/1 var(--serif); letter-spacing: -0.01em; }
.brand__name em { font-style: italic; color: var(--accent-text); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-size: 0.94rem; color: var(--ink-2); text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="true"] { color: var(--ink); background: var(--paper-2); }
.masthead__tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; }
.lang button {
  border: 0; background: none; cursor: pointer;
  min-width: 44px; min-height: 38px; padding: 0 10px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 999px; place-items: center;
  border: 1px solid var(--rule); background: none; cursor: pointer;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: grid; border-top: 1px solid var(--rule); padding: 6px var(--gutter) 18px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--rule); font: 400 1.45rem/1.2 var(--serif); text-decoration: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .masthead__tools { margin-left: auto; }
  .masthead__row { gap: 12px; }
}
@media (max-width: 360px) {
  .brand__name { font-size: 1.1rem; }
  .brand img { width: 28px; height: 28px; }
  .masthead__tools { gap: 6px; }
  .lang button { min-width: 40px; padding: 0 8px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 0; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.hero__title {
  margin-top: 22px;
  font: 380 clamp(2.9rem, 6.2vw, 5.6rem)/0.96 var(--serif);
  letter-spacing: -0.04em; font-variation-settings: "opsz" 144;
}
.hero__title span, .hero__title em { display: block; }
.hero__title em { font-style: italic; font-weight: 300; color: var(--ink-2); }
.hero__lede { margin-top: 26px; max-width: 42ch; font-size: clamp(1.05rem, 1.3vw, 1.18rem); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.byline {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 40px;
  padding: 6px 18px 6px 6px; border: 1px solid var(--rule); border-radius: 999px;
  text-decoration: none; font-size: 0.92rem; color: var(--ink-2);
  transition: border-color 0.2s, background-color 0.2s;
}
.byline:hover { border-color: var(--rule-strong); background: var(--card); }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.byline__label { color: var(--muted); }
.byline strong { font-weight: 600; color: var(--ink); }

/* The umbrella: an arc over four world tiles. */
.canopy { position: relative; }
.canopy__arc { display: block; width: 100%; height: auto; margin-bottom: -6px; overflow: visible; }
.canopy__line { stroke: var(--ink); stroke-width: 1.6; }
.canopy__rib { stroke: var(--rule-strong); stroke-width: 1.2; stroke-dasharray: 3 6; }
.canopy__text { font: 600 12px var(--sans); letter-spacing: 0.32em; fill: var(--muted); }
.canopy__arc text { transform: translateY(-10px); }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; height: 100%;
  min-height: clamp(170px, 18vw, 230px); padding: 18px 20px 20px;
  border-radius: var(--radius); text-decoration: none; color: #fff; overflow: hidden;
  background-image: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.16), transparent 58%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tile--bio { background-color: var(--bio-solid); }
.tile--chem { background-color: var(--chem-solid); }
.tile--phys { background-color: var(--phys-solid); }
.tile--myth { background-color: var(--myth-solid); color: #f4ead6; }
.tile--myth .tile__field, .tile--myth .tile__no { color: var(--myth-gold); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(23, 20, 15, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.tile:hover .tile__arrow { transform: translate(3px, -3px); }
.tile__top { display: flex; justify-content: space-between; align-items: center; }
.tile__no { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; opacity: 0.85; }
.tile__arrow { width: 20px; height: 20px; }
.tile__logo {
  margin-top: auto; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; background: #fff;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5);
}
.tile__logo img { width: 34px; height: 34px; object-fit: contain; }
.tile__name {
  margin-top: 14px; font: 420 clamp(1.4rem, 2.2vw, 1.9rem)/1.05 var(--serif);
  letter-spacing: -0.02em; font-variation-settings: "opsz" 72;
}
.tile__field { margin-top: 4px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.88; }

/* Facts ribbon */
.ribbon {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 88px); border-block: 1px solid var(--rule);
}
.ribbon div { padding: 22px 18px 22px 0; }
.ribbon div + div { padding-left: 18px; border-left: 1px solid var(--rule); }
.ribbon dt { font: 400 clamp(1.7rem, 2.4vw, 2.2rem)/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.ribbon dd { margin-top: 8px; font-size: 0.86rem; line-height: 1.4; color: var(--muted); }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .canopy { max-width: 620px; }
  .ribbon { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ribbon div:nth-child(4) { padding-left: 0; border-left: 0; }
  .ribbon div:nth-child(n + 4) { border-top: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .tile { min-height: 150px; padding: 14px 14px 16px; }
  .tile__logo { width: 40px; height: 40px; border-radius: 12px; }
  .tile__logo img { width: 28px; height: 28px; }
  .tile__field { font-size: 0.74rem; }
  .ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ribbon div:nth-child(n) { padding: 18px 14px 18px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .ribbon div:nth-child(-n + 2) { border-top: 0; }
  .ribbon div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--rule); }
}

/* ---------- Worlds showcase ---------- */
.worlds { padding-block: clamp(80px, 10vw, 128px); }
.worlds__head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px);
}
.worlds__note { color: var(--muted); max-width: 44ch; }
.worlds__note em { font-family: var(--serif); font-size: 1.1em; color: var(--ink); }
.worlds__note b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.08em; }
.t-bio { color: var(--bio-text); }
.t-chem { color: var(--chem-text); }
.t-phys { color: var(--phys-text); }
.t-myth { color: var(--myth-text); }

.showcase { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
.showcase__index { position: sticky; top: 104px; }
.showcase__index ol { display: grid; gap: 4px; border-left: 1px solid var(--rule); }
.showcase__index a {
  display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; align-items: baseline;
  margin-left: -1px; padding: 12px 14px; border-left: 2px solid transparent;
  border-radius: 0 12px 12px 0; text-decoration: none;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.showcase__index a:hover { background: var(--paper-2); }
.showcase__index a.is-active { border-left-color: var(--tone-text); background: var(--tone-soft); }
.si__no { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.si__name { font: 420 1.3rem/1.15 var(--serif); letter-spacing: -0.015em; }
.si__field { grid-column: 2; font-size: 0.85rem; color: var(--muted); }
.showcase__index a.is-active .si__name { color: var(--tone-text); }

.showcase__panels { display: grid; gap: clamp(72px, 9vw, 120px); }
.panel { scroll-margin-top: 96px; }
.shot {
  display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  border: 1px solid var(--rule); background: var(--card); box-shadow: var(--shadow);
}
.shot__bar {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px;
  background: var(--tone-soft); border-bottom: 1px solid var(--rule);
}
.shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--tone-text) 45%, var(--rule)); }
.shot__bar span { margin-left: 10px; font-size: 0.78rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; transition: transform 0.8s var(--ease); }
.shot:hover img { transform: scale(1.015); }

.panel__body {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  column-gap: 48px; margin-top: 32px; align-items: start;
}
.panel__meta, .panel__title, .panel__lede, .panel__actions { grid-column: 1; }
.panel__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tone-text);
}
.panel__meta img { width: 28px; height: 28px; object-fit: contain; }
.panel__title { margin-top: 12px; font: 400 clamp(2.2rem, 3.6vw, 3.1rem)/1 var(--serif); letter-spacing: -0.03em; font-variation-settings: "opsz" 144; }
.panel__lede { margin-top: 14px; color: var(--ink-2); max-width: 46ch; }
.panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 24px; }
.panel .facts { grid-column: 2; grid-row: 1 / span 4; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.facts div { padding: 16px 0 18px; border-top: 1px solid var(--rule); }
.facts dt { font: 400 clamp(1.7rem, 2.4vw, 2.1rem)/1 var(--serif); letter-spacing: -0.02em; color: var(--tone-text); font-variant-numeric: lining-nums; }
.facts dd { margin-top: 6px; font-size: 0.88rem; line-height: 1.4; color: var(--muted); }

@media (max-width: 1000px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase__index { display: none; }
  .worlds__head { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .panel__body { grid-template-columns: 1fr; margin-top: 24px; }
  .panel .facts { grid-column: 1; grid-row: 4; margin-top: 20px; }
  .panel__actions { grid-row: 5; }
}

/* ---------- About ---------- */
.about { background: var(--paper-2); border-block: 1px solid var(--rule); padding-block: clamp(80px, 10vw, 128px); }
.about__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.about__intro .h2 { max-width: 14ch; }
.about__text { margin-top: 22px; color: var(--ink-2); max-width: 48ch; }
.about__text + .about__text { margin-top: 14px; }
.rules { border-bottom: 1px solid var(--rule-strong); }
.rules li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--rule-strong); }
.rules__no { font: italic 400 1.35rem/1.2 var(--serif); color: var(--accent-text); }
.rules h3 { font: 450 1.32rem/1.25 var(--serif); letter-spacing: -0.01em; }
.rules p { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .about__intro .h2 { max-width: 20ch; } }

/* ---------- Founder ---------- */
.founder { background: #17140f; color: #f3eee3; padding-block: clamp(80px, 10vw, 128px); }
.founder__grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.founder__photo { position: relative; isolation: isolate; }
.founder__photo::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 1px solid rgba(226, 182, 92, 0.45); border-radius: 26px;
}
.founder__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 26px; background: #2a2218; }
.founder .kicker { color: #b9ad97; }
.founder__name { margin-top: 14px; font: 400 clamp(2.4rem, 4.6vw, 4rem)/1 var(--serif); letter-spacing: -0.035em; font-variation-settings: "opsz" 144; }
.founder__role { margin-top: 14px; color: #f2a46b; font-weight: 600; }
.founder__body { margin-top: 18px; max-width: 52ch; color: rgba(243, 238, 227, 0.8); }
.founder__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 32px; }
.link--light { color: rgba(243, 238, 227, 0.86); text-decoration-color: rgba(243, 238, 227, 0.35); }
.link--light:hover { color: #fff; }
@media (prefers-color-scheme: dark) { .founder { background: #0c0b08; border-block: 1px solid var(--rule); } }
@media (max-width: 860px) {
  .founder__grid { grid-template-columns: 1fr; }
  .founder__photo { max-width: 340px; width: calc(100% - 14px); }
}

/* ---------- Support ---------- */
.support { padding-block: clamp(80px, 10vw, 120px); }
.support__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.support__text { margin-top: 20px; color: var(--ink-2); max-width: 48ch; }
.support__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.support__card {
  position: relative; display: grid; gap: 4px; padding: 22px 22px 24px;
  border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--card);
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.support__card svg { position: absolute; top: 22px; right: 20px; color: var(--muted); }
.support__card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow); }
.support__card:hover svg { transform: translate(2px, -2px); color: var(--ink); }
.support__label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.support__name { margin-top: 6px; font: 400 1.9rem/1.1 var(--serif); letter-spacing: -0.02em; }
.support__hint { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 860px) { .support__grid { grid-template-columns: 1fr; align-items: start; } }
@media (max-width: 420px) { .support__actions { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding-top: 64px; }
.footer .brand__name em { color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 36px; padding-bottom: 48px; }
.footer__brand p { margin-top: 14px; max-width: 36ch; font-size: 0.95rem; color: color-mix(in srgb, var(--paper) 66%, transparent); }
.footer__col { display: grid; align-content: start; gap: 2px; }
.footer__head { margin-bottom: 8px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 58%, transparent); }
.footer__col a { width: fit-content; min-height: 36px; display: inline-flex; align-items: center; text-decoration: none; overflow-wrap: anywhere; color: color-mix(in srgb, var(--paper) 88%, transparent); transition: color 0.2s; }
.footer__col a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.footer__base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-block: 18px; border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
  font-size: 0.88rem; color: color-mix(in srgb, var(--paper) 62%, transparent);
}
.footer__base .link--light { color: inherit; }
@media (prefers-color-scheme: dark) {
  .footer { background: #0b0a08; color: var(--ink); }
  .footer__brand p, .footer__head, .footer__col a, .footer__base { color: var(--muted); }
  .footer__col a:hover { color: var(--ink); }
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 440px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise 0.8s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero__copy > :nth-child(5) { animation-delay: 0.24s; }
  .canopy__arc { animation: rise 0.9s var(--ease) 0.15s both; }
  .tiles li { animation: rise 0.8s var(--ease) both; }
  .tiles li:nth-child(1) { animation-delay: 0.22s; }
  .tiles li:nth-child(2) { animation-delay: 0.3s; }
  .tiles li:nth-child(3) { animation-delay: 0.38s; }
  .tiles li:nth-child(4) { animation-delay: 0.46s; }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; align-content: center; gap: 18px; padding-block: 64px; }
.notfound .brand { margin-bottom: 32px; }
.notfound .h2 { max-width: 22ch; }
.notfound .h2 em { display: block; font-style: italic; font-weight: 300; color: var(--ink-2); }
.notfound p { color: var(--ink-2); max-width: 46ch; }

@media print {
  .masthead, .canopy, .shot, .support__actions { display: none; }
  body { background: #fff; color: #000; }
}
