/* ==========================================================================
   ShortlistLoop design system
   Search modern: paper white, deep ink, electric indigo.
   Instrument Serif over Instrument Sans, pipeline rails, sharp contrast.
   ========================================================================== */

:root {
  /* ---- brief palette ---- */
  --bg:            #FBFBFC;
  --surface:       #FFFFFF;
  --ink:           #0D0D12;
  --primary:       #3D2BD6;
  --accent:        #12B886;
  --muted:         #5C5C68;

  /* ---- derived tints and shades ---- */
  --paper-2:       #F4F4F8;
  --paper-3:       #ECECF2;
  --line:          #E3E3EB;
  --line-strong:   #C7C7D4;
  --ink-soft:      #23232C;
  --ink-70:        rgba(13, 13, 18, 0.70);
  --ink-12:        rgba(13, 13, 18, 0.12);
  --ink-06:        rgba(13, 13, 18, 0.06);
  --indigo-deep:   #2A1CA3;
  --indigo-mid:    #5442E0;
  --indigo-tint:   #EDEBFB;
  --indigo-wash:   #F6F5FE;
  --indigo-line:   rgba(61, 43, 214, 0.28);
  --accent-deep:   #0B8A65;
  --accent-tint:   #E3F7EF;
  --warn:          #B4530A;

  /* ---- type ---- */
  --font-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --font-body:    "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;

  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-md:   1.0625rem;
  --t-lg:   1.25rem;
  --t-xl:   1.5rem;
  --t-2xl:  clamp(1.6rem, 1.1rem + 2.1vw, 2.35rem);
  --t-3xl:  clamp(2.1rem, 1.2rem + 4.1vw, 3.6rem);
  --t-4xl:  clamp(2.7rem, 1.1rem + 7.1vw, 5.9rem);

  /* ---- spacing scale ---- */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.5rem;
  --s-6:  2rem;
  --s-7:  3rem;
  --s-8:  4rem;
  --s-9:  6rem;
  --s-10: 8rem;

  /* ---- radii, sharp by design ---- */
  --r-xs: 2px;
  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 8px;

  /* ---- shadows, crisp not soft ---- */
  --sh-1: 0 1px 0 var(--ink-06);
  --sh-2: 0 2px 0 rgba(13, 13, 18, 0.05), 0 8px 22px -14px rgba(13, 13, 18, 0.42);
  --sh-3: 0 3px 0 rgba(13, 13, 18, 0.06), 0 20px 44px -22px rgba(13, 13, 18, 0.50);
  --sh-indigo: 0 3px 0 var(--indigo-line), 0 18px 40px -24px rgba(61, 43, 214, 0.75);

  --wrap: 1240px;
  --rail-w: 1px;
}

/* --------------------------------------------------------------- reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------------------------------------------------------------- base --- */
body {
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--bg);
  /* paper grain plus a faint editorial column rule */
  background-image:
    repeating-linear-gradient(90deg, rgba(13,13,18,0.030) 0 1px, transparent 1px 96px),
    radial-gradient(circle at 18% 8%, rgba(61,43,214,0.055), transparent 42%),
    radial-gradient(circle at 88% 2%, rgba(18,184,134,0.045), transparent 34%);
  background-attachment: fixed, scroll, scroll;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 { font-size: var(--t-4xl); }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); line-height: 1.12; }
p { max-width: 68ch; }
strong { font-weight: 600; }

em.tone {
  font-style: italic;
  color: var(--primary);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.75rem);
}

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

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-xs);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: top 0.16s ease;
}
.skip-link:focus { top: var(--s-4); }

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

::selection { background: var(--indigo-tint); color: var(--indigo-deep); }

/* ------------------------------------------------------- shared motifs --- */

/* section rubric: numeral, tick, label. The editorial spine of the page. */
.rubric {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-5);
}
.rubric b {
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.rubric::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent 82%);
}

/* the rail: the repeated structural motif of the whole site */
.rail {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: 0;
}
.rail::before, .rail::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px; height: 7px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.rail::before { left: 0; }
.rail::after  { right: 0; background: var(--primary); border-color: var(--primary); }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.hero + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 30ch; }
.section-head p { margin-top: var(--s-4); color: var(--muted); font-size: var(--t-lg); max-width: 46ch; }

.lede {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* --------------------------------------------------------------- chips --- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}
.chip.is-live { color: var(--accent-deep); border-color: rgba(18,184,134,0.45); background: var(--accent-tint); }
.chip.is-hot  { color: var(--indigo-deep); border-color: var(--indigo-line); background: var(--indigo-tint); }
.chip .dot { width: 6px; height: 6px; background: currentColor; }

/* ------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.015em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--sh-indigo);
}
.btn-primary:hover { background: var(--indigo-deep); transform: translateY(-2px); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--sh-1);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.7rem; font-size: var(--t-base); }
.btn-block { width: 100%; }

.textlink {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.textlink:hover { color: var(--indigo-deep); text-decoration-thickness: 2px; }

/* -------------------------------------------------------------- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 251, 252, 0.86);
  backdrop-filter: saturate(150%) blur(9px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 26px -24px rgba(13,13,18,0.8);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 68px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex: 0 0 auto;
}
.wordmark svg { width: 28px; height: 28px; flex: 0 0 auto; }
.wordmark span b { font-weight: 400; color: var(--primary); }

.nav-toggle {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

#primary-nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-5); }
#primary-nav ul { display: flex; align-items: center; gap: var(--s-5); }
#primary-nav a {
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: 0.35rem;
  position: relative;
}
#primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  transition: right 0.22s ease;
}
#primary-nav a:hover::after { right: 0; }
#primary-nav .btn { color: #fff; }
#primary-nav .btn::after { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  #primary-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--surface);
    border-block: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-4) clamp(1.1rem, 4vw, 2.75rem) var(--s-5);
    display: none;
    box-shadow: var(--sh-2);
  }
  #primary-nav.is-open { display: flex; }
  #primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  #primary-nav li { border-bottom: 1px solid var(--line); }
  #primary-nav ul a { display: block; padding: 0.85rem 0; font-size: var(--t-base); }
  #primary-nav .btn { margin-top: var(--s-4); }
}

/* ---------------------------------------------------------------- hero --- */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  /* an oversized ghost rail behind the headline */
  content: "";
  position: absolute;
  inset: auto 0 22% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.hero h1 { margin-bottom: var(--s-5); text-wrap: balance; }
.hero h1 .accent {
  display: inline;
  font-style: italic;
  color: var(--primary);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--s-5);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-kicker span.sq {
  width: 9px; height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.hero-note {
  margin-top: var(--s-4);
  font-size: var(--t-sm);
  color: var(--muted);
}

/* trust strip built as three rail segments */
.trust {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.trust li {
  padding: var(--s-4) var(--s-4) var(--s-4) 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.trust li:last-child { border-right: 0; }
.trust li::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 34%; height: 3px;
  background: var(--primary);
}
.trust li:nth-child(2)::before { background: var(--accent); }
.trust li:nth-child(3)::before { background: var(--ink); }
.trust b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 0.2rem;
}
.trust span { display: block; font-size: var(--t-sm); color: var(--muted); line-height: 1.45; }

/* hero figure: photograph clipped into a sharp editorial frame */
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-3);
  filter: saturate(0.94) contrast(1.04);
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--indigo-line);
  border-radius: var(--r-sm);
  z-index: -1;
}
.hero-figure figcaption {
  margin-top: var(--s-3);
  font-size: var(--t-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------- the pipeline module --- */
.pipe {
  margin-top: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.pipe-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pipe-bar .sq { width: 8px; height: 8px; background: var(--primary); }
.pipe-bar .sq.g { background: var(--accent); }
.pipe-bar .sq.k { background: var(--line-strong); }
.pipe-window { overflow: hidden; padding: 0.9rem 0; position: relative; }
.pipe-window::before, .pipe-window::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 46px;
  z-index: 2;
  pointer-events: none;
}
.pipe-window::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.pipe-window::after  { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.pipe-track {
  display: flex;
  gap: 0.55rem;
  width: max-content;
  padding-inline: 0.9rem;
  animation: pipe-slide 26s linear infinite;
}
.pipe-track .stage {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  background: var(--bg);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.pipe-track .stage i {
  width: 7px; height: 7px;
  background: var(--line-strong);
  display: inline-block;
  transform: rotate(45deg);
}
.pipe-track .stage.on { border-color: var(--primary); color: var(--indigo-deep); background: var(--indigo-wash); }
.pipe-track .stage.on i { background: var(--primary); }
.pipe-track .stage.done i { background: var(--accent); }
@keyframes pipe-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* candidate rows inside the pipeline module */
.pipe-rows { border-top: 1px solid var(--line); }
.pipe-rows li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.16s ease, transform 0.16s ease;
}
.pipe-rows li:last-child { border-bottom: 0; }
.pipe-rows li:hover { background: var(--indigo-wash); transform: translateX(3px); }
.pipe-rows .av {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  background: var(--paper-2);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--indigo-deep);
}
.pipe-rows .nm { display: block; font-size: var(--t-sm); font-weight: 600; line-height: 1.25; }
.pipe-rows .rl { display: block; font-size: var(--t-xs); color: var(--muted); line-height: 1.3; }
.pipe-foot {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  font-size: var(--t-xs);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------- problem --- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.pain {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: var(--r-xs);
  padding: var(--s-5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-left-color 0.18s ease;
}
.pain:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-left-color: var(--primary); }
.pain h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.pain p { font-size: var(--t-sm); color: var(--muted); }
.pain .cost {
  display: block;
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line-strong);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--warn);
}

/* ------------------------------------------------------------ solution --- */
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: var(--s-6);
}
.steps { counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 var(--s-6) var(--s-7);
  border-left: 1px solid var(--line-strong);
}
.steps li:last-child { padding-bottom: 0; border-left-color: transparent; }
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: -19px; top: 0;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--r-xs);
}
.steps li:nth-child(2)::before { background: var(--primary); }
.steps li:nth-child(3)::before { background: var(--indigo-deep); }
.steps li:nth-child(4)::before { background: var(--accent-deep); }
.steps h3 { font-size: 1.45rem; margin-bottom: 0.5rem; padding-top: 0.35rem; }
.steps p { font-size: var(--t-base); color: var(--muted); }
.how-figure img {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-2);
  filter: saturate(0.92) contrast(1.03);
}
.how-figure figcaption {
  margin-top: var(--s-3);
  font-size: var(--t-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.how-figure .pull {
  margin-top: var(--s-5);
  padding: var(--s-5);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
}
.how-figure .pull p { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.16; color: #fff; }
.how-figure .pull span { display: block; margin-top: var(--s-3); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: #9C9CB4; }

/* ------------------------------------------------------------ features --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  margin-top: var(--s-7);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.feature {
  background: var(--surface);
  padding: var(--s-6) var(--s-5);
  position: relative;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.feature::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 3px;
  background: var(--primary);
  transition: width 0.28s ease;
}
.feature:hover { background: var(--indigo-wash); }
.feature:hover::after { width: 100%; }
.feature .ico {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: var(--r-xs);
  margin-bottom: var(--s-4);
  background: var(--bg);
}
.feature .ico svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }
.feature h3 { font-size: 1.35rem; margin-bottom: 0.55rem; }
.feature p { font-size: var(--t-sm); color: var(--muted); }

/* ------------------------------------------------------------ outcomes --- */
.outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.outcome {
  border-top: 3px solid var(--ink);
  padding-top: var(--s-4);
}
.outcome:nth-child(2) { border-top-color: var(--primary); }
.outcome:nth-child(3) { border-top-color: var(--accent); }
.outcome:nth-child(4) { border-top-color: var(--indigo-deep); }
.outcome .num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 4vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: var(--s-3);
}
.outcome .num sup { font-size: 0.4em; vertical-align: super; color: var(--primary); }
.outcome h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.outcome p { font-size: var(--t-sm); color: var(--muted); }
.outcome .meter {
  margin-top: var(--s-4);
  height: 6px;
  background: var(--paper-3);
  border-radius: 1px;
  overflow: hidden;
}
.outcome .meter i {
  display: block;
  height: 100%;
  background: var(--primary);
  width: 0;
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.outcome.is-visible .meter i { width: var(--fill, 70%); }

/* --------------------------------------------------------- social proof --- */
.proof { background: var(--ink); color: #fff; }
.proof h2, .proof h3 { color: #fff; }
.proof .rubric { color: #9C9CB4; }
.proof .rubric b { color: var(--accent); }
.proof .rubric::after { background: linear-gradient(90deg, rgba(255,255,255,0.32), transparent 82%); }
.proof .section-head p { color: #B7B7C8; }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.testimonial {
  background: #16161E;
  border: 1px solid #2A2A38;
  border-radius: var(--r-sm);
  padding: var(--s-5);
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.testimonial:hover { transform: translateY(-5px); border-color: var(--primary); }
.testimonial::before {
  content: "";
  position: absolute;
  top: 0; left: var(--s-5);
  width: 40px; height: 3px;
  background: var(--accent);
}
.testimonial blockquote p {
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.25;
  color: #F2F2F6;
  margin-bottom: var(--s-4);
}
.testimonial figcaption { font-size: var(--t-sm); color: #B7B7C8; }
.testimonial figcaption b { display: block; color: #fff; font-weight: 600; }
.testimonial .where { display: block; margin-top: 0.2rem; font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: #8A8AA2; }
.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid #2A2A38;
}
.results div b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.results div span { display: block; font-size: var(--t-sm); color: #B7B7C8; }

/* ------------------------------------------------------------- pricing --- */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-7);
  align-items: start;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: var(--s-6) var(--s-5);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tier:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.tier.is-featured {
  border: 1px solid var(--ink);
  box-shadow: var(--sh-3);
}
.tier.is-featured::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.tier .flag {
  position: absolute;
  top: -13px; right: var(--s-5);
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-xs);
}
.tier h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.tier .who { font-size: var(--t-sm); color: var(--muted); min-height: 3.1em; }
.tier .price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: var(--s-4) 0 var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.tier .price b { font-family: var(--font-display); font-size: 3rem; line-height: 1; font-weight: 400; }
.tier .price span { font-size: var(--t-sm); color: var(--muted); }
.tier ul { margin-bottom: var(--s-5); display: grid; gap: 0.6rem; }
.tier li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.6rem;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  align-items: start;
}
.tier li svg { width: 14px; height: 14px; margin-top: 5px; stroke: var(--accent-deep); fill: none; stroke-width: 2.2; }
.billing-note {
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: var(--t-sm);
  color: var(--muted);
}
.billing-note b { color: var(--ink); }

/* ----------------------------------------------------------------- faq --- */
.faq-list {
  margin-top: var(--s-7);
  border-top: 1px solid var(--ink);
  max-width: 900px;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  background: none;
  border: 0;
  padding: var(--s-5) 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.16;
  color: var(--ink);
}
.faq-q:hover { color: var(--primary); }
.faq-q .mk {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  position: relative;
  margin-top: 0.2rem;
}
.faq-q .mk::before, .faq-q .mk::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.faq-q .mk::before { width: 11px; height: 1.5px; }
.faq-q .mk::after  { width: 1.5px; height: 11px; transition: transform 0.22s ease; }
.faq-q[aria-expanded="true"] .mk { border-color: var(--primary); background: var(--indigo-tint); }
.faq-q[aria-expanded="true"] .mk::after { transform: scaleY(0); }
.faq-a { display: none; padding: 0 0 var(--s-5) 0; }
.faq-a.is-open { display: block; }
.faq-a p { font-size: var(--t-base); color: var(--muted); max-width: 74ch; }
.faq-a p + p { margin-top: var(--s-3); }

/* ------------------------------------------------------------- contact --- */
.contact { background: var(--paper-2); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-aside h2 { margin-bottom: var(--s-4); }
.contact-aside .hook { font-size: var(--t-lg); color: var(--ink-soft); }
.contact-aside ul { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.contact-aside li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.7rem;
  font-size: var(--t-sm);
  color: var(--muted);
  align-items: start;
}
.contact-aside li svg { width: 15px; height: 15px; margin-top: 4px; stroke: var(--primary); fill: none; stroke-width: 2; }

form.sl-form {
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--r-md);
  padding: clamp(1.3rem, 3vw, 2.2rem);
  box-shadow: var(--sh-3);
}
.field { margin-bottom: var(--s-4); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-4); }
.field label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-xs); margin-top: 0.15rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
  font-size: var(--t-base);
}
.field textarea { min-height: 132px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(61, 43, 214, 0.16);
  outline: none;
}
.field [aria-invalid="true"] { border-color: #C02626; background: #FDF3F3; }
.err { display: none; margin-top: 0.35rem; font-size: var(--t-xs); font-weight: 600; color: #A81F1F; }
.err.is-shown { display: block; }
.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: var(--s-5) 0;
  font-size: var(--t-sm);
  color: var(--muted);
}
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }
.consent label { font-weight: 400; margin: 0; font-size: var(--t-sm); }
.form-foot { margin-top: var(--s-4); font-size: var(--t-sm); color: var(--muted); }

/* -------------------------------------------------------------- author --- */
.byline {
  margin-top: var(--s-7);
  display: flex;
  gap: var(--s-4);
  align-items: center;
  flex-wrap: wrap;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-xs);
}
.byline p { font-size: var(--t-sm); color: var(--muted); }
.byline b { color: var(--ink); }

/* -------------------------------------------------------------- footer --- */
.site-footer {
  background: var(--ink);
  color: #B7B7C8;
  padding-top: clamp(3rem, 6vw, 5rem);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
  padding-bottom: var(--s-7);
}
.footer-brand .wordmark { color: #fff; }
.footer-brand .wordmark span b { color: var(--accent); }
.footer-brand p { margin-top: var(--s-4); font-size: var(--t-sm); max-width: 34ch; }
.socials { display: flex; gap: 0.5rem; margin-top: var(--s-5); flex-wrap: wrap; }
.socials a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #2A2A38;
  border-radius: var(--r-xs);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.socials a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: #fff; }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--s-4);
}
.site-footer nav ul { display: grid; gap: 0.6rem; }
.site-footer nav a, .site-footer .col a { font-size: var(--t-sm); text-decoration: none; color: #B7B7C8; }
.site-footer nav a:hover, .site-footer .col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pub-line { margin-top: var(--s-4); font-size: var(--t-xs); color: #8A8AA2; }
.footer-base {
  border-top: 1px solid #2A2A38;
  padding-block: var(--s-5);
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-size: var(--t-xs);
  color: #8A8AA2;
}
.footer-base a { color: #B7B7C8; text-decoration: none; }
.footer-base a:hover { color: #fff; }

/* --------------------------------------------------------- prose pages --- */
.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--s-6);
  border-bottom: 1px solid var(--line);
}
.page-head .rubric { margin-bottom: var(--s-4); }
.page-head h1 { font-size: var(--t-3xl); max-width: 22ch; }
.page-head p { margin-top: var(--s-4); color: var(--muted); font-size: var(--t-lg); }
.prose { padding-block: clamp(2.5rem, 5vw, 4rem); }
.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); max-width: 78ch; }
.prose h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  margin-top: var(--s-6);
  margin-bottom: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: var(--s-5); margin-bottom: var(--s-2); }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: var(--s-4); }
.prose ul, .prose ol { margin-top: var(--s-4); display: grid; gap: 0.55rem; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  background: var(--primary);
  transform: rotate(45deg);
}
.prose ol { counter-reset: pr; }
.prose ol li { position: relative; padding-left: 2rem; counter-increment: pr; }
.prose ol li::before {
  content: counter(pr) ".";
  position: absolute;
  left: 0; top: 0;
  font-weight: 700;
  color: var(--primary);
}
.prose dl { margin-top: var(--s-4); display: grid; gap: 0.5rem; }
.prose dt { font-weight: 600; }
.prose dd { color: var(--muted); margin-bottom: var(--s-3); }
.factbox {
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  padding: var(--s-5);
  box-shadow: var(--sh-1);
}
.factbox dl { margin: 0; }
.factbox dt { font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.factbox dd { margin: 0 0 var(--s-3) 0; color: var(--ink); font-weight: 500; }

/* author page */
.author-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.author-hero img {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-2);
}
.author-hero .role { font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: var(--s-3); }
.profile-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--s-5); }
.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  background: var(--surface);
  font-size: var(--t-sm);
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.profile-links a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* site map */
.map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-5); margin-top: var(--s-6); }
.map-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: var(--r-xs);
  padding: var(--s-5);
}
.map-card h2 { font-size: 1.3rem; margin-bottom: var(--s-4); }
.map-card ul { display: grid; gap: var(--s-3); }
.map-card li { display: block; }
.map-card a { display: inline-block; font-weight: 600; text-decoration: none; color: var(--primary); margin-bottom: 0.15rem; }
.map-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.map-card span { display: block; font-size: var(--t-sm); color: var(--muted); }

/* thanks and 404 */
.mini {
  min-height: 52vh;
  display: grid;
  align-content: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.mini .big {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--primary);
  margin-bottom: var(--s-4);
}
.mini h1 { margin-bottom: var(--s-4); }
.mini p { font-size: var(--t-lg); color: var(--muted); }
.mini .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* ------------------------------------------------------------- reveals --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }

/* --------------------------------------------------------- responsive --- */
@media (max-width: 1040px) {
  .hero-grid, .how-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author-hero { grid-template-columns: minmax(0, 1fr); }
  .author-hero img { max-width: 260px; }
}
@media (max-width: 700px) {
  body { font-size: var(--t-base); }
  .trust { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .trust li { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .results { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .footer-base { flex-direction: column; }
  .hero-figure::after { display: none; }
  .steps li { padding-left: var(--s-6); }
}
@media (max-width: 400px) {
  .wrap { padding-inline: 1rem; }
  .tier { padding: var(--s-5) var(--s-4); }
}

/* --------------------------------------------------- reduced motion --- */
@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; }
  .pipe-track { animation: none; }
  .outcome .meter i { width: var(--fill, 70%); }
}

@media print {
  .site-header, .site-footer, .contact { display: none; }
  body { background: #fff; }
}

/* ==========================================================================
   The Search Desk: the magazine
   Built from the same tokens as the product pages. Paper white surfaces,
   deep ink type, indigo rails, sharp corners, Instrument Serif headlines.
   ========================================================================== */

/* ------------------------------------------------------- breadcrumb --- */
.crumb {
  padding-top: var(--s-5);
  padding-bottom: var(--s-2);
}
.crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumb li { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.crumb li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--line-strong);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--primary); }
.crumb li:last-child span {
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 500;
  font-size: var(--t-sm);
  max-width: 52ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------- article masthead --- */
.art-head {
  padding-top: var(--s-4);
  padding-bottom: var(--s-5);
  max-width: 1000px;
}
.art-head h1 {
  font-size: var(--t-3xl);
  max-width: 20ch;
  text-wrap: balance;
  margin-bottom: var(--s-5);
}
.standfirst {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 0.96rem + 0.5vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 58ch;
}
.art-rail { margin-block: var(--s-5) var(--s-4); }

.art-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.8rem;
  font-size: var(--t-sm);
  color: var(--muted);
}
.art-byline .who { font-weight: 600; color: var(--ink); }
.art-byline a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.art-byline a:hover { color: var(--indigo-deep); text-decoration-thickness: 2px; }
.art-byline time { font-variant-numeric: tabular-nums; }
.pip {
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

/* ----------------------------------------------------- featured image --- */
.art-figure {
  margin-top: var(--s-5);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  max-width: 1000px;
  position: relative;
}
.art-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-2);
}
.art-figure::after {
  content: "";
  position: absolute;
  left: clamp(1.1rem, 4vw, 2.75rem);
  bottom: -9px;
  width: 84px;
  height: 4px;
  background: var(--primary);
}

/* ------------------------------------------------- article body column --- */
.art-shell { max-width: 780px; }
.art-body {
  max-width: 68ch;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink-soft);
}
.art-body > * { max-width: 100%; }
.art-body p { max-width: 100%; }
.art-body p + p { margin-top: var(--s-4); }
.art-body h2 {
  font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.1rem);
  line-height: 1.06;
  color: var(--ink);
  margin-top: var(--s-7);
  margin-bottom: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  position: relative;
}
.art-body h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--primary);
}
.art-body > h2:first-child { margin-top: 0; }
.art-body h3 {
  font-family: var(--font-body);
  font-size: 1.075rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin-top: var(--s-5);
  margin-bottom: var(--s-3);
}
.art-body h3::after {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  margin-top: 0.5rem;
  background: var(--line-strong);
}
.art-body ul, .art-body ol { margin-top: var(--s-4); display: grid; gap: 0.6rem; }
.art-body ul + p, .art-body ol + p { margin-top: var(--s-4); }
.art-body ul li { position: relative; padding-left: 1.5rem; }
.art-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}
.art-body ol { counter-reset: artstep; }
.art-body ol li { position: relative; padding-left: 2.1rem; counter-increment: artstep; }
.art-body ol li::before {
  content: counter(artstep);
  position: absolute;
  left: 0;
  top: 0.15em;
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  background: var(--indigo-tint);
  border: 1px solid var(--indigo-line);
  border-radius: var(--r-xs);
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
}
.art-body blockquote {
  margin-top: var(--s-5);
  margin-bottom: var(--s-5);
  padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6);
  background: var(--indigo-wash);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.art-body blockquote p {
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1.24;
  color: var(--ink);
}
.art-body strong { color: var(--ink); font-weight: 600; }
.art-body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.art-body a:hover { color: var(--indigo-deep); text-decoration-thickness: 2px; }
.art-body table {
  width: 100%;
  margin-top: var(--s-5);
  border-collapse: collapse;
  font-size: var(--t-sm);
}
.art-body th, .art-body td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
.art-body th { background: var(--paper-2); color: var(--ink); font-weight: 600; }

/* the contextual reading link dropped between sections */
.inline-read {
  margin-top: var(--s-5);
  margin-bottom: var(--s-5);
  padding: 0.85rem 1rem 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--muted);
  box-shadow: var(--sh-1);
}
.inline-read a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-read a:hover { color: var(--indigo-deep); }

/* ------------------------------------------------------------- the cta --- */
.art-cta {
  max-width: 68ch;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  position: relative;
  overflow: hidden;
}
.art-cta::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0 42%, var(--accent) 42% 62%, transparent 62%);
}
.cta-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9C9CB4;
  margin-bottom: var(--s-4);
}
.cta-kicker .sq {
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.art-cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.15rem);
  margin-bottom: var(--s-4);
  max-width: 20ch;
}
.art-cta p { color: #B7B7C8; font-size: var(--t-base); max-width: 54ch; }
.art-cta .btn { margin-top: var(--s-5); }
.cta-note { margin-top: var(--s-4); font-size: var(--t-sm); color: #8A8AA2; }

/* ------------------------------------------------------- the author box --- */
.art-author {
  max-width: 68ch;
  margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  padding: var(--s-5);
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-1);
}
.art-author img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.au-role {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}
.au-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.05;
  color: var(--ink);
  margin-block: 0.25rem var(--s-3);
}
.art-author p { font-size: var(--t-sm); color: var(--muted); max-width: 46ch; }
.art-author p + p { margin-top: var(--s-3); }

/* ------------------------------------------------------------ read also --- */
.read-also {
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.read-also h2 { font-size: var(--t-2xl); margin-bottom: var(--s-6); }
.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-5);
}
.rel-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.rel-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.rel-shot { display: block; border-bottom: 1px solid var(--line); }
.rel-shot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.rel-text { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1 1 auto; }
.rel-text h3 { font-size: 1.25rem; line-height: 1.1; }
.rel-text h3 a { text-decoration: none; }
.rel-text h3 a:hover { color: var(--primary); }
.rel-dek {
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rel-meta {
  margin-top: auto;
  padding-top: var(--s-2);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.read-all { margin-top: var(--s-6); font-weight: 600; }

/* ------------------------------------------------------- magazine index --- */
.mag-masthead {
  padding-top: var(--s-4);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.mag-masthead h1 { font-size: var(--t-4xl); margin-bottom: var(--s-5); }
.mag-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-7);
}
.mag-facts p { display: flex; flex-direction: column; gap: 0.1rem; }
.mag-facts b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.mag-facts span {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-index { padding-top: clamp(2rem, 5vw, 3.5rem); }

.mag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.mag-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.mag-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.mag-shot { display: block; position: relative; border-bottom: 1px solid var(--line); }
.mag-shot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.mag-text {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1 1 auto;
}
.mag-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-kicker .sq {
  width: 7px;
  height: 7px;
  background: var(--primary);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.mag-title { font-size: 1.35rem; line-height: 1.08; }
.mag-title a { text-decoration: none; }
.mag-title a:hover { color: var(--primary); }
.mag-dek {
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mag-meta {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-meta time { font-variant-numeric: tabular-nums; }

/* the lead card runs the full width of the grid */
.mag-card.lead {
  grid-column: 1 / -1;
  flex-direction: row;
  border-top: 3px solid var(--primary);
}
.mag-card.lead .mag-shot {
  flex: 0 0 52%;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.mag-card.lead .mag-shot { min-height: 330px; }
.mag-card.lead .mag-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
.mag-card.lead .mag-text {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  justify-content: center;
  gap: var(--s-4);
}
.mag-card.lead .mag-kicker { color: var(--indigo-deep); }
.mag-card.lead .mag-title { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem); max-width: 18ch; }
.mag-card.lead .mag-dek {
  font-size: var(--t-md);
  color: var(--ink-soft);
  -webkit-line-clamp: 6;
  max-width: 46ch;
}
.mag-card.lead .mag-meta { margin-top: 0; }

.mag-outro { border-top: 0; padding-top: clamp(2rem, 5vw, 3rem); }
.mag-outro .art-cta { margin-top: 0; }

/* -------------------------------------------- magazine block on the home --- */
.home-mag .mag-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.home-mag .mag-foot { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ------------------------------------------- published articles listing --- */
.article-list { display: grid; gap: 0; margin-top: var(--s-4); }
.article-list li {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: var(--s-2) var(--s-5);
  padding-block: var(--s-4);
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.article-list li:last-child { border-bottom: 1px solid var(--line); }
.article-list time {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.article-list a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--indigo-line);
}
.article-list a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ----------------------------------------------- magazine responsiveness --- */
@media (max-width: 900px) {
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-shot { flex: 0 0 auto; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .mag-card.lead .mag-shot img { position: static; aspect-ratio: 3 / 2; height: auto; }
  .mag-card.lead .mag-title { max-width: none; }
}
@media (max-width: 700px) {
  .art-head h1 { font-size: var(--t-2xl); max-width: none; }
  .art-author { grid-template-columns: 1fr; gap: var(--s-4); }
  .art-author img { width: 96px; height: 96px; }
  .crumb li:last-child span { max-width: 22ch; }
  .mag-facts { gap: var(--s-4) var(--s-6); }
  .article-list li { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .mag-grid { grid-template-columns: minmax(0, 1fr); }
  .rel-grid { grid-template-columns: minmax(0, 1fr); }
  .art-body { font-size: 1rem; }
  .art-body blockquote { padding-left: var(--s-5); }
  .art-body blockquote p { font-size: 1.2rem; }
  .art-cta { padding: var(--s-5) var(--s-4); }
  .art-byline { font-size: var(--t-xs); }
  .mag-facts b { font-size: 1.25rem; }
}



/* Network strip: five sibling products, rotated so every site is linked the same
   number of times. Spans the full footer grid rather than adding a fifth column,
   because each footer declares a fixed column count and a fifth item would wrap. */
.site-network { grid-column: 1 / -1; flex-basis: 100%; width: 100%;
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.site-network h2 { font: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.7rem; opacity: 0.72; }
.site-network ul { list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-network li + li { margin-top: 0; }
.site-network a { font-size: 0.86rem; text-decoration: none; opacity: 0.9;
  border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { opacity: 1; border-bottom-color: currentColor; }
@media (max-width: 620px) { .site-network ul { gap: 0.45rem 1.1rem; } }


/* Decorative bleed guard. Several sections intentionally hang a rotated or offset
   pseudo element past the viewport edge. overflow-x: clip contains them without
   creating a scroll container, so position: sticky keeps working, unlike overflow
   hidden. Genuine content overflow is still reported by the element level check in
   the browser pass. */
html { overflow-x: clip; }
body { overflow-x: clip; }


/* Wide content on phones. Class names for the prose wrapper differ from site to site,
   so this targets tables and pre blocks directly: they scroll inside their own box
   rather than pushing cells past the right edge, per the build contract. */
@media (max-width: 700px) {
  table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { overflow-wrap: anywhere; }
  pre { overflow-x: auto; max-width: 100%; }
}
