/* Shared spatial system for public editorial and product pages. */
body[data-page] { background:#F7F4EE; }
body[data-page] main { position:relative; isolation:isolate; }
body[data-page] main::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:radial-gradient(ellipse at 78% 5%,rgba(200,150,10,.10),transparent 32%),radial-gradient(ellipse at 18% 30%,rgba(12,107,102,.08),transparent 32%); }
body[data-page] .site-header { background:rgba(247,244,238,.92); backdrop-filter:blur(22px); border-bottom:1px solid #E4DDD2; }
body[data-page] .nav-links a.active { border-radius:8px; }
body[data-page] .page-hero { position:relative; overflow:visible; padding:clamp(48px,7vw,96px) 0 clamp(44px,6vw,88px); border:0; perspective:1400px; }
body[data-page] .page-hero > .container { position:relative; z-index:1; min-height:0; padding:0; box-sizing:border-box; border:0; border-radius:0; background:transparent; box-shadow:none; }
body[data-page] .page-hero > .container::before { content:none; }
body[data-page] .page-hero h1 { max-width:18ch; font-size:clamp(2.4rem,4vw,3.5rem); line-height:1.08; letter-spacing:-.03em; }
body[data-page] .page-hero p { max-width:55ch; }
body[data-page] .page-hero .breadcrumbs { margin-bottom:24px; }
body[data-page] .spatial-page-nav { position:relative; z-index:2; display:flex; gap:6px; flex-wrap:wrap; width:fit-content; max-width:calc(100% - 56px); margin:8px auto 0; padding:8px; border:1px solid #E4DDD2; border-radius:18px; background:#ffffff; box-shadow:0 12px 32px rgba(22,26,32,.06); }
body[data-page] .spatial-page-nav a { display:inline-flex; align-items:center; min-height:44px; box-sizing:border-box; padding:8px 14px; border-radius:11px; color:#1C1915; text-decoration:none; font-size:.82rem; font-weight:600; }
body[data-page] .spatial-page-nav a:hover,body[data-page] .spatial-page-nav a:focus-visible { background:rgba(205,203,202,.14); outline:2px solid #0A0A0A; outline-offset:-2px; }
body[data-page] .section { position:relative; }
body[data-page] .section-head h2 { letter-spacing:-.025em; }
body[data-page] .stage { border-radius:24px; overflow:hidden; border-color:#E4DDD2; background:#ffffff; }
body[data-page] .stage-tabs button { min-height:44px; }
body[data-page] .grid-2 > .card,body[data-page] .grid-3 > .card,body[data-page] .grid-4 > .card { border-radius:18px; background:#ffffff; border-color:#E4DDD2; }
body[data-page] .section[id],body[data-page] .section h2[id] { scroll-margin-top:100px; }
@media(max-width:760px) { body[data-page] .page-hero { padding:28px 0 44px; } body[data-page] .page-hero > .container { min-height:0; padding:0; border-radius:0; } body[data-page] .page-hero > .container::before { content:none; } body[data-page] .page-hero h1 { font-size:clamp(2.1rem,9vw,2.8rem); max-width:none; } body[data-page] .spatial-page-nav { max-width:calc(100% - 40px); margin-top:8px; } }
@media(prefers-reduced-transparency:reduce) { body[data-page] .site-header,body[data-page] .page-hero > .container,body[data-page] .spatial-page-nav,body[data-page] .stage,body[data-page] .grid-2 > .card,body[data-page] .grid-3 > .card,body[data-page] .grid-4 > .card { background:#ffffff; backdrop-filter:none; } }
@media(forced-colors:active) { body[data-page] .site-header,body[data-page] .page-hero > .container,body[data-page] .spatial-page-nav,body[data-page] .stage,body[data-page] .grid-2 > .card,body[data-page] .grid-3 > .card,body[data-page] .grid-4 > .card { background:Canvas; color:CanvasText; border-color:CanvasText; box-shadow:none; } body[data-page] .spatial-page-nav a { color:LinkText; } body[data-page] .page-hero > .container::before { display:none; } }
/* Keep long titles readable inside their own plane. */
body[data-page="home"] .hero-grid > .reveal:first-child h1 { font-size:clamp(2.7rem,4.8vw,4.35rem); max-width:14ch; overflow-wrap:normal; }
body[data-page] .page-hero h1 { font-size:clamp(2.4rem,4vw,3.5rem); }
body[data-page] .spatial-page-nav a { max-width:240px; line-height:1.25; }
@media(min-width:991px) and (prefers-reduced-motion:no-preference) {
 body[data-page="home"] .home-doors { transform-style:preserve-3d; }
 body[data-page="home"] .home-door:hover,body[data-page="home"] .home-door:focus-visible { transform:translateY(-6px); }
}
@media(max-width:600px) { body[data-page="home"] .hero-grid > .reveal:first-child h1 { font-size:clamp(2.3rem,10vw,3.2rem); } body[data-page] .page-hero h1 { font-size:clamp(2.1rem,9vw,2.8rem); } }
/* Fr8Max's compact broker-only story uses the same depth language without changing its copy or workflow. */
body[data-page="businessbook"] .fr8-hero { padding:48px 0 28px; border:0; overflow:visible; }
body[data-page="businessbook"] .fr8-hero-inner { box-sizing:border-box; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
body[data-page="businessbook"] .fr8-flow { border-radius:16px; border-color:#E4DDD2; background:#ffffff; }
body[data-page="businessbook"] .fr8-tool { border-color:rgba(205,203,202,.25); }
@media(max-width:760px) { body[data-page="businessbook"] .fr8-hero { padding:28px 0 12px; } body[data-page="businessbook"] .fr8-hero-inner { padding:26px; border-radius:20px; } }
@media(prefers-reduced-transparency:reduce) { body[data-page="businessbook"] .fr8-hero-inner,body[data-page="businessbook"] .fr8-flow { background:#ffffff; backdrop-filter:none; } }
@media(forced-colors:active) { body[data-page="businessbook"] .fr8-hero-inner,body[data-page="businessbook"] .fr8-flow { background:Canvas; border-color:CanvasText; box-shadow:none; } }
body[data-page] .page-hero h1 { font-size:clamp(2.24rem,4.8vw,4.16rem); line-height:.92; letter-spacing:-.04em; max-width:14ch; }
