/* Type system and vertical rhythm, 2026-10-29. Tokens live in style.css
   :root (--fs-*, --lh-*, --tr-*, --sp-*, --section-y, --heading-gap);
   viewport-fit.css (loaded after this file) overrides a few of them for short
   desktop screens. This layer maps real page content onto the tokens — one
   size per role instead of the ~70 ad-hoc sizes the sections had grown.
   Display sizes are the brand scale (BRAND_GUIDE §3 = tailwind display-sm/
   md/lg), so the homepage and the Next.js pages share one set of headlines:
   section h2 = Display S, closing statement = Display M.
   Not touched: mock product UIs (chat, ad, browser, clinic previews imitate
   other products at their own scale). */

/* Section spacing */
.section,.agency-rest .section{padding-top:var(--section-y);padding-bottom:var(--section-y)}
.service-web,.service-split{padding-top:var(--section-y)!important;padding-bottom:var(--section-y)!important}

/* Eyebrow: 12px uppercase in sand, brand tracking .2em, 12px to the title.
   Sand, not amber: the accent word is the only amber in a heading block
   (BRAND_GUIDE §3; the June 2026 homepage did the same). */
.eyebrow,.agency-rest .eyebrow,.catalog-intro .eyebrow,#package-dialog .eyebrow,.scene-copy .eyebrow{font-size:var(--fs-eyebrow);line-height:var(--lh-ui);letter-spacing:var(--tr-eyebrow);font-weight:500;color:var(--sand);margin-bottom:var(--sp-3)}
.scene-copy>p:not(.eyebrow){line-height:var(--lh-body)}

/* Section titles: every h2 on the page shares one size */
.section h2,.agency-rest h2,.service-heading h2,.service-copy h2,.lead-section h2,.section-heading h2{font-size:var(--fs-display-s);line-height:var(--lh-display-s);letter-spacing:var(--tr-display-s);font-weight:500}
.service-copy h2,.lead-section h2{margin-bottom:var(--sp-5)}
.agency-close h2{font-size:var(--fs-hero);line-height:var(--lh-display-m);letter-spacing:var(--tr-display-m);font-weight:500}

/* Hero journey headlines. The four scenes take turns in the same slot, so
   they share one size, --fs-hero: the largest on the page (the copy column
   caps it at 60px), with section titles a clear step below.
   (They used to run 61–66px, and 78px on wide screens, each set per scene.)
   [data-copy] lifts specificity over the per-scene rules in aeo.css,
   campaign.css, agency-rest.css and style.css. */
.scene-copy[data-copy] h1,.scene-copy[data-copy] h2{font-size:var(--fs-hero);line-height:var(--lh-display-s);letter-spacing:var(--tr-display-s);font-weight:500}
/* Phones: the copy shares the screen with the scene panel below it, so the
   headline steps down from Display S (40px min) to the size the scenes were
   built for, still one size for all four. At 40px the copy ran into the panel. */
@media(max-width:700px){.scene-copy[data-copy] h1,.scene-copy[data-copy] h2{font-size:32px;line-height:1.06}}
@media(max-width:700px) and (max-height:740px){.scene-copy[data-copy] h1,.scene-copy[data-copy] h2{font-size:26px;line-height:1.04}}

/* Accent phrase: ember, upright, same weight as the line it sits in.
   The synthesised italic (Bricolage ships none) from 29 Oct was reverted on
   30 Oct at the founder's request. The wordmark's "AI" keeps its italic. */
.scene-copy h1 em,.scene-copy h2 em,.section h2 em,.agency-rest h2 em,.service-heading h2 em,.service-copy h2 em,.lead-section h2 em,.section-heading h2 em{font-style:italic;font-weight:300;color:var(--highlight)}

/* Section header block: heading → content */
.section-heading{margin-bottom:var(--heading-gap);gap:var(--sp-7)}
.section-heading h2{margin-bottom:0}
.section-heading>p,.agency-rest .section-heading>p{font-size:var(--fs-body);line-height:var(--lh-body);max-width:36ch}

/* Lead copy: title → lead 24px, lead → action 32px */
.service-intro>p,.service-copy>p:not(.eyebrow):not(.service-caption),.lead-section>div>p:not(.eyebrow),.studio-layout p,.catalog-intro>p:not(.eyebrow){font-size:var(--fs-lead);line-height:var(--lh-lead);max-width:var(--measure)}

/* Price line */
.service-price{margin:var(--sp-5) 0!important;font-size:var(--fs-sm)}
.service-price strong{font-size:var(--fs-title);letter-spacing:var(--tr-title);font-variant-numeric:tabular-nums}

/* Small print */
.service-caption,.agency-close>p:not(.eyebrow),.agency-close>small,.project-hero figcaption{font-size:var(--fs-xs);line-height:1.6}

/* Actions */
.primary{font-size:var(--fs-sm);letter-spacing:0}
.text-link,.agency-rest .text-link,.service-actions .text-link,.project-caption>span,.template-actions a,.back-link{font-size:var(--fs-sm)}
.service-copy .primary{margin-top:var(--sp-2)}
.work-section-actions{gap:var(--sp-6);margin-top:var(--sp-6);align-items:baseline}

/* Cards (outside the gallery, e.g. /our-work and the template cards) */
.project-caption small,.work-caption small{font-size:var(--fs-eyebrow);letter-spacing:var(--tr-eyebrow)}
.project-caption h3,.work-caption h3,.service-template-label h3{font-size:var(--fs-h3);line-height:var(--lh-title);letter-spacing:var(--tr-title)}
.project-caption p,.work-caption p{font-size:var(--fs-sm);line-height:1.5}
.service-tags li{font-size:var(--fs-micro)}

/* FAQ */
/* Questions sit at lead size: a list must not compete with the section title */
.faq-list summary{font-size:clamp(17px,1.35vw,20px);line-height:1.35;letter-spacing:-.005em;font-weight:500}
.faq-list p{font-size:var(--fs-body);line-height:var(--lh-body);max-width:62ch}

/* Header and footer */
.site-header nav a,.site-services summary{font-size:var(--fs-nav)}
.site-footer h4{font-size:var(--fs-micro);letter-spacing:var(--tr-eyebrow)}
.site-footer .footer-hq small{font-size:var(--fs-micro)}
.site-footer .footer-bottom,.site-footer .footer-hq{font-size:var(--fs-xs)}
.site-footer li a,.site-footer .footer-brand>p{font-size:var(--fs-sm)}

/* Buttons — the June 2026 system, restored. Primary is a cream pill that warms
   to ember-glow on hover; the secondary action beside it is an outline pill.
   Amber stays the accent (italic word, hover, focus), not the button fill.
   Standalone inline links keep the underlined text-link style. */
.primary,.scene-copy .primary,.lead-section .primary,.agency-close .primary{background:var(--cream);color:var(--night);border:1px solid var(--cream);border-radius:999px;font-weight:600;font-size:var(--fs-sm);min-height:48px;padding:13px 22px;gap:16px;transform:none;transition:background .3s,border-color .3s,color .3s}
.primary:hover,.scene-copy .primary:hover,.lead-section .primary:hover,.agency-close .primary:hover{background:var(--highlight);border-color:var(--highlight);color:var(--night);transform:none}
.primary:focus-visible,.text-link:focus-visible{outline:2px solid var(--amber);outline-offset:3px}
.agency-close .primary{min-height:52px;padding:15px 26px}
.service-actions .text-link,.agency-close .text-link,.work-section-actions .all-work-link{min-height:48px;padding:13px 22px;gap:14px;border:1px solid color-mix(in srgb,var(--cream) 16.1%,transparent);border-radius:999px;background:color-mix(in srgb,var(--surface) 40%,transparent);color:var(--cream);font-weight:500;text-decoration:none;transition:border-color .3s,background .3s,color .3s}
.service-actions .text-link:hover,.agency-close .text-link:hover,.work-section-actions .all-work-link:hover{border-color:rgba(255,139,66,.6);background:color-mix(in srgb,var(--amber) 10%,transparent);color:var(--highlight)}
.work-section-actions{align-items:center}


/* Corner radii, 2026-10-30: tight, so corners echo Bricolage's soft terminals
   without becoming the shape you notice. Panels 12, cards 8, fields and nested
   items 6, tags 4 (tokens in style.css). Buttons are the one pill shape, so
   actions read as actions. Circles (avatars, WhatsApp, theme switch) stay round. */
.work-gallery .work-grid .work-card,.work-gallery .work-grid .work-card:last-child,.service-template,.store-design-preview{border-radius:var(--r-card)}
.delivery-console,.lead-section form{border-radius:var(--r-panel)}
.lead-section input,.lead-section select,.lead-section textarea{border-radius:var(--r-input)}

/* Template cards sit on one line; the raised middle card read as misalignment */
.service-template:nth-child(2){margin-top:0}

/* Film grain — brand signature element (BRAND_GUIDE §4): ~5% fractal noise,
   soft-light, over everything. Static, so it costs nothing at scroll time. */
body::after{content:"";position:fixed;inset:0;z-index:2147483000;pointer-events:none;opacity:.05;mix-blend-mode:soft-light;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:200px 200px}

/* Footer: small labels in ash, quieter than the links they head */
.site-footer h4{color:var(--whisper);font-weight:500}

/* Form labels: June 2026 style — small uppercase sand, wide tracking. Fields
   inherit font from the label, so reset their case, size and tracking. */
.lead-section label{font-size:var(--fs-eyebrow);text-transform:uppercase;letter-spacing:var(--tr-eyebrow);color:var(--sand);font-weight:500;line-height:var(--lh-ui)}
.lead-section label small{text-transform:none;letter-spacing:0;font-size:var(--fs-eyebrow);color:var(--whisper)}
.lead-section input,.lead-section select,.lead-section textarea{text-transform:none;letter-spacing:0;font-size:var(--fs-body);font-weight:400;color:var(--cream);margin-top:var(--sp-2)}

/* .all-work-link carries a 30px top margin from catalog layouts; in the
   paired actions row it knocked the pill out of line with its partner. */
.work-section-actions .all-work-link{margin-top:0}

/* Radius scale applied to everything that grew its own value. Mock product
   UIs follow it too: next to 8px cards their 15–24px corners read as errors. */
.delivery-console,.lead-section form,.native-chat,.native-ad,.aeo-answer,.search-example,.google-ad-example,.social-example,.portal-demo,#package-dialog,dialog,.search-panel,.ad-panel,.enquiry-panel,#enquiry-panel{border-radius:var(--r-panel)}
.work-gallery .work-grid .work-card,.work-gallery .work-grid .work-card:last-child,.service-template,.store-design-preview,.placement,.offer-card,.template-card,.catalog-grid .work-card,.home-projects .work-card,.project-hero .hero-preview,.platform-orbit img,.site-service-menu,.concept-art{border-radius:var(--r-card)}
.delivery-tabs button,.site-service-menu>a,.aeo-citation,.native-source,.native-prompt,.native-claude .native-prompt,.native-google .native-prompt,.chat-composer,.native-composer,.native-claude .native-composer,.search-query,.google-ad-search,.search-box,.native-google-query,.tiny-browser,.scope-box,.work-stages>div,.real-template-preview,.feedback-demo textarea,.design-image{border-radius:var(--r-input)}
.aeo-question,.search-question,.question-pill{border-radius:var(--r-input) var(--r-input) 2px var(--r-input)}
.is-google .search-question{border-radius:var(--r-input)}
.task-list span,.art-chip,.answer-preview b,.agent-route span,.business-citation,.design-options button,.work-art>span,.ad-bottom>span,.campaign-destination>span,.site-service-menu>a>span,.social-cta,.reel-follow,.facebook-cta strong,.native-ad-cta b,.media-play{border-radius:var(--r-chip)}
/* Controls that select rather than act: filters, tabs, segmented switches */
.work-gallery .work-filters button,.service-switch button,.catalog-filters button,.chapter-nav,.offer-industries{border-radius:var(--r-input)}
.chapter-nav button,.offer-industries button{border-radius:var(--r-chip)}

/* Page rhythm and hierarchy, 2026-10-30 (homepage review).
   - Hero 40–60px > section titles 30–48px; the closing line matches the hero.
     They were all 60px, and on phones the hero was smaller than the sections.
   - One section padding (--section-y) and one divider: a hairline above every
     section after the first. Padding ran 45/54/72px and dividers sat above
     some sections and below others.
   - Nothing real under 12px: price notes were 9px, the strip 11px (8px on
     phones), project labels 11px. Descriptions move from ash (3.3:1) to sand. */
.agency-rest>section{border-top:1px solid var(--line)}
.agency-rest>#selected-work{border-top:0}
.service-web,.service-split{border-bottom:0}
.scene-copy .price-note,.scene-copy .opening-note{font-size:var(--fs-eyebrow);line-height:1.5}
.agency-rest .agency-strip{font-size:var(--fs-eyebrow)}
.work-gallery .work-grid .project-caption small{font-size:var(--fs-eyebrow)}
.work-gallery .work-grid .project-caption p{color:var(--sand)}
/* A caption, not buttons: the agent route was drawn as two bordered chips */
.agent-route span{padding:0;border:0;color:var(--sand);font-size:var(--fs-eyebrow)}
.agent-route span:first-child{color:var(--highlight)}
/* Brand focus ring everywhere (was the browser's blue) */
:is(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--amber);outline-offset:3px}
/* FAQ questions are the only hit area: 44px tall */
.faq-list summary{min-height:44px;align-items:center}
/* Narrow screens: older per-scene rules set hero labels to 8–10px and the
   lead to 11px; the closing line must not outsize the hero (32px). */
@media(max-width:1000px){.scene-copy .eyebrow{font-size:var(--fs-eyebrow)}.scene-copy>p:not(.eyebrow):not(.price-note):not(.opening-note){font-size:14px;line-height:1.55}}
@media(max-width:700px){.agency-close h2{font-size:32px}}
@media(max-width:700px) and (max-height:740px){.scene-copy[data-copy] h1,.scene-copy[data-copy] h2{font-size:28px}.agency-rest h2,.section h2,.section-heading h2,.service-heading h2,.service-copy h2,.lead-section h2{font-size:28px}.agency-close h2{font-size:28px}}
/* Per-scene label rules (aeo.css, campaign.css, lead-capture.css) set 10px */
.scene-copy[data-copy] .eyebrow{font-size:var(--fs-eyebrow);letter-spacing:var(--tr-eyebrow)}
@media(max-width:700px){.work-gallery .work-grid .is-small .project-caption small{font-size:var(--fs-eyebrow);letter-spacing:.08em}}

/* Page flow, 2026-10-30: hero → client strip → website (with the bespoke
   note) → search → ads → work → how it works → FAQ → form as the finale.
   The strip names clients (proof at a glance, each links to its project);
   the closing statement now heads the form instead of a separate section
   whose buttons scrolled back up to it. */
.client-strip{flex-wrap:wrap;justify-content:center;gap:var(--sp-3) var(--sp-5);text-transform:uppercase;letter-spacing:var(--tr-eyebrow)}
.client-strip .strip-label{color:var(--whisper);margin-right:var(--sp-3)}
.client-strip a{color:var(--sand);text-decoration:none;transition:color .3s}
.client-strip a:hover{color:var(--highlight)}
.client-strip .strip-star{font-size:10px}
.studio-note{margin-top:var(--sp-8);padding-top:var(--sp-8);border-top:1px solid var(--line);align-items:start}
.studio-note .eyebrow{margin-bottom:var(--sp-3)}
.agency-rest .studio-note h3{margin:0;font-size:var(--fs-title);line-height:var(--lh-title);letter-spacing:var(--tr-title);font-weight:500;color:var(--cream)}
.studio-note h3 em{font-style:italic;font-weight:300;color:var(--highlight)}
.studio-note p{margin:0 0 var(--sp-3)}
.lead-finale{background:radial-gradient(ellipse at 25% 100%,color-mix(in srgb,var(--amber) 6%,transparent),transparent 60%)}
.agency-rest .lead-finale h2{font-size:var(--fs-hero);line-height:var(--lh-display-m);letter-spacing:var(--tr-display-m)}
.lead-reassure{display:block;margin-top:var(--sp-5);font-size:var(--fs-xs);line-height:1.6;color:var(--sand)}
@media(max-width:700px){.agency-rest .lead-finale h2{font-size:32px}.studio-note{margin-top:var(--sp-7);padding-top:var(--sp-7)}}
@media(max-width:700px) and (max-height:740px){.agency-rest .lead-finale h2{font-size:28px}}
.studio-note .eyebrow{display:block}
/* Phones: the separators dangled at line ends once the names wrapped */
@media(max-width:700px){.client-strip{gap:var(--sp-2) var(--sp-5)}.client-strip .strip-star{display:none}.client-strip .strip-label{flex-basis:100%;text-align:center;margin:0 0 var(--sp-1)}}
