/* Jubilee AI Solutions homepage. Page styles only; scrollcraft.css is the engine floor.
   Grammar: one statement of account on one sheet of ledger paper. */

:root {
  --ivory: #f4f1ea;
  --cream: #ede8df;
  --espresso: #181410;
  --warm: #2c2520;
  --gold: #c9a961;
  --gold-deep: #7a5f2a;
  --tan: #c8bfaf;
  --muted: #5f564a;
  --paper: #fbf9f4;

  --sc-canvas: #f4f1ea;
  --sc-surface: #ede8df;
  --sc-ink: #181410;
  --sc-ink-soft: #5f564a;
  --sc-accent: #7a5f2a;
  --sc-accent-ink: #f4f1ea;
  --sc-font-display: "Libre Baskerville", Georgia, serif;
  --sc-font-text: "Mulish", system-ui, -apple-system, sans-serif;
  --sc-shadow-color: 32 40% 12%;

  --serif: var(--sc-font-display);
  --sans: var(--sc-font-text);
  --bar: 60px;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --maxw: 92rem;
  /* the left edge every block shares, on any screen width */
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

html { scroll-padding-top: calc(var(--bar) + 12px); }
body { font: 400 17px/1.65 var(--sans); letter-spacing: 0; background: var(--ivory); color: var(--espresso); }
/* paper grain over everything, so the ivory reads as stock, not as a flat fill */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.16; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); letter-spacing: -0.012em; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: .2em; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.lede strong { display: block; font: 700 1.18em/1.3 var(--serif); color: var(--espresso); margin-bottom: .45em; }
.lede { font-size: clamp(1.06rem, 1rem + .4vw, 1.25rem); line-height: 1.55; color: var(--warm); max-width: 34em; }
.eyebrow { font: 800 .76rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--espresso); }

/* without JS (or before it runs) nothing may sit hidden waiting for a reveal */
html:not(.js) [data-sc-in], html:not(.js) [data-sc-stagger] > * { opacity: 1; transform: none; }

/* dark blocks: restate ink AND color, since color is inherited as a computed value */
.dark {
  --sc-ink: #f4f1ea; --sc-ink-soft: #c8bfaf; --sc-accent: #c9a961; --sc-accent-ink: #181410;
  background: var(--espresso); color: var(--ivory);
}
.dark :focus-visible { outline-color: var(--gold); }
.dark a { color: var(--gold); }
.dark .paper a, .dark .stub a { color: var(--gold-deep); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 800 1rem/1.15 var(--sans); text-decoration: none; text-align: center; white-space: nowrap;
  border-radius: 8px; padding: 16px 22px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}
.btn--gold { background: var(--gold); color: var(--espresso); box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 2px 0 #a8873f; }
.btn--dark { background: var(--espresso); color: var(--ivory); }
.btn--line { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.dark .btn--gold { color: var(--espresso); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgba(24,20,16,.32); }
  .btn--gold:hover { background: #d4b671; }
  .btn--line:hover { background: var(--espresso); color: var(--ivory); }
}
.btn:active { transform: translateY(1px); box-shadow: none; }

/* ------------------------------------------------------------------ banners + bar */
.banner { display: block; text-align: center; font: 700 14px/1.4 var(--sans); padding: 10px 16px; text-decoration: none; }
.banner--gold { background: var(--gold); color: var(--espresso); }
.banner--gold span { text-decoration: underline; }
.banner--dark { background: var(--espresso); color: var(--ivory); }
.banner--dark span { color: var(--gold); }

.bar {
  position: sticky; top: 0; z-index: 60; height: var(--bar);
  background: rgba(244,241,234,.93); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tan); transition: box-shadow 240ms var(--ease);
}
.bar.is-scrolled { box-shadow: 0 6px 24px rgba(24,20,16,.09); }
.bar__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.wordmark { font: 700 1.22rem/1 var(--serif); color: var(--espresso); text-decoration: none; white-space: nowrap; letter-spacing: -0.01em; }
.bar__nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.bar__link { font: 700 .92rem/1 var(--sans); color: var(--espresso); text-decoration: none; padding: 8px 0; }
.bar__link:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.bar__cta { font: 800 .9rem/1 var(--sans); color: var(--espresso); background: var(--gold); text-decoration: none; border-radius: 7px; padding: 11px 15px; white-space: nowrap; transition: background-color 160ms var(--ease); }
.bar__cta:hover { background: #d4b671; }
@media (max-width: 860px) { .bar__link { display: none; } }
@media (max-width: 400px) { .wordmark { font-size: 1.02rem; } .bar__cta { font-size: .8rem; padding: 10px 11px; } }
@media (max-width: 340px) { .wordmark { font-size: .92rem; } .bar__cta { padding: 9px 9px; } }

/* ================================================================== 1 · THE DESK */
.hero { background: var(--ivory); position: relative; }
.hero__stage { background:
    linear-gradient(to right, transparent calc(var(--edge) - 1.4rem), rgba(201,169,97,.4) calc(var(--edge) - 1.4rem), rgba(201,169,97,.4) calc(var(--edge) - 1.4rem + 1px), transparent calc(var(--edge) - 1.4rem + 1px)),
    radial-gradient(120% 90% at 78% 46%, #fbf9f4 0%, var(--ivory) 58%, #eee9df 100%);
  --pn: clamp(0, calc(var(--sc-p, 0) / 0.6), 1);
}
/* the watermark: gold ink through an engraved mask. Shows through as the desk clears. */
.hero__seal {
  position: absolute; right: 5vw; top: 50%; width: min(72svh, 46vw); aspect-ratio: 1; translate: 0 -50%;
  background: var(--gold-deep);
  -webkit-mask: url(/images/home/emblem-seal.webp) center / contain no-repeat; mask: url(/images/home/emblem-seal.webp) center / contain no-repeat;
  opacity: calc(.13 + .3 * var(--pn)); rotate: calc(var(--sc-p, 0) * 12deg);
}

.desk { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.obj {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: var(--z, 1);
  --e: clamp(0, calc((var(--sc-p, 0) - var(--d, 0)) / var(--dur, .45)), 1);
  translate: calc(var(--tx) * var(--e) + var(--mx, 0) * var(--k, 0px)) calc(var(--ty) * var(--e) + var(--my, 0) * var(--k, 0px));
  rotate: calc(var(--r) + var(--dr) * var(--e));
  scale: calc(1 + var(--lift) * var(--e));
  will-change: transform;
}
.obj__in { position: relative; }
.obj img { display: block; width: 100%; height: auto; max-width: none; }
.obj__im { position: relative; }
/* the contact shadow is a blurred silhouette of the object itself: it slides out and thins as the object lifts */
.obj__sh {
  position: absolute; inset: 0; filter: brightness(0) blur(9px);
  opacity: calc(.3 - .17 * var(--e));
  translate: calc(5px + 46px * var(--e)) calc(9px + 70px * var(--e));
  scale: calc(1 + .06 * var(--e));
}
.obj--papers { --x: 56.5vw; --y: 12%; --w: 25vw; --r: -7deg;  --z: 1; --tx: 14vw;  --ty: -92svh; --dr: 9deg;   --lift: .05; --d: .10; --dur: .46; --k: 6px; }
.obj--notes  { --x: 81.5vw; --y: 9%;  --w: 13.5vw; --r: 10deg; --z: 2; --tx: 30vw;  --ty: -46svh; --dr: 16deg;  --lift: .08; --d: .07; --dur: .44; --k: 9px; }
.obj--tape   { --x: 43vw;   --y: 80%; --w: 12.5vw; --r: -12deg; --z: 3; --tx: -34vw; --ty: 54svh;  --dr: -22deg; --lift: .2;  --d: .03; --dur: .42; --k: 14px; }
.obj--mug    { --x: 61.5vw; --y: 55%; --w: 14.5vw; --r: -18deg; --z: 4; --tx: 10vw;  --ty: 78svh;  --dr: -30deg; --lift: .28; --d: 0;   --dur: .4;  --k: 18px; }
.obj--pens   { --x: 70vw;   --y: 79%; --w: 19vw;   --r: -4deg;  --z: 5; --tx: 38vw;  --ty: 40svh;  --dr: 20deg;  --lift: .3;  --d: .02; --dur: .38; --k: 22px; }
.obj--phone  { --x: 85vw;   --y: 42%; --w: 10.5vw; --r: 12deg;  --z: 6; --tx: 34vw;  --ty: 8svh;   --dr: 24deg;  --lift: .34; --d: 0;   --dur: .36; --k: 26px; }

.hero__copy {
  position: absolute; z-index: 5; left: var(--edge); top: 47%; width: min(46rem, 52vw);
  --out: clamp(0, calc((var(--sc-p, 0) - 0.42) / 0.12), 1);
  translate: 0 calc(-50% - var(--out) * 26px); opacity: calc(1 - var(--out));
}
.hero.is-clear .hero__copy { visibility: hidden; }
.hero h1 { font-size: clamp(2.3rem, 1.1rem + 3.9vw, 4.3rem); line-height: 1.07; letter-spacing: -0.02em; }
.hero h1 em { display: block; font-weight: 400; font-style: italic; color: var(--gold-deep); letter-spacing: -0.01em; }
.hero__lede { margin-top: 1.4rem; font-size: clamp(1.05rem, .96rem + .5vw, 1.3rem); line-height: 1.5; color: var(--warm); max-width: 33em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.9rem; }
.hero__note { margin-top: 1rem; font-size: .92rem; color: var(--muted); max-width: 36em; }
.hero__note a { font-weight: 700; }

.hero__after {
  position: absolute; z-index: 4; left: var(--edge); top: 47%; translate: 0 calc(-50% + (1 - var(--in)) * 22px);
  --in: clamp(0, calc((var(--sc-p, 0) - 0.52) / 0.13), 1); opacity: var(--in);
  font: italic 400 clamp(2.8rem, 1rem + 6.4vw, 6.4rem)/1.02 var(--serif); letter-spacing: -0.025em; color: var(--espresso); pointer-events: none;
}
.hero__after span { display: block; font: 800 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1.1rem; font-style: normal; }

/* arrival: the pile lands, the copy rises. Once, on load. */
@media (prefers-reduced-motion: no-preference) {
  .js .obj__in { animation: land 760ms var(--ease) both; animation-delay: calc(120ms + var(--z, 1) * 70ms); }
  .js .hero__copy > * { animation: rise 700ms var(--ease) both; }
  .js .hero__copy > :nth-child(2) { animation-delay: 90ms; }
  .js .hero__copy > :nth-child(3) { animation-delay: 170ms; }
  .js .hero__copy > :nth-child(4) { animation-delay: 240ms; }
  @keyframes land { from { opacity: 0; transform: translate3d(0, -26px, 0) scale(1.06); } to { opacity: 1; transform: none; } }
  @keyframes rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
}

@media (max-width: 820px) {
  .hero__copy { top: calc(var(--bar) + 22px); width: auto; right: var(--gutter); translate: 0 calc(var(--out) * -22px); }
  .hero h1 { font-size: clamp(2.05rem, 1.2rem + 4.6vw, 3rem); }
  .hero__lede { margin-top: 1rem; font-size: 1.04rem; }
  .hero__lede-more { display: none; }
  .hero__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 1.3rem; }
  .hero__ctas .btn { font-size: .92rem; padding: 15px 8px; }
  .hero__note { font-size: .86rem; margin-top: .8rem; }
  .hero__seal { width: 92vw; right: -22vw; top: auto; bottom: -8svh; translate: none; }
  .hero__after { top: 42%; right: var(--gutter); font-size: clamp(2.7rem, 13vw, 4.4rem); }
  /* the pile sits under the copy on a phone: a tighter, overlapping heap, bottom-anchored */
  .obj { top: auto; bottom: var(--b); }
  .obj--tape { display: none; }
  .obj--papers { --x: 43vw; --b: 2svh;  --w: 52vw; --tx: 46vw;  --ty: 34svh;  --dr: 12deg; }
  .obj--notes  { --x: 4vw;  --b: 12svh; --w: 35vw; --tx: -56vw; --ty: 12svh;  --dr: -18deg; }
  .obj--mug    { --x: 66vw; --b: 19svh; --w: 34vw; --tx: 52vw;  --ty: -8svh;  --dr: 30deg; }
  .obj--pens   { --x: -5vw; --b: 2svh;  --w: 48vw; --tx: -66vw; --ty: 26svh;  --dr: -24deg; }
  .obj--phone  { --x: 30vw; --b: -3svh; --w: 24vw; --tx: 4vw;   --ty: 52svh;  --dr: 20deg; }
}
@media (max-width: 820px) and (max-height: 720px) {
  .hero__copy { top: calc(var(--bar) + 14px); }
  .hero h1 { font-size: 1.95rem; }
  .hero__note { display: none; }
  .obj--mug { --b: 13svh; } .obj--notes { --b: 8svh; }
}
@media (min-width: 821px) and (max-height: 700px) {
  .hero h1 { font-size: clamp(2.2rem, 1rem + 3.2vw, 3.5rem); }
  .hero__note { display: none; }
}

/* ================================================================== 2 · THE STATEMENT */
.leak__stage { display: grid; align-items: center; padding: calc(var(--bar) + 1.25rem) var(--gutter) 1.5rem; background: radial-gradient(90% 80% at 72% 40%, #261f19 0%, var(--espresso) 62%); }
.leak__seal {
  position: absolute; left: -16vh; bottom: -22vh; width: 78vh; aspect-ratio: 1; background: var(--gold); opacity: .09;
  -webkit-mask: url(/images/home/emblem-seal.webp) center / contain no-repeat; mask: url(/images/home/emblem-seal.webp) center / contain no-repeat;
  rotate: calc(var(--sc-p, 0) * -18deg);
}
.leak__grid { position: relative; width: 100%; max-width: calc(var(--maxw) - 2 * var(--gutter)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 33rem); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.leak h2 { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--ivory); }
.leak__lede { margin-top: 1.2rem; font-size: clamp(1.02rem, .96rem + .4vw, 1.22rem); line-height: 1.55; color: var(--tan); max-width: 30em; }
.leak__hint { margin-top: 1.1rem; font-size: .95rem; color: var(--tan); }
.leak__hint-ex { color: var(--gold); font-weight: 700; }
.leak__more { margin-top: 2rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: center; max-width: 34em;
  --in: clamp(0, calc((var(--sc-p, 1) - 0.46) / 0.12), 1); opacity: var(--in); translate: 0 calc((1 - var(--in)) * 14px); }
.leak__more p { font-size: .9rem; line-height: 1.5; color: var(--tan); }

/* the printer: the paper feeds up out of the slot, header first, total last */
.printer { position: relative; overflow: clip; padding: 0 12px 13px; --print: clamp(0, calc(.07 + var(--sc-p, 1) / 0.44), 1); }
.printer__slot { position: absolute; left: 0; right: 0; bottom: 0; height: 15px; z-index: 3; border-radius: 8px;
  background: linear-gradient(#060504, #2b241d); box-shadow: inset 0 2px 4px #000, 0 1px 0 rgba(255,255,255,.07); }
.paper {
  position: relative; background: var(--ivory); color: var(--espresso); padding: 26px 22px 20px;
  translate: 0 calc((1 - var(--print)) * 100%); will-change: transform;
  --s: 7px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / calc(2 * var(--s)) var(--s) repeat-x, linear-gradient(#000 0 0) 0 var(--s) / 100% calc(100% - var(--s) + 1px) no-repeat;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / calc(2 * var(--s)) var(--s) repeat-x, linear-gradient(#000 0 0) 0 var(--s) / 100% calc(100% - var(--s) + 1px) no-repeat;
}
.paper__seal { position: absolute; left: 50%; top: 50%; width: 78%; aspect-ratio: 1; translate: -50% -50%; background: var(--gold-deep); opacity: .1; pointer-events: none;
  -webkit-mask: url(/images/home/emblem-seal.webp) center / contain no-repeat; mask: url(/images/home/emblem-seal.webp) center / contain no-repeat; }
.paper > :not(.paper__seal) { position: relative; }
.paper__head { display: flex; justify-content: space-between; gap: 10px; font: 800 .7rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); padding-bottom: 12px; border-bottom: 1px dashed var(--tan); }
.paper__head span:last-child { text-align: right; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; padding: 13px 0; border-bottom: 1px dashed var(--tan); }
.line__name { font-weight: 800; font-size: 1rem; }
.line__amt { font-style: normal; font-weight: 800; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.line__ctl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.step { display: inline-flex; align-items: stretch; border: 1px solid var(--tan); border-radius: 8px; background: var(--paper); overflow: hidden; }
.step button {
  appearance: none; border: 0; background: transparent; color: var(--espresso); width: 38px; min-height: 38px; cursor: pointer;
  font: 800 1.1rem/1 var(--sans); transition: background-color 120ms var(--ease), transform 120ms var(--ease);
}
.step button:hover { background: var(--cream); }
.step button:active { transform: scale(.94); background: var(--tan); }
.step button:focus-visible { outline-offset: -3px; }
.step__v { display: grid; place-items: center; min-width: 4.9em; padding: 0 2px; font: 700 .84rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--warm); border-inline: 1px solid var(--tan); }
.paper__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.paper__total span { font: 800 .76rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.paper__total strong { font: 700 clamp(2rem, 1.6rem + 1.4vw, 2.7rem)/1 var(--serif); color: var(--gold-deep); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.paper__total strong.is-bump { animation: bump 320ms var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.045); } 100% { transform: scale(1); } }
.paper__foot { margin-top: 10px; font: italic 400 .98rem/1.45 var(--serif); }
.paper__foot a { font: 700 .86rem/1 var(--sans); font-style: normal; white-space: nowrap; }

@media (min-width: 861px) and (min-height: 760px) {
  .paper { padding: 34px 30px 26px; }
  .paper__head { font-size: .78rem; padding-bottom: 14px; }
  .line { padding: 16px 0; }
  .line__name, .line__amt { font-size: 1.16rem; }
  .step button { width: 44px; min-height: 44px; }
  .step__v { font-size: .95rem; min-width: 5.4em; }
  .paper__total { margin-top: 18px; }
  .paper__total strong { font-size: clamp(2.6rem, 2rem + 1.8vw, 3.5rem); }
  .paper__foot { font-size: 1.05rem; margin-top: 12px; }
}
@media (max-width: 1200px) { .leak__more { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: .8rem; } }
@media (max-width: 860px) {
  .leak__stage { align-items: start; padding-top: calc(var(--bar) + 1rem); padding-bottom: .75rem; }
  .leak__grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; max-width: 30rem; }
  .leak h2 { font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2.3rem); }
  .leak__lede { margin-top: .6rem; font-size: .98rem; line-height: 1.45; }
  .leak__hint { margin-top: .5rem; font-size: .86rem; }
  .leak__more { display: none; }
  .paper { padding: 20px 16px 14px; }
  .line { padding: 9px 0; gap: 6px 10px; }
  .paper__total { margin-top: 10px; }
  /* both steppers on one row, so the whole receipt fits a phone screen */
  .line__ctl { flex-wrap: nowrap; }
  .step { flex: 1 1 0; min-width: 0; }
  .step button { width: 36px; flex: none; }
  .step__v { flex: 1 1 auto; min-width: 0; font-size: .8rem; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .leak h2 { font-size: 1.42rem; }
  .leak__hint { font-size: .8rem; margin-top: .35rem; }
  .leak__grid { gap: .6rem; }
  .paper { padding: 16px 14px 9px; }
  .paper__total { margin-top: 6px; }
  .paper__total strong { font-size: 1.8rem; }
  .paper__foot { margin-top: 4px; font-size: .9rem; }
}
@media (max-width: 860px) and (max-height: 760px) {
  .leak__lede { display: none; }
  .step button { min-height: 34px; }
  .line { padding: 7px 0; }
  .paper__head { padding-bottom: 8px; }
}
@media (max-width: 380px) { .step button { width: 30px; } .step__v { font-size: .74rem; } }

/* ================================================================== sheets (flow sections) */
.sheet { position: relative; padding-block: clamp(4rem, 8vw, 7.5rem); background: var(--ivory); border-top: 1px dashed var(--tan); }
.sheet--cream { background: var(--cream); }
.sheet .btn { margin-top: 1.75rem; }

/* 3 · remedy */
.how__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.how__lead { position: sticky; top: calc(var(--bar) + 2rem); }
.how__lead .lede { margin-top: 1.1rem; }
.stepx { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 0 1rem; padding: 1.6rem 0; border-top: 1px solid var(--tan); }
.stepx:last-child { border-bottom: 1px solid var(--tan); }
.stepx__n { font: 400 3.1rem/.9 var(--serif); font-style: italic; color: var(--gold-deep); font-variant-numeric: lining-nums; }
.stepx h3 { font-size: 1.32rem; }
.stepx p { margin-top: .4rem; color: var(--warm); max-width: 34em; }
.stamp { display: inline-block; margin-left: .5rem; padding: 4px 8px 3px; border: 1.5px solid var(--gold-deep); border-radius: 4px; color: var(--gold-deep); font: 800 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; rotate: -5deg; vertical-align: .22em; }

/* 4 · handoffs */
.what__lead .lede { margin-top: .9rem; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.5rem; margin-top: 2.2rem; }
.pillars li { border-top: 2px solid var(--gold); padding-top: .8rem; }
.pillars b { display: block; font: 700 1.08rem/1.25 var(--serif); }
.pillars span { display: block; margin-top: .2rem; font-size: .93rem; color: var(--muted); }
.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); margin-top: 3rem; }
.uses li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 1rem; padding: 1.35rem 0; border-top: 1px solid var(--tan); }
.uses p { margin-top: .25rem; color: var(--warm); }
.tick { width: 26px; height: 26px; margin-top: .1rem; border-radius: 7px; border: 1.5px solid #a99c86; background: var(--ivory); display: grid; place-items: center; transition: background-color 300ms var(--ease) 420ms, border-color 300ms var(--ease) 420ms; }
.tick svg { width: 15px; height: 15px; }
.tick path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 380ms var(--ease) 560ms; }
.uses li.sc-in .tick, html:not(.js) .tick { background: var(--espresso); border-color: var(--espresso); }
.uses li.sc-in .tick path, html:not(.js) .tick path { stroke-dashoffset: 0; }
.uses h3 { position: relative; display: inline-block; }

/* 5 · who + video */
.who__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.who .lede { margin-top: 1.1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.tags li { border: 1px solid var(--tan); background: var(--cream); border-radius: 999px; padding: 6px 14px; font-size: .93rem; font-weight: 700; }
.who__watch { margin-top: 1.6rem; font: italic 400 1.05rem/1.5 var(--serif); color: var(--warm); max-width: 30em; }
.phone { position: relative; width: 100%; max-width: 300px; margin-inline: auto; aspect-ratio: 9 / 16; border-radius: 34px; padding: 10px; background: var(--espresso); box-shadow: 0 2px 4px rgba(24,20,16,.2), 0 26px 50px -12px rgba(24,20,16,.4); rotate: 2deg; }
.phone video { display: block; width: 100%; height: 100%; border-radius: 26px; background: var(--espresso); object-fit: cover; }
.play { position: absolute; inset: 10px; border-radius: 26px; border: 0; cursor: pointer; display: grid; place-items: end center; padding-bottom: 24%; background: rgba(24,20,16,.18); transition: background-color 180ms var(--ease); }
.play:hover { background: rgba(24,20,16,.05); }
.play span { width: 76px; height: 76px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(24,20,16,.3); transition: transform 180ms var(--ease); }
.play:hover span { transform: scale(1.06); }
.play:active span { transform: scale(.97); }
.play svg { width: 28px; height: 28px; margin-left: 4px; fill: var(--espresso); }
.play:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* 6 · signatory */
.founder__grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.founder__photo { margin: 0; background: #fffdf8; padding: 10px 10px 14px; border-radius: 4px; rotate: -2.2deg; box-shadow: 0 1px 2px rgba(60,45,20,.2), 0 18px 36px -12px rgba(60,45,20,.35); }
.founder__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: 2px; }
.founder__photo figcaption { margin-top: 10px; font: italic 400 .88rem/1.4 var(--serif); color: var(--muted); text-align: center; }
.founder h2 { margin-top: .6rem; }
.creds { margin-top: .7rem; font-size: .9rem; font-weight: 800; letter-spacing: .03em; color: var(--gold-deep); }
.bio { margin-top: 1rem; color: var(--warm); max-width: 38em; font-size: 1.06rem; }
.founder blockquote { margin: 1.5rem 0 0; font: italic 400 clamp(1.3rem, 1.1rem + 1vw, 1.8rem)/1.3 var(--serif); padding-top: 1.2rem; border-top: 2px solid var(--gold); max-width: 22em; }
.founder__links { margin-top: 1.2rem; font-size: .95rem; font-weight: 700; }

/* 7 · questions */
.faq h2 + .qa, .qa { max-width: 78rem; }
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); margin-top: 2.4rem; }
.q { padding: 1.4rem 0 1.5rem; border-top: 1px solid var(--tan); }
.q p { margin-top: .5rem; color: var(--warm); font-size: 1rem; line-height: 1.62; }
.q a { font-weight: 700; white-space: nowrap; }

/* ================================================================== 8 · THE SIGNATURE LINE */
.audit { position: relative; padding-top: clamp(4.5rem, 9vw, 8rem); background: radial-gradient(80% 60% at 20% 18%, #261f19 0%, var(--espresso) 70%); }
.audit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.audit h2 { color: var(--ivory); font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); line-height: 1.1; margin-top: 2.2rem; }
.audit__intro { margin-top: 1rem; color: var(--tan); font-size: 1.1rem; max-width: 28em; }
.audit__cal { margin-top: 1.7rem; font-size: 1.08rem; padding: 18px 28px; }
.audit__call { margin-top: 1.4rem; color: var(--tan); font-size: .98rem; }
.audit__call a { font-weight: 700; }

/* the stub: the receipt, torn off and brought to the booking line */
.stub {
  position: relative; width: min(100%, 19rem); background: var(--ivory); color: var(--espresso); padding: 18px 20px 26px; rotate: -2.4deg;
  box-shadow: 0 2px 3px rgba(0,0,0,.4), 0 22px 40px -14px rgba(0,0,0,.6);
  --s: 7px;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / calc(2 * var(--s)) var(--s) repeat-x, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--s) + 1px) no-repeat;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / calc(2 * var(--s)) var(--s) repeat-x, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--s) + 1px) no-repeat;
}
.stub__head { display: flex; justify-content: space-between; gap: 10px; font: 800 .68rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); padding-bottom: 10px; border-bottom: 1px dashed var(--tan); }
.stub__head span:last-child { text-align: right; }
.stub__amt { display: block; margin-top: 12px; font: 700 2.7rem/1 var(--serif); color: var(--gold-deep); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stub__per { display: block; margin-top: 4px; font: 800 .74rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.stub__note { margin-top: 10px; font: italic 400 .9rem/1.4 var(--serif); color: var(--warm); }
.stub a { color: var(--gold-deep); }

.audit__form { background: rgba(244,241,234,.045); border: 1px solid rgba(200,191,175,.2); border-radius: 12px; padding: clamp(1.25rem, 3vw, 2rem); }
.audit__or { color: var(--tan); font-size: 1rem; }
form { margin-top: 1.25rem; display: grid; gap: 14px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 6px; color: var(--ivory); }
label .opt { font-weight: 400; color: var(--tan); }
input, textarea, select { width: 100%; font: 400 17px/1.4 var(--sans); color: var(--espresso); background: var(--ivory); border: 1px solid var(--tan); border-radius: 8px; padding: 12px 14px; }
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
form .btn { width: 100%; font-size: 1.04rem; }
.form-status { min-height: 1.5em; font-weight: 700; color: var(--gold); }
.thanks { display: none; margin-top: 1.25rem; border: 1px solid var(--gold); border-radius: 10px; padding: 22px; }
.thanks h3 { color: var(--ivory); font-size: 1.4rem; }
.thanks p { color: var(--tan); margin-top: 8px; }
.thanks a { font-weight: 700; }

.foot { margin-top: clamp(4rem, 8vw, 7rem); padding: 0 0 calc(3rem + env(safe-area-inset-bottom)); text-align: center; font-size: .92rem; color: var(--tan); }
.foot__mark { width: min(22rem, 70vw); aspect-ratio: 1600 / 795; margin: 0 auto 1.6rem; background: var(--gold); opacity: .6;
  -webkit-mask: url(/images/home/emblem-sunrise.webp) center / contain no-repeat; mask: url(/images/home/emblem-sunrise.webp) center / contain no-repeat; }
.foot__in { display: grid; gap: 6px; justify-items: center; }
.foot .wordmark { color: var(--ivory); font-size: 1.15rem; margin-bottom: 6px; }
.foot a { color: var(--ivory); }

/* ================================================================== the docked receipt */
.tab[hidden] { display: none; }
.tab {
  position: fixed; left: 50%; bottom: 0; z-index: 55; translate: -50% 0;
  display: flex; align-items: baseline; gap: 12px; white-space: nowrap; text-decoration: none;
  background: var(--ivory); color: var(--espresso); border: 1px solid var(--tan); border-bottom: 0; border-radius: 12px 12px 0 0;
  padding: 11px 18px calc(11px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 4px rgba(24,20,16,.12), 0 -14px 36px -8px rgba(24,20,16,.34);
  transform: translateY(110%); transition: transform 420ms var(--ease);
}
.tab.is-up { transform: none; }
.tab__label { font: 800 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.tab__amt { font: 700 1.3rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.tab__go { font: 800 .88rem/1 var(--sans); color: var(--espresso); padding-left: 12px; border-left: 1px solid var(--tan); }
@media (max-width: 420px) { .tab { gap: 9px; padding-inline: 13px; } .tab__label { font-size: .62rem; } .tab__amt { font-size: 1.12rem; } .tab__go { font-size: .8rem; padding-left: 9px; } }

/* ================================================================== narrow */
@media (max-width: 860px) {
  .how__grid, .who__grid, .founder__grid, .audit__grid { grid-template-columns: minmax(0, 1fr); }
  .how__lead { position: static; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.2rem; }
  .uses, .qa { grid-template-columns: minmax(0, 1fr); }
  .founder__photo { max-width: 240px; }
  .stepx { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .stepx__n { font-size: 2.5rem; }
  .f2 { grid-template-columns: 1fr; }
}

/* ================================================================== reduced motion / no pin
   The page script drops the pinned acts under reduced motion, so both scenes sit as still compositions. */
@media (prefers-reduced-motion: reduce) {
  .hero__after { display: none; }
  .tab { transition: none; }
  .tick, .tick path { transition-duration: 1ms; transition-delay: 0ms; }
  .paper__total strong.is-bump { animation: none; }
}
