/* Shared components: primitives, blocks, and the fixed toggle dock.
   Used by Personal/ and Advisory/ alike. Page-specific layout lives in each
   page's own stylesheet, which may override the layout rules here.

   Sizes come from the scale documented in tokens.css. Keep to it. */

/* ---------- primitives ---------- */
.wrap{max-width:var(--w);margin:0 auto;padding:0 var(--gutter);position:relative;z-index:1}
.brand{font-family:var(--serif);font-weight:400;letter-spacing:var(--track-display)}
/* The brand mark is sized in em so it shrinks with the wordmark when the
   header sticks, instead of holding a fixed px size beside smaller type.
   The size and offset are measured, not guessed: Newsreader's cap height is
   .707em, and Lucide's artwork fills 21.3 of its 24 units once the stroke is
   counted, so a .8em box draws the glyph exactly one capital tall, dropped
   .053em to stand its feet on the baseline. */
.brand .glyph{width:.8em;height:.8em;margin-left:.5em;vertical-align:-.053em}
.label{font-size:14px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}
.arrow-link{color:var(--ink);font-size:18px;display:inline-flex;align-items:center;gap:8px;border-bottom:1px solid var(--accent);padding-bottom:2px}
.arrow-link svg{width:16px;height:12px}
.btn{height:56px;padding:0 40px;border-radius:4px;font-size:18px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent}
.btn.dark{background:#141414;color:#fff}
.btn.light{background:var(--field);color:#111;border-color:var(--field-border)}
.grad-text{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
/* Headline wrapping: the leading clause is its own block, so the gradient word
   always lands alone on the final line no matter how the clause breaks.
   text-wrap:balance evens the clause's lines, which is what keeps any of them
   from being left with a single word. */
.hero-copy h1 .flow{display:block;text-wrap:balance}

/* ---------- accessibility primitives ---------- */
/* The skip link is the first focusable thing on every page; it stays offscreen
   until a keyboard reaches it, then drops in over the bar. */
.skip-link{position:absolute;left:16px;top:-100px;z-index:100;background:var(--ink);color:#fff;padding:12px 16px;border-radius:4px;font-size:16px}
.skip-link:focus{top:16px;outline:2px solid var(--accent);outline-offset:2px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- analytics exclusion indicator ---------- */
/* Rendered by shared/exclusion.js only on a device that has visited /ignore/:
   a bare Lucide ghost, twenty pixels, ink at a third opacity, bottom right.
   Option A of Wireframes/2026-09-03-analytics-exclusion-ghost-indicator.html.
   Same corner as the local toggle dock, which never ships. */
.exclusion-ghost{position:fixed;right:24px;bottom:24px;width:20px;height:20px;color:var(--ink);opacity:.32;z-index:10;pointer-events:auto}
.exclusion-ghost svg{display:block;width:20px;height:20px}

/* ---------- toggle dock (theme + A/B version) ---------- */
.toggle-dock{position:fixed;bottom:24px;right:24px;z-index:10;display:flex;align-items:center;gap:8px}
.toggle-dock .group{display:flex;gap:6px;background:var(--field);border:1px solid var(--field-border);border-radius:20px;padding:4px}
.toggle-dock button{border:none;background:transparent;cursor:pointer;padding:0;font:inherit}
.theme-toggle button{width:28px;height:28px;border-radius:50%}
.theme-toggle button.active{outline:2px solid var(--ink);outline-offset:1px}
.theme-toggle .sw-green{background:linear-gradient(90deg,#8FBC94,#4D7C5F,#2F4F3A)}
.theme-toggle .sw-rainbow{background:linear-gradient(90deg,#E2673B,#D94F84,#8F5CF0)}
.theme-toggle .sw-blue{background:linear-gradient(90deg,#3B82F6,#1E40AF,#5B21B6)}
.theme-toggle .sw-sage{background:linear-gradient(90deg,#93C79A,#3F7A57,#1B3A2A)}
.theme-toggle .sw-jade{background:linear-gradient(90deg,#4CAF6E,#1E8E7E,#17607F)}
.theme-toggle .sw-emerald{background:linear-gradient(90deg,#2FB673,#0E9488,#155E75)}
.theme-toggle .sw-spring{background:linear-gradient(90deg,#3FC97C,#0E9AA0,#1F5FA6)}
.version-toggle button{min-width:28px;height:28px;border-radius:14px;padding:0 10px;font-size:14px;font-weight:600;letter-spacing:.06em;color:var(--gray)}
.version-toggle button.active{background:#141414;color:#fff}

/* ---------- header ---------- */
/* Sticky, so the nav stays reachable while the section highlight tracks where
   you are. It needs an opaque background to sit over scrolling content, and it
   shrinks once you leave the top — the full-height bar is a lot of screen to
   give up permanently on a laptop. */
/* sticky is the no-JS fallback; components.js swaps in .is-fixed and a spacer
   so the shrink cannot move the page below it. */
.site-header{position:sticky;top:0;z-index:20;background:var(--paper)}
.site-header.is-fixed{position:fixed;left:0;right:0}
.site-header.stuck{border-bottom:1px solid var(--rule)}

/* Material bar: the bar itself goes translucent with a backdrop blur, so
   content shows through frosted as it passes beneath — Apple's toolbar
   material. The slight saturate keeps color lively through the frost. Gated
   on color-mix too so the translucent paper stays a token, not a hardcoded
   rgba; browsers without either keep the opaque paper bar. prefers-reduced-
   transparency restores the opaque bar for users who ask for it. */
@supports (((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) and (background:color-mix(in srgb,red 50%,transparent))){
  .site-header{background:color-mix(in srgb,var(--paper) 72%,transparent);
    -webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4)}
  @media (prefers-reduced-transparency:reduce){
    .site-header{background:var(--paper);-webkit-backdrop-filter:none;backdrop-filter:none}
  }
}

/* Scroll edge effect, after Apple's: once the bar is stuck, the strip just
   below it blurs and fades whatever scrolls beneath, so content dissolves
   under the bar instead of being cut off by a line. One blurred band with a
   top-to-bottom mask — a true progressive blur stacks several blur layers,
   which is more GPU than a 20px strip deserves. Where backdrop-filter or
   masks are missing (old browsers), the hairline above stays and nothing is
   lost. The band swaps in for the hairline rather than doubling it: the
   border keeps its 1px so the bar's height doesn't shift with support. */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .site-header.stuck{border-bottom-color:transparent}
  .site-header::after{content:"";position:absolute;left:0;right:0;top:100%;height:20px;pointer-events:none;
    -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
    -webkit-mask-image:linear-gradient(to bottom,#000,transparent);mask-image:linear-gradient(to bottom,#000,transparent);
    opacity:0;transition:opacity .25s ease}
  .site-header.stuck::after{opacity:1}
}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;transition:height .2s ease,padding .2s ease}
/* Used while the resting height is measured, so no transition is caught mid-flight. */
.site-header.no-anim .wrap,.site-header.no-anim .brand{transition:none}
.site-header nav{display:flex;gap:40px;font-size:18px;color:#777}

/* The active link marks where you are on the page, so it needs to win against
   its neighbours: full-strength ink plus an accent rule under it. */
.site-header nav a,.side-nav a{position:relative;transition:color .2s}
.site-header nav .active,.side-nav .active{color:var(--ink)}
.site-header nav .active::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:1px;background:var(--accent)}
/* The rail marks its active link with a chevron instead — see personal.css. */

/* ---------- nav links ---------- */
/* The ↗ marks a link that leaves the page — today only the cross-site one. */
.ext-link{display:inline-flex;align-items:center;gap:6px}
.ext-link .ext{width:11px;height:11px;flex:none;opacity:.7}
.ext-link .glyph{width:12px;height:12px;flex:none;opacity:.7}

/* Where an anchor jump lands is set per site, in personal.css and advisory.css:
   the offset has to cancel whatever top padding that section already carries,
   which differs between the two layouts. */

/* ---------- essay rows ---------- */
/* "Latest writing" is a section label, the same small caps as "About Jason" and
   "Questions" — not a serif heading. Shared by both sites. */
.essay-head{display:block;margin-bottom:24px}
/* Article rows: the linked title with its arrow, the dek beneath, ruled top and
   bottom by the rows themselves. One layout for both sites and both Advisory
   variants — the columnar version Advisory used to have is gone. */
.erow{display:grid;grid-template-columns:1fr;row-gap:8px;padding:32px 0;border-top:1px solid var(--rule)}
.erow:last-of-type{border-bottom:1px solid var(--rule)}
.erow h3{font-size:var(--item-title);line-height:1.2;letter-spacing:var(--track-display);max-width:720px}
.erow p{font-size:var(--item-dek);line-height:1.6;color:var(--gray);max-width:720px}

/* The arrow sits with the title and nudges right on hover, on the same curve as
   the rail's chevron so the two read as one gesture. */
.go{display:inline-block;margin-left:12px;color:var(--accent);transition:transform .28s cubic-bezier(.22,.61,.36,1)}
.go svg{width:16px;height:12px;vertical-align:middle}
.erow-link:hover .go,.erow-link:focus-visible .go{transform:translateX(6px)}

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

/* ---------- card grid (ways to work together) ---------- */
/* scroll-margin so the "Learn more" jump lands with air above the heading
   rather than flush against the top of the window. */
.ways .wrap{padding-bottom:144px}
.explore-head{display:flex;align-items:center;gap:32px}
.explore-head .line{flex:1;height:1px;background:var(--rule)}
.explore-head h2{font-size:32px;letter-spacing:var(--track-display);white-space:nowrap}
.ways-intro{text-align:center;font-size:18px;color:var(--gray);margin-top:16px}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--card);margin-top:40px}
.card{padding:40px 32px 48px;border-right:1px solid var(--card);display:flex;flex-direction:column}
.card:last-child{border-right:none}
.card .glyph{width:24px;height:24px;margin-bottom:24px}
.card h3{font-size:var(--item-title);letter-spacing:var(--track-display);margin-bottom:12px}
.card p{font-size:var(--item-dek);line-height:1.6;color:var(--gray)}
.card .arrow-link{margin-top:auto;padding-top:32px;font-size:16px;align-self:flex-start}

/* ---------- organizations worked with ---------- */
/* Quiet on purpose: the logo files carry real transparency, so grayscale +
   low opacity is all the quieting the strip needs. */
/* The strip scrolls slowly and continuously, SaaS-style, driven by
   initLogoMarquee in components.js so it can also be grabbed and dragged;
   the animation resumes when the pointer lets go. The track is four copies
   of the logo set and wraps at half its own width, so the seam is invisible.
   .logo-marquee clips the track and fades both edges. touch-action:pan-y
   keeps vertical page scroll working while the strip owns horizontal drags. */
.orgs .wrap{padding-bottom:144px;text-align:center;overflow:hidden;--logo-gap:56px}
.orgs .label{display:block;margin-bottom:32px;color:var(--gray)}
.logo-marquee{overflow:hidden;cursor:grab;touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent)}
.logo-marquee.is-dragging{cursor:grabbing}
.logo-strip{list-style:none;display:flex;flex-wrap:nowrap;width:max-content;align-items:center;gap:var(--logo-gap);will-change:transform}
/* flex:none keeps each logo at its natural size instead of squeezing to fit. */
.logo-strip li{flex:none}
.logo-strip img{display:block;width:auto;max-width:160px;object-fit:contain;filter:grayscale(1) contrast(1.15);opacity:.6;transition:opacity .2s,filter .2s;-webkit-user-drag:none}
@media (prefers-reduced-motion:reduce){
  .logo-strip{width:auto;justify-content:center}
  .logo-strip li[aria-hidden]{display:none}
  .logo-marquee{-webkit-mask-image:none;mask-image:none}
}
.logo-strip li:hover img{opacity:.9;filter:grayscale(0)}

/* ---------- frequently asked questions ---------- */
.faq .wrap{padding-bottom:144px}
.faq-inner{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:64px;padding-top:96px;border-top:1px solid var(--rule)}
.faq-head .label{display:block;margin-bottom:16px}
.faq-head h2{font-size:32px;letter-spacing:var(--track-display);max-width:320px}
.faq-item{border-bottom:1px solid var(--rule)}
.faq-item:first-child{border-top:1px solid var(--rule)}
.faq-item summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item h3{font-size:24px;line-height:1.3;letter-spacing:var(--track-display);font-weight:500}
.faq-item .plus{position:relative;flex:none;width:16px;height:16px}
.faq-item .plus::before,.faq-item .plus::after{content:"";position:absolute;background:var(--accent);left:50%;top:50%;transform:translate(-50%,-50%)}
.faq-item .plus::before{width:16px;height:1px}
.faq-item .plus::after{width:1px;height:16px;transition:transform .2s}
.faq-item[open] .plus::after{transform:translate(-50%,-50%) scaleY(0)}
/* The plus only becomes a minus once the answer is actually opening, so the
   icon and the panel move together rather than the icon jumping ahead. */
.faq-item[open]:not(.is-open) .plus::after{transform:translate(-50%,-50%)}

/* Animating a 0fr → 1fr grid row expands the answer to exactly its own height
   without measuring it, and the text fades and rises slightly as it goes.
   .is-open is set by initFaq, one frame after the panel is revealed. */
.faq-answer{display:grid;grid-template-rows:0fr;transition:grid-template-rows .28s cubic-bezier(.22,.61,.36,1)}
.faq-item.is-open .faq-answer{grid-template-rows:1fr}
/* The inner wrapper is what gets clipped. Clipping the paragraph itself would
   leave its 32px of bottom padding showing under a closed answer, since padding
   sits outside the box that overflow hides. */
.faq-answer-inner{overflow:hidden;opacity:0;transform:translateY(-6px);transition:opacity .28s ease,transform .28s cubic-bezier(.22,.61,.36,1)}
.faq-item.is-open .faq-answer-inner{opacity:1;transform:none}
.faq-item p{font-size:18px;line-height:1.6;color:var(--gray-2);padding:0 40px 32px 0;max-width:560px}

@media (prefers-reduced-motion:reduce){
  .faq-answer,.faq-answer-inner{transition:none}
}

/* ---------- about Jason + work with me ---------- */
.about .inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:64px;align-items:center}
.about .label{display:block;margin-bottom:16px}
.about h2{font-size:32px;letter-spacing:var(--track-display);margin-bottom:16px}
.about p{font-size:18px;line-height:1.6;color:#333;max-width:456px}
.about .arrow-link{margin-top:32px}
/* Same weight as .arrow-link, two abreast. The mark takes the link's own color
   so the accent underline stays the only color in the row. */
.social{display:flex;flex-wrap:wrap;gap:28px;margin-top:32px}
.social a{color:var(--ink);font-size:18px;display:inline-flex;align-items:center;gap:8px;border-bottom:1px solid var(--accent);padding-bottom:2px}
.social svg{width:16px;height:16px;flex:none}
.contact{display:flex;align-items:center;gap:32px;padding-left:16px}
.contact .bar{width:2px;height:112px;background:var(--grad-bright);flex:none}
.contact h2{font-size:32px;letter-spacing:var(--track-display);margin-bottom:8px}
.contact a{font-family:var(--serif);font-size:24px}

/* ---------- stay in the loop ---------- */
.subscribe .label{display:block;margin-bottom:16px}
.subscribe h2{font-size:32px;letter-spacing:var(--track-display);margin-bottom:8px}
.subscribe p{font-size:18px;color:#444}
.subscribe small{display:block;font-size:14px;color:#555}
/* Fluid rather than a fixed width: a hard width overflows the page on phones. */
.form{display:flex;flex-wrap:wrap;gap:8px;margin:32px 0 24px}
.form input{flex:1 1 256px;min-width:0;max-width:376px;height:52px;border:1px solid var(--field-border);background:var(--field);padding:0 16px;font:inherit;font-size:17px;color:#333;outline:none}
.form input::placeholder{color:#666}
.form button{width:128px;height:52px;background:#141414;color:#fff;border:none;border-radius:3px;font:inherit;font-size:17px;font-weight:500}

/* ---------- coming-up interstitial ---------- */
/* The pre-publication modal an unpublished essay opens into; markup and
   copy live in components.js / content.js (essays.comingUp). Styled in the
   site's own idiom — paper ground, serif title, gradient hairline — rather
   than an app dialog. Remove along with essays.comingUp once essays ship. */
.cu-veil{position:fixed;inset:0;z-index:60;background:rgba(243,241,237,.82);backdrop-filter:blur(3px);
  display:flex;align-items:center;justify-content:center;padding:24px;overflow-y:auto;
  opacity:0;pointer-events:none;transition:opacity .3s ease}
.cu-veil.open{opacity:1;pointer-events:auto}
/* Entrance in the same idiom as the FAQ panel and the header shrink: one
   easing curve (.22,.61,.36,1), a short rise, nothing bouncy. The box fades
   and lifts a beat after the veil, its gradient hairline wipes in across the
   top, and the contents follow in a small stagger, so the modal assembles
   rather than appearing. Closing plays straight back with no delays. */
.cu-modal{background:var(--paper);border:1px solid var(--field-border);max-width:600px;width:100%;
  margin:auto;padding:56px 64px 40px;position:relative;box-shadow:0 30px 80px rgba(20,10,20,.18);
  opacity:0;transform:translateY(18px) scale(.99);
  transition:opacity .3s ease,transform .42s cubic-bezier(.22,.61,.36,1)}
.cu-veil.open .cu-modal{opacity:1;transform:none;transition-delay:.06s}
.cu-modal::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:var(--grad);
  transform:scaleX(0);transform-origin:left;transition:transform .5s cubic-bezier(.22,.61,.36,1)}
.cu-veil.open .cu-modal::before{transform:scaleX(1);transition-delay:.14s}
/* The direct children only — ::before above is a pseudo and animates on its own. */
.cu-modal > *{opacity:0;transform:translateY(6px);
  transition:opacity .3s ease,transform .3s cubic-bezier(.22,.61,.36,1)}
.cu-veil.open .cu-modal > *{opacity:1;transform:none}
.cu-veil.open .cu-modal > :nth-child(2){transition-delay:.14s}
.cu-veil.open .cu-modal > :nth-child(3){transition-delay:.19s}
.cu-veil.open .cu-modal > :nth-child(4){transition-delay:.24s}
.cu-veil.open .cu-modal > :nth-child(5){transition-delay:.29s}
.cu-veil.open .cu-modal > :nth-child(6){transition-delay:.33s}
.cu-veil.open .cu-modal > :nth-child(7){transition-delay:.36s}
.cu-label{font-size:14px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);display:block;margin-bottom:20px}
.cu-modal h3{font-size:32px;line-height:1.15;letter-spacing:var(--track-display);margin-bottom:16px}
.cu-body{font-size:18px;line-height:1.6;color:var(--gray)}
/* Same field and button as .form; narrower box, so the button wraps under on phones. */
.cu-form{display:flex;flex-wrap:wrap;gap:8px;margin:28px 0 16px}
.cu-form input{flex:1 1 220px;min-width:0;height:52px;border:1px solid var(--field-border);background:var(--field);padding:0 16px;font:inherit;font-size:17px;color:#333;outline:none}
.cu-form input::placeholder{color:#666}
.cu-form button{flex:0 1 auto;padding:0 24px;height:52px;background:#141414;color:#fff;border:none;border-radius:3px;font:inherit;font-size:17px;font-weight:500;cursor:pointer}
.cu-note{display:block;font-size:14px;color:#555;margin-bottom:24px}
.cu-back{font-size:14px;color:var(--gray);border-bottom:1px solid var(--rule);padding-bottom:1px;cursor:pointer}
.cu-back:hover{border-bottom-color:var(--accent)}
/* A 44px square target — the close button was an 8px-padded glyph, small
   enough to miss on a phone. Offsets keep the glyph where it already sat. */
.cu-x{position:absolute;top:8px;right:12px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:24px;line-height:1;color:#999;background:none;border:none;cursor:pointer;padding:0}
.cu-x:hover{color:var(--ink)}
@media (prefers-reduced-motion:reduce){
  .cu-veil,.cu-modal,.cu-modal::before,.cu-modal > *{transition:none}
  .cu-modal,.cu-modal > *{opacity:1;transform:none}
  .cu-modal::before{transform:scaleX(1)}
}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--rule)}
.site-footer .wrap{padding:32px var(--gutter);display:flex;justify-content:space-between;align-items:center;font-size:14px;color:#333}
.site-footer nav{display:flex;gap:32px;font-size:14px;color:#333}
.colophon{padding:32px 0 40px;border-top:1px solid var(--rule);font-size:14px;color:#333}
.colophon-link{border-bottom:1px solid transparent;transition:border-color .2s ease}
.colophon-link:hover{border-bottom-color:var(--accent)}

/* The gutter holds at 88px right down to the collapse breakpoint. Stepping it
   down at 1280 made the page read edge-to-edge on a ~1100px window compared
   with the prototypes, which kept a wide margin all the way down. */
@media (max-width:1023px){
  :root{--gutter:48px}
  .cards{grid-template-columns:1fr}
  .card{border-right:none;border-bottom:1px solid var(--card)}
  .card:last-child{border-bottom:none}
  .faq-inner{grid-template-columns:1fr;row-gap:40px;padding-top:64px}
  .orgs .wrap{--logo-gap:40px}
  .logo-strip img{max-width:128px}
  .about .inner{grid-template-columns:1fr;gap:48px}
  .contact{padding-left:0}
}

/* The stacked top bar. It starts at 800px, not at the phone breakpoint: the
   wordmark and the nav stop fitting on one line around 750px, and between there
   and 640 the wordmark used to wrap to two lines inside a fixed-height bar and
   collide with the nav. Personal's element is <aside class="rail"> and
   Advisory's is <header class="site-header">, and each needs its own selectors
   to beat its own desktop rules — so the two cannot share a rule set, but they
   do share these numbers, which is what actually makes them look alike. Change
   a bar dimension here, not in a page stylesheet. */
@media (max-width:800px){
  :root{
    --bar-pad:20px;
    /* The top of the bar carries more air than the bottom: the wordmark's caps
       sit high in their line box, so equal padding reads as too little space
       above the name. */
    --bar-pad-top:26px;
    /* The bar keeps its spacing on scroll at these widths. It is already
       compact here, and shrinking the padding mid-scroll read as a jolt with
       the name and nav row crowding together. */
    --bar-pad-stuck:20px;
    --bar-row-gap:16px;
    --bar-nav-gap:32px;
    --bar-nav-size:18px;
    /* The wordmark tracks the room it actually has instead of stepping at fixed
       widths: "Jason Eric Advisory" runs about 8x its font size in Newsreader,
       so anything narrower than 8.2x the content width would wrap to a second
       line. Capped at the desktop 38px. The extra 18px covers a classic
       scrollbar, which 100vw counts and the content box does not. */
    --bar-brand:clamp(26px,calc((100vw - 2*var(--gutter) - 18px) / 8.2),38px);
    /* Vertical padding on each nav link, so the tap target is taller than the
       text. The active underline subtracts it back out. */
    --bar-link-pad:8px;
  }
  /* Advisory's bar only. Personal's rail is still a vertical stack above the
     phone breakpoint, where padding would just space the list out. */
  .site-header nav a{padding:var(--bar-link-pad) 0}
  .site-header nav .active::after{bottom:calc(var(--bar-link-pad) - 6px)}
}

@media (max-width:640px){
  :root{--gutter:24px}

  /* Phone sizes. The links come down a step but keep a ~43px tap target — 15px
     text with no padding was hard to hit on a phone. The wordmark keeps the
     clamp above; it is already shrinking with the viewport by here. */
  :root{
    --bar-pad:18px;
    --bar-pad-top:28px;
    --bar-pad-stuck:18px;
    --bar-row-gap:6px;
    --bar-nav-gap:22px;
    --bar-nav-size:17px;
    --bar-link-pad:11px;
  }

  @media (max-width:360px){
    :root{--bar-nav-gap:18px}
  }
  /* The hero pair stays side by side at every phone width - stacked, the two
     full-height buttons dwarfed everything above them. */
  .btn{height:46px;padding:0 18px;font-size:15px}
  .ways .wrap,.orgs .wrap,.faq .wrap{padding-bottom:80px}
  .explore-head h2{white-space:normal;text-align:center}
  .card{padding:32px 24px 40px}
  .faq-item h3{font-size:20px}
  .site-footer .wrap{flex-direction:column;gap:16px;align-items:flex-start}
  .site-footer nav{gap:24px;flex-wrap:wrap}
  .cu-veil{padding:16px}
  .cu-modal{padding:40px 24px 32px}
  .cu-modal h3{font-size:26px}
  .cu-form button{flex:1 1 100%}
}
