/* ==========================================================================
   The Revenue House — shared stylesheet
   Editorial boutique system · Fraunces display / Inter UI
   Warm ivory ground, deep forest accent, oxblood detail, hairline structure
   ========================================================================== */

/* ---- Design tokens ---- */

:root {
  /* Colour */
  --bg:              #FAF6EF;
  --bg-deep:         #F3EDE2;
  --surface:         #FFFFFF;
  --surface-inverse: #17251E;
  --text-1:          #1C1A17;
  --text-2:          #4A463F;
  --text-3:          #6E675C;   /* warm meta grey, darkened from #837D72 for AA at small sizes */
  --accent:          #1E4D3B;
  --accent-hover:    #163B2D;
  --accent-soft:     #E4EBE4;
  --oxblood:         #7A2E2E;
  --border:          #E3DCCF;
  --border-strong:   #CFC6B4;
  --inv-text:        #F6F1E7;
  --inv-muted:       #A8B3AC;
  --inv-border:      rgba(246, 241, 231, .14);

  --shadow-card:  0 1px 2px rgba(28,26,23,.05), 0 8px 24px rgba(28,26,23,.06);
  --shadow-hover: 0 2px 4px rgba(28,26,23,.06), 0 16px 40px rgba(28,26,23,.10);
  --radius-card:  12px;
  --radius-btn:   999px;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans:    "Inter", -apple-system, "Segoe UI", sans-serif;

  --fs-h1:   clamp(2.75rem, 2rem + 3.5vw, 4.5rem);
  --fs-h2:   clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --fs-h3:   1.5rem;
  --fs-lead: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-ui:   0.9375rem;
  --fs-meta: 0.8125rem;

  /* Layout */
  --container:       1120px;
  --container-text:  720px;
  --gutter:          24px;
  --section-y:       96px;
  --header-h:        72px;
}

@media (max-width: 60em) { :root { --section-y: 64px; } }
@media (max-width: 40em) { :root { --section-y: 48px; --header-h: 60px; } }

/* ---- Reset & base ---- */

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

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

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

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  color: var(--text-1);
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); line-height: 1.3;  letter-spacing: -0.01em; }
h4 { font-size: 1.125rem;     line-height: 1.35; letter-spacing: -0.01em; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 400;
  color: inherit;
}

p, ul, ol, table { margin: 0 0 1rem; }

strong { color: var(--text-1); font-weight: 600; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

a:hover { color: var(--accent-hover); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--accent-soft); color: var(--text-1); }

address { font-style: normal; }

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

/* ---- Skip link ---- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-ui);
}

.skip-link:focus { left: 0; color: var(--bg); }

/* ---- Layout helpers ---- */

.wrap {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose { max-width: 65ch; }

.prose > *:first-child { margin-top: 0; }

section { padding-block: var(--section-y); }

.muted { color: var(--text-2); }

/* ---- Eyebrow / kicker ---- */

.kicker {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* editorial header: eyebrow left, hairline running right */
.section-head .kicker::after,
.hero-sub .kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  min-width: 2rem;
}

.on-ink .kicker { color: var(--inv-muted); }

/* ---- Header / nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, .85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.site-header.is-scrolled { border-bottom-color: var(--border); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

/* ---- Brand lockup ---- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-1);
  white-space: nowrap;
}

.brand:hover { color: var(--text-1); }

.brand-mark {
  flex: none;
  color: var(--accent);
  display: block;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-size: 1.3125rem;
  letter-spacing: -0.01em;
  line-height: 1;
  padding-top: 1px; /* optical baseline alignment with the mark */
}

.brand-word em {
  font-style: italic;
  font-weight: 400;
}

/* ---- Navigation ---- */

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-1);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  line-height: 0;
  transition: border-color 160ms ease;
}

.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 2rem);
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--fs-ui);
  font-weight: 500;
  padding: 0.35rem 0;
  transition: color 160ms ease;
}

.site-nav a:hover { color: var(--text-1); }

.site-nav a[aria-current="page"] {
  color: var(--text-1);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  background: var(--accent);
  color: #FAF6EF;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.site-nav .nav-cta:hover {
  background: var(--accent-hover);
  color: #FAF6EF;
  transform: translateY(-1px);
}

@media (max-width: 47em) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    display: none;
    z-index: 90;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1.25rem;
  }

  .site-nav li { border-top: 1px solid var(--border); }
  .site-nav li:first-child { border-top: 0; }

  .site-nav a {
    display: block;
    padding: 0.9rem var(--gutter);
  }

  .site-nav a[aria-current="page"] {
    text-decoration: none;
    border-left: 2px solid var(--accent);
    padding-left: calc(var(--gutter) - 2px);
  }

  .site-nav .nav-cta {
    display: inline-flex;
    justify-content: center;
    margin: 0.9rem var(--gutter) 0;
  }
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  font-family: var(--font-sans);
  font-size: var(--fs-ui);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease,
              border-color 160ms ease, transform 160ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #FAF6EF;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #FAF6EF;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1.75rem 0 0;
}

.btn-note {
  font-size: var(--fs-meta);
  color: var(--text-3);
  margin-top: 1rem;
}

/* Text link with travelling arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: var(--fs-ui);
  color: var(--accent);
  text-decoration: none;
}

.arrow-link .arrow {
  display: inline-block;
  transition: transform 160ms ease;
}

.arrow-link:hover { color: var(--accent-hover); }
.arrow-link:hover .arrow { transform: translateX(4px); }

/* ---- Hero ---- */

.hero {
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { max-width: 17ch; margin-bottom: 1.5rem; }

.hero p.lede,
.hero-sub p.lede {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 0;
}

@media (max-width: 55em) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 32rem; }
}

/* Sub-page hero: shorter, editorial, hairline base */
.hero-sub {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--border);
}

.hero-sub h1 { max-width: 22ch; margin-bottom: 1.25rem; }

/* Framed artifact panel — mockups always matted, never raw */
.frame-panel {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.frame-panel .frame-inner {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.frame-panel svg { display: block; width: 100%; height: auto; }

/* ---- Section rhythm ---- */

.tint { background: var(--bg-deep); }

.tint .frame-panel { background: var(--surface); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head h2 { max-width: 20ch; }

/* .section-head applied directly to an h2 */
h2.section-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.section-head p {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 0;
}

/* ---- Cards & grids ---- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 55em) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 38em) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: box-shadow 200ms ease-out, transform 200ms ease-out;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card h3 { margin-top: 1rem; margin-bottom: 0.6rem; }

.card > p:last-child, .card > ul:last-child { margin-bottom: 0; }

.card .icon { color: var(--accent); display: block; }

.card > a:last-child {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.card > a:last-child:hover { color: var(--accent-hover); }

/* ---- Pillar panels ---- */

.pillar {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

@media (max-width: 55em) {
  .pillar { grid-template-columns: 1fr; }
}

.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.pillar-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.pillar-list li:last-child { border-bottom: 1px solid var(--border); }

.pillar-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin-bottom: 0.15rem;
}

.pillar-list span { color: var(--text-2); font-size: var(--fs-ui); line-height: 1.6; }

/* ---- Method steps ---- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-variant-numeric: lining-nums;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--text-2); font-size: var(--fs-ui); margin-bottom: 0; }

.card .step-num { font-size: 2.25rem; margin-bottom: 0.5rem; }

/* ---- Detail lists (check-style rows) ---- */

.detail-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.detail-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.75rem;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 1rem;
  height: 0.5rem;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-50deg) scale(0.82);
  transform-origin: center;
}

/* ---- Engagement / structured cards ---- */

.engagement { padding-top: 1.75rem; }

.engagement .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-btn);
  padding: 0.3rem 0.85rem;
  margin-bottom: 1rem;
}

.engagement h3 { margin-top: 0.25rem; }

.engagement dl { margin: 1.25rem 0 0; }

.engagement dt {
  font-weight: 600;
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.engagement dt:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.engagement dd {
  margin: 0.3rem 0 0;
  color: var(--text-2);
  font-size: var(--fs-ui);
  line-height: 1.6;
}

/* ---- Dark band (final CTA) ---- */

.on-ink {
  background: var(--surface-inverse);
  color: var(--inv-text);
}

.on-ink h1, .on-ink h2, .on-ink h3, .on-ink h4 { color: var(--inv-text); }
.on-ink p { color: var(--inv-text); }
.on-ink .muted { color: var(--inv-muted); }
.on-ink strong { color: var(--inv-text); }
.on-ink a { color: var(--inv-text); }
.on-ink a:hover { color: #FFFFFF; }
.on-ink .btn-note { color: var(--inv-muted); }
.on-ink hr { border-top-color: var(--inv-border); }

/* the one gradient on the site */
.cta-band {
  background: radial-gradient(120% 140% at 50% 0%, #1E332A 0%, #17251E 62%);
  text-align: center;
}

.cta-band .kicker { justify-content: center; }
.cta-band .kicker::after { content: none; }

.cta-band h2 { max-width: 24ch; margin-inline: auto; }

.cta-band p {
  max-width: 52ch;
  margin-inline: auto;
}

.cta-band .btn-row { justify-content: center; }

.on-ink .btn-primary {
  background: #FAF6EF;
  color: var(--accent);
}

.on-ink .btn-primary:hover {
  background: #FFFFFF;
  color: var(--accent-hover);
}

.on-ink .btn-ghost {
  color: var(--inv-text);
  border-color: rgba(246, 241, 231, .35);
}

.on-ink .btn-ghost:hover {
  border-color: var(--inv-text);
  color: #FFFFFF;
  background: rgba(246, 241, 231, .06);
}

/* ---- Footer ---- */

.site-footer {
  background: var(--surface-inverse);
  color: var(--inv-muted);
  font-size: 0.875rem;
  padding-block: 4.5rem 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 55em) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 38em) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand .brand {
  color: var(--inv-text);
  margin-bottom: 1rem;
}

.footer-brand .brand-mark { color: var(--inv-text); }

.footer-brand .brand-word { font-size: 1.25rem; }

.footer-brand p { max-width: 34ch; }

.site-footer h2 {
  color: var(--inv-text);
  font-family: var(--font-sans);
  font-variation-settings: normal;
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.site-footer p { color: var(--inv-muted); }

.site-footer address { color: var(--inv-muted); line-height: 1.7; }

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin-bottom: 0.6rem; }

.site-footer a {
  color: var(--inv-muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer a:hover { color: var(--inv-text); }

.footer-brand .brand:hover .brand-word { color: #FFFFFF; }

.footer-legal {
  border-top: 1px solid var(--inv-border);
  padding-top: 1.75rem;
  font-size: var(--fs-meta);
  color: var(--inv-muted);
}

.footer-legal p { margin-bottom: 0.4rem; color: var(--inv-muted); }

.footer-legal a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---- Legal pages ---- */

.legal-header {
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}

.legal-header h1 { max-width: 22ch; }

.legal-header .kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  min-width: 2rem;
}

.legal-header p.meta {
  color: var(--text-3);
  font-size: var(--fs-meta);
  margin: 0;
  max-width: 72ch;
}

.legal-body { padding-block: 3rem var(--section-y); }

.legal-body .prose { max-width: 68ch; }

.legal-body h2 {
  font-size: 1.75rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.legal-body h3 {
  font-size: 1.1875rem;
  margin-top: 2rem;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.legal-body li { margin-bottom: 0.5rem; }

.legal-body [id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* Table of contents */

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 3rem;
  max-width: 68ch;
}

.toc h2 {
  margin: 0 0 1rem;
  border-top: 0;
  padding-top: 0;
  font-family: var(--font-sans);
  font-variation-settings: normal;
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.toc ol {
  margin: 0;
  padding-left: 1.4rem;
  columns: 2;
  column-gap: 2.5rem;
}

@media (max-width: 38em) {
  .toc ol { columns: 1; }
}

.toc li {
  margin-bottom: 0.45rem;
  font-size: var(--fs-ui);
  break-inside: avoid;
}

.toc a {
  text-decoration: none;
  color: var(--text-2);
}

.toc a:hover { color: var(--accent); text-decoration: underline; }

/* ---- Tables ---- */

.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-ui);
  min-width: 34rem;
}

caption {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-size: 1.0625rem;
  padding: 1rem 1.25rem 0.35rem;
  color: var(--text-1);
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.8rem 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-2);
}

thead th {
  border-top: none;
  background: var(--bg-deep);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- Misc ---- */

.back-to-top {
  display: inline-block;
  margin-top: 3rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.back-to-top:hover { color: var(--accent-hover); text-decoration: underline; }

/* ---- Scroll-in reveal (JS adds .will-reveal / .in-view) ---- */

.will-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.will-reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---- Reduced motion ---- */

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