/* Forbes Health, concept 1, Option D v2 (16 Nov).
   Bader's homepage rhythm: one idea per block, one headline, at most two lines, one action.
   Indigo ink, Forbes blue for actions, near-white ground, Sentient + Switzer. Square, no shadows. */
:root {
  --paper: #FAFAF8;
  --paper-2: #EDEFE7;
  --ink: #1B1454;
  --text: #1B1454;   /* 22 Nov: one ink for headings and reading text (was a charcoal, #2B2833, beside navy headings) */
  --muted: #4F4A6E;
  --line: #DDDCD3;
  --white: #FBFAF6;
  --blue: #1F6FD0;
  --blue-dk: #1859AC;
  --serif: "Sentient", "Iowan Old Style", Georgia, serif;
  --sans: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gutR: max(16px, env(safe-area-inset-right, 0px));
  --edge: max(var(--gut), calc((100vw - 1280px) / 2));
  --cg: 24px;
  --space: clamp(96px, 11vw, 168px);
  --card: clamp(220px, 20vw, 300px);
  --hair-light: rgba(251, 250, 246, .18);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; accent-color: var(--ink); }
::selection { background: var(--ink); color: var(--white); }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.55; overflow-x: hidden; caret-color: var(--ink); }
p { text-wrap: pretty; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type */
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1.05; letter-spacing: -.01em; }
.display { font-family: var(--serif); font-weight: 300; color: var(--ink); font-size: clamp(2.2rem, 3.9vw, 3.5rem); line-height: 1.07; letter-spacing: -.01em; text-wrap: balance; }
.lede { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 30em; }
.fine { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* Buttons and links: one quiet system, 0.25 to 0.5 s on the same curve */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px; font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer; white-space: nowrap; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dk); border-color: var(--blue-dk); }
.btn-primary:disabled { background: #9C99B8; border-color: #9C99B8; cursor: not-allowed; }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: var(--paper-2); border-color: var(--paper-2); }
.link { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--sans); font-size: 16px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(27, 20, 84, .4); text-underline-offset: .34em; transition: text-decoration-color .3s var(--ease), color .3s var(--ease); }
.link:hover { text-decoration-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* Header (kept) */
/* Two states, crossfading in 0.3 s:
   over the film, near-white links and the paper logo on a soft indigo top scrim;
   once stuck (scrolled past the hero, or the phone menu is open), a solid near-white bar with indigo links and the ink logo. */
.site-head { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px var(--gutR) 22px var(--gut); color: var(--paper); background-color: rgba(250, 250, 248, 0); box-shadow: 0 1px 0 rgba(221, 220, 211, 0); transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
/* Scrim strength measured on the promo's bright frames: at .55 the right-hand links fell to 3.1:1,
   so it starts at .72 and holds about .65 through the link line (4.5:1 or better over pure white). */
.site-head::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 180px; background: linear-gradient(180deg, rgba(27, 20, 84, .72) 0%, rgba(27, 20, 84, .65) 35%, rgba(27, 20, 84, 0) 100%); pointer-events: none; transition: opacity .3s var(--ease); }
.site-head.stuck { position: fixed; color: var(--ink); background-color: var(--paper); box-shadow: 0 1px 0 var(--line); padding-top: 14px; padding-bottom: 14px; }
.site-head.stuck::before { opacity: 0; }
.site-head:not(.stuck) :focus-visible { outline-color: var(--paper); }
.site-head a { text-decoration: none; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 36px; font-family: var(--serif); font-size: 14px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; }
.nav-left a, .nav-right a { transition: opacity .3s var(--ease); }
.nav-left a:hover, .nav-right a:hover { opacity: .68; }
.nav-right { justify-content: flex-end; }
.nav-cta { border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.logo { position: relative; display: block; line-height: 0; }
.logo img { height: 46px; width: auto; transition: opacity .3s var(--ease), height .3s var(--ease); }
.logo .logo-paper { position: absolute; left: 0; top: 0; }
.site-head:not(.stuck) .logo-ink, .site-head.stuck .logo-paper { opacity: 0; }
.site-head.stuck .logo img { height: 36px; }
.bag { position: relative; background: none; border: 0; padding: 4px; cursor: pointer; color: inherit; display: inline-flex; }
.bag-count { position: absolute; right: -6px; top: -4px; min-width: 18px; height: 18px; background: var(--paper); color: var(--ink); font: 600 11px/18px var(--sans); text-align: center; letter-spacing: 0; transition: background-color .3s var(--ease), color .3s var(--ease); }
.site-head.stuck .bag-count { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; background: none; border: 1px solid currentColor; color: inherit; font: 600 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 9px 12px; cursor: pointer; }
.mobile-menu { grid-column: 1 / -1; display: grid; gap: 4px; padding-top: 12px; }
.mobile-menu a { font-family: var(--serif); font-size: 15px; letter-spacing: .2em; text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* 1. Hero (kept; quieter copy) */
.hero { position: relative; height: min(100vh, 900px); min-height: 560px; overflow: hidden; background: #1d1a22; }
.hero .hero-picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 50% 50%; }
/* Headline shade: a light left wash plus a soft ellipse centred on the headline, so the white h1
   holds 3:1 or better even over the film's brightest frames (measured; v1's wash alone gave 2.1:1). */
.hero .hero-picture::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(ellipse 42% 34% at 24% 51%, rgba(27, 20, 84, .56) 0%, rgba(27, 20, 84, .48) 55%, rgba(27, 20, 84, 0) 100%),
  linear-gradient(90deg, rgba(27, 20, 84, .32) 0%, rgba(27, 20, 84, .14) 40%, rgba(27, 20, 84, 0) 66%); }
.hero-copy { position: absolute; z-index: 2; left: max(4.5vw, var(--gut)); top: 44%; color: var(--white); max-width: 760px; text-shadow: 0 1px 28px rgba(27, 20, 84, .35); }
.quick { position: absolute; z-index: 2; right: max(2.5vw, var(--gutR)); bottom: 9%; display: grid; grid-template-columns: 72px auto auto; gap: 18px; align-items: center; padding: 12px 12px 12px 14px; background: rgba(143, 136, 114, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(251, 250, 246, .35); color: var(--white); }
.quick img { width: 72px; height: 72px; object-fit: cover; background: #EDE8E0; }
.quick-name { font-size: 12.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.quick-price { font-size: 14px; letter-spacing: .08em; }
.quick .btn { min-height: 46px; padding: 0 22px; }

/* 2. The practice: one full-width band of six tiles, edge to edge.
   Widths move with flex-grow, colour with a grayscale filter, both on the same 600 ms curve.
   The photo is a fixed-width frame centred in its tile, so widening reveals it and never rescales it.
   The copy has a fixed width, so nothing re-wraps while a tile moves. */
.acc { scroll-margin-top: 64px; }
.acc-row { display: flex; height: clamp(500px, 76vh, 760px); background: var(--paper-2); }
.acc-tile { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer; transition: flex-grow .6s var(--ease); }
.acc-tile.open { flex-grow: 2.6; cursor: default; }
.acc-tile > img { position: absolute; top: 0; left: 50%; width: max(100%, 36vw); max-width: none; height: 100%; object-fit: cover; object-position: 50% 40%; transform: translateX(-50%); filter: grayscale(1); transition: filter .6s var(--ease); will-change: filter; }
.acc-tile.open > img { filter: grayscale(0); }
/* These three subjects sit low in their photos; raise them clear of the label (empty wall is cropped) */
@media (min-width: 901px) {
  .acc-tile[data-key="peptides"] > img, .acc-tile[data-key="shop"] > img, .acc-tile[data-key="bulletin"] > img { top: -16%; height: 116%; }
}
.acc-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(0deg, rgba(250, 250, 248, .66) 0%, rgba(250, 250, 248, 0) 100%); pointer-events: none; }
.acc-copy { position: absolute; z-index: 1; left: 50%; bottom: clamp(28px, 5vh, 46px); width: 360px; margin-left: -180px; text-align: center; transition: transform .6s var(--ease); }
.acc-tile.open .acc-copy { transform: translateY(calc(-1 * var(--lift, 84px))); }
.acc-label { background: none; border: 0; padding: 4px 10px; cursor: pointer; font-family: var(--serif); font-weight: 300; font-size: clamp(1.25rem, 1.65vw, 1.6rem); line-height: 1.2; color: var(--ink); white-space: nowrap; }
.acc-tile.open .acc-label { cursor: default; }
.acc-more { position: absolute; left: 0; right: 0; top: 100%; padding-top: 12px; display: none; opacity: 0; transform: translateY(10px); transition: opacity .2s var(--ease), transform .2s var(--ease), display .2s allow-discrete; }
.acc-tile.open .acc-more { display: grid; gap: 12px; justify-items: center; opacity: 1; transform: none; transition: opacity .45s var(--ease) .22s, transform .45s var(--ease) .22s; }
@starting-style { .acc-tile.open .acc-more { opacity: 0; transform: translateY(10px); } }
.acc-more p { font-size: 16px; line-height: 1.45; color: var(--text); max-width: 30ch; text-wrap: balance; }
.acc-more .link { font-size: 15px; }

/* Shared split block: text and one 4:5 photo on the 12-column grid */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cg); align-items: center; padding: var(--space) var(--edge); }
.split-copy { display: grid; gap: 28px; justify-items: start; align-content: center; }
.frame { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.frame:hover img { transform: scale(1.03); }

/* 3. Forbes Precision (Bader's subscription block) */
.precision .split-copy { grid-column: 1 / 7; padding-right: clamp(24px, 3vw, 48px); }
.precision .display { font-size: clamp(2.2rem, 3.6vw, 3.25rem); }
.precision .split-media { grid-column: 7 / 13; }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; font-size: 17px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .66em; width: 6px; height: 6px; background: var(--blue); }
.precision .actions { margin-top: 6px; }

/* 4. The science: one full-bleed image, headline on its empty left side */
.science { position: relative; height: min(56.25vw, 88vh); min-height: 520px; overflow: hidden; background: #ECE6DE; }
.science-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.science-copy { position: absolute; left: var(--edge); top: 50%; transform: translateY(-50%); width: min(500px, 38vw); display: grid; gap: 24px; justify-items: start; }
.science .display { font-size: clamp(2.2rem, 3.5vw, 3.15rem); }
.science-copy .lede { color: var(--text); }

/* 5. What to expect (Bader's results-with-tabs) */
.exp .split-media { grid-column: 1 / 7; }
.exp .split-copy { grid-column: 8 / 13; }
.exp-media img { opacity: 0; }
.exp-media img.on { opacity: 1; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.tabs button, .store-tabs button { position: relative; background: none; border: 0; padding: 8px 0; cursor: pointer; font: 500 15px/1.3 var(--sans); color: var(--muted); white-space: nowrap; transition: color .3s var(--ease); }
.tabs button::after, .store-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.tabs button:hover, .store-tabs button:hover, .tabs button[aria-selected="true"], .store-tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after, .store-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.exp-lines { font-family: var(--serif); font-weight: 300; font-size: clamp(1.55rem, 2.3vw, 2.1rem); line-height: 1.2; color: var(--ink); min-height: 2.4em; }
.exp-line { animation: fade-in .5s var(--ease) both; }
@keyframes fade-in { from { opacity: .001; transform: translateY(6px); } }

/* 6. Forbes Health Store (Bader's bestsellers carousel) */
.store { padding: var(--space) 0 0; }
.store-head { display: grid; justify-items: center; gap: 20px; text-align: center; padding: 0 var(--gut); margin-bottom: clamp(36px, 4vw, 56px); }
.store-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; max-width: 100%; }
.carousel { position: relative; }
.track { list-style: none; margin: 0; display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--edge); padding: 0 var(--edge) 6px; scrollbar-width: none; transition: opacity .25s var(--ease); }
.track::-webkit-scrollbar { display: none; }
.track.fading { opacity: 0; }
.track:focus-visible { outline-offset: -2px; }
.pcard { flex: 0 0 var(--card); scroll-snap-align: start; display: grid; justify-items: center; text-align: center; }
.pcard-media { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; cursor: pointer; margin-bottom: 16px; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.03); }
.pcard-name { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.25; color: var(--ink); text-wrap: balance; }
.pcard-price { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 4px; }
.pcard .link { font-size: 14.5px; margin-top: 10px; }
.arrow { position: absolute; z-index: 2; top: calc(var(--card) * .625); width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; padding: 0; background: rgba(250, 250, 248, .94); border: 0; color: var(--ink); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease); }
.arrow:hover { background: var(--ink); color: var(--white); }
.arrow:disabled { opacity: 0; pointer-events: none; }
.arrow.prev { left: max(10px, calc(var(--edge) - 58px)); }
.arrow.next { right: max(10px, calc(var(--edge) - 58px)); }
.store-foot { display: flex; justify-content: center; padding: clamp(36px, 4vw, 52px) var(--gut) 0; }

/* 8. Booking + footer: one closing indigo card, inset to the 16px page gutter */
.book { padding: var(--space) var(--gutR) 0 var(--gut); }
.site-foot { padding: 0 var(--gutR) var(--gut) var(--gut); color: rgba(251, 250, 246, .9); font-size: 15px; }
.closing { position: relative; background: var(--ink); color: rgba(251, 250, 246, .9); padding-left: 22px; padding-right: 22px; }
.closing-top { padding-top: 112px; }
.closing-bottom { padding-top: 64px; overflow: hidden; }
.closing :focus-visible { outline-color: var(--white); }
.closing ::selection { background: var(--white); color: var(--ink); }
.closing .contact-line, .closing .book-side, .foot-grid > * { padding-top: 20px; background: linear-gradient(var(--hair-light), var(--hair-light)) no-repeat 0 0 / 100% 1px; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.book-h { font-family: var(--serif); font-weight: 300; color: var(--white); font-size: clamp(2.7rem, 7vw, 7rem); line-height: .96; letter-spacing: -.022em; max-width: 11em; text-wrap: balance; overflow-wrap: break-word; padding-bottom: 16px; }
.book-side { display: grid; gap: 24px; justify-items: start; }
.nw { white-space: nowrap; }
.book-lede { font-size: 18px; line-height: 1.55; color: rgba(251, 250, 246, .8); }
.contact-line { display: grid; gap: 8px; align-content: start; }
.contact-label { font-size: 15px; color: rgba(251, 250, 246, .62); font-weight: 500; }
.big-line { font-family: var(--serif); font-weight: 300; color: var(--white); font-size: clamp(1.55rem, 2.15vw, 2.05rem); line-height: 1.18; overflow-wrap: anywhere; justify-self: start; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(251, 250, 246, .32); text-underline-offset: .22em; transition: text-decoration-color .3s var(--ease); }
.big-line:hover { text-decoration-color: currentColor; }
.closing .foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; align-content: start; justify-items: start; font-size: 16px; }
.place { display: grid; gap: 10px; align-content: start; justify-items: start; }
.place-h { font-family: var(--sans); font-size: 15px; font-weight: 500; color: rgba(251, 250, 246, .64); }
.place-addr { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 1.9vw, 1.8rem); line-height: 1.22; color: var(--white); }
.place-link, .foot-nav a { color: rgba(251, 250, 246, .86); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(251, 250, 246, .3); text-underline-offset: .32em; transition: color .3s var(--ease), text-decoration-color .3s var(--ease); }
.foot-nav a { text-decoration-color: transparent; }
.place-link:hover, .foot-nav a:hover { color: var(--white); text-decoration-color: currentColor; }
.place-link { font-size: 15px; margin-top: 2px; }
.foot-fine { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 56px; font-size: 13.5px; line-height: 1.55; color: rgba(251, 250, 246, .62); }
.foot-fine p { max-width: 36em; }
.foot-fine .foot-creds { color: rgba(251, 250, 246, .8); }
.foot-mark { width: 76%; aspect-ratio: 111.29 / 70; overflow: hidden; margin-top: 44px; line-height: 0; }
.foot-mark img { width: calc(100% * 602.47 / 111.29); max-width: none; height: auto; }

/* Product pop-up (kept) */
dialog.product, dialog.reg-dlg { padding: 0; border: 0; background: var(--paper); color: var(--text); overflow: auto; max-height: calc(100vh - 32px); }
dialog.product { width: min(1180px, calc(100vw - 32px)); }
dialog.product::backdrop, dialog.reg-dlg::backdrop { background: rgba(27, 20, 84, .38); }
dialog[open] { animation: dlg-in .35s var(--ease) both; }
@keyframes dlg-in { from { opacity: .001; transform: translateY(10px); } }
.pd-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; }
.pd-media { background: #EDE8E0; min-height: 420px; }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-media img.studio { object-fit: contain; padding: 6%; }
.pd-info { position: relative; padding: clamp(28px, 3.4vw, 52px); display: grid; gap: 20px; align-content: center; justify-items: start; }
.pd-info > * { justify-self: stretch; }
.pd-info > .link { justify-self: start; }
.pd-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; background: none; border: 1px solid var(--line); font-size: 24px; line-height: 1; color: var(--ink); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.pd-close:hover { background: var(--ink); color: var(--white); }
.pd-title { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.pd-title img { width: 128px; height: 128px; object-fit: cover; background: #EDE8E0; }
.pd-title h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1.02; color: var(--ink); }
.pd-slogan { font-size: 18px; color: var(--ink); margin-top: 8px; }
.pd-price { font-family: var(--serif); font-weight: 300; font-size: 2.2rem; color: var(--ink); }
.pd-buy { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.pd-buy select { height: 50px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 400 18px var(--serif); padding: 0 14px; border-radius: 0; }
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.four > div { padding: 2px 28px; border-left: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.four > div:first-child { border-left: 0; padding-left: 0; }
.four dt { font-size: 12.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.four dd { font-size: 19px; color: var(--ink); line-height: 1.4; }
.pd-four { padding: 40px clamp(28px, 3.4vw, 52px) 10px; border-top: 1px solid var(--line); }
.pd-key { padding: 22px clamp(28px, 3.4vw, 52px); display: grid; gap: 6px; }
.pd-key p:last-child { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); font-weight: 300; }
.pd-fda { padding: 0 clamp(28px, 3.4vw, 52px) 34px; }

/* Build my regimen pop-up */
dialog.reg-dlg { width: min(1120px, calc(100vw - 32px)); padding: clamp(28px, 4vw, 56px); }
.reg-grid { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.reg-side { display: grid; gap: 24px; align-content: start; }
.reg-h { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.1; color: var(--ink); text-wrap: balance; padding-right: 40px; }
.reg-help { font-size: 16px; color: var(--muted); }
.progress { height: 2px; background: var(--line); position: relative; }
.progress span { position: absolute; left: 0; top: -1px; height: 4px; background: var(--ink); width: 25%; transition: width .4s var(--ease); }
.reg-dlg .btn-primary:disabled { background: transparent; color: var(--muted); border-color: rgba(27, 20, 84, .35); }
.reg-actions { display: flex; align-items: center; gap: 22px; }
.reg-actions .btn { min-width: 200px; }
.reg-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt { position: relative; background: var(--paper-2); border: 0; padding: 0; cursor: pointer; overflow: hidden; aspect-ratio: 1.18; text-align: left; color: var(--white); }
.opt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.opt:hover img { transform: scale(1.03); }
.opt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(27, 20, 84, .5) 0%, rgba(27, 20, 84, 0) 50%); }
.opt .opt-name { position: absolute; z-index: 2; left: 18px; bottom: 14px; font-family: var(--serif); font-weight: 300; font-size: clamp(1.35rem, 1.9vw, 1.8rem); line-height: 1.05; }
.opt .tick { position: absolute; z-index: 2; right: 12px; top: 12px; width: 28px; height: 28px; border: 1px solid rgba(251, 250, 246, .9); display: grid; place-items: center; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.opt[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--ink); }
.opt[aria-pressed="true"] .tick { background: var(--ink); border-color: var(--ink); }
.opt[aria-pressed="true"] .tick::before { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg) translate(1px, -1px); }
.opt-text { aspect-ratio: auto; min-height: 112px; background: var(--paper-2); color: var(--ink); padding: 20px; display: grid; align-content: space-between; gap: 16px; }
.opt-text::after { display: none; }
.opt-text .opt-name { position: static; color: var(--ink); font-size: clamp(1.25rem, 1.7vw, 1.55rem); }
.opt-text .opt-note { font-size: 14.5px; color: var(--muted); }
.opt-text .tick { border-color: var(--ink); }
.reg-results { grid-column: 1 / -1; display: grid; gap: 22px; }
.all-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 18px; width: 100%; }
.card { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; display: grid; gap: 8px; color: var(--ink); }
.card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #EDE8E0; transition: transform .5s var(--ease); }
.card b { font-family: var(--serif); font-weight: 400; font-size: 18px; line-height: 1.2; }
.card span { font-size: 14px; color: var(--muted); }
.card i { font-style: normal; font-size: 15px; font-variant-numeric: tabular-nums; }
.note { background: var(--paper-2); padding: 18px 22px; font-size: 16px; color: var(--ink); }

/* Toast */
.toast { position: fixed; z-index: 60; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 14px 22px; font-size: 14px; letter-spacing: .06em; }

/* Desktop grid for the closing card */
@media (min-width: 961px) {
  .closing { padding-left: calc(var(--edge) - var(--gut)); padding-right: calc(var(--edge) - var(--gutR)); }
  .closing-top { padding-top: clamp(112px, 11vw, 160px); }
  .closing-bottom { padding-top: clamp(64px, 6vw, 92px); }
  .book-grid, .closing .foot-grid, .foot-fine { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cg); }
  .book-grid { row-gap: clamp(56px, 6vw, 88px); }
  .book-h { grid-column: 1 / -1; padding-bottom: 0; }
  .book-side { grid-column: 1 / 5; }
  .book-grid > .contact-line:nth-child(3) { grid-column: 5 / 9; }
  .book-grid > .contact-line:nth-child(4) { grid-column: 9 / 13; }
  .foot-nav { grid-column: 1 / 5; }
  .foot-grid > .place:nth-child(2) { grid-column: 5 / 9; }
  .foot-grid > .place:nth-child(3) { grid-column: 9 / 13; }
  .foot-fine { margin-top: clamp(64px, 6vw, 96px); }
  .foot-fine p { grid-column: span 4; }
  .foot-mark { width: auto; aspect-ratio: auto; margin-top: clamp(40px, 4vw, 64px); }
  .foot-mark img { width: 100%; margin-bottom: -5%; }
}

/* Phones and small tablets */
@media (max-width: 960px) {
  .nav-left, .nav-right a { display: none; }
  .site-head { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .menu-btn { display: inline-flex; grid-column: 1; grid-row: 1; justify-self: start; }
  .logo { grid-column: 2; grid-row: 1; }
  .nav-right { grid-column: 3; grid-row: 1; gap: 14px; }
  .logo img, .site-head.stuck .logo img { height: 30px; }
  .hero { height: 88svh; min-height: 520px; }
  .hero-img { object-position: 62% 50%; }
  .hero-copy { top: auto; bottom: 150px; left: var(--gut); right: var(--gutR); }
  .quick { left: var(--gut); right: var(--gutR); bottom: 22px; grid-template-columns: 56px 1fr auto; }
  .quick img { width: 56px; height: 56px; }
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 0; }
  .four > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .pd-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-media { min-height: 0; aspect-ratio: 4 / 3; }
  .pd-title img { width: 96px; height: 96px; }
  .reg-grid { grid-template-columns: minmax(0, 1fr); }
  .reg-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The band becomes a stacked accordion: rows open by height on the same curve */
@media (max-width: 900px) {
  .acc-row { flex-direction: column; height: auto; }
  /* flex-basis, not flex: none, so crossing the breakpoint never animates flex-grow from 0 */
  .acc-tile { flex-basis: auto; height: 96px; transition: height .6s var(--ease); }
  .acc-tile.open { height: min(118vw, 520px); }
  .acc-tile > img { top: 50%; left: 0; width: 100%; height: min(118vw, 520px); transform: translateY(-50%); }
  .acc-copy { left: var(--gut); right: var(--gutR); width: auto; margin-left: 0; bottom: 28px; }
  .acc-label { font-size: 1.4rem; }
  /* an open row is narrow: a stronger paper scrim fades in under its copy */
  .acc-tile::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(0deg, rgba(250, 250, 248, .9) 0%, rgba(250, 250, 248, .66) 42%, rgba(250, 250, 248, 0) 100%); opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); will-change: opacity; }
  .acc-tile.open::before { opacity: 1; }
  .acc-copy { z-index: 2; }
  .display, .precision .display, .science .display { font-size: 2rem; }

  .split { grid-template-columns: minmax(0, 1fr); row-gap: 40px; padding: 88px var(--gutR) 88px var(--gut); }
  .precision .split-copy, .precision .split-media, .exp .split-media, .exp .split-copy { grid-column: 1; }
  .exp .split-copy { grid-row: 2; }

  .science { height: auto; min-height: 0; background: var(--paper); }
  .science-img { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 82% 50%; }
  .science-copy { position: static; transform: none; width: auto; padding: 40px var(--gutR) 0 var(--gut); }

  .store { padding-top: 88px; }
  .store-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 0 2px; gap: 0 22px; width: 100%; }
  .store-tabs::-webkit-scrollbar { display: none; }
  :root { --card: 62vw; }
  .arrow { display: none; }

  .book { padding-top: 88px; }
}
@media (max-width: 520px) {
  .four { grid-template-columns: minmax(0, 1fr); }
  .four > div { border-left: 0; padding-left: 0; }
  .reg-actions { flex-wrap: wrap; }
  .reg-actions .btn { min-width: 0; width: 100%; }
  .btn { padding: 0 22px; letter-spacing: .18em; }
  .quick .btn { padding: 0 14px; }
  .quick-name { letter-spacing: .14em; }
  .big-line { font-size: 1.38rem; }
}
@media (max-width: 960px) {
  /* the headline sits low on phones and tablets: shade from the bottom */
  .hero .hero-picture::after { background: linear-gradient(0deg, rgba(27, 20, 84, .76) 0%, rgba(27, 20, 84, .58) 42%, rgba(27, 20, 84, 0) 78%); }
}
@media (max-width: 700px) {
  .hero-img.hero-reel { object-position: 50% 50%; }
}

/* Scroll-driven touches, kept to two: the hero film eases back, the wordmark rises */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero { view-timeline: --hero block; }
    .hero .hero-picture { transform-origin: 50% 0; animation: hero-back linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    @keyframes hero-back { to { transform: translate3d(0, 24%, 0) scale(1.04); opacity: .6; } }
    .foot-mark img { animation: mark-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes mark-rise { from { transform: translate3d(0, 34%, 0); opacity: .3; } }
  }
}
/* ============ Option E (17 Nov): Robert's structure in the Option D look ============ */

/* Hero: Robert's welcome line, smaller, low on the left */
.hero-copy { top: auto; bottom: 12%; max-width: 640px; }
.hero-eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 16px; color: rgba(251, 250, 246, .94); }
.hero-copy h1 { font-size: clamp(2.1rem, 3.5vw, 3.2rem); line-height: 1.08; max-width: 13em; }
.hero .hero-picture::after { background:
  radial-gradient(ellipse 46% 34% at 22% 80%, rgba(27, 20, 84, .58) 0%, rgba(27, 20, 84, .46) 55%, rgba(27, 20, 84, 0) 100%),
  linear-gradient(0deg, rgba(27, 20, 84, .34) 0%, rgba(27, 20, 84, 0) 52%); }

/* Accordion: an open panel grows as wide as its menu needs; the others narrow */
.acc-tile.open { flex-grow: var(--grow, 2.6); }
.acc-tile.has-panel::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 68%; background: linear-gradient(0deg, rgba(250, 250, 248, .97) 0%, rgba(250, 250, 248, .9) 50%, rgba(250, 250, 248, 0) 100%); opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.acc-tile.has-panel.open::before { opacity: 1; }
.acc-tile.has-panel .acc-copy { transition: opacity .4s var(--ease) .25s, transform .6s var(--ease); }
.acc-tile.has-panel.open .acc-copy { opacity: 0; transform: none; transition: opacity .18s var(--ease); }
.acc-panel { position: absolute; z-index: 2; left: clamp(28px, 3.2vw, 52px); bottom: clamp(30px, 5.5vh, 56px); width: var(--pw, 400px); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s; }
.acc-tile.open .acc-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease) .28s, transform .5s var(--ease) .28s, visibility 0s; }
.acc-h { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 2.6vw, 2.6rem); line-height: 1.05; color: var(--ink); margin: 0 0 16px; }
.acc-list { list-style: none; padding: 0; margin: 0; }
.acc-list.cols { columns: 2; column-gap: 28px; }
.acc-list li { break-inside: avoid; }
.acc-list a { display: block; padding: 9px 0; font-family: var(--serif); font-weight: 400; font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.25; color: var(--ink); text-decoration: none; border-top: 1px solid rgba(27, 20, 84, .14); transition: padding-left .3s var(--ease), color .3s var(--ease); }
.acc-list a:hover, .acc-list a:focus-visible { padding-left: 6px; color: var(--blue-dk); }
.acc-actions { margin-top: 18px; }
.acc-actions .link { font-size: 15px; text-align: left; }

/* The statement of purpose, as a caption under the accordion */
.statement { padding: clamp(44px, 5.5vw, 80px) var(--edge) 0; display: grid; gap: 16px; }
.statement-h { font-family: var(--serif); font-weight: 300; color: var(--ink); font-size: clamp(1.6rem, 2.5vw, 2.35rem); line-height: 1.2; max-width: 28em; text-wrap: balance; }
.statement + .exp { padding-top: clamp(72px, 8vw, 120px); }

/* Intake dialog: image and a changing fact on the left, one question at a time on the right */
dialog.gate { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--white); color: var(--text); }
dialog.gate::backdrop { background: rgba(27, 20, 84, .38); }
.gate-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 100%; }
.gate-media { position: relative; overflow: hidden; background: var(--paper-2); }
.gate-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; transition: opacity .5s var(--ease); }
.gate-media img.swap { opacity: 0; }
.gate-fact, .tx-fact { position: absolute; z-index: 2; left: clamp(24px, 3vw, 48px); bottom: clamp(24px, 4vh, 48px); max-width: min(30em, calc(100% - 48px)); padding: 22px 24px; background: rgba(250, 250, 248, .93); display: grid; gap: 8px; }
.gate-fact-t, .tx-fact-t { font-family: var(--serif); font-weight: 300; font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.28; color: var(--ink); }
.gate-fact-t.in, .tx-fact-t.in { animation: fade-in .5s var(--ease) both; }
.gate-panel { overflow: auto; }
.gate-close { position: fixed; top: 16px; right: 16px; z-index: 3; background: var(--white); }

/* The questionnaire itself (shared by the dialog and the treatment pages) */
.ix { min-height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(24px, 4vh, 48px) clamp(20px, 4vw, 64px); }
.ix-top, .ix-body, .ix-privacy { width: 100%; max-width: 460px; margin: 0 auto; }
.ix-top { display: grid; gap: 10px; }
.ix-progress { height: 2px; background: var(--line); position: relative; }
.ix-progress span { position: absolute; left: 0; top: -1px; height: 4px; background: var(--ink); width: 4%; transition: width .45s var(--ease); }
.ix-count { font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ix-body { align-self: center; display: grid; gap: 14px; padding: 36px 0; }
.ix-body.ix-in { animation: fade-in .45s var(--ease) both; }
.ix-q { font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.12; color: var(--ink); text-wrap: balance; outline: none; }
.ix-help { font-size: 15px; color: var(--muted); }
.ix-opts { display: grid; gap: 8px; margin-top: 6px; }
.ix-opt { display: grid; gap: 2px; width: 100%; text-align: left; padding: 15px 18px; background: var(--paper-2); border: 0; cursor: pointer; font-family: var(--sans); font-size: 16px; line-height: 1.35; color: var(--ink); transition: background-color .25s var(--ease), color .25s var(--ease); }
.ix-opt:hover { background: #E3E5DB; }
.ix-opt[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.ix-opt-n { font-size: 13.5px; color: var(--muted); }
.ix-opt[aria-pressed="true"] .ix-opt-n { color: rgba(251, 250, 246, .74); }
.ix-nav { display: flex; align-items: center; gap: 22px; margin-top: 12px; }
.ix-nav .btn-primary:disabled { background: transparent; color: var(--muted); border-color: rgba(27, 20, 84, .35); }
.ix-privacy { font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.ix-result { display: grid; gap: 20px; }
.ix-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.ix-card { display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--ink); }
.ix-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 78% 50%; background: var(--paper-2); transition: opacity .3s var(--ease); }
.ix-card:hover img { opacity: .86; }
.ix-card-a { font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ix-card-t { font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.ix-card:hover .ix-card-t { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }

/* Treatment pages: one full-bleed image, about fifty words, two choices.
   Choosing the questionnaire slides a white panel in from the right; the image keeps the left half. */
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(27, 20, 84, .5); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tx-hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; background: var(--paper-2); }
.tx-media { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; overflow: hidden; transition: width .8s var(--ease); }
.tx-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; transition: object-position .8s var(--ease); }
.tx-copy { position: absolute; z-index: 2; left: var(--edge); top: 50%; transform: translateY(-40%); width: min(540px, 44vw); display: grid; gap: 22px; justify-items: start; transition: opacity .35s var(--ease), transform .6s var(--ease); }
.tx-copy h1 { color: var(--ink); font-size: clamp(2.4rem, 4vw, 3.8rem); text-wrap: balance; }
.tx-copy .lede { color: var(--text); max-width: 31em; }
.tx-crumb { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.tx-crumb:hover { color: var(--ink); }
.tx-choices { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.tx-note { font-size: 14.5px; color: var(--muted); margin-top: -8px; }
.ix-result .ix-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ix-result .ix-card-t { font-size: 16px; }
.tx-fact { opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
.tx-panel { position: absolute; z-index: 3; top: 0; right: 0; bottom: 0; width: 50%; background: var(--white); transform: translateX(100%); transition: transform .8s var(--ease); overflow: auto; padding-top: 112px; }
.tx-close { position: absolute; top: 82px; right: clamp(20px, 3vw, 40px); z-index: 2; font-size: 14.5px; }
.tx-asking .tx-media { width: 50%; }
.tx-asking .tx-media img { object-position: 96% 50%; }
.tx-asking .tx-copy { opacity: 0; pointer-events: none; transform: translateY(-44%); }
.tx-asking .tx-fact { opacity: 1; visibility: visible; transition: opacity .5s var(--ease) .55s, visibility 0s; }
.tx-asking .tx-panel { transform: none; }
.tx-band { padding: var(--space) var(--edge) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cg); row-gap: 36px; align-items: start; }
.tx-band .display { grid-column: 1 / 6; }
.tx-steps { grid-column: 7 / 13; list-style: none; padding: 0; margin: 0; }
.tx-steps li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); }
.tx-steps b { font-family: var(--serif); font-weight: 300; font-size: 1.5rem; line-height: 1.1; color: var(--ink); }
.tx-steps span { font-size: 17px; color: var(--text); }
.tx-related { padding: var(--space) var(--edge) 0; display: grid; gap: 28px; }
.tx-related .ix-cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.tx-related .ix-card-t { font-size: 20px; }

@media (max-width: 900px) {
  .acc-panel { left: var(--gut); right: var(--gutR); width: auto; bottom: 26px; }
  .acc-list.cols { columns: 1; }
  .acc-tile.has-panel.open { height: max(min(118vw, 520px), var(--open-h, 0px)); }
  .acc-tile.has-panel.open > img { top: 0; transform: none; }
  .statement { padding: 48px var(--gutR) 0 var(--gut); }
  .gate-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: 28vh minmax(0, 1fr); }
  .gate-fact { display: none; }
  .tx-hero { height: auto; min-height: 0; overflow: visible; background: var(--paper); }
  .tx-media { position: relative; height: 64vw; min-height: 260px; width: 100% !important; }
  .tx-media img { object-position: 78% 50% !important; }
  .tx-copy { position: static; transform: none !important; width: auto; padding: 32px var(--gutR) 0 var(--gut); }
  .tx-fact { display: none; }
  .tx-panel { position: fixed; inset: 0; z-index: 40; width: 100%; transform: translateY(100%); padding-top: 56px; }
  .tx-close { top: 16px; }
  .tx-band { grid-template-columns: minmax(0, 1fr); padding: 88px var(--gutR) 0 var(--gut); }
  .tx-band .display, .tx-steps { grid-column: 1; }
  .tx-related { padding: 88px var(--gutR) 0 var(--gut); }
}
@media (max-width: 960px) {
  .hero-copy { bottom: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ============ Robert's direction (17 Nov): Hers-style open book, rounded panels, Medical LF ============ */
:root { --r: 22px; --r-sm: 14px; --promo-h: 42px; }
.btn { border-radius: 999px; }
.quick { border-radius: var(--r); }
.quick img { border-radius: 12px; }
.frame { border-radius: var(--r); }
.ix-opt { border-radius: var(--r-sm); }
.ix-card img { border-radius: var(--r-sm); }
.gate-fact, .tx-fact { border-radius: var(--r-sm); }

/* The drop-down announcement (Robert's Bader-style promotion idea) */
.promo { position: relative; z-index: 21; height: 0; overflow: hidden; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; padding: 0 52px; font-size: 13.5px; letter-spacing: .04em; transition: height .6s var(--ease); }
body.promo-on .promo { height: var(--promo-h); }
.promo p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-color: rgba(251, 250, 246, .5); transition: text-decoration-color .3s var(--ease); }
.promo-link:hover { text-decoration-color: currentColor; }
.promo-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.promo :focus-visible { outline-color: var(--white); }
.site-head:not(.stuck) { transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), top .6s var(--ease); }
body.promo-on .site-head:not(.stuck) { top: var(--promo-h); }
@media (max-width: 700px) { .promo-long { display: none; } .promo { font-size: 13px; } }

/* Hero tagline under Robert's welcome line */
.hero-tag { margin-top: 16px; font-size: 12.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: rgba(251, 250, 246, .9); }

/* A short introduction under the hero, about the visitor */
.intro { padding: clamp(72px, 8vw, 120px) var(--edge) clamp(56px, 6vw, 88px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cg); row-gap: 28px; align-items: start; }
.intro-head { grid-column: 1 / 6; display: grid; gap: 18px; }
.intro-h { font-family: var(--serif); font-weight: 300; color: var(--ink); font-size: clamp(2.2rem, 3.6vw, 3.3rem); line-height: 1.06; letter-spacing: -.01em; text-wrap: balance; }
.intro-body { grid-column: 7 / 13; display: grid; gap: 16px; font-size: 18px; line-height: 1.6; color: var(--text); padding-top: 32px; }
.intro-body p { max-width: 34em; }
.intro-body .actions { margin-top: 12px; }

/* The accordion as rounded panels with a small gap, inside the page gutters */
.acc { padding: 0 var(--gutR) 0 var(--gut); }
.acc-row { gap: 10px; background: transparent; }
.acc-tile { border-radius: var(--r); isolation: isolate; }

/* Medical LF on the homepage */
.lf { padding: var(--space) var(--edge) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cg); row-gap: 40px; align-items: start; }
.lf-head { grid-column: 1 / 5; display: grid; gap: 22px; justify-items: start; position: sticky; top: 110px; }
.lf-cards { grid-column: 6 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.lf-card { display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--ink); }
.lf-card-img { display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 16 / 10; background: var(--paper-2); isolation: isolate; }
.lf-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 82% 50%; transition: transform .6s var(--ease); }
.lf-card:hover .lf-card-img img { transform: scale(1.03); }
.lf-card-c { margin-top: 10px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lf-card-t { font-family: var(--serif); font-weight: 300; font-size: clamp(1.3rem, 1.6vw, 1.55rem); line-height: 1.18; text-wrap: balance; }
.lf-card-d { font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.lf-card:hover .lf-card-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.lf-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Treatment pages: the open book. The image becomes a rounded page on the left; the questionnaire sits on white. */
.tx-hero { transition: background-color .6s var(--ease); }
.tx-hero.tx-asking { background: var(--white); }
.tx-instant, .tx-instant * { transition: none !important; }
.tx-lf { font-size: 15px; text-align: left; }
@media (min-width: 901px) {
  .tx-media { transition: width .8s var(--ease), top .8s var(--ease), bottom .8s var(--ease), left .8s var(--ease), border-radius .8s var(--ease); }
  .tx-asking .tx-media { top: 92px; bottom: 20px; left: 20px; width: calc(50% - 30px); border-radius: var(--r); }
  .tx-asking .tx-fact { left: 48px; bottom: 48px; }
}

/* Medical LF: library and article pages */
.page-top { padding: 150px var(--edge) 0; }
.lib-head { display: grid; gap: 20px; max-width: 760px; }
.lib-h { font-family: var(--serif); font-weight: 300; color: var(--ink); font-size: clamp(3.2rem, 8vw, 6.6rem); line-height: .96; letter-spacing: -.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.chip { border: 1px solid rgba(27, 20, 84, .24); background: transparent; border-radius: 999px; padding: 9px 17px; font-family: var(--sans); font-size: 14.5px; color: var(--ink); cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.lib-grid { padding: 44px var(--edge) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.lib-grid.in > * { animation: fade-in .45s var(--ease) both; }
.art-hero { margin: 104px var(--gutR) 0 var(--gut); border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 8; background: var(--paper-2); isolation: isolate; }
.art-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 82% 50%; }
.art-wrap { padding: 64px var(--edge) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cg); }
.art-main { grid-column: 1 / 8; display: grid; gap: 16px; justify-items: start; }
.art-side { grid-column: 9 / 13; }
.art-cat { margin-top: 18px; }
.art-h { color: var(--ink); font-size: clamp(2.4rem, 4.2vw, 3.8rem); text-wrap: balance; }
.art-meta { font-size: 14px; color: var(--muted); }
.art-body { margin-top: 28px; font-size: 18px; line-height: 1.7; color: var(--text); justify-self: stretch; }
.art-body p, .art-body ul { margin: 0 0 1.1em; max-width: 36em; }
.art-body h2 { font-family: var(--serif); font-weight: 300; color: var(--ink); font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.15; margin: 1.7em 0 .55em; text-wrap: balance; }
.art-body h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; color: var(--ink); margin: 1.3em 0 .35em; }
.art-body ul { padding-left: 1.2em; }
.art-body li { margin: .4em 0; }
.art-body strong { color: var(--ink); font-weight: 600; }
.art-body .tbl { overflow-x: auto; margin: 0 0 .8em; }
.art-body table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.45; }
.art-body th, .art-body td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.art-body th { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.art-body .note { font-size: 14.5px; color: var(--muted); }
.art-disc { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 42em; }
.art-card { position: sticky; top: 110px; background: var(--paper-2); border-radius: var(--r); padding: 30px; display: grid; gap: 14px; justify-items: start; }
.art-card h2 { font-family: var(--serif); font-weight: 300; font-size: 1.65rem; line-height: 1.15; color: var(--ink); text-wrap: balance; }
.art-card p:not(.eyebrow) { font-size: 15.5px; color: var(--muted); }
.art-card .btn { margin-top: 6px; }

@media (max-width: 1200px) and (min-width: 901px) { .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1fr); padding: 72px var(--gutR) 56px var(--gut); }
  .intro-head, .intro-body { grid-column: 1; }
  .intro-body { padding-top: 0; font-size: 17px; }
  .acc-row { gap: 8px; }
  .lf { grid-template-columns: minmax(0, 1fr); padding: 88px var(--gutR) 0 var(--gut); }
  .lf-head, .lf-cards { grid-column: 1; }
  .lf-head { position: static; }
  .lf-cards, .lf-row { grid-template-columns: minmax(0, 1fr); }
  .page-top { padding: 112px var(--gutR) 0 var(--gut); }
  .lib-grid { grid-template-columns: minmax(0, 1fr); padding: 36px var(--gutR) 0 var(--gut); gap: 40px; }
  .art-hero { margin-top: 76px; aspect-ratio: 16 / 10; }
  .art-wrap { grid-template-columns: minmax(0, 1fr); padding: 36px var(--gutR) 0 var(--gut); }
  .art-main, .art-side { grid-column: 1; }
  .art-side { margin-top: 48px; }
  .art-card { position: static; }
  .art-body { font-size: 17px; }
}

/* Nav: six links plus the bag need tighter type than Option D; the Menu button takes over below 1100px */
.nav-left, .nav-right { gap: 28px; font-size: 13px; letter-spacing: .2em; }
@media (max-width: 1320px) and (min-width: 1101px) { .nav-left, .nav-right { gap: 20px; font-size: 12.5px; letter-spacing: .14em; } .logo img { height: 40px; } }
@media (max-width: 1100px) and (min-width: 961px) {
  .nav-left, .nav-right a { display: none; }
  .site-head { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .menu-btn { display: inline-flex; grid-column: 1; grid-row: 1; justify-self: start; }
  .logo { grid-column: 2; grid-row: 1; }
  .nav-right { grid-column: 3; grid-row: 1; }
}
.nav-left a, .nav-right a { white-space: nowrap; }

/* Article extras for the Bulletin essays: key takeaways, pull quotes and a formula line */
.art-body .takeaways { list-style: none; padding: 22px 26px; margin: 0 0 1.6em; background: var(--paper-2); display: grid; gap: 12px; max-width: 38em; }
.art-body .takeaways li { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.art-body blockquote { margin: 1.6em 0; padding: 0 0 0 22px; border-left: 2px solid var(--ink); font-family: var(--serif); font-weight: 300; font-size: clamp(1.3rem, 1.9vw, 1.65rem); line-height: 1.3; color: var(--ink); max-width: 26em; }
.art-body .formula { font-family: var(--serif); font-size: clamp(1.2rem, 1.7vw, 1.5rem); color: var(--ink); padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Play button for the hero film, shown only when the phone refuses to start it (see app.js) */
.hero-play { position: absolute; z-index: 3; left: 50%; top: 34%; width: 68px; height: 68px; margin: -34px 0 0 -34px; padding: 0 0 0 4px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(27, 20, 84, .58); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 6px 28px rgba(27, 20, 84, .35); transition: background-color .25s ease, transform .25s ease; -webkit-tap-highlight-color: transparent; }
.hero-play:hover, .hero-play:focus-visible { background: rgba(27, 20, 84, .8); transform: scale(1.05); }
.hero-play[hidden] { display: none; }


/* ===== 19 Nov: Robert's home concept, in this site's look ===== */
.hero-tag { max-width: 46em; line-height: 1.7; }


/* ===== 19 Nov evening call: home order and the store spotlight ===== */

/* Store spotlight: one composed block the width of the page. Copy and a photo on top, the shelf beneath. */
.store.spot { margin: var(--space) var(--gutR) 0 var(--gut); padding: 0 0 clamp(40px, 4.5vw, 64px); background: var(--paper-2); border-radius: var(--r); overflow: hidden; scroll-margin-top: 64px; }
.spot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: stretch; }
.spot-copy { grid-column: 1 / 8; min-width: 0; display: grid; gap: 24px; justify-items: start; align-content: center; padding: clamp(48px, 6vw, 96px) clamp(24px, 4vw, 64px) clamp(48px, 6vw, 96px) calc(var(--edge) - var(--gut)); }
.spot-copy .display { font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.02; max-width: 11em; }
.spot-copy .lede { color: var(--text); max-width: 28em; }
.spot-media { grid-column: 8 / 13; position: relative; margin: 0; min-height: clamp(360px, 38vw, 560px); overflow: hidden; }
.spot-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%; }
.store.spot .store-head { margin: clamp(32px, 3.5vw, 48px) 0 clamp(28px, 3vw, 40px); }
.store.spot .store-tabs { scroll-margin-top: 110px; }
.store.spot .track { scroll-padding: 0 calc(var(--edge) - var(--gut)); padding-left: calc(var(--edge) - var(--gut)); padding-right: calc(var(--edge) - var(--gut)); }
.store.spot .arrow.prev { left: max(10px, calc(var(--edge) - var(--gut) - 58px)); }
.store.spot .arrow.next { right: max(10px, calc(var(--edge) - var(--gut) - 58px)); }


@media (max-width: 900px) {
  .spot-top { grid-template-columns: minmax(0, 1fr); }
  .spot-copy { grid-column: 1; padding: 40px 22px 36px; }
  .spot-copy .display { font-size: clamp(1.9rem, 8.4vw, 2.5rem); max-width: 100%; }
  .spot-copy .lede { max-width: 100%; }
  .spot-media { grid-column: 1; grid-row: 1; min-height: 0; height: 62vw; }
  .store.spot .track { padding-left: 22px; padding-right: 22px; scroll-padding: 0 22px; }
}

/* ===== 19 Nov evening call: inner pages follow the weight loss page ===== */
.tx-copy .wl-choices { margin-top: 8px; }
@media (min-width: 901px) {
  /* room for the two choices side by side, as on the weight loss page */
  .tx-page:not(.wl-page) .tx-copy { width: min(640px, 46vw); }
  .tx-copy .wl-choice .btn { padding: 0 24px; }
}


/* ============ 20 Nov afternoon: Robert's brief for "hopefully the last round" ============ */

/* Header, every page, every scroll position: one crisp paper bar, a 1px hairline, the ink logo.
   No tint and no fading edge (Robert: "crispness, precision, a hairline division"). It sits in the page flow
   (sticky), so the hero and the treatment images start below it instead of under it. */
:root { --nav-h: 64px; --hair: rgba(27, 20, 84, .16); }
.site-head, .site-head.stuck { position: sticky; top: 0; z-index: 20; height: var(--nav-h); padding: 0 var(--gutR) 0 var(--gut); color: var(--ink); background-color: var(--paper); box-shadow: 0 1px 0 var(--hair); transition: none; }
.site-head::before, .site-head.stuck::before { display: none; }
.site-head .logo img.logo-ink { opacity: 1; height: 34px; }
.site-head .logo img.logo-paper { display: none; }
.site-head .bag-count { background: var(--ink); color: var(--paper); }
.site-head .mobile-menu { position: absolute; grid-column: auto; grid-row: auto; top: 100%; left: 0; right: 0; padding: 4px var(--gutR) 18px var(--gut); background: var(--paper); box-shadow: 0 1px 0 var(--hair); max-height: calc(100vh - var(--nav-h)); overflow: auto; }
@media (max-width: 1320px) and (min-width: 1101px) { .site-head .logo img.logo-ink { height: 32px; } }
@media (max-width: 960px) { :root { --nav-h: 58px; } .site-head .logo img.logo-ink { height: 26px; } }

/* The hero film now starts under the bar */
.hero { height: min(calc(100vh - var(--nav-h)), 900px); height: min(calc(100svh - var(--nav-h)), 900px); }
@media (max-width: 960px) { .hero { height: 80svh; min-height: 480px; } }

/* Treatment and weight pages: the image starts under the bar; the questionnaire panel no longer clears a floating nav */
.tx-hero { height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); min-height: 600px; }
.tx-panel { padding-top: 56px; }
.tx-close { top: 18px; }
@media (min-width: 901px) { .tx-asking .tx-media { top: 20px; } }
@media (max-width: 900px) { .tx-hero { height: auto; min-height: 0; } }

/* Medical LF pages: the old top padding cleared a fixed bar */
.page-top { padding-top: 72px; }
.art-hero { margin-top: 24px; }
@media (max-width: 900px) { .page-top { padding-top: 48px; } .art-hero { margin-top: 16px; } }

/* Buttons, site-wide: smaller and more discreet (Robert: "on Hims & Hers the buttons are a little more discreet").
   40px tall everywhere, so phone tap targets stay at 40px or more. */
.btn { min-height: 40px; padding: 0 20px; font-size: 11.5px; letter-spacing: .16em; }
.quick .btn { min-height: 40px; padding: 0 18px; }
.wl-choices .wl-choice .btn { padding: 0 20px; }
.reg-actions .btn { min-width: 168px; }
.pd-buy select { height: 40px; font-size: 16px; }
@media (max-width: 520px) { .btn { padding: 0 18px; letter-spacing: .14em; } .quick .btn { padding: 0 14px; } }

/* What to expect, in the weight page's format: one full-bleed photo of one person, the text on the other side */
.exp-hero { margin-top: var(--space); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); min-height: 620px; max-height: 920px; }
.exp-hero .tx-media img { object-position: 74% 40%; }
.exp-hero .display { font-size: clamp(2.2rem, 3.6vw, 3.25rem); }
.exp-four { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 30em; }
.exp-four li { font-size: 17px; line-height: 1.5; color: var(--text); }
.exp-four b { font-family: var(--serif); font-weight: 400; color: var(--ink); }
@media (min-width: 901px) {
  .exp-hero .tx-copy { left: var(--edge); right: auto; width: min(520px, 40vw); gap: 18px; transform: translateY(-50%); }
}
@media (max-width: 900px) {
  .exp-hero { margin-top: 88px; height: auto; min-height: 0; max-height: none; }
  .exp-hero .tx-copy { padding-top: 28px; }
}

/* Footer: compact, full width, edge to edge. Site links, both offices, call and write, and the fine print. */
.site-foot.ft { padding: 0; background: var(--ink); color: rgba(251, 250, 246, .9); font-size: 14.5px; line-height: 1.5; }
.ft :focus-visible { outline-color: var(--white); }
.ft ::selection { background: var(--white); color: var(--ink); }
.ft-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cg); row-gap: 28px; padding: 44px var(--edge) 30px; }
.ft-brand { grid-column: 1 / 6; display: grid; gap: 20px; align-content: start; justify-items: start; }
.ft-logo { display: block; line-height: 0; }
.ft-logo img { height: 24px; width: auto; }
.ft-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 36px; }
.ft-place { display: grid; gap: 4px; align-content: start; justify-items: start; }
.ft-ny { grid-column: 6 / 8; }
.ft-armonk { grid-column: 8 / 10; }
.ft-contact { grid-column: 10 / 13; display: grid; gap: 4px; align-content: start; }
.ft-h { margin-bottom: 4px; font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(251, 250, 246, .62); }
.ft-addr { font-family: var(--serif); font-weight: 300; font-size: 16px; line-height: 1.35; color: var(--white); }
.ft-contact p { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ft-label { min-width: 3.2em; color: rgba(251, 250, 246, .62); }
.ft-nav a, .ft-link { color: rgba(251, 250, 246, .9); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(251, 250, 246, 0); text-underline-offset: .3em; transition: color .3s var(--ease), text-decoration-color .3s var(--ease); }
.ft-link { text-decoration-color: rgba(251, 250, 246, .3); overflow-wrap: anywhere; }
.ft-nav a:hover, .ft-link:hover { color: #fff; text-decoration-color: currentColor; }
.ft-fine { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--cg); row-gap: 8px; padding: 18px var(--edge) 24px; background: linear-gradient(var(--hair-light), var(--hair-light)) no-repeat 0 0 / 100% 1px; }
.ft-fine p { font-size: 12.5px; line-height: 1.5; color: rgba(251, 250, 246, .62); max-width: 36em; }
.ft-fine .ft-creds { color: rgba(251, 250, 246, .9); }
@media (max-width: 900px) {
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; padding: 36px var(--gutR) 24px var(--gut); }
  .ft-brand, .ft-contact { grid-column: 1 / -1; }
  .ft-ny { grid-column: 1; } .ft-armonk { grid-column: 2; }
  .ft-nav { gap: 0 28px; }
  .ft-nav a, .ft-place .ft-link, .ft-contact .ft-link { display: inline-block; padding: 8px 0; }
  .ft-fine { grid-template-columns: minmax(0, 1fr); padding: 16px var(--gutR) 22px var(--gut); }
}

/* Inner pages keep their closing card; it now runs full width into the footer */
.book { padding-left: 0; padding-right: 0; }
.closing-top { padding-bottom: clamp(56px, 6vw, 88px); }
.book .closing { padding-left: max(22px, var(--gut)); padding-right: max(22px, var(--gutR)); }
@media (min-width: 961px) { .book .closing { padding-left: var(--edge); padding-right: var(--edge); } }

/* Shop page: the store, moved off the home page, full width under the bar */
.shop-page .store.spot { margin: 0; border-radius: 0; }
.shop-page .spot-copy h1 { font-family: var(--serif); font-weight: 300; color: var(--ink); font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.02; letter-spacing: -.01em; max-width: 11em; text-wrap: balance; }
@media (max-width: 900px) { .shop-page .spot-copy h1 { font-size: clamp(1.9rem, 8.4vw, 2.5rem); max-width: 100%; } }

/* Questionnaire results (all questionnaires): plan of care with links, then the consultation, then "Email me this summary" */
.rs { display: grid; gap: 10px; }
.rs-h { margin-top: 6px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.rs-lead { font-size: 16px; line-height: 1.5; color: var(--text); }
.rs-list { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; }
.rs-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px 14px 8px 8px; background: var(--paper-2); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; transition: background-color .25s var(--ease); }
.rs-item:hover { background: #E3E5DB; }
.rs-item img { width: 72px; height: 48px; object-fit: cover; object-position: 78% 50%; border-radius: 8px; }
.rs-txt { display: grid; gap: 2px; min-width: 0; }
.rs-a { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.rs-t { font-family: var(--serif); font-size: 17px; line-height: 1.2; }
.rs-item:hover .rs-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.rs-mail { display: grid; gap: 10px; margin-top: 6px; padding: 18px; background: var(--paper-2); border-radius: var(--r-sm); }
.rs-l { font-size: 14px; font-weight: 500; color: var(--ink); }
.rs-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.rs-row input { min-width: 0; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--white); color: var(--ink); font: 400 16px/1.3 var(--sans); }
.rs-mail.bad input { box-shadow: inset 0 0 0 2px #9B2C2C; }
.rs-chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.rs-chk input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; }
.rs-msg { min-height: 1.3em; font-size: 14px; line-height: 1.45; color: var(--ink); }
.rs-mail.bad .rs-msg { color: #9B2C2C; }
@media (max-width: 420px) { .rs-row { grid-template-columns: minmax(0, 1fr); } }

/* The weight loss program checklist, in the site's questionnaire dialog */
.chk .gate-media img { object-position: 74% 40%; }
.chk .ix-body { align-self: start; }
.chk-cmp { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 6px; }
.chk-cmp li { display: grid; gap: 3px; padding: 12px 16px; background: var(--paper-2); border-radius: var(--r-sm); font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.chk-l { font-weight: 600; color: var(--ink); }
.chk-cmp b { font-weight: 500; color: var(--ink); }
.wl-res .rs-list { gap: 6px; }
.wl-res .rs-list li { font-size: inherit; }
/* The checklist's "At Forbes Health" line sits beside the question on wide screens; phones hide that panel, so it shows under the answers */
.chk-fh-inline { display: none; margin-top: 6px; padding: 14px 16px; background: var(--paper-2); border-radius: var(--r-sm); font-size: 14.5px; line-height: 1.45; color: var(--text); }
.chk-fh-inline b { font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .chk-fh-inline { display: block; } }

/* ============ ROUND 7 (21 Nov): Joshua's design pass, with his notes from the live site (7c) ============
   1. the real patients in the stories; 2. Robert's square panel grid that pops out slightly; 3. no numbering, eyebrows or
   extra headings; 4. one type scale, the most important line always the biggest; 5. no fog: sections are layers that move
   (the film is pinned, the sheet slides over it, What to expect and the footer are revealed from beneath). */

/* 4. Type scale, in Sentient. The home film's welcome line is the largest line on the site; every other page's h1 is the
   display size; h2 for every section (and every dialog); h3 below. Sizes only ever step down from the first line. */
:root {
  --fs-hero: clamp(2.5rem, 4.4vw, 4.25rem);       /* 40 to 68px: the film's h1, "Welcome to Forbes Health" */
  --fs-hero-sub: clamp(1rem, 1.7vw, 1.6rem);      /* 16 to 25.6px: the film's supporting line (h1 at least 2.4x) */
  --fs-display: clamp(2.25rem, 3.4vw, 3.25rem);   /* 36 to 52px: the h1 of every other page */
  --fs-h2: clamp(1.75rem, 2.4vw, 2.375rem);       /* 28 to 38px */
  --fs-h3: clamp(1.25rem, 1.5vw, 1.5rem);         /* 20 to 24px */
}
h1, .tx-copy h1, .art-h, .lib-h, .shop-page .spot-copy h1 { font-family: var(--serif); font-weight: 300; font-size: var(--fs-display); line-height: 1.06; letter-spacing: -.012em; }
.display, .exp-hero .display, .spot-copy .display, .book-h, .art-body h2, .art-card h2, .pd-title h2, .reg-h, .ix-q { font-family: var(--serif); font-weight: 300; font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.01em; }
.art-body h3, .rs-h { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.005em; text-transform: none; color: var(--ink); }
.art-body h2 { margin: 1.5em 0 .5em; }
.art-body h3 { margin: 1.3em 0 .4em; }
.rs-h { margin-top: 10px; }
.book-h { max-width: 18em; padding-bottom: 0; }

/* 1. The film's words, in order of importance: the welcome (h1), the supporting line, then the four areas in small capitals.
   The shade behind them is neutral and only behind the text block, so the film keeps its true colours. */
.hero-copy { max-width: 760px; text-shadow: 0 1px 22px rgba(0, 0, 0, .3); }
.hero-copy h1 { font-size: var(--fs-hero); line-height: 1.05; letter-spacing: -.015em; max-width: 11em; }
.hero-sub { margin-top: 14px; font-family: var(--serif); font-weight: 300; font-size: var(--fs-hero-sub); line-height: 1.25; color: var(--white); max-width: 24em; text-wrap: balance; }
.hero-tag { margin-top: 18px; font-size: 13px; letter-spacing: .24em; }
.hero .hero-picture::after { background: radial-gradient(ellipse 50% 44% at 28% 74%, rgba(8, 8, 10, .6) 0%, rgba(8, 8, 10, .58) 62%, rgba(8, 8, 10, 0) 100%); }
/* measured on every half second of the v9 film: white text holds 5.1:1 or better over the brightest frames (90th percentile pixel under each line) */
@media (max-width: 960px) {
  .hero .hero-picture::after { background: linear-gradient(0deg, rgba(8, 8, 10, .6) 0%, rgba(8, 8, 10, .56) 58%, rgba(8, 8, 10, 0) 88%); }   /* 4.7:1 or better on every frame */
}

/* 5. Layers that move (no fog, no gaps). The page is one paper layer above the footer; on the home page the film is pinned
   under the bar while the sheet (panels and stories) slides up over it, then What to expect and the footer are revealed
   from beneath as the layer above them scrolls away. */
main { position: relative; z-index: 2; background: var(--paper); }
.site-foot.ft { position: sticky; bottom: 0; z-index: 1; }
body.tx-asking-phone main { z-index: 30; }   /* the phone questionnaire sheet (fixed, inside main) stays above the bar */
.stage { position: relative; z-index: 3; }
.stage .hero { position: sticky; top: var(--nav-h); z-index: 0; }
.sheet { position: relative; z-index: 1; background: var(--paper); overflow-x: clip; }
main > .exp-hero { z-index: 2; margin-top: 0; }
@media (min-width: 901px) and (min-height: 700px) {
  main > .exp-hero { position: sticky; bottom: 0; min-height: 0; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* the D-flow "film eases back" animation, now timed by the sheet covering the film */
    .stage { timeline-scope: --sheet; }
    .sheet { view-timeline: --sheet block; view-timeline-inset: var(--nav-h) 0; }
    .stage .hero .hero-picture { transform-origin: 50% 0; animation: film-recede linear both; animation-timeline: --sheet; animation-range: entry 0% entry 100%; }
    /* pinned, the film recedes as it is covered: it drifts up more slowly than the sheet, grows a touch and dims (its
       uncovered top never moves away from the bar, so no dark band shows) */
    @keyframes film-recede { to { transform: translate3d(0, -10%, 0) scale(1.04); opacity: .6; } }
  }
}

/* 2. Panel menu: Robert's concept email, "Square Panel Menu: 12 equal squares, 4 x 3", as it behaves there, now full bleed.
   Black and white at rest; on hover or keyboard focus the panel pops out (scale 1.06 over the others, a soft shadow) and its
   photo turns to colour and eases in, in one smooth step. Titles white, bottom-left, over a light transparent shade. */
.pm-wrap { margin: 0; padding: 0; scroll-margin-top: var(--nav-h); }
.pm { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; overflow: visible; }
.pnl { position: relative; display: block; aspect-ratio: 1 / 1; min-width: 0; overflow: hidden; border-radius: 0; isolation: isolate; background: #34323C; color: var(--white); text-decoration: none;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease; }
.pnl > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 32%; filter: grayscale(1);
  transition: filter .55s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.pnl > img.pnl-face { object-position: 50% 18%; }
.pnl > img.pnl-shop { object-position: 50% 62%; }
.pnl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56%; background: linear-gradient(0deg, rgba(20, 18, 30, .68) 0%, rgba(20, 18, 30, .4) 50%, rgba(20, 18, 30, 0) 100%); pointer-events: none; }
.pnl-copy { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(14px, 1.6vw, 24px); padding: 0 clamp(14px, 1.6vw, 24px); }
.pnl-txt { display: block; max-width: 15em; font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.16; color: var(--white); text-wrap: balance; text-shadow: 0 1px 14px rgba(20, 18, 30, .45); }
.pnl:hover, .pnl:focus-visible { transform: scale(1.06); z-index: 2; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55); }
.pnl:hover > img, .pnl:focus-visible > img { filter: grayscale(0); transform: scale(1.05); }
.pnl:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
@media (max-width: 1100px) { .pnl-txt { font-size: 1.1rem; } }
@media (max-width: 760px) {
  .pm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pnl:hover, .pnl:focus-visible { transform: none; box-shadow: none; }
  .pnl::after { height: 64%; }
  .pnl-copy { bottom: 10px; padding: 0 10px; }
  .pnl-txt { font-size: 1rem; line-height: 1.16; }
}
@media (prefers-reduced-motion: reduce) { .pnl:hover, .pnl:focus-visible, .pnl:hover > img, .pnl:focus-visible > img { transform: none; } }
/* Robert, 21 Nov (his reference picture): "the inner rectangle composed of 12 interlocking panels divided by hairline
   centered on the larger center panel". On landscape screens the menu is one rectangle, exactly one screen tall under the
   bar (Joshua: "the pannels need to all fit on one page"): four arms turn around a larger centre panel, the seams are
   staggered so no line runs the full width or height, and a one-pixel hairline divides the panels. Upright tablets keep
   four across and phones two, with the same hairline. */
.pm { gap: 1px; background: var(--paper); }
/* Wide panel pictures (21 Nov): every photo is now a wide frame with its subject 63% of the way across and plain backdrop
   to the left, so a long panel shows the whole person with room beside them and a square panel shows the same person
   centred on that point. Nothing is cut by the panel's shape. */
.pnl > img { object-position: 63% 30%; }
.pnl > img.pnl-shop { object-position: 77% 50%; }
.pnl > img.pnl-face { object-position: 50% 30%; }
@media (min-width: 900px) and (min-aspect-ratio: 6/5) {
  .pm { grid-template-columns: repeat(24, minmax(0, 1fr)); grid-template-rows: repeat(20, minmax(0, 1fr)); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); min-height: 560px; max-height: 1000px; }
  .pnl { aspect-ratio: auto; }
  .pnl:nth-child(1)  { grid-area: 1 / 1 / 7 / 6; }      /* top arm */
  .pnl:nth-child(4)  { grid-area: 1 / 6 / 7 / 10; }
  .pnl:nth-child(7)  { grid-area: 1 / 10 / 7 / 15; }
  .pnl:nth-child(8)  { grid-area: 1 / 15 / 7 / 19; }
  .pnl:nth-child(5)  { grid-area: 1 / 19 / 8 / 25; }     /* right arm */
  .pnl:nth-child(6)  { grid-area: 8 / 19 / 15 / 25; }
  .pnl:nth-child(2)  { grid-area: 7 / 7 / 15 / 19; }     /* the larger centre panel */
  .pnl:nth-child(9)  { grid-area: 7 / 1 / 14 / 7; }      /* left arm */
  .pnl:nth-child(10) { grid-area: 14 / 1 / 21 / 7; }
  .pnl:nth-child(11) { grid-area: 15 / 7 / 21 / 12; }    /* bottom arm */
  .pnl:nth-child(12) { grid-area: 15 / 12 / 21 / 18; }
  .pnl:nth-child(3)  { grid-area: 15 / 18 / 21 / 25; }
  .pnl-copy { bottom: clamp(12px, 1.3vw, 22px); padding: 0 clamp(12px, 1.3vw, 22px); }
  .pnl-txt { font-size: clamp(1rem, 1.22vw, 1.375rem); line-height: 1.15; }
  .pnl:nth-child(2) .pnl-txt { font-size: var(--fs-h2); font-weight: 300; max-width: 14em; }
  .pnl:nth-child(2)::after { height: 46%; }
}
/* 1. Patient stories, the sheet's last row (rebuilt 21 Nov; Joshua: "the faces are too big, there needs to be some sort of
   effect"). A shorter strip under the panels: each story is a small square photo of the REAL patient (the review site's
   photos, black and white, not retouched) with the published quote on paper beside it. No fades and no shade.
   Effect: as the strip scrolls in, each photo is uncovered left to right and its quote rises into place, one after the
   other; on hover the photo eases closer and a short rule draws under the name. */
.stories { position: relative; z-index: 2; margin: 0; padding: clamp(44px, 5.5vw, 88px) 0; background: var(--paper); }   /* its own section after the patient experience (Robert, 21 Nov), no longer joined to the menu */
.stories-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.story { --h: max(168px, calc(100vw / 8)); position: relative; margin: 0; height: var(--h); display: grid; grid-template-columns: var(--h) minmax(0, 1fr); grid-template-rows: 1fr auto 1fr;
  background: var(--paper); color: var(--ink); view-timeline: --story block; }
.story-ph { grid-column: 1; grid-row: 1 / -1; overflow: hidden; background: #CFCFCF; }
.story-ph img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.story blockquote { grid-column: 2; grid-row: 2; margin: 0; padding: 0 clamp(14px, 1.6vw, 26px) 0 clamp(18px, 2vw, 34px); }
.story blockquote p { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.24; letter-spacing: -.004em; color: var(--ink); max-width: 19em; text-wrap: balance; }
.story blockquote p::before { content: "\201C"; margin-left: -.44em; }
.story blockquote p::after { content: "\201D"; }
.story figcaption { grid-column: 2; grid-row: 3; align-self: start; display: grid; justify-items: start; gap: 9px; padding: 12px clamp(14px, 1.6vw, 26px) 0 clamp(18px, 2vw, 34px);
  font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.story figcaption::after { content: ""; width: 28px; height: 1.5px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
@media (hover: hover) {
  .story:hover .story-ph img { transform: scale(1.07); }
  .story:hover figcaption::after { transform: scaleX(1); }
}
@media (max-width: 1099px) {
  .stories-row { grid-template-columns: minmax(0, 1fr); }
  .story { --h: clamp(150px, 22vw, 220px); }
}
@media (max-width: 760px) { .story blockquote p { font-size: 1.0625rem; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* done by the time the strip is fully on screen, so it is settled at its resting place under the panels */
    .story-ph { animation: story-open linear both; animation-timeline: --story; animation-range: entry 0% entry 85%; }
    .story blockquote, .story figcaption { animation: story-in linear both; animation-timeline: --story; animation-range: entry 30% entry 95%; }
    .story:nth-child(2) .story-ph { animation-range: entry 10% entry 92%; }
    .story:nth-child(2) blockquote, .story:nth-child(2) figcaption { animation-range: entry 40% entry 100%; }
    .story:nth-child(3) .story-ph { animation-range: entry 20% entry 100%; }
    .story:nth-child(3) blockquote, .story:nth-child(3) figcaption { animation-range: entry 50% entry 100%; }
    @keyframes story-open { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
    @keyframes story-in { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
  }
}

/* Inner pages: no fog. The photo heroes, the closing card and the footer meet without fades; the closing card's paper
   space now belongs to the section before it, and the footer is revealed from beneath the page. */
.tx-hero { background: var(--paper); }
.tx-hero .tx-media { -webkit-mask-image: none; mask-image: none; }
.book { padding-top: 0; }
main > :has(+ .book), main > :has(+ [hidden] + .book) { padding-bottom: var(--space); }
@media (max-width: 900px) { main > :has(+ .book), main > :has(+ [hidden] + .book) { padding-bottom: 88px; } }
.closing-top { padding-top: clamp(64px, 7vw, 104px); padding-bottom: clamp(56px, 6vw, 88px); }
@media (min-width: 961px) { .book-grid { row-gap: clamp(36px, 4vw, 56px); } }
.ft-fine { background: none; }

/* 3. No counters on the What to expect steps (the list stays ordered); the Medical LF link sits under it */
.tx-steps li { display: block; padding: 18px 0; font-size: 17px; line-height: 1.5; color: var(--text); }
.tx-more { grid-column: 7 / 13; margin-top: -14px; }
@media (max-width: 900px) { .tx-more { grid-column: 1; margin-top: -18px; } }
.ft-h { margin: 0 0 4px; }

/* ============ Robert's "Site Text Current Versions" (21 Nov) ============ */
/* Treatment pages: the byline under the title (the same size as the line under it, never bigger), and his first copy block
   after the hero (heading left, copy right) */
.tx-by { margin-top: -10px; font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.tx-copy .lede { font-size: 17px; }
.tx-first-body { grid-column: 7 / 13; display: grid; gap: 16px; align-content: start; }
.tx-first-body p { font-size: 17px; line-height: 1.6; color: var(--text); max-width: 34em; }
.tx-list { list-style: none; margin: 0; padding: 0; }
.tx-list li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; color: var(--text); }
.tx-list b { font-weight: 600; color: var(--ink); }
.tx-band.tx-first + .tx-band { padding-top: clamp(64px, 7vw, 112px); }
@media (max-width: 900px) { .tx-first-body { grid-column: 1; } }
/* Meet Dr. Forbes: her real portrait fills the right of the hero, the copy keeps the left (no fades) */
.tx-portrait .tx-media img { object-position: 50% 16% !important; }
@media (min-width: 901px) { .tx-portrait:not(.tx-asking) .tx-media { left: auto; right: 0; width: 44%; } }
@media (max-width: 900px) { .tx-portrait .tx-media { height: 92vw; } }
/* Shop: his byline under the title, then "Why Use Physician-Guided Supplements?" as its own band, the code, the FDA note */
.spot-by { margin-top: -10px; font-size: 17px; font-weight: 500; color: var(--ink); }
.spot-why { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cg); row-gap: 20px; align-items: start; padding: clamp(48px, 5vw, 80px) calc(var(--edge) - var(--gut)) 0; }
.spot-why .display { grid-column: 1 / 6; }
.spot-why .tx-list { grid-column: 7 / 13; }
.spot-why .tx-list li { font-size: 16px; }
.spot-code { font-size: 15px; font-weight: 500; letter-spacing: .02em; color: var(--ink); }
.spot-fda { max-width: 52em; margin: clamp(28px, 3vw, 40px) auto 0; padding: 0 22px; text-align: center; font-size: 13px; }
@media (max-width: 900px) { .spot-why { grid-template-columns: minmax(0, 1fr); padding: 40px 22px 0; } .spot-why .display, .spot-why .tx-list { grid-column: 1; } }
@media (max-width: 520px) { #tx-chk { letter-spacing: .08em; padding: 0 14px; } }   /* the checklist button's long label fits a phone */

/* ---------------------------------------------------------------------------------------------------------------------
   Round 8, 21 Nov. Buttons and links, site wide (Joshua: "buttons and links site wide need to be better").
   One system, set in the body face (Switzer) now that it loads:
   - Buttons: the same pill with a clearer label, an arrow that moves, and a fill that sweeps in from the left on hover
     (blue to ink for the main action, clear to ink for the second one, paper to blue on dark). They press slightly
     when clicked.
   - Text links: one thin underline everywhere; on hover it redraws left to right.
   - Menu links: no line at rest, one draws in on hover. "Book a consultation" keeps its line.
   --------------------------------------------------------------------------------------------------------------------- */
.btn { position: relative; isolation: isolate; overflow: hidden; gap: .8em; min-height: 42px; padding: 0 22px; font-size: 12px; font-weight: 600; letter-spacing: .14em;
  transition: color .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease), transform .18s var(--ease); }
.btn::before { content: ""; position: absolute; z-index: -1; inset: -1px; background: var(--ink); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.btn::after { content: "\2192"; flex: none; font-family: var(--sans); font-size: 1.3em; font-weight: 400; letter-spacing: 0; line-height: 1; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.btn[data-wl-close]::after, .btn[data-close]::after { content: none; }
.btn-primary:hover:not(:disabled) { background: var(--blue); border-color: var(--ink); }
.btn-ghost { border-color: var(--ink); }
.btn-ghost:hover:not(:disabled) { background: transparent; color: var(--white); border-color: var(--ink); }
.btn-light::before { background: var(--blue); }
.btn-light:hover:not(:disabled) { background: var(--white); color: #fff; border-color: var(--blue); }
.btn:hover:not(:disabled)::before, .btn:focus-visible:not(:disabled)::before { transform: scaleX(1); transform-origin: 0 50%; }
.btn:hover:not(:disabled)::after, .btn:focus-visible:not(:disabled)::after { transform: translateX(4px); }
.btn:focus-visible.btn-ghost, .btn:focus-visible.btn-light { color: #fff; }
.btn:active:not(:disabled) { transform: scale(.975); }
.btn:disabled::before { display: none; }
.btn:disabled::after { opacity: .55; }
.quick .btn { min-height: 40px; padding: 0 18px; }
@media (max-width: 520px) { .btn { min-height: 46px; padding: 0 20px; letter-spacing: .12em; } .quick .btn { min-height: 40px; padding: 0 14px; } }
@media (prefers-reduced-motion: reduce) { .btn::before, .btn::after { transition: none; } .btn:active:not(:disabled) { transform: none; } }

/* Text links: the line is drawn with a background so it can move */
.link, .promo-link, .ft-link, .place-link, .big-line { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1px; padding-bottom: .2em; }
.ft-nav a, .foot-nav a, .tx-crumb { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; padding-bottom: .2em;
  transition: background-size .45s cubic-bezier(.2, .7, .2, 1), color .3s var(--ease); }
.ft-nav a:hover, .foot-nav a:hover, .tx-crumb:hover, .ft-nav a:focus-visible, .foot-nav a:focus-visible, .tx-crumb:focus-visible { background-size: 100% 1px; }
.art-body a { text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .3s var(--ease); }
.art-body a:hover { color: var(--blue-dk); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .link:hover, .promo-link:hover, .ft-link:hover, .place-link:hover, .big-line:hover, .nav-cta:hover { animation: link-redraw .7s cubic-bezier(.3, .6, .2, 1) both; }
}
@keyframes link-redraw {
  0% { background-size: 100% 1px; background-position: 100% 100%; }
  45% { background-size: 0 1px; background-position: 100% 100%; }
  46% { background-size: 0 1px; background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}

/* Menu bar: every link sits on the same line; a rule draws in under the one you point at */
.nav-left a, .nav-right a { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; padding-bottom: 5px;
  transition: background-size .45s cubic-bezier(.2, .7, .2, 1); }
.nav-left a:hover, .nav-right a:hover { opacity: 1; background-size: 100% 1px; }
.nav-left a:focus-visible, .nav-right a:focus-visible { background-size: 100% 1px; }
.nav-right a.nav-cta { border-bottom: 0; background-size: 100% 1px; padding-bottom: 5px; }

/* Phone menu button: two rules and the word, no box */
.menu-btn { border: 0; padding: 10px 0; gap: 10px; align-items: center; font-size: 11.5px; }
.menu-btn::before { content: ""; flex: none; width: 20px; height: 7px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transition: height .3s var(--ease); }
.menu-btn[aria-expanded="true"]::before { height: 0; border-bottom-color: transparent; }

/* What to expect: the column is a little wider so the two buttons, now with arrows, stay on one line */
@media (min-width: 901px) { .exp-hero .tx-copy { width: min(580px, 44vw); } }

/* Close buttons and filter chips: no thin boxes. A round target that fills on hover; chips are soft solid pills */
.pd-close { border: 0; border-radius: 50%; background: rgba(27, 20, 84, .06); transition: background-color .3s var(--ease), color .3s var(--ease), transform .35s var(--ease); }
.pd-close:hover { background: var(--ink); color: var(--white); transform: rotate(90deg); }
.chip { border-color: transparent; background: var(--paper-2); }
.chip:hover { border-color: transparent; background: #E1E3D9; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .pd-close:hover { transform: none; } }

/* Inner pages, 21 Nov: the closing "Begin with an in-depth consultation" card is gone (Joshua), so the last section
   keeps its own breathing room above the footer */
main > .tx-band:last-child, main > .lib-grid:last-child, main > .tx-related:last-child { padding-bottom: clamp(64px, 8vw, 112px); }
.pnl:nth-child(4) > img { object-position: 67% 30%; }   /* the man at the table is broad: keep both arms inside narrow panels */

/* The last VISIBLE band of an inner page keeps its space above the footer even when a hidden band follows it
   (the surgeon page hides "What to expect"). */
main > .tx-band:not([hidden]):not(:has(~ :not([hidden]))) { padding-bottom: clamp(64px, 8vw, 112px); }

/* Breadcrumbs on the inner pages (21 Nov): Home / section / this page. Quiet small capitals on one line; a long page
   name is cut with an ellipsis and never wraps under the title. */
.crumbs { max-width: 100%; min-width: 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: baseline; min-width: 0; }
.crumbs li { flex: none; white-space: nowrap; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.crumbs li[hidden] { display: none; }
.crumbs li + li::before { content: "/"; margin: 0 .8em; opacity: .5; }
.crumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crumbs .tx-crumb { font-size: inherit; letter-spacing: inherit; }
.crumbs [aria-current] { color: var(--ink); }

/* Header (21 Nov, Joshua): the logo on the left, every option on the right, and drop-downs under Medicine and Surgery. */
@media (min-width: 1101px) {
  .site-head { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 28px; }
  .site-head .logo { grid-column: 1; grid-row: 1; justify-self: start; }
  .site-head .nav-left { grid-column: 2; grid-row: 1; justify-self: end; }
  .site-head .nav-right { grid-column: 3; grid-row: 1; }
}
@media (max-width: 1320px) and (min-width: 1101px) { .site-head { column-gap: 20px; } }
@media (max-width: 1100px) {
  .site-head { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 16px; }
  .site-head .logo { grid-column: 1; grid-row: 1; justify-self: start; }
  .site-head .nav-right { grid-column: 2; grid-row: 1; }
  .site-head .menu-btn { grid-column: 3; grid-row: 1; justify-self: end; }
}
.nav-dd { position: relative; display: flex; align-items: center; height: var(--nav-h); }
.nav-dd-btn { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0 0 5px; margin: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size .45s cubic-bezier(.3, .6, .2, 1); }
.nav-dd-btn::after { content: ""; flex: none; width: 5px; height: 5px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.nav-dd.open .nav-dd-btn, .nav-dd-btn:focus-visible { background-size: 100% 1px; }
.nav-dd.open .nav-dd-btn::after { transform: translateY(1px) rotate(225deg); }
.nav-dd-menu { position: absolute; z-index: 30; top: 100%; left: -28px; min-width: 320px; display: grid; justify-items: start; gap: 0; padding: 16px 28px 22px; background: var(--paper);
  box-shadow: 0 28px 48px -22px rgba(27, 20, 84, .28); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
.nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) {
  .nav-dd:hover .nav-dd-btn { background-size: 100% 1px; }
  .nav-dd:hover .nav-dd-btn::after { transform: translateY(1px) rotate(225deg); }
  .nav-dd:hover .nav-dd-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
.site-head .nav-dd-menu a { font-family: var(--sans); font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 9px 0 3px; margin-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .nav-dd-menu, .nav-dd-btn::after { transition: none; } }
/* the phone menu: Medicine and Surgery open in place */
.mobile-menu .mm-group { border-bottom: 1px solid var(--line); }
.mobile-menu .mm-group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--serif); font-size: 15px; letter-spacing: .2em; text-transform: uppercase; padding: 12px 0; }
.mobile-menu .mm-group summary::-webkit-details-marker { display: none; }
.mobile-menu .mm-group summary::after { content: ""; width: 6px; height: 6px; margin-right: 4px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.mobile-menu .mm-group[open] summary::after { transform: translateY(2px) rotate(225deg); }
.mobile-menu .mm-group > div { display: grid; padding: 0 0 12px; }
.mobile-menu .mm-group a { font-family: var(--sans); font-size: 15.5px; letter-spacing: 0; text-transform: none; padding: 9px 0; border-bottom: 0; }

/* Menu options in the logo's own typeface (21 Nov, Joshua: "keep the font the same as the font of the logo too for the
   nav options"). The wordmark is drawn in a heavy humanist sans; Fira Sans is the same design, so the options sit beside
   the logo as one voice: mixed case, bold, no letter-spacing. */
:root { --logo-font: "Fira Sans", "Switzer", "Helvetica Neue", Arial, sans-serif; }
.nav-left, .nav-right { font-family: var(--logo-font); font-size: 15.5px; font-weight: 700; letter-spacing: 0; text-transform: none; gap: 30px; }
@media (max-width: 1320px) and (min-width: 1101px) { .nav-left, .nav-right { font-size: 15px; letter-spacing: 0; gap: 22px; } }
.site-head .nav-dd-menu a { font-family: var(--logo-font); font-weight: 500; font-size: 15.5px; }
.menu-btn { font-family: var(--logo-font); font-weight: 700; font-size: 14px; letter-spacing: 0; text-transform: none; }
.mobile-menu a, .mobile-menu .mm-group summary { font-family: var(--logo-font); font-weight: 700; font-size: 17px; letter-spacing: 0; text-transform: none; }
.mobile-menu .mm-group a { font-family: var(--logo-font); font-weight: 500; font-size: 16px; }

/* ---------- Round 10 (21 Nov): the home panel menu as Robert's bento ---------- */
.pm-wrap { background: var(--paper); padding: 20px var(--gutR) 20px var(--gut); }
.bento { --hl: rgba(27, 20, 84, .78); display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 1px; background: var(--hl); }
.bn { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px 14px; background: var(--paper); color: var(--ink); text-decoration: none; transition: background-color .35s var(--ease); }
.bn-t { font-family: var(--serif); font-weight: 400; font-size: 15px; line-height: 1.2; text-align: center; text-wrap: balance; max-width: 18em; }
.bn-fig { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 44px); }
.bn-ph { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; box-shadow: 0 16px 26px -16px rgba(20, 18, 30, .5); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.bn-ph img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: grayscale(1) contrast(1.03); transition: filter .5s var(--ease), transform .8s var(--ease); }
.bn-ph::after { content: ""; position: absolute; inset: 0; background: var(--tint, #5f7fa0); mix-blend-mode: color; opacity: .82; transition: opacity .5s var(--ease); pointer-events: none; }
.bn-tag { align-self: flex-start; margin-left: 12%; display: grid; gap: 3px; padding: 5px 9px 5px 8px; background: #fff; box-shadow: 0 0 0 1px rgba(27, 20, 84, .16); font-family: var(--sans); color: var(--ink); line-height: 1.1; }
.bn-tag-l { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.bn-tag i { font-style: normal; font-size: 8.5px; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.bn-tag b { font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.bn-tag-s { font-size: 9.5px; letter-spacing: .02em; color: var(--muted); text-align: center; }
.bn-side { flex: 1 1 0; font-family: var(--serif); font-size: clamp(15px, 1.5vw, 21px); color: var(--text); }
.bn-side:first-child { text-align: right; }
.bn-dr .bn-ph { flex: none; width: auto; height: 100%; max-height: 240px; aspect-ratio: 4 / 5; }
.bn-dr .bn-tag { align-self: center; margin-left: 0; justify-items: center; padding: 7px 22px; }
.bn:focus-visible { outline: 3px solid var(--ink); outline-offset: -5px; z-index: 1; }
@media (hover: hover) {
  .bn:hover { background: #fff; }
  .bn:hover .bn-ph { transform: translateY(-3px); box-shadow: 0 22px 30px -16px rgba(20, 18, 30, .55); }
  .bn:hover .bn-ph img { filter: none; transform: scale(1.04); }
  .bn:hover .bn-ph::after { opacity: 0; }
}
.bn:focus-visible .bn-ph img { filter: none; }
.bn:focus-visible .bn-ph::after { opacity: 0; }
/* phones and small tablets: two to a line; the first cell and Dr. Forbes run the full width */
@media (max-width: 899px) {
  .bn.a1, .bn.a4 { grid-column: 1 / -1; }
  .bn.a1 .bn-ph { aspect-ratio: 2.4 / 1; }
  .bn.a4 { order: 0; }
  .bn-dr .bn-ph { height: auto; width: min(46%, 190px); }
  .bn-tag { margin-left: 6%; }
}
/* wider screens: three cells to a row on twelve columns, seams staggered row to row, the middle row taller */
@media (min-width: 900px) {
  .pm-wrap { padding: 22px var(--edge); }
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto; }
  .bn { padding: 14px 16px 12px; min-height: 210px; }
  .bn-t { font-size: clamp(15px, 1.2vw, 18px); }
  .bn-ph { width: auto; height: 100%; max-width: 78%; aspect-ratio: 2.6 / 1; }
  .bn-tall .bn-ph { aspect-ratio: 5 / 8; max-height: 100%; }
  .bn-tall, .bn-dr { min-height: 360px; }
  .bn-dr .bn-ph { max-height: none; }
  .a1 { grid-area: 1 / 1 / 2 / 6; }   .a2 { grid-area: 1 / 6 / 2 / 10; }  .a3 { grid-area: 1 / 10 / 2 / 13; }
  .a5 { grid-area: 2 / 1 / 3 / 4; }   .a4 { grid-area: 2 / 4 / 3 / 10; }  .a6 { grid-area: 2 / 10 / 3 / 13; }
  .a7 { grid-area: 3 / 1 / 4 / 5; }   .a8 { grid-area: 3 / 5 / 4 / 10; }  .a9 { grid-area: 3 / 10 / 4 / 13; }
  .a10 { grid-area: 4 / 1 / 5 / 4; }  .a11 { grid-area: 4 / 4 / 5 / 9; }  .a12 { grid-area: 4 / 9 / 5 / 13; }
  .bn-tag i { font-size: 9px; } .bn-tag b { font-size: 10px; } .bn-tag-s { font-size: 10px; }
}
/* landscape screens: the whole menu is exactly one screen under the bar */
@media (min-width: 900px) and (min-aspect-ratio: 6/5) {
  .bento { height: calc(100vh - var(--nav-h) - 44px); height: calc(100svh - var(--nav-h) - 44px); min-height: 640px; max-height: 1000px;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1.72fr) minmax(0, 1fr) minmax(0, 1fr); }
  .bn, .bn-tall, .bn-dr { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .bn, .bn-ph, .bn-ph img, .bn-ph::after { transition: none; } }
/* bento, second pass: quieter tints (Robert's are muted), one-line titles on wide screens, tighter cells on short screens */
.bn-ph::after { opacity: .5; }
.bn-ph img { filter: grayscale(1) contrast(1.04) brightness(.97); }
@media (min-width: 900px) { .bn-t { max-width: none; white-space: nowrap; } }
@media (min-width: 900px) and (min-aspect-ratio: 6/5) {
  .bento { min-height: 676px; }
}
@media (min-width: 900px) and (min-aspect-ratio: 6/5) and (max-height: 820px) {
  .pm-wrap { padding-top: 14px; padding-bottom: 14px; }
  .bento { height: calc(100svh - var(--nav-h) - 28px); }
  .bn { padding: 10px 14px 9px; gap: 7px; }
  .bn-t { font-size: 15px; }
  .bn-tag { padding: 4px 8px 4px 7px; }
}
@media (max-width: 899px) {
  .bn-tag { margin-left: 0; align-self: center; max-width: 100%; }
  .bn-tag-l { white-space: normal; justify-content: center; text-align: center; }
  .bn-tag b { letter-spacing: .1em; }
  .bn.a1 .bn-tag { align-self: flex-start; margin-left: 6%; }
}
