/* Navy depth theme: the palette from the portfolio tour, used site-wide */
:root {
  --cream: #f7f5f1;          /* light text on dark */
  --night: #18303b;          /* main background */
  --night-2: #223d4a;        /* alternate section background */
  --paper: var(--night);
  --ink: #f7f5f1;
  --muted: rgba(247, 245, 241, .66);
  --navy: #223d4a;
  --navy-deep: #18303b;
  --brass: #cfe1e8;
  --brass-soft: #cfe1e8;
  --line: rgba(247, 245, 241, .13);
  --glow: radial-gradient(ellipse 65% 55% at 50% 38%, rgba(207, 225, 232, .55) 0%, rgba(24, 48, 59, 0) 72%);
  --heading: #fff;
  --on-brass: #18303b;       /* text on brass buttons */
  --panel: rgba(255, 255, 255, .035);
  --header-bg: rgba(24, 48, 59, .78);
  --dialog-top: #223d4a;
  --serif: "Playfair Display", "Didot", Georgia, serif;
  --sans: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  margin: 0 0 1rem;
  font: 600 .72rem/1.2 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
}
.display {
  margin: 0;
  font: 400 clamp(2.4rem, 5.2vw, 4.6rem)/1.02 var(--serif);
  letter-spacing: -.01em;
}
.display em { color: var(--brass); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem;
  border: 0; border-radius: 999px;
  font: 600 .82rem/1 var(--sans); letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--brass); color: var(--on-brass); }
.btn-accent:hover { background: var(--brass-soft); }
.btn-light { background: rgba(255,255,255,.92); color: var(--navy); }
.btn-light:hover { background: var(--brass); color: var(--heading); }


/* ---------- Light theme: warm cream. Image-led areas below stay dark in both themes. ---------- */
[data-theme="light"] {
  --cream: #294a5a;
  --night: #f7f5f1;
  --night-2: #ece4da;
  --ink: #294a5a;
  --muted: rgba(41, 74, 90, .68);
  --navy-deep: #e2d9cc;
  --brass: #294a5a;
  --brass-soft: #c0633a;
  --line: rgba(41, 74, 90, .13);
  --glow: radial-gradient(ellipse 65% 55% at 50% 38%, rgba(207, 225, 232, .16) 0%, rgba(247, 245, 241, 0) 72%);
  --heading: #15181d;
  --panel: rgba(41, 74, 90, .04);
  --header-bg: rgba(247, 245, 241, .86);
  --dialog-top: #fbfaf7;
  color-scheme: light;
}
[data-theme="light"] :is(.build, .portfolio.is-3d, .lightbox, .ig-card, .sub-hero, .stop-card figcaption, .ba-tag, .tile span, .mini-ba figcaption, .qz-letter) {
  --cream: #f7f5f1; --night: #18303b; --night-2: #223d4a; --ink: #f7f5f1; --muted: rgba(247, 245, 241, .66);
  --brass: #cfe1e8; --brass-soft: #cfe1e8; --line: rgba(247, 245, 241, .13); --heading: #fff; --panel: rgba(255, 255, 255, .035);
  color: var(--cream);
}
[data-theme="light"] .awards .badges li { box-shadow: 0 0 0 1px var(--line); }
.site-header:not(.solid) { color: #fff; } /* over the hero photo in either theme */
[data-theme="light"] .site-header:not(.solid) .btn-accent { color: #18303b; }

/* Settings-driven bits (config.js) */
[data-section][hidden] { display: none !important; }
.announce {
  position: relative; z-index: 60; display: block; padding: .6rem var(--gutter); text-align: center;
  background: var(--brass); color: var(--on-brass); font: 600 .82rem/1.3 var(--sans); text-decoration: none;
}
.announce:hover { text-decoration: underline; }
body:has(.announce) .site-header { top: 2.4rem; }
.cfg-preview {
  position: fixed; left: 50%; bottom: 1rem; z-index: 90; transform: translateX(-50%);
  padding: .6rem .7rem .6rem 1rem; border-radius: 999px; background: #0a120d; color: #f7f5f1;
  border: 1px dashed #cfe1e8; font-size: .8rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.cfg-preview button { margin-left: .5rem; padding: .35rem .7rem; border-radius: 999px; border: 0; background: #cfe1e8; color: #18303b; font: 700 .74rem var(--sans); cursor: pointer; }

/* Theme toggle */
.theme-toggle {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%;
  border: 1px solid currentColor; background: none; color: inherit; cursor: pointer; opacity: .8; transition: opacity .2s, transform .4s var(--ease);
}
.theme-toggle:hover { opacity: 1; transform: rotate(-20deg); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--gutter);
  color: var(--heading);
  transition: background .4s, color .4s, padding .4s, box-shadow .4s;
}
.site-header.solid {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  color: var(--ink);
  padding-block: .75rem;
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-name { font: 500 1.45rem/1 var(--serif); letter-spacing: .01em; }
.brand-sub { margin-top: .35rem; font: 600 .6rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; opacity: .75; }
.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a { font-size: .88rem; font-weight: 500; text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { display: none; }
.mobile-nav { display: none; }

/* Scroll build */
.build { position: relative; height: 620vh; background: var(--night); }
.build-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #223d4a 0%, var(--night) 70%); /* shows as the room pulls back */
}
.build-frames {
  position: absolute; inset: 0; overflow: hidden; will-change: transform;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(207, 225, 232, 0);
}
.build-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.frame:first-child { opacity: 1; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
/* Shade only where text sits (bottom-left) and under the nav; the room itself stays open */
.build-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 55% at 0% 100%, rgba(24, 48, 59, .5) 0%, rgba(24, 48, 59, 0) 70%),
    linear-gradient(0deg, var(--night) 0%, rgba(24, 48, 59, .55) 7%, rgba(24, 48, 59, 0) 20%),  /* melts into the page below */
    linear-gradient(180deg, rgba(24, 48, 59, .5) 0%, rgba(24, 48, 59, 0) 16%);
  box-shadow: inset 0 0 14vw rgba(24, 48, 59, .55); /* navy vignette for depth */
}
/* Warm light that comes up as the kitchen is finished; opacity driven by scroll in main.js */
.build-light {
  position: absolute; inset: 0; pointer-events: none; opacity: .2;
  mix-blend-mode: soft-light;
  background:
    radial-gradient(ellipse 45% 55% at 68% 28%, rgba(255, 214, 150, .95), rgba(255, 214, 150, 0) 70%),
    radial-gradient(ellipse 40% 40% at 30% 30%, rgba(255, 226, 180, .7), rgba(255, 226, 180, 0) 70%);
}

.hero-copy, .chapter {
  position: absolute; left: var(--gutter); bottom: clamp(3.5rem, 10vh, 6.5rem);
  max-width: 30rem; color: var(--heading);
  text-shadow: 0 2px 24px rgba(11, 18, 14, .45);
}
.hero-copy h1 {
  margin: 0 0 1rem;
  font: 400 clamp(2.6rem, 5.4vw, 5rem)/.98 var(--serif);
  letter-spacing: -.015em;
}
/* Desktop: text sits on frosted glass so the room can stay bright around it */
@media (min-width: 761px) {
  .hero-copy, .chapter {
    padding: 1.7rem 1.9rem 1.8rem;
    border: 1px solid rgba(207, 225, 232, .2); border-radius: 6px;
    background: rgba(24, 48, 59, .52);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
    text-shadow: none;
  }
  .chapter .btn:last-child, .hero-copy .scroll-cue { margin-bottom: 0; }
  .chapter p:last-child { margin-bottom: 0; }
}
.hero-copy h1 em, .chapter h2 em { color: var(--brass-soft); }
.hero-copy .eyebrow, .chapter .eyebrow { color: var(--brass-soft); }
.lede { margin: 0; max-width: 28rem; font-size: 1.05rem; opacity: .88; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: .7rem; margin-top: 2.2rem;
  font: 600 .7rem/1 var(--sans); letter-spacing: .25em; text-transform: uppercase; opacity: .8;
}
.scroll-cue::after { content: ""; width: 48px; height: 1px; background: currentColor; animation: cue 2s var(--ease) infinite; transform-origin: left; }
@keyframes cue { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

.chapters { margin: 0; padding: 0; list-style: none; }
.chapter { opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.chapter.active { opacity: 1; transform: none; pointer-events: auto; }
.chapter h2 { margin: 0 0 .8rem; font: 400 clamp(1.9rem, 3.4vw, 3.1rem)/1.04 var(--serif); }
.chapter p:not(.eyebrow) { margin: 0 0 1.4rem; max-width: 24rem; font-size: .95rem; opacity: .9; }

.tracker {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: .35rem;
  padding: .9rem 1.1rem; border-radius: 6px;
  background: rgba(24, 48, 59, .6); backdrop-filter: blur(10px); border: 1px solid rgba(207, 225, 232, .16);
  opacity: 0; transition: opacity .5s;
}
.tracker.show { opacity: 1; }
.tracker button {
  display: flex; align-items: center; justify-content: flex-end; gap: .7rem;
  padding: .35rem 0; border: 0; background: none; color: var(--heading); cursor: pointer;
  font: 600 .66rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  opacity: .5; transition: opacity .3s;
}
.tracker button::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.tracker button.on { opacity: 1; }
.tracker button.on::after { width: 44px; background: var(--brass-soft); }
.build-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); }
.build-progress span { display: block; height: 100%; width: 100%; background: var(--brass); transform-origin: left; transform: scaleX(0); }

/* Intro */
.intro { padding: clamp(5rem, 12vw, 10rem) 0; background: var(--glow), var(--night); }
.intro-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.big { margin: 0 0 3rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.stats dt { font: 400 clamp(2.2rem, 4vw, 3.4rem)/1 var(--serif); color: var(--brass-soft); }
.stats dd { margin: .6rem 0 0; font-size: .82rem; color: var(--muted); }

/* Marquee */
.marquee { overflow: hidden; background: var(--night-2); color: var(--cream); padding: 1.3rem 0; border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { padding: 0 2.2rem; font: italic 400 clamp(1.4rem, 2.6vw, 2.2rem)/1 var(--serif); white-space: nowrap; }
.marquee span::after { content: "✦"; margin-left: 4.4rem; font-style: normal; font-size: .7em; color: var(--brass); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Services */
.services { padding: clamp(5rem, 11vw, 9rem) 0; background: var(--glow), var(--night-2); }
.services .display em { color: var(--brass-soft); }
.journey-head { max-width: 40rem; margin: 0 auto clamp(3rem, 6vw, 5rem); text-align: center; }
.journey-intro { margin: 1.4rem auto 0; max-width: 32rem; color: var(--muted); }

/* Roadmap: stops alternate either side of a winding path drawn in main.js */
.journey { position: relative; --rail: 50%; }
.journey-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.journey-track { fill: none; stroke: rgba(207, 225, 232, .22); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.journey-fill { fill: none; stroke: var(--brass); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(207, 225, 232, .55)); }
.stops { list-style: none; margin: 0; padding: 0; }
.stop {
  position: relative; display: grid; grid-template-columns: 1fr 7rem 1fr; align-items: center;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.stop-node {
  grid-column: 2; grid-row: 1; justify-self: center; z-index: 1;
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--night); border: 1px solid rgba(207, 225, 232, .35); color: var(--brass-soft);
  font: 400 1.05rem/1 var(--serif);
  transition: background .5s, color .5s, border-color .5s, box-shadow .5s, transform .5s var(--ease);
}
.stop.reached .stop-node { background: var(--brass); border-color: var(--brass); color: var(--on-brass); transform: scale(1.08); box-shadow: 0 0 0 8px rgba(207, 225, 232, .14), 0 0 30px rgba(207, 225, 232, .45); }
.stop-card {
  grid-row: 1; grid-column: 1; display: grid; grid-template-columns: 11rem 1fr; gap: 1.4rem; align-items: center;
  padding: 1.1rem; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6);
  opacity: .35; transform: translateX(-30px); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .5s;
}
.stop:nth-child(even) .stop-card { grid-column: 3; transform: translateX(30px); }
.stop.reached .stop-card { opacity: 1; transform: none; border-color: rgba(207, 225, 232, .28); }
.stop-card figure { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; }
.stop-card img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; transition: transform 1.2s var(--ease); }
.stop.reached .stop-card img { transform: scale(1.05); }
.stop-card figcaption {
  position: absolute; left: .5rem; bottom: .5rem; padding: .3rem .55rem; border-radius: 999px;
  background: rgba(24, 48, 59, .65); backdrop-filter: blur(6px);
  font: 600 .58rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cream);
}
.stop-body .eyebrow { margin-bottom: .6rem; }
.stop-body h3 { margin: 0 0 .6rem; font: 400 clamp(1.4rem, 2.1vw, 1.85rem)/1.1 var(--serif); color: var(--heading); }
.stop-body p:not(.eyebrow) { margin: 0; font-size: .92rem; color: var(--muted); }
.stop-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.stop-tags li { padding: .35rem .65rem; border: 1px solid rgba(207, 225, 232, .25); border-radius: 999px; font-size: .7rem; color: var(--brass-soft); }
.stop-end { margin-bottom: 0; }
.stop-end .stop-node { width: 4rem; height: 4rem; }
.stop-finale { grid-row: 2; grid-column: 1 / -1; text-align: center; margin-top: 1.4rem; }
.stop-finale h3 { margin: 0; font: italic 400 clamp(2rem, 4vw, 3rem)/1 var(--serif); color: var(--brass-soft); }
.stop-finale p { margin: .6rem 0 1.4rem; color: var(--muted); }

/* Portfolio */
.portfolio { padding: clamp(5rem, 11vw, 9rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button {
  padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  background: none; color: var(--ink); cursor: pointer; font: 500 .8rem/1 var(--sans);
  transition: background .3s, color .3s, border-color .3s;
}
.filters button[aria-selected="true"], .filters button:hover { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }
.gallery { columns: 3 280px; column-gap: 1rem; }
.tile { position: relative; display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--night-2); break-inside: avoid; }
.tile img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(18,28,22,.75)); color: var(--heading); text-align: left;
  font: 600 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transition: opacity .4s;
}
.tile:hover span, .tile:focus-visible span { opacity: 1; }

/* Portfolio: 3D depth tour. The grid shows instead when WebGL or motion is unavailable. */
.tunnel { display: none; }
.portfolio.is-3d { padding: 0; background: #18303b; color: var(--cream); }
.portfolio.is-3d .portfolio-grid { display: none; }
.portfolio.is-3d .tunnel { display: block; position: relative; height: calc(var(--shots, 17) * 55vh + 100vh); }
.tunnel-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #223d4a 0%, #18303b 70%);
}
.tunnel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tunnel-head {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
  max-width: 34rem; pointer-events: none;
}
.tunnel-head .display { color: var(--heading); }
.tunnel-head .display em { color: var(--brass-soft); }
.tunnel-head p:not(.eyebrow) { margin: 1.2rem 0 0; opacity: .75; }
.tunnel-nav {
  position: absolute; top: 5.5rem; left: var(--gutter); right: var(--gutter);
  display: flex; flex-wrap: wrap; gap: .45rem;
}
.tunnel-nav button {
  padding: .5rem .95rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  background: rgba(24, 48, 59, .45); color: rgba(255,255,255,.75); cursor: pointer;
  font: 500 .76rem/1 var(--sans); backdrop-filter: blur(8px);
  transition: background .3s, color .3s, border-color .3s;
}
.tunnel-nav button:hover, .tunnel-nav button.on { background: var(--brass); border-color: var(--brass); color: var(--heading); }
.tunnel-caption {
  position: absolute; left: var(--gutter); bottom: 2.6rem; max-width: 26rem; pointer-events: none;
}
.tunnel-caption .eyebrow { margin-bottom: .6rem; color: var(--brass-soft); }
.tunnel-caption h3 { margin: 0; font: 400 clamp(1.8rem, 3.2vw, 2.8rem)/1.05 var(--serif); color: var(--heading); }
.tunnel-caption p:not(.eyebrow) { margin: .4rem 0 0; font-size: .92rem; opacity: .72; }
.tunnel-caption.swap { animation: caption-in .7s var(--ease); }
@keyframes caption-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tunnel-actions {
  position: absolute; right: var(--gutter); bottom: 2.6rem;
  display: flex; flex-direction: column; align-items: flex-end; gap: .8rem;
}
.tunnel-hint { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .55; }
.tunnel-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.1); }
.tunnel-progress span { display: block; height: 100%; background: var(--brass); transform-origin: left; transform: scaleX(0); }

/* The Reveal: before/after slider. Before sits on the left of the handle, after on the right. */
.reveal-ba { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--glow), var(--night); }
.reveal-ba .display em { color: var(--brass-soft); }
.ba-intro { max-width: 22rem; margin: 0; color: var(--muted); }
.ba-stage {
  --pos: 50%;
  --ratio: 1.777;
  position: relative; aspect-ratio: var(--ratio); overflow: hidden; border-radius: 14px;
  width: min(100%, calc(78vh * var(--ratio))); margin-inline: auto; /* tall photos stay within the screen */
  transition: width .5s var(--ease);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(207, 225, 232, .2);
  user-select: none; touch-action: pan-y;
}
.ba-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-stage.demo .ba-before-wrap, .ba-stage.demo .ba-handle { transition: clip-path .7s cubic-bezier(.65, 0, .35, 1), left .7s cubic-bezier(.65, 0, .35, 1); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--brass-soft); box-shadow: 0 0 18px rgba(0,0,0,.4); pointer-events: none; }
.ba-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: var(--brass); color: var(--on-brass); box-shadow: 0 8px 30px rgba(0,0,0,.45);
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-stage:has(.ba-range:focus-visible) .ba-knob { outline: 2px solid var(--cream); outline-offset: 3px; }
.ba-tag {
  position: absolute; top: 1rem; padding: .4rem .8rem; border-radius: 999px;
  background: rgba(24, 48, 59, .6); backdrop-filter: blur(8px); color: var(--cream);
  font: 600 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; pointer-events: none;
}
.ba-tag-before { left: 1rem; }
.ba-tag-after { right: 1rem; }
.ba-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; margin-top: 1.6rem; }
.ba-title { margin: 0; font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--serif); color: var(--heading); }
.ba-note { margin: .4rem 0 0; max-width: 34rem; color: var(--muted); font-size: .92rem; }
.ba-tabs { display: flex; gap: .6rem; flex-wrap: wrap; }
.ba-tabs[hidden] { display: none; }
.ba-tabs button {
  display: flex; align-items: center; gap: .55rem; padding: .3rem .8rem .3rem .3rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--cream); cursor: pointer; font: 500 .78rem/1 var(--sans); transition: border-color .3s, background .3s;
}
.ba-tabs button img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
.ba-tabs button[aria-selected="true"], .ba-tabs button:hover { border-color: var(--brass); background: rgba(207, 225, 232, .18); }
@media (max-width: 760px) {
  .ba-knob { width: 2.6rem; height: 2.6rem; }
}

/* Instagram cards */
.insta { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--glow), var(--night); }
.insta .display em { color: var(--brass-soft); }
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ig-card {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px;
  background: var(--night-2); color: var(--heading); text-decoration: none;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(207, 225, 232, .12);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ig-card:hover, .ig-card:focus-visible { transform: translateY(-6px); box-shadow: 0 34px 80px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(207, 225, 232, .35); }
.ig-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.ig-slide.on { opacity: 1; }
.ig-slide img, .ig-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ig-slide video { opacity: 0; transition: opacity .4s; }
.ig-card.live .ig-slide.on video { opacity: 1; }
.ig-photo .ig-slide img { transition: transform 6s ease-out; }
.ig-photo.live .ig-slide img { transform: scale(1.08); } /* slow push-in on photo posts */
.ig-type {
  position: absolute; top: .8rem; right: .8rem; display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: rgba(24, 48, 59, .55); backdrop-filter: blur(6px);
}
.ig-type svg { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ig-dots { position: absolute; top: 1.15rem; left: 50%; transform: translateX(-50%); display: flex; gap: .3rem; }
.ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: width .3s, background .3s; }
.ig-dots i.on { width: 16px; border-radius: 3px; background: #fff; }
.ig-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3.5rem 1.1rem 1.1rem;
  background: linear-gradient(transparent, rgba(12, 20, 15, .88));
  transform: translateY(30%); opacity: 0; transition: transform .5s var(--ease), opacity .5s;
}
.ig-card.live .ig-caption, .ig-card:focus-visible .ig-caption { transform: none; opacity: 1; }
.ig-caption p { margin: 0; font-size: .88rem; line-height: 1.5; }
.ig-caption span { display: block; margin-top: .4rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-soft); }
@media (max-width: 860px) {
  .insta-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: .5rem var(--gutter) 1.5rem;
  }
  .ig-card { scroll-snap-align: center; }
  .ig-caption { transform: none; opacity: 1; } /* always readable on touch */
}

.draft-chip { display: inline-block; margin-left: .6rem; padding: .25rem .5rem; border: 1px dashed rgba(207, 225, 232, .6); border-radius: 4px; font-size: .58rem; letter-spacing: .12em; color: var(--brass-soft); vertical-align: middle; }

/* Promises strip */
.promises { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--night-2); border-block: 1px solid var(--line); }
.promise-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.promise-list li { display: flex; flex-direction: column; gap: .4rem; }
.promise-ico { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: .4rem; border-radius: 50%; background: rgba(207, 225, 232, .14); border: 1px solid rgba(207, 225, 232, .3); }
.promise-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--brass-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.promise-list strong { font: 400 1.15rem/1.2 var(--serif); color: var(--heading); }
.promise-list p { margin: 0; font-size: .84rem; color: var(--muted); }

/* How we charge + FAQ */
.answers { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--glow), var(--night-2); }
.answers .display { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.answers .display em { color: var(--brass-soft); }
.answers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.charge-intro { color: var(--muted); margin: 1.2rem 0 1.6rem; }
.charge-list { list-style: none; margin: 0 0 2rem; padding: 0; counter-reset: c; display: grid; gap: .9rem; }
.charge-list li { counter-increment: c; display: grid; grid-template-columns: 2.4rem 1fr; gap: .2rem .9rem; padding: 1rem; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.charge-list li::before { content: counter(c, decimal-leading-zero); grid-row: span 2; font: 400 1.2rem/1 var(--serif); color: var(--brass); padding-top: .15rem; }
.charge-list strong { color: var(--heading); font-weight: 600; }
.charge-list span { font-size: .88rem; color: var(--muted); }
.faq-list { margin-top: 1.6rem; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; cursor: pointer; list-style: none; font: 400 1.12rem/1.3 var(--serif); color: var(--heading); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid var(--line); color: var(--brass-soft); font-family: var(--sans); transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); border-color: var(--brass); }
.faq-list p { margin: -.3rem 0 1.2rem; color: var(--muted); font-size: .94rem; }
.link-btn { padding: 0; border: 0; background: none; color: var(--brass-soft); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Floating quick contact */
.fab { position: fixed; right: clamp(.9rem, 2vw, 1.6rem); bottom: clamp(.9rem, 2vw, 1.6rem); z-index: 45; display: flex; gap: .5rem; }
.fab-btn {
  display: flex; align-items: center; gap: .5rem; height: 3.1rem; padding: 0 .95rem; border-radius: 999px;
  background: var(--brass); color: var(--on-brass); text-decoration: none; font: 700 .82rem/1 var(--sans);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .6); transition: transform .3s var(--ease), background .3s;
}
.fab-btn:hover { transform: translateY(-2px); background: var(--brass-soft); }
.fab-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fab-btn:not(.fab-text) { width: 3.1rem; justify-content: center; padding: 0; background: var(--night-2); color: var(--brass-soft); border: 1px solid rgba(207, 225, 232, .35); }
@media (max-width: 1080px) { .promise-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .answers-grid { grid-template-columns: 1fr; }
  .promise-list { grid-template-columns: 1fr 1fr; }
  .fab-text span { display: none; }
  .fab-text { width: 3.1rem; justify-content: center; padding: 0; }
}

/* Plan your project: budget planner */
.plan { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--glow), var(--night); }
.plan .display em { color: var(--brass-soft); }
.crm-ghost { border: 1px solid rgba(207, 225, 232, .4); background: none; color: var(--cream); }
.crm-ghost:hover { border-color: var(--brass); background: rgba(207, 225, 232, .12); }
.planner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.6rem; }
.planner-inputs, .planner-result { padding: 1.6rem; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.planner-result { background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(207, 225, 232, .14), transparent 70%), var(--panel); border-color: rgba(207, 225, 232, .28); }
.planner-label { margin: 1.4rem 0 .7rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.planner-label:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips button {
  display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: .7rem 1rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--cream); font: 600 .86rem/1.1 var(--sans); cursor: pointer; text-align: left;
  transition: border-color .2s, background .2s;
}
.chips button small { font-weight: 400; font-size: .72rem; color: var(--muted); }
.chips button:hover { border-color: rgba(207, 225, 232, .45); }
.chips button.on { border-color: var(--brass); background: rgba(207, 225, 232, .16); box-shadow: 0 0 0 1px var(--brass) inset; }
.planner-range { margin: .2rem 0 1.2rem; font: 400 clamp(2.4rem, 4.6vw, 3.6rem)/1 var(--serif); color: var(--heading); }
.planner-break { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .7rem; }
.planner-break li { display: grid; grid-template-columns: 1fr auto; gap: .35rem .8rem; font-size: .84rem; color: var(--muted); }
.planner-break b { color: var(--cream); font-weight: 600; }
.planner-break i { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--brass) var(--w), rgba(247, 245, 241, .08) var(--w)); }
.planner-note { font-size: .78rem; color: var(--muted); margin: 0 0 1.2rem; }
.planner-save, .qz-save { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.planner-save input, .qz-save input { padding: .75rem .85rem; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--cream); font: 400 .9rem var(--sans); }
.planner-save input.invalid, .qz-save input.invalid { border-color: #b3261e; }
.planner-save .btn, .qz-save .btn { grid-column: 1 / -1; }
.planner-msg, .qz-msg { margin: .6rem 0 0; min-height: 1.2em; font-size: .84rem; color: var(--brass-soft); }

/* Style quiz dialog (reuses the booking dialog shell) */
.qz { width: min(760px, calc(100vw - 2rem)); }
.qz-progress { height: 3px; margin: 0 1.8rem 1rem; background: var(--line); border-radius: 2px; overflow: hidden; }
.qz-progress span { display: block; height: 100%; background: var(--brass); transform-origin: left; transform: scaleX(0); transition: transform .5s var(--ease); }
.qz-body { padding: 0 1.8rem 1.8rem; overflow-y: auto; animation: pane-in .4s var(--ease); }
.qz-count { margin: 0 0 .4rem; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-soft); }
.qz-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.qz-opts.no-img { grid-template-columns: 1fr 1fr; }
.qz-opt {
  position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 0; overflow: hidden; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--cream); text-align: left; transition: transform .25s var(--ease), border-color .25s;
}
.qz-opt:hover, .qz-opt:focus-visible { transform: translateY(-3px); border-color: var(--brass); }
.qz-opt img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.qz-letter { position: absolute; left: .5rem; top: .5rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: rgba(24, 48, 59, .7); font-size: .76rem; font-weight: 700; }
.qz-opts.no-img .qz-opt { padding: 1.1rem; }
.qz-label { font: 400 1.1rem/1.2 var(--serif); }
.qz-swatch { display: flex; height: 3rem; border-radius: 8px; overflow: hidden; }
.qz-swatch i { flex: 1; }
.qz-result { margin: 0 0 .8rem; font: italic 400 clamp(2rem, 4vw, 2.8rem)/1.05 var(--serif); color: var(--brass-soft); }
.qz-result small { display: block; margin-top: .3rem; font: 400 1rem/1.3 var(--sans); font-style: normal; color: var(--muted); }
.qz-text { color: var(--muted); margin: 0 0 1rem; }
.qz-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.qz-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.qz-actions { display: grid; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .planner { grid-template-columns: 1fr; }
  .qz-opts { grid-template-columns: 1fr 1fr; }
  .qz-progress { margin-inline: 1.1rem; }
  .qz-body { padding-inline: 1.1rem; }
}

/* Case-study strip on the home page */
.cases { padding: clamp(4rem, 8vw, 6rem) 0 0; background: var(--night); }
.cases .display em { color: var(--brass-soft); }
.cases-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cases .cs-card { display: block; text-decoration: none; color: var(--cream); border-radius: 14px; overflow: hidden; background: var(--night-2); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .4s; }
.cases .cs-card:hover { transform: translateY(-4px); border-color: rgba(207, 225, 232, .4); }
.cases .cs-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cases .cs-card span { display: block; padding: .9rem 1rem .15rem; font: 400 1.2rem/1.1 var(--serif); color: var(--heading); }
.cases .cs-card em { display: block; padding: 0 1rem 1rem; font-style: normal; font-size: .8rem; color: var(--muted); }
.footer-services { flex-basis: 100%; flex-wrap: wrap; justify-content: flex-start; }
@media (max-width: 860px) { .cases-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .cases .cs-card { scroll-snap-align: start; } }

.contact-book { margin: -1rem 0 2.5rem; }
.privacy-note { margin: 0; font-size: .74rem; color: var(--muted); }
.privacy-note a { color: var(--brass-soft); }

/* Booking dialog */
.bk {
  width: min(880px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 18px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--dialog-top) 0%, var(--night) 70%); color: var(--cream);
  box-shadow: 0 50px 140px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(207, 225, 232, .22);
}
.bk::backdrop { background: rgba(10, 18, 13, .72); backdrop-filter: blur(6px); }
.bk[open] { animation: bk-in .45s var(--ease); }
@keyframes bk-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.bk-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 2rem); }
.bk-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 1.6rem 1.8rem .8rem; }
.bk-head .eyebrow { margin-bottom: .4rem; }
.bk-head h2 { margin: 0; font: 400 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--serif); color: var(--heading); }
.bk-close { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--cream); font-size: 1.4rem; cursor: pointer; }
.bk-close:hover { border-color: var(--brass); color: var(--brass-soft); }
.bk-steps { display: flex; gap: .4rem; margin: 0; padding: 0 1.8rem 1.2rem; list-style: none; counter-reset: s; }
.bk-steps li { flex: 1; padding-top: .7rem; border-top: 2px solid var(--line); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: border-color .4s, color .4s; }
.bk-steps li.on, .bk-steps li.done { border-color: var(--brass); color: var(--brass-soft); }
.bk.is-done .bk-steps { visibility: hidden; }
.bk-pane { display: none; padding: .4rem 1.8rem 1.4rem; overflow-y: auto; }
.bk-pane.on { display: block; animation: pane-in .4s var(--ease); }
@keyframes pane-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.bk-q { margin: 0 0 1.2rem; font: 400 1.35rem/1.2 var(--serif); color: var(--heading); }

.bk-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.bk-type {
  position: relative; display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem; border-radius: 12px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.bk-type:hover { transform: translateY(-2px); border-color: rgba(207, 225, 232, .35); }
.bk-type input { position: absolute; opacity: 0; }
.bk-type:has(input:checked) { border-color: var(--brass); background: rgba(207, 225, 232, .12); box-shadow: 0 0 0 1px var(--brass) inset; }
.bk-type:has(input:focus-visible) { outline: 2px solid var(--cream); outline-offset: 2px; }
.bk-type-ico { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: .5rem; border-radius: 50%; background: rgba(207, 225, 232, .16); }
.bk-type-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--brass-soft); stroke-width: 1.6; stroke-linejoin: round; }
.bk-type strong { font: 400 1.2rem/1.2 var(--serif); color: var(--heading); }
.bk-type span:not(.bk-type-ico) { font-size: .74rem; font-weight: 600; letter-spacing: .06em; color: var(--brass-soft); }
.bk-type em { font-style: normal; font-size: .84rem; color: var(--muted); }

.bk-when { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.6rem; }
.bk-cal { padding: 1rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.bk-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.bk-cal-head strong { font: 400 1.1rem/1 var(--serif); color: var(--heading); }
.bk-nav { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--cream); font-size: 1.1rem; cursor: pointer; }
.bk-nav:disabled { opacity: .25; cursor: default; }
.bk-dow, .bk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; text-align: center; }
.bk-dow span { padding-bottom: .4rem; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bk-day { aspect-ratio: 1; border: 0; border-radius: 50%; background: none; color: var(--cream); font: 500 .88rem/1 var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.bk-day:not(:disabled):hover { background: rgba(207, 225, 232, .2); }
.bk-day:disabled { color: rgba(247, 245, 241, .22); cursor: default; }
.bk-day.today { box-shadow: 0 0 0 1px rgba(207, 225, 232, .35) inset; }
.bk-day.on { background: var(--brass); color: var(--on-brass); font-weight: 700; }
.bk-day-label { margin: .2rem 0 .8rem; font: 400 1.15rem/1.2 var(--serif); color: var(--heading); }
.bk-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; max-height: 17rem; overflow-y: auto; padding-right: .2rem; }
.bk-slot { padding: .65rem .3rem; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--cream); font: 500 .82rem/1 var(--sans); cursor: pointer; transition: border-color .2s, background .2s; }
.bk-slot:not(:disabled):hover { border-color: var(--brass); }
.bk-slot.on { background: var(--brass); border-color: var(--brass); color: var(--on-brass); font-weight: 700; }
.bk-slot:disabled { opacity: .3; text-decoration: line-through; cursor: default; }
.bk-loading { grid-column: 1 / -1; margin: .4rem 0; color: var(--muted); font-size: .88rem; }
.bk-tz { margin: 1rem 0 0; font-size: .74rem; color: var(--muted); }

.bk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.bk-fields .bk-wide { grid-column: 1 / -1; }
.bk-fields label span { text-transform: none; letter-spacing: 0; opacity: .7; }

.bk-summary { display: grid; grid-template-columns: 7rem 1fr; gap: .7rem 1rem; margin: 0; padding: 1.2rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.bk-summary dt { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-soft); padding-top: .15rem; }
.bk-summary dd { margin: 0; }
.bk-error { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 8px; background: rgba(179, 38, 30, .18); border: 1px solid rgba(179, 38, 30, .5); font-size: .88rem; }

.bk-done { text-align: center; padding-top: 1rem; padding-bottom: 2rem; }
.bk-check svg { width: 76px; height: 76px; fill: none; stroke: var(--brass); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bk-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s .1s var(--ease) forwards; }
.bk-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bk-done h3 { margin: 1rem 0 .5rem; font: italic 400 2.2rem/1 var(--serif); color: var(--brass-soft); }
.bk-done-text { max-width: 30rem; margin: 0 auto 1.6rem; color: var(--muted); }
.bk-add { display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; }
.bk-ics { border: 1px solid rgba(207, 225, 232, .4); color: var(--cream); background: none; }
.bk-ics:hover { border-color: var(--brass); background: rgba(207, 225, 232, .15); }

.bk-foot { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.8rem 1.4rem; border-top: 1px solid var(--line); margin-top: auto; }
.bk-back { border: 0; background: none; color: var(--muted); font: 600 .82rem/1 var(--sans); cursor: pointer; padding: .8rem 0; }
.bk-back:hover { color: var(--cream); }
.bk-pick { flex: 1; text-align: right; font-size: .8rem; color: var(--brass-soft); }
.bk-next:disabled { opacity: .4; cursor: not-allowed; transform: none; }
@media (max-width: 760px) {
  .bk { width: 100vw; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .bk-shell { max-height: 100dvh; height: 100%; }
  .bk-head, .bk-steps, .bk-pane, .bk-foot { padding-inline: 1.1rem; }
  .bk-steps li { font-size: 0; } /* bars only */
  .bk-types, .bk-when, .bk-fields { grid-template-columns: 1fr; }
  .bk-type { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: .8rem; }
  .bk-type-ico { margin: 0; }
  .bk-type em { flex-basis: 100%; }
  .bk-slots { grid-template-columns: repeat(4, 1fr); max-height: none; }
  .bk-pick { display: none; }
  .bk-foot { justify-content: space-between; }
}

/* Awards */
.awards { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--glow), var(--night-2); color: var(--cream); }
.awards .display em { color: var(--brass-soft); }
.awards p:not(.eyebrow) { max-width: 32rem; opacity: .85; }
.awards-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.badges li { aspect-ratio: 1; display: grid; place-items: center; padding: .6rem; background: #fff; border-radius: 4px; overflow: hidden; }
.badges img { width: 100%; aspect-ratio: 1; object-fit: contain; }

/* Team */
.team { padding: clamp(5rem, 11vw, 9rem) 0; }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.member { margin: 0; }
.member-photo { aspect-ratio: 3 / 4; overflow: hidden; background: var(--night-2); margin-bottom: 1rem; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(.25); transition: filter .5s, transform .8s var(--ease); }
.member:hover .member-photo img { filter: none; transform: scale(1.03); }
.member h3 { margin: 0; font: 400 1.35rem/1.15 var(--serif); }
.member .role { margin: .3rem 0 .7rem; font-size: .76rem; font-weight: 600; letter-spacing: .06em; color: var(--brass); }
.member details summary { cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--brass-soft); list-style: none; }
.member details summary::-webkit-details-marker { display: none; }
.member details summary::after { content: " +"; }
.member details[open] summary::after { content: " –"; }
.member details p { font-size: .88rem; color: var(--muted); }

/* Team: circular carousel */
.team { background: var(--glow), var(--night); }
.ct { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 6rem); align-items: center; margin-top: clamp(3rem, 6vw, 5rem); }
.ct-images { position: relative; width: 100%; max-width: 30rem; justify-self: center; aspect-ratio: 4 / 5; margin-top: 4rem; perspective: 1000px; }
.ct-image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%; border-radius: 1.5rem; cursor: pointer;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(207, 225, 232, .12);
  filter: brightness(.62) saturate(.85);
  transition: transform .8s cubic-bezier(.4, 2, .3, 1), opacity .8s cubic-bezier(.4, 2, .3, 1), filter .6s;
}
.ct-image.is-active { filter: none; cursor: default; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(207, 225, 232, .3); }
.ct-content { display: flex; flex-direction: column; gap: 2.5rem; }
.ct-text { min-height: 22rem; transition: opacity .3s ease, transform .3s ease; }
.ct-text.out { opacity: 0; transform: translateY(-20px); }
.ct-count { margin-bottom: 1.2rem; }
.ct-name { margin: 0; font: 400 clamp(2rem, 3.6vw, 3rem)/1.05 var(--serif); color: var(--heading); }
.ct-role { margin: .5rem 0 2rem; font-size: .82rem; font-weight: 600; letter-spacing: .08em; color: var(--brass-soft); }
.ct-bio { margin: 0; font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.8; color: var(--muted); }
.ct-bio span { display: inline-block; white-space: pre; animation: word-in .22s ease-in-out both; }
@keyframes word-in { from { opacity: 0; filter: blur(10px); transform: translateY(5px); } to { opacity: 1; filter: none; transform: none; } }
.ct-controls { display: flex; align-items: center; gap: 1rem; }
.ct-arrow {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid rgba(207, 225, 232, .35); background: var(--panel); color: var(--cream); cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.ct-arrow:hover { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }
.ct-dots { display: flex; gap: .5rem; margin-left: 1rem; }
.ct-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(247, 245, 241, .25); cursor: pointer; transition: width .3s, background .3s; }
.ct-dots button[aria-selected="true"] { width: 26px; border-radius: 4px; background: var(--brass); }
@media (max-width: 860px) {
  .ct { grid-template-columns: 1fr; gap: 2rem; }
  .ct-images { max-width: 20rem; margin-top: 3rem; }
  .ct-text { min-height: 0; }
}

/* Quotes */
/* Reviews: real Google rating + quotes */
.stars { color: #f2b544; letter-spacing: .12em; font-size: .95em; line-height: 1; }
[data-theme="light"] .reviews .stars { color: #d18a00; }
.rating-chip {
  display: inline-flex; align-items: center; gap: .6rem; margin: 1.1rem 0 0; padding: .5rem .9rem .5rem .75rem;
  border: 1px solid rgba(247, 245, 241, .22); border-radius: 999px; background: rgba(24, 48, 59, .55);
  backdrop-filter: blur(8px); color: var(--heading); font-size: .82rem; text-decoration: none;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.rating-chip:hover { border-color: var(--brass-soft); background: rgba(24, 48, 59, .75); }
.rating-chip b { font-weight: 700; }
.reviews { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--glow), var(--night-2); }
.rv-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.rv-head .display { margin: 0; }
.rv-head .display em { color: var(--brass-soft); }
.rv-score {
  display: flex; align-items: center; gap: 1.1rem; padding: 1rem 1.4rem; border: 1px solid var(--line);
  border-radius: 18px; background: var(--panel); color: var(--cream); text-decoration: none;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.rv-score:hover { border-color: var(--brass); transform: translateY(-2px); }
.rv-num { font: 400 clamp(2.6rem, 5vw, 3.4rem)/1 var(--serif); color: var(--heading); }
.rv-meta { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); }
.rv-meta .stars { font-size: 1.05rem; }
.rv-meta b { color: var(--cream); }
.rv-link { color: var(--brass); font-weight: 600; font-size: .78rem; letter-spacing: .06em; }
.rv-list { list-style: none; margin: 0; padding: 0; columns: 3 18rem; column-gap: 1.25rem; }
.rv-card {
  break-inside: avoid; margin: 0 0 1.25rem; padding: 1.5rem 1.5rem 1.3rem; border: 1px solid var(--line);
  border-radius: 18px; background: var(--panel);
}
.rv-card blockquote { margin: .7rem 0 1.1rem; font: italic 400 1.15rem/1.5 var(--serif); color: var(--cream); }
.rv-card > .stars + blockquote { margin-top: .7rem; }
.rv-card > blockquote:first-child { margin-top: 0; }
.rv-long:not(.open) blockquote { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rv-more { margin: -.4rem 0 1rem; padding: 0; border: 0; background: none; color: var(--brass); font: 600 .8rem var(--sans); cursor: pointer; }
.rv-who { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.rv-who strong { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.rv-who span { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); }
.rv-g { flex: none; }
@media (max-width: 640px) { .rv-score { width: 100%; } }

/* Contact */
.contact { padding: clamp(5rem, 11vw, 9rem) 0; background: var(--glow), var(--night); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.contact-grid > div > p:not(.eyebrow) { color: var(--muted); max-width: 28rem; margin: 1.5rem 0 2.5rem; }
.details { display: grid; gap: 1.2rem; margin: 0; }
.details div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.details dt { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); padding-top: .2rem; }
.details dd { margin: 0; }
.details a { text-decoration: none; }
.details a:hover { text-decoration: underline; }
.form { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; align-self: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; margin-bottom: .45rem; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 2px;
  background: var(--panel); color: var(--ink); font: 400 1rem/1.4 var(--sans);
}
.field select option { background: var(--night-2); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: transparent; }
.field .invalid { border-color: #b3261e; }
.form .btn { justify-self: start; }
.form-note { margin: 0; min-height: 1.4em; font-size: .88rem; color: var(--muted); }

/* Footer */
.footer { padding: 3rem 0; background: var(--navy-deep); color: var(--cream); border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer p { margin: .4rem 0 0; font-size: .85rem; opacity: .7; }
.social { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.social a { font-size: .85rem; text-decoration: none; opacity: .85; }
.social a:hover { opacity: 1; color: var(--brass-soft); }
.footer .copy { margin: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(14, 22, 17, .94); padding: 4rem 4.5rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: none; color: var(--heading); font-size: 2.6rem; line-height: 1; cursor: pointer; padding: .5rem 1rem; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 1.5rem; left: 0; right: 0; margin: 0; text-align: center; color: var(--cream); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .theme-toggle { margin-left: auto; }
  .menu-toggle {
    display: grid; gap: 6px; margin-left: .6rem; padding: 10px 4px; border: 0; background: none; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; transition: transform .3s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-nav {
    position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: center; gap: 1.4rem;
    padding: 0 var(--gutter); background: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .mobile-nav.open { opacity: 1; visibility: visible; }
  .mobile-nav a:not(.btn) { font: 400 2.4rem/1.1 var(--serif); text-decoration: none; }
  .mobile-nav .btn { align-self: flex-start; margin-top: 1rem; }
  body.menu-open .site-header { color: var(--ink); }

  .intro-grid, .awards-grid, .contact-grid, .quotes .wrap { grid-template-columns: 1fr; }
  /* Roadmap: rail on the left, every stop to its right */
  .journey { --rail: 1.7rem; }
  .stop { grid-template-columns: 3.4rem 1fr; gap: 0 1rem; align-items: start; }
  .stop-node { grid-column: 1; width: 3rem; height: 3rem; }
  .stop-card, .stop:nth-child(even) .stop-card { grid-column: 2; grid-template-columns: 1fr; transform: translateY(20px); }
  .stop-card figure { aspect-ratio: 16 / 10; }
  .stop-finale { grid-column: 2; text-align: left; }
}
@media (max-width: 760px) {
  .build { height: 560vh; }
  .build-shade { background: linear-gradient(0deg, var(--night) 0%, rgba(24, 48, 59, .82) 14%, rgba(24, 48, 59, .3) 42%, rgba(24, 48, 59, 0) 58%, rgba(24, 48, 59, 0) 84%, rgba(24, 48, 59, .45) 100%); box-shadow: inset 0 0 20vw rgba(24, 48, 59, .5); }
  .frame img { object-position: 62% 50%; }
  .hero-copy, .chapter { right: var(--gutter); bottom: 4.5rem; }
  .tracker { top: auto; bottom: 1.2rem; right: auto; left: var(--gutter); transform: none; flex-direction: row; gap: .9rem; }
  .tracker button { font-size: .56rem; letter-spacing: .12em; flex-direction: column-reverse; align-items: flex-start; gap: .4rem; }
  .tracker button::after { width: 14px; }
  .tracker button.on::after { width: 28px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
  .portfolio.is-3d .tunnel { height: calc(var(--shots, 17) * 45vh + 100vh); }
  .tunnel-nav { top: 4.6rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; right: 0; padding-right: var(--gutter); }
  .tunnel-nav button { flex: none; }
  .tunnel-caption { bottom: 6.2rem; right: var(--gutter); }
  .tunnel-actions { left: var(--gutter); right: var(--gutter); bottom: 1.6rem; flex-direction: row; justify-content: space-between; align-items: center; }
  .tunnel-hint { display: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .details div { grid-template-columns: 1fr; gap: .3rem; }
  .lightbox { padding: 3.5rem .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
}
