/* ERGCircle design system. Light only. Corporate warm: pearl ground, deep plum, node grid. */

:root {
  --bg: #FAF9FB;
  --surface: #FFFFFF;
  --ink: #1B1922;
  --primary: #59306B;
  --accent: #CFC0DC;
  --muted: #615D69;

  --plum-050: #F6F1F8;
  --plum-100: #EFE7F3;
  --plum-200: #E2D5EA;
  --plum-300: #CFC0DC;
  --plum-500: #7A4B8F;
  --pearl: #F2F0F4;
  --line: #E4E0E8;
  --line-strong: #CDC6D4;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(27, 25, 34, 0.06);
  --shadow: 0 10px 28px rgba(27, 25, 34, 0.08);
  --shadow-lift: 0 18px 46px rgba(89, 48, 107, 0.14);

  --display: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Noto Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.42rem, 1.28rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.2vw, 2.4rem);
  --step-4: clamp(2.15rem, 1.7rem + 2.2vw, 3.4rem);
  --step-5: clamp(2.6rem, 1.9rem + 3.4vw, 4.4rem);

  --wrap: 1180px;
  --header-h: 74px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, var(--plum-200) 1px, transparent 1.6px);
  background-size: 34px 34px;
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 var(--space-4);
  color: var(--ink);
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-4); }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--plum-500); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.15rem; }
li { margin-bottom: var(--space-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-7) 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-8); }
.section--pearl { background-color: var(--pearl); border-block: 1px solid var(--line); }
.section--plum { background-color: var(--plum-050); border-block: 1px solid var(--plum-200); }

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

.skip-link {
  position: absolute; left: var(--space-4); top: -60px; z-index: 200;
  background-color: var(--primary); color: #FFFFFF; padding: 10px 18px;
  border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

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

/* ---------- eyebrow, node motif ---------- */
.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--primary);
}
.rule-node {
  display: flex; align-items: center; gap: var(--space-3);
  margin: var(--space-5) 0;
}
.rule-node::before, .rule-node::after {
  content: ""; height: 1px; background-color: var(--line-strong); flex: 1;
}
.rule-node span {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  padding: 13px 26px; border-radius: var(--radius-pill);
  border: 2px solid var(--primary); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn--primary { background-color: var(--primary); color: #FFFFFF; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background-color: var(--plum-500); color: #FFFFFF; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--ghost { background-color: var(--surface); color: var(--primary); }
.btn--ghost:hover { background-color: var(--plum-050); color: var(--primary); transform: translateY(-2px); }
.btn--wide { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.01em; }
.brand-name b { color: var(--primary); font-weight: 700; }

.nav-toggle {
  display: none; background-color: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 9px 11px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; display: block; }

.main-nav ul { display: flex; align-items: center; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--primary); border-bottom-color: var(--accent); }
.header-cta { display: inline-flex; }

/* ---------- hero ---------- */
.hero { padding-block: var(--space-9) var(--space-8); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); align-items: center; }
.hero h1 { margin-bottom: var(--space-5); }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-lede { font-size: var(--step-1); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-block: var(--space-6); }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: var(--space-5);
  border-top: 1px solid var(--line); padding-top: var(--space-5);
}
.trust-strip div { display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; color: var(--muted); max-width: 15rem; }
.trust-strip svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--primary); }

.hero-figure { position: relative; }
.hero-figure img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-figure::after {
  content: ""; position: absolute; inset: auto -18px -18px auto;
  width: 128px; height: 128px; border-radius: 50%;
  border: 2px dashed var(--accent); z-index: -1;
}
.hero-badge {
  position: absolute; left: -14px; bottom: 26px;
  background-color: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow);
  font-family: var(--display); font-weight: 700; line-height: 1.2; max-width: 210px;
}
.hero-badge span { display: block; font-family: var(--body); font-weight: 400; font-size: 0.82rem; color: var(--muted); }

/* ---------- generic grids and cards ---------- */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { font-size: var(--step-1); }
.card p:last-child { margin-bottom: 0; }

.pain-card { border-left: 4px solid var(--accent); }
.pain-cost {
  display: inline-block; margin-top: var(--space-3);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: var(--primary); background-color: var(--plum-050);
  border: 1px solid var(--plum-200); border-radius: var(--radius-pill);
  padding: 5px 14px;
}

.section-head { max-width: 44rem; margin-bottom: var(--space-7); }
.section-head p { color: var(--muted); font-size: var(--step-1); margin-bottom: 0; }

/* ---------- steps ---------- */
.steps-layout { display: grid; grid-template-columns: 1fr 0.85fr; gap: var(--space-8); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 23px; top: 12px; bottom: 12px;
  width: 2px; background-color: var(--plum-200);
}
.steps li { position: relative; padding-left: 68px; margin-bottom: var(--space-6); }
.steps li:last-child { margin-bottom: 0; }
.step-num {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%;
  background-color: var(--surface); border: 2px solid var(--primary); color: var(--primary);
  font-family: var(--display); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: var(--space-2); }
.steps p { margin-bottom: 0; color: var(--muted); }
.steps-figure img { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps-figure figcaption { font-size: 0.88rem; color: var(--muted); margin-top: var(--space-3); }

/* ---------- features ---------- */
.feature-card { position: relative; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--plum-200); background-color: var(--plum-050);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4);
}
.feature-icon svg { width: 26px; height: 26px; color: var(--primary); }

/* ---------- outcomes ---------- */
.outcome { background-color: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.outcome-num {
  font-family: var(--display); font-weight: 700; font-size: var(--step-4);
  color: var(--primary); line-height: 1; display: block; margin-bottom: var(--space-2);
}
.bar { height: 8px; border-radius: var(--radius-pill); background-color: var(--plum-100); overflow: hidden; margin-block: var(--space-4); }
.bar i { display: block; height: 100%; border-radius: var(--radius-pill); background-color: var(--primary); width: 0; transition: width 1.2s cubic-bezier(.2,.7,.3,1); }
.is-visible .bar i { width: var(--bar, 70%); }

/* ---------- testimonials ---------- */
.testimonial {
  background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-6); margin: 0;
  box-shadow: var(--shadow-sm); position: relative;
}
.testimonial::before {
  content: ""; position: absolute; top: -12px; left: var(--space-6);
  width: 24px; height: 24px; border-radius: 50%;
  background-color: var(--plum-100); border: 2px solid var(--accent);
}
.testimonial p { font-size: 1.02rem; }
.testimonial footer { border-top: 1px solid var(--line); padding-top: var(--space-4); margin-top: var(--space-4); }
.testimonial cite { font-style: normal; font-family: var(--display); font-weight: 700; font-size: 1.06rem; display: block; }
.testimonial span { color: var(--muted); font-size: 0.9rem; }

.results-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5); margin-top: var(--space-7);
  background-color: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.results-strip div { text-align: center; }
.results-strip strong { display: block; font-family: var(--display); font-size: var(--step-3); color: var(--primary); line-height: 1.1; }
.results-strip span { color: var(--muted); font-size: 0.92rem; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
.tier {
  background-color: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: var(--space-6); position: relative;
}
.tier--featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.tier-flag {
  position: absolute; top: -14px; left: var(--space-6);
  background-color: var(--primary); color: #FFFFFF; font-family: var(--display);
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--radius-pill);
}
.tier h3 { margin-bottom: var(--space-2); }
.tier-price { font-family: var(--display); font-weight: 700; font-size: var(--step-4); color: var(--ink); line-height: 1; }
.tier-price small { font-family: var(--body); font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: var(--space-5) 0; }
.tier li { padding-left: 28px; position: relative; font-size: 0.96rem; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid var(--primary);
}
.billing-note {
  margin-top: var(--space-6); text-align: center; color: var(--muted); font-size: 0.95rem;
  border-top: 1px solid var(--line); padding-top: var(--space-5);
}

/* ---------- faq ---------- */
.faq-list { max-width: 62rem; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background-color: transparent; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: var(--step-1); color: var(--ink);
  padding: var(--space-5) 44px var(--space-5) 0; position: relative;
}
.faq-q:hover { color: var(--primary); }
.faq-q::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 22px; height: 22px;
  margin-top: -11px; border-radius: 50%; border: 2px solid var(--primary);
  background-image: linear-gradient(var(--primary), var(--primary)), linear-gradient(var(--primary), var(--primary));
  background-size: 10px 2px, 2px 10px; background-position: center, center; background-repeat: no-repeat;
  transition: transform .25s ease;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a { padding: 0 44px var(--space-5) 0; color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-8); align-items: start; }
.form-card { background-color: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow); }
.field { margin-bottom: var(--space-5); }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  background-color: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 11px 13px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: #A2263C; }
.field-error { color: #A2263C; font-size: 0.87rem; margin-top: 5px; display: none; }
.field-error.is-shown { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.consent input { width: auto; margin-top: 4px; }
.form-alt { margin-top: var(--space-4); font-size: 0.92rem; color: var(--muted); }
.contact-points { list-style: none; padding: 0; }
.contact-points li { padding-left: 30px; position: relative; margin-bottom: var(--space-4); color: var(--muted); }
.contact-points li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px;
  border-radius: 50%; border: 2px solid var(--accent); background-color: var(--plum-050);
}

/* ---------- author byline ---------- */
.byline {
  display: flex; gap: var(--space-4); align-items: center;
  background-color: var(--plum-050); border: 1px solid var(--plum-200);
  border-radius: var(--radius-lg); padding: var(--space-5); margin-top: var(--space-8);
}
.byline img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.byline p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- prose pages ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--step-3); margin-top: var(--space-7); }
.prose h3 { font-size: var(--step-1); margin-top: var(--space-6); }
.page-head { border-bottom: 1px solid var(--line); padding-block: var(--space-8) var(--space-6); margin-bottom: var(--space-7); }
.page-head p { color: var(--muted); font-size: var(--step-1); margin-bottom: 0; max-width: 44rem; }
.fact-table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-6); }
.fact-table th, .fact-table td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.fact-table th { background-color: var(--plum-050); width: 42%; font-family: var(--display); }

.map-group { background-color: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.map-group ul { list-style: none; padding: 0; margin: 0; }
.map-group li { border-bottom: 1px dashed var(--line); padding-block: var(--space-3); }
.map-group li:last-child { border-bottom: 0; }
.map-group a { font-family: var(--display); font-weight: 700; font-size: 1.06rem; }
.map-group span { display: block; color: var(--muted); font-size: 0.9rem; }

/* author page */
.author-layout { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-8); align-items: start; }
.author-card { background-color: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); text-align: center; box-shadow: var(--shadow-sm); }
.author-card img { border-radius: var(--radius); margin-bottom: var(--space-4); width: 100%; }
.author-links { list-style: none; padding: 0; margin: 0; text-align: left; }
.author-links li { border-top: 1px solid var(--line); padding-block: 9px; margin: 0; }

/* ---------- footer ---------- */
.site-footer { background-color: var(--plum-050); border-top: 2px solid var(--plum-200); padding-block: var(--space-8) var(--space-5); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.15fr; gap: var(--space-6); }
.footer-col h2 { font-family: var(--display); font-size: 1.02rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-note { color: var(--muted); font-size: 0.94rem; max-width: 26rem; }
.social { display: flex; gap: 10px; margin-top: var(--space-4); }
.social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--plum-200);
  background-color: var(--surface); display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.social a:hover { border-color: var(--primary); background-color: var(--plum-100); }
.social svg { width: 18px; height: 18px; }
.footer-base {
  margin-top: var(--space-7); border-top: 1px solid var(--plum-200); padding-top: var(--space-5);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  color: var(--muted); font-size: 0.9rem;
}

/* ---------- reveal motion: nodes connect ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }

.node-link { position: relative; }
.node-link::before {
  content: ""; position: absolute; left: var(--space-6); top: 0; height: 2px; width: 0;
  background-color: var(--accent); transition: width .8s ease .2s;
}
.node-link.is-visible::before { width: 42px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .steps-layout, .contact-layout, .author-layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background-color: var(--surface); border-bottom: 1px solid var(--line-strong);
    padding: var(--space-5); box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .grid-3, .grid-2, .price-grid, .results-strip { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-8); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-badge { position: static; margin-top: var(--space-4); max-width: none; }
  .btn { width: 100%; }
}

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

@media print {
  .site-header, .site-footer, .hero-actions { display: none; }
  body { background-image: none; }
}

/* ================= magazine: The Network Ledger ================= */

.mag-crumb { padding-block: var(--space-5) 0; }
.mag-crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; font-size: 0.88rem; color: var(--muted); }
.mag-crumb li { margin: 0; display: flex; align-items: center; gap: var(--space-2); }
.mag-crumb li + li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--accent); flex: none; }
.mag-crumb a { color: var(--muted); text-decoration: none; }
.mag-crumb a:hover { color: var(--primary); text-decoration: underline; }
.mag-crumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---- magazine index ---- */
.mag-index-head { max-width: 46rem; padding-block: var(--space-7) var(--space-5); }
.mag-index-head h1 { font-size: var(--step-4); margin-bottom: var(--space-4); }
.mag-index-note { color: var(--muted); font-size: 0.96rem; }
.mag-standfirst { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 38em; margin-bottom: var(--space-4); }

.mag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); padding-bottom: var(--space-8); }

.mag-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mag-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.mag-card-media { display: block; background-color: var(--plum-050); }
.mag-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.mag-tag {
  align-self: flex-start;
  font-family: var(--display); font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--primary); background-color: var(--plum-050);
  border: 1px solid var(--plum-200); border-radius: var(--radius-pill);
  padding: 4px 12px;
}
.mag-card-title { font-size: var(--step-1); margin: 0; line-height: 1.18; }
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary); text-decoration: underline; }
.mag-card-dek { color: var(--muted); font-size: 0.95rem; margin: 0; }
.mag-card-meta { margin: 0; margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; display: flex; align-items: center; }
.mag-dot { width: 5px; height: 5px; border-radius: 50%; background-color: var(--accent); display: inline-block; margin-inline: 10px; flex: none; }

.mag-card.lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; border-color: var(--plum-200); box-shadow: var(--shadow); }
.mag-card.lead .mag-card-media { flex: 0 0 56%; }
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.mag-card.lead .mag-card-body { justify-content: center; padding: var(--space-7); gap: var(--space-4); }
.mag-card.lead .mag-card-title { font-size: var(--step-3); }
.mag-card.lead .mag-card-dek { font-size: var(--step-0); }

/* ---- article header ---- */
.mag-article-head { max-width: 46rem; padding-block: var(--space-7) var(--space-5); }
.mag-article-head h1 { font-size: var(--step-4); margin-bottom: var(--space-4); }
.mag-byline {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-5);
  border-top: 1px solid var(--line); padding-top: var(--space-4); margin-top: var(--space-5);
}
.mag-byline p { margin: 0; }
.mag-byline-who { font-family: var(--display); font-weight: 700; font-size: 1.06rem; }
.mag-byline-meta { color: var(--muted); font-size: 0.88rem; display: flex; align-items: center; flex-wrap: wrap; }

.mag-figure { margin: 0 0 var(--space-7); }
.mag-figure img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mag-figure figcaption { font-size: 0.86rem; color: var(--muted); margin-top: var(--space-3); }

/* ---- article body ---- */
.mag-body { max-width: 68ch; font-size: 1.06rem; line-height: 1.7; }
.mag-body h2 { font-size: var(--step-2); margin-top: var(--space-8); margin-bottom: var(--space-4); }
.mag-body h3 { font-size: var(--step-1); margin-top: var(--space-6); margin-bottom: var(--space-3); }
.mag-body p { margin-bottom: var(--space-5); }
.mag-body ul, .mag-body ol { margin-bottom: var(--space-5); padding-left: 1.3rem; }
.mag-body li { margin-bottom: var(--space-3); }
.mag-body blockquote {
  margin: var(--space-6) 0; padding: var(--space-5) var(--space-6);
  background-color: var(--plum-050); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.04rem;
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-6); font-size: 0.95rem; }
.mag-body th, .mag-body td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.mag-body th { background-color: var(--plum-050); font-family: var(--display); }
.mag-body a { color: var(--primary); }

.inline-read {
  background-color: var(--plum-050);
  border: 1px solid var(--plum-200);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  margin-block: var(--space-6);
}
.inline-read a { font-weight: 700; }

/* ---- call to action ---- */
.mag-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-5);
  background-color: var(--plum-050);
  border: 1px solid var(--plum-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-block: var(--space-8);
}
.mag-cta > div { max-width: 40rem; }
.mag-cta h2 { font-size: var(--step-2); margin-bottom: var(--space-3); }
.mag-cta p { margin: 0; color: var(--muted); }

/* ---- author box ---- */
.mag-author {
  display: flex; gap: var(--space-5); align-items: flex-start;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.mag-author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--plum-200); }
.mag-author h2 { font-size: var(--step-1); margin-bottom: var(--space-3); }
.mag-author p { color: var(--muted); font-size: 0.96rem; }
.mag-author-link { margin-bottom: 0; }
.mag-author-link a { font-family: var(--display); font-weight: 700; color: var(--primary); }

/* ---- read also ---- */
.mag-related { margin-block: var(--space-8); padding-top: var(--space-7); border-top: 1px solid var(--line); }
.mag-related > h2 { font-size: var(--step-2); margin-bottom: var(--space-5); }
.mag-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.mag-rel {
  background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.mag-rel:hover { transform: translateY(-3px); border-color: var(--plum-200); }
.mag-rel-media { display: block; background-color: var(--plum-050); }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-body { padding: var(--space-5); }
.mag-rel h3 { font-size: 1.08rem; line-height: 1.2; margin-bottom: var(--space-3); }
.mag-rel h3 a { color: var(--ink); text-decoration: none; }
.mag-rel h3 a:hover { color: var(--primary); text-decoration: underline; }
.mag-rel p { color: var(--muted); font-size: 0.9rem; margin-bottom: var(--space-3); }
.mag-rel-date { font-size: 0.82rem; margin-bottom: 0; }

/* ---- home page magazine strip ---- */
.mag-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.mag-home-more { margin-top: var(--space-6); }

/* ---- author page article list ---- */
.mag-list { list-style: none; padding: 0; margin: 0; }
.mag-list li { border-top: 1px solid var(--line); padding-block: var(--space-4); margin: 0; }
.mag-list a { font-family: var(--display); font-weight: 700; font-size: 1.06rem; }
.mag-list time { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

@media (max-width: 1024px) {
  .mag-grid, .mag-related-grid, .mag-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card-media { flex: none; }
  .mag-card.lead .mag-card-media img { min-height: 0; aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card-body { padding: var(--space-6); }
}
@media (max-width: 700px) {
  .mag-grid, .mag-related-grid, .mag-home-grid { grid-template-columns: 1fr; }
  .mag-author { flex-direction: column; }
  .mag-cta { padding: var(--space-5); }
  .mag-body { font-size: 1.02rem; }
  .mag-article-head h1, .mag-index-head h1 { font-size: var(--step-3); }
  .mag-card.lead .mag-card-title { font-size: var(--step-2); }
}
@media (max-width: 380px) {
  .mag-card-body, .mag-rel-body, .mag-card.lead .mag-card-body { padding: var(--space-4); }
  .mag-byline-meta { font-size: 0.82rem; }
}


/* Network column: five sibling products, rotated so every site is linked the same
   number of times. Sits in the footer link grid and inherits its type and colour. */
.site-network ul { list-style: none; margin: 0; padding: 0; }
.site-network li + li { margin-top: 0.4rem; }
.site-network a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { border-bottom-color: currentColor; }
