/* ==========================================================================
   Dempster Designs — prototype stylesheet
   Sections alternate light (white) and dark (near-black) like thesigngroup.co.uk.
   Mobile first. Breakpoints: 640, 900, 1200. Motion respects prefers-reduced-motion.
   Accent palette sampled from the sign photography (see NOTES.md §3).
   ========================================================================== */

/* Fonts: Google Fonts files (SIL OFL) self-hosted as variable woff2 so nothing render-blocking leaves the origin.
   Fallback faces are size-adjusted to the web fonts' measured widths so the swap does not shift layout. */
@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/BigShouldersDisplay-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "BSD Fallback"; src: local("Impact"), local("Arial Narrow Bold"), local("Arial Narrow"); size-adjust: 95%; ascent-override: 92%; descent-override: 18%; }
@font-face { font-family: "IS Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 104%; }

/* ---- Theme tokens ------------------------------------------------------- */
:root, .t-light {
  --bg: #ffffff;
  --bg-2: #f4f4f1;
  --bg-3: #ebebe6;
  --ink: #0b0b0c;
  --ink-70: rgba(11, 11, 12, 0.72);
  --ink-50: rgba(11, 11, 12, 0.52);
  --line: rgba(11, 11, 12, 0.14);
  --line-strong: rgba(11, 11, 12, 0.9);
  --blue: #1d5fb4;
  --red: #d8272c;
  --lime: #7ac300;
  --lime-fill: #b4ff2a;
  --gold: #c9a23a;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  color-scheme: light;
}
.t-dark {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --bg-3: #1c1c1f;
  --ink: #f4f4f1;
  --ink-70: rgba(244, 244, 241, 0.72);
  --ink-50: rgba(244, 244, 241, 0.52);
  --line: rgba(244, 244, 241, 0.16);
  --line-strong: rgba(244, 244, 241, 0.9);
  --blue: #2f7bff;
  --red: #ff3b3f;
  --lime: #b4ff2a;
  --lime-fill: #b4ff2a;
  --gold: #e2bd57;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
:root {
  --white: #ffffff;
  --display: "Big Shoulders Display", "BSD Fallback", Impact, "Arial Narrow", sans-serif;
  --body: "Instrument Sans", "IS Fallback", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: 20px;
  --max: 1440px;
  --section: clamp(72px, 12vw, 160px);
  --focus: 3px solid var(--blue);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --head-h: 72px;
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #0b0b0c; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; overflow-x: clip; }
.t-dark, .t-light { background: var(--bg); color: var(--ink); }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
::selection { background: var(--lime-fill); color: #000; }
:focus-visible { outline: var(--focus); outline-offset: 4px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { 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 { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--lime-fill); color: #000; padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---- Page transitions (MPA view transitions, progressive) --------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease-in both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
.site-head { view-transition-name: site-head; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ---- Type scale --------------------------------------------------------- */
.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 0.86; letter-spacing: -0.005em; }
.h-xl { font-size: clamp(56px, 10vw, 152px); }
.h-lg { font-size: clamp(44px, 7.4vw, 108px); }
.h-md { font-size: clamp(34px, 5vw, 72px); }
.h-sm { font-family: var(--body); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -0.015em; }
.lede { font-size: clamp(19px, 2vw, 25px); line-height: 1.4; max-width: 34ch; }
.measure { max-width: 62ch; }
.muted { color: var(--ink-50); }
.pre { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); }
.outline { -webkit-text-stroke: 2px var(--ink); color: transparent; }
@media (min-width: 900px) { .outline { -webkit-text-stroke: 3px var(--ink); } }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body); font-weight: 700; font-size: 17px; line-height: 1;
  padding: 18px 26px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--lime-fill); border-color: var(--lime-fill); color: #000; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.big { font-size: clamp(19px, 2vw, 24px); padding: 22px 36px; }

/* Fixed enquiry pill (like The Sign Group's "Enquire Now") */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  transform: translateY(140%); opacity: 0; transition: transform .5s var(--ease-spring), opacity .3s ease;
  background: var(--lime-fill); color: #000; border-color: var(--lime-fill); box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.fab.is-on { transform: none; opacity: 1; }
.fab:hover { background: #fff; border-color: #fff; }

/* ---- Header (theme follows the section under it) ----------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  --hb: rgba(255,255,255,.82); --hi: #0b0b0c;
  background: var(--hb); color: var(--hi);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, color .35s ease, border-color .2s ease;
}
.site-head.on-dark { --hb: rgba(11,11,12,.78); --hi: #f4f4f1; }
/* at the top of the page the bar is solid and seamless with the first section (thesigngroup); once scrolled it goes translucent + blur */
.site-head:not(.is-stuck) { --hb: #ffffff; }
.site-head:not(.is-stuck).on-dark { --hb: #0b0b0c; }
.site-head.is-stuck { border-bottom-color: rgba(128,128,128,.25); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--head-h); gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 37px; }
.brand span { font-family: var(--display); font-weight: 900; font-size: 26px; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; padding-top: 3px; }

.nav-toggle { appearance: none; background: none; border: 2px solid currentColor; border-radius: 999px; color: inherit; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.nav-toggle svg { width: 18px; height: 18px; }

.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--hb); color: var(--hi); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(128,128,128,.25); padding: 8px var(--gutter) 24px; }
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav a { display: block; padding: 14px 0; font-family: var(--display); font-weight: 900; font-size: 34px; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgba(128,128,128,.25); transition: color .2s ease, padding-left .3s var(--ease-out); }
.nav a:hover { padding-left: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--lime); }
.nav li:last-child a { border-bottom: 0; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { display: block; position: static; background: none; border: 0; padding: 0; backdrop-filter: none; }
  .nav ul { flex-direction: row; gap: 4px; align-items: center; }
  .nav a { font-family: var(--body); font-size: 16px; font-weight: 600; text-transform: none; border: 0; padding: 10px 14px; border-radius: 999px; }
  .nav a:hover { padding-left: 14px; background: rgba(128,128,128,.15); color: inherit; }
  .nav a[aria-current="page"] { color: inherit; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
  .nav a.cta { background: var(--hi); color: var(--hb); margin-left: 8px; text-decoration: none; }
  .site-head.on-dark .nav a.cta { color: #0b0b0c; }
  .nav a.cta:hover { background: var(--lime-fill); color: #000; }
}

/* ---- Word stack (hero + CTA) -------------------------------------------- */
/* Every size inside the stack is in em so the JS fitter only has to set --hf (hero font size). */
.hero { padding-block: clamp(20px, 3vw, 36px) 0; position: relative; overflow: clip; }
/* the hero always occupies one viewport: stack at top, lede + buttons pinned to the bottom, marquee at the fold.
   Sections below therefore never move when the fitter resizes the stack (no layout shift). */
.hero > .wrap { max-width: 1720px; min-height: calc(100vh - var(--head-h)); min-height: calc(100svh - var(--head-h)); display: flex; flex-direction: column; justify-content: space-between; }
@media (max-width: 899px) { .hero > .wrap { min-height: 0; display: block; } .hero .stk.pic { width: 1em; } .hero .stack .line { gap: 0 .08em; } }

.stack { display: flex; flex-direction: column; align-items: flex-start; margin: 0; font-size: var(--hf, clamp(72px, 23vw, 300px)); }
@media (min-width: 900px) { .stack { font-size: var(--hf, clamp(120px, 15.5vw, 236px)); } }
.stack .line { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .1em; }
.js .stack .line { flex-wrap: nowrap; }
/* home hero: centred lines so the collage fills the width at any ratio (thesigngroup .centre-align) */
@media (min-width: 900px) { .hero .stack { align-items: center; } .hero .stack .line { justify-content: center; } }
.stack .w { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1em; line-height: 0.82; letter-spacing: -0.01em; display: inline-block; white-space: nowrap; }
.stack .w.outline { -webkit-text-stroke: .018em var(--ink); color: transparent; }
.stack.sm { font-size: var(--hf, clamp(56px, 17vw, 200px)); }
.stack.sm.xs { font-size: var(--hf, clamp(44px, 12.5vw, 200px)); }
@media (min-width: 900px) { .stack.sm, .stack.sm.xs { font-size: var(--hf, clamp(96px, 11vw, 168px)); } }

/* Stickers and photo cutouts (sizes relative to the stack font size) */
.stk { flex: none; display: inline-block; position: relative; z-index: 2; color: var(--ink); }
.stk svg { width: 100%; height: auto; }
.stk.pic { width: 1.3em; border: .03em solid var(--white); box-shadow: var(--shadow); background: var(--white); }
.stk.pic img { width: 100%; height: auto; }
.stk.pic { transition: transform .5s var(--ease-spring); }
.stk.pic:hover { transform: rotate(0) scale(1.04); }
.rot-l { transform: rotate(-6deg); } .rot-r { transform: rotate(5deg); } .rot-l2 { transform: rotate(-3deg); } .rot-r2 { transform: rotate(8deg); }
.stk.star { width: .42em; } .stk.bolt { width: .3em; } .stk.arrow { width: .62em; } .stk.hand { width: .5em; }
.stk.burst { width: .5em; } .stk.squig { width: .8em; } .stk.aster { width: .42em; } .stk.circle { width: .5em; }
@media (min-width: 900px) { .stk.over { margin-inline: -.2em; } }
.stk.lift { margin-top: -.3em; } .stk.drop { margin-bottom: -.3em; }
.desk-only { display: none; }
@media (min-width: 900px) { .desk-only { display: inline-block; } }
@media (min-width: 900px) { .mob-only { display: none; } }

/* <svg><use> has no intrinsic ratio (would default to 150px tall); give each sticker its symbol's viewBox ratio */
svg:has(> use[href="#s-star"]), svg:has(> use[href="#s-burst"]), svg:has(> use[href="#s-aster"]),
svg:has(> use[href="#s-curve"]), svg:has(> use[href="#s-circle"]) { aspect-ratio: 1; }
svg:has(> use[href="#s-bolt"]) { aspect-ratio: 60 / 100; }
svg:has(> use[href="#s-arrow"]) { aspect-ratio: 160 / 100; }
svg:has(> use[href="#s-arrow2"]) { aspect-ratio: 160 / 60; }
svg:has(> use[href="#s-hand"]) { aspect-ratio: 120 / 100; }
svg:has(> use[href="#s-squig"]) { aspect-ratio: 200 / 40; }
svg:has(> use[href^="#i-"]) { aspect-ratio: 1; }

/* Sticker idle motion (subtle, looping — the "aster" on thesigngroup rotates the same way) */
.stk.aster svg { animation: spin 16s linear infinite; }
.stk.star svg { animation: wobble 5s ease-in-out infinite; transform-origin: 50% 55%; }
.stk.hand svg { animation: nudge 2.6s ease-in-out infinite; }
.stk.arrow svg { animation: wiggle 3.2s ease-in-out infinite; transform-origin: 10% 80%; }
.stk.bolt svg { animation: flicker 4s steps(1, end) infinite; }
.stk.burst svg { animation: pulse 2.8s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(10deg) scale(1.06); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-12%); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(6deg) translateX(3%); } }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 94% { opacity: .35; } 96% { opacity: 1; } 98% { opacity: .5; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* Hero intro: words rise, stickers pop, cutouts drop — transforms only, no layout shift */
.js .intro .w, .js .intro .stk, .js .intro .hero-foot > * { opacity: 0; }
.js .intro.is-in .w { animation: rise .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.js .intro.is-in .stk:not(.pic) { animation: pop .6s var(--ease-spring) both; animation-delay: calc(140ms + var(--i, 0) * 70ms); }
.js .intro.is-in .stk.pic { animation: drop .8s var(--ease-out) both; animation-delay: calc(80ms + var(--i, 0) * 70ms); }
.js .intro.is-in .hero-foot > * { animation: rise .7s var(--ease-out) both; animation-delay: calc(360ms + var(--i, 0) * 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.2) rotate(-25deg); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-.6em) rotate(0); } to { opacity: 1; } }
/* cutouts keep their tilt: the drop animation's end state is "no transform", so re-apply the tilt via a wrapper class */
.js .intro.is-in .stk.pic.rot-l { animation-name: drop-l; } .js .intro.is-in .stk.pic.rot-r { animation-name: drop-r; }
.js .intro.is-in .stk.pic.rot-l2 { animation-name: drop-l2; } .js .intro.is-in .stk.pic.rot-r2 { animation-name: drop-r2; }
@keyframes drop-l { from { opacity: 0; transform: translateY(-.6em) rotate(-14deg); } to { opacity: 1; transform: rotate(-6deg); } }
@keyframes drop-r { from { opacity: 0; transform: translateY(-.6em) rotate(14deg); } to { opacity: 1; transform: rotate(5deg); } }
@keyframes drop-l2 { from { opacity: 0; transform: translateY(-.6em) rotate(-12deg); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes drop-r2 { from { opacity: 0; transform: translateY(-.6em) rotate(18deg); } to { opacity: 1; transform: rotate(8deg); } }

.hero-foot { display: grid; gap: 24px; align-items: end; margin-top: clamp(24px, 3vw, 44px); padding-bottom: clamp(24px, 3vw, 40px); }
.hero-foot .lede { font-size: clamp(19px, 2vw, 26px); margin: 0 0 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .hero-foot { grid-template-columns: 1.2fr 1fr; } .hero-actions { justify-content: flex-end; } }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; letter-spacing: 0.02em; color: var(--ink-70); margin: 0; }
.hero-badge svg { width: 22px; height: 22px; animation: spin 16s linear infinite; }

/* ---- Inner page hero: full-bleed photo backdrop, heading aligned bottom (thesigngroup service pages) ---- */
.page-hero { position: relative; overflow: clip; min-height: min(calc(100svh - var(--head-h)), 860px); display: flex; flex-direction: column; justify-content: flex-end; }
@media (max-height: 640px) { .page-hero { min-height: 520px; } }
.page-hero .ph-bg { position: absolute; inset: 0; z-index: 0; }
/* scale-in only (no opacity fade: a transparent backdrop would delay the Largest Contentful Paint) */
.page-hero .ph-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(1.08); transition: transform 1.8s var(--ease-out); will-change: transform; }
.page-hero.is-in .ph-bg img { transform: scale(1); }
.page-hero .ph-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,11,12,.92) 0%, rgba(11,11,12,.55) 45%, rgba(11,11,12,.25) 100%); }
.page-hero .ph-inner { position: relative; z-index: 1; padding-block: clamp(120px, 18vh, 200px) clamp(36px, 5vw, 64px); }
.page-hero .crumbs { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-70); margin-bottom: 20px; display: flex; gap: 10px; align-items: center; }
.page-hero .crumbs a { text-decoration: none; }
.page-hero .crumbs a:hover { color: var(--lime); }
.page-hero .crumbs svg { width: 14px; height: 14px; }
.page-hero .lede { margin-top: 24px; color: var(--ink-70); }
.page-hero .float { position: absolute; z-index: 2; right: var(--gutter); top: clamp(88px, 14vh, 140px); width: clamp(120px, 16vw, 260px); border: 5px solid var(--white); background: var(--white); box-shadow: var(--shadow); transform: rotate(6deg); display: none; }
.page-hero .float img { width: 100%; height: auto; }
@media (min-width: 900px) { .page-hero .float { display: block; } }
.js .page-hero .float { opacity: 0; }
.js .page-hero.is-in .float { animation: drop-r .9s var(--ease-out) .3s both; }
.page-hero .stack { font-size: var(--hf, clamp(56px, 16vw, 200px)); }
@media (min-width: 900px) { .page-hero .stack { font-size: var(--hf, clamp(96px, 10.5vw, 176px)); } }

/* ---- Marquee ------------------------------------------------------------ */
.marquee { border-block: 2px solid var(--ink); overflow: hidden; position: relative; padding-block: 10px; background: var(--bg); }
.marquee-track { display: flex; width: max-content; will-change: transform; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: clamp(18px, 3vw, 48px); padding-inline: clamp(9px, 1.5vw, 24px); flex: none; font-size: clamp(54px, 9vw, 132px); }
.marquee-group .w { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1em; line-height: 1; white-space: nowrap; }
.marquee-group .w.outline { -webkit-text-stroke: .015em var(--ink); color: transparent; }
.marquee-group .stk { width: .5em; }
.marquee-group .stk.pic { width: 1.3em; border-width: 4px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-btn { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--bg); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.marquee-btn svg { width: 14px; height: 14px; }
.marquee-btn .ico-play { display: none; }
.marquee.is-paused .marquee-btn .ico-play { display: block; }
.marquee.is-paused .marquee-btn .ico-pause { display: none; }

/* ---- Sections ----------------------------------------------------------- */
.section { padding-block: var(--section); position: relative; }
.section.tight { padding-block: calc(var(--section) * 0.6); }
.section.band { background: var(--bg-2); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 72px); align-items: end; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.4fr 1fr; } .section-head .lede { justify-self: end; } }
.deco { position: absolute; pointer-events: none; z-index: 1; color: var(--ink); }
.deco svg { width: 100%; height: auto; }

/* Scroll reveal (thesigngroup: translate3d(0,40px,0) + opacity 0 → in view) */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-x { opacity: 0; transform: translateX(90px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal-x.is-in { opacity: 1; transform: none; }
.js .reveal-scale { opacity: 0; transform: scale(1.06); transition: opacity .9s ease, transform 1.4s var(--ease-out); }
.js .reveal-scale.is-in { opacity: 1; transform: none; }

/* Amplify: three items */
.trio { display: grid; gap: 40px; margin-top: clamp(36px, 5vw, 72px); }
.trio > div { border-top: 2px solid var(--ink); padding-top: 22px; position: relative; }
.trio .n { font-family: var(--display); font-weight: 900; font-size: 48px; line-height: 1; color: var(--blue); display: block; margin-bottom: 14px; }
.trio > div:nth-child(2) .n { color: var(--red); }
.trio > div:nth-child(3) .n { color: var(--lime); }
.trio h3 { margin-bottom: 10px; }
.trio p { margin: 0; color: var(--ink-70); font-size: 18px; }
@media (min-width: 720px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* Services: plain grid of large text links */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--ink); }
.svc-grid li { border-bottom: 2px solid var(--ink); }
.svc-grid a { display: flex; gap: 20px; align-items: baseline; text-decoration: none; padding: clamp(18px, 2.6vw, 30px) 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 4.6vw, 62px); line-height: 0.95; letter-spacing: 0; transition: color .2s ease, padding-left .35s var(--ease-out); }
.svc-grid a:hover, .svc-grid a:focus-visible { color: var(--lime); padding-left: 16px; }
.svc-grid .idx { font-family: var(--body); font-weight: 700; font-size: 14px; color: var(--ink-50); flex: none; width: 2.2em; }
@media (min-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; column-gap: 56px; } }

/* Split layouts */
.split { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 72px; } .split.rev { grid-template-columns: 7fr 5fr; } .split.rev > :first-child { order: 2; } .split.even { grid-template-columns: 1fr 1fr; } }
.prose p { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-70); }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--ink); }

.print { border: 6px solid var(--white); background: var(--white); box-shadow: var(--shadow); }
.print img { width: 100%; height: auto; }

/* Process collage */
.collage { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: start; position: relative; }
.collage figure { margin: 0; position: relative; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage figcaption { font-size: 13px; font-weight: 600; margin-top: 8px; color: var(--ink-50); position: relative; z-index: 2; }
.collage .c1 { grid-column: 1 / 5; }
.collage .c2 { grid-column: 5 / 7; margin-top: 30%; }
.collage .c3 { grid-column: 1 / 4; margin-top: 8%; }
.collage .c4 { grid-column: 4 / 7; }
.collage .c5 { grid-column: 1 / 4; }
.collage .c6 { grid-column: 4 / 7; margin-top: 10%; }
@media (min-width: 900px) { .collage { gap: 18px; } .collage .c3 { margin-top: 10%; } .collage .c5 { grid-column: 1 / 4; margin-top: -6%; } .collage .c6 { grid-column: 4 / 7; margin-top: 12%; } }

/* Featured work strip */
.strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; align-items: start; }
.strip figure { margin: 0; min-width: 0; }
.strip img { width: 100%; height: auto; transition: transform .6s var(--ease-out); }
.strip figure:hover img { transform: scale(1.03); }
.strip .frame { overflow: hidden; }
.strip figcaption { margin-top: 10px; font-weight: 600; font-size: 15px; color: var(--ink-70); }
.strip .s1 { grid-column: 1 / 8; }
.strip .s2 { grid-column: 8 / 13; margin-top: 30%; }
.strip .s3 { grid-column: 1 / 6; margin-top: -10%; }
.strip .s4 { grid-column: 6 / 13; margin-top: 6%; }
@media (min-width: 900px) { .strip { gap: 24px; } .strip .s1 { grid-column: 1 / 5; } .strip .s2 { grid-column: 5 / 8; margin-top: 18%; } .strip .s3 { grid-column: 8 / 11; margin-top: 0; } .strip .s4 { grid-column: 11 / 13; margin-top: 30%; } }

/* Video band */
.video-band { position: relative; background: #000; color: var(--white); overflow: hidden; }
.video-band video { width: 100%; height: clamp(440px, 80vh, 820px); object-fit: cover; opacity: .85; }
.video-band .cap { position: absolute; inset: 0; padding: var(--gutter); display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 55%, transparent 100%); }
.video-band .cap-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.video-band .cap h2 { font-size: clamp(34px, 4.8vw, 78px); line-height: .9; max-width: 11ch; }
.video-band .cap p { margin: 0; max-width: 40ch; color: rgba(255,255,255,.8); }
.vid-btn { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--white); background: rgba(0,0,0,.35); color: var(--white); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); padding: 0; transition: transform .3s var(--ease-spring), background .2s, color .2s; }
.vid-btn:hover { background: var(--white); color: #000; transform: scale(1.08); }
.vid-btn svg { width: 22px; height: 22px; }
.vid-btn .ico-pause { display: none; }
.vid-btn[aria-pressed="true"] .ico-pause { display: block; }
.vid-btn[aria-pressed="true"] .ico-play { display: none; }
.video-band :focus-visible { outline-color: var(--lime-fill); }

/* Gallery: masonry with lightbox */
.masonry { columns: 2; column-gap: 14px; }
.masonry figure { margin: 0 0 14px; break-inside: avoid; }
.masonry button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; text-align: left; overflow: hidden; }
.masonry img { width: 100%; height: auto; transition: transform .6s var(--ease-out), opacity .3s ease; }
.masonry button:hover img { transform: scale(1.04); }
.masonry figcaption { font-size: 14px; font-weight: 600; color: var(--ink-70); margin-top: 8px; display: flex; gap: 10px; align-items: baseline; }
.masonry figcaption .n { font-family: var(--display); font-weight: 900; font-size: 15px; color: var(--ink-50); flex: none; }
@media (min-width: 640px) { .masonry { columns: 3; column-gap: 20px; } .masonry figure { margin-bottom: 20px; } }
@media (min-width: 1200px) { .masonry { columns: 4; column-gap: 24px; } .masonry figure { margin-bottom: 24px; } }

dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; color: #fff; }
dialog.lb::backdrop { background: rgba(0,0,0,.9); backdrop-filter: blur(4px); }
dialog.lb[open] figure { animation: lb-in .35s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }
dialog.lb figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
dialog.lb img { max-height: 80vh; width: auto; max-width: 100%; border: 6px solid var(--white); background: var(--white); }
dialog.lb figcaption { font-weight: 600; }
dialog.lb .lb-close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--white); background: rgba(0,0,0,.5); color: var(--white); display: grid; place-items: center; cursor: pointer; padding: 0; }
dialog.lb .lb-close svg { width: 18px; height: 18px; }

/* Feature band */
.feature { display: grid; gap: 40px; align-items: center; }
.feature .imgs { display: grid; grid-template-columns: 7fr 5fr; gap: 14px; align-items: start; }
.feature .imgs figure { margin: 0; }
.feature .imgs figure:last-child { margin-top: 30%; }
.feature figcaption { font-size: 13px; color: var(--ink-50); margin-top: 8px; }
@media (min-width: 900px) { .feature { grid-template-columns: 6fr 6fr; gap: 72px; } .feature.rev > :first-child { order: 2; } }

/* About */
.artist { display: grid; gap: 40px; }
.artist .portrait { width: min(100%, 460px); transform: rotate(-2deg); }
@media (min-width: 900px) { .artist { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } .artist > :first-child { position: sticky; top: calc(var(--head-h) + 28px); } }
details.more summary { cursor: pointer; font-weight: 700; list-style: none; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--blue); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+"; font-family: var(--display); font-size: 26px; line-height: 1; }
details.more[open] summary::before { content: "–"; }
details.more .inner { margin-top: 20px; }

.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; border-top: 2px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 5.5em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline .yr { font-family: var(--display); font-weight: 900; font-size: 38px; line-height: 1; color: var(--lime); }
.timeline li:nth-child(3n+2) .yr { color: var(--blue); }
.timeline li:nth-child(3n) .yr { color: var(--red); }
.timeline .todo { font-size: 13px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .06em; margin-top: 16px; }

/* Full-bleed image band with subtle parallax */
.bleed { position: relative; overflow: hidden; margin: 0; background: #000; }
.bleed img { width: 100%; height: clamp(320px, 62vh, 720px); object-fit: cover; will-change: transform; transform: translateY(var(--py, 0)) scale(1.12); }
.bleed figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--gutter); background: linear-gradient(to top, rgba(0,0,0,.8), transparent); font-weight: 600; color: #fff; }

/* CTA: second stacked-word moment */
.cta { text-align: center; position: relative; overflow: clip; }
.cta .stack { align-items: center; font-size: var(--hf, clamp(76px, 22vw, 260px)); }
@media (min-width: 900px) { .cta .stack { font-size: var(--hf, clamp(120px, 14vw, 220px)); } }
.cta .stack .line { justify-content: center; }
.cta .ring { position: relative; display: inline-block; padding: clamp(24px, 4vw, 60px) 0; }
.cta .prose { max-width: 60ch; margin: 28px auto 0; }
.cta .prose p { font-size: clamp(17px, 1.5vw, 21px); }
.cta .btn { margin-top: 28px; }
.cta .deco { position: absolute; }
.cta .d1 { left: -4%; top: 4%; width: clamp(70px, 10vw, 150px); transform: rotate(-20deg); }
.cta .d2 { right: -6%; top: 0; width: clamp(60px, 9vw, 130px); transform: scaleX(-1) rotate(10deg); }
.cta .d3 { left: 8%; bottom: 0; width: clamp(50px, 7vw, 100px); transform: rotate(160deg); }
.cta .d4 { right: 4%; bottom: 4%; width: clamp(60px, 8vw, 120px); transform: rotate(-150deg); }
.cta .d5 { left: 48%; top: -6%; width: clamp(40px, 5vw, 70px); }
.cta .d5 svg { animation: wobble 5s ease-in-out infinite; }

/* Contact */
.contact { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact { grid-template-columns: 5fr 7fr; gap: 80px; } }
.contact address { font-style: normal; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; }
.contact address a { text-decoration: none; font-weight: 700; }
.contact address a:hover { color: var(--blue); }
.contact address p { margin: 0 0 18px; }
.contact .phone { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 4.4vw, 72px); line-height: 1; letter-spacing: .01em; display: block; margin: 8px 0 24px; white-space: nowrap; }
.social { display: flex; gap: 10px; margin-top: 16px; padding: 0; list-style: none; flex-wrap: wrap; }
.social a { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); transition: color .25s ease, transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease; }
/* fill sweeps up from the bottom on hover */
.social a::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--ink); transform: translateY(100%); transition: transform .35s cubic-bezier(.65,0,.35,1); }
.social a:hover, .social a:focus-visible { color: var(--bg); transform: translateY(-4px) scale(1.08); box-shadow: 0 10px 20px -10px rgba(11, 11, 12, .6); outline: none; }
.social a:hover::before, .social a:focus-visible::before { transform: translateY(0); }
.social a:hover svg, .social a:focus-visible svg { animation: social-bounce .5s ease; }
.social a[aria-disabled="true"] { opacity: .5; }
.social a[aria-disabled="true"]:hover { opacity: 1; }
.social svg { width: 18px; height: 18px; transition: transform .25s ease; }
@keyframes social-bounce { 0% { transform: scale(1) rotate(0); } 35% { transform: scale(1.3) rotate(-10deg); } 65% { transform: scale(.95) rotate(6deg); } 100% { transform: scale(1.1) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .social a, .social a::before, .social svg { transition: none; } .social a:hover svg { animation: none; } .social a:hover { transform: none; } }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 16px; color: var(--ink-70); margin-top: 8px; }
.hours dt { font-weight: 700; color: var(--ink); }
.hours dd { margin: 0; }

.form { display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 8px; font-weight: 700; font-size: 15px; }
.form label > span:first-child { display: block; }
.form .req { color: var(--red); }
.form input, .form textarea { font: inherit; font-size: 17px; padding: 14px 16px; border: 2px solid var(--line-strong); border-radius: 6px; background: var(--bg); color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.form input:focus-visible, .form textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,123,255,.25); }
.form textarea { min-height: 150px; resize: vertical; }
.form .note { font-size: 14px; color: var(--ink-50); margin: 0; }
.form .hp { position: absolute; left: -9999px; }
.form .btn:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.form-status { margin: 0; font-weight: 700; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 14px 16px; border-radius: 6px; border: 2px solid var(--line-strong); background: var(--lime-fill); color: #000; }
.form-status.is-err { padding: 14px 16px; border-radius: 6px; border: 2px solid var(--red); color: var(--red); }

/* Footer */
.site-foot { border-top: 2px solid var(--ink); padding-block: 48px; }
.site-foot .wrap { display: grid; gap: 28px; }
.site-foot .cols { display: grid; gap: 28px; }
.site-foot nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-foot a { text-decoration: none; font-weight: 600; }
.site-foot a:hover { color: var(--lime); }
.site-foot address { font-style: normal; color: var(--ink-70); line-height: 1.6; }
.site-foot .social { margin-top: 0; }
.site-foot .social a:hover { color: var(--bg); }
.site-foot small { display: block; color: var(--ink-50); border-top: 1px solid var(--line); padding-top: 20px; }
@media (min-width: 900px) { .site-foot .cols { grid-template-columns: auto 1fr auto; align-items: start; } .site-foot nav ul { justify-content: center; } .site-foot .social { grid-column: 3; margin-top: -8px; } }

/* ---- Reduced motion: everything static ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-btn { display: none; }
  .stk svg, .hero-badge svg, .cta .d5 svg { animation: none !important; }
  .js .intro .w, .js .intro .stk, .js .intro .hero-foot > *, .js .reveal, .js .reveal-x, .js .reveal-scale, .js .page-hero .float { opacity: 1; transform: none; animation: none; transition: none; }
  .page-hero .ph-bg img { transform: none; opacity: 1; transition: none; }
  .bleed img { transform: none; }
  .fab { transition: none; }
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}
