/* Money Together · domoneytogether.com
   Final design: the approved frosted-glass site with the Option 2 hero, about, speaking, contact and /questions layouts,
   and the original site's blurred stack deck for the pillars and the endorsements. */

@font-face { font-family: "Spectral"; src: url("../fonts/spectral-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Marker"; src: url("../fonts/market-pro.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --blue: #3979a9;
  --ink: #1c2735;
  --ink-2: #3c4a5c;
  --muted: #5f6d7e;
  --yellow: #efe467;
  --btn: #f1e44c;
  --btn-hi: #f7ee7c;
  --paper: #fff;
  --faint: rgba(255, 255, 255, .18);
  --cover-yellow: #fff200;
  --cover-blue: #2aa6c8;
  --cover-mint: #d7e5dc;
  --bg: linear-gradient(180deg, #3979a9 0%, #3979a9 30%, #508baa 45%, #70a3ac 60%, #8ab8ad 75%, #9ec7ae 100%);

  /* liquid glass: a tinted fill, a diagonal sheen, a rim lit from the top left, and a saturated blur */
  --blur: 14px;
  --glass-edge: rgba(255, 255, 255, .55);
  --glass-rim: rgba(255, 255, 255, .72) rgba(255, 255, 255, .3) rgba(255, 255, 255, .16) rgba(255, 255, 255, .46);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(255, 255, 255, .1);
  --glass-filter: blur(var(--blur)) saturate(165%);
  --sheen: linear-gradient(140deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .06) 34%, rgba(255, 255, 255, 0) 60%);
  --glass-dark: rgba(14, 34, 54, .24);
  --glass-light: rgba(228, 238, 242, .62);
  --glass-paper: rgba(255, 255, 255, .9);
  --shadow: 0 22px 44px -24px rgba(8, 24, 40, .6);

  --r-lg: 36px;
  --r: 26px;
  --r-sm: 14px;
  --f-serif: "Spectral", Georgia, "Times New Roman", serif;
  --f-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-script: "Marker", "Spectral", cursive;

  --top-h: 58px;
  --top-gap: 8px;   /* the header floats this far from the top edge */
  /* split navigation: prev and next sit at the sides of a rail or deck, outside the content column when there's room */
  --nav-inset: max(16px, calc((100vw - 1180px) / 2 + var(--gut) - 28px));
  --gut: 20px;
  --sec: clamp(76px, 11vw, 156px);
}
@media (min-width: 900px) { :root { --blur: 22px; --top-h: 66px; --top-gap: 14px; --gut: 32px; } }

/* ── base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + var(--top-gap) + 20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; color: var(--paper); background: #3979a9; font: 400 1.0625rem/1.62 var(--f-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0; height: 100lvh; z-index: -1; background: var(--bg); pointer-events: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--btn); color: var(--ink); font: 800 .9rem var(--f-ui); text-decoration: none; }
.skip:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.icon--sm { width: .8em; height: .8em; vertical-align: 0; opacity: .7; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gut); }
/* each section's top padding lives in --pt, so anchors can cancel it: a nav link lands with the section heading
   about 28px under the floating header, whatever the section's padding */
.sec { --pt: var(--sec); padding-block: var(--pt) var(--sec); scroll-margin-top: calc(8px - var(--pt)); }
.sec + .sec { --pt: calc(var(--sec) * .6); }

/* editorial display type: larger, tighter, more air underneath */
.h2 { font: 600 clamp(2.05rem, 1.2rem + 4.7vw, 2.6rem)/1.02 var(--f-serif); letter-spacing: -.028em; margin-bottom: clamp(26px, 4vw, 52px); }
.h2 em, .h3 em { font-style: italic; letter-spacing: -.02em; }
.h3 { font: 600 clamp(1.35rem, 1.1rem + .8vw, 1.7rem)/1.2 var(--f-serif); letter-spacing: -.01em; margin-bottom: .35em; }
.center { text-align: center; }
.sec__sub { margin: calc(clamp(20px, 4vw, 28px) * -.6) 0 clamp(60px, 5vw, 100px); font: 800 .8rem/1.4 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.script-h { font: 400 clamp(2.7rem, 1.9rem + 3vw, 4rem)/1.02 var(--f-script); color: var(--yellow); letter-spacing: .02em; margin: 0 0 12px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.9em; border: 0; border-radius: 999px; color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 56%) var(--btn);
  font: 800 .9rem/1 var(--f-ui); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -2px 5px rgba(150, 128, 0, .22), 0 10px 22px -12px rgba(10, 25, 40, .7);
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background-color: var(--btn-hi); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: .72em 1.2em; font-size: .74rem; }
.btn--lg { padding: 1.12em 2.3em; font-size: .98rem; }
.btn--block { width: 100%; }
/* the secondary button is a clear glass pill with a yellow rim */
.btn--ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 60%) rgba(18, 46, 72, .2); color: var(--yellow);
  box-shadow: inset 0 0 0 1.5px currentColor, inset 0 1px 0 rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
}
.btn--ghost:hover { background-color: rgba(18, 46, 72, .34); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* glass */
.glass { border-radius: var(--r); border: 1px solid; border-color: var(--glass-rim); box-shadow: var(--glass-hi), var(--shadow); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); }
.glass--light { background: var(--sheen), var(--glass-light); color: var(--ink); }
.glass--paper { background: var(--sheen), var(--glass-paper); color: var(--ink); }
.glass--dark { background: var(--sheen), var(--glass-dark); color: var(--paper); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass--light { background: rgba(214, 228, 234, .94); }
  .glass--dark { background: rgba(28, 55, 80, .62); }
}
.prose p:last-child { margin-bottom: 0; }
.prose a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }

/* ── header ── */
/* a floating glass pill: clear over the hero, frosted once the page scrolls (main.js adds .is-scrolled) */
.top {
  position: fixed; z-index: 40; top: var(--top-gap); left: var(--top-gap); right: var(--top-gap); max-width: 1240px; margin-inline: auto;
  height: var(--top-h); border-radius: 999px; border: 1px solid transparent; background-color: rgba(38, 86, 124, 0);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease, -webkit-backdrop-filter .35s ease, backdrop-filter .35s ease;
}
.top.is-scrolled {
  background-color: rgba(38, 86, 124, .52); border-color: rgba(255, 255, 255, .42) rgba(255, 255, 255, .2) rgba(255, 255, 255, .12) rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 18px 36px -20px rgba(5, 20, 35, .7);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .top.is-scrolled { background-color: rgba(38, 86, 124, .94); } }
.top__in { height: 100%; padding-inline: 18px 8px; display: flex; align-items: center; gap: 16px; }
.top__logo { flex: none; margin-right: auto; }
.top__logo img { width: clamp(124px, 36vw, 184px); }
@media (min-width: 900px) { .top__in { padding-inline: 26px 12px; } }
.top__nav { display: none; }
.top__act { display: flex; align-items: center; gap: 8px; }
.top__contact { display: none; }
.top__menu { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--yellow); cursor: pointer; }
.top__menu .icon { width: 28px; height: 28px; }
.top__menu[aria-expanded="true"] { background: rgba(255, 255, 255, .12); }
@media (min-width: 900px) { .top__contact { display: inline-flex; } }
@media (min-width: 1180px) {
  .top__nav { display: flex; gap: 26px; margin-right: 12px; }
  .top__nav a { font: 700 .9rem/1 var(--f-ui); text-decoration: none; color: rgba(255, 255, 255, .9); padding: 8px 0; border-bottom: 2px solid transparent; }
  .top__nav a:hover { color: var(--yellow); border-bottom-color: currentColor; }
  .top__menu { display: none; }
}
.menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 8px 22px 18px;
  background: var(--sheen), rgba(32, 66, 96, .9); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid; border-color: var(--glass-rim); border-radius: var(--r);
  box-shadow: var(--glass-hi), 0 24px 40px -20px rgba(0, 0, 0, .6); animation: menu-in .22s ease-out;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.menu li + li { border-top: 1px solid var(--faint); }
.menu a { display: block; padding: 14px 4px; font: 600 1.3rem/1.2 var(--f-serif); text-decoration: none; }
.menu a:hover { color: var(--yellow); }
@media (min-width: 900px) { .menu { left: auto; width: 380px; } }

/* ── hero ── */
.hero { position: relative; padding-top: calc(var(--top-h) + var(--top-gap) + 18px); overflow: hidden; }
.hero__grid { display: grid; grid-template-areas: "lines" "book" "h1" "by" "cta"; justify-items: center; text-align: center; padding-bottom: clamp(24px, 4vw, 48px); }
.hero__lines { grid-area: lines; position: relative; margin: 0 0 8px; min-height: 2.4em; display: grid; align-items: center; color: var(--yellow); font: 400 clamp(2rem, 1.15rem + 3vw, 4.3rem)/1.14 var(--f-script); letter-spacing: .01em; }
.hero__line { grid-area: 1 / 1; text-wrap: balance; }
.hero__line .w { display: inline-block; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
.hero__line.is-on .w, .hero__line.is-static .w { opacity: 1; transform: none; }
.hero__line.is-off .w { opacity: 0; transform: translateY(-6px); transition-duration: .5s; }

/* the book, grounded by a soft contact shadow; its foot sits on the bottom line of the hero's text column */
.hero__book { grid-area: book; position: relative; width: min(70vw, 420px); margin: 4px 0 30px; }
.hero__lift { position: relative; z-index: 1; display: block; transform-origin: 50% 100%; }
.hero__lift img { width: 100%; animation: book-in .9s cubic-bezier(.2, .8, .2, 1) both .1s; }
.hero__book::after {   /* contact shadow: a tight dark core inside a wide soft falloff, centred on the book's base */
  content: ""; position: absolute; z-index: 0; left: 4%; right: 2%; bottom: 0; aspect-ratio: 10 / 1; transform: translateY(46%);
  background:
    radial-gradient(closest-side, rgba(8, 26, 44, .5), rgba(8, 26, 44, 0) 72%) 50% 50% / 86% 52% no-repeat,
    radial-gradient(closest-side, rgba(8, 26, 44, .26), rgba(8, 26, 44, 0));
}
@keyframes book-in { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { .hero__lift img, .hero__line .w { animation: none; transition: none; } }

/* the one scroll-linked moment: as the hero scrolls away the book lifts and tips back, and its shadow fades */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__lift { animation: book-lift linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
    .hero__book::after { animation: shadow-lift linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
  }
}
@keyframes book-lift { to { transform: perspective(900px) translateY(-7%) rotateX(12deg) rotate(-3deg) scale(.96); } }
@keyframes shadow-lift { to { opacity: .25; transform: translateY(46%) scale(.8, .6); } }

.hero__h1 { grid-area: h1; max-width: 36ch; font: 600 clamp(1.35rem, 1rem + 1.5vw, 1.8rem)/1 var(--f-serif); letter-spacing: -.015em; line-height:1.2em; }
.hero__by { grid-area: by; margin: 26px 0; font: 600 .95rem/1.4 var(--f-ui); color: rgba(255, 255, 255, .82); }
.hero__cta { grid-area: cta; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 400px) { .hero__cta .btn { flex: 1 1 100%; } }
@media (min-width: 960px) {
  /* the text column takes the larger share so the taglines have room; the book anchors to the column's bottom line */
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); grid-template-areas: "lines book" "h1 book" "by book" "cta book"; grid-template-rows: 1fr auto auto auto; align-items: end; column-gap: clamp(32px, 4vw, 80px); padding-block-start: 80px; padding-block-end: 120px; }
  /* wider than its track on purpose so it stands about as tall as the text column. The extra width spills left into the gap;
     on the right it reaches just 16px into the side margin, so the leaning book never runs off a narrow screen */
  .hero__book { justify-self: end; align-self: end; width: min(135%, 480px); margin: 0 -16px 0 0; }
  .hero__lines { margin-bottom: 36px; }
}

/* as seen in, sitting quietly under the hero */
.seen { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; border-top: 1px solid var(--faint); }
.seen__label { margin: 0; padding: 0 16px 0 var(--gut); font: 700 .8rem/1.2 var(--f-ui); color: var(--yellow); white-space: nowrap; }
.seen__vp { min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.seen__track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
.seen__set { display: flex; align-items: center; }
.seen__set li { padding: 4px clamp(8px, 1.8vw, 20px); }
.seen__set img { height: clamp(48px, 5.4vw, 62px); width: auto; filter: brightness(0) invert(1); opacity: .78; }
.seen:hover .seen__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .seen__track { animation: none; width: auto; } .seen__vp { overflow-x: auto; } .seen__set[aria-hidden] { display: none; } }
@media (min-width: 1180px) { .seen__label { padding-left: max(var(--gut), calc((100vw - 1180px) / 2 + var(--gut))); } }



/* ── rails ── */
/* As seen in and the media rail read as one section, framed by a hairline above and below */
.rail { position: relative; --rail-pb: clamp(6px, 3vw - 16px, 18px); padding-bottom: var(--rail-pb); border-bottom: 1px solid var(--faint); }
.rail__track {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px max(var(--gut), calc((100vw - 1180px) / 2 + var(--gut))) 12px; scroll-padding-inline: max(var(--gut), calc((100vw - 1180px) / 2 + var(--gut)));
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track:focus-visible { outline-offset: -3px; }
.rail__track > li { flex: none; scroll-snap-align: start; }
/* split nav, used by the rail and both decks: prev on the left, next on the right, centred on the cards */
/* the media row's scroll bar: a short glass track with a yellow thumb sized to the share of the row in view.
   It sits in the rail's bottom padding, so the section is no taller than it was with arrows */
.rail__bar { position: relative; width: min(200px, 50vw); height: 16px; margin: 0 auto; cursor: pointer; touch-action: none; border-radius: 8px; }
.rail__bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%); border-radius: 4px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.rail__thumb {
  position: absolute; top: 50%; left: var(--tx, 0%); width: var(--tw, 30%); height: 4px; transform: translateY(-50%); border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)) var(--btn); box-shadow: 0 1px 4px rgba(10, 25, 40, .35);
  transition: height .15s;
}
.rail__bar:hover .rail__thumb, .rail__bar.is-dragging .rail__thumb { height: 6px; }
.rail__bar:focus-visible { outline-offset: 2px; }
@media (hover: none) { .rail__bar { pointer-events: none; } }   /* touch screens: an indicator only, swiping moves the row */
.rail__btn {
  display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; color: var(--ink); cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 56%) var(--btn);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -2px 5px rgba(150, 128, 0, .22), 0 8px 16px -10px rgba(0, 0, 0, .6); transition: background-color .2s;
}
.rail__btn:not(:disabled):hover { background-color: var(--btn-hi); }
/* inactive: the button stays put but turns to clear glass, so the control never disappears and its state is plain */
.rail__btn:disabled {
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04)) rgba(18, 46, 72, .12); color: rgba(255, 255, 255, .6); cursor: default;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
}
.rail__btn .icon { width: 20px; height: 20px; }

/* media cards */
.media { background: rgba(12, 32, 52, .2); }
.media .seen { margin-bottom: clamp(22px, 3.4vw, 40px); }
.mcard { width: min(80vw, 330px); }
@media (min-width: 640px) { .mcard { width: 42vw; max-width: 360px; } }
@media (min-width: 1100px) { .mcard { width: calc((min(100vw, 1180px) - 2 * var(--gut) - 3 * 16px) / 3.3); } }
.mcard__a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--paper);
  border-radius: var(--r); border: 1px solid; border-color: var(--glass-rim); background: var(--sheen), var(--glass-dark);
  box-shadow: var(--glass-hi), 0 16px 24px -18px rgba(0, 0, 0, .65); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  transition: transform .25s ease, background-color .25s;
}
.mcard__a:hover { transform: translateY(-3px); background-color: rgba(14, 34, 54, .1); }
.mcard__img { position: relative; display: block; margin: 10px 10px 0; border-radius: calc(var(--r) - 10px); overflow: hidden; aspect-ratio: 1470 / 1070; background: rgba(255, 255, 255, .15); }
.mcard__img img { width: 100%; height: 100%; object-fit: cover; }
.mcard__play { position: absolute; inset: 0; display: grid; place-items: center; }
.mcard__play .icon { width: 58px; height: 58px; padding: 16px 14px 16px 18px; border-radius: 50%; background: rgba(28, 39, 53, .72); color: var(--yellow); }
.mcard__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 18px; }
/* small link mark in the card's bottom corner: an arrow for articles, a play mark for videos that open here */
.mcard__go { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font: 800 .74rem/1 var(--f-ui); letter-spacing: .03em; text-transform: uppercase; color: var(--yellow); }
.mcard__go .icon { width: 16px; height: 16px; vertical-align: 0; }
.mcard__a:hover .mcard__go { color: var(--paper); }
.mcard__t { font: 600 1.15rem/1.25 var(--f-serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard__meta { font: 500 .8rem/1.3 var(--f-ui); color: rgba(255, 255, 255, .78); }
.mcard__meta b { font-weight: 800; color: var(--paper); }
.mcard__meta span::before { content: "|"; margin: 0 .5em; opacity: .5; }
/* desktop: hovering or tabbing to a card slides its full text up over the photo; the whole card stays one link.
   Touch screens keep the clamped text, since a tap has to open the link. */
@media (hover: hover) and (pointer: fine) {
  .mcard__a { position: relative; overflow: hidden; }
  .mcard__a:is(:hover, :focus-visible) .mcard__body {
    position: absolute; left: 0; right: 0; bottom: 0; max-height: 100%; overflow-y: auto;
    border-radius: calc(var(--r) - 12px) calc(var(--r) - 12px) 0 0; background-image: linear-gradient(to bottom, rgba(16, 40, 62, 1), transparent);
    box-shadow: 0 -16px 32px -18px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  }
  .mcard__a:is(:hover, :focus-visible) :is(.mcard__t, .mcard__d) { display: block; -webkit-line-clamp: none; overflow: visible; }
}
.mcard__d { font-size: .92rem; line-height: 1.55; color: rgba(255, 255, 255, .88); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── about the book + the five pillars: one band, a shade darker than the page ── */
.about-band { background: rgba(12, 32, 52, .1); border-bottom: 1px solid var(--faint); }
.about { padding-bottom: clamp(36px, 5vw, 64px); }
.about__h { text-align: center; }
.about__h::after { content: ""; display: block; width: min(66%, 660px); height: 1px; margin: clamp(26px, 3.4vw, 44px) auto 0; background: var(--yellow); }
.about__grid { display: grid; gap: clamp(28px, 4vw, 40px); }

/* the lede is an abstract book: a glass cover with a spine at the left, page edges at the right and a yellow bookmark */
.about__lead { display: flex; justify-content: center; }
.lede {
  position: relative; display: flex; align-items: center; width: 100%; max-width: 420px; min-height: 340px;
  padding: clamp(84px, 9vw, 104px) clamp(26px, 3.6vw, 44px) clamp(40px, 5vw, 56px) clamp(38px, 4.6vw, 58px);
  border-radius: 10px var(--r) var(--r) 10px;
  box-shadow: var(--glass-hi), 5px 5px 0 -1px rgba(236, 244, 247, .55), 10px 10px 0 -2px rgba(236, 244, 247, .3), var(--shadow);
}
.lede__pages {   /* the spine: a soft shadowed hinge down the left edge */
  position: absolute; top: 0; bottom: 0; left: 0; width: 22px; border-radius: 10px 0 0 10px; pointer-events: none;
  background: linear-gradient(90deg, rgba(28, 39, 53, .2), rgba(28, 39, 53, .06) 55%, rgba(255, 255, 255, .4) 80%, rgba(255, 255, 255, 0));
}
.lede p { margin: 0; font: 600 clamp(1.2rem, 1.05rem + .8vw, 1.6rem)/1.34 var(--f-serif); letter-spacing: -.01em; color: var(--ink); }
.lede__ribbon { position: absolute; top: -1px; right: clamp(24px, 3vw, 38px); width: 44px; height: 72px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.about__body { font-size: clamp(1.06rem, 1rem + .35vw, 1.2rem); line-height: 1.74; max-width: 60ch; }
/* the summary line: kept in the yellow serif italic, a step smaller, under a short yellow rule */
.about__kicker { margin: 0; max-width: 60ch; font: 600 italic clamp(1.25rem, 1.05rem + .7vw, 1.55rem)/1.34 var(--f-serif); letter-spacing: -.01em; color: var(--yellow); }
.about__kicker::before { content: ""; display: block; width: 56px; height: 2px; margin-bottom: .8em; background: var(--yellow); border-radius: 2px; }
@media (min-width: 980px) {
  /* two rows: the book beside the story, then the summary line under the story. The book stands exactly as tall as the story */
  .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "lead body" ". kicker"; column-gap: clamp(48px, 6vw, 88px); row-gap: clamp(28px, 3vw, 40px); align-items: stretch; }
  .about__lead { grid-area: lead; }
  .about__body { grid-area: body; }
  .about__kicker { grid-area: kicker; }
  .about__lead { justify-content: flex-start; }
  .lede { max-width: 400px; }
}

/* the pillars continue the band: less space above and a smaller heading, so they read as part of About */
.about-band .pillars { --pt: 0px; }
.pillars__h { margin: 0 0 14px; font: 600 clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem)/1.15 var(--f-serif); letter-spacing: -.015em; }
.pillars__h em { font-style: italic; }
.pillars .sec__sub { margin-top: 2vh;    margin-bottom: 2vh; font-size: clamp(1.2rem, 2.1vw, 2.48rem);
    letter-spacing: .005em; }

/* praise: on the same darker tint as the media and contact sections */
.praise { background: rgba(12, 32, 52, .2); }
/* ── Blurred stack deck (pillars and endorsements) ──
   After the original site's ATG Blurred Stack Vertical: straight cards, no fan.
   The front card is centred and sharp; its neighbours step out to the sides, smaller,
   fainter and blurred; the next ones out are smaller and blurrier still.
   main.js sets data-pos (0 front, 1 near, 2 far) and --dir (-1 left, 1 right) on each card. */
.pillars, .praise { overflow-x: clip; }
.deck {
  --card-w: min(68vw, 300px); --card-h: calc(var(--card-w) * 4 / 3);
  --near-x: 46%; --near-s: .82; --near-o: .5; --near-b: 4px;
  --far-x: 74%; --far-s: .68; --far-o: .16; --far-b: 10px;
  position: relative; outline-offset: 6px;
}
.deck:focus-visible { outline: 3px solid var(--yellow); border-radius: var(--r); }
.deck__stage { position: relative; height: var(--deck-h, var(--card-h)); margin: 8px 0 0; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.deck__card {
  --dir: 0; --x: 0%; --s: 1;
  position: absolute; top: 0; left: 50%; width: var(--card-w); height: 100%; margin-left: calc(var(--card-w) / -2);
  transform: translateX(calc(var(--dir) * var(--x))) scale(var(--s));
  transition: transform .55s cubic-bezier(.4, 0, .2, 1), opacity .45s ease, filter .45s ease, box-shadow .45s ease;
  will-change: transform, opacity, filter;
}
.deck__card[data-pos="0"] { z-index: 3; box-shadow: var(--glass-hi), 0 22px 70px rgba(8, 24, 40, .34), 0 4px 20px rgba(8, 24, 40, .18); }
.deck__card[data-pos="1"] { --x: var(--near-x); --s: var(--near-s); z-index: 2; opacity: var(--near-o); filter: blur(var(--near-b)); cursor: pointer; }
.deck__card[data-pos="2"] { --x: var(--far-x); --s: var(--far-s); z-index: 1; opacity: var(--far-o); filter: blur(var(--far-b)); cursor: pointer; }
.deck__card[data-pos="3"] { --x: var(--far-x); --s: .5; z-index: 0; opacity: 0; filter: blur(var(--far-b)); pointer-events: none; }
.deck__nav { display: flex; align-items: center; justify-content: center; }
.deck__nav .rail__btn { position: absolute; z-index: 5; top: calc(var(--deck-h, var(--card-h)) / 2 - 23px); }
.deck__nav [data-deck-prev] { left: var(--nav-inset); }
.deck__nav [data-deck-next] { right: var(--nav-inset); }
.deck__count:not(.vh) { min-width: 4.5em; text-align: center; font: 700 .9rem/1 var(--f-ui); color: rgba(255, 255, 255, .85); }
@media (prefers-reduced-motion: reduce) { .deck__card { transition: opacity .2s, filter .2s; } }
@media (min-width: 760px) { .deck { --card-w: 300px; --near-x: 48%; --far-x: 82%; } }
@media (min-width: 1100px) { .deck { --card-w: 320px; --near-x: 52%; --far-x: 92%; } }

/* pillar cards: the cover's yellow and blue circles, seen through frosted glass.
   ::before is the artwork, softly blurred; ::after is the frost, a bright veil with a lit rim that lifts the text */
.pillar {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px 24px; text-align: center; color: var(--ink); overflow: hidden;
  border-radius: var(--r); border: 1.5px solid rgba(255, 255, 255, .75); background: var(--cover-mint);
}
.pillar::before { content: ""; position: absolute; inset: 0; z-index: 0; background: url("../images/pillar-bg.webp") center / cover no-repeat; filter: blur(16px) saturate(115%); }
.pillar::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: linear-gradient(155deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .46) 55%, rgba(255, 255, 255, .58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.pillar > * { position: relative; z-index: 1; }
.pillar__icon { width: 56px; height: 56px; margin-bottom: 4px; color: var(--ink); flex: none; }
.pillar__t { font: 800 clamp(1.25rem, 1.1rem + .5vw, 1.45rem)/1.2 var(--f-ui); }
.pillar__d { margin: 0; font: 600 clamp(1.05rem, .98rem + .3vw, 1.2rem)/1.4 var(--f-ui); color: var(--ink); text-wrap: balance; }

/* ── praise: quote cards in the deck; heights equalised by main.js ── */
.deck--quotes { --card-w: min(72vw, 340px); --near-x: 40%; }
@media (min-width: 760px) { .deck--quotes { --card-w: 380px; --near-x: 50%; --far-x: 86%; } }
@media (min-width: 1100px) { .deck--quotes { --card-w: 420px; --near-x: 56%; --far-x: 98%; } }
.quote { display: flex; flex-direction: column; padding: 26px 24px 20px; }
.quote__mark { width: 38px; height: 38px; flex: none; color: var(--blue); margin-bottom: 14px; transform: rotate(180deg); }
.quote__credit { font: 800 .86rem/1.38 var(--f-ui); color: var(--ink); margin-bottom: .6em; }
.quote__credit em { font-style: italic; }
.quote__body { font-size: .9rem; line-height: 1.5; color: var(--ink-2); margin-bottom: 16px; }
.quote__body p { margin: 0; }
/* long quotes stop at a set number of lines with an ellipsis; tapping the front card (or Read more) opens it in place */
.quote.is-clamped .quote__body p { display: -webkit-box; -webkit-line-clamp: var(--lines, 9); -webkit-box-orient: vertical; overflow: hidden; }
.deck__card.is-front.quote.has-more { cursor: pointer; }
/* tablet and desktop: every endorsement card is capped at this height (px; 350 matches the Amazon review cards);
   main.js trims a longer quote to the lines that fit and gives it Read more */
@media (min-width: 760px) { .deck--quotes { --quote-cap: 550; } }
.quote__more { align-self: flex-start; margin: -8px 0 18px; padding: 4px 0; border: 0; background: none; font: 800 .82rem var(--f-ui); color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quote__by { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(28, 39, 53, .12); }
.quote__by p { margin: 0; display: grid; }
.quote__name { font: 700 1.2rem/1.2 var(--f-serif); color: var(--ink); }
.quote__role { font-size: .82rem; color: var(--muted); }
.quote__logo { max-height: 22px; max-width: 120px; width: auto; object-fit: contain; flex: none; }
@media (min-width: 1100px) { .quote { padding: 32px 32px 24px; } }

/* ── authors ── */
.photo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--glass-edge); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__credit { position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(20, 30, 42, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 600 .72rem/1.2 var(--f-ui); color: rgba(255, 255, 255, .92); }
/* the authors are one glass card: photo on top, the shared line, then both bios */
.authors__card { overflow: hidden; border-radius: var(--r-lg); }
.authors__hero { position: relative; }
.authors__photo { position: relative; margin: 0; aspect-ratio: 3 / 2; }
.authors__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* the credit sits top right on a faint glass pill, out of the way */
.authors__credit { top: 14px; right: 14px; bottom: auto; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .88); font-weight: 500; }
/* phones: the shared line sits on the card's frosted glass under the photo */
.authors__shared { padding: clamp(22px, 4vw, 30px) clamp(24px, 3.6vw, 44px) 0; text-align: center; color: var(--ink); font: 600 clamp(1.15rem, 1rem + .8vw, 1.6rem)/1.42 var(--f-serif); letter-spacing: -.01em; }
.authors__shared p { max-width: 46ch; margin-inline: auto; }
.authors__bios { display: grid; padding: clamp(4px, 1.4vw, 12px) clamp(24px, 3.6vw, 44px) clamp(12px, 2vw, 20px); }
.bio { padding: clamp(20px, 3vw, 32px) 0; font-size: 1rem; line-height: 1.68; }
.bio + .bio { border-top: 1px solid rgba(28, 39, 53, .14); }
.bio p { margin: 0; }
.bio p + p { margin-top: 1em; }
.bio p:first-child > strong:first-child { font: 700 1.36em/1 var(--f-serif); color: var(--ink); letter-spacing: -.015em; }
.bio a { color: inherit; text-underline-offset: 3px; }
@media (min-width: 760px) {
  .authors__photo { aspect-ratio: 2 / 1; }
  /* wider screens: the shared line moves onto the foot of the photo over a soft dark gradient */
  .authors__shared {
    position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(90px, 11vw, 140px) clamp(32px, 5vw, 64px) clamp(26px, 3.4vw, 40px);
    color: var(--paper); text-shadow: 0 1px 12px rgba(8, 22, 36, .45);
    background: linear-gradient(to top, rgba(10, 26, 42, .82), rgba(10, 26, 42, .5) 48%, rgba(10, 26, 42, 0));
  }
  .authors__bios { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(40px, 5vw, 72px); }
  .bio + .bio { border-top: 0; position: relative; }
  .bio + .bio::before { content: ""; position: absolute; top: clamp(20px, 3vw, 32px); bottom: clamp(20px, 3vw, 32px); left: calc(clamp(40px, 5vw, 72px) / -2); border-left: 1px solid rgba(28, 39, 53, .14); }
}

/* speaking tucks up under the authors card with the same gap as between its own tiles, so the two read as one */
.sec.authors { padding-bottom: clamp(16px, 2vw, 20px); }
.sec.speak { --pt: 80px; }
/* ── speaking: always tiles. A tall dark intro tile, then one light tile per talk ── */
.speak__panel { display: grid; gap: clamp(36px, 4vw, 48px); }
.speak__intro {
  display: flex; flex-direction: column; padding: clamp(28px, 4vw, 48px) clamp(24px, 3.6vw, 44px); border-radius: var(--r-lg);
  border: 1px solid; border-color: var(--glass-rim); background: var(--sheen), var(--glass-dark); box-shadow: var(--glass-hi), var(--shadow);
  -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
}
.speak__intro .h2 { font-size: clamp(2.1rem, 1rem + 2.6vw, 3rem); }
.speak__seen { font: 600 clamp(1.08rem, .98rem + .5vw, 1.3rem)/1.45 var(--f-serif); color: var(--yellow); margin-bottom: 26px; }
.speak__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.speak__talks { padding-top: 12px; }
/* "Signature Talks:" sits between the h3 and h2 sizes */
.speak__talks > .h3 { font-size: clamp(1.7rem, 1.25rem + 1.5vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: .3em; }
.speak__note { font: 700 .98rem/1.45 var(--f-ui); color: var(--yellow); margin-bottom: 0; }
.talks { display: grid; gap: clamp(16px, 2vw, 20px); margin-top: 18px; }
.talk {
  padding: 24px 24px 22px; border-radius: var(--r); color: var(--ink);
  border: 1px solid; border-color: var(--glass-rim); background: var(--sheen), var(--glass-light); box-shadow: var(--glass-hi), var(--shadow);
  -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
}
.talk__t { font: 700 1.28rem/1.25 var(--f-serif); margin-bottom: 6px; }
.talk p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
@media (min-width: 640px) {
  .talks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .talk:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .speak__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .speak__intro .h2 { margin-bottom: 22px; }
}

/* ── contact ──
   One design in two places: the section at the foot of the page and the side panel. Its layout follows the width of
   whichever container holds it (container queries), so the panel always shows the phone layout. */
.contact { background: rgba(12, 32, 52, .2); }
.contact__home, .cpanel__body { container: contact / inline-size; }
.contact__grid { display: grid; gap: 28px; }
.contact__side { display: flex; flex-direction: column; }
.contact__side .script-h { margin-bottom: 18px; }
.contact__photo { aspect-ratio: 4 / 3; margin-bottom: 20px; }
.contact__photo img { object-position: 50% 22%; }
.contact__intro { font-size: 1.08rem; color: rgba(255, 255, 255, .9); max-width: 38ch; }
.contact__form { padding: clamp(24px, 4vw, 44px); color: var(--ink); border-radius: var(--r-lg); }
/* wide container: the photo grows or shrinks so the left column ends level with the form */
@container contact (min-width: 936px) {
  .contact__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(40px, 5vw, 72px); align-items: stretch; }
  .contact__photo { flex: 1 1 0; min-height: 220px; aspect-ratio: auto; }
  .contact__photo img { position: absolute; inset: 0; }
  .contact__intro { margin-bottom: 14px; }
}
/* ── contact side panel ──
   Contact Us links open this instead of scrolling: a glass sheet on the page gradient, from the right on wider
   screens and up from the bottom on phones. The intro line is left out here to keep the panel short. */
.cpanel {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; width: min(480px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  overflow-y: auto; overscroll-behavior: contain; color: var(--paper);
  border: 1px solid; border-color: var(--glass-rim); border-right: 0; border-radius: var(--r-lg) 0 0 var(--r-lg);
  background: var(--sheen), var(--bg); box-shadow: var(--glass-hi), -24px 0 60px -30px rgba(5, 18, 30, .7);
}
.cpanel[open] { animation: cpanel-in .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes cpanel-in { from { transform: translateX(100%); } }
.cpanel::backdrop { background: rgba(8, 20, 32, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cpanel__bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 14px 14px 0; pointer-events: none; }
.cpanel__x {
  pointer-events: auto; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; color: var(--paper);
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04)) rgba(18, 46, 72, .3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
}
.cpanel__x:hover { background-color: rgba(18, 46, 72, .5); }
.cpanel__x .icon { width: 20px; height: 20px; }
/* Full-bleed sheet: a centred title band level with the close button, the photo edge to edge, the social
   buttons centred, then the form filling the rest of the panel below a hairline. */
.cpanel__body { padding: 0; margin-top: -58px; min-height: 100%; display: flex; flex-direction: column; }
.cpanel .contact__grid { gap: 0; flex: 1; grid-template-rows: auto 1fr; }
.cpanel .contact__side .script-h { margin: 0; padding: 12px 64px 14px; text-align: center; font-size: clamp(2.5rem, 1.9rem + 2vw, 3.2rem); line-height: 1.1; }
.cpanel .contact__intro { display: none; }
.cpanel .contact__photo { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.cpanel .social { justify-content: center; padding: 22px 0 24px; }
.cpanel .contact__form { border: 0; border-top: 1px solid rgba(255, 255, 255, .45); border-radius: 0; box-shadow: none; padding: 30px clamp(20px, 7.5cqi, 36px) 36px; }
html.cpanel-open { overflow: hidden; }
@media (max-width: 599px) {
  .cpanel { inset: auto 0 0 0; width: 100vw; height: calc(100dvh - 10px); max-height: calc(100dvh - 10px); border-right: 1px solid; border-color: var(--glass-rim); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .cpanel[open] { animation-name: cpanel-up; }
}
@keyframes cpanel-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .cpanel[open] { animation: none; } }

.social { display: flex; gap: 12px; }
.social a {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 56%) var(--btn);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -2px 5px rgba(150, 128, 0, .22), 0 8px 16px -10px rgba(0, 0, 0, .6); transition: background-color .2s, transform .2s;
}
.social a:hover { background-color: var(--btn-hi); transform: translateY(-2px); }
.social .icon { width: 24px; height: 24px; }

/* footer band: newsletter above the house footer, on every page */
.foot { background: rgba(20, 30, 42, .9); }
.joint { padding: clamp(36px, 5vw, 56px) 0; }
.joint__in { display: grid; gap: 18px 32px; justify-items: center; text-align: center; }
.joint__img { width: 128px; border-radius: 14px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .8); }
.joint__h { font: 700 clamp(1.35rem, 1.15rem + .7vw, 1.7rem)/1.2 var(--f-serif); color: var(--paper); margin-bottom: 6px; }
.joint__copy p { margin: 0; color: rgba(255, 255, 255, .78); max-width: 44ch; }
@media (min-width: 760px) { .joint__in { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; text-align: left; align-items: center; } }

/* forms (shared with /questions) */
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 560px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font: 700 .82rem/1.3 var(--f-ui); color: var(--ink-2); letter-spacing: .01em; padding: 0; }
.req { color: #a23b2a; }
.field input, .field textarea {
  width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid rgba(28, 39, 53, .18); border-radius: 12px;
  background: rgba(255, 255, 255, .76); color: var(--ink); font: 400 1rem/1.4 var(--f-ui); transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #7d8896; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(57, 121, 169, .25); }
.field [aria-invalid="true"] { border-color: #a23b2a; box-shadow: 0 0 0 3px rgba(162, 59, 42, .15); }
.field__err { font: 600 .8rem/1.3 var(--f-ui); color: #a23b2a; }
.field--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.field--chips legend { width: 100%; margin-bottom: 8px; float: left; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(28, 39, 53, .22); background: rgba(255, 255, 255, .6); font: 600 .9rem/1.2 var(--f-ui); color: var(--ink); transition: background-color .15s, border-color .15s; }
.chip span::before { content: "+"; font-weight: 800; color: var(--blue); }
.chip input:checked + span { background: var(--btn); border-color: var(--btn); }
.chip input:checked + span::before { content: "\2713"; color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 10px; font: 500 .92rem/1.45 var(--f-ui); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--btn); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__err { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(162, 59, 42, .1); color: #7d2617; font: 600 .9rem/1.4 var(--f-ui); }
.form__done { padding: 8px 0; color: var(--ink); }
.form__done:focus { outline: 0; }
.form__done-t { font: 700 1.15rem/1.4 var(--f-ui); }
.form__done-t .icon { color: #2d7a4f; }
.form__done a { color: var(--blue); }

/* ── newsletter slide-in ── */
.popup {
  position: fixed; z-index: 45; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: min(272px, calc(100vw - 32px));
  display: grid; justify-items: center; gap: 14px; padding: 18px 18px 20px; text-align: center;
  border-radius: 22px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(40, 50, 62, .88); color: var(--paper);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6); animation: popup-in .45s cubic-bezier(.2, .8, .2, 1);
}
@keyframes popup-in { from { opacity: 0; transform: translateX(40px); } }
.popup__img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; border-radius: 12px; }
.popup__t { margin: 0; font-size: .95rem; line-height: 1.45; }
.popup__x { position: absolute; top: -12px; right: -10px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--ink); color: var(--yellow); cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.popup__x .icon { width: 18px; height: 18px; }
@media (max-width: 599px) {
  .popup { left: 12px; right: 12px; width: auto; grid-template-columns: 124px minmax(0, 1fr); text-align: left; justify-items: start; align-items: center; gap: 10px 14px; padding: 14px 16px 14px 14px; }
  .popup__img { grid-row: span 2; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) { .popup, .menu { animation: none; } }

/* ── video lightbox ── */
.vbox { width: min(960px, 94vw); padding: 0; border: 0; border-radius: 18px; background: #000; overflow: visible; }
.vbox::backdrop { background: rgba(8, 16, 26, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.vbox__slot { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; }
.vbox__x { position: absolute; top: -48px; right: 0; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--btn); color: var(--ink); cursor: pointer; }
.video__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.video__link { position: absolute; inset: 0; display: grid; place-items: center; }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__play { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: rgba(28, 39, 53, .78); color: var(--yellow); }
.video__play .icon { width: 34px; height: 34px; margin-left: 4px; }
.video__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__link.is-loading { z-index: 2; cursor: progress; }
.video__link.is-loading .video__play { animation: video-wait 1s ease-in-out infinite alternate; }
@keyframes video-wait { to { opacity: .55; scale: .94; } }
@media (prefers-reduced-motion: reduce) { .video__link.is-loading .video__play { animation: none; opacity: .6; } }

/* ── /questions: one job, above the fold on a phone ── */
.top--slim .top__act { gap: 0; }
.qpage { min-height: 100svh; padding: calc(var(--top-h) + 18px) 0 48px; }
.qcard { max-width: 560px; margin: 0 auto; padding: 22px 20px 24px; background: rgba(150, 180, 170, .42); color: var(--paper); border-radius: var(--r-lg); }
/* the PDF's own cover, so a visitor arriving from a QR code sees what they are about to get */
.qcard__head { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 20px; }
.qcard__cover { width: 100%; height: auto; margin: 0; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 12px 22px -8px rgba(10, 30, 50, .45); }
.qcard__text { min-width: 0; }
.qcard .script-h { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin: 0; }
.qcard__sub { margin: 8px 0 0; color: rgba(255, 255, 255, .88); font-size: .98rem; line-height: 1.35; }
.qcard .form { gap: 14px; }
.qcard .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qcard .field label { color: rgba(255, 255, 255, .92); }
.qcard .field input { background: rgba(255, 255, 255, .92); border-color: rgba(255, 255, 255, .6); padding: 12px 13px; }
.qcard .req { color: var(--yellow); }
.qcard .form__err { background: rgba(255, 255, 255, .92); }
.qcard .field__err { color: #ffe9a8; }
.qcard__note { margin: 6px 0 0; font-size: .85rem; line-height: 1.35; color: rgba(255, 255, 255, .9); font-weight:800; }
@media (min-width: 760px) {
  .qpage { display: grid; align-items: center; padding-bottom: 72px; }
  .qcard { padding: 40px 44px 40px; }
  .qcard__head { grid-template-columns: 150px minmax(0, 1fr); gap: 28px; margin-bottom: 40px; }
}

/* ───────── ATG branding footer (shared house block) ─────────
   Portable: set the three --atg-foot-* tokens per site; nothing else changes. */
.atg-foot {
  --atg-foot-fg: var(--paper, #fff);
  --atg-foot-muted: rgba(255, 255, 255, .69);
  --atg-foot-line: var(--faint, rgba(255, 255, 255, .14));
  text-align: center; color: var(--atg-foot-fg);
  border-top: 1px solid var(--atg-foot-line);
  padding: clamp(36px, 6vh, 56px) 16px calc(clamp(28px, 5vh, 44px) + var(--dock-space, 0px));
  transition: padding .5s ease;
}
.atg-foot__copy { margin: 0; font-size: clamp(15px, 1vw + 8px, 18px); font-weight: 500; }
.atg-foot__credit {
  margin: 2.25vh 0 0; font-family: system-ui, sans-serif; font-size: 90%; font-weight: 400;
  text-transform: lowercase; color: #eee;
}
.atg-foot__brand { display: inline-block; margin-left: .14rem; text-transform: lowercase; }
.atg-foot__brand a { color: var(--atg-foot-fg); text-decoration: none; }
.atg-foot__brand a:hover { text-decoration: underline; text-underline-offset: 3px; }
.atg-foot__brand::after {
  /* external-link mark as a masked SVG so it takes the text colour; swap to FA ("\f14c") on sites that load the kit */
  content: ""; display: inline-block; width: .74em; height: .74em; margin-left: .3rem; vertical-align: -.04em;
  background-color: currentColor; opacity: .85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-8.5 8.5'/%3E%3Cpath d='M19 14.5V19a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 4 19V7a1.5 1.5 0 0 1 1.5-1.5H10'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-8.5 8.5'/%3E%3Cpath d='M19 14.5V19a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 4 19V7a1.5 1.5 0 0 1 1.5-1.5H10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.atg-foot__brand b { font-weight: 700; }
.atg-foot__tag-link { display: inline-block; margin-top: 1.5vh; border-radius: 50%; }
.atg-foot__tag {
  display: inline-block; vertical-align: middle; border-radius: 50%;
  filter: grayscale(100%); transform: scale(1);
  transition: filter 1s ease-in-out, transform 1s ease-in-out;
}
.atg-foot__tag-link:hover .atg-foot__tag,
.atg-foot__tag-link:focus-visible .atg-foot__tag { filter: grayscale(0%); transform: scale(1.25); }
.atg-foot__tag-link:focus-visible { outline: 2px solid var(--atg-foot-fg); outline-offset: 6px; }
