/* =====================================================================
   First, Earn Trust: single-page book site
   One global stylesheet. Change the look by editing the :root tokens.
   ===================================================================== */

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", cursive;

  --ink: #111111;
  --muted: #5d5d5d;
  --paper: #ffffff;
  --soft: #f4f7f5;
  --line: rgba(17, 17, 17, 0.12);

  /* THE one accent colour. Change these three and the whole site follows. */
  --accent: #43d9a3;
  --accent-circle: #5fe0b2;   /* the big disc behind the book */
  --accent-strip: #43d9a3;    /* the small label pill ("THE SHIFT") */
  /* The highlight marker image is drawn in yellow. This filter re-tints it to the accent.
     When the designer delivers the final marker in the final colour, set this to: none */
  --marker-filter: hue-rotate(80deg) saturate(0.78) brightness(0.96);

  --shadow: 0 28px 70px rgba(0, 0, 0, 0.12);
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --header: 76px;
  --scroll: 0;

  --section-display-size: clamp(32px, 5vw, 72px);
  --body-size: clamp(16px, 1.125vw, 18px);
  --body-line: 1.5;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: var(--body-line);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }
section, [id] { scroll-margin-top: var(--header); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin: 0 auto; }
.lede { color: var(--muted); max-width: 720px; margin: 18px auto 0; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 20px; }

/* ---------- display type + hand-lettered highlight (the signature detail) ---------- */
.display { font-weight: 900; line-height: 0.86; text-transform: uppercase; letter-spacing: -0.02em; }
.display { font-size: var(--section-display-size); }
.heading-lead { display: block; }
.hand-highlight {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0.35em auto 0;
  padding: 0.18em 0.5em;
  font-family: var(--hand);
  font-weight: 500;
  font-size: 0.8em;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-transform: none;
  color: #000;
  isolation: isolate;
}
.hand-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/images/highlight-marker.png") center / 100% 100% no-repeat;
  filter: var(--marker-filter);
}

/* ---------- atmosphere ---------- */
.progress { position: fixed; top: 0; left: 0; z-index: 1200; height: 4px; width: calc(var(--scroll) * 1%); background: var(--accent); }
.noise {
  position: fixed; inset: 0; z-index: 1000; pointer-events: none; opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.cursor-glow {
  display: none; position: fixed; left: var(--cursor-x, -999px); top: var(--cursor-y, -999px); z-index: 1;
  width: 420px; height: 420px; border-radius: 50%; pointer-events: none; opacity: 0.18; mix-blend-mode: multiply;
  background: radial-gradient(circle, var(--accent), transparent 62%); transform: translate(-50%, -50%);
}
@media (hover: hover) and (pointer: fine) { .cursor-glow { display: block; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.reveal-from-left { transform: translateX(-40px); }
.reveal.on { opacity: 1; transform: none; }
.reveal.settled { transition-delay: 0s; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------- header ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--header);
  display: flex; align-items: center; background: #fff; box-shadow: 0 2px 14px rgba(17, 17, 17, 0.08);
  transition: height 0.24s ease, box-shadow 0.24s ease;
}
.topbar.compact { height: 62px; box-shadow: 0 2px 10px rgba(17, 17, 17, 0.07); }
.nav {
  position: relative; width: min(var(--max), calc(100% - var(--gutter) * 2)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 40px);
}
.nav-group { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav-right { justify-content: flex-end; }
.nav a, .nav button { font-size: 13px; font-weight: 800; text-transform: uppercase; line-height: 1; color: #151515; border: 0; background: transparent; }
.nav-group a { position: relative; padding: 10px 0; }
.nav-group a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 2px; background: var(--accent); }
.brand-logo { height: 38px; width: auto; }
.nav .nav-cta { background: var(--accent); padding: 13px 20px; border-radius: 999px; transition: transform 0.2s ease; }
.nav-orb {
  position: absolute; z-index: -1; left: var(--nav-glow-x, -999px); top: var(--nav-glow-y, -999px); width: 72px; height: 30px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 40%, transparent); filter: blur(16px); transform: translate(-50%, -50%); pointer-events: none;
}
.nav-orb { display: none; }
@media (hover: hover) and (pointer: fine) { .nav-orb { display: block; } }
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: var(--header) 0 0 0; z-index: 850; background: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
  opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a:not(.btn) { font-size: 28px; font-weight: 900; text-transform: uppercase; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: #000; font-weight: 800; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14); }
.btn.secondary { background: #fff; border-color: var(--line); }

/* ---------- 1. hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center;
  padding: calc(var(--header) + 56px) var(--gutter) 72px; background: linear-gradient(180deg, #f2fbf6, #ffffff 88%);
}
.hero-content { display: flex; flex-direction: column; align-items: center; gap: 36px; width: 100%; }
.hero .display { font-size: clamp(44px, 11vw, 168px); }
.hero-line { display: block; }
.hero-line:first-child b { font-size: 0.42em; letter-spacing: 0.02em; }
.hero-wipe { display: inline-block; clip-path: inset(0 100% 0 0); animation: hero-wipe 1.15s var(--ease) 0.11s forwards; }
.hero-hand { margin-top: 0.15em; font-size: clamp(26px, 3.6vw, 52px); opacity: 0; animation: rise 0.7s var(--ease) 0.7s forwards; }
.hero-quote { max-width: 760px; margin: 28px auto 0; color: var(--muted); opacity: 0; animation: rise 0.7s var(--ease) 0.52s forwards; }
.hero-sub { max-width: 640px; margin: 14px auto 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); opacity: 0; animation: rise 0.7s var(--ease) 0.62s forwards; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero-actions .btn { opacity: 0; animation: rise 0.6s var(--ease) 0.95s forwards; }
.hero-actions .btn.secondary { animation-delay: 1.05s; }
@keyframes hero-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   2. THE BOOK: pinned, scroll-scrubbed flipbook
   ===================================================================== */
.fet-book-anim {
  --fet-circle-size: min(68vh, 56vw, 640px);
  --page-h: calc(var(--fet-circle-size) * 0.7);
  --page-w: calc(var(--page-h) * 2 / 3);
  --panel-title: clamp(2.5rem, 4.2vw + 1rem, 7.375rem);
  --panel-num: clamp(5.5rem, 11vw + 1.25rem, 13.75rem);
  --panel-quote: clamp(1.25rem, 1.6vw + 0.65rem, 2.5rem);
  --panel-body: clamp(0.9375rem, 0.35vw + 0.82rem, 1.0625rem);
  --panel-band: clamp(0.625rem, 0.55vw + 0.5rem, 0.75rem);
  position: relative; background: #fff; isolation: isolate;
}
@media (max-width: 1200px) { .fet-book-anim { --fet-circle-size: min(66vh, 52vw, 600px); } }
@media (max-width: 1100px) { .fet-book-anim { --fet-circle-size: min(62vh, 48vw, 540px); --panel-title: clamp(2.25rem, 5.5vw + 0.5rem, 5.5rem); } }
@media (max-width: 900px)  { .fet-book-anim { --fet-circle-size: min(58vh, 44vw, 480px); } }

.fet-track { position: relative; height: 520vh; }
.fet-stage {
  position: absolute; top: 0; left: 0; width: 100%; height: calc(100vh - var(--header)); overflow: hidden; background: #fff; z-index: 2;
}
.fet-stage.is-pinned { position: fixed; top: var(--header); z-index: 5; }
.fet-stage.is-ended { top: auto; bottom: 0; }

.fet-visual { position: absolute; inset: 0; pointer-events: none; }
.fet-approach-line, .fet-approach-dot { display: none; pointer-events: none; }
.fet-circle {
  position: absolute; top: 50%; left: 50%; z-index: 1; width: var(--fet-circle-size); height: var(--fet-circle-size);
  border-radius: 50%; background: var(--accent-circle); transform: translate(-50%, -50%) scale(0.78); will-change: transform;
}
.fet-book-scene {
  position: absolute; top: 50%; left: 50%; z-index: 3; width: calc(var(--page-w) * 2); height: var(--page-h);
  transform: translate(-50%, -50%) scale(0.78); will-change: transform; pointer-events: auto;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.22));
}

/* the 3D book: 5 leaves, each rotates about the spine (left edge of its half) */
.fet-book { position: relative; width: 100%; height: 100%; perspective: 2600px; cursor: pointer; outline-offset: 8px; }
.leaf {
  position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
  transform-origin: left center; transform-style: preserve-3d; will-change: transform;
}
.face {
  position: absolute; inset: 0; overflow: hidden; background: #fff;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.face img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.face.back { transform: rotateY(180deg); }
.face.back.blank { background: #f1f1ee; }
/* soft shading: darker near the spine, plus a mid-flip shade driven by --shade */
.face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.face.front::after { background: linear-gradient(to right, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0) 14%), rgba(0, 0, 0, var(--shade, 0)); }
.face.back::after  { background: linear-gradient(to left,  rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0) 14%), rgba(0, 0, 0, var(--shade, 0)); }
.is-linear .leaf { transition: transform 0.9s cubic-bezier(0.4, 0.1, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .is-linear .leaf { transition: none; } }


/* "NOT ..." cards */

/* the four chapter panels */
.fet-copy {
  position: absolute; top: 0; left: 0; width: 100%; max-width: 46%; height: 100%; z-index: 4; pointer-events: none;
  padding: 0 clamp(12px, 2vw, 24px) 0 var(--gutter);
}
.fet-panel {
  position: absolute; left: var(--gutter); right: clamp(12px, 2vw, 24px); top: 50%;
  opacity: 0; visibility: hidden; transform: translateY(calc(-50% + 20px));
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
}
.fet-panel.active { opacity: 1; visibility: visible; transform: translateY(-50%); }
.fet-panel-stack { display: flex; flex-direction: column; gap: clamp(14px, 2.2vh, 24px); padding-left: 9%; }
.fet-panel-num { font-size: var(--panel-num); font-weight: 900; line-height: 0.82; letter-spacing: -0.04em; color: rgba(17, 17, 17, 0.07); user-select: none; margin-bottom: clamp(-60px, -4vh, -16px); }
.fet-panel-band { align-self: flex-start; padding: 0.45em 20px; background: var(--accent-strip); border-radius: 999px; position: relative; z-index: 3; }
.fet-panel-band span { font-size: var(--panel-band); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.2; }
.fet-panel-title { font-size: var(--panel-title); font-weight: 900; line-height: 0.94; letter-spacing: -0.03em; position: relative; z-index: 2; }
.fet-panel-quote { font-size: var(--panel-quote); line-height: 1.22; position: relative; z-index: 1; }
.fet-panel-quote .hand-highlight { margin: 0; font-size: 1em; }
.fet-panel-body { font-size: var(--panel-body); line-height: 1.55; color: #5c5c5c; }

.fet-hero-cap {
  position: absolute; top: min(calc(50% + var(--fet-circle-size) / 2 + clamp(8px, 1.2vh, 16px)), calc(100% - 52px)); left: 50%;
  transform: translateX(-50%); z-index: 4; width: max-content; max-width: calc(100% - var(--gutter) * 2); text-align: center; pointer-events: none; opacity: 0;
}
.fet-hero-cap h2 { font-size: clamp(0.7rem, 1.05vw + 0.38rem, 1.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; text-transform: uppercase; }
.fet-cue {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 4; opacity: 0; pointer-events: none;
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.fet-cue::after { content: ""; display: block; width: 1px; height: 22px; margin: 8px auto 0; background: var(--muted); animation: cue 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.fet-flip-btn, .fet-tap-hint { display: none; }

/* ---------- linear mode: phones, tablets and reduced motion (no pinning) ---------- */
.is-linear .fet-book-anim { --fet-circle-size: min(80vw, 340px); padding-top: 8px; overflow: hidden;
  --panel-title: clamp(2rem, 9vw + 0.5rem, 3.25rem); --panel-num: clamp(3.75rem, 20vw, 6.5rem);
  --panel-quote: clamp(1.125rem, 4.5vw + 0.25rem, 1.625rem); --panel-body: clamp(0.9375rem, 3.6vw, 1.0625rem); --panel-band: clamp(0.5625rem, 2.8vw, 0.6875rem); }
.is-linear .fet-track { height: auto; }
.is-linear .fet-stage, .is-linear .fet-stage.is-pinned, .is-linear .fet-stage.is-ended {
  position: relative; top: auto; bottom: auto; height: auto; display: flex; flex-direction: column; align-items: center;
  padding: 0 var(--gutter) 16px; overflow: visible;
}
.is-linear .fet-visual { position: relative; inset: auto; order: 1; width: var(--fet-circle-size); height: var(--fet-circle-size); margin: 8px auto 4px; display: grid; place-items: center; pointer-events: auto; }
.is-linear .fet-circle, .is-linear .fet-book-scene { position: relative; top: auto; left: auto; grid-area: 1 / 1; transform: none; will-change: auto; }
.is-linear .fet-book-scene { margin: 0; }
.is-linear .fet-flip-btn {
  display: inline-flex; grid-area: 1 / 1; align-self: end; justify-self: center; transform: translateY(70px); z-index: 6;
  padding: 0.7rem 1.4rem; border: 1px solid var(--ink); border-radius: 40px; background: #fff; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
}
.is-linear .fet-flip-btn:disabled { opacity: 0.4; }
.is-linear .fet-tap-hint { display: flex; order: 2; align-items: center; gap: 8px; margin: 74px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.is-linear .fet-tap-icon { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: tap-pulse 1.4s ease-in-out infinite; }
@keyframes tap-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: 0.4; } }
.is-linear .fet-cue { display: none; }
.is-linear .fet-copy { position: relative; order: 3; width: 100%; max-width: 100%; height: auto; padding: clamp(20px, 5vh, 36px) 0; pointer-events: auto; text-align: center; }
.is-linear .fet-panel { position: relative; left: auto; right: auto; top: auto; display: none; transform: translateY(12px); }
.is-linear .fet-panel.active { display: block; transform: none; animation: rise 0.45s ease both; }
.is-linear .fet-panel-stack { padding-left: 0; align-items: center; gap: clamp(12px, 3.5vw, 20px); }
.is-linear .fet-panel-num { margin-bottom: 0; text-align: center; }
.is-linear .fet-panel-band { align-self: center; }
.is-linear .fet-hero-cap { position: relative; order: 4; top: auto; left: auto; transform: none; opacity: 1 !important; margin: 4px auto 24px; }
.is-linear .fet-hero-cap.is-gone { display: none; }
.is-linear .fet-hero-cap h2 { white-space: normal; font-size: 0.95rem; }

/* ---------- 3. inside the book (mosaic) ---------- */
.mosaic-section { padding: clamp(72px, 9vw, 130px) 0 clamp(40px, 5vw, 70px); background: #fff; position: relative; z-index: 6; }
.mosaic-heading { text-align: center; padding: 0 var(--gutter) clamp(36px, 5vw, 64px); }
.mosaic-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 0 var(--gutter) clamp(24px, 4vw, 48px); align-items: start; }
.mosaic-col { display: flex; flex-direction: column; gap: 10px; }
.mosaic-photo { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 1; background: var(--soft); }
.mosaic-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mosaic-photo:hover img { transform: scale(1.06); }
.mosaic-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 12px 12px; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
}
.mosaic-photo figcaption small { display: block; margin-bottom: 3px; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

/* 3D tilt (mouse only) */
.tilt-card { --tilt-x: 0deg; --tilt-y: 0deg; --lift: 0px; }
.tilt-card.reveal.on { transform: perspective(900px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) translateY(var(--lift)); }
.tilt-card.reveal.settled { transition: opacity 0.55s var(--ease), transform 0.22s ease; }
.tilt-card:hover { --lift: -6px; }

/* ---------- 4. about the author ---------- */
.ah-hero { padding: clamp(70px, 9vw, 130px) var(--gutter); background: var(--soft); position: relative; z-index: 6; }
.ah-hero-grid { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.ah-headline { font-size: var(--section-display-size); font-weight: 900; text-transform: uppercase; line-height: 0.86; letter-spacing: -0.02em; }
.ah-headline .hand-highlight { margin-left: 0; }
.ah-body { margin-top: 32px; display: grid; gap: 16px; color: var(--muted); max-width: 640px; }
.ah-body strong { color: var(--ink); }
.ah-quote { margin-top: 28px; max-width: 560px; font-size: clamp(20px, 2vw, 28px); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.ah-sig { margin-top: 22px; }
.ah-sig-img { height: 64px; width: auto; }
.ah-right { position: relative; }
.ah-shape { position: absolute; inset: 8% -6% -6% 10%; border-radius: 32px; background: var(--accent-circle); transform: rotate(3deg); }
.ah-portrait { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }

/* ---------- 5. the wall ---------- */
.fet-wall-widget { padding: clamp(70px, 9vw, 130px) 0; background: #fff; text-align: center; position: relative; z-index: 6; }
.fet-wall-wrap { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin: 0 auto; }
.fet-wall-kicker { font-size: 14px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.fet-wall-q { font-size: clamp(28px, 4.4vw, 62px); }
.fet-wall-intro { margin-top: 22px; color: var(--muted); }
.whiteboard {
  position: relative; width: 100%; min-height: 560px; margin: clamp(36px, 5vw, 64px) auto 0; overflow: hidden; text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 24px; box-shadow: var(--shadow); background-color: #fbfffd;
  background-image: linear-gradient(rgba(21, 20, 15, 0.05) 1px, transparent 0), linear-gradient(90deg, rgba(21, 20, 15, 0.035) 1px, transparent 0);
  background-size: 32px 32px;
}
.sticky-note {
  position: absolute; z-index: 2; width: 142px; min-height: 104px; padding: 14px; border-radius: 12px; background: var(--accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16); transition: box-shadow 0.24s ease; user-select: none; touch-action: none; cursor: grab;
}
.sticky-note:active { cursor: grabbing; box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22); z-index: 3; }
.sticky-note.is-seed { opacity: 0.85; }
.sticky-note .text { font-family: var(--hand); font-size: 30px; line-height: 1; letter-spacing: -0.02em; }
.sticky-note .author { font-size: 12px; font-weight: 700; opacity: 0.65; }
.sticky-note.pop { animation: note-in 0.5s var(--ease); }
@keyframes note-in { from { opacity: 0; transform: scale(0.6) rotate(-10deg); } }
.wall-input {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  padding: 12px; width: max-content; max-width: calc(100% - 24px); background: #fff; border-radius: 999px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
}
.wall-input select, .wall-input input { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; }
.wall-input button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.wall-input button:disabled { opacity: 0.45; cursor: not-allowed; }
.fet-wall-count { margin-top: 22px; color: var(--muted); font-size: 15px; }
.fet-wall-count b { color: var(--ink); }

/* ---------- 6. promise ---------- */
.promise { position: relative; padding: clamp(92px, 11vw, 150px) var(--gutter); background: #000; color: #fff; text-align: center; overflow: hidden; z-index: 6; }
.promise-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promise-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); }
.promise .wrap { position: relative; z-index: 2; max-width: 880px; }
.promise-title { font-size: clamp(30px, 4.6vw, 64px); }
.promise p:not(.eyebrow) { margin-top: 28px; color: rgba(255, 255, 255, 0.82); }
.promise .hand-highlight { color: #000; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 6; padding: clamp(76px, 9vw, 116px) 0 30px; background: #fff; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.footer-logo { height: 52px; width: auto; }
.footer-note { margin: 18px 0 0; font-size: 15px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-links h4 { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links a, .footer-links [data-social] a { display: block; padding: 5px 0; color: var(--muted); font-size: 15px; }
.footer-links a:hover { color: var(--ink); }
.footer-link-btn { border: 0; background: none; padding: 0; margin-top: 10px; }
.footer-link-btn .hand-highlight { margin: 0; font-size: 1.4em; }
.footer-giant {
  margin: clamp(40px, 6vw, 70px) auto 0; text-align: center; white-space: nowrap; font-size: clamp(40px, 11.5vw, 190px); font-weight: 900; line-height: 0.9; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px rgba(17, 17, 17, 0.18); user-select: none;
}
.footer-copyright { margin-top: 28px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-card { position: relative; width: min(480px, 100%); max-height: 92vh; overflow: auto; padding: 36px 32px; background: #fff; border-radius: 24px; box-shadow: var(--shadow); transform: translateY(14px) scale(0.98); transition: transform 0.3s var(--ease); }
.modal.open .modal-card { transform: none; }
.modal-close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; }
.join-title { font-size: 34px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
.join-sub { margin-top: 10px; color: var(--muted); font-size: 15px; }
.join-form { margin-top: 22px; display: grid; gap: 14px; }
.join-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.join-form input, .join-form textarea { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-weight: 400; }
.join-form input:focus, .join-form textarea:focus, .wall-input select:focus, .wall-input input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-status { min-height: 1.2em; font-size: 14px; color: var(--muted); }
.form-status.ok { color: #137a55; font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 1050px) {
  .mosaic-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-group { display: none; }
  .brand { justify-self: start; }
  .nav-toggle { display: flex; }
  .ah-hero-grid { grid-template-columns: 1fr; }
  .ah-right { max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mosaic-grid { grid-template-columns: repeat(2, 1fr); }
  .whiteboard { min-height: 620px; }
  .wall-input { flex-direction: column; border-radius: 24px; width: calc(100% - 24px); }
  .wall-input select, .wall-input input, .wall-input button { width: 100%; }
  .sticky-note { width: 118px; min-height: 90px; padding: 10px; }
  .sticky-note .text { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero-wipe { clip-path: none; }
  .hero-quote, .hero-sub, .hero-hand, .hero-actions .btn { opacity: 1; }
}

/* =====================================================================
   TEAL / CREAM / YELLOW THEME (local preview only, matches cover SP_04 p14)
   teal #006C61  cream #FBF6EE  yellow #DFE01C
   ===================================================================== */
:root {
  --teal: #006c61;
  --teal-deep: #004a42;
  --cream: #fbf6ee;
  --cream-2: #f2ebdd;
  --yellow: #dfe01c;

  --ink: #0d2b27;
  --muted: #4f625e;
  --paper: var(--cream);
  --soft: var(--cream-2);
  --line: rgba(0, 108, 97, 0.18);

  --accent: var(--yellow);
  --accent-circle: var(--yellow);
  --accent-strip: var(--yellow);
  --marker-filter: hue-rotate(6deg) saturate(0.95) brightness(0.98);
}
body { background: var(--cream); }
.progress { background: var(--teal); }
.topbar { background: var(--cream); }
.nav a, .nav button { color: var(--teal-deep); }
.nav-group a.active::after { background: var(--teal); }
.nav .nav-cta { background: var(--teal); color: var(--cream); }
.btn { background: var(--yellow); color: var(--teal-deep); }
.btn.secondary { background: transparent; color: var(--cream); border-color: rgba(251, 246, 238, 0.55); }
.mobile-menu { background: var(--cream); }

/* hero mirrors the cover: teal field, yellow FIRST, cream EARN TRUST */
.hero { background: var(--teal); color: var(--cream); }
.hero .display { color: var(--cream); }
.hero-line:first-child b { color: var(--yellow); }
.hero .hand-highlight { color: var(--teal-deep); }
.hero-quote { color: rgba(251, 246, 238, 0.86); }
.hero-sub { color: var(--cream); }

/* book section: cream page, yellow disc, teal cover */
.fet-book-anim, .fet-stage, .mosaic-section, .fet-wall-widget, .footer { background: var(--cream); }
.fet-panel-num { color: rgba(0, 108, 97, 0.09); }
.is-linear .fet-tap-icon { background: var(--teal); }
.is-linear .fet-flip-btn { background: var(--cream); border-color: var(--teal); }

/* author */
.ah-hero { background: var(--cream-2); }
.ah-shape { background: var(--teal); }

/* wall */
.whiteboard { background-color: #fffdf8; }
.sticky-note { color: var(--teal-deep); }
.wall-input { background: var(--cream); }

/* promise: deep teal instead of black */
.promise { background: var(--teal-deep); }
.promise-overlay { background: rgba(0, 74, 66, 0.78); }
.promise .hand-highlight { color: var(--teal-deep); }
.form-status.ok { color: var(--teal); }
.footer-giant { -webkit-text-stroke: 1.5px rgba(0, 108, 97, 0.22); }


/* Inside the Book: chapter illustrations (pencil art on white) */
.mosaic-photo { background: #fff; border: 1px solid var(--line); }
.mosaic-photo img { padding: 6px; object-fit: contain; }
.mosaic-photo figcaption { background: linear-gradient(to top, rgba(251,246,238,0.97) 62%, rgba(251,246,238,0)); color: var(--teal-deep); padding: 34px 12px 12px; }
.mosaic-photo figcaption small { color: var(--teal); }

/* wordmark: yellow highlighter swatch, replaces the old logo image */
.brand-mark { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; padding: 5px 16px 6px; isolation: isolate; line-height: 1; color: var(--teal-deep); }
.brand-mark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/images/highlight-marker.png") center / 100% 100% no-repeat; filter: var(--marker-filter); }
.bm-top { font-family: var(--hand); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; }
.bm-bot { font-family: var(--font); font-weight: 900; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 1px; }
.brand-mark.big { padding: 8px 24px 9px; }
.brand-mark.big .bm-top { font-size: 36px; }
.brand-mark.big .bm-bot { font-size: 16px; }

.ah-sig-img { height: 84px; }

/* flipbook: bigger book, thin spine shadow */
.fet-book-anim { --fet-circle-size: min(78vh, 58vw, 740px); --page-h: calc(var(--fet-circle-size) * 0.9); }
.face.front::after { background: linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0) 4%), rgba(0, 0, 0, var(--shade, 0)); }
.face.back::after  { background: linear-gradient(to left,  rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0) 4%), rgba(0, 0, 0, var(--shade, 0)); }

/* Inside the Book: 4 x 4 */
.mosaic-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; width: min(1180px, 100%); margin: 0 auto; }
@media (max-width: 640px) { .mosaic-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* preview switcher: 4 x 4 or 8 x 2 */
.grid-switch { display: flex; justify-content: center; gap: 8px; margin: 0 0 22px; }
.grid-switch button { border: 1px solid var(--teal); background: transparent; color: var(--teal-deep); border-radius: 999px; padding: 8px 18px; font-weight: 800; font-size: 13px; letter-spacing: 0.06em; }
.grid-switch button.on { background: var(--teal); color: var(--cream); }
@media (min-width: 1100px) {
  .mosaic-grid.g8 { grid-template-columns: repeat(8, 1fr); width: min(1400px, calc(100% - 40px)); gap: 10px; }
  .mosaic-grid.g8 .mosaic-photo { border-radius: 12px; }
  .mosaic-grid.g8 .mosaic-photo figcaption { font-size: 11px; padding: 28px 8px 9px; line-height: 1.2; }
  .mosaic-grid.g8 .mosaic-photo figcaption small { font-size: 9px; margin-bottom: 2px; }
}

/* 8 x 2: full width, caption under the picture so both stay readable */
@media (min-width: 1100px) {
  .mosaic-grid.g8 { width: calc(100% - 24px); max-width: none; gap: 8px; padding: 0 0 clamp(24px, 4vw, 48px); }
  .mosaic-grid.g8 .mosaic-photo { aspect-ratio: auto; display: flex; flex-direction: column; background: #fff; }
  .mosaic-grid.g8 .mosaic-photo img { aspect-ratio: 1; height: auto; padding: 0; object-fit: cover; }
  .mosaic-grid.g8 .mosaic-photo figcaption { position: static; padding: 8px 10px 12px; background: var(--cream); color: var(--teal-deep); font-size: 12.5px; line-height: 1.25; min-height: 4.6em; }
  .mosaic-grid.g8 .mosaic-photo figcaption small { font-size: 10px; color: var(--teal); }
}

@media (min-width: 1100px) { .mosaic-grid.g8 { align-items: stretch; } .mosaic-grid.g8 .mosaic-photo figcaption { flex: 1; } }

/* 8 x 2: larger caption text */
@media (min-width: 1100px) {
  .mosaic-grid.g8 .mosaic-photo figcaption { font-size: clamp(15px, 1.15vw, 18px); font-weight: 800; line-height: 1.22; padding: 10px 12px 14px; color: var(--ink); }
  .mosaic-grid.g8 .mosaic-photo figcaption small { font-size: clamp(11px, 0.85vw, 13px); margin-bottom: 4px; letter-spacing: 0.14em; color: var(--teal); }
}

/* promise background options (preview) */
.promise-video { display: none !important; }
.promise-knot { position: absolute; z-index: 0; left: 50%; top: 50%; width: min(1500px, 130%); max-width: none; transform: translate(-50%, -50%); pointer-events: none; }
.promise-overlay { background: transparent !important; }
.promise.opt-a .promise-knot { opacity: 0.16; }
.promise.opt-b .promise-knot { opacity: 0.16; animation: knot-drift 22s ease-in-out infinite alternate; }
.promise.opt-c .promise-knot { display: none; }
@keyframes knot-drift { from { transform: translate(-54%, -50%) scale(1); } to { transform: translate(-46%, -50%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .promise.opt-b .promise-knot { animation: none; } }
.promise-switch { position: absolute; z-index: 5; top: 16px; right: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.promise-switch span { color: rgba(251, 246, 238, 0.7); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.promise-switch button { border: 1px solid rgba(251, 246, 238, 0.6); background: transparent; color: var(--cream); border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 13px; }
.promise-switch button.on { background: var(--yellow); color: var(--teal-deep); border-color: var(--yellow); }

/* ===== colour sync: one yellow everywhere = cover yellow #dfe01c ===== */
:root { --yellow: #dfe01c; --on-yellow: #0d2b27; --marker-filter: none; }
.hand-highlight::before, .brand-mark::before {
  background: var(--yellow) !important; filter: none !important;
  -webkit-mask: url("../assets/images/highlight-marker.png") center / 100% 100% no-repeat;
          mask: url("../assets/images/highlight-marker.png") center / 100% 100% no-repeat;
}
.hand-highlight, .brand-mark { color: var(--on-yellow); }
.hero-line:first-child b { color: var(--yellow); }
.fet-circle, .ah-shape.yellow { background: var(--yellow); }
.fet-panel-band, .sticky-note, .wall-input button, .progress { background: var(--yellow); }
.progress { background: var(--teal); }
.fet-panel-band span, .sticky-note, .wall-input button { color: var(--on-yellow); }
.cursor-glow { background: radial-gradient(circle, var(--yellow), transparent 62%); }

/* Get the book: one yellow, bigger CTA, same everywhere */
.btn, .nav .nav-cta { background: var(--yellow); color: var(--on-yellow); }
.btn { min-height: 68px; padding: 0 44px; font-size: 17px; letter-spacing: 0.06em; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }
.btn:hover, .nav .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26); }
.nav .nav-cta { padding: 17px 28px; font-size: 14px; letter-spacing: 0.05em; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14); }
.btn.secondary { background: transparent; color: var(--cream); box-shadow: none; min-height: 68px; font-size: 17px; }
.hero-actions .btn { min-width: 250px; }
.join-submit { width: 100%; }

/* ===== Leader's Wall options ===== */
.wo-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 8px; }
.wo-switch button { border: 1px solid var(--teal); background: transparent; color: var(--teal-deep); border-radius: 999px; padding: 9px 18px; font-weight: 800; font-size: 13px; letter-spacing: 0.04em; }
.wo-switch button.on { background: var(--teal); color: var(--cream); }
.wo-note { font-size: 13px; color: var(--muted); margin: 6px 0 18px; }
.wo-pane[hidden] { display: none; }
.wo-stage { margin-top: 12px; }
.wo-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.wo-form input { min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 16px; min-width: 220px; }
.wo-form input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.wo-btn { min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--on-yellow); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px; }

/* cloud */
.cl-cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 22px; min-height: 380px; padding: 36px 20px; background: #fffdf8; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.cl-word { border: 0; background: none; padding: 2px 4px; font-family: var(--font); line-height: 1.05; letter-spacing: -0.02em; transition: transform 0.2s ease; }
.cl-word:hover { transform: scale(1.1) rotate(-2deg); }

/* trust thread */
.th-scroll { overflow-x: auto; padding: 8px 0 20px; background: #fffdf8; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.th-track { position: relative; display: flex; align-items: center; min-width: max-content; height: 340px; padding: 0 60px; gap: 40px; }
.th-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 14px; transform: translateY(-50%); background: repeating-linear-gradient(115deg, #0d2b27 0 5px, #4f8a82 5px 10px); border-radius: 7px; }
.th-knot { position: relative; z-index: 1; width: 210px; height: 100%; }
.th-dot { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--yellow); border: 4px solid #0d2b27; }
.th-tag { position: absolute; left: 0; right: 0; padding: 12px 14px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); display: flex; flex-direction: column; gap: 4px; }
.th-knot.up .th-tag { bottom: calc(50% + 28px); }
.th-knot.dn .th-tag { top: calc(50% + 28px); }
.th-text { font-family: var(--hand); font-size: 22px; line-height: 1.05; color: var(--teal-deep); }
.th-by { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* letters */
.lt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; padding: 10px; }
.lt-card { transform: rotate(var(--r, 0deg)); background: #fffdf8; border: 1px solid var(--line); border-radius: 6px; padding: 20px 20px 16px; box-shadow: 0 10px 26px rgba(0,0,0,0.1); text-align: left; background-image: linear-gradient(transparent 31px, rgba(0,108,97,0.12) 32px); background-size: 100% 32px; }
.lt-dear { font-family: var(--hand); font-size: 20px; color: var(--teal); }
.lt-body { font-family: var(--hand); font-size: 25px; line-height: 32px; color: var(--ink); margin-top: 6px; }
.lt-by { display: block; margin-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* chapter vote */
.vt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.vt-tile { position: relative; border: 2px solid var(--line); border-radius: 16px; background: #fff; padding: 0; overflow: hidden; text-align: left; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease; box-shadow: 0 0 calc(var(--g, 0) * 30px) rgba(223,224,28, calc(var(--g, 0) * 0.9)); border-color: color-mix(in srgb, var(--yellow) calc(var(--g, 0) * 100%), var(--line)); }
.vt-tile:hover { transform: translateY(-3px); }
.vt-tile.mine { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal); }
.vt-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.vt-cap { padding: 8px 10px 4px; font-weight: 800; font-size: 14px; line-height: 1.2; color: var(--ink); flex: 1; }
.vt-cap small { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 3px; }
.vt-count { padding: 0 10px 10px; font-size: 12px; font-weight: 800; color: var(--muted); }
@media (max-width: 800px) { .vt-grid { grid-template-columns: repeat(2, 1fr); } }

/* pledge */
.pl-total { margin: 8px 0 22px; display: flex; flex-direction: column; align-items: center; }
.pl-total b { font-size: clamp(64px, 10vw, 120px); line-height: 1; font-weight: 900; color: var(--teal); letter-spacing: -0.03em; }
.pl-total span { font-size: 14px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pl-list { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.pl-opt { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; padding: 18px 22px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-size: 17px; font-weight: 700; color: var(--ink); }
.pl-opt.mine { border-color: var(--teal); }
.pl-bar { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--yellow) 55%, transparent); z-index: 0; transition: width 0.4s ease; }
.pl-txt, .pl-n { position: relative; z-index: 1; }
.pl-n { font-weight: 900; color: var(--teal-deep); }

/* Inside the Book: voting pill */
.mosaic-photo { cursor: pointer; }
.vote-pill { position: absolute; top: 10px; right: 10px; z-index: 3; padding: 6px 12px; border-radius: 999px; background: var(--yellow); color: var(--on-yellow); font-weight: 900; font-size: 13px; letter-spacing: 0.02em; box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.mosaic-photo.picked { outline: 3px solid var(--teal); outline-offset: -3px; }
.mosaic-photo.picked .vote-pill { background: var(--teal); color: var(--cream); }
.mosaic-photo.picked::before { content: "\2713  Needed"; position: absolute; top: 10px; left: 10px; z-index: 3; padding: 6px 12px; border-radius: 999px; background: var(--cream); color: var(--teal); font-weight: 900; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.vote-note { margin-top: 10px; font-size: 13px; color: var(--muted); }

.vote-q { display: inline-block; margin-bottom: 4px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 900; letter-spacing: -0.01em; color: var(--teal-deep); }

/* Leader's Wall: two boxes */
.wall-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-top: 8px; align-items: stretch; text-align: left; }
.wall-box { background: #fffdf8; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(20px, 2.4vw, 34px); display: flex; flex-direction: column; }
.wall-box-q { font-size: clamp(20px, 1.9vw, 28px); font-weight: 900; line-height: 1.12; letter-spacing: -0.01em; color: var(--teal-deep); }
.wall-box-hint { margin-top: 8px; font-size: 14px; color: var(--muted); }
.wall-box .cl-cloud { flex: 1; border: 0; box-shadow: none; background: none; min-height: 300px; padding: 18px 0 6px; }
.cl-word.mine { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--yellow); text-underline-offset: 5px; }
.wall-box .pl-total { margin: 14px 0; align-items: flex-start; }
.wall-box .pl-total b { font-size: clamp(48px, 5vw, 76px); }
.wall-box .pl-list { max-width: none; width: 100%; margin: 0; }
.wall-box .pl-opt { border-radius: 16px; padding: 14px 18px; font-size: 16px; }
@media (max-width: 900px) { .wall-cols { grid-template-columns: 1fr; } }

/* Inside the Book: compact top so the heading and both rows fit one screen */
@media (min-width: 1100px) {
  .mosaic-section { padding: 18px 0 14px; }
  .mosaic-heading { padding: 0 var(--gutter) 12px; }
  .mosaic-heading .display { font-size: clamp(30px, 3.4vw, 50px); line-height: 0.95; }
  .mosaic-heading .hand-highlight { margin: 0.18em auto 0; font-size: 0.62em; padding: 0.1em 0.5em; }
  .mosaic-heading .lede { margin: 8px auto 0; font-size: 14px; }
  .mosaic-heading .vote-q { font-size: clamp(18px, 1.5vw, 22px); margin: 0 8px 0 0; }
  .mosaic-heading .lede br { display: none; }
  .mosaic-heading .vote-note { margin-top: 4px; font-size: 11px; }
  .mosaic-grid.g8 { padding-bottom: 8px; gap: 8px; }
  .mosaic-grid.g8 .mosaic-photo img { max-height: clamp(120px, calc((100vh - 76px - 250px) / 2 - 92px), 420px); object-fit: contain; background: #fff; }
  .mosaic-grid.g8 .mosaic-photo figcaption { min-height: 0; padding: 7px 10px 9px; font-size: clamp(14px, 1.05vw, 17px); }
  .mosaic-grid.g8 .mosaic-photo figcaption small { margin-bottom: 2px; }
}

/* Leader's Wall: compact so heading and both boxes fit one screen */
@media (min-width: 1100px) {
  .fet-wall-widget { padding: 18px 0 14px; }
  .fet-wall-kicker { margin-bottom: 6px; font-size: 12px; }
  .fet-wall-q { font-size: clamp(28px, 3vw, 46px); line-height: 0.95; }
  .fet-wall-widget .hand-highlight { margin: 0.18em auto 0; font-size: 0.62em; padding: 0.1em 0.5em; }
  .fet-wall-intro { margin-top: 8px; font-size: 14px; }
  .fet-wall-widget .wo-note { margin: 2px 0 10px; font-size: 11px; }
  .wall-cols { gap: 18px; margin-top: 0; }
  .wall-box { padding: 18px 24px 20px; border-radius: 20px; }
  .wall-box-q { font-size: clamp(18px, 1.5vw, 23px); }
  .wall-box-hint { margin-top: 4px; font-size: 13px; }
  .wall-box .cl-cloud { min-height: 0; padding: 8px 0 4px; gap: 0 18px; align-content: center; }
  .wall-box .wo-form { margin-top: 10px; }
  .wall-box .pl-total { margin: 8px 0 10px; flex-direction: row; align-items: baseline; gap: 12px; }
  .wall-box .pl-total b { font-size: clamp(36px, 3.4vw, 52px); }
  .wall-box .pl-list { gap: 8px; }
  .wall-box .pl-opt { padding: 10px 16px; font-size: 15px; }
}

.wall-thanks { min-height: 1.3em; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--teal); }

/* footer social icons: one row, Contact Sagnik below */
.footer-links [data-social].social-icons { display: flex; flex-wrap: nowrap; gap: 10px; margin-top: 2px; --social-bg: #006c61; }
.footer-links [data-social].social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--teal); color: var(--cream); transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; }
.footer-links [data-social].social-icons a:hover { background: var(--yellow); color: var(--teal-deep); transform: translateY(-3px); --social-bg: var(--yellow); }
.footer-link-btn { display: block; margin-top: 18px; }

.footer-links [data-social].social-icons svg { width: 27px; height: 27px; }

/* exact cover yellow for the pledge bars (was a paler blend) */
.pl-bar { background: var(--yellow); }

.fet-panel-body { color: var(--muted); }

/* consent line in the pop-up forms, legal links */
.join-consent { display: flex !important; gap: 10px !important; align-items: flex-start; font-weight: 600 !important; font-size: 14px !important; }
.join-consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.join-consent a, .footer-copyright a { text-decoration: underline; text-underline-offset: 3px; }

/* shift the whole text column a little to the left (the book already keeps a wider margin on the right) */
.fet-panel-stack { padding-left: 2%; }

/* phones and reduced motion: keep the closed cover and the opened book centred and inside the screen */
.is-linear .fet-visual { grid-template-columns: minmax(0, 1fr); }
.is-linear .fet-book-anim { --page-h: calc(var(--fet-circle-size) * 0.8); }

/* ===== phone header and footer ===== */
/* the page clips sideways overflow without becoming a scroll container (keeps the fixed header steady on phones) */
html { overflow-x: clip; }
body { overflow-x: clip; }
.topbar { transform: translateZ(0); -webkit-transform: translateZ(0); }
.nav .nav-cta-m { display: none; }
@media (max-width: 820px) {
  :root { --header: 68px; }
  .topbar, .topbar.compact { height: var(--header); transition: none; }          /* same height at the top and while scrolling, so nothing shifts or clips */
  .nav { display: flex; align-items: center; gap: 10px; }
  .nav .brand { margin-right: auto; }
  .nav .nav-cta-m { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--yellow); color: var(--on-yellow); font-weight: 800; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
  .brand-logo, .nav .brand .brand-mark { flex: none; }
  .footer-links { grid-template-columns: 1fr; gap: 30px; }                       /* stack the two footer columns so each has the full width */
  .footer-links > div:first-child a { display: inline-block; padding: 7px 0; font-size: 17px; }
  .footer-links > div:first-child { display: flex; flex-wrap: wrap; column-gap: 26px; }
  .footer-links > div:first-child h4 { flex: 0 0 100%; }
}

/* footer outline title: sized to the screen so the whole of FIRST, EARN TRUST always shows */
.footer-giant { font-size: clamp(24px, 9.1vw, 190px); }

/* ---- Home page: free toolkit section ---- */
.toolkit-home { background: var(--cream); padding: clamp(56px, 8vw, 110px) 0; }
.toolkit-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; max-width: 1080px; }
.toolkit-home .display { font-size: clamp(34px, 5vw, 58px); color: var(--teal-deep); }
.toolkit-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink); }
.toolkit-list li { padding-left: 30px; position: relative; }
.toolkit-list li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--teal); }
.toolkit-form { display: grid; gap: 14px; background: #fffdf8; border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); }
.toolkit-form > label[for] { font-weight: 800; font-size: 15px; color: var(--teal-deep); }
.toolkit-form input[type=email] { min-height: 50px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; background: #fff; }
.toolkit-form input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.toolkit-form .btn { width: 100%; justify-content: center; }
.toolkit-form .form-status { min-height: 1.2em; font-size: 14px; }
@media (max-width: 820px) { .toolkit-wrap { grid-template-columns: 1fr; } }
