/* ==========================================================
   BROWNAUDIO — site styles
   Brand tokens live in :root (Night Mode, the default).
   Day Mode only overrides them in :root[data-theme="day"].
   ========================================================== */
:root {
  color-scheme: dark;
  /* Red comes from the logo's ink (C0 M99 Y100 K0 in assets/logo-source.pdf). */
  --accent: #E61F29;       /* fills under white text: the deepest step that keeps 4.5:1 */
  --accent-deep: #C91A23;  /* hover fills, so white text stays readable */
  --accent-hi: #F51F2A;    /* primary brand red: rules, active states, small marks */
  --accent-warm: #FF513D;  /* warm end of the logo gradient: waveform and signal lines */
  --accent-text: #FF513D;  /* red for text and icons on charcoal */
  --accent-display: #F51F2A; /* large headline text */
  --accent-rgb: 245, 31, 42;
  --accent-sweep: linear-gradient(90deg, var(--accent-hi), var(--accent-warm));
  --on-accent: #FFFFFF;
  /* Pure black base; neutral charcoal steps for panels. Red stays an accent. */
  --bg: #000000;
  --bg-alt: #070708;
  --surface: #0E0E10;
  --surface-2: #18181B;
  --line: #1F1F23;         /* hairlines between panels */
  --line-strong: #3A3A41;  /* input and control edges */
  --text: #FFFFFF;
  --muted: #A4A4AD;
  --faint: #96959E;
  --word-start: #5C5C66;   /* unlit words: clearly dim, still 3.2:1 on black at these large sizes */
  --live: #4ADE80;
  --ok: #8FD19E;
  --on-photo: #FFFFFF;     /* text that sits on a photo, in both themes */

  /* RGB triplets, used as rgba(var(--veil), .72) */
  --veil: 0, 0, 0;         /* page colour laid over the header and hero */
  --panel: 14, 14, 16;     /* translucent panels */
  --ink: 255, 255, 255;    /* faint tints and textures */

  --hero-photo-opacity: .62;
  --hero-veil-left: .88;
  --hero-veil-mid: .5;
  --hero-veil-right: .2;
  --hero-veil-top: .6;
  --shadow-panel: 0 28px 56px -32px rgba(0, 0, 0, .6);
  --shadow-bar: 0 20px 40px -10px rgba(0, 0, 0, .7);
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, .04);
  --check-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23FF513D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23A4A4AD' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --container: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="day"] {
  color-scheme: light;
  --accent-text: #CC151E;  /* darkened so it holds 4.5:1 on white, --bg-alt and red tints */
  --accent-display: #CC151E;
  --bg: #FFFFFF;
  --bg-alt: #F7F7F8;
  --surface: #FFFFFF;
  --surface-2: #F7F7F8;
  --line: #E7E7EA;
  --line-strong: #C4C4CB;
  --text: #171717;
  --muted: #626262;
  --faint: #6F6F6F;
  --word-start: #8E8E8E;
  --live: #16A34A;
  --ok: #1B7A3D;

  --veil: 255, 255, 255;
  --panel: 255, 255, 255;
  --ink: 0, 0, 0;

  --hero-photo-opacity: .5;
  --hero-veil-left: .96;
  --hero-veil-mid: .8;
  --hero-veil-right: .45;
  --hero-veil-top: .7;
  --shadow-panel: 0 30px 60px -36px rgba(0, 0, 0, .28);
  --shadow-bar: 0 16px 36px -12px rgba(0, 0, 0, .24);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04);
  --check-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23CC151E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23626262' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 8.2vw, 7.25rem); line-height: .96; letter-spacing: -0.048em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.accent { color: var(--accent-display); }

/* Section labels: quiet grey type led by one small red signal light. */
.eyebrow {
  display: flex; align-items: center; gap: .65em;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 10px rgba(var(--accent-rgb), .75); }
.eyebrow-pill {
  display: inline-flex;
  padding: .5rem 1rem .5rem .85rem;
  border: 1px solid rgba(var(--ink), .14);
  border-radius: 999px;
  background: rgba(var(--panel), .45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  letter-spacing: .1em;
  font-size: .72rem;
}
.card-label { font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  padding: .85em 1.5em; border-radius: 999px;
  border: 1.5px solid transparent; background: var(--btn-bg);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { --btn-bg: var(--accent); color: var(--on-accent); }
.btn-primary { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
.btn-primary:hover { --btn-bg: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 12px 32px -12px rgba(var(--accent-rgb), .8); }
.btn-ghost { --btn-bg: rgba(var(--ink), .06); color: var(--text); border: 1px solid rgba(var(--ink), .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { --btn-bg: rgba(var(--ink), .1); border-color: rgba(var(--ink), .28); }
.btn-sm { font-size: .9rem; padding: .6em 1.1em; }
.btn-lg { font-size: 1.02rem; padding: 1.05em 1.8em; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
/* The header floats clear over the hero, then takes a black glass once the page moves. */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(var(--veil), 0);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background-color .4s, backdrop-filter .4s;
}
.site-header.scrolled, .site-header:has(.primary-nav.open) {
  border-bottom-color: var(--line); background: rgba(var(--veil), .74);
  backdrop-filter: saturate(140%) blur(18px); -webkit-backdrop-filter: saturate(140%) blur(18px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand img { width: 164px; height: auto; }
.primary-nav { display: flex; gap: 2rem; margin-left: auto; }
.primary-nav a { position: relative; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .92rem; transition: color .2s; }
.primary-nav a:hover, .primary-nav a.active { color: var(--text); }
.primary-nav a.active::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 8px rgba(var(--accent-rgb), .9); }
.primary-nav .nav-contact { display: none; }
.header-actions { display: flex; align-items: center; gap: .75rem; }

/* Instagram and WhatsApp: small outline icons in the header and footer. */
.social-links { display: flex; gap: .5rem; }
.social-link {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  border: 1px solid rgba(var(--ink), .14); border-radius: 50%; color: var(--muted);
  transition: color .2s, border-color .2s, background-color .2s;
}
.social-link svg, .contact-actions svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-link:hover { color: var(--text); border-color: rgba(var(--accent-rgb), .7); background: rgba(var(--accent-rgb), .12); }
.theme-toggle {
  position: relative; flex: none; width: 56px; height: 30px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2);
  transition: border-color .2s, box-shadow .2s;
}
.theme-toggle::after { content: ""; position: absolute; inset: -8px -2px; } /* 44px touch target */
.theme-toggle:hover { border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14); }
.theme-toggle:focus-visible { border-radius: 999px; }
.theme-toggle-knob {
  position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; color: var(--on-accent);
  background: linear-gradient(145deg, var(--accent-hi), var(--accent));
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  transform: translateX(26px); transition: transform .35s var(--ease);
}
.theme-toggle:active .theme-toggle-knob { transform: translateX(26px) scale(.9); }
:root[data-theme="day"] .theme-toggle-knob { transform: none; }
:root[data-theme="day"] .theme-toggle:active .theme-toggle-knob { transform: scale(.9); }
.theme-toggle svg { position: absolute; width: 14px; height: 14px; transition: opacity .25s, transform .35s var(--ease); }
.tt-moon { fill: currentColor; }
.tt-sun { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="day"] .tt-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="day"] .tt-sun { opacity: 1; transform: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(var(--ink), .14); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
/* Full-height opening: the headline sits low on the frame, the details along the bottom edge. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + clamp(40px, 8vh, 96px)) 0 clamp(36px, 5vw, 64px);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: var(--hero-photo-opacity); filter: saturate(.8) contrast(1.06); }
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 55% at 80% 62%, rgba(var(--accent-rgb), .2), transparent 72%),
    linear-gradient(90deg, rgba(var(--veil), var(--hero-veil-left)) 0%, rgba(var(--veil), var(--hero-veil-mid)) 55%, rgba(var(--veil), var(--hero-veil-right)) 100%),
    linear-gradient(to bottom, rgba(var(--veil), var(--hero-veil-top)) 0%, transparent 26%, transparent 48%, var(--bg) 100%);
}
.meters { position: absolute; inset: auto 0 0 0; height: 70%; display: flex; align-items: flex-end; gap: 6px; padding-inline: 6px; opacity: .1; mask-image: linear-gradient(to top, #000 10%, transparent 95%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 95%); }
.meters i {
  flex: 1; height: 100%; border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--accent), var(--accent-hi));
  transform-origin: bottom; transform: scaleY(var(--lvl, .4));
  animation: meter var(--dur, 1.6s) ease-in-out var(--delay, 0s) infinite alternate;
}
@keyframes meter { from { transform: scaleY(var(--lo, .15)); } to { transform: scaleY(var(--hi, .7)); } }
/* A short load-in: nothing waits on it, and it never replays. */
.js .hero-copy > *, .js .hero-intro > *, .js .hero-card, .js .hero-foot { animation: heroUp .9s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .1s; }
.js .hero-foot { animation-name: heroLine; animation-delay: .2s; }
.js .hero-intro > :nth-child(1) { animation-delay: .26s; }
.js .hero-intro > :nth-child(2) { animation-delay: .34s; }
.js .hero-intro > :nth-child(3) { animation-delay: .42s; }
.js .hero-card { animation-delay: .38s; }
.js .hero-photo { animation: heroPhoto 1.8s var(--ease) both; }
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes heroLine { from { border-top-color: transparent; } }
@keyframes heroPhoto { from { opacity: 0; scale: 1.14; } }
.parallax-on [data-parallax] { scale: 1.1; translate: 0 var(--parallax, 0); }
.hero h1 { margin: .5em 0 0; }
.hero h1 .accent { display: block; }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(32px, 6vw, 96px); align-items: end;
  margin-top: clamp(32px, 6vh, 64px); padding-top: clamp(24px, 4vh, 40px); border-top: 1px solid rgba(var(--ink), .14);
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 580px; margin-bottom: 1.8rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-base { display: flex; align-items: center; gap: .5rem; margin: 1.4rem 0 0; color: var(--muted); font-size: .9rem; }
.hero-base svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent-text); stroke-width: 1.8; }

.hero-card {
  background: rgba(var(--panel), .5); backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(var(--ink), .12); border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-panel);
}
.hero-card-label { font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: .8rem; }
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.spec-list li { display: flex; align-items: center; gap: .7rem; font-weight: 500; font-size: .95rem; }
.spec-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-hi); flex: none; }

/* The reading section: the statement holds on screen while the scroll lights it word by word.
   It uses position: sticky, so scrolling itself is never intercepted. */
.statement { padding-bottom: clamp(48px, 7vw, 80px); }
.hero-statement { display: grid; align-content: start; padding-block: clamp(28px, 9vh, 96px) clamp(24px, 4vh, 48px); }
.js .statement-stage { height: 190vh; height: 190svh; }
.js .hero-statement {
  position: sticky; top: var(--header-h);
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
}
.hero-statement .eyebrow { margin-bottom: 1.2rem; }
.hero-statement-quote, .hero-statement-text {
  margin: 0; font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.035em;
  font-size: clamp(1.75rem, min(7.4vw, 6.2vh), 4rem);
}
.hero-statement-quote { font-weight: 600; margin-bottom: .5em; }
.hero-statement-text { font-weight: 500; max-width: 26ch; }

/* Each word mixes from grey to its end colour as --lit goes 0 to 1.
   Browsers without color-mix switch at the halfway point instead. */
.key { --word-end: var(--accent-display); color: var(--word-end); }
.word { color: var(--word-start); transition: color .2s; }
.word.is-lit { color: var(--word-end, var(--text)); }
@supports (color: color-mix(in oklch, red, blue)) {
  .word, .word.is-lit { color: color-mix(in oklch, var(--word-end, var(--text)) calc(var(--lit, 0) * 100%), var(--word-start)); transition: none; }
}
.words-on .key { color: inherit; }

/* Four facts on one hairline grid: the gap shows the line colour between cells. */
.hero-facts {
  list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0;
  display: grid; grid-template-columns: .7fr .9fr 1.6fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.hero-facts li { background: var(--surface); padding: clamp(1.2rem, 2.2vw, 1.8rem); display: flex; flex-direction: column; justify-content: flex-end; gap: .3rem; }
.signal { display: none; }
.js .signal { display: block; height: clamp(56px, 8vw, 92px); margin-top: clamp(32px, 5vw, 52px); }
.signal canvas { display: block; width: 100%; height: 100%; }
.hero-facts strong { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(1.25rem, 2.2vw, 1.9rem); line-height: 1.1; }
.hero-facts span { color: var(--muted); font-size: .85rem; }

/* ---------- Sections ---------- */
.card, .project, .platform, .value, .flow, .appoint-list, .inquiry, .location { box-shadow: var(--shadow-card); }
.section { padding: clamp(88px, 12vw, 160px) 0; }
.section-alt { position: relative; background: var(--bg-alt); border-block: 1px solid var(--line); }
/* One red pulse travels along the divider as a section arrives. */
.section-alt::before {
  content: ""; position: absolute; inset: -1px 0 auto; height: 1px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent-hi), var(--accent-warm), transparent) no-repeat -40% 0 / 40% 100%;
}
.section-alt.in::before { animation: signalSweep 1.8s var(--ease) 1; }
@keyframes signalSweep { from { opacity: 1; background-position: -60% 0; } 80% { opacity: 1; } to { opacity: 0; background-position: 160% 0; } }
.section-head { max-width: 860px; margin: 0 0 clamp(48px, 6vw, 80px); }
.section-head h2 { margin-bottom: 0; }
.section-head .section-sub { margin-top: 1.2rem; max-width: 620px; }
.section-sub { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Panels: borderless charcoal on black; hover raises a soft red light from the top edge. */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.4vw, 2.2rem); transition: transform .3s var(--ease), border-color .3s;
}
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(120% 70% at 50% 0%, rgba(var(--accent-rgb), .13), transparent 62%); }
.card:hover { translate: 0 -4px; border-color: var(--line-strong); }
.card:hover::after { opacity: 1; }
.card > p { color: var(--muted); }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--ink), .05); border: 1px solid var(--line); margin-bottom: 1.5rem; flex: none; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: rgba(var(--accent-rgb), .18) var(--check-mark) center / 80% no-repeat;
}
.mini-list { list-style: none; padding: 1.1rem 0 0; margin: auto 0 0; border-top: 1px solid var(--line); display: grid; gap: .45rem; font-size: .93rem; color: var(--text); }
.mini-list li { position: relative; padding-left: 1.1rem; }
.mini-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent-hi); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chips li { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 500; transition: border-color .25s, background-color .25s, translate .25s var(--ease); }
.credits .chips li:hover { translate: 0 -2px; border-color: rgba(var(--accent-rgb), .7); background: var(--surface-2); }
.chips-lg li { font-family: var(--font-display); font-size: 1rem; padding: .65rem 1.2rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-media {
  position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 5; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(var(--ink), .025) 22px 23px),
    var(--surface);
  display: grid; place-items: center; overflow: hidden;
}
.about-media img:not(.about-logo) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-logo { width: 72%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.about-badge {
  position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 1rem 1.25rem; border-radius: calc(var(--radius-lg) - 10px);
  background: rgba(var(--veil), .55); backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); border: 1px solid rgba(var(--ink), .12);
  display: flex; flex-direction: column;
}
.about-badge strong { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 1.15rem; }
.about-badge span { color: var(--muted); font-size: .88rem; }
.about-copy > p:not(.eyebrow) { color: var(--muted); }
.about-copy strong { color: var(--text); }
.pull-quote { margin: 2.4rem 0 0; padding: .2rem 0 .2rem 1.5rem; border-left: 2px solid var(--accent-hi); font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.95rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.22; }
.pull-quote cite { display: block; margin-top: .7rem; font: 600 .9rem var(--font-body); font-style: normal; color: var(--faint); }

.pull-quote-mid { margin: 1.6rem 0; }
.story-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.story-head { position: sticky; top: calc(var(--header-h) + 24px); }
.story-head h2 { margin: 0; }

/* ---------- Appointment ---------- */
.appoint { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.appoint-orgs { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; }
.appoint-orgs li { display: flex; align-items: center; gap: .9rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; font-size: 1.1rem; color: var(--text); }
.appoint-orgs img { width: 48px; height: 48px; flex: none; }
.appoint-orgs abbr { text-decoration: none; }
.appoint-photo { margin: 2rem 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1080 / 524; }
.appoint-photo img { width: 100%; height: 100%; object-fit: cover; }
.appoint-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { display: flex; flex-direction: column; }
.service h3 { margin-bottom: .6rem; }
.service > p { margin-bottom: 1.2rem; }
.service-wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr 1.4fr; gap: 0 1.6rem; align-items: start; }
.service-wide .icon { margin: 0; }
.service-wide > div p { color: var(--muted); margin: 0; }
.service-wide .mini-list { border-top: 0; padding: 0; margin: 0; }
.mini-list-2 { grid-template-columns: 1fr 1fr; column-gap: 1.4rem; }

/* ---------- Expertise ---------- */
.platforms { margin-bottom: clamp(32px, 5vw, 56px); }
.platform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 2.4vw, 2.2rem); position: relative; overflow: hidden; }
.platform::after { content: ""; position: absolute; left: clamp(1.6rem, 2.4vw, 2.2rem); top: 0; width: 36px; height: 2px; background: var(--accent-sweep); box-shadow: 0 0 12px rgba(var(--accent-rgb), .8); }
.platform-name { display: block; font: 600 clamp(1.9rem, 3vw, 2.4rem)/1.05 var(--font-display); letter-spacing: -0.045em; margin: .6rem 0 .7rem; }
.platform p { color: var(--muted); margin: 0; }
.expertise-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); }
.tools { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.tools > div { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.tools dt { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; }
.tools dd { margin: 0; color: var(--muted); }

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter { font: 500 .9rem var(--font-body); color: var(--muted); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: .6rem 1.15rem; cursor: pointer; transition: all .2s; }
.filter:hover { color: var(--text); border-color: var(--muted); }
.filter.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 2.4vw, 2.2rem); transition: border-color .3s, translate .3s var(--ease); }
.project::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--accent-sweep); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.project:hover::before, .project:active::before { transform: scaleX(1); }
.project p { transition: color .3s; }
.project:hover { border-color: var(--line-strong); translate: 0 -3px; }
.project:hover p { color: var(--text); }
.project[hidden] { display: none; }
.project-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; }
.tag { display: inline-flex; align-items: center; gap: .5em; font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text); background: rgba(var(--ink), .05); border: 1px solid var(--line); padding: .35rem .75rem; border-radius: 999px; }
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-hi); }
.loc { font-size: .88rem; color: var(--faint); }
.project h3 { font-size: clamp(1.4rem, 2vw, 1.65rem); margin-bottom: .55rem; }
.project p { color: var(--muted); margin: 0; }
.credits { margin-top: clamp(48px, 7vw, 80px); }

/* ---------- Trusted by (logo marquee) ---------- */
/* Three rows scroll in alternating directions. script.js repeats each row's logos
   until one set is wider than the screen, duplicates that set, and sets --dur from
   its width so every row moves at the same speed. Each logo's --h (set in the HTML)
   scales it by 1/sqrt(aspect ratio) so all logos share a similar footprint. */
.trusted { padding-top: 0; }
.marquees {
  --logo-h: clamp(64px, 6.5vw, 84px);
  --cell-w: calc(var(--logo-h) * 1.75);
  --cell-gap: clamp(20px, 3vw, 40px);
  display: grid; gap: clamp(20px, 2.6vw, 32px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee { overflow: hidden; }
.marquee-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
}
.marquee-track li {
  flex: none; box-sizing: content-box;
  width: var(--cell-w); height: var(--logo-h);
  padding-inline: calc(var(--cell-gap) / 2);
  display: grid; place-items: center;
}
.marquee-track img {
  height: calc(var(--logo-h) * var(--h, .8)); width: auto; max-width: 100%;
  object-fit: contain;
}
.marquee.is-running .marquee-track {
  flex-wrap: nowrap; justify-content: flex-start; width: max-content;
  animation: marquee-left var(--dur, 40s) linear infinite;
  will-change: transform;
}
.marquee.is-running[data-direction="right"] .marquee-track { animation-name: marquee-right; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-left { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes marquee-right { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }

/* Day Mode: logos are full-colour and many sit on their own white or dark shapes, so
   each gets a quiet tile. Nothing on the image itself changes. */
:root[data-theme="day"] .marquee-track li { position: relative; }
:root[data-theme="day"] .marquee-track li::before {
  content: ""; position: absolute; inset: 0 calc(var(--cell-gap) / 2);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
:root[data-theme="day"] .marquee-track img {
  position: relative; height: calc(var(--logo-h) * var(--h, .8) * .86); max-width: calc(100% - 16px);
}

/* ---------- Approach (interactive steps) ---------- */
.flow { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius-lg) + 4px); padding: clamp(20px, 3.2vw, 44px); }
.flow-chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.flow-chain button {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
  padding: .95rem 1.05rem; border-radius: var(--radius); cursor: pointer; text-align: left;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  font: 600 .98rem var(--font-display); letter-spacing: -0.015em; transition: all .25s var(--ease);
}
.flow-chain .num { font-size: .72rem; letter-spacing: .1em; color: var(--faint); }
.flow-chain button:hover { color: var(--text); border-color: var(--line-strong); }
.flow-chain button.passed { color: var(--text); border-color: rgba(var(--accent-rgb), .45); }
.flow-chain button[aria-selected="true"] { background: var(--accent); border-color: var(--accent-hi); color: var(--on-accent); }
.flow-chain button[aria-selected="true"] .num { color: var(--on-accent); }
.flow-progress { height: 2px; background: var(--line); border-radius: 3px; margin: 18px 0 28px; overflow: hidden; }
.flow-progress span { display: block; height: 100%; width: 20%; background: var(--accent-sweep); transition: width .45s var(--ease); }
.flow-panel { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 40px; align-items: start; }
.flow-panel h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.flow-panel p { color: var(--muted); }
.flow-step { font-size: .76rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--faint) !important; margin-bottom: .4rem; }
.flow-tip { background: var(--bg); border: 1px solid var(--line); border-left: 2px solid var(--accent-hi); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.flow-tip-label { font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text) !important; margin-bottom: .6rem; }
.flow-focus { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.flow-focus li { position: relative; padding-left: 1.1rem; }
.flow-focus li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent-hi); }
.flow-nav { grid-column: 1 / -1; display: flex; gap: .75rem; }
.flow-nav button:disabled { opacity: .4; cursor: default; transform: none; }
.flow-panel.swap > div:not(.flow-nav) { animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 17vw, 240px); gap: 12px; }
.shot {
  margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(var(--ink), .02) 14px 15px),
    var(--surface);
  display: flex; align-items: flex-end;
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.js .shot.reveal.in:hover img { transition-duration: .6s; }
.shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 60% at 50% 100%, rgba(var(--accent-rgb), .32), transparent 70%); opacity: 0; transition: opacity .45s; }
.shot:hover::after { opacity: 1; }
.shot figcaption { position: relative; z-index: 1; width: 100%; padding: 2.4rem 1.3rem 1.15rem; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; font-size: .95rem; color: var(--on-photo); background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent); }
.shot-lg { grid-column: span 2; grid-row: span 2; }
.shot-wide { grid-column: span 2; }
.shot-tall { grid-row: span 2; }

/* ---------- Profile values ---------- */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.4rem; }
.value-num { display: block; font: 500 .8rem var(--font-body); color: var(--accent-text); letter-spacing: .1em; margin-bottom: 1.4rem; }
.value h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.value p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-copy h2 { font-size: clamp(2.6rem, 6.2vw, 5.25rem); line-height: .98; letter-spacing: -0.048em; }
.email-link { display: inline-flex; align-items: center; gap: .7rem; font: 600 clamp(1.25rem, 2.6vw, 1.8rem) var(--font-display); letter-spacing: -0.025em; text-decoration: none; color: var(--text); border-bottom: 2px solid var(--accent-hi); padding-bottom: .2rem; margin: .4rem 0 .9rem; word-break: break-all; }
.email-link svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--accent-text); stroke-width: 1.8; }
.email-link { position: relative; }
.email-link svg { transition: translate .25s var(--ease); }
.email-link:hover { color: var(--accent-text); }
.email-link:hover svg { translate: 3px 0; }
.js .email-link { border-bottom-color: var(--line); }
.js .email-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent-sweep); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .35s; }
.js .contact-copy.in .email-link::after { transform: none; }
.copy-btn { display: block; font: 500 .86rem var(--font-body); color: var(--muted); background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: .45rem .95rem; cursor: pointer; margin-bottom: 2rem; }
.copy-btn:hover { color: var(--text); border-color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2rem; }
.contact-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin: 0 0 2rem; padding: 1.4rem 0; border-block: 1px solid var(--line); }
.contact-meta dt { font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.contact-meta dd { margin: .2rem 0 0; font-weight: 500; }
.contact-meta address { font-style: normal; }
.contact-address { grid-column: 1 / -1; }
.location { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); margin-top: clamp(48px, 7vw, 96px); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius-lg) + 4px); overflow: hidden; }
.location-info { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: clamp(22px, 3.5vw, 36px); }
.location-info h3 { font-size: 1.6rem; margin: 0; }
.location-info .eyebrow { margin: 0; }
.location-address { font-style: normal; font-size: 1.1rem; line-height: 1.5; color: var(--muted); margin-bottom: 1rem; }
.location-open { font-size: .92rem; font-weight: 500; color: var(--muted); }
.location-open:hover { color: var(--text); }
.location-map { min-height: 360px; border-left: 1px solid var(--line); background: var(--surface-2); }
.location-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.inquiry { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius-lg) + 4px); padding: clamp(24px, 3.6vw, 44px); }
.inquiry:focus-within { border-color: var(--line-strong); }
.inquiry.in .btn-primary { animation: ctaPulse 1.5s ease-out .8s 1; }
@keyframes ctaPulse { from { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .55); } to { box-shadow: 0 0 0 14px rgba(var(--accent-rgb), 0); } }
.inquiry h3 { font-size: 1.7rem; margin-bottom: .35rem; }
.inquiry-note { color: var(--faint); font-size: .92rem; margin-bottom: 1.4rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field label { font-size: .86rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: .85em 1em; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; background-image: var(--select-arrow); background-repeat: no-repeat; background-position: right .8em center; background-size: 16px; padding-right: 2.4em; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
.field [aria-invalid="true"] { border-color: var(--accent-text); }
.form-msg { font-size: .92rem; min-height: 1.4em; margin: .8rem 0 0; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--accent-text); }

/* ---------- Footer ---------- */
/* The footer closes the page: links and legal, then the name set large and fading
   out of a low red light. The wordmark is type only; the logo above stays as supplied. */
.site-footer { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 104px) 0 env(safe-area-inset-bottom); }
.site-footer::after {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: 0; width: min(1100px, 120%); height: clamp(220px, 28vw, 420px); translate: -50% 45%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .3), rgba(var(--accent-rgb), .08) 55%, transparent); pointer-events: none;
}
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.footer-brand img { width: 160px; height: auto; margin-bottom: 1.2rem; }
.footer-brand p { color: var(--muted); max-width: 380px; margin-bottom: .3rem; }
.footer-social { margin-top: 1.2rem; }
.footer-tag { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; color: var(--text) !important; font-size: 1.35rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, max-content); gap: .9rem 4rem; justify-content: end; align-content: start; }
.footer-links a { text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-legal { grid-column: 1 / -1; color: var(--faint); font-size: .86rem; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-wordmark {
  margin: clamp(40px, 6vw, 72px) 0 0; text-align: center; white-space: nowrap; user-select: none;
  font: 600 min(13.6vw, 11.5rem)/.74 var(--font-display); letter-spacing: -0.06em;
  color: transparent; background: linear-gradient(to bottom, rgba(var(--ink), .2), rgba(var(--ink), .02) 92%);
  -webkit-background-clip: text; background-clip: text;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; }
@media (max-height: 480px) { /* too short to hold the statement on screen */
  .js .statement-stage { height: auto; }
  .js .hero-statement { position: static; min-height: 0; }
}
@media (max-width: 860px) { .hero-statement { padding-bottom: 96px; } } /* clears the sticky booking bar */

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), translate .3s var(--ease), border-color .3s, background-color .25s;
}
.js .reveal.in { opacity: 1; transform: none; }

/* Photos open with a mask instead of fading, and settle from a slight zoom. */
.js .shot.reveal, .js .about-media.reveal, .js .appoint-photo.reveal {
  opacity: 1; transform: none;
  clip-path: inset(100% 0 0 0 round var(--radius-lg));
  transition: clip-path 1.1s var(--ease), border-color .3s;
}
.js .shot.reveal.in, .js .about-media.reveal.in, .js .appoint-photo.reveal.in { clip-path: inset(0 round var(--radius-lg)); }

/* The contact copy arrives line by line; everything stays clickable throughout. */
.js .contact-copy.reveal { opacity: 1; transform: none; }
.js .contact-copy.reveal > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .contact-copy.reveal.in > * { opacity: 1; transform: none; }
.js .contact-copy.reveal.in > :nth-child(2) { transition-delay: .08s; }
.js .contact-copy.reveal.in > :nth-child(3) { transition-delay: .16s; }
.js .contact-copy.reveal.in > :nth-child(n+4) { transition-delay: .24s; }
/* Photos pull focus as they open: soft and dim, then sharp. */
.js .shot.reveal img, .js .appoint-photo.reveal img, .js .about-media.reveal img { transition: transform 1.4s var(--ease), filter 1.2s var(--ease); }
.js .shot.reveal:not(.in) img, .js .appoint-photo.reveal:not(.in) img, .js .about-media.reveal:not(.in) img { transform: scale(1.1); filter: blur(14px) brightness(.6); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .shot.reveal, .js .about-media.reveal, .js .appoint-photo.reveal { clip-path: none; }
  .js .shot.reveal:not(.in) img, .js .appoint-photo.reveal:not(.in) img, .js .about-media.reveal:not(.in) img { transform: none; filter: none; }
  .js .email-link::after { transform: none; }
  .js .contact-copy.reveal > * { opacity: 1; transform: none; }
  .marquees { mask-image: none; -webkit-mask-image: none; padding-inline: var(--gutter); }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .values { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service-wide { grid-column: span 2; grid-template-columns: auto 1fr; }
  .service-wide .mini-list { grid-column: 1 / -1; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  :root[data-theme="day"] { --hero-veil-mid: .84; --hero-veil-right: .78; }
  .hero-foot { grid-template-columns: 1fr; align-items: start; }
  .hero-card { max-width: 560px; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .about, .appoint, .contact, .expertise-split, .location, .story-split { grid-template-columns: 1fr; }
  .about-media, .story-head { position: relative; top: auto; }
  .location-map { border-left: 0; border-top: 1px solid var(--line); }
  .location-map, .location-map iframe { min-height: 320px; }
  .about-media { aspect-ratio: 4 / 3; }
  .about-media img:not(.about-logo) { object-position: center 30%; }
  .about-logo { width: 55%; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand img { width: 140px; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100dvh - var(--header-h)); margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--bg); border-top: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .primary-nav.open { opacity: 1; transform: none; visibility: visible; }
  .primary-nav a { padding: 1rem 0; font-size: 1.1rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .primary-nav .nav-contact { display: block; }
  .header-actions { margin-left: auto; }

  .grid-3 { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .flow-panel { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: start; }

  .sticky-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    padding: 8px 8px 8px 20px; border-radius: 999px;
    background: rgba(var(--panel), .82); border: 1px solid rgba(var(--ink), .12);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-bar);
    transform: translateY(150%); transition: transform .35s var(--ease);
  }
  .sticky-cta.show { transform: none; }
  .sticky-cta div { display: flex; flex-direction: column; line-height: 1.25; }
  .sticky-cta strong { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; font-size: .95rem; }
  .sticky-cta span { color: var(--muted); font-size: .82rem; }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header-actions .btn, .header-social { display: none; } /* phones: keep the header uncrowded */
  .hero-ctas .btn { flex: 1 1 100%; }
  .eyebrow-pill { font-size: .64rem; letter-spacing: .06em; padding: .45rem .8rem .45rem .7rem; }
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero-foot { margin-top: 28px; padding-top: 24px; }
  .hero-card { padding: 18px 20px; }
  .spec-list { grid-template-columns: 1fr 1fr; gap: .6rem 1rem; }
  .spec-list li { font-size: .84rem; align-items: flex-start; line-height: 1.35; }
  .spec-list li::before { margin-top: .5em; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts li { padding: 1.1rem; }
  .hero-facts li:nth-child(n+3) { grid-column: 1 / -1; }
  .section-head { margin-bottom: 40px; }
  .card, .project { padding: 1.5rem; }
  .services { grid-template-columns: 1fr; }
  .service-wide { grid-column: auto; display: flex; flex-direction: column; }
  .service-wide .icon { margin-bottom: 1.3rem; }
  .mini-list-2 { grid-template-columns: 1fr; }
  .tools > div { grid-template-columns: 1fr; gap: .2rem; }
  .flow-chain { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: -4px; padding-inline: 4px; scrollbar-width: none; }
  .flow-chain::-webkit-scrollbar { display: none; }
  .flow-chain li { scroll-snap-align: start; }
  .flow-nav .btn { flex: 1; }
  .gallery { grid-auto-rows: 150px; gap: 8px; }
  .shot-lg { grid-column: span 2; grid-row: span 1; }
  .shot figcaption { font-size: .82rem; padding: .7rem .8rem; }
  .values { grid-template-columns: 1fr 1fr; }
  .values .value:last-child { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr; }
  .contact-meta { grid-template-columns: 1fr 1fr; }
  .marquees { --logo-h: 56px; --cell-gap: 18px; }
  .about-media { aspect-ratio: 4 / 5; }
  .about-media img:not(.about-logo) { object-position: center; }
}

@media (max-width: 380px) { /* small phones: logo, theme switch and menu still fit on one row */
  .header-inner { gap: 1rem; }
  .brand img { width: 122px; }
  .header-actions { gap: .5rem; }
  .values { grid-template-columns: 1fr; }
  .values .value:last-child { grid-column: auto; }
}
:root[data-theme="day"] .footer-wordmark { background-image: linear-gradient(to bottom, rgba(var(--ink), .09), rgba(var(--ink), 0) 92%); }
:root[data-theme="day"] .site-footer::after { opacity: .45; }
