/* ==========================================================================
   MELIA base — reset, typography, layout primitives and shared components
   (header, nav, footer, buttons, section heads, figure furniture).
   Linked by every page, after tokens.css. Page sections live in their own
   file (home.css, toolkit/styles.css).
   ========================================================================== */

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--sage-200); color: var(--ink-900); }

/* ---- Typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-3xl); line-height: var(--leading-tight); letter-spacing: -0.025em; }
h2 { font-size: var(--text-2xl); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: var(--text-xl); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--color-primary); }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-4);
}
/* Technical labels: section numbers, kickers, references, small data. */
.mono { font-family: var(--font-mono); font-weight: 400; letter-spacing: 0; }
.lede {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-text-soft);
  max-width: var(--measure);
}
.prose { max-width: var(--measure); }
.prose p { color: var(--color-text-soft); }

/* ---- Layout primitives ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--space-section); position: relative; }
.section--alt { background: var(--color-bg-alt); }
.section--inverse {
  background: var(--color-inverse-bg);
  color: var(--color-inverse-text);
}
.section--inverse .eyebrow { color: var(--color-inverse-soft); }
.section--inverse .lede { color: var(--color-inverse-soft); }
.section--inverse h2 em, .section--inverse h3 em { color: var(--sage-200); }

/* Editorial section heading: marker + title in an asymmetric 3/9 grid */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  margin-bottom: clamp(var(--space-7), 2rem + 3vw, var(--space-9));
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 3fr 9fr; align-items: start; }
}
.section-marker {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-accent);
  padding-top: var(--space-3);
  margin: 0;
  border-top: var(--rule-strong);
  position: relative;
}
/* The marker's rule is a branch: it starts from a node. */
.section-marker::before {
  content: ""; position: absolute; left: 0; top: -3.5px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-primary);
}
.section--inverse .section-marker { color: var(--color-inverse-soft); border-color: var(--sage-400); }
.section--inverse .section-marker::before { background: var(--sage-200); }
.section-head h2 { max-width: 22ch; }
.section-head .lede { margin-top: var(--space-5); }

.actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4);
  margin-top: var(--space-6);
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: var(--z-skip);
  background: var(--color-primary); color: var(--color-on-primary);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-4); }

/* ---- Buttons & links ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font: 600 var(--text-sm)/1 var(--font-sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.btn:active { transform: translateY(1px); }
.btn .arrow { display: inline-block; transition: transform var(--dur-med) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--sm { min-height: 42px; padding-inline: 1.15rem; }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--quiet { color: var(--color-text); border-color: var(--color-text); background: transparent; }
.btn--quiet:hover { background: var(--color-text); color: var(--color-bg); }
.section--inverse .btn--primary { background: var(--ivory-100); color: var(--forest-900); }
.section--inverse .btn--primary:hover { background: var(--sage-200); }
.section--inverse .btn--quiet { color: var(--ivory-100); border-color: var(--ivory-100); }
.section--inverse .btn--quiet:hover { background: var(--ivory-100); color: var(--forest-900); }
.section--inverse :focus-visible { outline-color: var(--ivory-100); }

/* Text link with an underline that draws in on hover */
.text-link {
  display: inline-flex; align-items: center; gap: .35em; min-height: 44px;
  font-weight: 600; font-size: var(--text-sm); color: var(--color-primary);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + .8em) / 100% 1px no-repeat;
  transition: background-size var(--dur-med) var(--ease-out);
}
.text-link:hover { background-size: 0% 1px; background-position: 100% calc(50% + .8em); }

/* Status pill (“In development”, “Not yet open”) */
.status__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* ---- Site header ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med);
}
.site-header.is-scrolled { border-bottom-color: var(--color-line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center;
  min-height: 44px;
  color: var(--color-text); text-decoration: none;
}
/* The wordmark: the M (bridge) mark in forest, the letters in ink. */
.brand__logo { display: block; height: 28px; width: auto; fill: currentColor; overflow: visible; }
.brand__m { fill: var(--color-primary); transition: transform var(--dur-med) var(--ease-out); transform-origin: 16px 28px; }
.brand:hover .brand__m { transform: translateY(-1px); }
.brand__mark { display: block; width: 28px; height: 28px; fill: var(--color-primary); }

.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav__list { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  position: relative; display: block;
  color: var(--color-text-soft); font-size: var(--text-sm); font-weight: 500;
  text-decoration: none; padding-block: var(--space-2);
  transition: color var(--dur-fast);
}
.site-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: var(--color-primary);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-med) var(--ease-out);
}
.site-nav__list a:hover { color: var(--color-text); }
.site-nav__list a:hover::after { transform: scaleX(1); }
.site-nav__list a[aria-current] { color: var(--color-text); }
.site-nav__list a[aria-current]::after { transform: scaleX(1); }
.site-nav__list a, .site-nav .btn { white-space: nowrap; }
/* Between the mobile menu and full desktop width, tighten spacing so the links stay on one line. */
@media (min-width: 901px) and (max-width: 1120px) {
  .site-header__inner { gap: var(--space-4); }
  .site-nav { gap: var(--space-4); }
  .site-nav__list { gap: var(--space-4); }
}

.nav-toggle {
  display: none;
  align-items: center; gap: var(--space-3);
  min-height: 44px; padding: 0 var(--space-4);
  font: 500 var(--text-sm) var(--font-sans); color: var(--color-text);
  background: transparent; border: var(--rule); border-radius: var(--radius-pill); cursor: pointer;
}
.nav-toggle__icon, .nav-toggle__icon::before {
  display: block; width: 16px; height: 1.5px; background: currentColor;
  transition: transform var(--dur-med) var(--ease-out);
}
.nav-toggle__icon { position: relative; transform: translateY(-3px); }
.nav-toggle__icon::before { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: var(--space-5);
    padding: var(--space-3) var(--gutter) var(--space-6);
    background: var(--color-bg); border-bottom: var(--rule);
    box-shadow: var(--shadow-menu);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a {
    padding-block: var(--space-4); font-family: var(--font-serif); font-size: var(--text-xl);
    color: var(--color-text); border-bottom: var(--rule);
  }
  .site-nav__list a::after { display: none; }
  .site-nav .btn { justify-content: center; min-height: 48px; }
  /* Without JS the nav simply wraps beneath the brand. */
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: var(--space-3); }
  html:not(.js) .site-nav { flex-wrap: wrap; }
  html:not(.js) .site-nav__list { flex-direction: row; flex-wrap: wrap; gap: var(--space-4); }
  html:not(.js) .site-nav__list a { font-size: var(--text-sm); border: 0; padding-block: var(--space-2); }
}

/* ---- Figures: shared editorial furniture ---------------------------------- */
.fig-head { margin-bottom: var(--space-6); }
.fig-kicker {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: var(--tracking-mono);
  text-transform: uppercase; color: var(--color-accent);
}
.fig-kicker span {
  font: italic 400 var(--text-sm) var(--font-serif); letter-spacing: 0; text-transform: none;
  color: var(--color-text); margin-right: var(--space-2);
}
.fig-title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.18;
  letter-spacing: -0.015em; color: var(--color-text); text-wrap: balance;
}
.fig-title em { font-style: italic; color: var(--color-primary); }
.fig-dek { margin: 0; font-size: var(--text-sm); color: var(--color-text-soft); line-height: 1.45; }
.fig-caption {
  margin-top: var(--space-4); padding-top: var(--space-3); border-top: var(--rule);
  font-size: var(--text-xs); line-height: 1.5; color: var(--color-text-soft); max-width: 52ch;
}
.fig-caption > span { font: italic 400 var(--text-sm) var(--font-serif); color: var(--color-text); }
.fig-source {
  margin-top: var(--space-5); padding-top: var(--space-3); border-top: var(--rule);
  font-size: 12px; line-height: 1.5; color: var(--color-text-soft);
}
.fig-source p { margin: 0 0 var(--space-1); }
.fig-source p > span { font-weight: 600; color: var(--color-text); }
.fig-source a { color: inherit; text-decoration-color: var(--color-line); text-underline-offset: 2px; }
.fig-source a:hover { color: var(--color-primary); text-decoration-color: currentColor; }

/* Tooltip for charts (positioned by site.js) */
.chart-tip {
  position: absolute; z-index: var(--z-raised); max-width: 16rem; pointer-events: none;
  padding: .6rem .75rem; border-radius: var(--radius-sm);
  background: var(--forest-900); color: var(--ivory-100);
  font-size: 13px; line-height: 1.4;
  box-shadow: 0 8px 22px rgba(14, 31, 23, .2);
  opacity: 0; transform: translateY(4px);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.chart-tip.is-on { opacity: 1; transform: none; }

/* ---- Site footer ---------------------------------------------------------- */
.site-footer {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--forest-950);
  color: var(--sage-300);
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--text-sm);
}
/* The M as a construction drawing, set large and faint against the
   bottom-right corner: the institution's elevation, signed once per page. */
.site-footer::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: -4%; bottom: -18%; width: min(46vw, 560px); aspect-ratio: 1;
  background: var(--sage-200); opacity: var(--pattern-opacity-inverse);
  -webkit-mask: url(../brand/mark-lines.svg) center / contain no-repeat;
          mask: url(../brand/mark-lines.svg) center / contain no-repeat;
}
@media (max-width: 759px) { .site-footer::before { width: 80vw; right: -20vw; bottom: -8%; } }
.site-footer a { color: var(--ivory-100); }
.site-footer .brand { color: var(--ivory-100); }
.site-footer .brand__logo { height: 34px; }
.site-footer .brand__m { fill: var(--sage-200); }
.site-footer__grid { display: grid; gap: var(--space-6); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(9rem, 1fr)); } }
.site-footer h2 {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--sage-400);
  margin-bottom: var(--space-4);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.site-footer ul a { display: inline-block; padding-block: 6px; text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.site-footer__note {
  max-width: 30ch; margin-top: var(--space-5);
  font-family: var(--font-serif); font-size: var(--text-lg); line-height: 1.4; color: var(--sage-200);
}
.site-footer__base {
  margin-top: var(--space-8); padding-top: var(--space-5);
  border-top: 1px solid var(--color-inverse-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em;
}
.site-footer__base p { margin: 0; }
.site-footer__base p:first-child { display: inline-flex; align-items: center; gap: var(--space-2); }
.site-footer__base p:first-child::before { content: ""; width: 13px; height: 13px; background: var(--sage-200);
  -webkit-mask: var(--m-mask); mask: var(--m-mask); }
.site-footer__ash { color: var(--sage-400); }
.site-footer__ash span { font: italic 400 var(--text-sm) var(--font-serif); color: var(--sage-200); letter-spacing: 0; }
.site-footer :focus-visible { outline-color: var(--ivory-100); }


/* ==========================================================================
   Brand components: the M and the ash, as a small shared vocabulary.
   Use sparingly; each has one job.
   ========================================================================== */
:root {
  --m-mask: url(../brand/melia-mark.svg) center / contain no-repeat;
  --branches-mask: url(../brand/branches.svg) center bottom / contain no-repeat;
  --fork-mask: url(../brand/fork.svg) left bottom / 100% 100% no-repeat;
}

/* The M as a glyph, coloured by currentColor. <span class="m-glyph"></span> */
.m-glyph {
  display: inline-block; width: .8em; height: .8em; vertical-align: -.05em;
  background: currentColor; -webkit-mask: var(--m-mask); mask: var(--m-mask);
}

/* End mark: closes a long read, like an editor's ∎. Put the class on the
   last paragraph of a letter, essay or case study. */
.endmark::after, .endmark-last > p:last-of-type::after {
  content: ""; display: inline-block; width: .72em; height: .72em; margin-left: .45em; vertical-align: -.02em;
  background: var(--color-primary); -webkit-mask: var(--m-mask); mask: var(--m-mask);
}

/* Divider: a hairline crossed by the M. Marks a change of chapter, not
   every section. Default sits on the 3/12 column for asymmetry. */
.m-divider {
  --at: 25%;
  position: relative; height: 18px; margin: 0;
  background: linear-gradient(var(--color-line), var(--color-line)) center / 100% 1px no-repeat;
}
.m-divider::before, .m-divider::after {
  content: ""; position: absolute; top: 0; left: var(--at); height: 18px; transform: translateX(-50%);
}
/* the gap in the line: the colour of the band the divider sits on */
.m-divider::before { width: 46px; background: var(--divider-bg, var(--color-bg)); }
.m-divider::after { width: 18px; background: var(--color-primary); -webkit-mask: var(--m-mask); mask: var(--m-mask); }
.m-divider--center { --at: 50%; }
.section--alt .m-divider, .m-divider--alt { --divider-bg: var(--color-bg-alt); }

/* Branch rule: a section transition. A hairline that forks once, at an
   asymmetric point, before the next chapter begins. */
.branch-rule {
  position: relative; height: 48px; margin: 0;
  background: linear-gradient(var(--color-line), var(--color-line)) left bottom / 100% 1px no-repeat;
}
.branch-rule::after {
  content: ""; position: absolute; bottom: 0; left: var(--at, 22%); width: 160px; height: 48px;
  background: var(--branch-idle); -webkit-mask: var(--fork-mask); mask: var(--fork-mask);
}
.js .branch-rule[data-reveal]::after { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease-out) 200ms; }
.js .branch-rule[data-reveal].is-visible::after { clip-path: inset(0 0 0 0); }
.js .branch-rule[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .branch-rule[data-reveal]::after { clip-path: none; } }

/* Background field: the ash as an abstract structure, very faint, set
   against one edge of a section. Add .has-branches to the section and
   position with --bx / --by / --bw. Purely decorative. */
.has-branches { position: relative; isolation: isolate; overflow-x: clip; }
.has-branches::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: var(--bx, auto); right: var(--br, -6%); bottom: var(--by, 0);
  width: var(--bw, min(62vw, 760px)); aspect-ratio: 900 / 640;
  background: var(--branch-line); opacity: var(--pattern-opacity);
  -webkit-mask: var(--branches-mask); mask: var(--branches-mask);
}
.section--inverse.has-branches::after { background: var(--sage-200); opacity: var(--pattern-opacity-inverse); }
@media (max-width: 759px) { .has-branches::after { --bw: 120vw; right: -40vw; } }
@media print { .has-branches::after, .site-footer::before { display: none; } }

/* Loader: the M traced, filled, released. For waits longer than a beat.
   <div class="m-loader" role="status"><svg …><path class="m-loader__line" pathLength="1" d="…"/></svg><span>Loading…</span></div>
   (markup is produced by brand.loader() / the page scripts) */
.m-loader {
  display: flex; align-items: center; gap: var(--space-4);
  padding-block: var(--space-6);
  font: 500 12px var(--font-mono); letter-spacing: var(--tracking-mono); text-transform: uppercase;
  color: var(--color-accent);
}
.m-loader svg { flex: none; width: 34px; height: 34px; overflow: visible; }
.m-loader__fill { fill: var(--color-primary); animation: m-fill 2.4s var(--ease-in-out) infinite; }
.m-loader__line {
  fill: none; stroke: var(--color-primary); stroke-width: .7; stroke-linejoin: miter;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: m-trace 2.4s var(--ease-in-out) infinite;
}
@keyframes m-trace { 0% { stroke-dashoffset: 1; } 45%, 100% { stroke-dashoffset: 0; } }
@keyframes m-fill { 0%, 40% { opacity: 0; } 60%, 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .m-loader__line { animation: none; stroke-dashoffset: 0; }
  .m-loader__fill { animation: none; opacity: .25; }
}

/* Tree-part glyphs: one small drawing per part of the ash (roots, trunk,
   branches, leaves). Shared by the homepage process, Our approach and About. */
.grow__glyph { width: 72px; height: 56px; overflow: visible; }
.grow__glyph path { fill: none; stroke: var(--branch-line); stroke-width: var(--branch-w); stroke-linecap: round; transition: stroke var(--dur-med); }
.grow__glyph .grow__ground { stroke: var(--branch-trunk); stroke-width: 1.2; }
.grow__glyph .grow__trunk { stroke: var(--branch-trunk); stroke-width: 3.5; }
.grow__glyph .grow__root { stroke: var(--branch-root); stroke-width: var(--branch-w-root); }
.grow__glyph .grow__leaf { fill: var(--branch-leaf); stroke: none; transform-box: fill-box; transform-origin: 0% 100%; transition: transform var(--dur-med) var(--ease-out), opacity .6s var(--ease-out); }
:hover > .grow__glyph .grow__leaf { transform: rotate(-4deg); }
.js [data-reveal] .grow__glyph path, .js [data-reveal].grow__glyph path { stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.2s var(--ease-out) calc(200ms + var(--i, 0) * 150ms); }
.js .is-visible .grow__glyph path, .js .grow__glyph.is-visible path { stroke-dashoffset: 0; }
.js [data-reveal]:not(.is-visible) .grow__glyph .grow__leaf { opacity: 0; }
.js [data-reveal] .grow__glyph .grow__leaf { transition-delay: 900ms; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] .grow__glyph path { stroke-dashoffset: 0; } }

/* Dateline: a row of short facts under a hero, set on a charcoal rule. */
.dateline {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: var(--space-7) 0 0; border-top: var(--rule-strong);
}
.dateline > div { padding: var(--space-3) var(--space-3) 0 0; }
.dateline > div + div { padding-left: var(--space-3); border-left: var(--rule); }
.dateline dt {
  font: 500 11px var(--font-mono); letter-spacing: var(--tracking-mono);
  text-transform: uppercase; color: var(--color-accent); margin-bottom: 2px;
}
.dateline dd { margin: 0; font-size: var(--text-xs); line-height: 1.4; color: var(--color-text); }


/* Plate: the one boxed surface, for things read closely or acted on. */
.plate {
  background: var(--color-surface); border: var(--rule); border-radius: var(--radius-plate);
  box-shadow: var(--shadow-plate);
}

/* ---- Scroll reveal (progressive enhancement) ------------------------------ */
.js [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .skip-link { display: none !important; }
  body { background: #fff; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
