﻿:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #ebebed;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.04);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --card: #fafafa;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #0a0a0b;
  --bg-3: #1c1c1e;
  --ink: #f5f5f7;
  --ink-2: #c7c7cc;
  --muted: #86868b;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.05);
  --accent: #2997ff;
  --accent-hover: #4ba5ff;
  --card: #1c1c1e;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.47;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

::selection { background: var(--accent); color: #fff; }

/* =================== NAV =================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-2);
  padding: 0 2rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 26px; height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a.logo { font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }


/* =================== BUTTONS =================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.8rem 1.6rem;
  border-radius: 980px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  line-height: 1;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-ghost:hover { color: var(--accent-hover); gap: 0.5rem; }
.btn-ghost::after {
  content: '›';
  font-size: 1.1em;
  transition: transform 0.2s;
  line-height: 0.5;
}
.btn-ghost:hover::after { transform: translateX(2px); }

.btn-dark {
  background: var(--ink);
  color: var(--bg);
}
.btn-dark:hover { opacity: 0.85; }

/* =================== SECTIONS =================== */
section { padding: 120px 24px; position: relative; }

.container { max-width: 1120px; margin: 0 auto; }
.container-wide { max-width: 1400px; margin: 0 auto; }

/* =================== HERO =================== */
.hero {
  padding: 120px 24px 80px;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--ink);
  max-width: 900px;
  margin-bottom: 1.5rem;
}

.hero .subhead {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  line-height: 1.3;
  max-width: 680px;
  margin-bottom: 2.2rem;
}

.hero-ctas {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* =================== HERO 3D =================== */
.hero { overflow: hidden; }

#hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Tight centre vignette — only protects the text block, lets the building breathe */
[data-theme="light"] .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 38% 42% at 50% 42%,
    rgba(255,255,255,0.80) 0%,
    rgba(255,255,255,0.14) 52%,
    transparent 100%);
}

[data-theme="dark"] .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 38% 42% at 50% 42%,
    rgba(0,0,0,0.80) 0%,
    rgba(0,0,0,0.14) 52%,
    transparent 100%);
}

.hero > *:not(#hero-3d) {
  position: relative;
  z-index: 2;
}

/* =================== TRANSFORM SCENE =================== */
/* The 4-stage scroll-driven transformation */
.transform-scene {
  padding: 80px 24px 120px;
  background: var(--bg);
  position: relative;
}

.transform-track {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

.transform-stage {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 24px;
  background: var(--bg-2);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.stage-canvas {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 3rem;
}

.stage-canvas svg {
  width: 100%;
  height: 100%;
  max-width: 900px;
  max-height: 540px;
}

/* Each stage fades/transforms between with scroll */
.stage-frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 3rem;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.stage-frame.active {
  opacity: 1;
}

.stage-label {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 3;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--bg);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: var(--shadow-sm);
}

.stage-label .badge {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.stage-step-indicator {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.step-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.step-btn::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.25s;
}

.step-btn:hover { border-color: var(--ink-2); color: var(--ink); }

.step-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.step-btn.active::before { background: var(--accent); }

.transform-caption {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  min-height: 3rem;
  transition: opacity 0.3s;
}

.transform-caption strong {
  color: var(--ink);
  font-weight: 600;
}

/* =================== SECTION HEADINGS =================== */
.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* =================== FEATURE TILES =================== */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.tile {
  background: var(--card);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s ease;
}

.tile:hover { transform: translateY(-4px); }

.tile.wide {
  aspect-ratio: auto;
  grid-column: span 2;
  min-height: 500px;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
}

.tile-content { max-width: 440px; }

.tile-eyebrow {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.tile h3 {
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.tile p {
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.45;
  margin-bottom: 1.5rem;
  max-width: 380px;
}

.tile-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}

.tile-link::after { content: '›'; font-size: 1.15em; line-height: 0.5; }

.tile-link:hover { gap: 0.5rem; }

.tile-visual {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  color: var(--ink);
}

.tile-visual svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.tile.wide .tile-visual { align-self: stretch; }

/* =================== STATS STRIP =================== */
.stats-strip {
  padding: 80px 24px;
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.stats-strip-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-num {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-num .unit {
  font-size: 0.55em;
  color: var(--muted);
  font-weight: 500;
  margin-left: 0.1em;
}

.stat-lbl {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 160px;
  margin: 0 auto;
  line-height: 1.35;
}

/* =================== PROCESS TIMELINE =================== */
.process-timeline {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.phase {
  background: var(--bg);
  padding: 32px 24px;
  transition: background 0.3s;
}

.phase:hover { background: var(--bg-2); }

.phase-num {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.phase h4 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.phase p {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.phase-dur {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

/* =================== WORK SHOWCASE =================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.project {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.4s ease;
  aspect-ratio: 4 / 5;
}

.project:hover { transform: translateY(-4px); }

.project.wide {
  grid-column: span 2;
  aspect-ratio: 21 / 9;
  flex-direction: row;
}

.project-visual {
  flex: 1;
  position: relative;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
  color: var(--ink);
}

.project-visual svg {
  width: 100%;
  height: auto;
  max-height: 320px;
}

.project.wide .project-visual { min-width: 55%; }
.project.wide .project-body { max-width: 45%; }

.project-body {
  padding: 2rem 2.5rem 2.5rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.project h3 {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.project .loc {
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project .desc {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* =================== TESTIMONIALS =================== */
#clients {
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}
#clients .section-head {
  padding-left: max(2rem, calc((100vw - 1120px) / 2));
  padding-right: max(2rem, calc((100vw - 1120px) / 2));
}
.quotes-track-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.quotes-track-wrap::before,
.quotes-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 180px;
  z-index: 2;
  pointer-events: none;
}
.quotes-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 20%, transparent 100%);
}
.quotes-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 20%, transparent 100%);
}
.quotes {
  display: flex;
  overflow: hidden;
  padding: 8px 0 28px;
  user-select: none;
  cursor: grab;
}
.quotes-inner {
  display: flex;
  flex-shrink: 0;
  gap: 28px;
  will-change: transform;
}

.quote {
  background: var(--card);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex: 0 0 400px;
}

.quote-text {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -0.012em;
  margin-bottom: 2rem;
  flex: 1;
  font-weight: 400;
}

.quote-author { padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 0.75rem; }
.quote-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.quote-author .name { font-weight: 600; font-size: 0.98rem; margin-bottom: 0.15rem; }
.quote-author .role { color: var(--muted); font-size: 0.88rem; }
img.emoji { height: 1.1em; width: auto; vertical-align: -0.15em; display: inline-block; }
.role-country { margin-top: 0.2rem; }

/* =================== CTA HERO =================== */
.cta-hero {
  padding: 140px 24px;
  text-align: center;
  background: var(--bg-2);
}

.cta-hero h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.cta-hero p {
  font-size: 1.25rem;
  color: var(--ink-2);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.cta-ctas { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* =================== INQUIRY WIZARD =================== */
.inquiry { padding: 120px 24px; }

.inquiry-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 28px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.wizard-progress {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 2rem;
}

.wizard-dot {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 100px;
  transition: background 0.3s;
}

.wizard-dot.active { background: var(--accent); }
.wizard-dot.complete { background: var(--ink); }

.wizard-step-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.wizard-question {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.8rem;
  color: var(--ink);
}

.wizard-question small {
  display: block;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.3rem;
  letter-spacing: -0.01em;
}

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: stepIn 0.4s ease; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.option-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  padding: 1rem 1.2rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

[data-theme="dark"] .option-card { background: var(--bg-3); }

.option-card:hover { border-color: var(--ink-2); }

.option-card.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.option-card svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

.option-card strong { display: block; font-weight: 600; font-size: 0.95rem; }

.option-card small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }

.field-group { display: flex; flex-direction: column; gap: 1rem; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field label {
  font-size: 0.78rem;
  color: var(--ink-2);
  font-weight: 500;
}

.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  outline: none;
  transition: all 0.2s;
}

[data-theme="dark"] .field input, [data-theme="dark"] .field textarea { background: var(--bg-3); }

.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field textarea { resize: vertical; min-height: 80px; font-family: inherit; }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.8rem;
}

.wizard-back {
  background: transparent;
  border: none;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.wizard-back:hover { color: var(--ink); }
.wizard-back:disabled { opacity: 0; pointer-events: none; }

.wizard-next {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.85rem 1.6rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-next:hover:not(:disabled) { background: var(--accent-hover); }
.wizard-next:disabled { opacity: 0.35; cursor: not-allowed; }

.wizard-success { display: none; text-align: center; padding: 1rem 0; }
.wizard-success.active { display: block; animation: stepIn 0.4s ease; }

.success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.2rem;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.success-icon svg { width: 32px; height: 32px; }

.wizard-success h3 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.wizard-success p {
  color: var(--ink-2);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Scheduler */
.sched-panel { display: none; }
.sched-panel.active { display: block; animation: stepIn 0.4s ease; }

.cal-wrap {
  max-width: 420px;
  margin: 0 auto;
}
.cal-month-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: center;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.cal-body {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cal-inner { flex: 1; min-width: 0; }
.cal-nav {
  background: var(--bg-2);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink-2);
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  align-self: center;
}
.cal-nav:hover { background: var(--bg-3); color: var(--ink); }
.cal-nav svg { display: block; }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.2rem;
  letter-spacing: 0.03em;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  font-size: 0.78rem;
  border: none; background: none;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  transition: background 0.15s;
}
.cal-day.today { font-weight: 700; color: var(--accent); }
.cal-day.disabled { color: var(--muted); opacity: 0.3; cursor: default; }
.cal-day.available:hover { background: var(--bg-2); }
.cal-day.selected { background: var(--accent) !important; color: #fff !important; border-radius: 5px; }

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.time-slot {
  padding: 0.55rem 0.3rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 0.80rem;
  color: var(--ink);
  background: var(--bg);
  font-family: inherit;
  transition: all 0.15s;
}
[data-theme="dark"] .time-slot { background: var(--bg-3); }
.time-slot.unavailable { opacity: 0.28; cursor: default; }
.time-slot.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  color: var(--accent);
  font-weight: 600;
}
.time-slot:hover:not(.unavailable):not(.selected) { border-color: var(--ink-2); }

.sched-chosen {
  font-size: 0.84rem;
  color: var(--ink-2);
  margin-bottom: 1.1rem;
  padding: 0.65rem 1rem;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.sched-chosen strong { color: var(--accent); }

/* =================== ESTIMATOR =================== */
.est-accordion {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.est-toggle-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: background 0.15s;
}
.est-toggle-row:hover { background: var(--bg-2); }
.est-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
}
.est-toggle-left svg { color: var(--accent); flex-shrink: 0; }
.est-toggle-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.est-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 0.18rem 0.5rem;
  border-radius: 99px;
}
.est-chevron {
  color: var(--muted);
  transition: transform 0.25s ease;
}
.est-accordion.open .est-chevron { transform: rotate(180deg); }

.est-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.est-accordion.open .est-body { max-height: 420px; }

.est-fields {
  padding: 0 1.1rem 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.est-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 0.4rem;
}
.est-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.est-input:focus { outline: none; border-color: var(--accent); }
[data-theme="dark"] .est-input { background: var(--bg-2); }

.est-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.est-counter-group { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.est-counter-label { font-size: 0.74rem; font-weight: 500; color: var(--ink-2); }
.est-counter {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}
.est-cnt-btn {
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink-2);
  font-family: inherit;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.est-cnt-btn:hover { background: var(--bg-2); color: var(--ink); }
.est-cnt-val {
  flex: 1;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  line-height: 34px;
  user-select: none;
}

.est-result {
  margin: 0 1.1rem 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  min-height: 52px;
  display: flex;
  align-items: center;
}
.est-placeholder { font-size: 0.82rem; color: var(--muted); }
.est-range-wrap { width: 100%; }
.est-range {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.est-range-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.est-skip-link {
  display: block;
  width: 100%;
  padding: 0.6rem 1.1rem;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: color 0.15s;
}
.est-skip-link:hover { color: var(--ink-2); }

/* =================== ADDITIONAL PROJECTS / MODAL =================== */
.add-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}
.add-project-card {
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.add-project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.add-project-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.add-project-card-body {
  padding: 1.2rem 1.4rem 1.4rem;
}
.add-project-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.add-project-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.add-project-card-body p {
  font-size: 0.84rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.add-project-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
}
.add-project-card:hover .card-overlay { opacity: 1; }
.card-overlay-label {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Modal */
.proj-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.proj-modal-backdrop.open { opacity: 1; pointer-events: all; }
.proj-modal {
  background: var(--card);
  border-radius: 24px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.28s ease;
}
.proj-modal-backdrop.open .proj-modal { transform: translateY(0) scale(1); }

/* Fixed header */
.proj-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 2rem 1.2rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.proj-modal-header-text { flex: 1; }
.proj-modal-tag {
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.proj-modal-header h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.proj-modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  border: none;
  color: var(--ink-2);
  font-size: 1rem;
  cursor: pointer;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.proj-modal-close:hover { background: var(--bg-3); color: var(--ink); }

/* Scrollable content area */
.proj-modal-scroll {
  overflow-y: auto;
  flex: 1;
}
.proj-modal-hero {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.proj-modal-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
}
.proj-modal-gallery img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.proj-modal-body { padding: 1.6rem 2rem 2.2rem; }
.proj-modal-body p {
  font-size: 0.93rem;
  color: var(--ink-2);
  line-height: 1.68;
}
.proj-modal-wrap { position: relative; }

/* =================== FOOTER =================== */
footer {
  background: var(--bg-2);
  padding: 40px 24px 24px;
  border-top: 1px solid var(--line-2);
  font-size: 0.78rem;
}

.footer-top {
  max-width: 1120px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.footer-col.brand {
  grid-column: span 2;
}

.footer-col .logo { margin-bottom: 1rem; }

.footer-col p {
  color: var(--ink-2);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 320px;
}

.footer-offices {
  margin-top: 1.2rem;
  display: flex;
  gap: 2rem;
  font-size: 0.8rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.footer-offices strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.footer-col a {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  padding: 0.3rem 0;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.footer-bottom .legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.footer-col.connect {
  display: flex;
  flex-direction: column;
}
.theme-switch-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.4rem;
  color: var(--muted);
}
.theme-switch {
  width: 42px;
  height: 24px;
  border-radius: 99px;
  background: var(--line);
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: background 0.25s;
  flex-shrink: 0;
}
[data-theme="dark"] .theme-switch { background: var(--accent); }
.switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}
[data-theme="dark"] .switch-thumb { transform: translateX(18px); }

/* =================== ANIMATIONS =================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.8,.2,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.hero-eyebrow, .hero h1, .hero .subhead, .hero-ctas {
  opacity: 0;
  animation: heroIn 0.9s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero .subhead { animation-delay: 0.3s; }
.hero-ctas { animation-delay: 0.45s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stage-specific animations (for SVG transformation) */
@keyframes drawIn {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

.stage-frame[data-stage="1"].active svg path,
.stage-frame[data-stage="1"].active svg line,
.stage-frame[data-stage="1"].active svg rect {
  stroke-dasharray: 1000;
  animation: drawIn 1.2s ease-out forwards;
}

.stage-frame[data-stage="2"].active .wireframe-line {
  stroke-dasharray: 600;
  animation: drawIn 1s ease-out forwards;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
  nav { padding: 0 1rem; height: 48px; justify-content: flex-start; }
  .nav-links a:not(.logo) { display: none; }

  section { padding: 80px 20px; }

  .hero {
    padding: 68px 0 60px;
    min-height: auto;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    align-items: stretch;
  }

  #hero-3d {
    position: relative;
    width: 100vw;
    height: 56vw;
    min-height: 260px;
    max-height: 420px;
    border-radius: 0;
    margin-bottom: 2rem;
    overflow: hidden;
  }

  .hero-eyebrow,
  .hero h1,
  .hero .subhead,
  .hero-ctas { padding-left: 20px; padding-right: 20px; }

  .hero::before { display: none; }

  .hero > *:not(#hero-3d) { position: static; z-index: auto; }

  .transform-scene { padding: 60px 20px 80px; }
  .transform-stage { aspect-ratio: 4 / 3; border-radius: 16px; }
  .stage-canvas, .stage-frame { padding: 1.5rem; }

  .tiles { grid-template-columns: 1fr; }
  .tile { padding: 32px; aspect-ratio: auto; min-height: 420px; }
  .tile.wide { grid-column: auto; flex-direction: column; gap: 1.5rem; min-height: 500px; }
  .tile.wide .tile-visual { width: 100%; }

  .stats-strip-inner { grid-template-columns: 1fr 1fr; gap: 32px 16px; }

  .process-timeline { grid-template-columns: 1fr; }

  .work-grid { grid-template-columns: 1fr; }
  .project { aspect-ratio: auto; }
  .project.wide { grid-column: auto; flex-direction: column; aspect-ratio: auto; }
  .project.wide .project-visual { min-width: 0; }
  .project.wide .project-body { max-width: 100%; }
  .project-body { padding: 1.5rem; }

  .quote { flex: 0 0 85vw; }
  #clients .section-head { padding-left: 1.2rem; padding-right: 1.2rem; }
  .quotes-track-wrap::before, .quotes-track-wrap::after { width: 60px; }

  .inquiry-card { padding: 2rem; border-radius: 20px; }
  .option-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-col.brand { grid-column: span 2; }
  .footer-offices { flex-direction: column; gap: 1rem; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 2rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-col.brand { grid-column: auto; }
}

/* =================== CHAT WIDGET =================== */
.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.wa-fab {
  height: 48px;
  padding: 0 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,0.2); }
.wa-fab svg { flex-shrink: 0; }
.wa-panel {
  background: var(--card);
  border-radius: 20px;
  width: 320px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.14);
  border: 1px solid var(--line);
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.92) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), opacity 0.2s;
}
.wa-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}
.wa-header {
  background: var(--accent);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wa-header-info { display: flex; align-items: center; gap: 0.75rem; }
.wa-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 0.8rem; flex-shrink: 0;
  letter-spacing: -0.02em;
}
.wa-name { font-weight: 700; color: #fff; font-size: 0.9rem; }
.wa-status { font-size: 0.72rem; color: rgba(255,255,255,0.8); margin-top: 0.1rem; }
.wa-close { background: none; border: none; color: #fff; cursor: pointer; font-size: 1rem; opacity: 0.7; padding: 0; line-height: 1; }
.wa-close:hover { opacity: 1; }
.wa-form { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.wa-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  padding-top: 0.2rem;
}
.wa-input, .wa-textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  color: var(--ink);
  font-family: inherit;
  outline: none;
  resize: none;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.wa-input:focus, .wa-textarea:focus { border-color: var(--accent); }
.wa-send {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.72rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.15s, transform 0.1s;
  font-family: inherit;
}
.wa-send:hover { opacity: 0.88; }
.wa-send:active { transform: scale(0.97); }
@media (max-width: 400px) {
  .wa-widget { bottom: 16px; right: 16px; }
  .wa-panel { width: calc(100vw - 32px); }
}