/* ==========================================================================
   RelaunchDesk design system
   Fresh start: bright white and pale sky, confident indigo, forward arrows,
   staged progress rails. Light surfaces only, contrast from type and rules.
   ========================================================================== */

:root {
  /* brief palette */
  --bg: #F8FAFD;
  --surface: #FFFFFF;
  --ink: #181B24;
  --primary: #33409B;
  --accent: #A8C6EE;
  --muted: #5D626D;

  /* derived tints, all light */
  --primary-050: color-mix(in srgb, var(--primary) 5%, var(--surface));
  --primary-100: color-mix(in srgb, var(--primary) 10%, var(--surface));
  --primary-150: color-mix(in srgb, var(--primary) 16%, var(--surface));
  --primary-250: color-mix(in srgb, var(--primary) 26%, var(--surface));
  --primary-deep: color-mix(in srgb, var(--primary) 82%, var(--ink));
  --accent-050: color-mix(in srgb, var(--accent) 22%, var(--surface));
  --accent-100: color-mix(in srgb, var(--accent) 42%, var(--surface));
  --sky: color-mix(in srgb, var(--accent) 16%, var(--bg));
  --ink-soft: color-mix(in srgb, var(--ink) 76%, var(--surface));
  --line: color-mix(in srgb, var(--ink) 12%, var(--surface));
  --line-strong: color-mix(in srgb, var(--primary) 28%, var(--surface));

  /* type */
  --display: "Anek Latin", "Trebuchet MS", "Segoe UI", sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1.0313rem;
  --fs-md: 1.15rem;
  --fs-lg: 1.4rem;
  --fs-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --fs-3xl: clamp(2.4rem, 1.5rem + 4.2vw, 4.05rem);

  /* space */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4.5rem;
  --s9: 6.5rem;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(24, 27, 36, 0.05), 0 6px 18px rgba(51, 64, 155, 0.06);
  --shadow-2: 0 2px 4px rgba(24, 27, 36, 0.05), 0 22px 46px rgba(51, 64, 155, 0.10);
  --rail: 3px;
  --wrap: 1180px;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-base);
  line-height: 1.62;
  letter-spacing: 0.002em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-deep); }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.016em;
  margin: 0 0 var(--s4);
  color: var(--ink);
}
h1 { font-size: var(--fs-3xl); font-weight: 800; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
p { margin: 0 0 var(--s4); }
ul { margin: 0 0 var(--s4); padding-left: 1.15rem; }
li { margin-bottom: var(--s2); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }
::selection { background: var(--accent-100); }

/* --------------------------------------------------------------- helpers */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }
.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(--s4); top: -4rem; z-index: 200;
  background: var(--surface); color: var(--primary); font-weight: 700;
  padding: var(--s3) var(--s5); border: 2px solid var(--primary); border-radius: var(--r-pill);
  transition: top 0.18s ease;
}
.skip-link:focus { top: var(--s4); }
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: 0 0 var(--s4);
}
/* the arrow motif: a drawn rail that ends in a chevron */
.eyebrow::before {
  content: "";
  width: 44px;
  height: 8px;
  flex: none;
  background: var(--primary);
  clip-path: polygon(0 40%, 72% 40%, 72% 0, 100% 50%, 72% 100%, 72% 60%, 0 60%);
}
.lede { font-size: var(--fs-md); color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.section { padding: var(--s9) 0; position: relative; }
.section--tint { background: var(--sky); }
.section--paper { background: var(--surface); }
.section-head { max-width: 66ch; margin-bottom: var(--s7); }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-weight: 700; font-size: var(--fs-base);
  padding: 0.82rem 1.5rem; border-radius: var(--r-pill);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn svg { flex: none; transition: transform 0.22s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--primary); color: #FFFFFF; box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--primary-deep); color: #FFFFFF; box-shadow: var(--shadow-2); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); color: var(--primary); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--primary-050); color: var(--primary-deep); }
.btn--wide { width: 100%; justify-content: center; }

/* -------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 26px rgba(51, 64, 155, 0.08); border-color: var(--line-strong); }
/* the staged progress rail under the header */
.site-header::after {
  content: "";
  position: absolute; left: 0; bottom: -1px; height: var(--rail);
  width: var(--rail-progress, 0%);
  background: var(--primary);
  transition: width 0.12s linear;
}
.header-inner { display: flex; align-items: center; gap: var(--s5); padding: 0.85rem 0; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.wordmark span {
  font-family: var(--display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em;
}
.wordmark span b { color: var(--primary); font-weight: 800; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: var(--s5); list-style: none; margin: 0; padding: 0; }
.nav a {
  font-weight: 600; font-size: var(--fs-sm); color: var(--ink-soft); text-decoration: none;
  padding: 0.4rem 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--primary); transition: width 0.22s ease;
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }
.header-cta { display: none; }
.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 2px solid var(--line-strong); color: var(--primary);
  font-family: var(--display); font-weight: 700; border-radius: var(--r-pill);
  padding: 0.5rem 0.95rem; cursor: pointer;
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
}
@media (max-width: 899px) {
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface);
         border-bottom: 1px solid var(--line-strong); padding: var(--s4) 0; display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
  .nav li { border-bottom: 1px solid var(--line); margin: 0; }
  .nav a { display: block; padding: 0.85rem 0; font-size: var(--fs-md); }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: var(--s8) 0 var(--s9); }
/* pale sky rails running forward behind the hero */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, var(--accent-050) 0 1px, transparent 1px 92px),
    linear-gradient(180deg, var(--accent-050), var(--bg) 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  opacity: 0.9;
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.04fr 0.96fr; gap: var(--s8); } }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub { font-size: var(--fs-md); color: var(--ink-soft); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s6) 0 var(--s6); }
.trust {
  list-style: none; margin: 0; padding: var(--s4) 0 0; border-top: 1px solid var(--line);
  display: grid; gap: var(--s3);
}
@media (min-width: 620px) { .trust { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.trust li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }
.trust b { font-family: var(--display); display: block; color: var(--ink); font-size: var(--fs-base); }
.trust svg { flex: none; margin-top: 3px; }

.hero-figure { position: relative; }
.hero-figure img {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
/* stage rail card floating on the photograph */
.stage-card {
  position: absolute; left: -0.5rem; bottom: -1.75rem;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); padding: var(--s4) var(--s5);
  box-shadow: var(--shadow-2); width: min(19rem, 88%);
}
.stage-card p { margin: 0 0 var(--s3); font-family: var(--display); font-weight: 700; font-size: var(--fs-sm); }
.stage-rail { display: flex; align-items: center; gap: 0.35rem; }
.stage-rail i {
  height: 6px; flex: 1; border-radius: var(--r-pill); background: var(--primary-150);
  display: block;
}
.stage-rail i.on { background: var(--primary); animation: railfill 0.7s ease both; }
.stage-rail i.on:nth-child(2) { animation-delay: 0.16s; }
.stage-rail i.on:nth-child(3) { animation-delay: 0.32s; }
.stage-rail i.on:nth-child(4) { animation-delay: 0.48s; }
@keyframes railfill { from { transform: scaleX(0.05); transform-origin: left; } to { transform: scaleX(1); } }
.stage-card small { display: block; margin-top: var(--s3); color: var(--muted); font-size: var(--fs-xs); }

/* -------------------------------------------------------------- cards */
.grid { display: grid; gap: var(--s5); }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s5);
  position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card h3 { margin-bottom: var(--s2); }
.card p { margin-bottom: 0; color: var(--ink-soft); font-size: var(--fs-sm); }
.card--cost { border-top: 3px solid var(--accent); }
.cost-tag {
  display: inline-block; font-family: var(--display); font-weight: 800;
  color: var(--primary); font-size: var(--fs-lg); margin-bottom: var(--s2);
}

.icon-badge {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--primary-100); border: 1px solid var(--line-strong);
  display: grid; place-items: center; margin-bottom: var(--s4);
}
.icon-badge svg { color: var(--primary); }

/* ------------------------------------------------------------- steps */
.steps { counter-reset: step; display: grid; gap: var(--s5); position: relative; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: var(--s6); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  color: var(--primary); letter-spacing: 0.06em;
}
.step::after {
  content: ""; position: absolute; left: 0; top: 0; height: var(--rail); width: 100%;
  background: var(--primary-150); border-radius: var(--r-pill);
}
.step .fill {
  position: absolute; left: 0; top: 0; height: var(--rail); width: 0;
  background: var(--primary); border-radius: var(--r-pill); z-index: 1;
}
.is-revealed .step .fill { animation: railgrow 0.9s ease forwards; }
.is-revealed .step:nth-child(2) .fill { animation-delay: 0.18s; }
.is-revealed .step:nth-child(3) .fill { animation-delay: 0.36s; }
.is-revealed .step:nth-child(4) .fill { animation-delay: 0.54s; }
@keyframes railgrow { to { width: 100%; } }
.step h3 { margin: var(--s3) 0 var(--s2); font-size: var(--fs-md); }
.step p { color: var(--ink-soft); font-size: var(--fs-sm); margin: 0; }

.split { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.split img { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-1); }

/* ---------------------------------------------------------- outcomes */
.outcome {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--primary); border-radius: var(--r-sm);
  padding: var(--s5);
}
.outcome .figure {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3rem);
  color: var(--primary); line-height: 1; display: block; margin-bottom: var(--s2);
}
.outcome h3 { font-size: var(--fs-md); margin-bottom: var(--s2); }
.outcome p { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }

/* ------------------------------------------------------ testimonials */
.testimonial {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s5); margin: 0; position: relative;
}
.testimonial::before {
  content: ""; position: absolute; top: 0; left: var(--s5); right: var(--s5); height: var(--rail);
  background: var(--accent); border-radius: 0 0 var(--r-pill) var(--r-pill);
}
.testimonial p { font-size: var(--fs-base); color: var(--ink); }
.testimonial footer { font-size: var(--fs-sm); color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--s3); }
.testimonial footer b { display: block; color: var(--ink); font-family: var(--display); font-size: var(--fs-base); }
.results {
  margin-top: var(--s6); display: grid; gap: var(--s4);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--primary-050); padding: var(--s5);
}
@media (min-width: 760px) { .results { grid-template-columns: repeat(3, 1fr); } }
.results div { text-align: center; }
.results b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: var(--primary); }
.results span { font-size: var(--fs-sm); color: var(--ink-soft); }

/* -------------------------------------------------------------- pricing */
.tiers { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 940px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s6) var(--s5); display: flex; flex-direction: column; height: 100%;
}
.tier--best { border: 2px solid var(--primary); box-shadow: var(--shadow-2); }
.tier .flag {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--primary);
  background: var(--primary-100); border-radius: var(--r-pill); padding: 0.25rem 0.8rem;
  margin-bottom: var(--s3);
}
.tier h3 { margin-bottom: var(--s2); }
.price { font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--ink); line-height: 1; }
.price sub { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); vertical-align: baseline; }
.tier ul { list-style: none; padding: 0; margin: var(--s5) 0; border-top: 1px solid var(--line); padding-top: var(--s4); }
.tier li { display: flex; gap: 0.55rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.tier li svg { flex: none; margin-top: 4px; color: var(--primary); }
.tier .btn { margin-top: auto; }
.billing-note {
  margin-top: var(--s5); text-align: center; font-size: var(--fs-sm); color: var(--muted);
}

/* ------------------------------------------------------------------ faq */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: var(--fs-md); color: var(--ink);
  padding: var(--s5) 2.6rem var(--s5) 0; position: relative;
}
.faq-q:hover { color: var(--primary); }
.faq-q::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.22s ease;
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-25%) rotate(-135deg); }
.faq-a { padding: 0 0 var(--s5); max-width: 76ch; color: var(--ink-soft); }
.faq-a[hidden] { display: none; }

/* ----------------------------------------------------------------- form */
.contact-panel {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  padding: var(--s6); box-shadow: var(--shadow-1);
}
.field { margin-bottom: var(--s4); }
.field label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: var(--fs-base); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 0.7rem 0.85rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--surface); }
.field [aria-invalid="true"] { border-color: #B3261E; border-width: 2px; }
.err { display: block; color: #B3261E; font-size: var(--fs-sm); margin-top: 0.3rem; font-weight: 600; }
.err[hidden] { display: none; }
.field-row { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: 0.65rem; align-items: flex-start; font-size: var(--fs-sm); }
.consent input { width: auto; margin-top: 0.35rem; }
.form-note { margin-top: var(--s4); font-size: var(--fs-sm); color: var(--muted); }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--primary-050); border-top: 3px solid var(--primary); padding: var(--s8) 0 var(--s5); }
.footer-grid { display: grid; gap: var(--s6); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.site-footer h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.16em; color: var(--primary); margin-bottom: var(--s4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s2); }
.site-footer a { color: var(--ink-soft); text-decoration: none; font-size: var(--fs-sm); }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.social { display: flex; gap: 0.5rem; margin-top: var(--s4); }
.social a {
  width: 38px; height: 38px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: var(--surface); display: grid; place-items: center; color: var(--primary);
}
.social a:hover { background: var(--primary-100); }
.footer-base {
  margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line-strong);
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between;
  font-size: var(--fs-sm); color: var(--muted);
}
.byline {
  margin-top: var(--s7); padding: var(--s5); border: 1px dashed var(--line-strong);
  border-radius: var(--r-md); background: var(--surface); font-size: var(--fs-sm); color: var(--ink-soft);
}
.byline b { font-family: var(--display); color: var(--ink); }

/* ------------------------------------------------------------- prose */
.prose { max-width: 74ch; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--s7); }
.prose h3 { margin-top: var(--s5); }
.prose li { color: var(--ink-soft); }
.page-head { padding: var(--s8) 0 var(--s6); background: var(--sky); border-bottom: 1px solid var(--line); }
.page-head p { max-width: 62ch; color: var(--ink-soft); margin-bottom: 0; }
.crumbs { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s4); }
.crumbs a { text-decoration: none; }
.author-portrait { border-radius: var(--r-lg); border: 1px solid var(--line-strong); box-shadow: var(--shadow-1); }
.author-grid { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 860px) { .author-grid { grid-template-columns: 260px 1fr; } }
.map-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); }
.map-group li { margin-bottom: var(--s3); }
.map-group a { font-weight: 600; }

/* ------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-revealed { opacity: 1; transform: none; }

@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; }
  .step .fill { width: 100%; }
}

/* ==========================================================================
   The Relaunch Practice: the magazine
   Same tokens, same typefaces, same light surfaces. Cards ride the arrow and
   progress rail vocabulary used across the product pages.
   ========================================================================== */

.mag-index, .mag-article { padding: var(--s7) 0 var(--s9); }
.mag-crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem;
}
.mag-crumbs li { margin: 0; display: flex; align-items: center; gap: 0.6rem; }
.mag-crumbs li + li::before {
  content: ""; width: 14px; height: 8px; flex: none;
  background: var(--line-strong);
  clip-path: polygon(0 40%, 60% 40%, 60% 0, 100% 50%, 60% 100%, 60% 60%, 0 60%);
}
.mag-crumbs li:last-child { color: var(--muted); }

/* -------------------------------------------------------- magazine index */
.mag-index-head { max-width: 42ch; margin-bottom: var(--s7); }
.mag-index-head h1 { font-size: var(--fs-2xl); max-width: 16ch; }
.mag-standfirst {
  font-family: var(--body); font-size: var(--fs-md); line-height: 1.55;
  color: var(--ink-soft); max-width: 62ch; margin-bottom: var(--s4);
}
.mag-index-note { font-size: var(--fs-sm); color: var(--muted); max-width: 60ch; margin: 0; }

.mag-grid { display: grid; gap: var(--s5); }
@media (min-width: 720px) { .mag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .mag-grid { grid-template-columns: repeat(3, 1fr); } }

.mag-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mag-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: var(--rail); width: 34%;
  background: var(--primary); z-index: 2; transition: width 0.3s ease;
}
.mag-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.mag-card:hover::before { width: 100%; }
.mag-card-media { display: block; background: var(--accent-050); }
.mag-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-body { padding: var(--s5); display: flex; flex-direction: column; flex: 1; }
.mag-kicker {
  font-family: var(--display); font-weight: 700; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--primary);
  margin: 0 0 var(--s3);
}
.mag-card-title { font-size: var(--fs-md); line-height: 1.2; margin: 0 0 var(--s3); }
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary); text-decoration: underline; }
.mag-card-dek { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0 0 var(--s4); }
.mag-meta {
  margin: auto 0 0; font-size: var(--fs-xs); color: var(--muted);
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.mag-dot { width: 4px; height: 4px; border-radius: var(--r-pill); background: var(--accent); display: inline-block; }

@media (min-width: 720px) {
  .mag-card.lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
  .mag-card.lead .mag-card-media { flex: 1 1 52%; }
  .mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 20rem; }
  .mag-card.lead .mag-card-body { flex: 1 1 48%; padding: var(--s6); justify-content: center; }
  .mag-card.lead .mag-card-title { font-size: var(--fs-xl); }
  .mag-card.lead .mag-card-dek { font-size: var(--fs-base); }
}

/* ------------------------------------------------------------ article */
.mag-head { max-width: 40ch; margin: var(--s6) 0 var(--s6); }
.mag-head h1 { font-size: var(--fs-2xl); }
.mag-byline {
  display: flex; flex-wrap: wrap; gap: 0.4rem var(--s4);
  font-size: var(--fs-sm); color: var(--muted);
  border-top: 1px solid var(--line); padding-top: var(--s4); max-width: 62ch;
}
.mag-byline a { font-weight: 600; text-decoration: none; }
.mag-byline a:hover { text-decoration: underline; }

.mag-figure { margin: 0 0 var(--s7); }
.mag-figure img {
  width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.mag-figure figcaption { margin-top: var(--s3); font-size: var(--fs-xs); color: var(--muted); max-width: 62ch; }

.mag-body { max-width: 68ch; font-size: var(--fs-md); line-height: 1.72; color: var(--ink-soft); }
.mag-body > h2 {
  font-size: var(--fs-xl); color: var(--ink); margin: var(--s7) 0 var(--s4);
  padding-top: var(--s4); border-top: 1px solid var(--line);
}
.mag-body > h3 { font-size: var(--fs-lg); color: var(--ink); margin: var(--s6) 0 var(--s3); }
.mag-body p { margin: 0 0 var(--s5); }
.mag-body ul, .mag-body ol { margin: 0 0 var(--s5); padding-left: 1.3rem; }
.mag-body li { margin-bottom: var(--s3); }
.mag-body strong { color: var(--ink); }
.mag-body a { font-weight: 600; }
.mag-body blockquote {
  margin: var(--s6) 0; padding: var(--s4) var(--s5);
  background: var(--primary-050); border-left: 4px solid var(--primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink);
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%; border-collapse: collapse; margin: 0 0 var(--s5);
  font-size: var(--fs-sm); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
.mag-body th, .mag-body td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); }
.mag-body th { font-family: var(--display); color: var(--ink); background: var(--primary-050); }
.mag-body tr:last-child td { border-bottom: 0; }

.inline-read {
  margin: var(--s6) 0; padding: var(--s4) var(--s5);
  background: var(--sky); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 600; color: var(--ink);
  position: relative; padding-left: 3.4rem;
}
.inline-read::before {
  content: ""; position: absolute; left: var(--s5); top: 1.45rem; width: 26px; height: 8px;
  background: var(--primary);
  clip-path: polygon(0 40%, 68% 40%, 68% 0, 100% 50%, 68% 100%, 68% 60%, 0 60%);
}
.inline-read a { text-decoration: none; }
.inline-read a:hover { text-decoration: underline; }

/* -------------------------------------------------------- call to action */
.mag-cta {
  margin: var(--s8) 0 0; max-width: 68ch;
  background: var(--primary-050); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); padding: var(--s6);
}
.mag-index .mag-cta { max-width: none; margin-top: var(--s8); }
.mag-cta h2 { font-size: var(--fs-lg); margin-bottom: var(--s3); }
.mag-cta p { color: var(--ink-soft); max-width: 60ch; }
.mag-cta .btn { margin-top: var(--s2); }

/* ------------------------------------------------------------ author box */
.mag-author {
  margin: var(--s6) 0 0; max-width: 68ch;
  display: grid; gap: var(--s5); grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md); padding: var(--s5);
}
@media (min-width: 620px) { .mag-author { grid-template-columns: 120px 1fr; } }
.mag-author img { border-radius: var(--r-md); border: 1px solid var(--line-strong); width: 120px; height: 120px; object-fit: cover; }
.mag-author p { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: var(--s3); }
.mag-author p:last-child { margin-bottom: 0; }
.mag-author-name { font-family: var(--display); font-weight: 800; font-size: var(--fs-md); color: var(--ink); }

/* --------------------------------------------------------- read also */
.mag-related { margin-top: var(--s8); border-top: 1px solid var(--line); padding-top: var(--s6); }
.mag-related h2 { font-size: var(--fs-lg); margin-bottom: var(--s5); }
.mag-related-grid { display: grid; gap: var(--s5); }
@media (min-width: 760px) { .mag-related-grid { grid-template-columns: repeat(3, 1fr); } }
.mag-rel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s4); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mag-rel:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--line-strong); }
.mag-rel-media { display: block; margin-bottom: var(--s4); }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-sm); }
.mag-rel-title { font-size: var(--fs-base); line-height: 1.24; margin-bottom: var(--s2); }
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary); text-decoration: underline; }
.mag-rel-dek { font-size: var(--fs-xs); color: var(--ink-soft); margin-bottom: var(--s3); }

/* ------------------------------------------------- magazine on the home page */
.mag-home-grid { display: grid; gap: var(--s5); }
@media (min-width: 700px) { .mag-home-grid { grid-template-columns: repeat(3, 1fr); } }
.mag-home-more { margin-top: var(--s6); }

@media (max-width: 420px) {
  .mag-index, .mag-article { padding-top: var(--s6); }
  .mag-head h1, .mag-index-head h1 { font-size: var(--fs-xl); max-width: none; }
  .mag-card-body { padding: var(--s4); }
  .mag-cta, .mag-author { padding: var(--s5) var(--s4); }
  .mag-body { font-size: var(--fs-base); }
  .inline-read { padding-left: 3rem; }
  .mag-figure img { border-radius: var(--r-md); }
}


/* 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; }
