/* =========================================================
   Ambient Design Studio - Design System v2
   Split-screen editorial · minimal type · generous whitespace
   Zero framework dependencies
   ========================================================= */

:root {
  --canvas: #FFFFFF;
  --surface: #F7F5F0;
  --surface-2: #EFEBE2;
  --line: rgba(20, 23, 27, 0.13);
  --line-soft: rgba(20, 23, 27, 0.08);

  --ink: #16181D;
  --ink-2: #53565E;
  --ink-3: #8A8D93;

  --gold: #B8860B;
  --gold-2: #C99A22;
  --gold-ink: #FFFFFF;
  --wa: #25D366;

  --blueprint-bg: #0E1826;
  --blueprint-line: #6FA8C9;
  --blueprint-line-dim: rgba(111, 168, 201, .28);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --wrap: 1320px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 2px;
  --header-h: 108px;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --sp: clamp(96px, 11vw, 160px); /* generous, standard section rhythm */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; }
.skip-link:focus { left: 8px; }

/* ---------- Typography - serif display / sans body ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.14; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
p { margin: 0 0 1em; color: var(--ink-2); }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.16rem); max-width: 58ch; }

.section { padding: var(--sp) 0; position: relative; }
#meet-the-team { scroll-margin-top: var(--header-h); }
.section--tight { padding: clamp(28px, 4vw, 44px) 0; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 76px); max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius);
  font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(20, 23, 27, .28); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost.on-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost.on-light:hover { border-color: #fff; }
.btn-wa { background: var(--wa); color: #06210F; }
.btn-wa:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 11.5px; }

/* ---------- Page-transition loader (protractor needle sweeping 0°→180°, superfast) ---------- */
.page-loader {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: var(--canvas); opacity: 1; visibility: visible;
  transition: opacity .3s ease, visibility 0s linear 0s;
}
.page-loader.is-hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.page-loader svg { width: 96px; height: auto; overflow: visible; }
.page-loader .loader-arc { fill: none; stroke: var(--line); }
.page-loader .loader-pivot { fill: var(--gold); }
.page-loader .loader-needle {
  stroke: var(--gold); stroke-linecap: round;
  transform-origin: 60px 60px; animation: loaderSweep .45s ease-in-out infinite alternate;
}
@keyframes loaderSweep {
  from { transform: rotate(-90deg); }
  to   { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader .loader-needle { animation: none; }
}

/* ---------- Header (Cadence-style: plain wordmark left, large lowercase links right) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200; height: var(--header-h);
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  transition: transform .35s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-mark { height: 78px; width: auto; flex: none; object-fit: contain; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font: 400 2.2rem/1.05 var(--serif); letter-spacing: .08em; white-space: nowrap; }
.brand-tag { font-size: 12px; letter-spacing: .24em; margin-top: 4px; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.nav-stack { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; }

.nav-primary { display: flex; align-items: center; }
.nav-top {
  font: 500 clamp(17px, 2vw, 24px)/1 var(--sans); letter-spacing: 0; text-transform: lowercase; color: var(--ink-3);
  background: none; border: 0; cursor: pointer; padding: 4px 0; margin-left: 22px; position: relative;
  transition: color .24s ease-out;
}
.nav-top:first-child { margin-left: 0; }
.nav-top:hover, .nav-top.is-active { color: var(--ink); }

/* Fixed secondary anchor-nav - used only on pages with several jump-to sections (e.g. Studio) */
.sub-nav {
  position: sticky; top: var(--header-h); z-index: 190; display: flex; flex-wrap: wrap; justify-content: center;
  background: var(--canvas); padding: 14px 0;
}
.sub-nav a {
  font: 500 15px/1.1 var(--sans); text-transform: lowercase; color: var(--ink-3);
  transition: color .24s ease-out; margin: 0 20px;
}
.sub-nav a:hover, .sub-nav a.is-active { color: var(--ink); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); width: 44px; height: 44px; cursor: pointer; border-radius: var(--radius); }
.nav-toggle span { display: block; width: 18px; height: 1px; background: var(--ink); margin: 5px auto; transition: transform .3s; }

/* ---------- Split-screen layout primitive ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  min-height: calc(100svh - var(--header-h));
}
.split.split--tight { min-height: 0; }
.split-media { position: relative; overflow: hidden; background: var(--surface); min-height: 420px; min-width: 0; }
.split-media img, .split-media video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.split-media.is-fallback img, .split-media.is-fallback video { display: none; }
.split-content { display: flex; align-items: center; padding: clamp(48px, 6vw, 100px); min-width: 0; position: relative; overflow: hidden; }
.split-content-inner { display: grid; gap: 26px; max-width: 560px; position: relative; z-index: 1; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* Vibrant full-colour placeholder tones (swap for real project photography) */
.tone-1 { background: linear-gradient(135deg, #F6C177 0%, #E07A5F 45%, #3D5A80 100%); }
.tone-2 { background: linear-gradient(135deg, #A8DADC 0%, #457B9D 50%, #1D3557 100%); }
.tone-3 { background: linear-gradient(135deg, #F4E1C1 0%, #C9A27E 45%, #6B4E3D 100%); }
.tone-4 { background: linear-gradient(135deg, #B7E4C7 0%, #52B788 45%, #1B4332 100%); }
.tone-5 { background: linear-gradient(135deg, #FFD6A5 0%, #FF8C61 45%, #9D4EDD 100%); }
.tone-6 { background: linear-gradient(135deg, #CDB4DB 0%, #FFAFCC 45%, #A2D2FF 100%); }
.tone-7 { background: linear-gradient(135deg, #E9C46A 0%, #2A9D8F 55%, #264653 100%); }
.tone-8 { background: linear-gradient(135deg, #FFE5B4 0%, #F28482 45%, #84A59D 100%); }
.tone-9 { background: linear-gradient(135deg, #90E0EF 0%, #0077B6 50%, #03045E 100%); }
.tone-label {
  position: absolute; left: 20px; bottom: 18px; z-index: 2;
  font: 600 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85);
}

/* ---------- Hero ---------- */
.hero-eyebrow-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 15px;
  border: 1px solid var(--line); border-radius: 40px; font-size: 12.5px; color: var(--ink-2);
}
.rating-badge strong { color: var(--ink); font-weight: 600; }
.stars { color: var(--gold); letter-spacing: 2px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12.5px; color: var(--ink-3); }
.hero-meta span::before { content: "◆"; color: var(--gold); font-size: 7px; margin-right: 8px; vertical-align: middle; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; gap: 16px; align-items: flex-start; padding: 34px 30px; border-left: 1px solid var(--line-soft); }
.trust-item:first-child { border-left: 0; }
.trust-icon { width: 38px; height: 38px; flex: none; color: var(--gold); }
.trust-item h3 { font: 600 12.5px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.trust-item p { font-size: 14px; margin: 0; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); }
.service {
  position: relative; padding: 44px 32px; background: var(--canvas);
  display: grid; align-content: start; gap: 16px; min-height: 380px;
  transition: background .4s var(--ease);
}
.service::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--gold); transition: width .5s var(--ease); }
.service:hover { background: var(--surface); }
.service:hover::before { width: 100%; }
.service-num { font: 400 13px/1 var(--serif); color: var(--gold); letter-spacing: .1em; }
.service-icon { width: 42px; height: 42px; color: var(--gold); }
.service ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.service li { font-size: 14px; color: var(--ink-2); padding-left: 18px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--gold); }
.service-benefit { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 13.5px; font-style: italic; color: var(--ink); font-family: var(--serif); }

/* ---------- Project index filter (plain lowercase text list, in-page - not fixed) ---------- */
.filter-toggle {
  display: none; align-items: center; gap: 8px; justify-content: flex-end; width: 100%;
  font: 500 12px/1 var(--sans); text-transform: lowercase; color: var(--ink); cursor: pointer; margin-bottom: 14px;
}
.filter-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; margin-bottom: 44px; }
.filter-btn {
  background: none; border: 0; color: var(--ink-3);
  padding: 0; font: 500 15px/1.1 var(--sans); text-transform: lowercase;
  cursor: pointer; transition: color .24s ease-out;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.is-active { color: var(--ink); }
.filter-btn .count { opacity: .55; margin-left: 4px; }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.project-card {
  position: relative; aspect-ratio: 5 / 4; overflow: hidden; display: block;
  transition: opacity .5s var(--ease); grid-column: span 1;
}
.project-card.is-fallback img { display: none; }
.project-card:nth-child(3n+1) { grid-column: span 2; aspect-ratio: 16 / 9; }
.project-card.is-hidden { display: none; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-card:hover img { transform: scale(1.045); }
.project-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,13,20,.82) 0%, rgba(10,13,20,.15) 45%, transparent 65%);
}
.project-card-body { position: absolute; left: 26px; right: 26px; bottom: 22px; z-index: 2; display: grid; gap: 4px; }
.project-card-cat { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.project-card-body h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); color: #fff; }
.project-card-body p { margin: 0; font-size: 13px; color: rgba(255,255,255,.75); }
.project-card-arrow {
  position: absolute; top: 22px; right: 22px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; color: #fff;
  opacity: 0; transform: translate(-6px, 6px); transition: all .35s var(--ease);
}
.project-card:hover .project-card-arrow { opacity: 1; transform: none; border-color: var(--gold); color: var(--gold); }
.project-card-arrow svg { width: 16px; height: 16px; }
.projects-empty { display: none; padding: 40px; text-align: center; border: 1px dashed var(--line); color: var(--ink-3); }

/* ---------- Lightbox gallery (grid → full-screen) ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gallery-grid button { position: relative; aspect-ratio: 1; overflow: hidden; border: 0; padding: 0; cursor: zoom-in; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-grid button:hover img { transform: scale(1.06); }
.gallery-grid button.is-fallback img { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(6, 8, 12, .97);
  display: none; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-stage { position: relative; width: min(1200px, 92vw); max-height: 88vh; }
.lightbox-stage img { width: 100%; height: 100%; max-height: 88vh; object-fit: contain; }
.lightbox-caption { text-align: center; margin-top: 14px; font-size: 13px; color: var(--ink-2); letter-spacing: .04em; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed; background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  transition: border-color .25s, color .25s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }

/* ---------- Before / after drag slider ---------- */
.ba-slider {
  position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; user-select: none;
  border: 1px solid var(--line-soft); touch-action: pan-y;
}
.ba-slider.is-fallback .ba-after { display: none; }
.ba-before-wrap.is-fallback img { display: none; }
.ba-slider img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; pointer-events: none; }
.ba-slider .ba-after { z-index: 1; }
.ba-slider .ba-before-wrap { position: absolute; inset: 0; z-index: 2; overflow: hidden; width: 50%; }
.ba-slider .ba-before-wrap img { width: var(--ba-w, 100vw); max-width: none; }
.ba-tag { position: absolute; top: 16px; z-index: 3; font: 600 10px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #fff; background: rgba(10,13,20,.55); padding: 8px 12px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ba-tag.before { left: 16px; }
.ba-tag.after { right: 16px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 4; width: 2px; background: var(--gold);
  transform: translateX(-1px); cursor: ew-resize;
}
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); transform: translate(-50%, -50%);
}
.ba-handle-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 5; color: var(--gold-ink); display: flex; gap: 3px; pointer-events: none; }
.ba-handle-icon svg { width: 14px; height: 14px; }

/* ---------- Blueprint drawing viewer ---------- */
.blueprint-viewer { border: 1px solid var(--line-soft); background: var(--blueprint-bg); }
.blueprint-tabs { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.blueprint-tab {
  flex: 1 1 auto; background: var(--blueprint-bg); border: 0; color: var(--ink-3); cursor: pointer;
  padding: 16px 20px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transition: color .25s, background .25s;
}
.blueprint-tab.is-active { color: var(--gold); background: #0B1420; box-shadow: inset 0 -2px 0 var(--gold); }
.blueprint-tab:hover { color: var(--ink); }
.blueprint-canvas {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background-image:
    linear-gradient(var(--blueprint-line-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line-dim) 1px, transparent 1px);
  background-size: 36px 36px;
  cursor: zoom-in;
}
.blueprint-pane { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; padding: 24px; transition: transform .5s var(--ease); }
.blueprint-pane.is-active { display: flex; }
.blueprint-pane svg { max-width: 100%; max-height: 100%; }
.blueprint-canvas.is-zoomed .blueprint-pane.is-active { transform: scale(1.6); cursor: zoom-out; }
.blueprint-caption { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; font-size: 12px; color: var(--ink-3); letter-spacing: .04em; border-top: 1px solid var(--line-soft); }

/* ---------- Consultation wizard ---------- */
.consult-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.consult-aside { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 24px); }
.consult-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.consult-points li {
  display: flex; gap: 12px; font-size: 15px; color: var(--ink-2);
  opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.consult-aside.is-in .consult-points li { opacity: 1; transform: none; }
.no-js .consult-points li { opacity: 1; transform: none; }
.consult-aside.is-in .consult-points li:nth-child(1) { transition-delay: .18s; }
.consult-aside.is-in .consult-points li:nth-child(2) { transition-delay: .3s; }
.consult-aside.is-in .consult-points li:nth-child(3) { transition-delay: .42s; }
.consult-points li::before { content: "✓"; color: var(--gold); font-weight: 700; }
.wizard { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.wizard-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 28px; }
.wizard-step-ind { display: grid; gap: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); position: relative; }
.wizard-step-ind::before { content: ""; height: 2px; background: var(--line-soft); grid-row: 1; }
.wizard-step-ind::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.wizard-step-ind.is-active, .wizard-step-ind.is-done { color: var(--ink); }
.wizard-step-ind.is-active::after, .wizard-step-ind.is-done::after { transform: scaleX(1); }
.wizard-panel { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.wizard-panel.is-active { display: grid; gap: 18px; animation: panelIn .45s var(--ease); }
.wizard-panel legend { font: 400 1.5rem/1.2 var(--serif); margin-bottom: 4px; padding: 0; }
@keyframes panelIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--canvas); border: 1px solid rgba(20, 23, 27, .18); color: var(--ink);
  font-size: 16px; transition: border-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.field select option { background: var(--surface); color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field.has-error input, .field.has-error select { border-color: #E5484D; }
.field-error { font-size: 12px; color: #FF8A8A; min-height: 0; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-group label { text-transform: none; letter-spacing: 0; font-size: 14px; cursor: pointer; }
.chip-group input { position: absolute; opacity: 0; pointer-events: none; }
.chip-group span { display: inline-block; padding: 9px 15px; border: 1px solid rgba(20, 23, 27, .18); border-radius: 40px; color: var(--ink-2); transition: all .25s; }
.chip-group input:checked + span { background: rgba(184, 134, 11, .12); border-color: var(--gold); color: var(--ink); }
.chip-group input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.wizard-nav .btn { flex: 1 1 auto; }
.wizard-note { font-size: 12.5px; color: var(--ink-3); margin: 16px 0 0; text-align: center; }
.wizard-summary { background: var(--canvas); border: 1px dashed var(--line); padding: 16px; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-2); white-space: pre-wrap; max-height: 260px; overflow: auto; }

/* ---------- Studio sub-sections (People / Awards / Publications / Events) ---------- */
.studio-sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.studio-sub-grid--pair { grid-template-columns: repeat(2, 1fr); }
.studio-sub-card { background: var(--canvas); padding: 28px 26px; display: grid; gap: 10px; align-content: start; scroll-margin-top: var(--header-h); }
.studio-sub-card h3 { font: 400 1.05rem/1.3 var(--serif); }
.studio-sub-card p { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.studio-sub-card p a { color: var(--gold-2); }

/* ---------- Team carousel: rotating ring, one member highlighted at a time ---------- */
.team-carousel { display: grid; justify-items: center; gap: 22px; padding-top: 4px; }
.team-stage {
  position: relative; width: 100%; max-width: 940px; height: 460px;
  perspective: 1700px; perspective-origin: 50% 55%;
}
.team-ring { position: absolute; inset: 0; transform-style: preserve-3d; }
.team-slide {
  position: absolute; top: 50%; left: 50%; width: 240px; aspect-ratio: 4 / 5;
  background: var(--surface); overflow: hidden; box-shadow: 0 16px 34px -18px rgba(15,18,22,.4);
  transition: transform 1.05s var(--ease), opacity 1.05s var(--ease), filter 1.05s var(--ease), box-shadow 1.05s var(--ease);
  will-change: transform, opacity;
}
.team-slide img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }
.team-slide.is-front { box-shadow: 0 30px 56px -20px rgba(15,18,22,.5); }
.team-slide.is-front img { filter: grayscale(.08); }
.team-slide::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.team-slide.is-front::after { transform: scaleX(1); }

.team-caption { text-align: center; display: grid; gap: 5px; min-height: 54px; }
.team-caption-name, .team-caption-role { transition: opacity .35s ease; }
.team-caption-name { font: 400 1.28rem/1.3 var(--serif); }
.team-caption-role { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.team-caption.is-fading .team-caption-name, .team-caption.is-fading .team-caption-role { opacity: 0; }

.team-dots { display: flex; gap: 10px; }
.team-dot {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer;
  transition: background .3s ease, border-color .3s ease, transform .3s var(--ease);
}
.team-dot.is-active { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }
.team-dot:hover { border-color: var(--gold-2); }

@media (prefers-reduced-motion: reduce) {
  .team-slide { transition: opacity .3s ease; }
}

/* ---------- Contact hub: asymmetric "bento" grid. Icons sketch themselves in on scroll
   (same pencil-line motif used elsewhere on the site) and WhatsApp is promoted to its own
   accent banner as the fastest-reply channel, instead of a uniform spreadsheet grid. ---------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "address address hours    call"
    "address address email    social"
    "whatsapp whatsapp whatsapp whatsapp"
    "map map map map";
  gap: 1px; background: var(--line-soft);
}
#contact-address  { grid-area: address; }
#contact-hours    { grid-area: hours; }
#contact-call     { grid-area: call; }
#contact-email    { grid-area: email; }
#contact-social   { grid-area: social; }
#contact-whatsapp { grid-area: whatsapp; }
.map-embed        { grid-area: map; }

.contact-card {
  background: var(--canvas); padding: 32px 30px; display: grid; gap: 12px; align-content: start;
  transition: background .3s, transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
}
.contact-card:hover { background: var(--surface); transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(20, 23, 27, .35); z-index: 1; }
#contact-address { padding: 40px 36px; }
#contact-address address { font: 400 1.1rem/1.5 var(--serif); }
.contact-card .ic { width: 30px; height: 30px; color: var(--gold); transition: transform .3s var(--ease); }
.contact-card:hover .ic { transform: translateY(-2px) rotate(-4deg); }
.contact-card h3 { font: 600 12px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.contact-card p, .contact-card address { margin: 0; font-style: normal; color: var(--ink); font-size: 15.5px; }
.contact-card .sub { color: var(--ink-3); font-size: 13.5px; }
.contact-card .link { color: var(--gold); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; display: inline-flex; gap: 4px; transition: gap .25s var(--ease); }
.contact-card:hover .link { gap: 9px; }

/* Hand-drawn stroke icons sketch themselves in as their card scrolls into view */
.contact-card .ic path, .contact-card .ic circle, .contact-card .ic rect {
  stroke-dasharray: 170; stroke-dashoffset: 170; transition: stroke-dashoffset 1.1s var(--ease);
}
.contact-grid .reveal.is-in .ic path, .contact-grid .reveal.is-in .ic circle, .contact-grid .reveal.is-in .ic rect {
  stroke-dashoffset: 0; transition-delay: .12s;
}
.no-js .contact-card .ic path, .no-js .contact-card .ic circle, .no-js .contact-card .ic rect { stroke-dashoffset: 0; }
.contact-grid > .contact-card:nth-of-type(1) { transition-delay: 0s; }
.contact-grid > .contact-card:nth-of-type(2) { transition-delay: .07s; }
.contact-grid > .contact-card:nth-of-type(3) { transition-delay: .14s; }
.contact-grid > .contact-card:nth-of-type(4) { transition-delay: .21s; }
.contact-grid > .contact-card:nth-of-type(5) { transition-delay: .28s; }
.contact-grid > .contact-card:nth-of-type(6) { transition-delay: .35s; }

/* WhatsApp banner: promoted out of the grid into its own full-width accent tile */
.contact-card--featured {
  display: flex; align-items: center; gap: 26px; padding: 30px 36px;
  background: linear-gradient(120deg, rgba(37, 211, 102, .1), rgba(37, 211, 102, .02));
  border: 1px solid rgba(37, 211, 102, .3);
}
.contact-card--featured svg {
  width: 40px; height: 40px; color: var(--wa); flex-shrink: 0;
  transform: scale(.4); opacity: 0; transition: transform .55s var(--ease), opacity .4s ease; transition-delay: .1s;
}
.contact-grid .contact-card--featured.reveal.is-in svg { transform: scale(1); opacity: 1; }
.no-js .contact-card--featured svg { transform: none; opacity: 1; }
.contact-card--featured .contact-card-body { display: grid; gap: 2px; }
.contact-card--featured .wa-badge {
  font: 600 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--wa);
  background: rgba(37, 211, 102, .14); padding: 4px 8px; border-radius: 20px;
}
.contact-card--featured p { font: 400 1.2rem/1.3 var(--serif); }
.contact-card--featured .link { margin-left: auto; margin-top: 0; white-space: nowrap; }

.map-embed { width: 100%; border-top: 1px solid var(--line-soft); aspect-ratio: 21 / 7; min-height: 280px; background: var(--canvas); position: relative; overflow: hidden; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; text-align: center; cursor: pointer; border: 0; width: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, .1), transparent 60%), var(--canvas);
  color: var(--ink);
}
.map-load .btn { justify-self: center; }
.map-pin { position: relative; display: block; width: 30px; height: 30px; margin: 0 auto; color: var(--gold); }
.map-pin svg { position: relative; z-index: 1; }
.map-pin::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; background: rgba(184, 134, 11, .22);
  animation: mapPinPulse 2.2s ease-out infinite;
}
@keyframes mapPinPulse {
  0% { transform: scale(.5); opacity: .8; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* Studio-hours live "open now" badge, computed client-side in Asia/Kolkata time */
.hours-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.no-js .hours-badge { display: none; }
.hours-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); position: relative; flex-shrink: 0; }
.hours-badge.is-open .hours-dot { background: var(--wa); }
.hours-badge.is-open .hours-dot::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; background: rgba(37, 211, 102, .35);
  animation: hoursPulse 1.8s ease-out infinite;
}
.hours-badge.is-closed .hours-dot { background: var(--ink-3); }
.hours-badge.is-open .hours-badge-text { color: var(--wa); }
@keyframes hoursPulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer-inner p { margin: 0; font-size: 13px; color: var(--ink-3); }
.footer-areas { font-size: 13px; color: var(--ink-3); max-width: 70ch; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2); transition: all .3s; }
.socials a:hover { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Floating actions ---------- */
.fab-bar { display: none; }
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Project detail meta ---------- */
.project-meta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.project-meta-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.project-meta-list .k { color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; font-size: 11px; align-self: center; }
.project-meta-list .v { color: var(--ink); }
.project-nav { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 40px; margin-top: var(--sp); gap: 20px; flex-wrap: wrap; }
.project-nav a { display: grid; gap: 6px; }
.project-nav .dir { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.project-nav .name { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); transition: color .25s; }
.project-nav a:hover .name { color: var(--gold); }
.project-nav .next { text-align: right; margin-left: auto; }

/* ---------- Decorative background: animated building sketches (self-drawing, looped) ---------- */
.sketch-bg { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.sketch-scene { position: absolute; width: clamp(100px, 13vw, 180px); opacity: 0; animation: sketchSceneFade 16s ease-in-out infinite; }
.sketch-scene--offset { animation-delay: -8s; }
.sketch-scene--offset .sketch-path { animation-delay: -8s; }
.sketch-scene svg { display: block; width: 100%; height: auto; overflow: visible; }
.sketch-path {
  fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; stroke-dasharray: 100;
}

.sketch-pos-tl { top: 4%; left: -5%; }
.sketch-pos-tr { top: 4%; right: -5%; }
.sketch-pos-bl { bottom: -5%; left: -5%; }
.sketch-pos-br { bottom: -5%; right: -5%; }

@keyframes sketchSceneFade {
  0%   { opacity: 0; }
  4%   { opacity: .4; }
  78%  { opacity: .4; }
  92%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Each element of a sketch "builds" in turn - walls, then roof, then openings - as one
   continuous stroke-drawing pass, holds complete for a beat, then the whole scene fades
   (above) and the drawing quietly resets for the next loop. */
.sketch-path.p1 { animation: sketchDraw1 16s linear infinite; }
.sketch-path.p2 { animation: sketchDraw2 16s linear infinite; }
.sketch-path.p3 { animation: sketchDraw3 16s linear infinite; }
.sketch-path.p4 { animation: sketchDraw4 16s linear infinite; }
.sketch-path.p5 { animation: sketchDraw5 16s linear infinite; }
.sketch-path.p6 { animation: sketchDraw6 16s linear infinite; }
.sketch-path.p7 { animation: sketchDraw7 16s linear infinite; }
.sketch-path.p8 { animation: sketchDraw8 16s linear infinite; }
.sketch-path.p9 { animation: sketchDraw9 16s linear infinite; }

@keyframes sketchDraw1 { 0% { stroke-dashoffset: 100; } 14% { stroke-dashoffset: 0; } }
@keyframes sketchDraw2 { 0%, 10% { stroke-dashoffset: 100; } 22% { stroke-dashoffset: 0; } }
@keyframes sketchDraw3 { 0%, 18% { stroke-dashoffset: 100; } 28% { stroke-dashoffset: 0; } }
@keyframes sketchDraw4 { 0%, 25% { stroke-dashoffset: 100; } 34% { stroke-dashoffset: 0; } }
@keyframes sketchDraw5 { 0%, 31% { stroke-dashoffset: 100; } 42% { stroke-dashoffset: 0; } }
@keyframes sketchDraw6 { 0%, 39% { stroke-dashoffset: 100; } 48% { stroke-dashoffset: 0; } }
@keyframes sketchDraw7 { 0%, 46% { stroke-dashoffset: 100; } 55% { stroke-dashoffset: 0; } }
@keyframes sketchDraw8 { 0%, 53% { stroke-dashoffset: 100; } 61% { stroke-dashoffset: 0; } }
@keyframes sketchDraw9 { 0%, 59% { stroke-dashoffset: 100; } 67% { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .sketch-scene, .sketch-path { animation: none !important; opacity: 0 !important; }
}

/* One large, centred "hero" structure that sits behind the whole page (not just a corner) -
   bigger, slower, fainter and drawn with a slightly rough hand-pencilled line (via SVG filter
   on the markup side) so it reads as one big building being sketched in the background,
   distinct from the two small crisp corner sketches. */
.sketch-scene--hero {
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(300px, min(50vw, 60vh), 720px);
  animation-name: sketchSceneFadeHero; animation-duration: 32s;
}
.sketch-scene--hero .sketch-path {
  stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round;
}
.sketch-scene--hero .sketch-path.p1,
.sketch-scene--hero .sketch-path.p2 { stroke-width: 2.1; }
.sketch-scene--hero .sketch-path { animation-duration: 32s; }
/* Every major line is echoed by a second, slightly offset stroke at reduced opacity - the
   overlapping double-line is what reads as a rough, not-quite-finished pencil sketch rather
   than a single clean technical outline. */
.sketch-scene--hero .sketch-path.sketch-rough-echo { opacity: .5; stroke-width: 1.3; }

@keyframes sketchSceneFadeHero {
  0%   { opacity: 0; }
  4%   { opacity: .26; }
  82%  { opacity: .26; }
  94%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 640px) {
  .sketch-scene--hero { width: clamp(260px, 82vw, 420px); }
}

/* ---------- Fade + rise scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .split, .split.reverse { grid-template-columns: 1fr; min-height: 0; direction: ltr; }
  .split-media { width: 100%; min-height: 52vh; aspect-ratio: 4 / 3.4; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card, .project-card:nth-child(3n+1) { grid-column: span 1; aspect-ratio: 4 / 3; }
  .consult-grid { grid-template-columns: 1fr; }
  .consult-aside { position: static; }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "address address"
      "hours   call"
      "email   social"
      "whatsapp whatsapp"
      "map map";
  }
  .studio-sub-grid { grid-template-columns: 1fr 1fr; }
  .team-stage { height: 400px; }
  .team-slide { width: 200px; }
}
@media (max-width: 900px) {
  :root { --header-h: 84px; }
  .brand-mark { height: 58px; }
  .brand-name { font-size: 1.7rem; }
  .brand { gap: 12px; }
  .nav-toggle { display: block; }
  .nav-stack {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--canvas); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 22px;
    transform: translateY(-120%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s;
    overflow-y: auto;
  }
  .nav-stack.is-open { transform: none; visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-primary { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-top { width: 100%; padding: 16px 0; margin-left: 0; font-size: 20px; border-bottom: 1px solid var(--line-soft); }
  .sub-nav { position: static; justify-content: center; flex-wrap: wrap; padding: 14px 0 0; }
  .sub-nav a { margin: 0 10px 10px; font-size: 14px; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; border-top: 1px solid var(--line-soft); padding: 22px 0; }
  .trust-item:first-child { border-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-tag { display: none; }
  :root { --header-h: 72px; }
  .brand-mark { height: 48px; }
  .brand-name { font-size: 1.45rem; }
  .sketch-scene { width: clamp(70px, 24vw, 110px); }
  .sketch-pos-tl, .sketch-pos-tr { top: 2%; }
  .sketch-pos-tl { left: -9%; }
  .sketch-pos-tr { right: -9%; }
  .sketch-pos-bl { left: -9%; }
  .sketch-pos-br { right: -9%; }
  :root { --sp: clamp(64px, 14vw, 96px); }
  .services-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; grid-template-areas: none; }
  #contact-address, #contact-hours, #contact-call, #contact-email, #contact-social, #contact-whatsapp, .map-embed { grid-area: auto; }
  .contact-card--featured { flex-direction: column; align-items: flex-start; text-align: left; }
  .contact-card--featured .link { margin-left: 0; margin-top: 10px; }
  .studio-sub-grid { grid-template-columns: 1fr; }
  .team-stage { height: 320px; }
  .team-slide { width: 152px; }
  .team-caption-name { font-size: 1.1rem; }
  .map-embed { aspect-ratio: 4 / 3; }
  .hero-ctas .btn { width: 100%; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; } .lightbox-close { top: 12px; right: 12px; }
  .project-nav { flex-direction: column; }
  .project-nav .next { text-align: left; margin-left: 0; }
  .wa-float { display: none; }
  .fab-bar {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .fab-bar .btn { min-height: 50px; padding: 0 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Video gallery (project pages) ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.video-tile { margin: 0; }
.video-tile video { display: block; width: 100%; aspect-ratio: 16/9; background: #0B0F19; object-fit: cover; }
.video-tile figcaption { padding-top: 8px; font-size: .85rem; color: var(--muted, #6b7280); }
@media (max-width: 640px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- Site credit (very bottom-left corner of every page) ---------- */
.site-credit-bar { padding: 8px 14px; text-align: left; font-size: 10.5px; letter-spacing: .04em; color: var(--ink-2, #6b7280); border-top: 1px solid var(--line, #e5e7eb); background: var(--canvas, #fff); }
.site-credit-bar a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-credit-bar a:hover { color: var(--gold, #B8860B); }
@media (max-width: 640px) { .site-credit-bar { padding-bottom: 84px; } }

/* ---------- Mobile / tablet hero: video fills the section, text sits ON the video ---------- */
@media (max-width: 900px) {
  #top.split { display: block; position: relative; min-height: calc(100svh - var(--header-h)); overflow: hidden; background: #0B0F19; }
  #top .split-media { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; z-index: 0; }
  #top .split-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(11,15,25,.62) 0%, rgba(11,15,25,.55) 45%, rgba(11,15,25,.82) 100%); }
  #top .split-media .tone-label { display: none; }
  #top .split-content { position: relative; z-index: 2; min-height: calc(100svh - var(--header-h)); padding: 32px 20px 110px; background: transparent; align-items: center; }
  #top .split-content-inner { max-width: 640px; gap: 20px; }
  #top h1, #top .lead, #top .hero-meta, #top .hero-meta span { color: #fff; }
  #top .lead { opacity: .92; }
  #top h1 em { color: #F2C94C; }
  #top .eyebrow { color: #F2C94C; }
  #top .eyebrow::before { background: #F2C94C; }
  #top .rating-badge { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
  #top .rating-badge .stars { color: #F2C94C; }
  #top .rating-badge strong { color: #fff; }
  #top .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
  #top .btn-ghost:hover { background: rgba(255,255,255,.2); }
  #top .hero-meta span::before { color: #F2C94C; }
}
