/* Isaac Fang, CFA - "The Working Paper". Tokens are the single place colours live. */
/* Self-hosted latin subsets (Spectral, Hanken Grotesk; SIL OFL). font-display: optional + preload = no layout shift. */
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 500; font-display: optional; src: url('/assets/fonts/spectral-500-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: optional; src: url('/assets/fonts/spectral-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: optional; src: url('/assets/fonts/spectral-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 600; font-display: optional; src: url('/assets/fonts/hanken-grotesk.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --color-primary: #145DA0;
  --color-primary-dark: #094987;
  --color-primary-tint: #E7EFF8;
  --color-ink: #141A2A;
  --color-muted: #4A5468;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F2F6FB;
  --color-stone: #F0EFED;
  --color-gold: #E8C060;
  --color-gold-ink: #7A5A12;
  --color-gold-mark: #B8902F;
  --color-line: #D9E2EE;
  --color-line-strong: #B9C8DB;
  --color-rule: rgba(20, 93, 160, 0.07);

  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --radius-art: 10px;
  --color-paper: #FBF8F1;
  --shadow-paper: 0 18px 40px -22px rgba(9, 73, 135, 0.35), 0 2px 6px -2px rgba(9, 73, 135, 0.08);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --wrap: 1180px;
  --wrap-narrow: 720px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--color-primary); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-primary-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--color-primary-dark); font-weight: 600; line-height: 1.12; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--color-muted); max-width: 62ch; line-height: 1.6; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--color-bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 10px 22px -12px rgba(9, 73, 135, 0.7); }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--color-line-strong); color: var(--color-primary-dark); }
.btn-outline:hover { border-color: var(--color-primary); background: var(--color-primary-tint); text-decoration: none; }
.btn-block { width: 100%; }
.i-wa { flex: none; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.text-link::after { content: "\2192"; transition: transform .2s var(--ease-out); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--color-line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(10px); } }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--color-primary-dark); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; margin: 0; }
.wordmark:hover { color: var(--color-primary-dark); text-decoration: none; }
.wm-comma { color: var(--color-primary-dark); }
.wm-cfa { color: var(--color-gold-mark); background: linear-gradient(var(--color-gold), var(--color-gold)) 0 100% / 100% 2px no-repeat; padding-bottom: 1px; }
.wordmark-sm { font-size: 1.25rem; margin-bottom: 12px; }

.site-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-list > li > a, .dd-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px;
  font: 500 0.98rem/1 var(--font-body); color: var(--color-ink); text-decoration: none;
  background: none; border: 0; cursor: pointer; border-radius: var(--radius);
}
.nav-list > li > a:hover, .dd-toggle:hover { color: var(--color-primary); background: var(--color-bg-alt); }
.nav-list a[aria-current="page"], .has-dd[data-current] > .dd-toggle { color: var(--color-primary-dark); box-shadow: inset 0 -2px 0 var(--color-gold); border-radius: 0; }
.has-dd { position: relative; }
.dd-toggle svg { transition: transform .2s var(--ease-out); }
.dd-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: calc(100% + 10px); left: -16px; width: 360px;
  background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius);
  box-shadow: var(--shadow-paper); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility 0s linear .18s;
}
.has-dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (min-width: 961px) {
  .has-dd:hover .dd-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .has-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
}
.dd-panel ul { list-style: none; margin: 0; padding: 0; }
.dd-panel li a { display: block; padding: 10px 12px; border-radius: 4px; text-decoration: none; }
.dd-panel li a:hover, .dd-panel li a[aria-current="page"] { background: var(--color-bg-alt); }
.dd-title { display: block; font-weight: 600; color: var(--color-primary-dark); }
.dd-desc { display: block; font-size: 0.9rem; color: var(--color-muted); line-height: 1.4; margin-top: 2px; }
.dd-all { display: block; margin: 4px 0 0; padding: 10px 12px; border-top: 1px solid var(--color-line); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.header-cta { min-height: 44px; padding: 10px 20px; font-size: 0.95rem; }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  /* backdrop-filter would make the header the containing block for the fixed drawer */
  .site-header { background: var(--color-bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header-inner { gap: 12px; }
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    min-height: 44px; padding: 8px 14px; border: 1px solid var(--color-line-strong); border-radius: 999px;
    background: var(--color-bg); font: 600 0.95rem/1 var(--font-body); color: var(--color-primary-dark); cursor: pointer;
  }
  .nt-bars, .nt-bars::before, .nt-bars::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s var(--ease-out), background-color .2s; }
  .nt-bars::before, .nt-bars::after { content: ""; position: absolute; left: 0; }
  .nt-bars::before { top: -5px; } .nt-bars::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] .nt-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nt-bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nt-bars::after { transform: translateY(-5px) rotate(-45deg); }
  .site-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; margin: 0;
    background: var(--color-bg); border-top: 1px solid var(--color-line);
    padding: 12px var(--gutter) 120px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s linear .2s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--color-line); }
  .nav-list > li > a, .dd-toggle { width: 100%; justify-content: space-between; min-height: 56px; font-size: 1.15rem; padding: 12px 4px; }
  .nav-list a[aria-current="page"], .has-dd[data-current] > .dd-toggle { box-shadow: none; color: var(--color-primary); }
  .dd-panel { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 12px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-dd.open .dd-panel { display: block; }
  .has-dd::after { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 96px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, transparent 0, transparent calc(100% - 1px), var(--color-line) 100%),
    repeating-linear-gradient(to bottom, transparent 0 31px, var(--color-rule) 31px 32px);
  mask-image: linear-gradient(to right, transparent 0%, #000 45%, #000 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 16ch; }

/* Home hero, "the park connector": the section IS the illustration's cream paper. The life-stages scene runs
   off the right edge (desktop) or sits as a full-bleed band under the header (phones) and dissolves into the
   paper with a mask, so the words and the picture share one surface instead of a box beside a column. */
.hero-scene { background: var(--color-paper); overflow: hidden; padding: clamp(48px, 5vw, 72px) 0 clamp(48px, 5vw, 64px); isolation: isolate; }
.hero-scene::before {
  background: repeating-linear-gradient(to bottom, transparent 0 31px, var(--color-rule) 31px 32px);
  mask-image: linear-gradient(to right, #000 0%, #000 34%, transparent 58%);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 34%, transparent 58%);
}
.hero-scene .hero-grid { grid-template-columns: minmax(0, 48%) minmax(0, 1fr); min-height: 440px; }
.hero-scene h1 { max-width: 21ch; font-size: clamp(2.3rem, 4.2vw, 3.15rem); }
.hero-scene .hero-art {
  position: absolute; top: 0; right: 0; bottom: 0; width: 54%; max-width: 980px; z-index: -1;
  border-radius: 0; box-shadow: none; outline: 0; background: transparent; overflow: visible;
  mask-image: linear-gradient(to right, transparent 0%, #000 20%, #000 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 20%, #000 100%);
}
.hero-scene .hero-art picture, .hero-scene .hero-art img { width: 100%; height: 100%; }
.hero-scene .hero-art img { object-fit: cover; object-position: 71% 58%; }
.hero-scene .kicker { position: relative; padding-top: 14px; }
.hero-scene .kicker::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 3px; background: var(--color-gold); border-radius: 2px; }
.hero-scene .lead { max-width: 30rem; }
.trust-band { background: var(--color-bg); border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.trust-band .trust-strip { margin: 0; padding: 16px 0; border-top: 0; }
.hero .lead { margin-top: 22px; color: var(--color-ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.hero-sub { font-size: 0.98rem; color: var(--color-muted); margin: 0; }
.hero-sub a { font-weight: 600; }
.kicker { font-weight: 600; font-size: 1rem; color: var(--color-primary); margin: 0 0 16px; letter-spacing: 0; }

/* "You will be speaking with" - a face next to the first call to action on every page. */
.speaker { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; font-size: 0.93rem; line-height: 1.4; color: var(--color-muted); }
.speaker img { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 4px 12px -4px rgba(9, 73, 135, 0.45); }
.speaker strong { color: var(--color-primary-dark); font-weight: 600; }
.speaker small { display: block; font-size: 0.85rem; color: var(--color-muted); }
.close-inner .speaker { justify-content: center; margin: 18px auto 0; text-align: left; max-width: 34rem; }
.close-inner .speaker span { font-size: 0.93rem; }

/* Illustrations and photos: one frame treatment everywhere. */
picture { display: block; }
picture img { width: 100%; height: auto; }
.hero-art, .head-art, .photo-frame, .article-art picture {
  border-radius: var(--radius-art); overflow: hidden; background: var(--color-paper);
  box-shadow: var(--shadow-paper); outline: 1px solid rgba(9, 73, 135, 0.08); outline-offset: -1px;
}
.photo-frame img { aspect-ratio: 3 / 2; object-fit: cover; }

/* Trust strip: the credentials, compact, below the hero. */
.trust-strip {
  list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 18px 0 0; border-top: 1px solid var(--color-line);
  display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 0.95rem; color: var(--color-muted);
}
.trust-strip li { display: inline-flex; align-items: center; }
.trust-strip li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--color-gold); margin: 0 14px; }
.trust-strip strong { color: var(--color-primary-dark); font-weight: 600; }

/* The register card: portrait at native size or smaller, then the facts. */
.register { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius); box-shadow: var(--shadow-paper); overflow: hidden; max-width: 420px; justify-self: end; width: 100%; }
.register-photo {
  position: relative; height: 330px; overflow: hidden; border-bottom: 1px solid var(--color-line);
  background:
    linear-gradient(90deg, transparent 0 39px, rgba(232, 192, 96, 0.55) 39px 40px, transparent 40px),
    repeating-linear-gradient(to bottom, #fff 0 23px, var(--color-primary-tint) 23px 24px);
}
.register-photo img { position: absolute; right: 0; top: 18px; width: 171px; height: auto; } /* 342px file: 2x at most */
.register-photo img { mix-blend-mode: multiply; }
.register dl { margin: 0; padding: 6px 20px 14px; display: grid; grid-template-columns: auto 1fr; font-size: 0.93rem; }
.register dt, .register dd { padding: 9px 0; border-bottom: 1px solid var(--color-line); margin: 0; }
.register dt { color: var(--color-muted); padding-right: 16px; }
.register dd { font-weight: 600; color: var(--color-ink); text-align: right; }
.register dl > :nth-last-child(-n+2) { border-bottom: 0; }
.register-foot { margin: 0; padding: 12px 20px 16px; background: var(--color-bg-alt); font-size: 0.88rem; color: var(--color-muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--color-muted); margin-top: 14px; font-size: 1.1rem; }

/* Life stages: the visitor picks the one that sounds like them. */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 32px); }
.stage a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--color-ink); }
.stage picture { border-radius: var(--radius-art); overflow: hidden; background: var(--color-paper); outline: 1px solid rgba(9, 73, 135, 0.08); outline-offset: -1px; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.stage a:hover picture { transform: translateY(-3px); box-shadow: var(--shadow-paper); }
.stage-text { display: flex; flex-direction: column; flex: 1; padding-top: 18px; }
.stage-title { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1.2; color: var(--color-primary-dark); }
.stage-desc { color: var(--color-muted); margin: 8px 0 14px; }
.stage-go { margin-top: auto; color: var(--color-primary); font-weight: 600; }
.stage-go::after { content: "\2192"; display: inline-block; margin-left: 6px; transition: transform .2s var(--ease-out); }
.stage a:hover .stage-go::after { transform: translateX(4px); }
.stage a:hover .stage-title { color: var(--color-primary); }

/* Photo beside the visitor's questions. */
.photo-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.questions { list-style: none; margin: 22px 0 22px; padding: 0; border-top: 1px solid var(--color-line-strong); }
.questions li { padding: 11px 0 11px 30px; border-bottom: 1px solid var(--color-line-strong); font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.13rem; line-height: 1.4; color: var(--color-primary-dark); position: relative; }
.questions a { color: inherit; text-decoration: none; display: block; }
.questions a:hover { color: var(--color-primary); text-decoration: underline; text-decoration-thickness: 1px; }
.questions a::after { content: "\2192"; font-style: normal; font-family: var(--font-body); font-size: 0.95rem; margin-left: 8px; color: var(--color-primary); }
.questions li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 10px; margin-top: -6px; border-radius: 6px 6px 6px 1px; background: var(--color-gold); }

/* Who you will speak to. */
.speak-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.speak-copy .lead { color: var(--color-ink); }

/* Page heads with an illustration. */
.head-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.head-split-sm { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); }
.way-photo { margin-top: 24px; }
.about-art { margin-top: 32px; max-width: 520px; }
.about-art img { aspect-ratio: auto; }
.article-art { margin-top: 26px; }

/* Service ledger: ruled rows, not cards. */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-line-strong); }
.ledger li { border-bottom: 1px solid var(--color-line-strong); }
.ledger a { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto; gap: 8px 32px; align-items: baseline; padding: 26px 8px; text-decoration: none; color: var(--color-ink); transition: background-color .2s var(--ease-out); }
.ledger a:hover { background: var(--color-bg-alt); }
.ledger .l-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.2vw, 1.7rem); color: var(--color-primary-dark); line-height: 1.2; }
.ledger .l-desc { color: var(--color-muted); }
.ledger .l-desc small { display: block; margin-top: 6px; font-size: 0.9rem; color: var(--color-gold-ink); font-weight: 500; }
.ledger .l-go { color: var(--color-primary); font-weight: 600; white-space: nowrap; }
.ledger-art a { grid-template-columns: 168px minmax(0, 0.9fr) minmax(0, 1.4fr) auto; align-items: center; padding: 22px 8px; }
.ledger-art picture { border-radius: var(--radius); overflow: hidden; background: var(--color-paper); }
.ledger .l-ask { display: block; margin-top: 6px; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.02rem; color: var(--color-muted); line-height: 1.35; }
.ledger .l-go::after { content: "\2192"; display: inline-block; margin-left: 6px; transition: transform .2s var(--ease-out); }
.ledger a:hover .l-go::after { transform: translateX(4px); }

/* ---------- FDM table: the signature ---------- */
.fdm-split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.fdm-split .steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: s; }
.fdm-split .steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--color-line); }
.fdm-split .steps li::before { content: counter(s); font-family: var(--font-display); font-weight: 600; color: var(--color-gold-ink); font-size: 1.15rem; line-height: 1.5; }
.fdm-card { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius); box-shadow: var(--shadow-paper); padding: clamp(18px, 3vw, 28px); }
.fdm-card figcaption { font-size: 0.88rem; color: var(--color-muted); margin-top: 14px; }
.fdm-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--color-primary-dark); margin: 0 0 4px; }
.fdm-scroll { overflow-x: auto; }
.fdm { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; min-width: 440px; }
.fdm th, .fdm td { padding: 10px 8px; border-bottom: 1px solid var(--color-line); text-align: right; vertical-align: middle; }
.fdm thead th { font-weight: 600; color: var(--color-muted); font-size: 0.85rem; border-bottom: 1.5px solid var(--color-line-strong); }
.fdm th[scope="row"], .fdm thead th:first-child { text-align: left; font-weight: 500; color: var(--color-ink); }
.fdm .w { width: 34%; text-align: left; }
.bar { display: flex; align-items: center; gap: 10px; }
.bar i { display: block; height: 8px; border-radius: 2px; background: var(--color-gold); width: calc(var(--w) * 1.6%); transform-origin: left center; }
.bar b { font-weight: 600; min-width: 2.6em; }
.js .fdm-card:not(.in) .bar i { transform: scaleX(0); }
.js .fdm-card .bar i { transition: transform 1.1s var(--ease-out); }
.js .fdm-card .bar:nth-child(1) i { transition-delay: 0s; }
.fdm tr:nth-child(2) .bar i { transition-delay: .08s; }
.fdm tr:nth-child(3) .bar i { transition-delay: .16s; }
.fdm tr:nth-child(4) .bar i { transition-delay: .24s; }
.fdm tfoot td, .fdm tfoot th { border-bottom: 0; border-top: 1.5px solid var(--color-line-strong); font-weight: 600; color: var(--color-primary-dark); }
.fdm .lead-cell { background: var(--color-primary-tint); }
@media (prefers-reduced-motion: reduce) { .js .fdm-card:not(.in) .bar i { transform: none; } .js .fdm-card .bar i { transition: none; } }

/* ---------- Close band ---------- */
.close-band { background: var(--color-primary-tint); padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--color-line); }
.close-inner { max-width: 760px; text-align: center; }
.close-inner p { color: var(--color-ink); font-size: 1.1rem; margin: 14px auto 26px; max-width: 54ch; }
.close-alt { font-size: 0.98rem !important; color: var(--color-muted) !important; margin-top: 18px !important; }

/* ---------- Inner pages ---------- */
.page-head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(24px, 4vw, 40px); }
.page-head .lead { margin-top: 18px; color: var(--color-ink); }
.page-head .hero-actions { margin-top: 26px; }
.crumbs { font-size: 0.9rem; color: var(--color-muted); margin-bottom: 14px; }
.crumbs a { color: var(--color-muted); }

.svc-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-bg); margin: 32px 0 0; }
.svc-key > div { padding: 20px 22px; }
.svc-key > div + div { border-left: 1px solid var(--color-line); }
.svc-key dt { font-size: 0.88rem; color: var(--color-muted); }
.svc-key dd { margin: 4px 0 0; font-weight: 600; color: var(--color-primary-dark); }

.way { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--color-line-strong); }
.way:first-of-type { border-top: 0; }
.way-label { font-family: var(--font-display); font-style: italic; color: var(--color-gold-ink); font-size: 1.1rem; margin-bottom: 6px; }
.way h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.way-intro { color: var(--color-muted); margin-top: 12px; }
.product { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--color-line); }
.product:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.product h3 { margin-bottom: 8px; color: var(--color-primary-dark); }
.product ul { margin: 10px 0 0; padding-left: 1.2em; }
.product li { margin: 4px 0; }
.product li::marker { color: var(--color-gold-ink); }
.trade { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; font-size: 0.97rem; }
.trade div { background: var(--color-bg-alt); padding: 12px 14px; border-radius: var(--radius); }
.trade strong { display: block; color: var(--color-primary-dark); font-size: 0.88rem; margin-bottom: 2px; }

.note { background: var(--color-bg-alt); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 18px 22px; color: var(--color-ink); }
.note p:last-child { margin: 0; }

.faq { border-top: 1px solid var(--color-line-strong); }
.faq details { border-bottom: 1px solid var(--color-line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; color: var(--color-primary-dark); font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--color-primary); transition: transform .2s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--color-muted); max-width: 68ch; }

.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.plain-list { margin: 0; padding-left: 1.2em; }
.plain-list li { margin: 6px 0; }
.plain-list li::marker { color: var(--color-gold-ink); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 206px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-photo { border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-paper); max-width: 206px; } /* 412px file: 2x at most */
.about-photo img { width: 100%; max-width: 206px; }
.about-photo figcaption { font-size: 0.88rem; color: var(--color-muted); padding: 10px 14px; background: var(--color-bg-alt); }
.cred-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.cred-table th, .cred-table td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.cred-table th { font-weight: 600; color: var(--color-ink); width: 42%; }
.cred-table td.yr { color: var(--color-muted); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.prose-block { max-width: 68ch; }
.prose-block p { margin-bottom: 1.1em; }
.pull { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.4; color: var(--color-primary-dark); margin: 28px 0; padding: 18px 0; border-top: 1px solid var(--color-gold); border-bottom: 1px solid var(--color-gold); max-width: 34ch; }

/* Testimonials */
.quotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.quote { padding: 28px 0; border-top: 1px solid var(--color-line-strong); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.5; color: var(--color-ink); }
.quote blockquote::before { content: "\201C"; display: block; font-size: 2.6rem; line-height: 0.6; color: var(--color-gold-mark); margin-bottom: 10px; }
.quote figcaption { margin-top: 14px; font-size: 0.95rem; color: var(--color-muted); }
.quote figcaption strong { color: var(--color-ink); font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.channels { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-line-strong); }
.channels li { padding: 20px 0; border-bottom: 1px solid var(--color-line-strong); }
.channels h3 { font-size: 1.2rem; margin-bottom: 6px; }
.other-head { font-size: 1.45rem; margin-bottom: 16px; }
.form-more { padding: 0; }
.form-more > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); }
.form-more > summary::-webkit-details-marker { display: none; }
.form-more > summary::after { content: "+"; grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--color-line-strong); color: var(--color-primary); font-size: 1.4rem; line-height: 1; transition: transform .2s var(--ease-out); }
.form-more[open] > summary::after { transform: rotate(45deg); }
.form-more > summary:hover .fm-title { color: var(--color-primary); }
.fm-title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--color-primary-dark); line-height: 1.25; }
.fm-sub { color: var(--color-muted); font-size: 0.97rem; }
.fm-body { padding: 0 clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px); }
.fm-body > p { color: var(--color-muted); }
.channels p { color: var(--color-muted); margin-bottom: 12px; }
.form-card { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius); box-shadow: var(--shadow-paper); padding: clamp(20px, 3vw, 32px); }
.form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card > p { color: var(--color-muted); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.97rem; }
.field .hint { font-weight: 400; color: var(--color-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--color-ink);
  background: var(--color-bg); border: 1.5px solid var(--color-line-strong); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #626C80; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(20, 93, 160, 0.18); }
.field [aria-invalid="true"] { border-color: #B42318; }
.field-error { color: #B42318; font-size: 0.92rem; margin: 6px 0 0; }

.field.consent { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; align-items: start; }
.field.consent input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--color-primary); }
.field.consent label { font-weight: 500; margin: 0; font-size: 0.95rem; }
.field.consent .field-error { grid-column: 2; }
.pdpa { font-size: 0.88rem; color: var(--color-muted); background: var(--color-bg-alt); border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 18px; }
.pdpa p { margin: 0 0 8px; }
.pdpa ul { margin: 0 0 8px; padding-left: 1.2em; }
.pdpa p:last-child { margin: 0; }
.form-status { margin: 14px 0 0; font-size: 0.95rem; color: var(--color-primary-dark); }

/* Disclaimer */
.legal { max-width: 72ch; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.legal p, .legal li { color: var(--color-ink); }

/* ---------- Insights ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--color-line-strong); border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--color-primary-dark); }
.chips a:hover { background: var(--color-bg-alt); border-color: var(--color-primary); }
.ins-wrap { padding-bottom: clamp(48px, 6vw, 88px); }
.ins-group { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 56px); padding: 36px 0; border-top: 1px solid var(--color-line-strong); }
.ins-group-head h2 { font-size: 1.55rem; }
.ins-group-head p { color: var(--color-muted); margin-top: 8px; }
.ins-list { list-style: none; margin: 0; padding: 0; }
.ins-item { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--color-line); display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: start; }
.ins-art picture { border-radius: var(--radius); overflow: hidden; background: var(--color-paper); outline: 1px solid rgba(9, 73, 135, 0.08); outline-offset: -1px; transition: transform .3s var(--ease-out); }
.ins-item:hover .ins-art picture { transform: translateY(-2px); }
.ins-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.ins-item a { text-decoration: none; }
.ins-title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.25; color: var(--color-primary-dark); }
.ins-item a:hover .ins-title { color: var(--color-primary); text-decoration: underline; text-decoration-thickness: 1px; }
.ins-dek { color: var(--color-ink); margin: 8px 0 4px; }
.ins-date { font-size: 0.88rem; color: var(--color-muted); margin: 0; }

.article-head { padding-top: clamp(36px, 6vw, 72px); padding-bottom: 8px; }
.article-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.article-dek { font-size: 1.2rem; color: var(--color-muted); margin: 18px 0 14px; line-height: 1.55; }
.byline { font-size: 0.93rem; color: var(--color-muted); padding-bottom: 22px; border-bottom: 1px solid var(--color-gold); }
.prose { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.7; padding-top: 26px; }
.prose p, .prose li { max-width: 68ch; }
.prose h2 { font-size: 1.55rem; margin: 2em 0 0.6em; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--color-gold-ink); }
.prose blockquote { margin: 1.4em 0; padding: 14px 0; border-top: 1px solid var(--color-gold); border-bottom: 1px solid var(--color-gold); font-style: italic; color: var(--color-primary-dark); }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: 0.95rem; margin: 1.2em 0; font-variant-numeric: tabular-nums; }
.prose th, .prose td { border-bottom: 1px solid var(--color-line); padding: 8px 6px; text-align: left; }
.prose thead th { border-bottom: 1.5px solid var(--color-line-strong); color: var(--color-muted); font-weight: 600; }
.prose .table-note, .source-note { font-family: var(--font-body); font-size: 0.9rem; color: var(--color-muted); }
.source-note { margin-top: 2em; padding-top: 14px; border-top: 1px solid var(--color-line); }
.article-cta { margin-top: 36px; }
.article-cta > * { max-width: 100%; }
.article-cta { background: var(--color-primary-tint); border-radius: var(--radius); padding: 26px var(--gutter) 28px; }
@media (min-width: 800px) { .article-cta { padding: 30px 34px; max-width: var(--wrap-narrow); } }
.ac-head { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--color-primary-dark); margin-bottom: 8px; }
.related { padding-top: 36px; padding-bottom: clamp(48px, 6vw, 88px); }
.rel-head { font-weight: 600; color: var(--color-muted); font-size: 0.95rem; margin-bottom: 8px; }
.related ul { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--color-line); }
.related li { border-bottom: 1px solid var(--color-line); }
.related li a { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; padding: 14px 0; text-decoration: none; }
.rel-kind { grid-row: span 2; font-size: 0.78rem; font-weight: 600; color: var(--color-gold-ink); padding-top: 5px; }
.rel-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; color: var(--color-primary-dark); }
.rel-why { font-size: 0.95rem; color: var(--color-muted); margin-top: 3px; }
.related li a:hover .rel-title { color: var(--color-primary); text-decoration: underline; text-decoration-thickness: 1px; }
.related .rel-head { font-family: var(--font-display); font-size: 1.35rem; color: var(--color-primary-dark); margin-bottom: 12px; }
.rel-all { font-size: 0.95rem; margin: 0; }
.section-tight { padding: clamp(8px, 2vw, 24px) 0 0; }
.related-svc { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(44px, 6vw, 72px); }
.related-svc ul { max-width: 760px; }

/* Text links to Isaac's PhillipCapital (TPP) profile: plain text, no logo */
.tpp-link { font-weight: 600; }
.tpp-link::after { content: "\2197"; font-weight: 400; margin-left: 3px; font-size: 0.9em; }
.tpp-line { font-size: 0.95rem; color: var(--color-muted); margin: 10px 0 0; }
.speak-links { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline; }

/* Reading paths on /insights/ */
.ins-step { display: block; font-size: 0.8rem; font-weight: 600; color: var(--color-gold-ink); margin-bottom: 4px; }

/* Testimonial groups */
.quotes-head { font-size: 1.35rem; margin-top: 8px; }
.quotes-src { color: var(--color-muted); margin: 6px 0 4px; }
.quotes + .quotes-head { margin-top: 44px; }

/* QR to WhatsApp: desktop only (a phone cannot scan its own screen) */
.qr { margin: 0; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.qr img { width: 112px; height: 112px; border: 1px solid var(--color-line); border-radius: var(--radius); background: #fff; image-rendering: pixelated; }
.qr figcaption { font-size: 0.85rem; font-weight: 600; color: var(--color-ink); white-space: nowrap; }
.qr-footer { margin-top: 16px; }
.qr-row { display: flex; gap: 18px; align-items: center; }
.qr-row p { margin: 0; }
@media (max-width: 880px), (hover: none) and (pointer: coarse) {
  .qr, .desktop-only { display: none !important; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-stone); border-top: 1px solid #E2E0DB; padding: clamp(44px, 6vw, 72px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: 0.95rem; color: var(--color-ink); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 32px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--color-primary-dark); }
.f-head { font-weight: 600; margin-bottom: 12px; color: var(--color-ink); }
.f-id p { color: #3D4558; }
.f-legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid #D8D5CF; font-size: 0.87rem; color: #3D4558; }
.f-legal p { max-width: 110ch; margin-bottom: 10px; }
.f-legal-head { font-weight: 600; color: var(--color-ink); margin-bottom: 6px !important; }
.f-legal p:not(.f-legal-head) { font-size: 0.82rem; line-height: 1.55; }

.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid, .fdm-split, .about-grid, .contact-grid, .way, .ins-group, .photo-split, .speak-grid, .head-split { grid-template-columns: minmax(0, 1fr); }
  /* Home hero on phones and tablets: the scene is a full-bleed band under the header, then the words on the same paper. */
  .hero-scene { padding: 0 0 36px; }
  .hero-scene::before { mask-image: linear-gradient(to bottom, transparent 0%, transparent 38%, #000 60%); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 38%, #000 60%); }
  .hero-scene .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 18px; }
  .hero-scene .hero-art {
    position: relative; inset: auto; width: auto; max-width: none; height: clamp(224px, 42vw, 380px); z-index: 0;
    mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  }
  .hero-scene .hero-art img { object-position: 50% 64%; }
  .register { justify-self: start; }
  .head-art { max-width: 560px; }
  .head-split-sm .head-art { max-width: 360px; }
  .ledger-art a { grid-template-columns: 140px minmax(0, 1fr); }
  .ledger-art picture { grid-row: span 3; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .f-id { grid-column: 1 / -1; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 206px; }
}
@media (max-width: 1100px) {
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
}
@media (max-width: 640px) {
  body { font-size: 1.03rem; }
  .ledger a { grid-template-columns: minmax(0, 1fr); padding: 22px 4px; }
  .ledger-art a { grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; align-items: start; }
  .ledger-art picture { grid-row: span 3; }
  .ledger-art .l-desc, .ledger-art .l-go { grid-column: 2; }
  .stages { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--color-line); }
  .stage { border-bottom: 1px solid var(--color-line); }
  .stage a { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 16px; align-items: start; padding: 18px 0; }
  .stage picture { border-radius: var(--radius); }
  .stage a:hover picture { transform: none; box-shadow: none; }
  .stage-text { padding-top: 0; }
  .stage-title { font-size: 1.22rem; }
  .stage-desc { margin: 4px 0 8px; font-size: 0.97rem; line-height: 1.5; }
  .ins-item { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
  .trust-strip { gap: 8px; font-size: 0.9rem; }
  .trust-strip li + li::before { display: none; }
  .trust-strip li { padding: 5px 12px; border-radius: 999px; background: var(--color-bg-alt); border: 1px solid var(--color-line); color: var(--color-ink); }
  .svc-key { grid-template-columns: minmax(0, 1fr); }
  .svc-key > div + div { border-left: 0; border-top: 1px solid var(--color-line); }
  .trade { grid-template-columns: minmax(0, 1fr); }
  .cols-2 { grid-template-columns: minmax(0, 1fr); }
  .mobile-bar {
    display: block; position: fixed; transition: transform .3s var(--ease-out), visibility 0s; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--color-line);
    box-shadow: 0 -10px 24px -18px rgba(9, 73, 135, 0.5);
  }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .mobile-bar.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease-out), visibility 0s linear .3s; }
  .prose { font-size: 1.1rem; }
  .register-photo { height: 230px; } /* head and shoulders on phones */
  .photo-split > .photo-frame { display: none; } /* the questions carry this block on a phone */
  .hero { padding-bottom: 40px; }
}
@media (max-width: 640px) {
  .fdm { min-width: 0; font-size: 0.9rem; }
  .fdm th, .fdm td { padding: 9px 4px; }
  .fdm .w { width: 38%; }
  .bar { gap: 6px; }
  .bar b { min-width: 2.4em; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 16px; }
  .f-contact { grid-column: 1 / -1; }  /* the Phillip email address is too long for half a phone screen */
  .hero-actions .btn { width: 100%; }
  .register dl { font-size: 0.9rem; padding: 4px 16px 10px; }
}

/* SEO/AEO additions (Oct 2026): answer-first summary, article questions, sources, author box, draft marker */
.byline a { color: inherit; text-decoration-color: var(--color-line-strong); }
.in-short-wrap { margin-top: 26px; }
.in-short { max-width: 68ch; background: var(--color-paper); border-top: 1px solid var(--color-gold); border-radius: 0 0 var(--radius) var(--radius); padding: 14px 18px 16px; }
.is-head { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--color-gold-ink); margin: 0 0 4px; }
.in-short p:last-child { margin: 0; font-size: 1.08rem; line-height: 1.6; color: var(--color-ink); }
.article-faq { margin-top: 2.4em; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; }
.article-faq h2 { margin-bottom: 0.4em; }
.article-faq .faq summary { font-size: 1.04rem; }
.article-faq .faq p { margin: 0 0 0.6em; }
.sources { margin-top: 2em; font-family: var(--font-body); font-size: 0.93rem; line-height: 1.55; color: var(--color-muted); }
.sources h2 { font-size: 1.2rem; margin: 0 0 0.5em; }
.sources ul { padding-left: 1.1em; }
.sources li { overflow-wrap: anywhere; }
.author-box { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 32px; font-size: 0.95rem; line-height: 1.5; color: var(--color-muted); }
.author-box > div { border-top: 1px solid var(--color-line); padding-top: 12px; }
.author-box img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-top: 12px; }
.author-box p { margin: 0 0 6px; }
.ab-name { font-weight: 600; }
.ab-name a { color: var(--color-primary-dark); }
.ab-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.draft-tag { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border: 1px dashed var(--color-gold-ink); border-radius: var(--radius); font-size: 0.88rem; color: var(--color-gold-ink); background: #FFF9EA; }
.ins-draft { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px dashed var(--color-gold-ink); border-radius: var(--radius); color: var(--color-gold-ink); font-weight: 500; }
