/* Meadow tokens (tokens/tokens.css, generated from tokens.json): the variables only */
:where(:root){
  --ab-ground-cream: #FAF8F5;
  --ab-ground-canvas: #F0EBE2;
  --ab-ground-paper: #FCFBF9;
  --ab-ground-night: #062265;
  --ab-ground-chip: rgba(255,255,255,.9);
  --ab-ink-50: rgba(35,27,16,.50);
  --ab-ink-69: rgba(35,27,16,.69);
  --ab-ink-74: rgba(35,27,16,.74);
  --ab-ink: #231B10;
  --ab-ink-hairline: rgba(35,27,16,.14);
  --ab-ink-rule: rgba(35,27,16,.09);
  --ab-ink-wash: rgba(35,27,16,.05);
  --ab-ink-on-blue: #FFFFFF;
  --ab-ink-on-night69: rgba(255,255,255,.69);
  --ab-ink-on-night-rule: rgba(255,255,255,.10);
  --ab-ink-on-night-mark: rgba(255,255,255,.22);
  --ab-blue-100: #DBE7FF;
  --ab-blue-300: #6FA8FF;
  --ab-blue-950: #062265;
  --ab-blue: #0033A0;
  --ab-blue-tint: rgba(0,51,160,.06);
  --ab-blue-highlight: #D2D8E7;
  --ab-orange: #FC401F;
  --ab-orange-ink: #C4100A;
  --ab-orange-night: #FF9572;
  --ab-orange-tint: rgba(252,64,31,.12);
  --ab-orange-chip: #FFF2ED;
  --ab-state-danger: #B42318;
  --ab-state-danger-bg: #FEF3F2;
  --ab-state-gain: #16A24A;
  --ab-chart-1: #0033A0;
  --ab-chart-2: #005DFF;
  --ab-chart-3: #35ADFF;
  --ab-chart-4: #AEDEFF;
  --ab-chart-point: #FC401F;
  --ab-font-display: Doppio, Georgia, serif;
  --ab-font-text: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ab-font-code: 'Geist Mono', ui-monospace, Menlo, monospace;
  --ab-r-surface: 16px;
  --ab-r-control: 12px;
  --ab-r-round: 50%;
  --ab-r-tag: 999px;
  --ab-r-device: 28px;
  --ab-r-inline: 3px;
  --ab-r-app-icon: 22.5%;
  --ab-sh-card: 0 10px 30px rgba(35,27,16,.10);
  --ab-sh-lift: 0 20px 56px rgba(35,27,16,.13);
  --ab-sh-control: inset 0 1px 0 #fff, 0 4px 14px rgba(35,27,16,.06);
  --ab-sh-button-dark: 0 4px 12px rgba(35,27,16,.18);
  --ab-sh-plate: inset 2px 3px 5px rgba(35,27,16,.10);
  --ab-sh-composer: 0 34px 74px rgba(35,27,16,.20), 0 3px 10px rgba(35,27,16,.10);
  --ab-glass-base-bg: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.92));
  --ab-glass-base-fx: blur(30px) saturate(1.35);
  --ab-glass-base-sh: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(35,27,16,.06), 0 14px 40px rgba(35,27,16,.12);
  --ab-glass-control-bg: rgba(255,255,255,.80);
  --ab-glass-control-fx: blur(14px) saturate(1.2);
  --ab-glass-control-sh: inset 0 0 0 1px rgba(255,255,255,.8), 0 10px 26px rgba(35,27,16,.14);
  --ab-glass-navVeil-bg: rgba(250,248,245,.72);
  --ab-glass-navVeil-fx: blur(18px) saturate(1.8);
  --ab-glass-navVeil-sh: none;
  --ab-ease: cubic-bezier(0.16,1,0.3,1);
  --ab-ease-film: cubic-bezier(0.65,0,0.35,1);
  --ab-dur-fast: 120ms;
  --ab-dur-base: 200ms;
  --ab-dur-slow: 320ms;
  --ab-dur-card: 550ms;
  --ab-column: 1200px;
  --ab-measure-prose: 720px;
  --ab-section-y: 152px;
  --ab-section-x: 40px;
}
@media (max-width:767px){:where(:root){--ab-section-y:96px;--ab-section-x:24px}}
/* /case-studies hero v2 · "the complete shelf" (Nov 13, 2026). Scoped to .cs3. Values are Meadow tokens (--ab-*); the
   wood (--cs3-wood*) is a mix of tokens set on the section by case-studies-hero-v2.mjs; the scene's layout numbers
   (--cs3-shelf, --cs3-focus-l, …) are set by shelf3d.js from the 3D camera so the HTML layers line up with the shelf. */
.cs3{--cs3-gut:56px;--cs3-top:92px;--cs3-shelf:78%;--cs3-under:92%;--cs3-focus-l:50%;--cs3-arrow-y:56%;--cs3-panel-b:26%;
  position:relative;box-sizing:border-box;display:block;margin:0;padding:0;width:100%;height:100vh;height:100svh;min-height:480px;
  overflow:hidden;isolation:isolate;color:var(--ab-ink);font-family:var(--ab-font-text);-webkit-font-smoothing:antialiased;
  background:linear-gradient(180deg,var(--ab-ground-cream) 0%,var(--ab-ground-canvas) 70%),var(--ab-ground-canvas)}
.cs3 *,.cs3 *::before,.cs3 *::after{box-sizing:border-box}
.cs3 p{margin:0}
.cs3 i{font-style:normal}   /* round 3: no italics anywhere in the hero (the <i> elements are rules) */
/* round 3: the live /case-studies Meadow plate behind the shelf (garden wall, roses, daisies, sky), with the house's soft
   cream wash from the top so the nav and the meta line read on the sky */
.cs3-bg{position:absolute;inset:0;z-index:0;overflow:hidden;background:var(--ab-ground-canvas);pointer-events:none}
/* round 4: the garden recedes. The plate is drawn out of focus (blur), quieter (saturation and contrast down, a touch lighter,
   never darker) and under a warm cream wash, so the books are the subject (Vishal: "the nature can become a bg") */
.cs3-bg::before{content:"";position:absolute;inset:-40px;background:var(--cs3-plate) 50% 62%/cover no-repeat;filter:blur(10px) saturate(.85) sepia(.14) contrast(.84) brightness(1.04)}
.cs3-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,var(--ab-ground-cream) 0,transparent 46%),var(--ab-ground-cream);opacity:.36}

/* ── the stage (WebGL) ── */
.cs3-stage{position:absolute;inset:0;z-index:1;outline:none;touch-action:pan-y;-webkit-tap-highlight-color:transparent;cursor:grab;-webkit-user-select:none;user-select:none}
.cs3-stage.is-drag{cursor:grabbing}
.cs3-stage.is-hot{cursor:pointer}
.cs3-gl{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity var(--ab-dur-card) var(--ab-ease)}
.cs3--ready .cs3-gl{opacity:1}
.cs3-ring{position:absolute;left:0;top:0;width:0;height:0;border:2px solid var(--ab-blue);border-radius:var(--ab-r-inline);opacity:0;pointer-events:none;transition:opacity var(--ab-dur-fast) linear}
.cs3-stage:focus-visible .cs3-ring{opacity:1}
.cs3:not(.cs3--3d) .cs3-stage{display:none}

/* ── mint's corner meta: top left "Case studies —— <the page H1>" in small caps, the lede under it; top right the buttons ── */
/* round 5: the page's H1 at the type.h1 role (Doppio 500 64/1.04, −.03em; phone 38/1.06), top left under the eyebrow, in a
   column the shelf keeps clear (--cs3-head-w, set by shelf3d.js) */
.cs3-head{position:absolute;z-index:3;left:var(--cs3-gut);top:var(--cs3-top);width:var(--cs3-head-w,520px)}
.cs3-kicker{font:500 13px/1.6 var(--ab-font-text);letter-spacing:.08em;text-transform:uppercase;color:var(--ab-blue)}
.cs3-h1{margin:8px 0 0;font-family:var(--ab-font-display);font-weight:500;font-size:64px;line-height:1.04;letter-spacing:-.03em;color:var(--ab-ink);text-wrap:balance}
.cs3-lede{max-width:380px;margin-top:22px!important;font:500 12.5px/1.4 var(--ab-font-text);letter-spacing:.08em;text-transform:uppercase;color:var(--ab-ink-69)}
.cs3-btns{position:absolute;z-index:3;right:var(--cs3-gut);top:calc(var(--cs3-top) - 10px);display:flex;gap:10px}
.cs3-btn{display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 20px;border-radius:var(--ab-r-control);font:500 14px/1 var(--ab-font-text);text-decoration:none;white-space:nowrap;transition:transform var(--ab-dur-base) var(--ab-ease),box-shadow var(--ab-dur-base) var(--ab-ease),background-color var(--ab-dur-base) var(--ab-ease)}
.cs3-btn--primary{background:var(--ab-blue);color:var(--ab-ink-on-blue);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 1px 2px rgba(6,34,101,.18),0 6px 16px -8px rgba(0,51,160,.4)}
.cs3-btn--primary:hover{background:var(--ab-ground-night)}
.cs3-btn:active{transform:scale(.98)}
.cs3-btn--secondary{background:var(--ab-ground-paper);color:var(--ab-ink);box-shadow:var(--ab-sh-control)}
.cs3-btn:hover{transform:translateY(-1px)}
.cs3-btn:focus-visible,.cs3-read:focus-visible,.cs3-arrow:focus-visible,.cs3-cv-a:focus-visible{outline:2px solid var(--ab-blue);outline-offset:3px}

/* ── the selected story (bottom left) ── */
/* round 4: under the shelf, a calm ground (no garden): the board's cast shadow on plain canvas, as mint's lower band */
.cs3-panel-fade{position:absolute;z-index:2;left:0;right:0;top:var(--cs3-under,92%);bottom:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(35,27,16,.16) 0,rgba(35,27,16,.05) 14px,rgba(35,27,16,0) 44px),var(--ab-ground-canvas)}
.cs3-panel{position:absolute;z-index:3;left:calc(var(--cs3-gut) + 30px);bottom:var(--cs3-panel-b);width:calc(var(--cs3-focus-l) - var(--cs3-gut) - 30px);max-width:620px}
.cs3:not(.cs3--3d) .cs3-panel{display:none}
.cs3-idx{display:flex;width:max-content;align-items:center;gap:14px;font:500 13px/1.6 var(--ab-font-text);letter-spacing:.08em;color:var(--ab-ink);font-variant-numeric:tabular-nums}
.cs3-idx i{display:block;width:64px;height:1px;background:var(--ab-ink-50)}
.cs3-title{margin-top:12px!important;font-family:var(--ab-font-display);font-weight:500;font-size:52px;line-height:1.08;letter-spacing:-.024em;color:var(--ab-ink);text-wrap:balance}
.cs3-title.is-long{font-size:44px}.cs3-title.is-s2{font-size:30px}.cs3-title.is-s3{font-size:26px}
.cs3-line{margin-top:22px!important;font-family:var(--ab-font-display);font-weight:400;font-style:normal;font-size:20px;line-height:1.35;color:var(--ab-ink-74);max-width:440px}
.cs3-read{display:inline-flex;align-items:center;justify-content:space-between;min-width:200px;gap:28px;margin-top:30px;padding:6px 0 12px;border-bottom:1px solid var(--ab-ink);font:500 15px/1.4 var(--ab-font-text);letter-spacing:0;color:var(--ab-ink);text-decoration:none}
.cs3-read .cs3-ne{width:18px;height:18px;transition:transform var(--ab-dur-base) var(--ab-ease)}
.cs3-read:hover .cs3-ne{transform:translate(2px,-2px)}
.cs3-panel [data-cs3-title],.cs3-panel [data-cs3-line],.cs3-panel [data-cs3-read]{transition:opacity var(--ab-dur-base) linear,transform var(--ab-dur-slow) var(--ab-ease)}
.cs3-panel.is-swap [data-cs3-title],.cs3-panel.is-swap [data-cs3-line]{opacity:0;transform:translateY(8px)}

/* ── round arrows at the row's ends ── */
.cs3-arrow{position:absolute;z-index:4;top:var(--cs3-arrow-y);width:48px;height:48px;margin-top:-24px;display:grid;place-items:center;padding:0;border:1px solid var(--ab-ink-hairline);border-radius:var(--ab-r-round);
  background:var(--ab-glass-control-bg);-webkit-backdrop-filter:var(--ab-glass-control-fx);backdrop-filter:var(--ab-glass-control-fx);color:var(--ab-ink);cursor:pointer;transition:background-color var(--ab-dur-base) var(--ab-ease),opacity var(--ab-dur-base) linear,transform var(--ab-dur-base) var(--ab-ease)}
.cs3-arrow svg{width:22px;height:22px}
.cs3-arrow--prev{left:calc(var(--cs3-gut) - 8px)}
.cs3-arrow--next{right:calc(var(--cs3-gut) - 8px)}
.cs3-arrow:hover{background:var(--ab-ground-paper)}
.cs3-arrow[aria-disabled="true"]{opacity:.38;cursor:default}

/* ── the scrubber (built, off by default: ?pk-scrub=on) ── */
.cs3-scrub{position:absolute;z-index:3;left:var(--cs3-gut);right:var(--cs3-gut);bottom:22px;display:flex;align-items:center;gap:40px}
.cs3-scrub[hidden]{display:none}
.cs3-ticks{position:relative;flex:1;height:22px;border-bottom:1px solid var(--ab-ink-hairline)}
.cs3-ticks i{position:absolute;bottom:0;left:calc(var(--i) / 15 * 100%);width:1px;height:8px;background:var(--ab-ink-50)}
.cs3-ticks b{position:absolute;bottom:0;left:calc(var(--cs3-p,0) * 100%);width:2px;height:20px;margin-left:-1px;background:var(--ab-ink)}
.cs3-scrub p{font:500 12.5px/1.2 var(--ab-font-text);letter-spacing:.1em;text-transform:uppercase;color:var(--ab-ink-69);white-space:nowrap}

/* ── the still row: no WebGL, reduced motion, and the links screen readers use in 3D ── */
.cs3-row{position:absolute;z-index:2;left:0;right:0;bottom:calc(100% - var(--cs3-shelf));display:flex;gap:18px;margin:0;padding:0 var(--cs3-gut) 0;list-style:none;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 var(--cs3-gut);scrollbar-width:thin}
.cs3:not(.cs3--3d)::before{content:"";position:absolute;z-index:1;left:0;right:0;top:var(--cs3-shelf);height:calc(var(--cs3-under) - var(--cs3-shelf));
  background:linear-gradient(180deg,var(--cs3-wood-l) 0,var(--cs3-wood) 22%,var(--cs3-wood-d) 70%,var(--cs3-wood-u) 100%)}
.cs3--3d .cs3-row{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
.cs3-cv{flex:0 0 auto;scroll-snap-align:start}
.cs3-cv-a{position:relative;display:flex;flex-direction:column;width:236px;height:396px;padding:26px 22px 22px;background:var(--cs3-bg);color:var(--cs3-t);text-decoration:none;border-radius:0 var(--ab-r-inline) var(--ab-r-inline) 0;
  box-shadow:inset 6px 0 8px -6px rgba(35,27,16,.5),var(--ab-sh-card)}
.cs3-cv-frame{position:absolute;inset:10px;border:1px solid currentColor;opacity:.4;pointer-events:none}
.cs3-cv-logo{display:flex;align-items:center;height:30px;max-width:150px}
.cs3-cv-logo img{max-height:26px;max-width:150px;width:auto;height:auto;display:block}
.cs3-cv:not([data-light]) .cs3-cv-logo:not(.is-label) img{filter:brightness(0) invert(1)}
.cs3-cv-logo.is-label{padding:4px 8px;background:var(--ab-ground-paper);border-radius:var(--ab-r-inline);width:max-content}
.cs3-cv-b{margin-top:10px;font:500 12.5px/1.4 var(--ab-font-text);letter-spacing:.08em;text-transform:uppercase}
.cs3-cv-r{margin-top:8px;font:500 14px/1.3 var(--ab-font-text);text-decoration:underline;text-underline-offset:3px}
.cs3-cv-n{margin-top:10px;font-family:var(--ab-font-display);font-weight:400;font-size:54px;line-height:1;letter-spacing:-.03em}
.cs3-cv-l{margin-top:6px;font:500 14px/1.35 var(--ab-font-text)}
.cs3-cv-pic{position:relative;display:block;margin-top:auto;aspect-ratio:4/3;overflow:hidden;background:var(--ab-ground-canvas)}
.cs3-cv-pic img{width:100%;height:100%;object-fit:cover;display:block}
.cs3-cv-pic::after{content:"";position:absolute;inset:0;box-shadow:var(--ab-sh-plate)}
.cs3-cv-base{margin-top:10px;font:500 12.5px/1.3 var(--ab-font-text);letter-spacing:.06em;text-transform:uppercase;opacity:.8}
.cs3-cv-i{position:absolute;top:28px;right:24px;font:500 12.5px/1.2 var(--ab-font-text);letter-spacing:.08em;opacity:.7}
.cs3:not(.cs3--3d){--cs3-shelf:85%;--cs3-under:91%}
.cs3:not(.cs3--3d) .cs3-head{width:auto;right:var(--cs3-gut)}
.cs3:not(.cs3--3d) .cs3-arrow{top:calc(var(--cs3-shelf) - 360px - 40px)}
.cs3:not(.cs3--3d) .cs3-arrow--prev{left:auto;right:calc(var(--cs3-gut) + 56px)}
.cs3:not(.cs3--3d) .cs3-arrow--next{right:var(--cs3-gut)}
.cs3-cv-pic{flex-shrink:0}

/* no scrim on the stage: the story text sits straight on the cream (Vishal, round 2: no visible box) */

/* short laptop windows: tighter panel rhythm */
@media (min-width:768px) and (max-height:820px){
  .cs3-title{margin-top:8px!important}
  .cs3-line{margin-top:12px!important}
  .cs3-read{margin-top:16px;padding:4px 0 8px}
}
.cs3--compact .cs3-arrow{width:44px;height:44px;margin-top:0;right:auto}
/* round 5: with the H1 at its role size the left column needs ~700px; shorter windows get a hero a little taller than the
   fold rather than the H1 and the story overlapping */
@media (min-width:768px){.cs3{min-height:700px}}
/* ── narrow desktop ── */
@media (max-width:1099px){
  .cs3{--cs3-gut:32px}
  .cs3-title{font-size:52px}.cs3-title.is-long{font-size:44px}.cs3-title.is-s2{font-size:30px}.cs3-title.is-s3{font-size:26px}
}
/* ── phones: the same scene, stacked: meta, buttons, the shelf, the story ── */
@media (max-width:767px){
  .cs3{--cs3-gut:24px;--cs3-top:84px;min-height:520px;max-height:none}
  .cs3-head{right:var(--cs3-gut);width:auto}
  .cs3-h1{margin-top:4px;font-size:38px;line-height:1.06}
  .cs3-lede{margin-top:8px!important;letter-spacing:.06em;max-width:none}
  .cs3-btns{left:var(--cs3-gut);right:auto;top:var(--cs3-btns-t,200px)}
  .cs3-btn{min-height:44px}
  .cs3-panel{left:var(--cs3-gut);right:var(--cs3-gut);width:auto;max-width:none;bottom:var(--cs3-panel-b)}
  .cs3-bg::before{background-image:var(--cs3-plate-sm);background-position:50% 64%}
  .cs3-title{margin-top:6px!important;font-size:30px;line-height:1.12}.cs3-title.is-long,.cs3-title.is-s2,.cs3-title.is-s3{font-size:26px}
  .cs3-line{margin-top:8px!important;font-size:19px;line-height:1.3;max-width:none}
  .cs3-read{margin-top:8px;min-height:44px;padding:4px 0 6px;gap:18px;min-width:0}
  .cs3-arrow{top:auto;bottom:auto;margin-top:0;width:44px;height:44px}
  .cs3-arrow--prev{left:auto;right:calc(var(--cs3-gut) + 52px)}
  .cs3-arrow--next{right:var(--cs3-gut)}
  .cs3:not(.cs3--3d){--cs3-shelf:86%;--cs3-under:90%}
  .cs3-cv-a{width:200px;height:356px;padding:20px 18px 18px}
  .cs3-cv-n{margin-top:14px;font-size:38px}
  .cs3-cv-l{font-size:14px}
  .cs3:not(.cs3--3d) .cs3-arrow{display:none}
}
@media (max-width:767px) and (max-height:700px){
  .cs3{--cs3-top:72px}
  .cs3-lede{margin-top:4px!important}
  .cs3-title{font-size:30px}.cs3-title.is-long,.cs3-title.is-s2,.cs3-title.is-s3{font-size:26px}
  .cs3-line{margin-top:4px!important;font-family:var(--ab-font-text);font-size:15px;line-height:1.4}
  .cs3-read{margin-top:2px}
  .cs3-cv-a{width:156px;height:236px;padding:14px 12px 12px}
  .cs3-cv-pic{display:none}
  .cs3-cv-base{margin-top:auto!important}
  .cs3-cv-n{margin-top:8px;font-size:30px}
  .cs3-cv-logo{height:22px}.cs3-cv-logo img{max-height:18px;max-width:110px}
  .cs3:not(.cs3--3d){--cs3-shelf:88%;--cs3-under:92%}
}
@media (prefers-reduced-motion:reduce){.cs3 *{transition-duration:1ms!important}}
