/* ==========================================================================
   Prestige Worldwide — prestige-worldwide.tech
   Single stylesheet. Organised as: tokens, base, layout, components, pages,
   responsive, motion/print. Edit tokens first; almost every visual change
   you want can be made in the :root block below.

   Sibling site: this shares its component structure with gribbite.com (same
   person, two labs) but uses its own palette, sampled from the Prestige
   Worldwide badge marks instead of the Gribbite gecko.
   ========================================================================== */

/* --- Typefaces (self-hosted, subset to latin) ---------------------------- */
@font-face {
  font-family: "PW Sans";
  src: url("../fonts/pw-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PW Mono";
  src: url("../fonts/pw-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PW Mono";
  src: url("../fonts/pw-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Palette sampled from the Prestige Worldwide badge marks */
  --ink:        #05070d;  /* page */
  --ink-2:      #0a0f18;  /* raised surface */
  --ink-3:      #0d131f;  /* card */
  --line:       #182333;  /* hairline */
  --line-warm:  #223247;  /* hairline, hovered */
  --text:       #e6ebf2;
  --text-dim:   #93a4b8;
  --text-faint: #7c90a6;
  --steel:      #3f97dd;
  --steel-deep: #256bab;
  --ice:        #8ecdfb;
  --amber:      #d9a441;

  --font-sans: "PW Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "PW Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Type scale: 17px base, ~1.28 ratio */
  --fs-micro: 0.75rem;
  --fs-xs:    0.8125rem;
  --fs-sm:    0.9375rem;
  --fs-base:  1.0625rem;
  --fs-lg:    1.1875rem;
  --fs-xl:    1.5rem;
  --fs-2xl:   1.9rem;
  --fs-hero:  clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem);

  --shell: 1140px;
  --gutter: 1.5rem;
  --band: 5.5rem;      /* vertical rhythm between sections */
  --radius: 10px;
  --radius-sm: 6px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- 2. Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A single, very quiet field of light behind the page — echoes the glow in
   the mark without becoming an animated background. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 420px at 78% -8%, rgba(63, 151, 221, 0.10), transparent 70%),
    radial-gradient(560px 360px at 8% 4%, rgba(142, 205, 251, 0.07), transparent 70%);
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ice); text-decoration-color: rgba(142, 205, 251, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ice); }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0 0 0.6em;
  color: #f1f6fb;
}
h1 { font-size: var(--fs-hero); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; }
p, li { max-width: 68ch; }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: rgba(63, 151, 221, 0.28); }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--steel);
  color: #04121a;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* --- 3. Layout ----------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

main { display: block; }

.band { padding-block: var(--band); }
.band--tight { padding-block: calc(var(--band) * 0.62); }
.band + .band { padding-top: 0; }
.band--edge { border-top: 1px solid var(--line); padding-top: var(--band); }

/* Section heading with the circuit-trace motif taken from the logo linework */
.section-head { margin-bottom: 2.4rem; max-width: 62ch; }
.section-head h2 { margin-bottom: 0.5rem; }
.section-head p { color: var(--text-dim); margin-bottom: 0; }
.trace {
  display: block;
  width: 74px; height: 9px;
  margin-bottom: 1.1rem;
  border-left: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
  position: relative;
  opacity: 0.9;
}
.trace::after {
  content: "";
  position: absolute;
  right: -1px; bottom: -3px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--steel);
  box-shadow: 0 0 8px rgba(63, 151, 221, 0.8);
}

/* --- 4. Masthead --------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 12, 22, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.masthead .shell {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  margin-right: auto;
}
.brand img { width: 34px; height: 34px; }
.brand .dot-com { color: var(--steel); font-weight: 400; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm);
  padding: 0.45rem 0.7rem;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--line-warm); }
.nav-toggle .bars { display: block; width: 16px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor;
}
.nav-toggle .bars::before { top: -5px; }
.nav-toggle .bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0; padding: 0;
}
.nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 3px;
  background: var(--steel);
}

/* --- 5. Hero ------------------------------------------------------------- */
.hero { padding-block: 4.5rem 4rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3.5rem;
  align-items: center;
}
.hero h1 { margin-bottom: 1rem; }
.hero-lede {
  font-size: var(--fs-lg);
  color: var(--text-dim);
  max-width: 54ch;
  margin-bottom: 2rem;
}
.hero-lede strong { color: var(--text); font-weight: 500; }

.hero-mark {
  justify-self: center;
  width: 100%;
  max-width: 280px;
  filter: drop-shadow(0 0 42px rgba(63, 151, 221, 0.22));
}

/* Instrument-panel readout: what the lab is actually running right now. */
.readout {
  margin: 2.4rem 0 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.readout div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line);
}
.readout dt {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  padding-top: 0.12rem;
}
.readout dd { margin: 0; color: var(--text-dim); }
.readout dd b { color: var(--text); font-weight: 500; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-warm);
  color: var(--text);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.btn:hover { border-color: var(--steel); color: #fff; background: rgba(63, 151, 221, 0.07); }
.btn--primary {
  background: var(--steel);
  border-color: var(--steel);
  color: #03151b;
  font-weight: 600;
}
.btn--primary:hover { background: var(--ice); border-color: var(--ice); color: #03151b; }

/* --- 6. Cards and grids -------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  transition: border-color 0.18s var(--ease);
}
.card:hover { border-color: var(--line-warm); }
.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--text-dim); font-size: var(--fs-sm); margin-bottom: 0; }
.card p + p { margin-top: 0.8rem; }

/* Focus areas — left circuit trace instead of an icon set */
.focus {
  border-left: 1px solid var(--line);
  padding: 0.15rem 0 0.15rem 1.35rem;
  position: relative;
}
.focus::before {
  content: "";
  position: absolute;
  left: -3px; top: 0.62rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--steel);
  box-shadow: 0 0 9px rgba(63, 151, 221, 0.7);
}
.focus h3 { font-size: var(--fs-base); margin-bottom: 0.3rem; }
.focus p { color: var(--text-dim); font-size: var(--fs-sm); margin: 0; }

/* Project card */
.project {
  display: flex;
  flex-direction: column;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.18s var(--ease);
}
.project:hover { border-color: var(--line-warm); }
.project h3 { margin-bottom: 0.5rem; }
.project h3 a { color: inherit; text-decoration: none; }
.project h3 a:hover { color: var(--ice); }
.project p { color: var(--text-dim); font-size: var(--fs-sm); flex: 1; }
/* the status marker must not absorb leftover space — only the description does */
.project .status { flex: 0 0 auto; }
.project .stack {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 1.1rem 0 0; padding: 0; list-style: none;
}
.stack li {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--ice);
  border: 1px solid rgba(142, 205, 251, 0.25);
  background: rgba(142, 205, 251, 0.07);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
}

/* Status marker: content-bearing, so it uses colour + text, never colour alone */
.status {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}
.status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status--active { color: var(--steel); }
.status--ongoing { color: var(--ice); }
.status--paused { color: var(--amber); }
.status--archived { color: var(--text-faint); }

/* --- 7. Resources -------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.filter {
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.filter:hover { border-color: var(--line-warm); color: var(--text); }
.filter[aria-pressed="true"] {
  border-color: var(--steel);
  color: #03151b;
  background: var(--steel);
  font-weight: 500;
}

/* Live count of what the filter is showing */
.result-count {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  margin: -0.75rem 0 2rem;
}

.res-group { margin-bottom: 3rem; }
.res-group h2 { font-size: var(--fs-xl); margin-bottom: 1.2rem; }
.res-list { list-style: none; margin: 0; padding: 0; }
.res-list li {
  max-width: none;
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 1.5rem;
  align-items: baseline;
}
.res-list li:last-child { border-bottom: 1px solid var(--line); }
.res-list a { font-weight: 500; text-decoration: none; color: var(--text); }
.res-list a:hover { color: var(--ice); text-decoration: underline; }
.res-list .desc {
  grid-column: 1 / -1;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  margin: 0;
  max-width: 76ch;
}
.res-list .host {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  text-align: right;
}
.res-empty { color: var(--text-dim); padding: 2rem 0; }

/* --- 8. Prose (project detail, about, lab) ------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.15rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--steel-deep); }
.prose blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 2px solid var(--steel-deep);
  color: var(--text-dim);
}

.page-head { padding-block: 3.4rem 0; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.75rem); }
.page-head + .band { padding-top: 2.75rem; }
.page-head .lede { font-size: var(--fs-lg); color: var(--text-dim); max-width: 60ch; }

/* Page-head with a supporting mascot image, used on Lab / Projects /
   Resources / About. Text leads, image is a quiet accent, never louder
   than the heading. */
.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--art-w, 220px);
  gap: 2.5rem;
  align-items: center;
}
.page-head-art {
  justify-self: center;
  width: 100%;
  max-width: var(--art-w, 220px);
  filter: drop-shadow(0 0 34px rgba(63, 151, 221, 0.16));
}
.page-head-grid .page-head-text { min-width: 0; }

@media (max-width: 720px) {
  .page-head-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .page-head-art { order: -1; max-width: 132px; justify-self: start; }
}

.backlink {
  display: inline-block;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 1.4rem;
}
.backlink:hover { color: var(--ice); }

/* Key/value spec block for project pages */
.spec {
  margin: 0 0 2.4rem;
  border-top: 1px solid var(--line);
}
.spec div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.spec dt {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  padding-top: 0.15rem;
}
.spec dd { margin: 0; color: var(--text-dim); font-size: var(--fs-sm); }
.spec dd b { color: var(--text); font-weight: 500; }

.note {
  border: 1px solid var(--line);
  border-left: 2px solid var(--steel-deep);
  background: rgba(37, 107, 171, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.3rem;
  margin: 2rem 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--text); }

/* --- 9. Call to action + footer ----------------------------------------- */
.cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(63, 151, 221, 0.055), rgba(63, 151, 221, 0) 65%),
    var(--ink-2);
  padding: 2.4rem;
}
.cta h2 { font-size: var(--fs-xl); margin-bottom: 0.5rem; }
.cta p { color: var(--text-dim); margin-bottom: 1.5rem; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--band);
  padding-block: 2.6rem 3rem;
  font-size: var(--fs-sm);
  color: var(--text-faint);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2.2rem;
}
.site-footer h2 {
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--text-faint);
  letter-spacing: 0.03em;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--ice); text-decoration: underline; }
.footer-brand p { color: var(--text-faint); max-width: 34ch; margin: 0; }
.footer-brand .brand { font-size: 1.05rem; margin-bottom: 0.8rem; }
.footer-brand .brand img { width: 28px; height: 28px; }
.colophon {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
}

/* --- 10. 404 ------------------------------------------------------------- */
.lost { padding-block: 6rem 4rem; text-align: left; }
.lost .code {
  font-family: var(--font-mono);
  color: var(--steel);
  font-size: var(--fs-sm);
  margin-bottom: 1rem;
}

/* --- 11. Responsive ------------------------------------------------------ */
@media (max-width: 960px) {
  :root { --band: 4.25rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 2.25rem; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --gutter: 1.25rem; --band: 3.5rem; }

  .masthead .shell { min-height: 60px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 0.8rem 0.25rem; font-size: var(--fs-base); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav li:last-child a { border-bottom: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--ice); }

  .hero { padding-block: 2.5rem 3rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  /* Mark leads on small screens — it is the most recognisable thing here */
  .hero-mark { grid-row: 1; max-width: 150px; justify-self: start; }
  .readout div { grid-template-columns: 104px minmax(0, 1fr); gap: 0.75rem; }
  .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .spec div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; padding: 0.85rem 0; }
  .res-list li { grid-template-columns: minmax(0, 1fr); }
  .res-list .host { text-align: left; }
  .cta { padding: 1.75rem 1.4rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .colophon { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 400px) {
  .readout div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .actions .btn { width: 100%; justify-content: center; }
}

/* --- 12. Motion ---------------------------------------------------------- */
/* One orchestrated arrival on the home page. Nothing else on the site moves
   unless the visitor asks it to. */
.js .reveal { opacity: 0; }
.js .reveal-mark { opacity: 0; transform: scale(0.96); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes glow-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

.js .is-ready .reveal { animation: rise 0.62s var(--ease) forwards; }
.js .is-ready .reveal-mark { animation: glow-in 0.9s var(--ease) forwards; }
.js .is-ready .reveal:nth-of-type(1) { animation-delay: 0.05s; }
.js .is-ready .reveal-lede { animation-delay: 0.14s; }
.js .is-ready .reveal-actions { animation-delay: 0.22s; }
.js .is-ready .readout div { animation: rise 0.5s var(--ease) backwards; }
.js .is-ready .readout div:nth-child(1) { animation-delay: 0.30s; }
.js .is-ready .readout div:nth-child(2) { animation-delay: 0.38s; }
.js .is-ready .readout div:nth-child(3) { animation-delay: 0.46s; }
.js .is-ready .readout div:nth-child(4) { animation-delay: 0.54s; }

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

/* --- 13. Print ----------------------------------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  body::before, .masthead, .site-footer, .actions { display: none; }
  a { color: #000; }
  .card, .project, .cta { border: 1px solid #ccc; }
}
