/* ============================================================
   brisk. — styles.css
   Single shared stylesheet for all pages
   Design system v2 (self-hosted Open Sauce Sans, paper/teal palette)
   ============================================================ */

/* ============================================================
   Fonts — self-hosted Open Sauce Sans
   ============================================================ */

@font-face {
  font-family: 'Open Sauce Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/open-sauce-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sauce Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/open-sauce-sans-latin-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sauce Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/open-sauce-sans-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sauce Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/open-sauce-sans-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sauce Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/open-sauce-sans-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sauce Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/open-sauce-sans-latin-800-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sauce Sans';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/open-sauce-sans-latin-900-normal.woff2') format('woff2');
}

/* ============================================================
   Design tokens
   Variable NAMES are deliberately stable: every page and all 35
   blog posts reference them, so the palette swaps in place.
   ============================================================ */
:root {
  /* Backgrounds */
  --bg:          #FFFFFF;
  --bg-elevated: #F5F7F7;
  --card:        #FFFFFF;

  /* Text */
  --ink:   #252820;
  --ink-2: #4A524D;
  --ink-3: #63716C;

  /* Accent */
  --teal:      #007A65;
  --teal-deep: #006653;
  --teal-bg:   #E0F3ED;
  --teal-bdr:  #A9CCC3;
  --teal-glow: rgba(0,122,101,0.10);
  --teal-dot:  #00C9A7;   /* bright accent — for dark backgrounds only */
  --stroke:    #CBE9E1;   /* highlighter / hover stroke */

  /* Orange — aliased to teal on purpose. Inline styles on older pages
     still reference these names and must not break. */
  --orange:     var(--teal);
  --orange-bg:  var(--teal-bg);
  --orange-bdr: var(--teal-bdr);

  /* Lines & surfaces */
  --line: #DFE7E4;
  --grid-line: rgba(183,198,194,0.16);
  --dark: #202824;

  /* Typography */
  --f-display: 'Open Sauce Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-body:    'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-serif:   'Instrument Serif', Georgia, serif;

  /* Major section hierarchy. These tokens apply to section introductions
     and conversion bands; article headings and component titles keep their
     smaller reading scale. */
  --fs-section-title: clamp(2.2rem, 3.9vw, 3.5rem);
  --fs-section-lead: clamp(1.05rem, 1.6vw, 1.2rem);

  /* Rhythm */
  --w:  1120px;                        /* content max-width */
  --sp: clamp(56px, 6vw, 88px);        /* vertical section padding */
  --space-content: clamp(32px, 4vw, 48px); /* heading to content */
  --space-intro: clamp(48px, 6vw, 80px);   /* page introduction */
  --gap: clamp(32px, 4vw, 64px);      /* column gap */
  --gutter: clamp(20px, 5vw, 56px);    /* horizontal page gutter */
}


/* ============================================================
   Reset & Base
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: light only;
}

body {
  font-family: var(--f-body);
  font-size: 17px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* The hidden attribute normally beats any display value via the UA
   stylesheet, but several components here set their own display on the
   same element (.field, .calc-money-fields, .result-money are all
   display:flex at equal specificity to [hidden]'s display:none) and,
   coming later in the cascade, silently win - the element stays visible
   with the hidden attribute still sitting on it, doing nothing. Restoring
   that guarantee once here is simpler than chasing it per component. */
[hidden] { display: none !important; }

/* Available to screen readers only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Page top offset (fixed nav)
   ============================================================ */

.page-top {
  padding-top: 72px;
}

@media (max-width: 900px) {
  .page-top { padding-top: 60px; }
}

/* ============================================================
   Navigation
   ============================================================ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s;
}

nav.scrolled { padding: 1rem 4rem; }

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.nav-active {
  color: var(--ink);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}

.nav-cta {
  font-family: var(--f-display);
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  background: var(--teal);
  color: #ffffff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-cta:hover { background: var(--teal-deep); color: #ffffff !important; }

/* Mobile hamburger button */
.mob-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mob-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: all 0.3s;
}

@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.85rem 1.5rem; }

  .mob-btn { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.5rem;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
  }

  .nav-links a:last-child { border-bottom: none; }

  .nav-cta {
    margin-top: 0.5rem;
    padding: 0.6rem 1.25rem !important;
    border-radius: 100px;
    display: inline-flex;
    width: auto;
  }
}

/* ------------------------------------------------------------
   Nav v2 — sticky, full-bleed bar with an inner .wrap.
   Scoped with :has() so pages still using the v1 markup
   (nav > .nav-logo + #nav-links) are untouched.
   ------------------------------------------------------------ */

nav:has(> .wrap) {
  position: sticky;
  display: block;
  padding: 0;
  transition: none;
}

nav:has(> .wrap) > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 80px;
  max-width: 1240px;
}

nav:has(> .wrap).scrolled { padding: 0; }

/* Quiet bar: smaller logo, regular-weight links, wider gaps. */
nav:has(> .wrap) .nav-logo img { height: 28px; }

nav:has(> .wrap) .nav-links { gap: 2.6rem; }

nav:has(> .wrap) .nav-links a {
  font-size: 0.84rem;
  font-weight: 400;
}

nav:has(> .wrap) .nav-cta {
  font-weight: 500 !important;
  padding: 0.7rem 1.25rem;
  margin-left: 0.6rem;
}

@media (max-width: 900px) {
  nav:has(> .wrap) { padding: 0; }
  nav:has(> .wrap) > .wrap { height: 64px; }
  nav:has(> .wrap).scrolled { padding: 0; }
  nav:has(> .wrap) .nav-logo img { height: 24px; }
  /* The drop-down panel stacks its own rows: no desktop gap, no indent */
  nav:has(> .wrap) .nav-links { gap: 0; }
  nav:has(> .wrap) .nav-links a { font-size: 0.9rem; }
  nav:has(> .wrap) .nav-cta { margin-left: 0; }
}

/* ============================================================
   Shared site footer
   ============================================================ */

.site-explore {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.site-explore p { font-size: 14px; color: var(--ink-2); }

.site-explore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-size: 14px;
}

.site-explore-links a,
.site-footer-newsletter a { color: var(--teal); text-decoration: none; }

.site-footer {
  display: block;
  max-width: none;
  margin: 0;
  border: 0;
  padding: 35px 0 26px;
}

.site-footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer-logo img {
  height: 24px;
  width: auto;
  display: block;
  margin-bottom: 6px;
}

.site-footer-newsletter { font-size: 13px; color: var(--ink-2); }
.site-footer-newsletter a { margin-left: 10px; }

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  font-size: 11px;
  color: var(--ink-3);
}

.site-footer-links { display: flex; gap: 22px; }
.site-footer-links a { text-decoration: none; }
.site-footer-shell a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .site-explore {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 29px 0;
  }

  .site-explore-links { gap: 14px 22px; font-size: 13px; }
  .site-explore p { font-size: 13px; }
  .site-footer-main { align-items: flex-start; flex-direction: column; gap: 20px; }
  .site-footer-newsletter { max-width: 300px; line-height: 1.8; }
  .site-footer-newsletter a { display: block; margin: 0; }
  .site-footer-bottom { flex-direction: column; gap: 16px; margin-top: 23px; }
}

/* ============================================================
   Typography — global scale
   ============================================================ */

/* Colour is deliberately NOT set here: headings inherit it, so a
   heading inside any dark band stays white without needing an
   override per page. */
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); }
h3 { font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1.2; }

/* Italic accents inside headlines, and the standalone .serif utility */
h1 i, h2 i, h3 i, .serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 i, h2 i { font-size: 1.1em; }

p { text-wrap: pretty; }

/* Lead paragraph */
.lead {
  font-size: var(--fs-section-lead);
  color: var(--ink-2);
  max-width: 32em;
  line-height: 1.55;
}

/* Small print under a block */
.note {
  font-size: 0.84rem;
  color: var(--ink-3);
}

.note.center {
  text-align: center;
  margin-inline: auto;
}

/* Highlighter stroke behind black italic text in a headline.
   Rule: teal-coloured italic gets NO highlight; black italic gets one. */
.teal-highlight,
.hl {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.teal-highlight::after,
.hl::after {
  content: '';
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.04em;
  height: 0.42em;
  background: var(--stroke);
  z-index: -1;
}

/* On a dark band the text is already white, so the light stroke would
   swallow it. Same rule as in light mode, inverted: coloured italic,
   no highlight bar. */
.dark .teal-highlight::after,
.dark .hl::after,
.dark-section .teal-highlight::after,
.dark-section .hl::after {
  display: none;
}

.dark .teal-highlight,
.dark .hl,
.dark-section .teal-highlight,
.dark-section .hl {
  color: var(--teal-dot);
}

/* h1.hero-headline used to duplicate the base h1 rule below with its own
   size/weight/spacing and a teal-no-stroke italic accent. It's identical to
   plain h1 now in every value except that teal accent, so guide pages
   (skills) render through the same base h1 + .teal-highlight path as every
   other page instead of a parallel one. */

h2.section-headline {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--ink);
}

h2.section-headline i {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}

h1.page-headline {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--ink);
}

h1.page-headline i {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
}

p.body-copy {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-2);
}

/* Inline accent link/emphasis — replaces the old inline
   `color:var(--orange);font-weight:700` styles. */
.link-accent {
  color: var(--teal);
  font-weight: 700;
}

/* ============================================================
   Layout primitives
   ============================================================ */

/* Content column. Zero-specificity section padding so any
   page-level class rule (.hero, .final, legacy sections) wins. */
.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

:where(section:not([class]), section.paper, section.dark, section.panel, .sect) {
  padding-block: var(--sp);
}

/* Connected content has a smaller entry gap; same-surface continuations
   share the preceding section's bottom padding. */
.sect-tight { padding-block: var(--space-content) var(--sp); }
section:not([class]) + .sect-tight,
.panel + .panel { padding-top: 0; }

/* Neutral panel band */
.panel {
  background: var(--bg-elevated);
}

/* A band that needs a hairline against the band above it */
.band-top { border-top: 1px solid var(--line); }

/* Vertical stacks */
.stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Section intro: eyebrow + headline + lead */
.head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: var(--space-content);
  max-width: 48rem;
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.head .eyebrow { justify-content: center; }
.head .lead { text-align: center; }

/* Long-form copy stays left-aligned beneath a centered section intro. */
.story-copy { max-width: 44rem; margin-inline: auto; }

/* Two-column split: headline left, running copy right */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--gap);
  align-items: start;
}

.copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 34em;
  line-height: 1.65;
}

.copy strong {
  color: var(--ink);
  font-weight: 500;
}

/* Button / link row */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.actions.center { justify-content: center; }

/* Row of short proof points with teal dots */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  font-family: var(--f-display);
  font-size: 0.84rem;
  color: var(--ink-3);
}

.trust span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 0.55rem;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Paper grid — graph-paper texture, masked so it never starts
   or stops on a hard edge. Never put it on two adjacent sections.
   ------------------------------------------------------------ */

.paper { position: relative; }

.paper::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
}

/* Fades in at the top as well as out at the bottom */
.paper.both::before {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, #000 62%, transparent 100%);
}

.paper > .wrap { position: relative; z-index: 1; }

/* ============================================================
   Components
   ============================================================ */

/* Section label / eyebrow */
.section-label,
.eyebrow {
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label { margin-bottom: 1.5rem; }

.section-label::before,
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--teal);
  flex-shrink: 0;
}

.section-label.center,
.eyebrow.center { justify-content: center; }

/* ------------------------------------------------------------
   Buttons — pill, display font. `.btn-main` / `.btn-ghost` are
   kept as aliases so the existing pages keep working.
   ------------------------------------------------------------ */

.btn,
.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1;
  padding: 0.95rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover,
.btn-main:hover {
  background: var(--teal-bg);
  border-color: var(--teal-bdr);
  color: var(--ink);
}

.btn.primary,
.btn-main {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}

.btn.primary:hover,
.btn-main:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #ffffff;
}

/* Ghost: no fill, no border until hover */
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}

.btn.ghost:hover {
  background: var(--teal-bg);
  border-color: var(--teal-bdr);
  color: var(--ink);
}

/* On a dark band the outline button needs light strokes */
.dark .btn:not(.primary),
.dark-section .btn:not(.primary) {
  background: transparent;
  border-color: rgba(255,255,255,0.28);
  color: #ffffff;
}

.dark .btn:not(.primary):hover,
.dark-section .btn:not(.primary):hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  color: #ffffff;
}

/* Legacy quiet text button */
.btn-ghost {
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-3);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

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

/* ------------------------------------------------------------
   Text link — the signature interaction. A light teal stroke
   grows up behind the text on hover.
   ------------------------------------------------------------ */

.textlink {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--teal);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent;
  transition: box-shadow 0.2s;
}

.textlink:hover,
.textlink:focus-visible {
  box-shadow: inset 0 -0.55em 0 var(--stroke);
}

/* .textlink is also used on <button> elements (the calculator's "Try an
   example" and "Reset"). Unlike <a>, a button carries its own UA chrome
   - background, outset border, padding - that the rules above never
   touch, so it rendered as a native gray button with teal text inside. */
button.textlink {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  align-self: flex-start;
}

.dark .textlink,
.dark-section .textlink {
  color: var(--teal-dot);
}

.dark .textlink:hover,
.dark-section .textlink:hover {
  box-shadow: inset 0 -0.55em 0 rgba(0,201,167,0.18);
}

@media (prefers-reduced-motion: reduce) {
  .textlink { transition: none; }
}

/* Tag / badge */
.tag {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-bg);
  border: 1px solid var(--teal-bdr);
  padding: 4px 10px;
  border-radius: 100px;
  width: fit-content;
}

/* Divider */
hr.divide {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Scroll reveal */
/* Scroll reveal.
   Content is visible by DEFAULT and only starts hidden where a script can
   actually reveal it again. Parking text at opacity:0 unconditionally means
   anyone with JavaScript off, and any crawler that does not execute JS, gets
   a blank page, which matters because this site is written to be cited by
   AI answer engines. `scripting: enabled` is false in exactly those cases,
   so the animation becomes a pure enhancement. Same for reduced motion:
   those readers get the content, not a fade. */
.reveal { opacity: 1; transform: none; }

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Dark section (Testimonials)
   ============================================================ */

.dark-section {
  background: var(--dark);
  padding: 7rem 0;
  width: 100%;
}

.dark-section .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
}

.dark-section .section-label,
.dark-section .eyebrow {
  color: rgba(255,255,255,0.5);
}

.dark-section .section-label::before,
.dark-section .eyebrow::before {
  background: var(--teal-dot);
}

.dark-section h2 {
  color: #fff;
}

.dark-section h1,
.dark-section h3 {
  color: #ffffff;
}

.dark-section h2 i {
  color: rgba(255,255,255,0.45);
}

.dark-section .lead { color: rgba(255,255,255,0.7); }
.dark-section .note { color: rgba(255,255,255,0.55); }

.dark-section .word-quote {
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.7;
  margin: 0 0 2rem;
}

.pull-quote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1.5;
  border-left: 3px solid var(--teal);
  padding: 0.25rem 0 0.25rem 1.75rem;
  margin: 0;
  max-width: 700px;
}

.pull-quote cite {
  display: block;
  font-family: var(--f-display);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-3);
  margin-top: 0.75rem;
}

.dark-section .word-source {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}

.dark-section .word-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 2.5rem;
  transition: border-color 0.2s;
}

.dark-section .word-card:hover {
  border-color: rgba(255,255,255,0.20);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .dark-section .inner { padding: 0 1.5rem; }
  .dark-section { padding: 4rem 0; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Hero v2 — copy left, portrait right, on the paper grid.
   No min-height: the section is as tall as its content, so the
   primary button stays above the fold on a short phone screen.
   ============================================================ */

.hero {
  overflow: hidden;
  padding-block: var(--space-intro);
}

.hero > .wrap {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(36px, 4vw, 64px);
  align-items: center;
}

/* The hero headline carries its own manual line break, so it needs a cap
   that lets "Put AI to work" sit on one line inside this narrower column.
   The global h1 cap (5.6rem) overflows it and the balancer then splits
   each <br> segment again, which is how this became four lines. */
.hero-copy h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.9rem);
  text-wrap: normal;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Hero with no portrait beside it: one column, and the headline may use the
   full measure instead of the narrow copy column the two-column hero needs. */
.hero > .wrap.hero-single {
  grid-template-columns: minmax(0, 1fr);
}

/* rem, not em: `em` here resolves against the block's own body-size font and
   collapses the column to about 340px. */
.hero-single .hero-copy { max-width: 48rem; margin-inline: auto; align-items: center; text-align: center; }
.hero-single .actions, .hero-single .trust { justify-content: center; }
.hero-single .hero-copy h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }

/* A hero whose headline is a whole sentence rather than three words. It needs
   a wider copy column and a smaller cap, or the longest line cannot fit and
   the manual breaks turn into four ragged lines. */
.hero > .wrap.hero-long { grid-template-columns: 1.6fr 0.8fr; }
.hero-long .hero-copy h1 { font-size: clamp(2.5rem, 4.4vw, 4rem); }
.hero > .wrap.hero-long { align-items: stretch; }
.hero-long .portrait { min-height: 0; }
.hero-long .portrait img {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  object-position: right center;
}

/* The hero trust row uses the bright dot, not the deep teal */
.hero .trust span::before { background: var(--teal); }

/* Portrait with a caption card floating over the bottom edge */
.portrait {
  position: relative;
  margin: 0;
}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
}

/* The homepage working photo needs its full teaching composition: laptop,
   microphone and hands. Its taller frame is intentionally page-specific. */
.hero .home-portrait img { aspect-ratio: 2/3; }

.portrait figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portrait figcaption strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.portrait figcaption small {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.45;
}

.portrait figcaption .mark {
  font-size: 1.5rem;
  color: var(--teal);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero > .wrap, .hero > .wrap.hero-long { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { align-items: center; text-align: center; }
  .hero .eyebrow, .hero .actions, .hero .trust { justify-content: center; }
  .portrait { width: 100%; max-width: 380px; margin-inline: auto; }
  .hero-long .portrait img { position: static; height: auto; aspect-ratio: 4/5; }
}

/* A clear handoff from the opening promise to the service choices. */
.section-jump {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: -21px auto 0;
  position: relative;
  z-index: 2;
  border: 1px solid var(--teal-bdr);
  border-radius: 50%;
  background: var(--bg);
  color: var(--teal-deep);
  text-decoration: none;
}

.section-jump span { animation: section-jump 1.6s ease-in-out infinite; }

@keyframes section-jump {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .section-jump span { animation: none; }
}

/* ============================================================
   Ticker — dark running banner.
   `.ticker` is the v2 class; `.ticker-wrap` is kept as an alias
   for the pages that still use the v1 markup.
   The track markup duplicates its item list, so translating the
   track by -50% loops seamlessly.
   ============================================================ */

.ticker,
.ticker-wrap {
  background: var(--teal-bg);
  overflow: hidden;
  padding-block: 12px;
  border-block: 1px solid var(--teal-bdr);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tick 34s linear infinite;
}

.ticker:hover .ticker-track,
.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline: 26px;
  font-family: var(--f-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  border: none;
}

/* v2 markup has no dot element — the dot is a pseudo-element */
.ticker .ticker-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* v1 markup ships an explicit dot span */
.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* The homepage moves directly from its hero into the service choices, with a
   deliberate pause instead of a decorative ticker between them. */
.home-page .home-ways {
  padding-top: clamp(72px, 8vw, 112px);
}

@keyframes tick {
  to { transform: translateX(-50%); }
}

/* Legacy keyframe name, still referenced by the inline CSS on
   /skills/ and /paperclip/ */
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
}

/* ============================================================
   Involvement axis — a hairline with three markers and two
   end labels. Decorative: hidden below 900px.
   ============================================================ */

.axis {
  position: relative;
  height: 56px;
  margin-bottom: 0.5rem;
}

.axis::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 27px;
  height: 1px;
  background: var(--line);
}

.axis .mark {
  position: absolute;
  top: 22px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--teal);
  transform: translateX(-50%);
}

.axis .mark.b { background: var(--teal); }

/* Labels sit on the page background so they interrupt the line */
.axis .end {
  position: absolute;
  top: 0;
  font-family: var(--f-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg);
  padding-inline: 0.5rem;
}

.axis .end.l { left: 0; padding-left: 0; }
.axis .end.r { right: 0; padding-right: 0; }

.panel .axis .mark,
.panel .axis .end { background: var(--bg-elevated); }

.panel .axis .mark.b { background: var(--teal); }

@media (max-width: 900px) {
  .axis { display: none; }
}

/* ============================================================
   Three equal columns.
   All three read the same width: :first-child drops only the
   border, never the padding.
   ============================================================ */

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

.col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem clamp(16px, 2.5vw, 40px) 0;
  border-left: 1px solid var(--line);
}

.col:first-child { border-left: 0; }

.col .n {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--ink-3);
}

.col p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

.col small {
  font-size: 0.86rem;
  color: var(--ink-3);
  line-height: 1.5;
}

.col small b {
  color: var(--ink);
  font-weight: 500;
}

.col .textlink {
  margin-top: auto;
  padding-top: 0.5rem;
  align-self: flex-start;
}

/* Row that follows a .cols block */
.after {
  margin-top: var(--space-content);
  justify-content: center;
  text-align: center;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.dark .cols .col,
.dark-section .cols .col {
  border-left-color: rgba(255,255,255,0.12);
}

.dark .col p,
.dark-section .col p { color: rgba(255,255,255,0.65); }

.dark .col small,
.dark-section .col small { color: rgba(255,255,255,0.5); }

.dark .col small b,
.dark-section .col small b { color: #ffffff; }

.dark .col .n,
.dark-section .col .n { color: rgba(255,255,255,0.45); }

@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; gap: 2.5rem; }
  .col {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.5rem 0 0;
  }
  .col:first-child { border-top: 0; padding-top: 0; }
  .dark .col,
  .dark-section .col { border-top-color: rgba(255,255,255,0.12); }
}

/* ============================================================
   Media placeholders — deliberate, not broken. Diagonal hatch,
   dashed teal edge, a small label and a caption describing the
   shot that belongs there.
   ============================================================ */

.photo-ph,
.video-ph {
  aspect-ratio: 4/5;
  border-radius: 4px;
  border: 1px dashed var(--teal-bdr);
  background: repeating-linear-gradient(135deg, #EAEFEE 0 10px, #F2F5F4 10px 20px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.2rem;
  font-family: var(--f-display);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.photo-ph--wide,
.video-ph { aspect-ratio: 4/3; }

.photo-ph b,
.video-ph b {
  display: block;
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

/* Dark-band variant */
.dark .photo-ph,
.dark .video-ph,
.dark-section .photo-ph,
.dark-section .video-ph {
  background: repeating-linear-gradient(135deg, #2B342D 0 10px, #252D28 10px 20px);
  border-color: rgba(0,201,167,0.4);
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
}

.dark .photo-ph b,
.dark .video-ph b,
.dark-section .photo-ph b,
.dark-section .video-ph b { color: var(--teal-dot); }

/* Small "to confirm" marker for unfinished content */
.todo {
  font-family: var(--f-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.dark .todo,
.dark-section .todo { color: var(--teal-dot); }

/* ============================================================
   Calculator card + dark result panel
   ============================================================ */

.calc-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem clamp(24px, 4vw, 56px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--f-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.field label output {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.field input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin: 0;
}

.field input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px var(--teal);
}

.field input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid #ffffff;
}

.calc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Dark result panel */
.result {
  background: var(--dark);
  color: #ffffff;
  border-radius: 4px;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* A row with a dotted leader between label and value */
.result .li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
}

.result .li span { order: 1; }

.result .li::after {
  content: '';
  flex: 1;
  order: 2;
  border-bottom: 1px dotted rgba(255,255,255,0.25);
  transform: translateY(-0.3em);
}

.result .li b {
  order: 3;
  color: #ffffff;
  font-weight: 500;
  font-family: var(--f-display);
  font-variant-numeric: tabular-nums;
}

.result .total {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.4rem;
  margin-top: 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.result .total .lbl {
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.result .total .num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 7.5vw, 5.6rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--teal-dot);
  font-variant-numeric: tabular-nums;
}

.result .total .num small {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.34em;
  letter-spacing: 0;
  color: rgba(255,255,255,0.7);
  margin-left: 0.3em;
}

.result .total .fit {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.4rem;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.result .total .fit::before {
  content: '→';
  color: var(--teal-dot);
}

/* A negative result is never coloured green, and colour is never
   the only signal — the wording changes with it. */
.result.neg .total .num { color: #ffffff; }

/* Disclaimer directly under the card */
.calc-card + .note { margin-top: 1.5rem; }

@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Full calculator page (/ai-time-savings-calculator/)
   Reuses .field, .result, .li and .total from the homepage's compact
   calculator above. Everything here is the richer content that only
   belongs on the page: the form/result two-column layout, typed money
   fields, inline errors, the offer sidebar, copy and email.
   ============================================================ */

/* A short hero: the tool itself should sit close to the top. */
.calc-hero { padding-block: var(--space-intro) var(--space-content); }

.calc-full {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.calc-form-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.calc-form-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

/* This is a component title inside the calculator card, not a new page
   section. Keep it clearly below the shared section-heading scale. */
.calc-form-head h2 { font-size: clamp(1.8rem, 2.5vw, 2.25rem); }

.calc-note-box {
  background: var(--teal-bg);
  border: 1px solid var(--teal-bdr);
  border-radius: 4px;
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  color: var(--teal-deep);
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* The number input paired with each slider. Unlike the slider, it accepts
   values outside min/max: a 300-minute task is legitimate and the tool
   must never silently clamp it away. */
.calc-num {
  font-family: var(--f-display);
  font-size: 0.95rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.55rem 0.7rem;
  background: var(--bg);
  width: 100%;
}

.calc-num:focus { border-color: var(--teal); outline: 2px solid var(--teal-bg); }

/* The one select on this page (currency) rode on unstyled UA chrome
   before; give it the same box as every .calc-num input plus its own
   chevron, since appearance:none drops the native arrow entirely. */
select.calc-num {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2363716C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  cursor: pointer;
}

.field input[aria-invalid="true"],
.calc-num[aria-invalid="true"] { border-color: #B3452F; }

.field-error {
  font-size: 0.8rem;
  color: #B3452F;
}

.radio-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-size: 0.92rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink-2);
  cursor: pointer;
}

fieldset.field { border: none; padding: 0; margin: 0; }
fieldset.field legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-family: var(--f-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.calc-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-2);
  cursor: pointer;
}

.calc-check input { margin-top: 0.2rem; }

.calc-money-fields {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

/* The result column tracks the form on desktop so the number stays
   visible while the reader adjusts sliders further down the page. */
.calc-result-panel {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.result .total { text-align: left; }

.result-headline {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-top: 0.6rem;
}

.result-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.3rem;
}

.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.2rem;
}

.result-money {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.2rem;
}

.result-caveat {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.3rem;
}

.result-details {
  margin-top: 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px dotted rgba(255,255,255,0.2);
}

.result-details summary {
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal-dot);
  cursor: pointer;
}

.result-details[open] summary { margin-bottom: 0.8rem; }

/* Deliberately not led with: the ROI number sits inside the disclosure,
   not the headline. */
.result-roi {
  font-family: var(--f-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.3rem 0 0.8rem;
}

.result .btn {
  margin-top: 0.6rem;
  align-self: flex-start;
}

.copy-status {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  min-height: 1.2em;
}

.copy-fallback {
  width: 100%;
  font-family: var(--f-body);
  font-size: 0.85rem;
  padding: 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #ffffff;
  resize: vertical;
}

.calc-next {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.calc-offers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calc-offers li {
  padding: 0.85rem 1rem;
  border-radius: 4px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.calc-offers li small { color: var(--ink-3); font-size: 0.8rem; }

/* The one that fits the current number, marked by structure (a border
   and a fill), never by colour alone. */
.calc-offers li.is-fit {
  background: var(--teal-bg);
  border-color: var(--teal-bdr);
}

.calc-check-note {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.calc-check-note h3 { font-size: 0.98rem; margin-bottom: 0.4rem; }
.calc-check-note p { font-size: 0.88rem; color: var(--ink-2); }

.calc-email-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.calc-email-form input[type="email"] {
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
}

.calc-email-form input:focus { border-color: var(--teal); outline: 2px solid var(--teal-bg); }
.calc-email-form .copy-status { color: var(--ink-3); }

.author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.author-box img {
  border-radius: 100px;
  flex-shrink: 0;
}

.author-box strong {
  display: block;
  font-family: var(--f-display);
  margin-bottom: 0.4rem;
}

.author-box p { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 0.5rem; }

.formula-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-2);
  margin: 1rem 0;
}

.formula-list li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 0.6rem;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .calc-full { grid-template-columns: 1fr; }
  .calc-result-panel { position: static; }
}

/* ============================================================
   Final CTA band + reusable booking block
   ============================================================ */

.final {
  text-align: center;
  overflow: hidden;
}

.final > .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.head h2,
.final h2,
.news h2,
.offer-block > h2,
.faq-section > h2 { font-size: var(--fs-section-title); }

.final .lead { text-align: center; }

.final .actions { justify-content: center; }

/* Wrapper for the booking widget reused at the end of each page */
.booking-block {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  text-align: left;
}

.booking-block .calendly-inline-widget {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

/* ============================================================
   Dark band — generic, token-driven
   ============================================================ */

.dark {
  background: var(--dark);
  color: #ffffff;
}

.dark h1, .dark h2, .dark h3 { color: #ffffff; }

/* Serif italic accents on a dark band carry the bright teal instead
   of a highlighter bar (same rule as light mode, inverted). */
.dark h1 i, .dark h2 i, .dark h3 i { color: var(--teal-dot); }

.dark .eyebrow,
.dark .section-label { color: rgba(255,255,255,0.5); }

.dark .eyebrow::before,
.dark .section-label::before { background: var(--teal-dot); }

.dark .lead { color: rgba(255,255,255,0.7); }

.dark .note { color: rgba(255,255,255,0.55); }

.dark .trust { color: rgba(255,255,255,0.6); }

.dark .trust span::before { background: var(--teal-dot); }

.dark .copy { color: rgba(255,255,255,0.7); }

.dark .copy strong { color: #ffffff; }

/* ------------------------------------------------------------
   Case columns — a `.cols` variant for the "how I work with
   clients" band: photo, tag, stat, headline, copy, quote.
   Widths, dividers and mobile stacking all come from .cols/.col.
   ------------------------------------------------------------ */

.cols.cases { margin-top: clamp(40px, 5vw, 64px); }

.cases .col { gap: 1.1rem; }

/* The photo is the top of the column, so drop `.col`'s own top
   padding on desktop. Mobile keeps it: there the rule is a border-top. */
@media (min-width: 901px) {
  .cases .col { padding-top: 0; }
}

.cases .case-tag {
  font-family: var(--f-display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.dark .cases .case-tag { color: var(--teal-dot); }

/* Element selector included on purpose: the stat is a <p>, so it has to
   outrank `.cases .col p` below, which would otherwise shrink it to body size. */
.cases .col p.stat {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-top: 0.4rem;
}

.cases .col p.stat i {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--teal);
}

.dark .cases .col p.stat i { color: var(--teal-dot); }

.cases .col h3 { font-size: 1.15rem; }

.cases .col p { font-size: 0.95rem; }

.cases blockquote {
  margin-top: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dark .cases blockquote { border-top-color: rgba(255,255,255,0.12); }

/* Two classes deep on purpose: it has to outrank `.cases .col p` */
.cases .col blockquote p {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--ink);
}

.dark .cases .col blockquote p { color: #ffffff; }

.cases blockquote footer {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.dark .cases blockquote footer { color: rgba(255,255,255,0.5); }

.cases blockquote footer b {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--ink);
}

.dark .cases blockquote footer b { color: #ffffff; }

/* ------------------------------------------------------------
   Newsletter band — centered invitation with a readable measure
   ------------------------------------------------------------ */

.news {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}

.news .stack { align-items: center; }
.news .eyebrow, .news .actions { justify-content: center; }
.news .lead { font-size: var(--fs-section-lead); }

@media (max-width: 900px) {
  .news { grid-template-columns: 1fr; }
}

/* ============================================================
   Homepage — Services section
   ============================================================ */

.services-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 4rem;
}

.services-list { margin-top: 3rem; }

.service-row {
  display: grid;
  grid-template-columns: 3fr 1fr;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s;
  cursor: default;
}

.service-row:first-child { border-top: 1px solid var(--line); }

.service-row:hover { padding-left: 1.5rem; }

.service-name {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.service-name i {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 580px;
}

.service-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.price-note {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 700;
}

@media (max-width: 900px) {
  .services-section { padding: 4rem 1.5rem; }

  .service-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-meta { align-items: flex-start; }
}

/* ============================================================
   Homepage — About section
   ============================================================ */

.about-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 4rem;
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about-body .section-headline {
  margin-bottom: 2.5rem;
}

.about-body p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.stats-list { margin-top: 0; }

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.stat-row:first-child { border-top: 1px solid var(--line); }

.stat-value {
  font-family: var(--f-display);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}

.stat-value sup {
  font-size: 1.5rem;
  color: var(--teal);
  vertical-align: super;
}

.stat-label {
  font-family: var(--f-display);
  font-size: 0.9rem;
  color: var(--ink-2);
}

.about-photo {
  width: 100%;
  margin-top: 2.5rem;
  border-radius: 4px;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.stats-row .stat-row {
  border-top: none;
  border-bottom: none;
  padding: 0;
}

@media (max-width: 900px) {
  .about-section { padding: 4rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stats-row { grid-template-columns: 1fr; gap: 0; margin-top: 0; padding-top: 0; border-top: none; }
  .about-grid { gap: 1.5rem; }
  .about-photo { margin-top: 0; }
  .stats-row .stat-row { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
  .stats-row .stat-row:first-child { border-top: 1px solid var(--line); }
}

/* ============================================================
   Homepage — Approach section
   ============================================================ */

.approach-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 4rem;
  border-top: 1px solid var(--line);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3rem;
}

.approach-step {
  padding: 0 2.5rem;
  border-right: 1px solid var(--line);
}

.approach-step:last-child {
  border-right: none;
}

.step-num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 3rem;
  color: var(--ink-3);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.step-title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .approach-section { padding: 4rem 1.5rem; }
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .approach-step {
    border-right: none;
    padding-right: 0;
    padding-left: 0 !important;
    border-bottom: 1px solid var(--line);
    padding-bottom: 2rem;
  }
  .approach-step:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  .approach-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Homepage — Newsletter strip
   ============================================================ */

.newsletter-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5rem 4rem;
}

.newsletter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.newsletter-headline {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 1rem;
}

.newsletter-headline i {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--teal);
}

.newsletter-sub {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.65;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-input-row {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  font-family: var(--f-display);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input:focus { border-color: var(--teal); }

.newsletter-btn {
  font-family: var(--f-display);
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--teal);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.newsletter-btn:hover { background: var(--teal-deep); }

.newsletter-note {
  font-size: 0.75rem;
  color: var(--ink-3);
}

.newsletter-success {
  display: none;
  font-size: 0.9rem;
  color: var(--teal-deep);
  font-weight: 500;
}

@media (max-width: 900px) {
  .newsletter-section { padding: 4rem 1.5rem; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 600px) {
  .newsletter-input-row { flex-direction: column; }
}

/* ============================================================
   Homepage — CTA section
   ============================================================ */

.cta-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 9rem 4rem;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.cta-section h2 i {
  font-family: var(--f-serif);
  font-style: italic;
}

.cta-section p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .cta-section { padding: 5rem 1.5rem; }
}

/* ============================================================
   Services page
   ============================================================ */

.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 4rem 4rem;
}

.page-header h1 {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.93;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.page-header .intro {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 560px;
}

.offers-section {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--sp);
}

.offer-block {
  padding: var(--sp) 0;
  border-bottom: 1px solid var(--line);
}

.offer-block:first-child { border-top: 1px solid var(--line); }
.offer-block > h2 { text-align: center; max-width: 48rem; margin-inline: auto; }

.offer-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.offer-title {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.offer-price {
  font-family: var(--f-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal);
}

.offer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--gap);
  margin-top: var(--space-content);
}

.offer-desc {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.offer-answer {
  background: var(--bg-elevated);
  border-left: 3px solid var(--teal);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.65;
}

.offer-includes h4,
.offer-includes h3 {
  font-family: var(--f-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.75rem;
}

.offer-includes li {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.6;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.offer-includes li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  transform: translateY(-0.3em);
}

.offer-includes li:last-child { border-bottom: none; }

.offer-who {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.offer-who h4,
.offer-who h3 {
  font-family: var(--f-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}

.offer-who p {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .page-header { padding: 4rem 1.5rem 2rem; }
  .offer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   FAQ section
   ============================================================ */

.faq-section {
  max-width: var(--w);
  margin: 0 auto;
  padding: var(--sp) var(--gutter);
}

.faq-section > h2 {
  text-align: center;
  margin-bottom: var(--space-content);
}

.faq-category {
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.faq-category-label {
  font-family: var(--f-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}

details[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 1.25rem;
}

.faq-direct {
  background: var(--bg-elevated);
  border-left: 3px solid var(--teal);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.65;
}

.faq-body {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.7;
}

.faq-cta {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2.5rem 3rem;
  margin: 3rem auto 0;
  text-align: center;
  max-width: 820px;
}

.faq-cta p {
  font-size: 1rem;
  color: var(--ink-2);
  margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
  .faq-section { padding: var(--sp) var(--gutter); }
  .faq-cta { padding: 2rem 1.5rem; }
}

/* ============================================================
   About page
   ============================================================ */

.about-page-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: start;
}

.about-page-body p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.about-closing {
  font-style: italic;
  font-family: var(--f-serif);
  font-size: 1.05rem;
  color: var(--ink-2);
  margin-bottom: 2rem !important;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: repeating-linear-gradient(135deg, #EAEFEE 0 10px, #F2F5F4 10px 20px);
  border: 1px dashed var(--teal-bdr);
  border-radius: 4px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  display: block;
}

.about-page-grid .stats-list { margin-top: 2rem; }

.callout-feature {
  border-left: 3px solid var(--teal);
  padding: 1.25rem 1.5rem;
  background: var(--teal-bg);
  margin: 2rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.65;
}
.callout-feature i {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
}

.about-stats {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem 6rem;
}

.about-author-card {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem 4rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--ink-3);
  line-height: 1.7;
}

.about-author-card a {
  color: var(--ink-3);
  text-decoration: underline;
  transition: color 0.2s;
}
.about-author-card a:hover { color: var(--ink); }

.writing-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 4rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .about-page-grid { grid-template-columns: 1fr; padding: 4rem 1.5rem; gap: 3rem; }
  .photo-placeholder { aspect-ratio: 4/3; }
  .about-stats { padding: 0 1.5rem 4rem; }
  .about-author-card { padding: 1.5rem 1.5rem 3rem; }
  .writing-section { padding: 4rem 1.5rem; }
}

/* ============================================================
   Blog page
   ============================================================ */

.blog-hero {
  padding: var(--space-intro) var(--gutter) var(--space-content);
  max-width: var(--w);
  margin: 0 auto;
  text-align: center;
}

.blog-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 1rem;
}

.blog-hero h1 i {
  font-family: var(--f-serif);
  font-style: italic;
}

.blog-hero p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 0 var(--gutter);
  max-width: var(--w);
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.filter-tag {
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-bg);
  border: 1px solid var(--teal-bdr);
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tag.active,
.filter-tag:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.blog-grid {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.blog-post:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--teal-glow);
}

.blog-post.hidden { display: none; }
.blog-post[data-hidden="true"] { display: none; }

.blog-post-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--bg-elevated);
}

.blog-post-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.blog-post h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.blog-post-subtitle {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.see-more-container {
  text-align: center;
  padding: var(--space-content) var(--gutter) 0;
}

.see-more-btn {
  display: inline-block;
  background: var(--teal-bg);
  color: var(--teal-deep);
  border: 1px solid var(--teal-bdr);
  border-radius: 100px;
  padding: 0.6rem 1.5rem;
  font-family: var(--f-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.see-more-btn:hover:not(:disabled) {
  background: var(--stroke);
}

.see-more-btn:disabled {
  cursor: default;
  opacity: 0.5;
}

.blog-subscribe {
  text-align: center;
  padding: var(--sp) var(--gutter);
  border-top: 0;
  margin-top: 0;
  max-width: var(--w);
  margin-left: auto;
  margin-right: auto;
}

.blog-subscribe p {
  font-size: 0.95rem;
  color: var(--ink-2);
  margin-bottom: 0.75rem;
}

@media (min-width: 600px) and (max-width: 899px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 599px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Blog post (individual)
   ============================================================ */

.post-title-hero {
  padding: var(--space-intro) var(--gutter) var(--space-content);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.post-title-hero header {
  max-width: 920px;
  margin: 0 auto;
}

.post-title-hero h1 {
  max-width: 920px;
  margin: 0 auto 1.5rem;
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--ink);
  text-wrap: balance;
}

.post-title-hero h1 i {
  font-family: var(--f-serif);
  font-weight: 400;
  font-style: italic;
}

/* Article title accents can be much longer than the short phrases used in
   page heroes. Let them wrap on narrow screens while keeping the marker
   stroke behind every rendered line. */
.post-title-hero .teal-highlight {
  position: static;
  display: inline;
  padding-inline: 0.04em;
  background: linear-gradient(
    to bottom,
    transparent 58%,
    var(--stroke) 58%,
    var(--stroke) 94%,
    transparent 94%
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.post-title-hero .teal-highlight::after {
  display: none;
}

.post-title-hero .post-subtitle {
  max-width: 680px;
  margin: 0 auto 1.125rem;
  text-wrap: balance;
}

.post-title-hero .post-meta {
  justify-content: center;
}

.post-title-hero .post-byline {
  margin-bottom: 1.75rem;
}

.post-title-hero .tldr {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.post-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: block;
}

.post-content h1 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.post-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.4;
  margin: 0 0 1rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}

.post-byline {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-bottom: 2rem;
}

.tldr {
  border-left: 3px solid var(--teal);
  padding: 1rem 1.5rem;
  background: var(--teal-bg);
  margin: 2rem 0;
  color: var(--ink-2);
  font-family: var(--f-display);
  font-size: 0.95rem;
  line-height: 1.7;
}

.tldr::before {
  content: 'TL;DR';
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.post-body p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.post-body h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-body h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.post-body ul li {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 0.4rem;
}

.post-body ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.post-body ol li {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 0.4rem;
}

.post-body strong {
  font-weight: 700;
  color: var(--ink);
}

.post-body a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-decoration-color: var(--teal-bdr);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.post-body a:hover {
  color: var(--teal);
}

.post-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 1.75rem 0;
}

.post-image-caption {
  font-size: 0.78rem;
  color: var(--ink-3);
  text-align: center;
  margin-top: -1.25rem;
  margin-bottom: 1.75rem;
}

.post-body pre {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.125rem 3.25rem 1.125rem 1.25rem;
  margin: 1.5rem 0;
  overflow: visible;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-body pre code {
  font: inherit;
  color: inherit;
  white-space: inherit;
  overflow-wrap: inherit;
  word-break: inherit;
}

.article-code-copy {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,0.9);
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.article-code-copy svg {
  width: 14px;
  height: 14px;
}

.article-code-copy:hover,
.article-code-copy:focus-visible,
.article-code-copy.is-copied {
  color: var(--teal-deep);
  border-color: var(--teal-bdr);
  background: var(--teal-bg);
}

.post-table {
  width: 100%;
  max-width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.post-table th,
.post-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border: 1px solid var(--line);
  vertical-align: top;
}
.post-table th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--ink);
}
.post-table td {
  color: var(--ink-2);
}

.post-footer {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-top: 3rem;
}

.post-footer p {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-bottom: 0.75rem;
}

.post-footer .btn-ghost {
  color: var(--teal);
}

.post-signature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-top: 1.5rem;
}

.post-signature-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Share buttons — floating sidebar (desktop) */
.share-sidebar {
  position: fixed;
  left: calc((100vw - 720px) / 2 - 70px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.share-btn svg {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  transition: color 0.2s;
}
.share-btn:hover {
  border-color: var(--teal);
  background: var(--teal);
}
.share-btn:hover svg {
  color: #fff;
}

/* Share buttons — bottom row */
.share-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 0;
  border-top: 0;
}

.share-bottom-label {
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
}

.share-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--f-display);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.share-pill svg {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
  transition: color 0.2s;
}
.share-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.share-pill:hover svg {
  color: var(--teal);
}

@media (max-width: 1100px) {
  .share-sidebar { display: none; }
}

@media (max-width: 600px) {
  .share-pill { padding: 5px 10px; font-size: 0.7rem; }
  .share-pill svg { width: 12px; height: 12px; }
}

/* Read more slider */
.read-more {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.read-more-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.read-more-label {
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.read-more-arrows {
  display: flex;
  gap: 0.5rem;
}

.read-more-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.read-more-arrow:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.read-more-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.read-more-track-wrap {
  overflow: hidden;
}

.read-more-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.35s ease;
}

.read-more-card {
  text-decoration: none;
  color: inherit;
  flex: 0 0 calc(33.333% - 0.85rem);
  min-width: 0;
}

.read-more-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin-bottom: 0.6rem;
}

.read-more-card .tag {
  margin-bottom: 0.4rem;
  display: inline-block;
}

.read-more-card h4 {
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.read-more-card:hover h4 {
  color: var(--teal-deep);
}

@media (max-width: 640px) {
  .read-more-card { flex: 0 0 75%; }
}

/* ============================================================
   Resources page
   ============================================================ */

.resources-hero {
  padding: 8rem 3rem 6rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.resources-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.93;
  color: var(--ink);
  margin-bottom: 1rem;
}

.resources-hero h1 i {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--teal);
}

.resources-hero p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

.courses-grid {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.course-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.course-card[data-modal] { cursor: pointer; }

.course-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--teal-glow);
}

.course-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--bg-elevated);
}

.course-image-placeholder {
  width: 100%;
  height: 210px;
  background: var(--bg-elevated);
}

.course-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.course-card h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.course-subtitle {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.price-badge {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal);
}

.course-action {
  color: var(--teal);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.course-action:hover { opacity: 0.8; }

.resources-container {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.resource-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.resource-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--teal-glow);
}

.resource-card h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}

.resource-card p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.7;
}

.resource-card--image {
  flex-direction: row;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.resource-card--image .resource-card-img {
  width: 300px;
  min-width: 300px;
  object-fit: cover;
  display: block;
}

.resource-card--image .resource-card-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

@media (max-width: 768px) {
  .resource-card--image {
    flex-direction: column;
    padding: 0;
  }
  .resource-card--image .resource-card-img {
    width: 100%;
    min-width: unset;
    height: 210px;
    order: -1;
    border-radius: 4px 4px 0 0;
  }
  .resource-card--image .resource-card-body {
    padding: 2rem;
    gap: 1rem;
  }
  .resource-card--image h2 {
    font-size: 1.25rem;
  }
}

.resource-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.resource-duration {
  font-family: var(--f-display);
  font-size: 0.85rem;
  color: var(--ink-3);
}

.resource-action {
  color: var(--teal);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.resource-action:hover { opacity: 0.8; }

.resources-cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 3rem 5rem;
  text-align: center;
}

.resources-cta p {
  font-size: 1rem;
  color: var(--ink-2);
  margin-bottom: 0.75rem;
}

@media (max-width: 899px) {
  .courses-grid { grid-template-columns: 1fr; padding: 0 1.5rem; margin-bottom: 2rem; }
  .resources-container { padding: 0 1.5rem; }
  .resources-hero { padding: 5rem 1.5rem 3rem; }
  .resource-card:not(.resource-card--image) { padding: 2rem; }
  .resources-cta { padding: 2rem 1.5rem 4rem; }
}

/* ============================================================
   Work with me page
   ============================================================ */

.booking-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 4rem;
}

.booking-page h1 {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.93;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.booking-page .sub {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 3rem;
}

.booking-expect {
  margin-bottom: 3rem;
}

.booking-expect h2 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.booking-direct {
  background: var(--bg-elevated);
  border-left: 3px solid var(--teal);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.65;
}

.booking-list li {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.6;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.booking-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  transform: translateY(-0.3em);
}

.booking-list li:last-child { border-bottom: none; }

.booking-pick-time {
  margin: 3rem 0 0.5rem;
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.calendly-inline-widget {
  width: 100%;
}

.calendly-inline-widget iframe {
  background: var(--bg) !important;
  width: 100% !important;
  height: 1000px !important;
}

.booking-email {
  margin-top: 3rem;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--teal-bdr);
  border-left: 4px solid var(--teal);
  background: var(--teal-bg);
  border-radius: 4px;
  font-size: 1rem;
  color: var(--ink-2);
}

.booking-email .eyebrow { margin-bottom: 0.8rem; }
.booking-email h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.8rem; }
.booking-email > p:not(.eyebrow):not(.note) { max-width: 38rem; line-height: 1.65; margin-bottom: 1.4rem; }
.booking-email .note { margin-top: 1rem; }
.booking-email .btn { width: fit-content; }

.calculation-details {
  max-width: 760px;
  margin: 0 auto;
  border-block: 1px solid var(--line);
}

.calculation-details summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.calculation-details summary::-webkit-details-marker { display: none; }
.calculation-details summary::after {
  content: '↓';
  flex-shrink: 0;
  font-family: var(--f-body);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--teal-deep);
  transition: transform 0.2s;
}
.calculation-details[open] summary::after { transform: rotate(180deg); }
.calculation-details-body { padding: 0 0 var(--space-content); }

@media (max-width: 900px) {
  .booking-page { padding: 4rem 1.5rem; }
}

/* ============================================================
   Legal pages
   ============================================================ */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 1.5rem 5rem;
}

.legal-page h1 {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page p, .legal-page li {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-page ul { padding-left: 1.5rem; list-style: disc; }
.legal-page a { color: var(--ink); text-decoration: underline; }

/* ============================================================
   Cookie banner
   ============================================================ */

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  width: 332px;
  max-width: calc(100vw - 32px);
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--teal-bdr);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 24px 48px -16px rgba(37, 40, 32, 0.22);
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-banner__title {
  margin: 0 0 4px;
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cookie-banner__body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 0.84rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.cookie-banner__body a {
  color: var(--teal-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s;
}

.cookie-banner__body a:hover { color: var(--ink); }

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-actions button {
  flex: 1;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.cookie-accept {
  background: var(--teal-deep);
  color: #fff;
  border: 1px solid var(--teal-deep);
}

.cookie-accept:hover { opacity: 0.8; }

.cookie-decline {
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
}

.cookie-decline:hover { color: var(--ink); border-color: var(--ink-3); }

.cookie-banner.hidden,
.cookie-banner[hidden] { display: none; }

@media (max-width: 480px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
  }
}

/* ============================================================
   Email capture modal
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(37, 40, 32, 0.7);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay[hidden] { display: none; }

.modal-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-3);
  font-family: var(--f-display);
  transition: color 0.2s;
}

.modal-close:hover { color: var(--ink); }

.modal-box h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.modal-box p {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: -0.25rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink-3);
  text-align: left;
  cursor: pointer;
}

.modal-consent input {
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.modal-email-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.modal-email-input:focus { border-color: var(--teal); }

.modal-email-input::placeholder { color: var(--ink-3); }

.modal-submit-btn {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 100px;
  padding: 0.75rem 1.75rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
}

.modal-submit-btn:hover { background: var(--teal); border-color: var(--teal); }
.modal-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.modal-success {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.modal-success p {
  color: var(--teal);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .modal-box { padding: 2rem 1.5rem; }
}

/* Shared editorial resource and conversion patterns. */
.resource-rows { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.resource-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 1.5rem; gap: clamp(16px, 3vw, 40px); align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.resource-row h2, .resource-row h3 { font-family: var(--f-display); font-size: clamp(1.15rem, 2vw, 1.55rem); margin: 4px 0 10px; }
.resource-row p { color: var(--ink-2); max-width: 44rem; margin: 0; }
.resource-row small { color: var(--ink-3); }
.resource-row .n { font-family: var(--f-serif); font-size: 2rem; color: var(--ink-3); }
.resource-row:hover h2, .resource-row:hover h3 { color: var(--teal-deep); }
.resource-row:focus-visible, .btn:focus-visible, .btn-main:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 5px; }
.cases--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dark .textlink { color: var(--teal-dot); }
.about-photo { margin: 0; }
.about-photo img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 4px; }
.article-start { padding-block: var(--sp); }
.article-help { border-block: 1px solid var(--line); padding: 36px 0; margin: 48px 0 32px; }
.article-help h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 12px 0; }
.article-help p { margin-bottom: 20px; }
.calc-value-fields { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; display: grid; gap: 20px; }
.calc-value-fields h3 { font-size: 1.3rem; }
.calc-value-fields .note { margin: 0; }
.calc-result-panel .result.is-invalid .result-breakdown { display: none; }
button:disabled { cursor: not-allowed; opacity: .6; }
[id] { scroll-margin-top: 100px; }
@media (max-width: 640px) {
  .cases--two { grid-template-columns: 1fr; }
  .resource-row { grid-template-columns: 2rem minmax(0, 1fr) 1rem; gap: 12px; }
  [id] { scroll-margin-top: 80px; }
}

/* ============================================================
   404 — shared fallback for brisk.vision and free.brisk.vision
   ============================================================ */

body.error-404 {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--dark);
  color: #fff;
}

.error-shell {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  min-height: 100svh;
  padding: clamp(24px, 3.4vw, 52px) var(--gutter) clamp(28px, 3.4vw, 48px);
  overflow: hidden;
}

.error-shell::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(203, 233, 225, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 233, 225, 0.055) 1px, transparent 1px);
  background-size: clamp(52px, 5vw, 76px) clamp(52px, 5vw, 76px);
}

.error-shell::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 50%;
  width: 1px;
  background: rgba(203, 233, 225, 0.12);
}

.error-top,
.error-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 24px;
}

.error-logo {
  display: inline-flex;
  width: clamp(88px, 7.8vw, 100px);
}

.error-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.error-status,
.error-kicker {
  margin: 0;
  font-family: var(--f-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.error-status { color: rgba(255, 255, 255, 0.55); }
.error-kicker { color: var(--teal-dot); }

.error-main {
  align-self: center;
  width: min(100%, 1320px);
  margin-inline: auto;
  padding-block: clamp(52px, 7vh, 96px);
}

.error-title {
  position: relative;
  min-height: clamp(300px, 46vw, 560px);
  margin: 0;
  color: #fff;
  font-family: var(--f-display);
  font-size: clamp(7rem, 16.8vw, 15.5rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.76;
  text-wrap: nowrap;
}

.error-title .page-word,
.error-title .missing-word {
  position: absolute;
  white-space: nowrap;
}

.error-title .page-word {
  top: 0;
  left: 0;
}

.error-title .missing-word {
  top: 43%;
  left: 27%;
  color: var(--stroke);
  font-family: var(--f-serif);
  font-size: 0.94em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.error-message h1 {
  margin: 8px 0 4px;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.04em;
}

.error-message p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
}

.error-home {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--teal-bdr);
  border-radius: 999px;
  background: var(--teal-bg);
  color: var(--dark);
  font-family: var(--f-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.error-home:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* Keep the recovery action available before a first-time visitor has
   answered the global consent prompt. The upper-right area is deliberately
   empty in the desktop composition. */
@media (min-width: 701px) {
  body.error-404 .cookie-banner {
    top: clamp(88px, 10vh, 120px);
    bottom: auto;
  }
}

@media (max-width: 700px) {
  .error-shell {
    grid-template-rows: auto 1fr;
    min-height: 100svh;
    padding: 22px 20px 24px;
  }

  .error-shell::after { display: none; }
  .error-top { align-items: flex-start; }
  .error-logo { width: 88px; }

  .error-status {
    max-width: 10em;
    text-align: right;
    font-size: 0.62rem;
    line-height: 1.35;
  }

  .error-main {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: clamp(68px, 9vh, 84px) 0 0;
  }

  .error-title {
    align-self: center;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 0;
    font-size: clamp(4.35rem, 21vw, 5.7rem);
    line-height: 0.76;
  }

  .error-title .page-word,
  .error-title .missing-word {
    position: static;
    display: block;
    width: 100%;
  }

  .error-title .missing-word {
    position: relative;
    top: auto;
    left: 45%;
    width: 55%;
    margin-top: 0.15em;
    text-align: left;
    font-size: 0.68em;
  }

  .error-bottom {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 24px;
    margin-top: clamp(68px, 9vh, 84px);
    padding-top: 0;
  }

  .error-message h1 {
    max-width: 12em;
    font-size: 1.45rem;
  }

  .error-home { width: 100%; }
}

@media (max-width: 370px) {
  .error-title { font-size: clamp(4rem, 20.5vw, 4.65rem); }
}

@media (prefers-reduced-motion: reduce) {
  .error-home { transition: none; }
}
