/* The landing palette follows the limestone, olive planting and black window frames in the service photography. */
:root {
  --paper:#f7f3eb; --cream:#e8dfcf; --ink:#201f1b; --muted:#595548;
  --olive:#545540; --olive-dark:#37392c; --limestone:#e3d7c5;
  --rule:#cec3b1; --orange:#ff5a19;
}
.hero-copy h1 em { color:var(--olive); }
.contact-band { background:var(--olive-dark); color:#fff; --muted:#e2dfd1; }
.contact-band textarea { background:#fffdfa; color:var(--ink); }
.contact-band :focus-visible { outline-color:#ffa97b; }
@media (max-width:980px) {
  body .mast:has(.studio-menu), .mast .studio-menu .menu-sheet { background:var(--paper); color:var(--ink); }
}
.offer-reel {
  --pen:var(--ink);
  --hairline:#aba392;
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.offer-reel { --header-offset:0px; --screen-height:calc(100svh - var(--header-offset)); }
.hero-screen { position:relative; isolation:isolate; overflow:clip; background:linear-gradient(147deg,#fcfaf6 0%,var(--paper) 54%,#ede4d5 100%); }
.hero-layout,.service-layout {
  min-height:var(--screen-height); display:grid; align-items:center;
  grid-template-columns:minmax(0,1fr) minmax(0,1.08fr); gap:clamp(24px,4vw,74px);
}
.hero-layout { grid-template-columns:1fr; }
.story-live .hero-layout { transform-origin:var(--origin-x,50%) var(--origin-y,42%); transform:scale(var(--scene-scale,1)); }
.hero-layout .hero-copy { grid-column:1/-1; min-height:0; align-items:center; text-align:center; }
.hero-layout .actions { justify-content:center; }
.hero-layout .intro-copy { max-width:54ch; text-wrap:pretty; }
.lens-word { position:relative; white-space:nowrap; }
.vision-actor {
  position:absolute; left:.50em; bottom:.29em; width:.48em; aspect-ratio:1149/1150;
  pointer-events:none; z-index:1; transform-origin:50% 51%; transform:scale(var(--lens-scale,1));
}
.vision-actor img { width:100%; height:100%; object-fit:contain; }
.focus-ring {
  position:absolute; inset:0; pointer-events:none; background:center/contain no-repeat url(lens.webp);
  mask-image:radial-gradient(circle closest-side,transparent 63%,black 65% 77%,transparent 79%);
  transform:rotate(var(--focus-angle,0deg));
}
.optical-sensor {
  position:absolute; left:50%; top:51%; width:1.25%; aspect-ratio:1;
  transform:translate(-50%,-50%); border-radius:50%;
  background:radial-gradient(circle,#fff2db 0 17%,#ff3b22 25% 49%,#8d1a13 60% 73%,#47322f 80%);
}
.vision-feed { display:none; }
/* The document supplies scroll distance. Every scene shares this one sticky viewport. */
.story-live { --beat:85svh; --story-beats:7.35; }
.story-live::after { content:""; display:block; height:calc(var(--story-beats) * var(--beat)); }
.story-live .story-viewport { position:sticky; top:var(--header-offset); height:var(--screen-height); overflow:clip; isolation:isolate; }
.story-live .hero-screen,.story-live .reel-step { position:absolute; inset:0; }
/* Settle on a complete service even when a reader stops scrolling at the handoff. */
.story-live .reel-step {
  z-index:var(--layer); pointer-events:none; clip-path:inset(0 0 100% 0);
  transition:clip-path .32s var(--ease);
}
.story-live .reel-step.onstage {
  pointer-events:auto; clip-path:inset(0);
}
.story-live .reel-step:focus-within { transition:none; }
.story-anchor { position:absolute; width:1px; height:1px; left:0; top:calc(var(--at)*var(--beat)); scroll-margin-top:var(--header-offset); pointer-events:none; }
@media(min-width:981px) {
  body:has(.story-live) .mast { position:sticky; top:0; background:var(--paper); }
  .story-live { --header-offset:80px; }
}
.story-live .vision-feed {
  position:absolute; inset:0; z-index:5; display:grid; grid-template:minmax(0,1fr) minmax(0,1fr) auto / repeat(2,minmax(0,1fr));
  clip-path:circle(var(--iris,0%) at var(--lens-x,75%) var(--lens-y,42%));
}
.hero-screen.optics-done .vision-feed { clip-path:none; }
.hero-screen.optics-done .hero-layout { visibility:hidden; }
.vision-feed a:focus-visible { outline-offset:-5px; z-index:1; }
.reading-beam {
  display:none; position:fixed; inset:0; z-index:8; overflow:clip;
  color:#b84027; pointer-events:none; opacity:var(--beam-opacity,0);
}
@media (prefers-reduced-motion:no-preference) {
  .reading-beam.scanning { display:block; }
  body:has(.studio-menu[open]) .reading-beam { display:none; }
}
.viewer-sweep {
  position:absolute; inset-inline:0; top:var(--scan-y); height:clamp(22px,5vh,54px);
  transform:translateY(-100%); border-bottom:1px solid #dc4933b8;
  background:linear-gradient(to top,#e8573821,transparent);
}
.viewer-sweep::after {
  content:""; position:absolute; inset:auto 0 -1px; height:2px;
  background:linear-gradient(to right,currentColor 0 9px,transparent 9px calc(100% - 9px),currentColor calc(100% - 9px));
}
.scan-focus {
  --stroke:linear-gradient(currentColor,currentColor);
  position:absolute; left:var(--aim-x,50%); top:var(--aim-y,48%);
  width:clamp(38px,6vmin,64px); aspect-ratio:1;
  transform:translate(-50%,-50%) scale(var(--focus-scale,1));
  background:var(--stroke) left top / 9px 1px, var(--stroke) left top / 1px 9px,
             var(--stroke) right top / 9px 1px, var(--stroke) right top / 1px 9px,
             var(--stroke) left bottom / 9px 1px, var(--stroke) left bottom / 1px 9px,
             var(--stroke) right bottom / 9px 1px, var(--stroke) right bottom / 1px 9px;
  background-repeat:no-repeat;
  transition:left 140ms ease-out,top 140ms ease-out;
}
.station {
  container-type:size; position:relative; overflow:hidden;
  outline:1px solid #a2afb1; outline-offset:-1px; color:var(--pen);
  background:radial-gradient(#84959c4f .65px,transparent 1px) center / 11px 11px, #eee5d8;
}
.station-name {
  position:absolute; top:6%; left:6%; right:4%; z-index:2;
  font:650 clamp(9px,4.25cqw,18px)/1.12 Inter,sans-serif; letter-spacing:-.035em;
}
.station-name { display:flex; align-items:baseline; gap:.65em; padding-bottom:2.3%; border-bottom:1px solid #a6b4b780; font-size:clamp(12px,4.25cqw,18px); }
.station-number,.service-position { color:var(--olive); font:600 .75rem/1.25 var(--mono); }
.service-position { margin-bottom:.5em; }
.service-scroll-cue {
  grid-column:1/-1; display:flex; align-items:center; gap:12px;
  padding:12px var(--gutter) max(12px,env(safe-area-inset-bottom));
  background:var(--olive-dark); color:white; line-height:1.2;
}
.service-scroll-cue strong { font-size:clamp(.95rem,1.2vw,1.15rem); }
.cue-arrow {
  width:34px; height:34px; flex:none; display:grid; place-items:center;
  border-radius:50%; background:var(--orange); color:var(--ink); font-size:1.3rem;
}
.cue-next { margin-left:auto; color:#e5e0cf; font-size:.87rem; }
.vision-feed .service-scroll-cue:focus-visible { outline-color:white; }
@media(max-width:600px) {
  .service-scroll-cue { display:grid; grid-template-columns:auto 1fr; gap:3px 12px; }
  .cue-arrow { grid-row:1/3; }
  .cue-next { margin:0; font-size:.78rem; }
}
.station-web { background:#f9f6ef; }
.station-ai { background:#e8decd; }
.station-digital { background:repeating-linear-gradient(0deg,transparent 0 17px,#b9c3c830 17px 18px),#e6e5d7; }
.decision-root,.decision-choice,.invoice-review,.booking-browser,.booking-phone {
  position:absolute; border:1px solid var(--hairline); border-radius:2px; background:#fffefa; box-shadow:0 2px 0 #53677319;
}
.decision-root,.decision-choice {
  padding:2.6% 3%; font:550 clamp(8px,3.65cqw,16px)/1 var(--mono);
}
.decision-root { left:9%; top:48%; color:#323427; background:#e5e2d5; font-weight:750; }
.decision-choice { left:55%; width:35%; }
.choice-a { top:28%;  }
.choice-b { top:49%; border-color:#aa674b; background:color-mix(in srgb,#fffefa,#ffb78b calc(var(--consult,0)*100%)); }
.choice-c { top:70%;  }
.decision-lines { position:absolute; left:30%; top:34%; height:42%; width:29%; background:linear-gradient(#899ba3,#899ba3) left center / 100% 1px no-repeat; }
.decision-lines::before { content:""; position:absolute; left:37%; right:0; inset-block:0; border:1px solid #899ba3; border-right:0; border-radius:4px 0 0 4px; }
.decision-lines::after { content:""; position:absolute; left:0; top:50%; height:2px; width:100%; background:#d9501d; transform-origin:left; transform:scaleX(var(--consult,0)); }
.booking-browser { left:10%; top:24%; width:67%; height:58%;  overflow:hidden; }
.browser-chrome { display:flex; gap:3%; align-items:center; height:17%; padding-inline:5%; border-bottom:1px solid #afbbbf; background:#e4dfd3; }
.browser-chrome i { width:1.7cqw; aspect-ratio:1; border-radius:100%; background:#817c6a; }
.booking-browser strong { display:block; margin:5% 8%; max-width:10ch; font:italic 520 min(6.3cqw,10cqh)/.96 Georgia,serif; letter-spacing:-.05em; }
.booking-slots { display:flex; gap:3%; margin-inline:8%; }
.booking-slots b { padding:2%; font:550 min(2.7cqw,4.5cqh)/1 var(--mono); border:1px solid #b3bdbd; border-radius:2px; }
.booking-slots b:nth-child(2) { background:#ffad75; }
.booking-phone { top:40%; left:68%; width:20%; height:48%; border:2px solid var(--pen); border-radius:12% / 9%; text-align:center; transform:translateX(calc((1 - var(--web,0))*-13%)); }
.booking-phone i { display:block; margin:4% auto 10%; width:35%; height:5%; background:var(--pen); border-radius:4px; }
.booking-phone span { font:550 min(3cqw,5.1cqh)/1.1 var(--mono); }
.booking-phone strong,.booking-phone b { display:block; font:650 min(4.6cqw,7.5cqh)/1.2 Inter,sans-serif; }
.booking-phone b { width:60%; margin:8% auto; background:#ffab74; border-radius:4px; }
.job-demo {
  --signed:clamp(0,(var(--digital,1) - .12)*8,1);
  --travel:clamp(0,(var(--digital,1) - .29)*2.45,1);
  --received:clamp(0,(var(--digital,1) - .71)*8,1);
  position:absolute; inset:15% 0 3%; container-type:size; color:#323427;
}
.job-terminal {
  position:absolute; z-index:2; left:3%; top:50%; width:36%; height:92%;
  max-height:83cqw; padding:1.45%; transform:translateY(-50%) rotate(-3deg);
  border:1px solid #465256; border-radius:8% / 5%;
  background:linear-gradient(115deg,#475252,#242d30 27%,#344143 72%,#64706b);
  box-shadow:inset 0 0 0 2px #626d68,1px 3px 0 #152021,2px 8px 9px #27382b23;
}
.job-display { height:100%; padding:7%; display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; border-radius:5%; background:#f9f8ef; }
.field-app,.office-label,.job-kicker { font:560 min(2.3cqw,4cqh)/1.1 var(--mono); }
.job-display img { width:100%; height:25%; object-fit:cover; margin:3% 0; }
.job-number { font:580 min(10cqw,15cqh)/.95 Inter,sans-serif; letter-spacing:-.075em; }
.job-title { font:600 min(2.8cqw,4.3cqh)/1.1 Inter,sans-serif; letter-spacing:-.035em; }
.job-sign,.job-status { display:grid; align-items:center; }
.job-sign { padding:6% 2%; margin-top:3%; text-align:center; border-radius:2px; background:#ff9756; font:600 min(2.65cqw,4cqh)/1 Inter,sans-serif; }
.job-sign span,.job-status i { grid-area:1/1; }
.job-sign .open-state { opacity:calc(1 - var(--signed)); }
.job-sign .done-state { opacity:var(--signed); }
.job-sync { position:absolute; left:38%; top:61%; width:15%; height:1px; background:#afbbbb; }
.job-sync i { display:block; height:2px; background:#e05a22; transform-origin:left; transform:scaleX(var(--travel)); }
.job-sync b { position:absolute; left:calc(var(--travel)*100%); top:0; padding:.25em; transform:translate(-50%,-50%); font:650 min(2.4cqw,4cqh)/1 var(--mono); background:#ff9d61; opacity:calc(var(--signed)*(1 - var(--received))); }
.office-list {
  position:absolute; left:52%; right:2%; top:50%; transform:translateY(-50%);
  padding:4% 3%; background:#fffef8; border:1px solid #a4b5b7; border-top:3px solid var(--pen);
  box-shadow:0 3px 0 #c7d2ca,1px 7px 10px #243d4c14;
}
.office-list > strong { display:block; margin:.18em 0 .65em; font:600 min(5cqw,8cqh)/1 Inter,sans-serif; letter-spacing:-.065em; }
.office-row { display:flex; align-items:center; justify-content:space-between; gap:.2em; border-top:1px solid #ced5d1; padding:.65em .23em; font:450 min(2.5cqw,4.1cqh)/1.15 var(--mono); }
.job-status i { font-style:normal; text-align:right; }
.row-018 { background:rgb(255 159 90 / calc(var(--received)*.50)); }
.job-status .open-state { opacity:calc(1 - var(--received)); }
.job-status .done-state { opacity:var(--received); }

.inspection-figure {
  position:absolute; left:6%; top:54%; width:45%;
  transform:translate(calc(-2% + var(--ai,0)*4%), -42%) rotate(calc(-3deg + var(--ai,0)*3deg));
  transform-origin:20% 85%;
}
.inspection-figure img { display:block; width:100%; height:auto; }
.invoice-review {
  left:59%; top:58%; transform:translateY(-50%); width:37%; padding:3%;
  overflow:hidden; border-top:2px solid var(--pen);
  font:540 min(3.4cqw,5.4cqh)/1.18 var(--mono);
}
.invoice-review b {
  display:block; margin:.45em 0; font:580 min(6.3cqw,10cqh)/1 Inter,sans-serif;
  font-variant-numeric:tabular-nums; letter-spacing:-.065em;
}
.invoice-exception { border-top:1px solid var(--hairline); padding-top:.6em; }
.invoice-exception strong { display:block; font:600 min(3.6cqw,5.7cqh)/1.12 Inter,sans-serif; }
.invoice-exception small {
  display:inline-block; margin-top:.45em; padding:.28em .4em;
  border-left:2px solid #dd541a; background:#ffe6d4; color:#743419; font-size:.9em;
}
.scan-line {
  position:absolute; left:0; width:2px; height:16%; top:calc(8% + var(--ai,0)*49%);
  background:#da501d;
}
.reel-heading { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.reel-copy,.reel-step { scroll-margin-top:var(--header-offset); }
.reel-step { position:relative; background:var(--scene-paper); color:var(--pen); }
.chapter-consult { --scene-paper:#eee5d8; }
.chapter-web { --scene-paper:#f9f6ef; }
.chapter-digital { --scene-paper:#e6e5d7; }
.chapter-ai { --scene-paper:#e8decd; }

.service-screen { background:var(--scene-paper); border-top:1px solid var(--rule); }
.service-layout { padding-block:clamp(32px,6svh,80px); }
.service-caption h3 { margin:18px 0; font-size:clamp(2.65rem,4.8vw,5.8rem); max-width:17ch; }
.service-benefit { max-width:32ch; margin-bottom:.65em; font-size:clamp(1.12rem,1.85vw,1.85rem); font-weight:540; letter-spacing:-.035em; line-height:1.2; }
.service-detail { max-width:45ch; color:var(--muted); }
.service-artwork figcaption { position:absolute; top:5%; left:5%; right:4%; border-top:1px solid var(--hairline); padding-top:.65em; color:var(--pen); font:520 clamp(.72rem,1vw,.95rem)/1.2 var(--mono); }
.service-caption .line-link { margin-top:16px; }
.service-artwork { position:relative; container-type:size; width:100%; height:clamp(335px,59svh,650px); }
:is(.chapter-digital,.chapter-ai) .service-artwork { grid-column:1; grid-row:1; }
:is(.chapter-digital,.chapter-ai) .service-caption { grid-column:2; grid-row:1; }
@media(max-width:980px) { .offer-reel { --header-offset:66px; } .hero-layout { min-height:var(--screen-height); } }
@media(max-width:760px) {
  .hero-layout,.service-layout { grid-template-columns:1fr; }
  .hero-layout { padding-block:22px; align-content:center; gap:16px; }
  .hero-layout .hero-copy { padding:0; }
  .service-layout { align-content:center; gap:10px; padding-block:26px; }
  .service-caption h3 { font-size:clamp(2rem,8vw,3.2rem); margin:12px 0; }
  .service-artwork { height:clamp(195px,36svh,380px); }
  :is(.chapter-digital,.chapter-ai) :is(.service-artwork,.service-caption) { grid-column:auto; grid-row:auto; }
}
@media(max-height:580px) {
  .story-live .service-screen { position:relative; top:auto; }

  .service-artwork { height:clamp(175px,53svh,310px); }
}

@media(max-width:760px) and (max-height:740px) {
  .story-live .hero-layout { padding-block:12px; gap:8px; }
  .story-live .hero-layout h1 { font-size:clamp(2.4rem,8vw,3rem); margin:12px 0; }
  .story-live .hero-layout .intro-copy { font-size:.98rem; }
  .story-live .service-layout { padding-block:14px; }
  .story-live .service-artwork { height:clamp(130px,27svh,210px); }
}
@media(max-width:360px) and (max-height:740px) {
  .story-live .hero-layout { padding:8px 16px; gap:4px; }
  .story-live .hero-layout .hero-copy h1 { font-size:2.15rem; margin:8px 0; }
  .story-live .hero-layout .intro-copy { font-size:.94rem; line-height:1.36; }
  .story-live .hero-layout .actions { margin-top:8px; }
}
@media (orientation:landscape) and (max-height:580px) {
  .story-live :is(.hero-layout,.service-layout) { grid-template-columns:1fr 1fr; gap:16px; padding-block:8px; }
  .story-live .hero-layout h1,.story-live .service-caption h3 { font-size:clamp(1.6rem,3.8vw,2.6rem);margin:6px 0; }
  .story-live .hero-copy { padding:0; }
  .story-live .intro-copy,.story-live .service-caption > p:not(.eyebrow) { font-size:.89rem;line-height:1.38; }
  .story-live .actions { margin-top:8px; }
}
.project-wallet {
  --gap: clamp(13px,2.5vw,38px);
  position: relative;
  isolation: isolate;
  border: 1px solid #d5d2c6;
  border-radius: 6px;
  background: radial-gradient(ellipse at 48% 20%, #f8f4e9, #e8e3d4);
}
.wallet-track {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: var(--gap);
  padding: clamp(20px,3vw,45px);
}
.project-leaf {
  min-width: 0;
  padding: clamp(12px,1.55vw,25px);
  background: #fffdf5;
  border: 1px solid #d4cdb8;
  box-shadow: 0 3px 1px #e6e0d0, 0 6px 1px -1px #d3cdbd, 0 10px 20px #51483426;
  border-radius: 3px;
}
.leaf-heading,.leaf-links { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.leaf-heading { margin-bottom: 12px; }
.leaf-heading h3 { font-size: clamp(1.25rem,2.2vw,2.7rem); }
.leaf-heading span { color: #555447; font: 500 clamp(.65rem,.85vw,.82rem)/1.2 var(--mono); text-align:right; }
.leaf-image { display: block; border: 1px solid #c6c5b8; overflow: hidden; }
.leaf-image img { width: 100%; aspect-ratio: 2.5; object-fit: cover; object-position: top; }
.project-leaf > p { font-size: clamp(.98rem,1.4vw,1.4rem); line-height: 1.25; margin: 16px 0 4px; letter-spacing: -.02em; }
.leaf-links { flex-wrap: wrap; gap: 2px 12px; }
.leaf-links .line-link { font-size: .83rem; }
.wallet-ready {
  --pocket: min(48%,650px);
  --edge: clamp(18px,2.6vw,40px);
}
.wallet-ready .wallet-track {
  position: relative; display:flex; overflow: hidden;
  padding: var(--edge) var(--edge) 78px;
  scroll-snap-type: x mandatory; scroll-padding-inline:var(--edge);
  scrollbar-width: none;
}
.wallet-ready .project-leaf {
  position: relative; flex: 0 0 calc((100% - var(--gap))/2);
  transform: translate(var(--stack-x), 12%) rotate(var(--tilt)) scale(.89);
  transform-origin: center; transition: transform .58s var(--ease);
}
.wallet-ready .wallet-track[inert] { scroll-snap-type: none; }
.wallet-ready.is-open .wallet-track { overflow-x:auto; }
.wallet-ready.is-open .project-leaf { transform: none; scroll-snap-align: start; }
.wallet-ready::before {
  content: ''; position: absolute; width: var(--pocket); left: 50%; top: 15%; bottom: 12%;
  border-radius: 4px; background: linear-gradient(140deg,#f67c39,#d54e17); transform: translateX(-50%) rotate(-3deg);
  clip-path:polygon(0 0,29% 0,34% 5%,100% 5%,100% 100%,0 100%);
  transition: transform .55s var(--ease),opacity .55s;
}
.wallet-ready.is-open::before { opacity: 0; transform: translate(-50%,8%) scale(.9); }
.wallet-cover {
  position: absolute; z-index: 2; bottom: 7%; left: 50%; width: var(--pocket); height: 58%;
  transform: translateX(-50%) rotate(-2deg);
  filter: drop-shadow(2px 12px 9px #55391e33);
  appearance: none; border: 0; background: transparent; padding: 0; color: #351f11;
  transition: width .5s var(--ease),height .5s var(--ease),bottom .5s var(--ease),transform .5s var(--ease);
}
.cover-face {
  position: relative; width:100%; height:100%; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-end;
  gap:6px; padding: 5% 7%; border-radius: 5px 5px 9px 9px;
  clip-path: polygon(0 9%,46% 9%,53% 0,100% 0,100% 100%,0 100%);
  background: linear-gradient(152deg,#ff9655,#ff722b 45%,#ff6520 90%);
  box-shadow: inset 0 -2px 3px #9a370d63;
}
.cover-face b { font-size: clamp(1.8rem,4vw,4rem); font-weight:620; letter-spacing:-.07em; line-height:1; }
.cover-action { font: 550 .8rem/1.3 var(--mono); }
.is-open .wallet-cover { height:44px; width:160px; bottom:15px; transform:translateX(-50%); }
.is-open .cover-face { align-items:center; justify-content:center; padding:0; clip-path:none; }
.is-open .cover-face b { display:none; }
.wallet-controls { position:absolute; right:var(--edge); bottom:13px; display:flex; gap:5px; }
.project-wallet [hidden] { display: none; }
.wallet-controls button { width:44px; height:44px; border-radius:50%; border:1px solid #8b897c; background:#fffdf5; font-size:1.2rem; }
.wallet-controls button[aria-disabled="true"] { opacity:.4; cursor:default; }
@media(max-width:760px) {
  .wallet-track { grid-template-columns:1fr; }
  .wallet-ready { --pocket:84%; --edge:12px; }
  .wallet-ready .project-leaf { flex-basis:88%; }
  .wallet-ready .wallet-track { padding-top:22px; }
  .wallet-ready.is-open .wallet-cover { left:var(--edge); transform:none; width:128px; }
  .wallet-ready .leaf-links { display:grid; justify-items:start; }
  .wallet-ready .leaf-links .line-link { min-height:36px; }
  .wallet-ready .leaf-image img { aspect-ratio: 1.8; }
}

@media (prefers-reduced-motion: no-preference) {
  .wallet-nudge .wallet-cover {
    transform-origin: 50% 93%;
    animation: folder-rock .78s .18s both;
  }
  .wallet-nudge .project-leaf { animation: paper-shift .74s .21s both; }
  @keyframes folder-rock {
    0%,100% { rotate:0deg; }
    22% { rotate:-2.8deg; }
    46% { rotate:2.1deg; }
    68% { rotate:-1.15deg; }
    86% { rotate:.45deg; }
  }
  @keyframes paper-shift {
    0%,100% { translate:0 0; }
    25% { translate:-2px -5px; }
    55% { translate:2px -3px; }
  }
}

/* Keep the reading surface opaque where it carries text. The open side reveals the photograph. */
.decision-guides,.first-conversation {
  --reading-side:90deg;
  position:relative; isolation:isolate; overflow:clip; background:var(--paper);
  scroll-margin-top:80px;
}
.first-conversation { --reading-side:270deg; }
.preparation-backdrop {
  position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover;
}
.decision-guides .preparation-backdrop { object-position:68% 50%; }
.first-conversation .preparation-backdrop { object-position:28% 56%; }
:is(.decision-guides,.first-conversation)::before {
  content:""; position:absolute; z-index:-1; inset:0; pointer-events:none;
  background:linear-gradient(to bottom,var(--paper),transparent 9% 90%,var(--paper)),
    linear-gradient(var(--reading-side),var(--paper) 10%,rgb(247 243 235 / .97) 42%,rgb(247 243 235 / .90) 50%,transparent 72%);
}
.preparation-layout { padding-block:clamp(60px,7vw,116px); }
.preparation-copy { width:48%; max-width:44rem; }
.first-conversation .preparation-copy { margin-left:auto; }
.preparation-copy h2 { font-size:clamp(3rem,5.25vw,6rem); line-height:1; }
.preparation-copy h2 em { color:var(--olive); }
.decision-guides h2 { margin:14px 0 26px; }
.guide-preview,.conversation-answers summary {
  border-top:1px solid var(--rule); display:flex; align-items:baseline; justify-content:space-between; gap:16px;
}
.guide-preview { padding:clamp(17px,1.8vw,30px) 0; }
.guide-topic { font:560 .78rem/1.4 var(--mono); color:var(--olive); }
.guide-preview h3 { font-size:clamp(1.45rem,2vw,2.15rem); margin:7px 0 9px; }
.guide-preview p,.conversation-answers p,.first-conversation header p {
  max-width:56ch; color:var(--muted); line-height:1.55; text-wrap:pretty;
}
.guide-arrow { color:var(--ink); font-size:1.5rem; line-height:1; }
.guide-preview:is(:hover,:focus-visible) h3 { text-decoration:underline; text-underline-offset:.14em; text-decoration-thickness:1px; }
.guide-previews article:last-of-type { border-bottom:1px solid var(--rule); }
.guide-actions { display:flex; flex-wrap:wrap; gap:0 24px; margin-top:8px; }
.first-conversation header { margin-bottom:20px; }
.first-conversation header p { max-width:40ch; margin:20px 0 9px; }
.conversation-answers details:last-child { border-bottom:1px solid var(--rule); }
.conversation-answers summary {
  list-style:none; cursor:pointer; padding:19px 0; align-items:center;
  font-size:clamp(1.05rem,1.5vw,1.5rem); font-weight:580; line-height:1.25; letter-spacing:-.035em;
}
.conversation-answers summary::-webkit-details-marker { display:none; }
.conversation-answers summary::after {
  content:""; width:19px; height:19px; flex:none; border-radius:50%;
  background:linear-gradient(var(--ink),var(--ink)) center/9px 1px no-repeat,
             linear-gradient(var(--ink),var(--ink)) center/1px 9px no-repeat,var(--cream);
}
.conversation-answers details[open] summary::after { background:linear-gradient(var(--ink),var(--ink)) center/9px 1px no-repeat,var(--orange); }
.conversation-answers details p { padding:0 26px 20px 0; }
.conversation-answers details { scroll-margin-top:90px; }
.preparation-story { position:relative; --pin-top:80px; background:var(--paper); }
.preparation-index { width:100%; display:flex; align-items:center; gap:14px; min-height:46px; font-weight:550; font-size:.9rem; }
.preparation-index a { display:inline-flex; align-items:center; min-height:44px; gap:7px; }
.preparation-index a span { font:500 .72rem var(--mono); color:var(--olive); }
.preparation-index i { width:clamp(30px,5vw,80px); height:1px; background:var(--rule); }
.preparation-index [aria-current="step"] span { box-shadow:0 2px var(--orange); }
.preparation-marker { position:absolute; width:1px; height:1px; top:0; pointer-events:none; scroll-margin-top:var(--pin-top); }
.preparation-marker:last-child { top:calc(var(--travel) * .79); }
.preparation-story .preparation-layout { padding-block:clamp(22px,3vh,44px); }

.preparation-pinned { --travel:100svh; }
.preparation-pinned::after { content:""; display:block; height:var(--travel); }
.preparation-pinned .preparation-pin {
  position:sticky; top:var(--pin-top); height:calc(100svh - var(--pin-top));
  display:grid; grid-template-rows:auto minmax(0,1fr);
}
.preparation-pinned .preparation-scenes { position:relative; isolation:isolate; }
.preparation-pinned .preparation-scenes article:is(.decision-guides,.first-conversation) {
  position:absolute; inset:0; display:grid; align-items:center;
}
.preparation-pinned .preparation-layout { width:100%; }
.preparation-pinned .first-conversation { opacity:var(--turn,0); }
.preparation-pinned [inert] { pointer-events:none; }
.preparation-pinned .decision-guides .preparation-copy { opacity:clamp(0,calc(1 - var(--turn,0) * 1.8),1); }
.preparation-pinned .first-conversation .preparation-copy { opacity:clamp(0,calc(var(--turn,0) * 2 - .7),1); }
.preparation-pinned .decision-guides .preparation-backdrop { transform:scale(calc(1 + .035 * var(--turn,0))); }
.preparation-pinned .first-conversation .preparation-backdrop { transform:scale(calc(1.035 - .035 * var(--turn,0))); }
@media(max-width:980px) {
  .preparation-story { --pin-top:66px; }
  .preparation-marker { scroll-margin-top:0; }
}
/* A shared photographic masthead anchors both chapters on smaller screens. */
@media(max-width:980px) {
  .preparation-story { --photo-height:clamp(148px,22svh,230px); }
  .preparation-story .preparation-layout {
    width:100%; padding-block:calc(var(--photo-height) + 16px) 22px;
  }
  .preparation-story .preparation-copy { width:100%; max-width:none; }
  .preparation-story .preparation-backdrop {
    height:var(--photo-height); transform:none; object-position:64% 51%;
  }
  .first-conversation .preparation-backdrop { object-position:22% 67%; }
  .preparation-story :is(.decision-guides,.first-conversation)::before {
    inset:0 0 auto; height:var(--photo-height);
    background:linear-gradient(80deg,#191810d9 0%,#191810ad 29%,transparent 79%),
               linear-gradient(0deg,#21190f5c,transparent 58%);
  }
  .preparation-story .preparation-copy h2 {
    position:absolute; inset:0 var(--gutter) auto; height:var(--photo-height); margin:0;
    display:flex; flex-direction:column; justify-content:flex-end; align-items:flex-start;
    padding-bottom:18px; font-size:clamp(2.35rem,7vw,3.65rem);
    line-height:.98; color:white; text-wrap:initial;
  }
  .preparation-copy h2 em { color:#fff1d5; }
  .decision-guides .eyebrow { display:none; }
  .preparation-pinned .preparation-scenes article:is(.decision-guides,.first-conversation) { align-items:start; }
  .guide-preview { padding:14px 0; align-items:center; gap:12px; }
  .guide-preview h3 { font-size:clamp(1.2rem,3vw,1.52rem); line-height:1.12; margin:5px 0; }
  .guide-preview p,.conversation-answers details p { font-size:.94rem; line-height:1.43; }
  .guide-arrow { font-size:1.15rem; color:var(--olive); }
  .guide-previews article:first-child .guide-preview { border-top:0; padding-top:2px; }
  .guide-actions { justify-content:space-between; align-items:center; margin-top:12px; gap:8px; }
  .guide-actions a:last-child {
    min-height:44px; padding:8px 15px; border-radius:3px; color:white; background:var(--olive-dark);
  }
  .guide-actions a:last-child::after { content:none; }
  .first-conversation header { margin-bottom:10px; }
  .first-conversation header p { margin:0; max-width:44ch; line-height:1.42; }
  .first-conversation header a { min-height:44px; }
  .conversation-answers summary { min-height:48px; padding:11px 0; gap:14px; }
  .conversation-answers summary::after { width:24px; height:24px; }
  .conversation-answers details p { padding-bottom:13px; }
  .preparation-story :is(a,summary):focus-visible { outline:2px solid #82501c; outline-offset:2px; }
  .preparation-index { gap:0; justify-content:flex-start; }
  .preparation-index a { position:relative; gap:7px; padding:0 12px; }
  .preparation-index a:first-child { margin-left:-12px; }
  .preparation-index i { width:24px; }
  .preparation-index [aria-current="step"]::after {
    content:""; position:absolute; inset:auto 12px 2px; height:2px; background:var(--orange);
  }
  .preparation-index [aria-current="step"] span { box-shadow:none; }
}
@media(min-width:560px) and (max-width:980px) {
  .preparation-story { --photo-height:clamp(152px,calc(60svh - 200px),460px); }
  .preparation-story .preparation-layout { padding-block:calc(var(--photo-height) + 24px) 28px; }
  .guide-previews { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 28px; }
  .guide-previews article:last-of-type { border-bottom:0; }
  .guide-previews article .guide-preview { border:0; padding:0; align-items:baseline; }
  .guide-previews .guide-actions { grid-column:1/-1; border-top:1px solid var(--rule); padding-top:12px; margin:0; }
  .first-conversation .preparation-copy { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:28px; }
}
/* Desktop keeps the chapter title on the photograph and the reading material on one baseline. */
@media (min-width:981px) {
  .preparation-story {
    --photo-width:49%;
    --story-inset:clamp(34px,4.4vw,94px);
    --panel-gap:clamp(38px,4.5vw,96px);
  }
  .preparation-pin { position:relative; }
  .preparation-pinned .preparation-pin { display:block; }
  .preparation-pinned .preparation-scenes { height:100%; }
  .preparation-pinned .preparation-index {
    position:absolute; z-index:3; left:var(--story-inset); top:clamp(20px,4svh,52px);
    width:auto; padding:0; gap:16px; color:white;
  }
  .preparation-pinned .preparation-index i { width:clamp(28px,3vw,58px); background:#fffb; }
  .preparation-pinned .preparation-index a { gap:8px; color:#fff; text-shadow:0 1px 5px #15140f; }
  .preparation-pinned .preparation-index a span { color:inherit; }
  .preparation-pinned .preparation-index a::before {
    content:""; width:7px; height:7px; border-radius:50%; border:1px solid currentColor;
  }
  .preparation-pinned .preparation-index a[aria-current]::before {
    background:var(--orange); border-color:var(--orange);
  }
  .preparation-pinned .preparation-index [aria-current] span { box-shadow:none; }
  .preparation-pinned .preparation-index a:focus-visible { outline-color:white; }
  .preparation-story :is(.decision-guides,.first-conversation) {
    min-height:min(610px,calc(100svh - var(--pin-top)));
    display:grid; align-items:center;
  }
  .preparation-story .preparation-backdrop {
    inset:0 auto 0 0; width:var(--photo-width); height:100%;
    object-fit:cover; clip-path:inset(0);
  }
  .decision-guides .preparation-backdrop { object-position:63% center; }
  .first-conversation .preparation-backdrop { object-position:18% center; }
  .preparation-story :is(.decision-guides,.first-conversation)::before {
    inset:0 auto 0 0; width:var(--photo-width);
    background:linear-gradient(180deg,#1a160ec4,transparent 26%,transparent 48%,#1a160edd 100%);
  }
  .preparation-story .preparation-layout {
    width:100%; max-width:none; padding:clamp(20px,3svh,42px) var(--panel-gap);
    padding-left:calc(var(--photo-width) + var(--panel-gap));
  }
  .preparation-story .preparation-copy { width:100%; max-width:47rem; margin:0; }
  .preparation-story .preparation-copy h2 {
    position:absolute; bottom:clamp(42px,7svh,94px); left:var(--story-inset);
    width:calc(var(--photo-width) - 2 * var(--story-inset));
    font-size:clamp(4.1rem,6.65vw,8rem); line-height:.94; color:white; margin:0;
    text-shadow:0 2px 20px #1c190c2b; text-align:left;
  }
  .preparation-story .preparation-copy h2 em { display:block; color:#fff4da; }
  .preparation-story .decision-guides header { margin:0 0 16px; }
  .preparation-story .guide-preview { padding:clamp(14px,2.4svh,29px) 0; }
  .preparation-story .guide-preview h3 { font-size:clamp(1.5rem,2.1vw,2.55rem); line-height:1.06; }
  .preparation-story .guide-arrow { color:var(--olive); }
  .preparation-story .guide-actions { justify-content:space-between; }
  .preparation-story .first-conversation header { margin:0 0 16px; }
  .preparation-story .first-conversation header p {
    margin:0 0 6px; font-weight:510; color:var(--ink);
    font-size:clamp(1.15rem,1.58vw,1.7rem); line-height:1.32; letter-spacing:-.028em;
  }
  .preparation-story .conversation-answers summary { min-height:45px; padding:clamp(10px,1.85svh,21px) 0; }
  .preparation-story .conversation-answers details p { padding-bottom:14px; }
  .preparation-pinned .preparation-backdrop { transform:none; }
  .preparation-pinned .preparation-index { max-width:calc(var(--photo-width) - 2 * var(--story-inset)); }
}

.service-alias { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; scroll-margin-top: var(--header-offset); }
.ai-actions { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 1.35rem; }
.chapter-ai .service-layout {
  display:flex; flex-direction:column; align-items:stretch; gap:0;
  max-width:none; width:100%; padding:0;
}
.chapter-ai .service-caption {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:6vw;
  align-content:center; padding:clamp(18px,3svh,38px) var(--gutter);
}
.chapter-ai .service-position,.chapter-ai .service-caption h3 { grid-column:1; }
.chapter-ai .service-caption h3 { grid-row:2 / span 2; margin:0; font-size:clamp(2.1rem,3.65vw,4.8rem); }
.chapter-ai .service-benefit,.chapter-ai .service-detail,.chapter-ai .ai-actions { grid-column:2; margin:0; }
.chapter-ai .service-benefit { grid-row:1; max-width:none; font-size:clamp(1rem,1.4vw,1.45rem); }
.chapter-ai .service-detail { grid-row:2; max-width:60ch; margin-top:.45em; }
.chapter-ai .ai-actions { grid-row:3; }
.chapter-ai .line-link { margin:0; }
.agent-sequence {
  flex:1; display:grid; gap:1px; min-width:0; background:#76775e;
  --inset:var(--gutter);
}
.story-live .agent-sequence { gap:0; }
.agent-demo {
  position:relative; isolation:isolate; overflow:hidden; margin:0; min-width:0;
  display:flex; flex-direction:column; justify-content:center; gap:clamp(15px,3svh,32px);
  min-height:54svh; padding:clamp(24px,4svh,56px) var(--inset);
  background:#27291c; color:#fff5df;
}
.story-live .agent-demo {
  grid-area:1 / 1; opacity:0; pointer-events:none;
  transition:opacity .24s ease;
}
.story-live .agent-visible { opacity:1; pointer-events:auto; z-index:1; }
.agent-demo figcaption,.agent-note,.agent-output { width:min(39%,36rem); }
.agent-demo figcaption {
  color:#fff5df; text-wrap:balance;
  font:italic clamp(2.6rem,4.4vw,6rem)/.98 Georgia,serif; letter-spacing:-.045em;
}
.agent-demo figcaption small {
  display:block; margin-bottom:.9em; color:#edc9a4; font:550 .78rem/1 var(--mono); letter-spacing:.05em;
}
.agent-portrait {
  position:absolute; right:0; top:0; height:100%; aspect-ratio:3/2; z-index:-1;
  mask-image:linear-gradient(to right,transparent,#000 37%);
}
.agent-portrait img { display:block; width:100%; height:100%; }
.agent-portrait i {
  position:absolute; left:58%; top:34.6%; width:5%; aspect-ratio:1;
  border:1px solid #ffcd7c; border-radius:50%; pointer-events:none; opacity:0;
  transform:translate(-50%,-50%) scale(calc(.7 + var(--agent-progress,1) * .9));
}
.agent-secretary .agent-portrait i { left:60.5%; top:34.6%; border-radius:16%; }
.agent-invoice .agent-portrait i { left:56.5%; top:50.2%; }

.agent-note .eyebrow { margin:0 0 .55em; color:#ffdec1; }
.agent-note > p:last-child { margin:0; font-size:clamp(.93rem,1.17vw,1.2rem); line-height:1.43; }
.agent-analyst .agent-note span { display:block; }
.agent-output { color:#fff5df; }
.agent-output .output-label { margin:0 0 8px; color:#fff5df; font-weight:620; line-height:1.25; }
.agent-output .output-label::after { content:""; display:block; width:2rem; height:2px; margin-top:.35em; background:#ff8646; transform-origin:left; }
.brief-implication { margin:.45em 0 0; font-size:.94rem; color:#f1dfca; }
.agent-output :is(ol,dl,dd) { padding:0; margin:0; list-style:none; }
.agent-output li,.agent-ledger > div {
  display:grid; align-items:baseline; gap:.4em; padding:.55em 0; border-top:1px solid #777864;
  font-size:clamp(.84rem,1.1vw,1.03rem); line-height:1.3;
}
.agent-tasks li { grid-template-columns:minmax(0,1fr) 3.2em 5.3em; }
.agent-tasks li span:last-child,.agent-ledger dd { text-align:right; }
.agent-ledger > div { grid-template-columns:1fr auto; }
.agent-ledger dd { font-variant-numeric:tabular-nums; }
.agent-ledger > div:last-child { font-weight:650; }
.agent-output .review-stamp {
  display:table; margin:.4em 0 0 auto; padding:.36em .65em; border:1px solid currentColor;
  color:#ffc298; font:650 .72rem/1 var(--mono); text-transform:uppercase; letter-spacing:.04em;
}
.agent-findings li { grid-template-columns:1.5em 1fr; }
.agent-findings sup { color:#ffc298; font:600 .8rem/1 var(--mono); }
@property --agent-progress { syntax:"<number>"; inherits:true; initial-value:1; }
@media (prefers-reduced-motion:no-preference) {
  .agent-portrait { transform-origin:80% 65%; transform:scale(calc(1 + var(--agent-progress,1) * .025)); }
  .agent-portrait i { opacity:clamp(0,min(var(--agent-progress,1) * 5,(1 - var(--agent-progress,1)) * 4),1); }
  .agent-output li,.agent-ledger > div,.review-stamp {
    --entry:clamp(0,calc(var(--agent-progress,1) * 3.8 - var(--delay,0)),1);
  }
  .agent-output li:nth-child(2),.agent-ledger > div:nth-child(2) { --delay:1.1; }
  .agent-output li:nth-child(3),.review-stamp { --delay:2.2; }
  .agent-output .output-label::after { transform:scaleX(clamp(0,calc(var(--agent-progress,1) * 5 - 4),1)); }
  .brief-implication { opacity:clamp(0,calc(var(--agent-progress,1) * 5 - 4),1); }
  .agent-output li > *,.agent-ledger dd { opacity:var(--entry); transform:translateY(calc((1 - var(--entry)) * .65em)); }
  .agent-output .review-stamp { opacity:var(--entry); transform:scale(calc(1.18 - var(--entry) * .18)) rotate(-2deg); }
}
@media (prefers-reduced-motion:no-preference) and (scripting:enabled) {
  @supports (animation-timeline:view()) {
    .offer-reel:not(.story-live) .agent-demo {
      animation:agent-extract linear both; animation-timeline:view(); animation-range:entry 5% cover 50%;
    }
    @keyframes agent-extract { from { --agent-progress:0; } to { --agent-progress:1; } }
  }
}
@media (max-width:760px) {
  .chapter-ai .service-caption { display:block; padding:18px var(--gutter) 12px; }
  .chapter-ai .service-caption h3 { max-width:21ch; font-size:clamp(1.75rem,6.5vw,2.7rem); margin:.18em 0 .3em; }
  .chapter-ai .service-detail { font-size:.94rem; line-height:1.4; }
  .chapter-ai .ai-actions { gap:0 1rem; }
  .chapter-ai .line-link { font-size:.84rem; }
  .agent-demo {
    justify-content:flex-end; gap:12px; padding:20px var(--inset);
    min-height:max(50svh,370px);
  }
  .agent-demo figcaption { margin-bottom:auto; font-size:clamp(2rem,7vw,3rem); }
  .agent-demo figcaption,.agent-note { width:54%; }
  .agent-portrait { height:min(100%,85vw); right:-5%; }
  .agent-demo::after {
    content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
    background:linear-gradient(to top,#27291c 10%,rgba(39,41,28,.92) 25%,transparent 61%),
               linear-gradient(to right,#27291c 0%,rgba(39,41,28,.78) 30%,transparent 67%);
  }
  .agent-note { width:min(66%,25rem); }
  .agent-note > p:last-child { font-size:.94rem; }
  .agent-output { width:100%; }
  .agent-output li,.agent-ledger > div { padding-block:.4em; }
}
