.browser-story { position:relative; background:#101d23; --story-space:clamp(1.75rem,4.5svh,3.25rem); }
.story-grid { position:relative; display:grid; grid-template:"deck visual" auto / minmax(0,.92fr) minmax(0,1.08fr); gap:0 clamp(1.75rem,4vw,4rem); align-items:start; padding-block:var(--story-space); }
.story-deck { grid-area:deck; min-width:0; }
.story-panel + .story-panel { margin-top:clamp(2rem,5vw,4rem); }
.story-panel h1,.story-panel h2 { font-size:clamp(3.35rem,5.6vw,5.2rem); text-wrap:balance; text-box:trim-start cap alphabetic; }
.story-panel h2 em { color:var(--mint); font-style:normal; }
.story-panel .lede { margin:1.1rem 0 0; }
.story-grid .text-link { color:var(--mint); }
.chapter-links { display:flex; flex-wrap:wrap; gap:.4rem 1.1rem; margin-top:.8rem; font-size:.9rem; }
.story-actions { margin-top:clamp(1rem,2.5vh,1.9rem); }
.story-grid > .motion-switch { right:.85rem; top:.25rem; bottom:auto; }
.story-skip { position:absolute; z-index:4; left:0; top:.2rem; padding:.45rem; background:#101d23; }
.story-skip:not(:focus) { clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
.story-visual { grid-area:visual; position:sticky; top:calc(var(--story-header-size,0px) + var(--story-space)); min-width:0; width:100%; padding-inline:.85rem; }
html[data-home-story] { scroll-padding-top:var(--story-header-size); }
html[data-switching-story] { overflow-anchor:none; }
/* Reserve the scroll distance after the real content so the next section can
   sit directly below the demo even on a tall display. */
.home-track[data-pinned]::after { content:""; display:block; height:clamp(90rem,315svh,205rem); }
[data-pinned] > .home-surface { position:sticky; top:var(--story-header-size); }
[data-pinned] .story-deck { display:grid; align-self:start; overflow-x:clip; }
[data-pinned] .story-panel { grid-area:1/1; align-self:start; margin:0; }
[data-pinned] .story-panel[data-out] { visibility:hidden; }
[data-pinned] .story-visual { position:relative; top:auto; width:min(100%,calc((100svh - var(--story-header-size) - 2 * var(--story-space))*1.5)); align-self:start; justify-self:center; }
.home-offer { padding-top:clamp(1.25rem,2.5vw,2.5rem); }
.browser-demo { margin: 0; min-width: 0; }
.demo-slot { position: relative; aspect-ratio: 3/2; }
.resize-frame { position: relative; width: var(--demo-width,var(--story-width,100%)); height: 100%; isolation: isolate; }
.story-visual .resize-frame { margin-inline:auto; }
.browser-face { display: block; position: relative; height: 100%; color: #14271f; text-decoration: none; }
.studio-screen { container: studio / inline-size; isolation: isolate; position: relative; height: 100%; overflow: clip; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; border-radius: .65rem; border: 1px solid #aac7bc; background: #f1f1e6; }
.studio-chrome { display: block; padding-top: 1.1cqw; background: #172729; color: #e3ede7; font: 500 clamp(8px,1.65cqw,11px)/1.1 Consolas,monospace; }
.studio-tab { display: flex; align-items: center; gap: .85cqw; width: max-content; min-width: 28%; background: #2a3d40; margin-left: 1.7cqw; padding: 1.1cqw 1.7cqw .65cqw; border-radius: 5px 5px 0 0; }
.studio-tab i { width: .8em; height: .8em; border-radius: 2px; background: #aeeab9; }
.studio-tab span { margin-left: auto; padding-left: .8em; color: #b0c3bb; }
.studio-toolbar { display: flex; align-items: center; gap: 2cqw; background: #2a3d40; padding: .8cqw 2.4cqw; }
.chrome-arrows { font: 500 max(10px,2.6cqw)/1 system-ui; }
.chrome-address { flex: 1; padding: .65cqw 1.8cqw; border-radius: 1em; background: #1b2c30; color: #c8dad0; }
.chrome-address i { display: inline-block; width: .7em; height: .65em; margin-right: .8em; border: 1px solid; border-radius: 1px; position: relative; }
.chrome-address i::before { content: ""; position: absolute; left: 15%; right: 15%; top: -.5em; height: .5em; border: 1px solid; border-bottom: 0; border-radius: 1em 1em 0 0; }
.studio-masthead, .studio-colophon { display:flex; align-items:center; justify-content:space-between; gap:2cqw; margin-inline:4.6cqw; color:#19382d; }
.studio-masthead { padding:2.7cqw 0 1.9cqw; border-bottom:1px solid #a0b4a2; }
.studio-masthead b { font:750 4.3cqw/1 system-ui,sans-serif; letter-spacing:-.07em; }
.studio-masthead em { color:#326d54; font-style:normal; }
.studio-masthead span, .studio-colophon { font:600 max(6px,1.65cqw)/1.15 Consolas,monospace; }
.studio-cover { display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1fr); gap:2cqw; min-height:0; margin:2.4cqw 4.6cqw; }
.studio-title { display:flex; align-items:center; min-width:0; color:#163b2f; }
.studio-lettering { position:relative; display:block; font:600 8.4cqw/.92 Georgia,serif; letter-spacing:-.07em; }
.studio-lettering em { font-weight:400; color:#35694e; }
.studio-lettering > span { display:block; }
.studio-lettering > .roll-previous { display:none; }
.studio-art { position:relative; isolation:isolate; display:grid; place-items:center; min-height:0; overflow:hidden; background-color:#12392f;
  background-image:repeating-radial-gradient(ellipse farthest-corner at 118% 110%,transparent 0 5.3%,#b3ebbc28 5.5% 5.8%,transparent 6%),radial-gradient(at 90% 14%,#77ae87,transparent 51%),linear-gradient(135deg,#0d312c,#1e5f48 70%,#578364); }
.cursor-frame { position:relative; width:60%; max-height:84%; aspect-ratio:1; transform:rotate(-12deg); border:1px solid #e3ffe377; }
.cursor-frame::before, .cursor-frame::after { content:""; position:absolute; inset:-2px; background:linear-gradient(#edffde 0 0) left top / 4px 4px no-repeat,linear-gradient(#edffde 0 0) right bottom / 4px 4px no-repeat; }
.cursor-frame::after { transform:scaleX(-1); }
.studio-cursor { position:absolute; inset:5%; filter:drop-shadow(.5cqw 1.1cqw .45cqw #07251bc9); }
.studio-cursor i { position:absolute; inset:0; }
.studio-cursor i:first-child { clip-path:polygon(6% 3%,95% 46%,62% 54%,88% 87%,74% 98%,47% 64%,23% 90%); background:linear-gradient(125deg,#407c58,#163c31 80%); }
.studio-cursor i:nth-child(2) { clip-path:polygon(6% 3%,93% 42%,59% 51%,85% 84%,73% 92%,46% 59%,22% 85%); background:linear-gradient(112deg,#f0ffcd 4%,#c0fbc4 34%,#69c59e 65%,#4a9a7c); }
.studio-cursor i:last-child { clip-path:polygon(6% 3%,93% 42%,59% 51%); background:linear-gradient(155deg,#fffde0 4%,#d7f9b3 55%,#9ae3ac); }
.studio-colophon { padding:1.6cqw 0 2.1cqw; border-top:1px solid #a0b4a2; }
.studio-colophon i { height:1px; flex:1; background:linear-gradient(90deg,#8faa9460,transparent); }
.demo-scene { position:absolute; z-index:2; grid-area:2/1/5/2; inset:0; display:flex; flex-direction:column; overflow:hidden; visibility:hidden; opacity:0; pointer-events:none; }
.map-scene { background:#e5eadd; }
.map-search { position:absolute; z-index:1; top:5%; left:4%; display:flex; align-items:center; gap:1.5cqw; max-width:90%; padding:1.6cqw 2.6cqw; border:1px solid #bdcaba; border-radius:3cqw; background:#fffef7; color:#213e30; font:600 clamp(8px,2.3cqw,15px)/1.15 system-ui; }
.map-search i { position:relative; width:.95em; height:.95em; border:.13em solid #2c5d43; border-radius:100%; }
.map-search i::after { content:""; position:absolute; width:.55em; height:.13em; background:#2c5d43; top:90%; left:68%; transform:rotate(45deg); }
.street-map { width:100%; height:100%; min-height:0; }
.map-caption { position:absolute; inset:auto 0 0; display:flex; align-items:center; justify-content:space-between; padding:1.6cqw 3cqw; gap:.35em; background:#fcfcf0ed; color:#35513f; font:500 clamp(8px,2.1cqw,13px)/1.1 system-ui; }
.map-caption b { font-weight:700; color:#213c30; }
@media (prefers-reduced-motion:no-preference) {
  [data-pinned] [data-chapter="seo"] .map-lens { animation:search-streets 1.75s cubic-bezier(.32,.05,.26,1) both; }
  [data-pinned] [data-chapter="seo"] .lens-map { animation:magnify-streets 1.75s cubic-bezier(.32,.05,.26,1) both; }
  @keyframes search-streets {
    0% { transform:translate(140px,140px); } 48% { transform:translate(213px,85px); }
    76% { transform:translate(279px,132px); } 100% { transform:translate(315px,111px); }
  }
  @keyframes magnify-streets {
    0% { transform:scale(1.38) translate(-140px,-140px); } 48% { transform:scale(1.38) translate(-213px,-85px); }
    76% { transform:scale(1.38) translate(-279px,-132px); } 100% { transform:scale(1.38) translate(-315px,-111px); }
  }
}
.growth-scene { padding:4cqw 4.4cqw 2.8cqw; background:#f2f4e9; color:#173b2a; }
.chart-heading { display:flex; align-items:start; justify-content:space-between; gap:1cqw; }
.chart-heading small,.chart-heading span,.chart-axis { font:550 clamp(7px,1.8cqw,12px)/1.2 system-ui; }
.chart-heading small { display:block; letter-spacing:.06em; text-transform:uppercase; }
.chart-heading strong { display:block; margin:.45cqw 0 0; font:500 7.8cqw/1.1 Georgia,serif; letter-spacing:-.05em; }
.chart-heading span { border:1px solid #b3c7b6; border-radius:1em; padding:.5em .7em; }
.revenue-plot { flex:1 1 0; min-height:0; width:100%; margin-top:2cqw; }
.chart-axis { display:flex; justify-content:space-between; padding:1.2cqw 0 0; }
.resize-handle { position: absolute; z-index: 2; right: -21px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 48px; padding: 0; border: 0; background: transparent; cursor: ew-resize; touch-action: pan-y pinch-zoom; user-select: none; }
.resize-handle:focus-visible { outline: 3px solid #76d6a7; border-radius: 12px; outline-offset: 1px; }
.resize-handle:focus-visible::after { content:"↔"; border-radius:.4rem; background:#172f29; color:#effff5; padding:.3rem; }
.resize-handle[hidden] { display: none; }
@container studio (max-width:285px) {
  .chrome-arrows { display:none; }
  .studio-masthead { padding:4cqw 0; }
  .studio-masthead b { font-size:7.2cqw; }
  .studio-masthead span, .studio-colophon { font-size:max(5px,2.75cqw); }
  .studio-cover { grid-template: auto minmax(0,1fr) / minmax(0,1fr); margin:4cqw 4.6cqw; gap:4cqw; }
  .studio-lettering { font-size:12cqw; }
  .cursor-frame { width:auto; height:72%; max-width:72%; }
  .studio-colophon { padding:3.5cqw 0; }
}
@media (prefers-reduced-motion:no-preference) {
  html[data-locale-entry]:not([data-still]) .studio-lettering .roll-previous { position:absolute; inset:0; display:block; animation:sample-out .3s .45s both; }
  html[data-locale-entry]:not([data-still]) .studio-lettering .roll-current { animation:sample-in .3s .45s both; }
  @keyframes studio-set { from { opacity:0; transform:translateY(6%); } }
  html:not([data-still]) .studio-title { animation:studio-set .45s .2s both; }
  html:not([data-still]) .studio-cursor { animation:studio-set .8s .48s both; }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  html:not([data-still]) .studio-art[data-lit]::after { content:""; pointer-events:none; position:absolute; inset:0; background:radial-gradient(circle at var(--light-x) var(--light-y),#dcffde38,transparent 45%); }
}
@media (max-width:800px) and (orientation:portrait) {
  .story-grid { grid-template:"visual" auto "deck" auto / minmax(0,1fr); row-gap:1.25rem; }
  .story-deck { padding-top:0; }
  .story-visual { position:relative; top:auto; width:min(100%,32rem); justify-self:center; }
  .story-panel h1,.story-panel h2 { font-size:clamp(2.35rem,8.7vw,4rem); }
  .story-panel .lede { font-size:clamp(1rem,3.3vw,1.25rem); line-height:1.43; }
  [data-pinned] .story-grid { grid-template:"deck" auto "visual" auto / minmax(0,1fr); }
  [data-pinned] .story-visual { width:min(100%,34rem,calc((100svh - var(--story-header-size))* .67)); }
  .story-actions { column-gap:.7rem; }
  .story-actions .button,.story-actions .text-link { font-size:.87rem; }
}
@media (max-height:650px) {
  .story-panel h1,.story-panel h2 { font-size:clamp(2rem,4.5vw,3.7rem); }
  .story-panel .lede { font-size:1rem; line-height:1.4; margin-top:.7rem; }
  [data-pinned] .story-grid { row-gap:.65rem; padding-block:1.25rem; }
}
