/* =====================================================================
   OAKCLICK · base (loop 3, brand v2 "Lawn-Sign Loud")
   Tokens live in brand-tokens.css (never forked). No gradients anywhere:
   flat fields, 2px ink outlines, hard offset shadows, die-cut shapes.
   ===================================================================== */
:root { --ic-blk: var(--c-loud); --ic-ln: var(--c-ink); --hdr-h: 64px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 104px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--c-paper); color: var(--c-on-paper); font: var(--w-body) var(--fs-body)/var(--lh-body) var(--font-body); overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: var(--stroke-bold) solid var(--c-ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--c-focus); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--c-ink); color: var(--c-white); padding: 12px 18px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* grain: flat noise, multiply, on saturated fields only, always under content */
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--tex-grain); opacity: .08; mix-blend-mode: multiply; pointer-events: none; }

/* ---------- type ---------- */
.h2, .h3, .eyebrow, .btn, .badge, .sticker, .tlink, .chips li, .lf-badge { font-family: var(--font-display); }
.h2 { font-size: var(--fs-h2); font-weight: var(--w-head); line-height: var(--lh-head); letter-spacing: var(--track-head); }
.h3 { font-size: var(--fs-h3); font-weight: var(--w-head); line-height: var(--lh-head); letter-spacing: var(--track-head); margin-bottom: var(--sp-3); }
.it { font-family: var(--font-accent); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; font-stretch: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-label); font-weight: 700; font-stretch: var(--wdth-wide); letter-spacing: var(--track-label); text-transform: uppercase; margin: 0 0 var(--sp-4); line-height: 1.2; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 52ch; }
.sample { display: inline-block; font: 700 .8125rem/1.3 var(--font-display); font-stretch: var(--wdth-wide); letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid currentColor; padding: 2px 6px; vertical-align: middle; white-space: nowrap; }

/* ---------- buttons: pill, ink outline, press-into-shadow ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: var(--stroke) solid var(--c-ink); border-radius: var(--r-pill); font-size: .9375rem; font-weight: 750; font-stretch: var(--wdth-wide); letter-spacing: .02em; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-md); transition-property: transform, box-shadow, background-color; transition-duration: var(--dur-fast); transition-timing-function: var(--ease-standard); white-space: nowrap; background: var(--c-white); color: var(--c-ink); }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translate(var(--lift), var(--lift)); box-shadow: 8px 8px 0 0 var(--c-ink); } }
.btn:active { transform: translate(var(--press), var(--press)); box-shadow: 0 0 0 0 var(--c-ink); transition-duration: var(--dur-instant); }
.btn-loud { background: var(--c-loud); color: var(--c-on-loud); }
.btn-paper { background: var(--c-white); color: var(--c-ink); }
.btn-ink { background: var(--c-ink); color: var(--c-white); box-shadow: 5px 5px 0 0 var(--c-loud); }
@media (hover: hover) and (pointer: fine) { .btn-ink:hover { box-shadow: 8px 8px 0 0 var(--c-loud); } }
.btn-ink:active { box-shadow: 0 0 0 0 var(--c-loud); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .8125rem; box-shadow: var(--shadow-sm); }
.btn-block { display: flex; width: 100%; }
.arr { width: 18px; height: 18px; flex: none; }
.tlink { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; font-size: .9375rem; font-weight: 750; font-stretch: var(--wdth-wide); letter-spacing: .02em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.tlink .arr { transition: transform var(--dur-fast) var(--ease-standard); }
@media (hover: hover) { .tlink:hover .arr { transform: translateX(4px); } }

/* ---------- badges (key tag) and stickers (starburst) ---------- */
.badge { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; line-height: 1.25; padding: 4px 14px 4px 10px; border: var(--stroke) solid var(--c-ink); border-radius: var(--r-tag); background: var(--c-white); color: var(--c-ink); font-size: var(--fs-label); font-weight: 700; font-stretch: var(--wdth-wide); letter-spacing: .06em; text-transform: uppercase; }
.badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: var(--stroke) solid currentColor; background: var(--c-paper); flex: none; }
.badge-ink { background: var(--c-ink); color: var(--c-white); }
.badge-ink::before { background: var(--c-loud); border-color: var(--c-white); }
.sticker { --sz: 132px; width: var(--sz); height: var(--sz); display: grid; place-items: center; text-align: center; color: var(--c-on-loud); font-family: var(--font-display); font-weight: 860; font-stretch: var(--wdth-compressed); font-size: calc(var(--sz) * .2); line-height: .92; text-transform: uppercase; rotate: var(--sticker-tilt); filter: drop-shadow(4px 4px 0 var(--c-ink)); position: relative; }
.sticker::before { content: ""; position: absolute; inset: 0; background: var(--c-loud); z-index: -1;
  clip-path: polygon(50% 0,58.7% 10.6%,71.7% 5.5%,74.5% 19%,88.2% 19.6%,85.2% 33%,97.6% 39.4%,88.8% 50%,97.6% 60.6%,85.2% 67%,88.2% 80.4%,74.5% 81%,71.7% 94.5%,58.7% 89.4%,50% 100%,41.3% 89.4%,28.3% 94.5%,25.5% 81%,11.8% 80.4%,14.8% 67%,2.4% 60.6%,11.2% 50%,2.4% 39.4%,14.8% 33%,11.8% 19.6%,25.5% 19%,28.3% 5.5%,41.3% 10.6%); }
.sticker > span { position: relative; padding: 0 12%; }
.sticker small { font-size: max(13px, .5em); font-stretch: var(--wdth-wide); letter-spacing: .04em; display: block; margin-top: .3em; }
@keyframes stamp { 0% { scale: 1.7; opacity: 0; rotate: -24deg; } 70% { opacity: 1; } 100% { scale: 1; opacity: 1; rotate: var(--sticker-tilt); } }
@keyframes snapIn { 0% { opacity: 0; transform: translateY(14px) scale(.97); } 60% { opacity: 1; transform: translateY(-3px) scale(1.01); } 100% { opacity: 1; transform: none; } }

/* ---------- live mark ---------- */
.mark { width: 36px; height: 36px; flex: none; overflow: visible; }
.mark .house { fill: var(--c-brand); }
.mark .dot { fill: var(--c-loud); stroke: var(--c-ink); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: live 2.4s var(--ease-in-out) infinite; }
@keyframes live { 0%, 100% { transform: scale(1); } 50% { transform: scale(.72); } }

/* ---------- header: opaque white pill, always solid, never translucent ---------- */
.site-header { position: sticky; top: 12px; z-index: var(--z-nav); display: flex; align-items: center; gap: var(--sp-4); width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--maxw) - 2 * var(--gutter)); min-height: var(--hdr-h); margin: 12px auto 0; padding: 8px 8px 8px 16px; background: var(--c-white); color: var(--c-ink); border: var(--stroke) solid var(--c-ink); border-radius: var(--r-pill); box-shadow: var(--shadow-md); }
.brandlink { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; flex: none; color: var(--c-ink); }
.brandlink .wm { height: 20px; width: auto; aspect-ratio: 4510 / 790; fill: currentColor; }
.primary-nav { margin: 0 auto; }
.primary-nav ul { display: flex; gap: 2px; }
.primary-nav a { display: flex; align-items: center; min-height: 46px; padding: 0 14px; font: 600 .9375rem/1 var(--font-body); text-decoration: none; border-radius: var(--r-pill); transition: background-color var(--dur-fast) var(--ease-standard); }
@media (hover: hover) { .primary-nav a:hover { background: var(--c-tint); color: var(--c-on-tint); } }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.link-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font: 600 .9375rem/1 var(--font-body); text-decoration: none; }
.menu-toggle, .menu-close { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border: var(--stroke) solid var(--c-ink); border-radius: 50%; background: var(--c-loud); color: var(--c-on-loud); cursor: pointer; padding: 0; }
.menu-toggle svg, .menu-close svg { width: 22px; height: 22px; }
@media (max-width: 1080px) {
  .primary-nav, .link-login { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  :root { --hdr-h: 60px; }
  .site-header { padding: 5px 5px 5px 12px; top: 10px; margin-top: 10px; }
  .hide-sm { display: none !important; }
  .brandlink .wm { height: 17px; }
  .mark { width: 32px; height: 32px; }
}

/* ---------- mobile menu: opaque field sheet ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: var(--z-sheet); background: var(--c-field); color: var(--c-on-field); padding: 12px var(--gutter) 32px; display: flex; flex-direction: column; gap: var(--sp-5); overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu[hidden] { display: none; }
.mm-top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 6px 6px 6px 14px; background: var(--c-white); color: var(--c-ink); border: var(--stroke) solid var(--c-ink); border-radius: var(--r-pill); box-shadow: var(--shadow-md); }
.menu-close { display: inline-flex; }
.mm-list { display: grid; gap: 2px; margin-top: var(--sp-4); }
.mm-list a { display: flex; align-items: center; min-height: 56px; font: 860 clamp(2.5rem, 1.6rem + 5vw, 3.5rem)/1 var(--font-display); font-stretch: var(--wdth-compressed); text-transform: uppercase; text-decoration: none; border-bottom: var(--stroke) solid currentColor; }
.mm-meta { font-size: var(--fs-small); margin-top: auto; }
html.js-motion .mobile-menu .mm-list li { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); transition-delay: calc(var(--i) * 30ms); }
html.js-motion .mobile-menu.is-open .mm-list li { opacity: 1; transform: none; }
html.menu-open, html.menu-open body { overflow: hidden; }

/* ---------- palette dock (demo only) ---------- */
.pdock { position: fixed; z-index: var(--z-toast); right: 12px; bottom: 12px; display: flex; align-items: center; gap: 0; background: var(--c-white); color: var(--c-ink); border: var(--stroke) solid var(--c-ink); border-radius: var(--r-pill); box-shadow: var(--shadow-sm); overflow: hidden; }
html:not(.js) .pdock { display: none; }
.pdock-l { padding: 0 10px 0 14px; font: 700 .75rem/1.1 var(--font-display); font-stretch: var(--wdth-wide); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.pdock button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 10px; border: 0; border-left: var(--stroke) solid var(--c-ink); background: var(--c-white); color: var(--c-ink); font: 800 .875rem/1 var(--font-display); font-stretch: var(--wdth-wide); cursor: pointer; }
.pdock button[aria-pressed="true"] { background: var(--c-ink); color: var(--c-white); }
.pdock button:focus-visible { outline: 3px solid var(--c-focus); outline-offset: -5px; box-shadow: none; }
.sw { display: flex; } .sw i { width: 9px; height: 14px; display: block; border: 1.5px solid currentColor; } .sw i + i { margin-left: -1.5px; }
@media (max-width: 760px) { .pdock { bottom: 84px; right: 8px; } .pdock .sw, .pdock-x { display: none; } .pdock-l { padding-left: 12px; } }

/* ---------- mobile sticky CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { position: fixed; z-index: var(--z-nav); left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--c-white); border-top: var(--stroke) solid var(--c-ink); transform: translateY(110%); transition: transform var(--dur-base) var(--ease-out); }
  .mobile-cta[data-state="shown"] { transform: none; }
  .mobile-cta .btn { min-height: 48px; padding: 0 12px; font-size: .875rem; box-shadow: var(--shadow-sm); }
  .pdock { transition: transform var(--dur-base) var(--ease-out); transform: translateY(72px); }
  html.cta-shown .pdock { transform: none; }
}

/* ---------- section scaffolding ---------- */
.sec { --sec-y: clamp(56px, 2rem + 3.4vw, 96px); padding: var(--sec-y) 0; position: relative; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: var(--sp-5) var(--sp-7); align-items: end; margin-bottom: var(--sp-7); }
.sec-head .lead { margin: 0; }
@media (max-width: 860px) { .sec-head { grid-template-columns: minmax(0, 1fr); margin-bottom: var(--sp-6); } }

/* ---------- footer ---------- */
.site-footer { background: var(--blk-footer-bg); color: var(--blk-footer-fg); padding: var(--sp-9) 0 var(--sp-6); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: var(--sp-7); }
.footer-claim { font: var(--w-head) var(--fs-h4)/1.2 var(--font-display); max-width: 22ch; }
.footer-contact a { display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: 4px; }
.cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-4); }
.cities li { border: 1.5px solid currentColor; padding: 4px 10px; font: 700 .8125rem/1.3 var(--font-display); font-stretch: var(--wdth-wide); letter-spacing: .05em; text-transform: uppercase; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.footer-cols > div:first-child ul { columns: 2; column-gap: var(--sp-5); }
.footer-cols li { break-inside: avoid; }
.footer-h { font: 800 var(--fs-label)/1.2 var(--font-display); font-stretch: var(--wdth-wide); letter-spacing: var(--track-label); text-transform: uppercase; margin-bottom: var(--sp-3); }
.footer-cols a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: var(--fs-small); text-decoration: none; line-height: 1.25; }
@media (hover: hover) { .footer-cols a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.footer-wm { position: relative; margin: var(--sp-8) 0 var(--sp-5); padding-right: 4.5%; }
.footer-wm svg { width: 100%; height: auto; aspect-ratio: 4510 / 790; fill: currentColor; }
.footer-dot { position: absolute; right: 0; top: -14%; width: 3.6%; aspect-ratio: 1; border-radius: 50%; background: var(--c-loud-on-dark); animation: live 2.4s var(--ease-in-out) infinite; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4); border-top: var(--stroke) solid currentColor; padding-top: var(--sp-4); font-size: var(--fs-small); }
.footer-bottom p { margin: 0; align-self: center; }
.legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.legal a { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-cols > div:first-child { grid-column: 1 / -1; } .site-footer { padding-bottom: 96px; } }

/* ---------- reveal (hidden state only under html.js-motion) ---------- */
html.js-motion [data-reveal] { opacity: 0; transform: translateY(24px); transition-property: opacity, transform; transition-duration: var(--dur-reveal); transition-timing-function: var(--ease-out); transition-delay: calc(var(--d, 0) * var(--stagger)); }
html.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
/* loops pause when off-screen (IO toggles .is-off) */
.is-off, .is-off * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .mark .dot, .footer-dot { animation: none; }
}
html.menu-open .pdock { display: none; }

/* metric-matched fallback for the compressed display face: the H1 wraps the same before and after Archivo arrives (no CLS on swap) */
@font-face { font-family: "Archivo Compressed Fallback"; src: local("Arial"), local("Noto Sans"), local("Liberation Sans"), local("Helvetica Neue"); font-weight: 100 900; size-adjust: 75%; }
.hero-title, .page-title, .final-title { font-family: "Archivo", "Archivo Compressed Fallback", sans-serif; }
@font-face { font-family: "Instrument Fallback"; font-style: italic; src: local("Georgia Italic"), local("Georgia-Italic"), local("Noto Serif Italic"), local("NotoSerif-Italic"), local("Times New Roman Italic"); size-adjust: 80%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Noto Sans"), local("Liberation Sans"), local("Helvetica Neue"); font-weight: 100 900; size-adjust: 102%; }
body { font-family: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.it { font-family: "Instrument Serif", "Instrument Fallback", Georgia, serif; }
.mg-slot { display: block; width: 100%; height: 100%; }
.mg-slot img { width: 100%; height: 100%; object-fit: contain; }
.panel-art .mg-slot, .page-art .mg-slot, .flow-art .mg-slot { aspect-ratio: 1; height: auto; }
.page-art .mg-slot, .flow-art .mg-slot { aspect-ratio: 4 / 3; }
.panel-art .mg-slot { background: var(--c-tint); border: var(--stroke) solid var(--c-ink); }
.page-art .mg-slot { border: var(--stroke) solid var(--c-ink); }
.flow-art .mg-slot { border: var(--stroke-bold) solid var(--c-white); }
/* the wink word never changes the line box (fonts swap without CLS) */
.hero-title .it, .final-title .it, .page-title .it { display: inline; line-height: 0; }
