/* =========================================================
   Loud Silencers Acoustics
   ========================================================= */

/* ---------- Theme tokens ---------- */
:root {
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f2ec;
  --bg-2: #ede8df;
  --surface: #ffffff;
  --surface-2: #f8f6f1;
  --line: rgba(24, 22, 16, .1);
  --line-strong: rgba(24, 22, 16, .2);
  --text: #171815;
  --muted: #61645d;
  --accent: #e69a2a;
  --accent-ink: #a9600a;
  --accent-soft: rgba(230, 154, 42, .14);
  --green: #1f7a45;
  --on-accent: #1b1305;
  --glass: rgba(255, 255, 255, .7);
  --shadow: 0 30px 70px -35px rgba(60, 45, 20, .35);
  --wave: 201, 124, 18;
  --logo-filter: brightness(0);
  --logo-opacity: .55;
  --grain: .035;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 em, h2 em, .footer__big em {
  font-style: italic;
  color: var(--accent-ink);
}

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Eyebrow + equaliser ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--accent);
}
.eyebrow:has(.eq)::before { display: none; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i {
  width: 3px; height: 100%; border-radius: 2px; background: var(--accent);
  transform-origin: bottom;
  animation: eq 1.4s var(--ease) infinite;
}
.eq i:nth-child(2) { animation-delay: -.4s; }
.eq i:nth-child(3) { animation-delay: -.8s; }
.eq i:nth-child(4) { animation-delay: -1.1s; }
@keyframes eq {
  0%, 100% { transform: scaleY(.25); }
  50% { transform: scaleY(1); }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease-out), background-color .3s, border-color .3s, color .3s, box-shadow .4s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: .88rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -12px rgba(241, 169, 60, .65); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 16px 40px -14px rgba(241, 169, 60, .8); }

.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: var(--accent-soft); }

/* Dark ink on the brand green: 3.02:1 -> ~7:1 (WCAG AA needs 4.5:1). The
   button is used on a phone, outdoors, so the contrast is the point. */
.btn--wa { background: #1faa59; color: #08281a; }
.contact__copy .btn--wa { margin-top: 32px; }
.footer .btn--wa { margin-top: 26px; }
.btn--wa svg { width: 18px; height: 18px; }
.btn--wa svg.wa-i { fill: currentColor; stroke: none; }
.btn--wa:hover { background: #1b964e; }
.btn--wa:hover svg { transform: none; }

.icon-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: transparent;
  transition: background-color .3s, border-color .3s, transform .3s var(--ease-out), opacity .3s;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.icon-btn:disabled { opacity: .35; pointer-events: none; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-block: 18px;
  transition: padding .4s var(--ease), background-color .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-block: 10px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: auto; transition: transform .8s var(--ease-out); }
.brand:hover img { transform: rotate(-20deg); }
.brand__text { font-weight: 700; font-size: 1rem; line-height: 1.05; letter-spacing: -.01em; }
.brand__text small { display: block; font-weight: 500; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav__links { display: flex; gap: 6px; padding: 6px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 40%, transparent); }
.nav__links > a, .nav__item > a {
  position: relative;
  padding: 8px 16px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: color .3s, background-color .3s;
}
.nav__links > a:hover, .nav__item > a:hover, .has-mega:hover > a { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  display: grid; gap: 4px;
  margin: 12px var(--gutter) 0;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: drop .5s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 12px 10px; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 12px; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 85% 20%, var(--accent-soft), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, color-mix(in srgb, var(--green) 10%, transparent), transparent 70%);
}
.hero__waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.6vw, 6.2rem);
  line-height: .94;
  letter-spacing: -.02em;
  margin-bottom: 28px;
}
.hero__title em {
  background: linear-gradient(100deg, var(--accent-ink), var(--accent) 60%, var(--accent-ink));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sheen 8s ease-in-out infinite;
  padding-right: .08em;
}
@keyframes sheen { 50% { background-position: 100% 0; } }

.hero__lede { font-size: 1.12rem; color: var(--muted); max-width: 33em; margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(20px, 4vw, 48px);
  margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero__stats dt { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--text); }
.hero__stats dd { margin: 8px 0 0; font-size: .82rem; color: var(--muted); max-width: 13ch; line-height: 1.4; }

.hero__media { position: relative; padding: 0 0 60px 40px; }
.hero__main {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  isolation: isolate;
  transform: translateZ(0);
  outline: 1px solid var(--line-strong);
  outline-offset: -1px;
}
.hero__main img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-2%, -1%); } }

.hero__float {
  position: absolute; left: 0; bottom: 0; margin: 0;
  width: 42%; aspect-ratio: 3 / 4;
  border-radius: var(--radius); overflow: hidden;
  border: 6px solid var(--bg);
  box-shadow: var(--shadow);
  animation: bob 7s ease-in-out infinite;
  transition: border-color .5s var(--ease);
}
.hero__float img { width: 100%; height: 100%; object-fit: cover; }
@keyframes bob { 50% { transform: translateY(-12px); } }

.hero__badge {
  position: absolute; top: 28px; right: -18px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 16px; border-radius: 18px;
  box-shadow: var(--shadow);
  animation: bob 8s ease-in-out -3s infinite;
}
.hero__badge strong { display: block; font-size: 1.05rem; line-height: 1.1; }
.hero__badge small { color: var(--muted); font-size: .8rem; }

.meter { display: flex; align-items: center; gap: 3px; height: 34px; }
.meter span {
  width: 4px; border-radius: 4px; background: var(--accent);
  height: calc(var(--h, 1) * 100%);
  animation: meter 2.6s var(--ease) infinite;
}
.meter span:nth-child(1) { --h: 1; }
.meter span:nth-child(2) { --h: .82; animation-delay: -.2s; }
.meter span:nth-child(3) { --h: .66; animation-delay: -.4s; }
.meter span:nth-child(4) { --h: .5; animation-delay: -.6s; }
.meter span:nth-child(5) { --h: .36; animation-delay: -.8s; opacity: .8; }
.meter span:nth-child(6) { --h: .24; animation-delay: -1s; opacity: .6; }
.meter span:nth-child(7) { --h: .14; animation-delay: -1.2s; opacity: .4; }
@keyframes meter { 50% { transform: scaleY(.55); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 24px; height: 38px; border-radius: 14px;
  border: 1.5px solid var(--line-strong);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 3px; background: var(--accent);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Clients marquee ---------- */
.clients { padding: 40px 0 70px; border-bottom: 1px solid var(--line); }
.clients__label { text-align: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: clamp(36px, 5vw, 72px); width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: 46px; width: auto;
  filter: var(--logo-filter); opacity: var(--logo-opacity);
  transition: opacity .3s;
}
.marquee__track img:hover { opacity: .9; }
@keyframes marquee { to { transform: translateX(calc(-50% - clamp(36px, 5vw, 72px) / 2)); } }

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 12vw, 150px) 0; position: relative; }
.section--alt { background: var(--bg-2); transition: background-color .5s var(--ease); }
.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }
.section__head h2 { margin-bottom: 22px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .section__lede { margin-inline: auto; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section__head--split h2 { margin-bottom: 0; }
.section__head--split .section__lede { max-width: 26em; margin: 0; }
.section__lede { color: var(--muted); font-size: 1.08rem; max-width: 38em; }

/* ---------- Services bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 270px;
  gap: 16px;
}
.tile {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
  color: #fff;
  background: var(--surface);
}
.tile--xl { grid-column: span 2; grid-row: span 2; }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease-out), filter .8s;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 9, 8, 0) 30%, rgba(8, 9, 8, .82) 100%);
  transition: opacity .6s;
}
.tile::after {
  content: "";
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1305' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0; transform: scale(.6) rotate(-45deg);
  transition: opacity .4s, transform .6s var(--ease-out);
}
.tile:hover img { transform: scale(1.08); }
.tile:hover::after { opacity: 1; transform: none; }
.tile__body { position: absolute; inset: auto 0 0; padding: 24px 26px; }
.tile__num { display: block; font-size: .75rem; letter-spacing: .2em; color: rgba(255, 255, 255, .6); margin-bottom: 6px; }
.tile h3 { font-family: var(--font-display); font-size: 1.85rem; line-height: 1.05; margin-bottom: 6px; }
.tile--xl h3 { font-size: clamp(2.2rem, 3.4vw, 3rem); }
.tile p {
  margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .78); max-width: 32em; line-height: 1.5;
  overflow: hidden;
  transition: opacity .5s, transform .5s var(--ease-out);
}
@media (hover: hover) {
  .tile:not(.tile--xl) p { opacity: 0; transform: translateY(8px); max-height: 0; transition: opacity .5s, transform .5s var(--ease-out), max-height .6s var(--ease-out); }
  .tile:not(.tile--xl):hover p, .tile:not(.tile--xl):focus-visible p { opacity: 1; transform: none; max-height: 6em; }
}

.services-list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  margin-top: 40px; padding: 26px 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.services-list__title { margin: 0; font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.services-list ul { display: flex; flex-wrap: wrap; gap: 10px; }
.services-list li {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: .9rem;
  transition: background-color .3s, border-color .3s, color .3s;
}
.services-list li:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ---------- Solutions rail ---------- */
.rail-wrap { position: relative; --rail-cols: 4; }
.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((min(100vw - var(--gutter) * 2, var(--container)) - (var(--rail-cols) - 1) * 22px) / var(--rail-cols));
  gap: 22px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px max(var(--gutter), calc((100vw - var(--container)) / 2)) 12px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  scrollbar-width: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging .card { pointer-events: none; }
.card { scroll-snap-align: start; }
.card__img {
  aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 20px; background: var(--surface);
}
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); -webkit-user-drag: none; user-select: none; }
.card:hover .card__img img { transform: scale(1.06); }
.card h3 { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .94rem; margin: 0; line-height: 1.55; }
.rail-controls { display: flex; gap: 10px; }
.rail__arrow {
  position: absolute; z-index: 3;
  top: calc(4px + (min(100vw - var(--gutter) * 2, var(--container)) - (var(--rail-cols) - 1) * 22px) / var(--rail-cols) * 2 / 3);
  transform: translateY(-50%);
  background: var(--surface); box-shadow: var(--shadow);
}
.rail__arrow--prev { left: max(12px, calc((100vw - min(100vw - var(--gutter) * 2, var(--container))) / 4 - 26px)); }
.rail__arrow--next { right: max(12px, calc((100vw - min(100vw - var(--gutter) * 2, var(--container))) / 4 - 26px)); }
.rail__arrow:disabled { opacity: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.step { position: relative; padding-top: 34px; }
.step::before, .step::after { content: ""; position: absolute; top: 0; left: 0; height: 1px; }
.step::before { right: 0; background: var(--line-strong); }
.step::after {
  width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease-out) calc(var(--d, 0s) + .3s);
}
.step.is-in::after { transform: scaleX(1); }
.step__n { display: block; font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--accent-ink); margin-bottom: 18px; font-style: italic; }
.step h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 8vw, 110px); align-items: center; }
.about__media { position: relative; padding: 0 70px 80px 0; }
.about__img { border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow); }
.about__img--a { width: 100%; aspect-ratio: 4 / 5; }
.about__img--b {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4;
  border: 6px solid var(--bg-2); border-radius: var(--radius);
  transition: border-color .5s var(--ease);
}
.about__seal {
  position: absolute; top: 28px; left: -22px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; line-height: 1.2;
  box-shadow: var(--shadow);
}
.about__seal img { width: 44px; height: auto; animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.about__copy h2 { margin-bottom: 28px; }
.about__copy > p { color: var(--muted); font-size: 1.06rem; }
.checks { display: grid; gap: 18px; margin-top: 36px; }
.checks li { display: flex; gap: 16px; align-items: flex-start; }
.checks strong { display: block; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.checks div { color: var(--muted); font-size: .95rem; }
.check {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1a93c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 15px no-repeat;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

/* ---------- Work gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 16px;
  grid-auto-flow: dense;
}
.shot { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.shot--a { grid-column: span 2; grid-row: span 2; }
.shot--t { grid-row: span 2; }
.shot--w { grid-column: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.shot:hover img { transform: scale(1.06); }
.shot__cap {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  display: flex; flex-direction: column;
  width: fit-content; max-width: calc(100% - 28px);
  padding: 10px 16px; border-radius: 14px;
  background: rgba(12, 13, 12, .55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.3;
  transform: translateY(8px); opacity: .0;
  transition: transform .6s var(--ease-out), opacity .5s;
}
.shot__cap > span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
[data-theme="light"] .shot__cap > span { color: #ffc56b; }
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { transform: none; opacity: 1; }
@media (hover: none) { .shot__cap { transform: none; opacity: 1; } }

/* ---------- Reviews ---------- */
.reviews { text-align: center; overflow: hidden; }
.reviews::before {
  content: "\201C";
  position: absolute; left: 50%; top: 40px; translate: -50% 0;
  font-family: var(--font-display); font-size: 26rem; line-height: 1;
  color: var(--accent); opacity: .07; pointer-events: none;
}
.reviews__inner { position: relative; max-width: 980px; }
.reviews .eyebrow { justify-content: center; }
.stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 30px; }
.stars svg { width: 20px; height: 20px; fill: var(--accent); }
.quotes { display: grid; }
.quote {
  grid-area: 1 / 1; margin: 0;
  opacity: 0; filter: blur(8px); transform: translateY(14px);
  transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease);
  pointer-events: none;
}
.quote.is-active { opacity: 1; filter: none; transform: none; pointer-events: auto; }
.quote p { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.18; letter-spacing: -.01em; margin-bottom: 26px; }
.quote footer { color: var(--muted); font-size: .9rem; letter-spacing: .04em; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.dots button {
  width: 34px; height: 4px; padding: 0; border: 0; border-radius: 4px;
  background: var(--line-strong); position: relative; overflow: hidden;
}
.dots button::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.dots button.is-active::after { animation: fill var(--dur, 7s) linear forwards; }
.reviews.is-paused .dots button.is-active::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; z-index: -1;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact__copy h2 { margin-bottom: 22px; }
.contact__list { display: grid; gap: 22px; margin-top: 40px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__list small { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.contact__list a { font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.contact__list a:hover { background-size: 100% 1px; }
.ci { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); }
.ci svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.form { padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form h3 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; letter-spacing: .02em; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b9e98' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 44px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e2574c; }
.form__note { margin: 14px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 34px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__big {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 13vw, 12.5rem);
  line-height: .9; letter-spacing: -.03em;
  text-align: center; white-space: nowrap;
  padding: 50px 0 70px;
  background: linear-gradient(180deg, var(--text) 10%, transparent 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .9;
}
.footer__big em { -webkit-text-fill-color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a, .footer__base a { transition: color .3s; }
.footer ul a:hover, .footer__base a:hover { color: var(--accent-ink); }
.footer__grid p { color: var(--text); margin: 0; }
.footer__tag { color: var(--muted) !important; max-width: 24em; margin-top: 20px !important; font-size: .95rem; }
.footer__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* =========================================================
   Multi-page components
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Nav: current page + services mega menu ---------- */
.nav__links > a[aria-current="page"], .nav__item > a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.nav__item { position: relative; display: flex; }
.nav__item > a { display: inline-flex; align-items: center; gap: 4px; }
.chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.has-mega:hover .chev, .has-mega:focus-within .chev { transform: rotate(180deg); }
.mega {
  position: absolute; top: 100%; left: -6px; padding-top: 14px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .25s, transform .35s var(--ease-out), visibility 0s .35s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__inner {
  display: grid; grid-template-columns: 1fr 220px; gap: 24px;
  width: 760px; padding: 24px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow);
}
.mega__title { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px 10px; font-weight: 600; }
.mega__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.mega__list a { display: block; padding: 8px 10px; border-radius: 10px; font-size: .9rem; color: var(--text); transition: background-color .2s, color .2s; }
.mega__list a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.mega__feature { position: relative; border-radius: var(--radius-sm); overflow: hidden; color: #fff; display: block; min-height: 220px; }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.mega__feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .8)); }
.mega__feature:hover img { transform: scale(1.06); }
.mega__feature span { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.mega__feature small { display: block; font-family: var(--font-body); font-size: .78rem; opacity: .75; margin-top: 4px; }

.mobile-menu { max-height: calc(100svh - 100px); overflow-y: auto; }
.mobile-menu a[aria-current="page"] { color: var(--accent-ink); }
.mobile-menu details { border-bottom: 1px solid var(--line); }
.mobile-menu summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 10px; font-size: 1.15rem; cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu details[open] .chev { transform: rotate(180deg); }
.mobile-menu__sub { display: grid; padding: 0 10px 12px; }
.mobile-menu__sub a { padding: 7px 0 7px 12px !important; font-size: .98rem !important; color: var(--muted); border: 0 !important; border-left: 1px solid var(--line-strong) !important; }

/* ---------- Page hero ---------- */
.phero { position: relative; padding: 150px 0 40px; overflow: hidden; }
.phero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 70% at 90% 0%, var(--accent-soft), transparent 70%);
}
.phero__grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.phero--media .phero__grid { grid-template-columns: 1.05fr .95fr; }
.phero__copy { max-width: 760px; }
.phero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.6vw, 5rem);
  line-height: .98; letter-spacing: -.02em; margin-bottom: 24px;
  text-wrap: balance;
}
.phero__title em { font-style: italic; color: var(--accent-ink); }
.phero__lede { font-size: 1.1rem; color: var(--muted); max-width: 36em; margin-bottom: 32px; }
.phero__media {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4;
  box-shadow: var(--shadow); outline: 1px solid var(--line-strong); outline-offset: -1px;
  background: var(--surface);
}
.phero__media img { width: 100%; height: 100%; object-fit: cover; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs [aria-current] { color: var(--text); }
.crumbs__sep { opacity: .4; }

.section--tight { padding: clamp(60px, 8vw, 100px) 0; }
.section__head--split .section__aside { display: grid; gap: 20px; justify-items: start; max-width: 26em; }
.section__head--split > .btn { flex: none; }
.section__ctas { margin-top: 36px; }
.services-list__all { margin-left: auto; }
.services-list li a { display: block; }
.services-list li:has(a) { padding: 0; }
.services-list li a { padding: 8px 16px; }
.rail-controls { align-items: center; }
.rail-controls .btn { margin-right: 6px; }
a.card { display: block; color: inherit; }
.reviews__all { margin-top: 36px; }
.contact__more { margin: 32px 0 0 10px; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(60px, 8vw, 100px) 0; }
.cta-band__inner {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding: clamp(36px, 5vw, 64px);
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--bg-2);
}
.cta-band__inner::before {
  content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; right: -200px; top: -300px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
}
.cta-band h2 { margin-bottom: 14px; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.cta-band p { color: var(--muted); max-width: 34em; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Content layout + prose ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 80px); align-items: start; }
.prose { max-width: 760px; color: var(--muted); font-size: 1.04rem; }
.prose--narrow { margin-inline: auto; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(2rem, 3.2vw, 2.7rem); color: var(--text); margin: 56px 0 18px; }
.prose h3 { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.15; color: var(--text); margin: 40px 0 12px; }
.prose h4 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin: 28px 0 8px; }
.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose ul:not([class]) { display: grid; gap: 10px; margin: 0 0 1.4em; }
.prose ul:not([class]) li { position: relative; padding-left: 22px; }
.prose ul:not([class]) li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose__fig { margin: 28px 0; }
.prose__fig img { border-radius: var(--radius); width: 100%; }

.checklist { display: grid; gap: 12px; margin: 0 0 1.6em; }
.checklist li { position: relative; padding-left: 40px; color: var(--text); min-height: 28px; padding-top: 2px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1a93c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.numbered { counter-reset: n; display: grid; gap: 14px; margin: 0 0 1.6em; }
.numbered li { counter-increment: n; position: relative; padding: 18px 20px 18px 70px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); }
.numbered li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 20px; top: 14px; font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--accent-ink); }

.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0 0 1.6em; }
.specs div { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); }
.specs dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 4px 0 0; color: var(--text); font-weight: 600; }

.faq { display: grid; gap: 10px; margin: 0 0 1.6em; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 20px; cursor: pointer; color: var(--text); font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details > div { padding: 0 20px 8px; }

.table-wrap { overflow-x: auto; margin: 0 0 1.6em; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table-wrap td { padding: 10px 12px; border-bottom: 1px solid var(--line); }

/* ---------- Aside ---------- */
.aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside__card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); display: grid; gap: 12px; }
.aside__card h3 { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.1; }
.aside__card > p { color: var(--muted); font-size: .94rem; margin: 0 0 6px; }
.aside__card .btn svg { flex: none; }
.aside__card .btn--ghost svg { fill: none; stroke: currentColor; }
.aside__note { font-size: .8rem; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.aside__links { padding: 6px 4px; }
.aside__links h4 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.aside__links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .94rem; transition: color .2s; }
.aside__links a:hover { color: var(--accent-ink); }
.aside__links svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }

.facts { display: grid; gap: 0; margin: 0 0 8px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 600; }
.facts a { color: var(--accent-ink); }

/* ---------- Photo gallery + lightbox ---------- */
.pgallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pgallery[data-cols="1"] { grid-template-columns: 1fr; }
.pgallery[data-cols="2"], .pgallery[data-cols="4"] { grid-template-columns: repeat(2, 1fr); }
.pgallery--inline { grid-template-columns: repeat(2, 1fr); margin: 24px 0 28px; }
.pgallery__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface); cursor: zoom-in; }
.pgallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.pgallery__item:hover img { transform: scale(1.05); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(6, 7, 6, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; width: auto; height: auto; border-radius: 12px; }
.lightbox button {
  position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(20, 22, 20, .6); color: #fff; display: grid; place-items: center;
}
.lightbox button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 20px; top: 50%; translate: 0 -50%; }

/* ---------- Grids: services, products, projects ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; gap: 16px; }
.svc-grid .tile p { opacity: 1 !important; transform: none !important; max-height: none !important; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  font-size: .9rem; font-weight: 500; transition: background-color .25s, border-color .25s, color .25s;
}
.chip:hover { border-color: var(--text); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
.pcard { display: block; }
.pcard[hidden], .shot[hidden] { display: none; }
.pcard__img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-bottom: 16px; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pcard:hover .pcard__img img { transform: scale(1.06); }
.pcard__cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pcard h3 { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.12; margin: 4px 0 8px; }
.pcard__more { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--accent-ink); }
.pcard__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.pcard:hover .pcard__more svg { transform: translateX(4px); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shot--card { display: block; aspect-ratio: 4 / 5; }
.shot--card .shot__cap { opacity: 1; transform: none; }
.shot__cap small { display: block; font-weight: 500; font-size: .78rem; opacity: .7; margin-top: 2px; }

/* ---------- Product detail ---------- */
.pdp { padding: 140px 0 40px; position: relative; }
.pdp::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 100% 0%, var(--accent-soft), transparent 70%); }
.pdp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.pdp__main { display: block; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); cursor: zoom-in; outline: 1px solid var(--line-strong); outline-offset: -1px; }
.pdp__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin-top: 12px; }
.pdp__thumb { aspect-ratio: 1; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--surface); opacity: .6; transition: opacity .25s, border-color .25s; }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb:hover { opacity: 1; }
.pdp__thumb.is-active { border-color: var(--accent); opacity: 1; }
.pdp__info { padding-top: 10px; }
.pdp__info .phero__title { font-size: clamp(2.6rem, 4.6vw, 4.2rem); }
.pdp__note { color: var(--muted); font-size: .86rem; margin-top: 20px; }

/* ---------- Pager ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager__link { padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--line); font-family: var(--font-display); font-size: 1.6rem; line-height: 1.15; transition: border-color .3s, background-color .3s; }
.pager__link small { display: block; font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pager__link:hover { border-color: var(--accent); background: var(--accent-soft); }
.pager__link--next { text-align: right; }

/* ---------- About ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; }
.stat-row div { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.stat-row dt { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--accent-ink); }
.stat-row dd { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }
.section:not(.section--alt) .about__img--b { border-color: var(--bg); }

/* ---------- Testimonials ---------- */
.review-grid { columns: 3 300px; column-gap: 20px; }
.review-card {
  break-inside: avoid; margin: 0 0 20px; padding: 28px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2);
}
.review-card .stars { justify-content: flex-start; margin-bottom: 16px; }
.review-card .stars svg { width: 16px; height: 16px; }
.review-card blockquote { margin: 0 0 22px; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.3; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; }
.review-card strong { display: block; font-size: .95rem; }
.review-card small { color: var(--muted); font-size: .8rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }

/* ---------- Glossary ---------- */
.gloss__bar {
  position: sticky; top: 76px; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  padding: 14px; margin-bottom: 40px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.gloss__search { position: relative; flex: 1 1 260px; max-width: 360px; }
.gloss__search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.gloss__search input {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 11px 16px 11px 42px;
}
.gloss__search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.gloss__jump { display: flex; flex-wrap: wrap; gap: 4px; }
.gloss__jump a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; font-size: .88rem; font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s; }
.gloss__jump a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.gloss__letter { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 170px; }
.gloss__letter[hidden] { display: none; }
.gloss__letter > h2 { font-size: 4rem; color: var(--accent-ink); font-style: italic; }
.gloss__letter dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.gloss__term[hidden] { display: none; }
.gloss__term dt { font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.gloss__term dd { margin: 0; color: var(--muted); font-size: .96rem; }
.gloss__term dd p { margin: 0 0 .6em; }
.gloss__empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Contact page ---------- */
.branches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.branch { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.branch h3 { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; margin-bottom: 4px; }
.branch__person { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.branch ul { display: grid; gap: 10px; margin-top: 14px; }
.branch li { display: flex; gap: 12px; align-items: center; font-size: .92rem; overflow-wrap: anywhere; }
.branch .ci { width: 36px; height: 36px; }
.branch .ci svg { width: 16px; height: 16px; }
.branch a:hover { color: var(--accent-ink); }
.contact__note { text-align: center; margin-top: 16px; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 8; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 1080px) {
  .phero--media .phero__grid, .pdp__grid, .layout { grid-template-columns: 1fr; }
  .phero__media { max-width: 640px; }
  .aside { position: static; }
  .svc-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .gloss__letter { grid-template-columns: 1fr; gap: 6px; }
  .map { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .phero { padding: 120px 0 50px; }
  .pdp { padding-top: 110px; }
  .svc-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .pcard h3 { font-size: 1.25rem; }
  .work-grid, .pgallery, .pgallery--inline, .branches, .pager { grid-template-columns: 1fr !important; }
  .gloss__letter dl { grid-template-columns: 1fr; }
  .gloss__bar { top: 66px; }
  .section__head--split .section__aside { max-width: none; }
  .services-list__all { margin-left: 0; }
  .pager__link--next { text-align: left; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }


/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .rail-wrap { --rail-cols: 3; }
}

@media (max-width: 760px) {
  .rail-wrap { --rail-cols: 2; }
}

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; }
  .hero__badge { right: 12px; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 250px; }
  .tile--wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 44px 28px; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__cta { display: none; }
  .hero { padding-top: 110px; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero__stats dt { font-size: 2rem; }
  .hero__media { padding-left: 24px; padding-bottom: 50px; }
  .hero__badge { top: 16px; right: 8px; padding: 10px 14px 10px 12px; }
  .scroll-cue { display: none; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .tile--xl, .tile--wide, .tile--tall { grid-column: auto; grid-row: auto; }
  .tile--xl { grid-row: span 1; height: auto; }
  .section__head--split { flex-direction: column; align-items: flex-start; }
  .services-list { padding: 22px; }
  .steps { grid-template-columns: 1fr; }
  .about__media { padding: 0 40px 60px 0; }
  .about__seal { left: 10px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .shot--a, .shot--w, .shot--t { grid-column: auto; grid-row: auto; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .reviews::before { font-size: 16rem; }
}

@media (max-width: 480px) {
  .rail-wrap { --rail-cols: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

.phero:not(.phero--media) { padding-bottom: 30px; }
.phero:not(.phero--media) + .section--tight { padding-top: 40px; }
.prose__fig img { width: auto; max-width: 100%; max-height: 560px; margin-inline: auto; background: var(--surface); }
.pdp__info .phero__lede { margin-bottom: 24px; }
@media (min-width: 1081px) { .gloss__letter > h2 { position: sticky; top: 180px; align-self: start; } }
@media (max-width: 1080px) { .pdp__info { order: -1; } }
@media (max-width: 640px) {
  .pdp__thumbs { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .work-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .shot--card .shot__cap { left: 8px; right: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 8px 10px; font-size: .8rem; border-radius: 10px; }
  .shot--card .shot__cap small { display: none; }
  .shot__cap > span { font-size: .6rem; }
}

/* ---------- Per-service spec quote form ---------- */
#quote { scroll-margin-top: 120px; }
.form-wrap { max-width: 900px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form__grid .fopts, .form__grid .field--wide { grid-column: 1 / -1; }
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.field .req { font-style: normal; color: var(--accent-ink); }
.fopts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface-2); font-size: .88rem; color: var(--text);
  transition: border-color .3s, background-color .3s;
}
.opt:hover { border-color: var(--accent); }
/* Checkboxes keep their native control — the generic .field input rule above
   must never apply appearance:none to them or the tick disappears. */
.opt input {
  accent-color: var(--accent-ink);
  width: 16px; height: 16px; flex: none; margin: 0; padding: 0;
  appearance: auto; -webkit-appearance: auto;
  border: 0; background: none; box-shadow: none;
}
.opt input:checked { accent-color: var(--accent-ink); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt input:checked + span { color: var(--accent-ink) !important; }
.opt span { font-size: .88rem !important; font-weight: 500 !important; color: var(--text) !important; letter-spacing: 0 !important; margin: 0 !important; }
.fopts.is-invalid { border-radius: var(--radius-sm); outline: 1px solid #e2574c; outline-offset: 4px; }
.hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 700px) { .form__grid, .fopts__grid { grid-template-columns: 1fr; } }
.section__lede a { color: var(--text); font-weight: 600; text-decoration: none; }
.section__lede a:hover { color: var(--accent-ink); }
.lede-note { max-width: 46em; margin: 16px auto 0; font-size: .85rem; font-style: italic; color: var(--muted); }

/* ---------- Inline product quote form ---------- */
.pdp__quote { max-width: 540px; margin-top: 22px; scroll-margin-top: 120px; }
.pdp__quote.is-open { animation: qopen .55s var(--ease-out) both; }
@keyframes qopen { from { opacity: 0; transform: translateY(-10px); } }
.form--mini { padding: 24px; }
.form--mini .field { margin-bottom: 12px; }
.form--mini .btn { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .pdp__quote.is-open { animation: none; } }

/* ---------- Side images in prose (1/3 width) ---------- */
.prose__fig--third { float: right; clear: both; width: 33%; max-width: 320px; margin: 6px 0 18px 28px; }
.prose__fig--third.prose__fig--left { float: left; clear: both; margin: 6px 28px 18px 0; }
.prose__fig--third img { width: 100%; max-height: none; }
.prose--floats h2 { clear: both; }
.prose--floats::after { content: ""; display: table; clear: both; }
@media (max-width: 640px) {
  .prose__fig--third, .prose__fig--third.prose__fig--left { float: none; width: auto; margin: 20px auto; }
}

/* =========================================================
   Lead capture — honeypot, no-JS fallback, error state
   ========================================================= */
/* Honeypot: invisible to people, irresistible to bots. Never display:none —
   some bots skip those — so it is moved off-canvas instead. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__noscript {
  margin: 18px 0 0; padding: 16px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); font-size: .9rem; line-height: 1.5;
}
.form__noscript a { text-decoration: underline; text-underline-offset: 2px; }

/* A rejected write must look like a problem, not like success. */
.form__note.is-error { color: #a1251a; font-weight: 600; }

/* =========================================================
   Fast quote drawer — the hero CTA opens this in place
   ========================================================= */
.quote-drawer {
  position: fixed; inset: auto 0 0 0; margin: 0 auto;
  width: calc(100% - 32px); max-width: 520px;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 90;
}
.quote-drawer[open] { animation: drawer-in .35s var(--ease-out) both; }
.quote-drawer::backdrop { background: rgba(20, 18, 12, .45); }
.quote-drawer__close {
  position: absolute; top: 12px; right: 14px;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--muted);
}
.quote-drawer h3 { font-family: var(--font-display); font-size: 2rem; line-height: 1.05; margin-bottom: 8px; }
.quote-drawer .form__note { text-align: left; margin: 0 0 18px; }
.quote-drawer .btn--block { margin-top: 6px; }
@keyframes drawer-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 641px) {
  .quote-drawer { inset: 0; margin: auto; height: fit-content; border-radius: var(--radius); }
}

/* =========================================================
   Mobile hero — one photograph leads, as it does on desktop
   ========================================================= */
@media (max-width: 640px) {
  .hero__copy { order: 2; }
  .hero__media {
    order: 1; max-width: none; padding: 0; margin-bottom: 26px;
  }
  /* The two-figure collage and the badge are desktop furniture; on a phone
     they push the headline off the fold. One room, one photograph. */
  .hero__media .hero__float, .hero__media .hero__badge { display: none; }
  .hero__media .hero__main {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  }
  .hero__media .hero__main img { width: 100%; height: 100%; object-fit: cover; }
}

/* =========================================================
   Typography — self-hosted (no fonts.googleapis.com request)
   Instrument Serif: display. Manrope: body (variable, 400–700).
   ========================================================= */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/instrument-serif-400.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/instrument-serif-400i.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/manrope-var.woff2") format("woff2");
}

/* The headline is the message — it must paint immediately. Fading the H1 in
   (1s transition + delay) delays Largest Contentful Paint for no gain. */
.js .hero__title.reveal { opacity: 1; transform: none; }

/* =========================================================
   Pinned proof — one named review beside the ask
   ========================================================= */
.pin-quote {
  margin: 28px 0 0;
  padding: 20px 22px;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pin-quote p {
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.35;
  margin: 0 0 8px;
}
.pin-quote cite {
  font-style: normal;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--muted);
}

/* Service-page eyebrow as a tagline: sentence case, still with the accent rule.
   The H1 keeps the service name (clarity + heading semantics); the voice lives
   in the line above it. */
.eyebrow--quote {
  text-transform: none;
  letter-spacing: .01em;
  font-size: .95rem;
  font-weight: 500;
}
.eyebrow--quote em { font-style: italic; color: var(--accent-ink); }

/* =========================================================
   Consent notice (F17) — slim, dismissible, never blocks the page.
   GTM is not gated on it; declining pushes Consent Mode denials.
   Grid, not flex: a 1fr column is constrained by the container, so the
   copy wraps inside the bar instead of forcing the row wider than the
   viewport (a `max-width: 64ch` flex item overflowed on a 390px screen).
   ========================================================= */
.vs-consent, .vs-consent * { box-sizing: border-box; }
.vs-consent {
  position: fixed; inset: auto 0 0 0; z-index: 120;  /* above the grain overlay (z 100) */
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 12px 20px;
  padding: 13px 18px;
  background: #111315; color: #FBFBF8;
  font-size: .8rem; line-height: 1.45;
  box-shadow: 0 -1px 0 rgba(251, 251, 248, .12);
}
.vs-consent[hidden] { display: none; }
.vs-consent__text { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.vs-consent__text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.vs-consent__actions { display: grid; grid-auto-flow: column; gap: 8px; }
.vs-consent__btn {
  appearance: none; font: inherit; cursor: pointer;
  padding: 7px 18px; border-radius: 999px;
  border: 1px solid rgba(251, 251, 248, .45);
  background: transparent; color: #FBFBF8;
  min-width: 0; white-space: nowrap;
}
.vs-consent__btn:hover { border-color: #FBFBF8; }
.vs-consent__btn--primary { background: #FBFBF8; color: #111315; border-color: #FBFBF8; }
.vs-consent__btn:focus-visible { outline: 2px solid #E9B44C; outline-offset: 2px; }
@media (max-width: 640px) {
  .vs-consent {
    grid-template-columns: minmax(0, 1fr);
    font-size: .75rem; padding: 11px 14px; gap: 10px;
  }
  .vs-consent__actions { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .vs-consent__btn { padding: 8px 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .vs-consent { transition: opacity .2s ease; }
}

/* Compact accordion block (About / Contact / Shop / Portfolio).
   Heading beside the accordion on desktop, a fraction of the generic section
   padding, and a smaller display size — this is supporting detail, not a hero. */
.section--faq { padding: clamp(40px, 5vw, 64px) 0; }
.faq-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.faq-split__head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 12px; }
.faq-split__head p { color: var(--muted); margin: 0; font-size: .95rem; }
.faq-split .faq { margin: 0; gap: 8px; }
.faq-split .faq summary { padding: 13px 18px; }
@media (max-width: 860px) {
  .faq-split { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
/* Lists inside accordions: the global reset strips bullets, which made the
   "what to tell us" style lists read as one run-on paragraph. */
.faq details > div ul { list-style: disc; padding-left: 1.2em; margin: 0 0 1em; }
.faq details > div li { margin: .35em 0; }
.faq details > div p:last-child, .faq details > div ul:last-child { margin-bottom: .6em; }
