/* Desktop framing (owner, 2026-10-26): each section's principal view fits the space under the fixed header at ANY desktop
   width and height, during ordinary free scrolling. Fluid limits only: media keep their aspect ratio (narrower rather than
   cropped or stretched), the Contact title scales with height as well as width, long sections (two Work rows, AI outputs)
   still continue below. No snap, no page scaling, no fixed heights. Phones and small tablets (<=768px) are untouched.
   --ao3-frame-h: the viewport height left under the floating ticket, the same offset the anchors use (scroll-flow.css). */
@layer ao3-site-ink {
@media (min-width:769px) {
:root{--ao3-frame-h:calc(100vh - var(--tktop,14px) - var(--tkh,100px) - 24px);--ao3-col:min(81vw, 1290px)}   /* the shared desktop content column (owner 2026-10-26): AI, Services, closing panels and footer all align to it */
@supports (height:100svh){:root{--ao3-frame-h:calc(100svh - var(--tktop,14px) - var(--tkh,100px) - 24px)}}

/* BRANDING: heading, 16:9 canvas and the process controls under it form one view: the heading with its gaps and the
   process row take ~185px (measured outer heights); the label row and caption may sit just outside */
body.ao3-original-palette #branding{--brand-col:min(100%, calc((var(--ao3-frame-h) - 185px) * 16 / 9))}
body.ao3-original-palette #branding :is(.brand-study-top,.brand-canvas,.brand-process,.brand-study-caption){width:var(--brand-col)!important;max-width:100%!important;margin-inline:auto!important;box-sizing:border-box!important}

/* SERVICES: the stage keeps its width-to-height proportion (about 2.31:1 at its full size) and leaves room for the heading,
   subtitle and tabs (~290px with their gaps, measured); the tabs keep the stage's width */
body.ao3-original-palette #craft{--svc-h:clamp(300px, min(38vw, calc(var(--ao3-frame-h) - 292px)), 760px)}
body.ao3-original-palette #craft .svc-media,body.ao3-original-palette #craft .svc-ai .svc-media{height:var(--svc-h)!important}
body.ao3-original-palette #craft{--svc-hh:min(var(--svc-h), calc(var(--ao3-col) / 2.31))}   /* never taller than the column's 2.31:1 */
body.ao3-original-palette #craft .svc-media,body.ao3-original-palette #craft .svc-ai .svc-media{height:var(--svc-hh)!important}
body.ao3-original-palette #craft :is(.svc-stage,.svc-tabs){width:min(var(--ao3-col), calc(var(--svc-hh) * 2.6))!important;margin-inline:auto!important}   /* the shared column; on short screens narrower, at most 2.6:1 */

/* AI composition (owner 2026-10-26): the prompt panel and the two-column outputs share one width that follows the page
   rhythm of the sections around it (92% of the content, at most 1290px): cards ~540px at 1366, ~630px at 1920+ */
body.ao3-original-palette #ai .ai-lab-grid{max-width:var(--ao3-col)!important;margin-inline:auto!important}
/* the prompt panel matches the output grid's width and sits centred over it, with less empty height (owner 2026-10-26) */
body.ao3-original-palette #ai .ao3-composer{width:100%!important;max-width:var(--ao3-col)!important;margin-inline:auto!important;box-sizing:border-box!important}
body.ao3-original-palette #ai .ao3-composer-top{margin-bottom:12px!important}
body.ao3-original-palette #ai .ao3-compose-submit{min-height:56px!important}
/* AI rhythm against its neighbours (owner 2026-10-26): same heading-to-content gap as Services/Branding, a smaller-scale
   prompt panel and tighter card-row spacing; the approved card size is unchanged */
body.ao3-original-palette #ai .sec-top{margin-bottom:28px!important}
body.ao3-original-palette #ai .ao3-composer{padding:14px 18px!important;margin-bottom:24px!important}
body.ao3-original-palette #ai .ao3-compose-text{font-size:20px!important;min-height:90px!important}   /* the typing space scales with the text (108px at 24px) */
body.ao3-original-palette #ai .ao3-compose-grid{grid-template-columns:72px minmax(0,1fr) 200px!important;gap:20px!important}   /* the CTA's DISCOVER A NEW WORLD line has room */
body.ao3-original-palette #ai .ao3-reference-tile{width:72px!important;height:72px!important}
body.ao3-original-palette #ai .ai-lab-grid{row-gap:24px!important}

/* SERVICES label: the red OUR SERVICES kicker 15% larger on desktop (owner 2026-10-26; .65rem -> .7475rem, tracking in em) */
body.ao3-original-palette #craft .svc-heading-kicker{font-size:.7475rem!important}

/* CONTACT: the title (about 4.15x its font size tall) and the project CTA (~190px with its gap and the eyebrow) form one view */
body.ao3-original-palette #contact .contact-title{font-size:clamp(48px, min(10.5cqw, calc((var(--ao3-frame-h) - 190px) / 4.15), calc(var(--ao3-col) / 8.3)), 192px)!important}   /* IMAGINE at most ~85% of the column */

/* CLOSING (owner 2026-10-26): Let's Build and Careers span the site gutter (the wide boxes of the earlier layout), on the same
   edges as the footer's logo, FOLLOW US and icons; title -> CTA 32px, CTA -> Careers 24px, Careers -> footer 64px */
body.ao3-original-palette #contact .contact-content,body.ao3-original-palette #careers .careers-panel{width:calc(100% - 2 * var(--ao3-title-gutter, 112px))!important;max-width:none!important;margin-inline:auto!important}
body.ao3-original-palette #contact .contact-content{margin-top:32px!important}
body.ao3-original-palette #contact{padding-bottom:12px!important}
body.ao3-original-palette #careers{padding-top:12px!important;padding-bottom:64px!important}   /* the section divider sits midway in the 24px gap */
}
}
