/* LashRetention design system. Studio glam light: bright white, blush nude, graphite anchor. */

:root {
  --bg: #FBF8F8;
  --surface: #FFFFFF;
  --ink: #1E1B1C;
  --primary: #3F3A3D;
  --accent: #E4B9B0;
  --muted: #6A6467;

  --accent-050: #FDF7F5;
  --accent-100: #F8EBE7;
  --accent-200: #F1DAD4;
  --accent-300: #EBC9C1;
  --line: #E6DEDC;
  --line-strong: #D6CBC8;
  --primary-tint: #EFECEC;
  --primary-tint-2: #E2DDDE;

  --rgb-primary: 63, 58, 61;
  --rgb-ink: 30, 27, 28;
  --rgb-accent: 228, 185, 176;

  --font-display: "Poiret One", "Didot", "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 88px; --s10: 120px;

  --r-sm: 2px; --r-md: 4px; --r-lg: 10px; --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(30, 27, 28, 0.05);
  --shadow-2: 0 10px 30px rgba(30, 27, 28, 0.07);
  --shadow-3: 0 24px 60px rgba(30, 27, 28, 0.09);

  --t-xs: 0.75rem; --t-sm: 0.8125rem; --t-base: 1rem; --t-md: 1.0625rem;
  --t-lg: 1.25rem; --t-xl: 1.6rem; --t-2xl: 2.1rem; --t-3xl: 2.9rem; --t-4xl: 3.9rem;

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

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

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 82% 6%, var(--accent-050) 0%, rgba(255, 255, 255, 0) 46%),
    radial-gradient(circle at 4% 62%, var(--accent-050) 0%, rgba(255, 255, 255, 0) 38%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: 0.01em;
}

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

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 var(--s4);
}

h1 { font-size: clamp(2.4rem, 6.2vw, var(--t-4xl)); }
h2 { font-size: clamp(1.9rem, 4.4vw, var(--t-3xl)); }
h3 { font-size: var(--t-lg); font-family: var(--font-body); font-weight: 600; letter-spacing: 0.005em; }
p { margin: 0 0 var(--s4); }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--primary); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.narrow { max-width: 780px; }

.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: -60px; z-index: 200;
  background-color: var(--surface); color: var(--ink);
  border: 1px solid var(--primary); padding: var(--s3) var(--s5);
  border-radius: var(--r-md); font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--s4); }

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

/* ---------- eyebrow, rules and the arc / fan motif ---------- */

.eyebrow {
  font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.26em;
  font-weight: 600; color: var(--muted); margin: 0 0 var(--s4);
  display: flex; align-items: center; gap: var(--s3);
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px; background-color: var(--line-strong);
  display: inline-block; flex: none;
}

.rule-fan {
  height: 26px; width: 120px; margin-bottom: var(--s5);
  background-image:
    linear-gradient(to top, var(--accent-300), rgba(255, 255, 255, 0)),
    linear-gradient(to top, var(--accent-300), rgba(255, 255, 255, 0)),
    linear-gradient(to top, var(--accent-300), rgba(255, 255, 255, 0)),
    linear-gradient(to top, var(--accent-300), rgba(255, 255, 255, 0)),
    linear-gradient(to top, var(--accent-300), rgba(255, 255, 255, 0));
  background-repeat: no-repeat;
  background-size: 1px 100%;
  background-position: 8px 100%, 30px 100%, 52px 100%, 74px 100%, 96px 100%;
}

.hairline { border: 0; border-top: 1px solid var(--line); margin: var(--s8) 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 90;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(9px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-1); border-bottom-color: var(--line-strong); }
.header-inner { display: flex; align-items: center; gap: var(--s5); min-height: 76px; }

.wordmark { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; }
.wordmark svg { flex: none; }
.wordmark-name {
  font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.06em; color: var(--ink);
}

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: var(--s6); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-size: var(--t-sm); letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; text-decoration: none; color: var(--muted); position: relative; padding: 6px 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background-color: var(--accent); transition: width 0.35s var(--ease);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none; margin-left: auto; background-color: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--font-body); font-size: var(--t-sm); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 15px 28px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-primary { background-color: rgba(63, 58, 61, 1); color: #FFFFFF; }
.btn-primary:hover { color: #FFFFFF; transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn-ghost {
  background-color: var(--surface); color: var(--ink); border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-2px); }
.btn-accent { background-color: var(--accent-200); color: var(--ink); }
.btn-accent:hover { background-color: var(--accent-300); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: var(--t-xs); }
.btn-block { width: 100%; }

/* ---------- sections ---------- */

.section { padding: var(--s10) 0; position: relative; }
.section-tint { background-color: var(--accent-050); border-block: 1px solid var(--line); }
.section-white { background-color: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: var(--s8); }
.section-head p { color: var(--muted); font-size: var(--t-md); }

/* ---------- hero ---------- */

.hero { padding: var(--s9) 0 var(--s10); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -160px; top: -180px; width: 520px; height: 520px;
  border: 1px solid var(--line); border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 340px; height: 340px;
  border: 1px solid var(--accent-200); border-radius: 50%; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s9); align-items: center; }
.hero h1 { margin-bottom: var(--s5); }
.hero-lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin: var(--s6) 0 var(--s7); }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: var(--s5) var(--s6);
  border-top: 1px solid var(--line); padding-top: var(--s5);
}
.trust-item { display: flex; align-items: center; gap: var(--s3); font-size: var(--t-sm); color: var(--muted); }
.trust-item strong { color: var(--ink); font-weight: 600; }

/* mirror frame: a thin double border with a blush inner reveal */
.mirror {
  position: relative; padding: 14px; background-color: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 240px 240px var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-2);
}
.mirror::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid var(--accent-200);
  border-radius: 234px 234px 6px 6px; pointer-events: none; z-index: 2;
}
.mirror img { border-radius: 226px 226px var(--r-md) var(--r-md); }
.mirror-flat { border-radius: var(--r-lg); }
.mirror-flat::before { border-radius: 4px; }
.mirror-flat img { border-radius: var(--r-md); }

/* ---------- cards ---------- */

.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s6);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: scale(1.018); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card h3 { margin-bottom: var(--s3); }
.card p { color: var(--muted); font-size: var(--t-base); margin-bottom: 0; }

.cost {
  display: inline-block; margin-top: var(--s4); font-size: var(--t-sm);
  font-weight: 600; letter-spacing: 0.06em; color: var(--ink);
  border-top: 1px solid var(--accent-200); padding-top: var(--s3);
}

.icon-wrap {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: var(--s5);
  border: 1px solid var(--line-strong); border-radius: 50%;
}
.icon-wrap svg { stroke: var(--primary); fill: none; stroke-width: 1; }

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

.steps { counter-reset: step; display: grid; gap: var(--s6); }
.step { position: relative; padding-left: 74px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -6px; font-family: var(--font-display);
  font-size: 2.2rem; color: var(--accent); letter-spacing: 0.04em;
}
.step::after {
  content: ""; position: absolute; left: 26px; top: 44px; bottom: -22px; width: 1px;
  background-color: var(--line);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: var(--s2); }
.step p { color: var(--muted); margin-bottom: 0; }

/* ---------- outcomes ---------- */

.outcome { border-top: 1px solid var(--line-strong); padding-top: var(--s5); }
.outcome .figure {
  font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.5rem);
  line-height: 1; color: var(--ink); display: block; margin-bottom: var(--s3);
}
.outcome h3 { font-size: var(--t-base); text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-weight: 600; }
.outcome p { color: var(--muted); font-size: var(--t-base); margin-bottom: 0; }

/* ---------- testimonials ---------- */

.testimonial {
  background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s6); margin: 0; position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.testimonial:hover { transform: scale(1.015); box-shadow: var(--shadow-2); }
.testimonial::before {
  content: ""; position: absolute; top: 0; left: var(--s6); right: var(--s6); height: 2px;
  background-image: linear-gradient(90deg, var(--accent), var(--accent-100));
}
.testimonial p { font-size: var(--t-base); color: var(--ink); }
.testimonial footer { font-size: var(--t-sm); color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--s4); }
.testimonial footer strong { display: block; color: var(--ink); font-size: var(--t-base); font-weight: 600; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s7); }
.metric {
  text-align: center; background-color: var(--accent-050);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5);
}
.metric b { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1.1; }
.metric span { font-size: var(--t-sm); color: var(--muted); }

/* ---------- pricing ---------- */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); align-items: start; }
.tier {
  background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s7) var(--s6);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tier:hover { transform: scale(1.015); box-shadow: var(--shadow-2); }
.tier-featured { border-color: var(--accent); box-shadow: var(--shadow-2); position: relative; }
.tier-badge {
  position: absolute; top: -13px; left: var(--s6);
  background-color: var(--accent-200); color: var(--ink);
  font-size: var(--t-xs); letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; padding: 5px 14px; border-radius: var(--r-pill);
}
.tier h3 { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 400; }
.price { font-family: var(--font-display); font-size: 3.1rem; line-height: 1; }
.price small { font-family: var(--font-body); font-size: var(--t-sm); color: var(--muted); letter-spacing: 0.08em; }
.tier ul { list-style: none; margin: var(--s5) 0 var(--s6); padding: 0; }
.tier li {
  position: relative; padding-left: 26px; margin-bottom: var(--s3);
  font-size: var(--t-base); color: var(--muted);
}
.tier li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 1px;
  background-color: var(--accent);
}
.billing-note { margin-top: var(--s6); font-size: var(--t-sm); color: var(--muted); }

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s5); text-align: left; background-color: transparent; border: 0;
  padding: var(--s5) 0; cursor: pointer; font-family: var(--font-body);
  font-size: var(--t-lg); font-weight: 500; color: var(--ink); line-height: 1.4;
}
.faq-q .sign { flex: none; width: 22px; height: 22px; position: relative; margin-top: 6px; }
.faq-q .sign::before, .faq-q .sign::after {
  content: ""; position: absolute; left: 0; top: 10px; width: 22px; height: 1px;
  background-color: var(--primary); transition: transform 0.35s var(--ease);
}
.faq-q .sign::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .sign::after { transform: rotate(0deg); }
.faq-a { padding: 0 0 var(--s5); max-width: 74ch; color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- form ---------- */

.form-panel {
  background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s7); box-shadow: var(--shadow-1);
}
.field { margin-bottom: var(--s5); }
.field label {
  display: block; font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--s2);
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--t-base); color: var(--ink);
  background-color: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); padding: 13px 14px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  background-color: var(--surface); border-color: var(--primary);
}
.field textarea { min-height: 130px; resize: vertical; }
.field [aria-invalid="true"] { border-color: #B3372F; }
.error-msg { display: none; font-size: var(--t-sm); color: #96271F; margin-top: 6px; text-transform: none; letter-spacing: 0; }
.error-msg.is-shown { display: block; }
.consent { display: flex; gap: var(--s3); align-items: flex-start; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 4px; }
.consent label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: var(--t-base); color: var(--muted); }
.form-aside { font-size: var(--t-sm); color: var(--muted); margin-top: var(--s4); }

/* ---------- footer ---------- */

.site-footer {
  background-color: var(--accent-050);
  border-top: 1px solid var(--line);
  padding: var(--s9) 0 var(--s5);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s7); }
.footer-col h2 {
  font-family: var(--font-body); font-size: var(--t-xs); text-transform: uppercase;
  letter-spacing: 0.2em; font-weight: 600; color: var(--muted); margin-bottom: var(--s4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--s3); }
.footer-col a { font-size: var(--t-base); color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-note { color: var(--muted); font-size: var(--t-base); max-width: 32ch; }
.social { display: flex; gap: var(--s3); margin-top: var(--s5); }
.social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%; background-color: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.social a:hover { border-color: var(--primary); transform: translateY(-2px); }
.social svg { stroke: var(--primary); fill: none; stroke-width: 1.2; }
.footer-base {
  margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between;
  font-size: var(--t-sm); color: var(--muted);
}

.byline {
  margin-top: var(--s8); padding: var(--s5) var(--s6);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-md); background-color: var(--surface);
  font-size: var(--t-base); color: var(--muted);
}

/* ---------- prose pages ---------- */

.prose { max-width: 76ch; }
.prose h2 { font-size: var(--t-2xl); margin-top: var(--s8); }
.prose h3 { margin-top: var(--s6); }
.prose ul, .prose ol { padding-left: 22px; color: var(--muted); }
.prose li { margin-bottom: var(--s2); }
.page-head { padding: var(--s9) 0 var(--s7); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s4); }
.breadcrumb a { color: var(--muted); }

.author-grid { display: grid; grid-template-columns: 300px 1fr; gap: var(--s8); align-items: start; }
.author-portrait { border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 10px; background-color: var(--surface); }
.author-portrait img { border-radius: var(--r-md); }

.map-group { margin-bottom: var(--s7); }
.map-group ul { list-style: none; padding: 0; margin: 0; }
.map-group li { border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
.map-group li a { font-weight: 600; text-decoration: none; }
.map-group li span { display: block; color: var(--muted); font-size: var(--t-base); }

/* ---------- reveal motion: fine line draws and the lash fan ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

.line-draw { position: relative; }
.line-draw::after {
  content: ""; position: absolute; left: 0; bottom: -14px; height: 1px; width: 0;
  background-color: var(--accent); transition: width 1s var(--ease) 0.15s;
}
.line-draw.is-visible::after { width: 140px; }

.fan { display: flex; align-items: flex-end; gap: 7px; height: 42px; margin-bottom: var(--s5); }
.fan i {
  display: block; width: 1px; height: 14px; background-color: var(--accent);
  transform-origin: bottom center; transform: rotate(0deg) scaleY(0.3);
  transition: transform 0.8s var(--ease);
}
.fan.is-visible i:nth-child(1) { transform: rotate(-34deg) scaleY(1.6); }
.fan.is-visible i:nth-child(2) { transform: rotate(-17deg) scaleY(2.2); }
.fan.is-visible i:nth-child(3) { transform: rotate(0deg) scaleY(2.6); }
.fan.is-visible i:nth-child(4) { transform: rotate(17deg) scaleY(2.2); }
.fan.is-visible i:nth-child(5) { transform: rotate(34deg) scaleY(1.6); }
.fan.is-visible i:nth-child(2) { transition-delay: 0.06s; }
.fan.is-visible i:nth-child(3) { transition-delay: 0.12s; }
.fan.is-visible i:nth-child(4) { transition-delay: 0.18s; }
.fan.is-visible i:nth-child(5) { transition-delay: 0.24s; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  .author-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .section { padding: var(--s9) 0; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background-color: var(--surface); border-bottom: 1px solid var(--line-strong);
    padding: var(--s5) var(--s5) var(--s6); box-shadow: var(--shadow-2);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: var(--s4); }
  .header-cta { display: none; }
  .grid-3, .grid-2, .tiers, .metrics { grid-template-columns: 1fr; }
  .mirror { border-radius: 160px 160px var(--r-lg) var(--r-lg); }
}

@media (max-width: 520px) {
  body { font-size: var(--t-base); }
  .grid-4 { grid-template-columns: 1fr; }
  .form-panel, .card, .tier { padding: var(--s5); }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions .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;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .line-draw.is-visible::after { width: 140px; }
}

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

/* ================================================================
   Fill Cycle: the magazine. Extends the tokens above, light only.
   ================================================================ */

/* ---------- shared magazine furniture ---------- */

.mag-standfirst {
  font-size: 1.15rem; line-height: 1.62; color: var(--muted);
  max-width: 40em; margin-bottom: var(--s5);
}
.mag-kicker {
  font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.24em;
  font-weight: 600; color: var(--muted); margin: 0 0 var(--s3);
}
.mag-dot {
  display: inline-block; width: 3px; height: 3px; border-radius: 50%;
  background-color: var(--accent); margin: 0 10px; vertical-align: middle;
}

/* ---------- magazine index ---------- */

.mag-index-head {
  padding: var(--s9) 0 var(--s7);
  border-bottom: 1px solid var(--line);
  background-color: var(--accent-050);
}
.mag-index-head h1 { margin-bottom: var(--s5); }
.mag-index-note {
  font-size: var(--t-sm); letter-spacing: 0.06em; color: var(--muted);
  border-top: 1px solid var(--line-strong); padding-top: var(--s4);
  max-width: 46em; margin-bottom: 0;
}
.mag-index-wrap { padding: var(--s9) 0 var(--s10); }

.mag-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s7) var(--s5);
}

.mag-card {
  background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.mag-card:hover { transform: scale(1.015); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.mag-card-media { display: block; background-color: var(--accent-050); border-bottom: 1px solid var(--line); }
.mag-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-body { padding: var(--s5) var(--s5) var(--s6); display: flex; flex-direction: column; flex: 1; }
.mag-card-title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.02em;
  font-size: var(--t-xl); line-height: 1.18; margin: 0 0 var(--s3);
}
.mag-card-title a { text-decoration: none; color: var(--ink); }
.mag-card-title a:hover { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); }
.mag-card-dek { color: var(--muted); font-size: var(--t-base); margin-bottom: var(--s5); }
.mag-card-meta {
  margin: auto 0 0; font-size: var(--t-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: var(--s4);
}

/* the newest article runs across the grid as a lead */
.mag-card.lead {
  grid-column: 1 / -1; flex-direction: row; align-items: stretch;
  border-color: var(--line-strong); box-shadow: var(--shadow-1);
}
.mag-card.lead .mag-card-media {
  flex: 0 0 54%; border-bottom: 0; border-right: 1px solid var(--line);
}
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 340px; }
.mag-card.lead .mag-card-body { padding: var(--s7) var(--s7) var(--s7); justify-content: center; }
.mag-card.lead .mag-card-title { font-size: clamp(1.9rem, 3.2vw, var(--t-3xl)); }
.mag-card.lead .mag-card-dek { font-size: var(--t-md); max-width: 34em; }

/* ---------- article header ---------- */

.mag-article-head {
  padding: var(--s8) 0 0;
  background-color: var(--accent-050);
  border-bottom: 1px solid var(--line);
}
.mag-head-inner { max-width: 900px; }
.mag-article-head h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.12; margin-bottom: var(--s5);
}
.mag-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3);
  font-size: var(--t-sm); color: var(--muted); letter-spacing: 0.04em;
  border-top: 1px solid var(--line-strong); padding-top: var(--s4);
}
.mag-byline a { color: var(--ink); font-weight: 600; text-decoration: none; }
.mag-byline a:hover { text-decoration: underline; }
.mag-byline-sep { width: 14px; height: 1px; background-color: var(--line-strong); display: inline-block; }
.mag-figure { margin: var(--s7) 0 0; transform: translateY(var(--s6)); }
.mag-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- article body ---------- */

.mag-body-wrap { padding: var(--s9) 0 var(--s10); }
.mag-article {
  max-width: 68ch; margin: 0 auto;
  font-size: 1.075rem; line-height: 1.78; color: var(--ink);
}
.mag-article > p { margin: 0 0 var(--s5); }
.mag-article h2 {
  font-size: clamp(1.7rem, 3.4vw, var(--t-2xl));
  margin: var(--s8) 0 var(--s4); padding-top: var(--s5);
  border-top: 1px solid var(--line);
}
.mag-article h3 {
  font-family: var(--font-body); font-size: var(--t-lg); font-weight: 600;
  margin: var(--s6) 0 var(--s3);
}
.mag-article a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.mag-article a:hover { color: var(--primary); text-decoration-color: var(--primary); }
.mag-article ul, .mag-article ol { padding-left: 22px; margin: 0 0 var(--s5); }
.mag-article li { margin-bottom: var(--s3); }
.mag-article li::marker { color: var(--accent); }
.mag-article blockquote {
  margin: var(--s6) 0; padding: var(--s5) var(--s6);
  background-color: var(--accent-050); border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink); font-size: var(--t-md);
}
.mag-article blockquote p:last-child { margin-bottom: 0; }
.mag-article table {
  width: 100%; border-collapse: collapse; margin: var(--s6) 0;
  font-size: var(--t-base); background-color: var(--surface);
}
.mag-article caption { caption-side: bottom; font-size: var(--t-sm); color: var(--muted); padding-top: var(--s3); text-align: left; }
.mag-article th, .mag-article td {
  border-bottom: 1px solid var(--line); padding: var(--s3) var(--s4); text-align: left; vertical-align: top;
}
.mag-article thead th {
  background-color: var(--accent-050); border-bottom: 1px solid var(--line-strong);
  font-size: var(--t-sm); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}

/* contextual link dropped between sections by the build */
.mag-article .inline-read,
.inline-read {
  margin: var(--s6) 0; padding: var(--s4) var(--s5);
  background-color: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--r-md);
  font-size: var(--t-base); letter-spacing: 0.02em; color: var(--muted);
}
.inline-read a { color: var(--ink); font-weight: 600; }

/* ---------- call to action ---------- */

.mag-cta {
  max-width: 68ch; margin: var(--s9) auto 0;
  background-color: var(--accent-050); border: 1px solid var(--accent-200);
  border-radius: var(--r-lg); padding: var(--s7) var(--s6);
}
.mag-cta h2 { font-size: var(--t-2xl); margin-bottom: var(--s4); }
.mag-cta p { color: var(--muted); margin-bottom: var(--s5); max-width: 46em; }
.mag-cta-actions { margin-bottom: 0; }

/* ---------- author box ---------- */

.mag-author {
  max-width: 68ch; margin: var(--s7) auto 0;
  display: grid; grid-template-columns: 140px 1fr; gap: var(--s6);
  background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s6);
}
.mag-author > img {
  width: 140px; height: 140px; object-fit: cover; border-radius: 50%;
  border: 1px solid var(--accent-200); padding: 4px; background-color: var(--surface);
}
.mag-author-text p { font-size: var(--t-base); color: var(--muted); margin-bottom: var(--s3); }
.mag-author-name {
  font-family: var(--font-display); font-size: var(--t-xl); color: var(--ink);
  letter-spacing: 0.04em; margin-bottom: var(--s2) !important;
}
.mag-author-link { margin-bottom: 0 !important; }
.mag-author-link a { color: var(--ink); font-weight: 600; }

/* ---------- read also ---------- */

.mag-related { margin: var(--s10) auto 0; max-width: var(--wrap); }
.mag-related > h2 {
  font-size: var(--t-2xl); padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line-strong); margin-bottom: var(--s6);
}
.mag-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.mag-rel-card {
  background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; padding-bottom: var(--s5);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.mag-rel-card:hover { transform: scale(1.015); box-shadow: var(--shadow-2); }
.mag-rel-media { display: block; border-bottom: 1px solid var(--line); background-color: var(--accent-050); }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-title {
  font-family: var(--font-display); font-weight: 400; font-size: var(--t-lg);
  line-height: 1.2; letter-spacing: 0.02em; margin: var(--s5) var(--s5) var(--s3);
}
.mag-rel-title a { text-decoration: none; color: var(--ink); }
.mag-rel-title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.mag-rel-dek { margin: 0 var(--s5) var(--s4); color: var(--muted); font-size: var(--t-base); }
.mag-rel-meta {
  margin: 0 var(--s5); font-size: var(--t-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: var(--s3);
}

/* ---------- home page magazine teaser ---------- */

.mag-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.mag-teaser-more { margin-top: var(--s7); }

/* ---------- author page article list ---------- */

.mag-list { list-style: none; margin: var(--s6) 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.mag-list li { border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
.mag-list a { font-weight: 600; text-decoration: none; }
.mag-list a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.mag-list time { display: block; font-size: var(--t-sm); color: var(--muted); margin-top: 4px; }

/* ---------- magazine responsive ---------- */

@media (max-width: 1024px) {
  .mag-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-card.lead .mag-card-media { flex-basis: 46%; }
  .mag-card.lead .mag-card-body { padding: var(--s6); }
}

@media (max-width: 860px) {
  .mag-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card-media {
    flex: none; border-right: 0; border-bottom: 1px solid var(--line);
  }
  .mag-card.lead .mag-card-media img { aspect-ratio: 3 / 2; min-height: 0; }
  .mag-related-grid, .mag-teaser-grid { grid-template-columns: 1fr; }
  .mag-index-wrap, .mag-body-wrap { padding: var(--s8) 0 var(--s9); }
  .mag-article { font-size: var(--t-base); }
}

@media (max-width: 520px) {
  .mag-index-head, .mag-article-head { padding-top: var(--s7); }
  .mag-article-head h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .mag-standfirst { font-size: var(--t-md); }
  .mag-byline { gap: var(--s2); font-size: var(--t-xs); }
  .mag-byline-sep { display: none; }
  .mag-card-body { padding: var(--s5) var(--s4) var(--s5); }
  .mag-card.lead .mag-card-body { padding: var(--s5) var(--s4); }
  .mag-cta { padding: var(--s6) var(--s4); }
  .mag-cta h2 { font-size: var(--t-xl); }
  .mag-author { grid-template-columns: 1fr; gap: var(--s4); padding: var(--s5) var(--s4); text-align: center; }
  .mag-author > img { margin: 0 auto; }
  .mag-author-text { text-align: left; }
  .mag-figure { margin-top: var(--s6); }
  .mag-article table { display: block; overflow-x: auto; }
  .mag-related > h2 { font-size: var(--t-xl); }
}


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