/* ==========================================================================
   Mind the Muscle — mindthemuscle.com
   Single stylesheet. No build step, no framework.
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Typography
   4.  Layout
   5.  Header / navigation
   6.  Buttons & tags
   7.  Hero
   8.  Cards & sections
   9.  Article (guide pages)
   10. Table of contents & reading progress
   11. Footer
   12. Motion & utilities
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */

:root {
  /* Brand */
  --orange:        #ff6b2c;
  --orange-bright: #ff8747;
  --orange-deep:   #c2410c;
  --orange-soft:   rgba(255, 107, 44, 0.12);

  /* Surfaces */
  --bg:        #0c0d10;
  --bg-alt:    #101216;
  --surface:   #14161b;
  --surface-2: #1a1d24;
  --line:      rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);

  /* Ink */
  --text:   #e9ebf0;
  --muted:  #9aa1ae;
  --dim:    #6f7683;
  --white:  #ffffff;

  /* Type */
  --display: "Barlow Condensed", "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Space & shape */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --header-h: 68px;
}

/* 2. Reset & base ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-bright); }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

::selection { background: var(--orange); color: #0c0d10; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: #0c0d10;
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* 3. Typography ------------------------------------------------------------ */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  color: var(--white);
}

h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
h4 { font-size: 1.15rem; letter-spacing: 0.04em; }

p { margin: 0 0 1.15rem; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
  flex: none;
}
.eyebrow.is-centred { justify-content: center; }

.lede {
  font-size: clamp(1.06rem, 2vw, 1.24rem);
  color: var(--muted);
  line-height: 1.65;
  max-width: 62ch;
}

.lede.is-centred { margin-inline: auto; }

.accent { color: var(--orange); }

/* 4. Layout ---------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}
.wrap--narrow { max-width: var(--wrap-narrow); }

section { position: relative; }

.band { padding-block: clamp(3.6rem, 8vw, 6.5rem); }
.band--tight { padding-block: clamp(2.6rem, 5vw, 4rem); }
.band--alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 66ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.is-centred { margin-inline: auto; text-align: center; }
.section-head.is-centred .lede { margin-inline: auto; }

.grid { display: grid; gap: 1.15rem; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* 5. Header / navigation --------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(12, 13, 16, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--white); }
.brand:hover { color: var(--white); }
.brand svg { width: 52px; height: auto; flex: none; }
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  white-space: nowrap;
}
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.nav a.btn--primary { color: #14100c; padding: 0.55rem 1.1rem; }
.nav a.btn--primary:hover { color: #14100c; background: var(--orange-bright); }
.nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  background: var(--orange);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 42px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  color: var(--white);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav-toggle span { margin-inline: auto; position: relative; }
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 22px 1.1rem;
    transform: translateY(-130%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: 0.85rem 0.4rem; font-size: 1rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--orange); }
  .nav .btn { margin-top: 0.9rem; justify-content: center; border-bottom: 0; }
}

/* 6. Buttons & tags -------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.78rem 1.35rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn--primary { background: var(--orange); color: #14100c; }
.btn--primary:hover { background: var(--orange-bright); color: #14100c; }

.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: var(--orange); color: var(--white); background: var(--orange-soft); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.btn-row.is-centred { justify-content: center; }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-soft);
  border: 1px solid rgba(255, 107, 44, 0.28);
  padding: 0.28rem 0.65rem;
  border-radius: 100px;
}
.tag--neutral { color: var(--muted); background: rgba(255, 255, 255, 0.04); border-color: var(--line); }

/* 7. Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 75vw;
  height: 120%;
  background: radial-gradient(closest-side, rgba(255, 107, 44, 0.26), rgba(194, 65, 12, 0.07) 55%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
  opacity: 0.85;
}

.hero .wrap { position: relative; z-index: 1; }

.hero h1 { max-width: 20ch; margin-bottom: 1.2rem; }
.hero h1 .line { display: block; }
.hero .lede { max-width: 56ch; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 4vw, 3.2rem);
  margin-top: clamp(2.6rem, 6vw, 4rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.hero-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2.1rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.hero-stat span { font-size: 0.86rem; color: var(--muted); }

/* Page header for interior pages */
.page-head {
  position: relative;
  padding-block: clamp(2.8rem, 6vw, 4.6rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 45%;
  width: 70vw;
  height: 170%;
  background: radial-gradient(closest-side, rgba(255, 107, 44, 0.18), transparent 70%);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { max-width: 18ch; }
.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  font-size: 0.84rem;
  color: var(--dim);
}

/* 8. Cards & sections ------------------------------------------------------ */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }
.card--link:hover { transform: translateY(-4px); border-color: rgba(255, 107, 44, 0.5); background: var(--surface-2); }
.card--link:hover h3 { color: var(--orange); }

.card-index {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--orange);
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 0.9rem;
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--orange-soft);
  border: 1px solid rgba(255, 107, 44, 0.25);
  margin-bottom: 1.1rem;
  color: var(--orange);
}
.card-icon svg { width: 21px; height: 21px; }

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
}
.card--link:hover .card-more { gap: 0.75rem; }
.card-more { transition: gap 0.18s ease; }
.card-more svg { width: 15px; height: 15px; flex: none; }

/* Two-column feature block */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

/* Focus comparison table (internal vs external cueing) */
.compare {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.compare-col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--surface);
}
.compare-col--internal { border-color: rgba(255, 107, 44, 0.45); background: linear-gradient(180deg, rgba(255, 107, 44, 0.07), transparent 60%), var(--surface); }
.compare-col h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.compare-col .compare-sub { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 1.2rem; }
.compare-col ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.95rem; }
.compare-col li { margin-bottom: 0.55rem; }
.compare-col li::marker { color: var(--orange); }

/* Numbered start-here steps */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.step-num {
  counter-increment: step;
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--orange);
  min-width: 2ch;
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Big call to action */
.cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 44, 0.3);
  border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  background: linear-gradient(135deg, rgba(255, 107, 44, 0.14), rgba(194, 65, 12, 0.05) 55%, transparent), var(--surface);
  text-align: center;
}
.cta h2 { margin-bottom: 0.7rem; }
.cta .lede { margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* 9. Article (guide pages) ------------------------------------------------- */

.article-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 1000px) {
  .article-layout { grid-template-columns: 232px minmax(0, 1fr); }
  .article-layout--single { grid-template-columns: minmax(0, 1fr); }
}

.prose { max-width: 72ch; }
.prose > h2 {
  margin-top: 3.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 2.3rem; color: var(--text); }
.prose h4 { margin-top: 1.8rem; color: var(--white); text-transform: none; font-family: var(--body); font-weight: 700; letter-spacing: 0; font-size: 1.05rem; }
.prose p, .prose li { color: #cfd4dd; }
.prose strong { color: var(--white); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.4rem; }
.prose li { margin-bottom: 0.6rem; }
.prose li::marker { color: var(--orange); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 107, 44, 0.4); }

.prose blockquote {
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--orange);
  color: var(--white);
  font-size: 1.1rem;
  font-style: italic;
}

/* Callouts */
.note {
  margin: 2rem 0;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.note h4, .note-title {
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.6rem;
}
.note > :last-child { margin-bottom: 0; }
.note--warn { border-left-color: #facc15; }
.note--warn .note-title { color: #facc15; }

.key-points {
  margin: 0 0 2.6rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 107, 44, 0.07), transparent 70%), var(--surface);
}
.key-points .note-title { color: var(--orange); }
.key-points ul { margin: 0; padding-left: 1.15rem; }
.key-points li { margin-bottom: 0.5rem; }
.key-points li:last-child { margin-bottom: 0; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 1.8rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 460px; }
thead th {
  text-align: left;
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 107, 44, 0.06);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line-soft); color: #cfd4dd; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 1.6rem 0; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}

/* Next / prev links at the end of a guide */
.next-up {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* 10. Table of contents & reading progress --------------------------------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange), var(--orange-bright));
  z-index: 120;
  transition: width 0.08s linear;
}

.toc { position: relative; }
.toc-inner {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border-left: 1px solid var(--line);
  padding-left: 1.1rem;
}
.toc-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.9rem;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 0.15rem; }
.toc a {
  display: block;
  font-size: 0.87rem;
  line-height: 1.4;
  color: var(--muted);
  padding: 0.35rem 0;
}
.toc a:hover { color: var(--white); }
.toc a.is-active { color: var(--orange); font-weight: 600; }

@media (max-width: 999px) {
  .toc-inner {
    position: static;
    border-left: 0;
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }
  .toc ul { columns: 2; column-gap: 1.4rem; }
  .toc li { break-inside: avoid; }
}
@media (max-width: 520px) {
  .toc ul { columns: 1; }
}

/* 11. Footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: clamp(2.6rem, 5vw, 4rem) 2rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2.6rem;
}
.footer-brand p { color: var(--dim); font-size: 0.9rem; max-width: 34ch; margin-top: 1rem; }
.footer-col h4 {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--dim);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: var(--muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--orange); }
.footer-base {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--dim);
}
.footer-base p { margin: 0; max-width: 70ch; }

/* 12. Motion & utilities --------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Never hide content from a browser that isn't running the script. */
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

.centre { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

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