/* =====================================================
   Bluehaus Group — Design System
   Palette differentiator: warm cream + deep brand navy
   evokes architectural drawing paper + blueprint, sets
   the firm apart from peer studios that default to pure
   white or beige/gold. Navy is from the actual logo SVG.
   ===================================================== */

:root {
  /* Paper + ink */
  --paper:        #F2EFE8;
  --paper-soft:   #E8E3D6;
  --surface:      #FBFAF6;
  --ink:          #0A0F16;
  --ink-soft:     #1A2230;
  --muted:        #5F6770;
  --muted-soft:   #8A8D93;
  --line:         #D5CEBE;
  --line-soft:    #E2DCCD;

  /* Brand */
  --blue:         #0E2A47;
  --blue-deep:    #050E1C;
  --blue-mid:     #1F4470;
  --azure:        #2D5FA0;
  --azure-bright: #4683D6;

  /* Accent — restrained terracotta for warm punctuation */
  --terracotta:   #B85C3C;

  /* Spacing */
  --container:    1440px;
  --gutter:       clamp(20px, 4vw, 56px);

  /* Type */
  --font-sans:    "Inter Tight", "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --font-body:    "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: var(--paper); color: var(--ink); }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ----- Typography ----- */
.h-display {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 112px);
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: var(--ink);
  text-wrap: balance;
}
.h-display .it { font-style: italic; font-weight: 400; font-family: "Newsreader", "Inter Tight", serif; letter-spacing: -0.02em; }

.h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 64px);
  letter-spacing: -0.022em;
  line-height: 1.02;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.lede {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  text-wrap: pretty;
  max-width: 60ch;
}
.body { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-ink { color: var(--ink); }
.label-paper { color: var(--paper); }

/* ----- Layout primitives ----- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(64px, 8vw, 128px) 0; }
.section-tight { padding: clamp(48px, 5vw, 80px) 0; }

.hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.hr-soft { border-top-color: var(--line-soft); }
.hr-dark { border-top-color: rgba(255,255,255,0.14); }

/* ----- Buttons / CTAs ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--blue); }
.btn-blue {
  background: var(--blue);
  color: var(--paper);
}
.btn-blue:hover { background: var(--blue-mid); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-ghost-dark {
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--paper);
  background: transparent;
}
.btn-ghost-dark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn .arr { font-family: var(--font-mono); font-weight: 400; font-size: 13px; transition: transform 0.18s ease; }
.btn:hover .arr { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.2s ease;
}
.link-arrow:hover { gap: 14px; }

/* ----- Nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(242,239,232,0.92); backdrop-filter: blur(10px); }
.nav.dark { background: var(--blue-deep); color: var(--paper); }
.nav.dark.scrolled { background: rgba(5,14,28,0.86); border-bottom-color: rgba(255,255,255,0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo .mark { font-family: var(--font-sans); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.nav-logo .lock { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line); }
.nav.dark .nav-logo .lock { color: rgba(255,255,255,0.6); border-left-color: rgba(255,255,255,0.18); }

.nav-links { display: flex; gap: clamp(18px, 2.4vw, 36px); align-items: center; }
.nav-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 450;
  letter-spacing: -0.005em;
  position: relative;
  padding: 6px 0;
  color: inherit;
  opacity: 0.78;
  transition: opacity 0.15s;
}
.nav-link:hover, .nav-link.active { opacity: 1; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
}

.nav-right { display: flex; align-items: center; gap: 16px; }
.locale-switch {
  display: flex;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.locale-switch span { padding: 4px 8px; opacity: 0.5; cursor: pointer; transition: opacity 0.15s; }
.locale-switch span.on { opacity: 1; }
.locale-switch span:hover { opacity: 1; }

.nav-mobile { display: none; }

@media (max-width: 900px) {
  .nav-links, .nav-right .locale-switch, .nav-right .btn { display: none; }
  .nav-mobile { display: flex; align-items: center; gap: 12px; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  background: var(--blue-deep);
  color: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(0.85);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,14,28,0.4) 0%, rgba(5,14,28,0.1) 30%, rgba(5,14,28,0.85) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(40px, 5vw, 72px) var(--gutter);
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
}
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero-meta-right {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}
.hero-bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero-bottom h1 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.028em;
  color: var(--paper);
  text-wrap: balance;
}
.hero-bottom h1 .it {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.92);
}
.hero-bottom p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
  max-width: 42ch;
  margin-bottom: 24px;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

@media (max-width: 800px) {
  .hero-bottom { grid-template-columns: 1fr; }
}

/* ----- Sector tiles ----- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sector-grid { grid-template-columns: 1fr; }
}
.sector-tile {
  background: var(--paper);
  padding: 36px 32px;
  cursor: pointer;
  transition: background 0.18s;
  display: flex;
  flex-direction: column;
  gap: 80px;
  min-height: 240px;
  position: relative;
}
.sector-tile:hover { background: var(--surface); }
.sector-tile .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--muted); }
.sector-tile .name { font-family: var(--font-sans); font-weight: 500; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.015em; }
.sector-tile .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-top: auto; }
.sector-tile .arr {
  position: absolute;
  bottom: 32px; right: 32px;
  font-family: var(--font-mono);
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s;
}
.sector-tile:hover .arr { opacity: 1; transform: translateX(4px); }

/* ----- Project cards ----- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 48px) clamp(20px, 2.4vw, 32px);
}
.proj-card { display: block; cursor: pointer; }
.proj-card .ph {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-soft);
  position: relative;
}
.proj-card.tall .ph { aspect-ratio: 3 / 4; }
.proj-card.wide .ph { aspect-ratio: 16 / 10; }
.proj-card .ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.proj-card:hover .ph img { transform: scale(1.04); }
.proj-card .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  gap: 16px;
}
.proj-card .name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.proj-card .loc {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.proj-card .tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
  max-width: 36ch;
}

/* Filter pills */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.filter-pill {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 450;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  transition: all 0.15s;
}
.filter-pill:hover { color: var(--ink); border-color: var(--ink); }
.filter-pill.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-pill .count { font-family: var(--font-mono); font-size: 10px; opacity: 0.6; margin-left: 8px; }

/* ----- Featured project (editorial) ----- */
.feature-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}
.feature-row.reverse { grid-template-columns: 7fr 5fr; }
@media (max-width: 900px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
}
.feature-row .copy { padding: 0; }
.feature-row .copy .h2 { margin: 12px 0 16px; }
.feature-row .meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.feature-row .meta-grid dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.feature-row .meta-grid dd {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 450;
  color: var(--ink);
}
.feature-row .img-wrap {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--paper-soft);
}
.feature-row .img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ----- TP Bennett credential strip ----- */
.tpb-strip {
  background: var(--blue-deep);
  color: var(--paper);
  padding: clamp(56px, 6vw, 96px) 0;
}
.tpb-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 5vw, 80px);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  align-items: center;
}
@media (max-width: 900px) { .tpb-inner { grid-template-columns: 1fr; } }
.tpb-strip .label { color: rgba(255,255,255,0.55); }
.tpb-strip h2 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--paper);
  margin-top: 16px;
}
.tpb-strip h2 .it { font-family: "Newsreader", serif; font-style: italic; font-weight: 300; }
.tpb-strip .lock-mark {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.025em;
  color: var(--paper);
}
.tpb-strip .lock-mark .sep { color: rgba(255,255,255,0.35); font-weight: 300; margin: 0 12px; }
.tpb-strip p {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  max-width: 60ch;
  margin-top: 14px;
}

/* ----- Divisions ----- */
.divisions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .divisions { grid-template-columns: 1fr; } }
.div-card {
  background: var(--paper);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.div-card .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--muted); }
.div-card .name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.018em;
  margin-top: 12px;
  margin-bottom: 18px;
}
.div-card .name .sub { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-top: 8px; }
.div-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.div-card .foot { margin-top: auto; padding-top: 28px; }

/* ----- Stat row ----- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat .num {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
}
.stat .lab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
  max-width: 26ch;
}

/* ----- Awards strip ----- */
.awards-strip {
  background: var(--paper-soft);
  padding: clamp(56px, 6vw, 80px) 0;
}
.awards-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (max-width: 700px) { .awards-list { grid-template-columns: 1fr; } }
.award-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: baseline;
}
.award-item .yr { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.award-item .name { font-family: var(--font-sans); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.award-item .name .proj { display: block; font-family: var(--font-body); font-weight: 300; font-size: 14px; color: var(--muted); margin-top: 4px; }
.award-item .issuer { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ----- Footer ----- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 14px; color: rgba(255,255,255,0.82); }
.footer a:hover { color: var(--paper); }
.footer-cta { font-family: var(--font-sans); font-weight: 400; font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.022em; line-height: 1.05; max-width: 18ch; text-wrap: balance; }
.footer-cta .it { font-family: "Newsreader", serif; font-style: italic; font-weight: 300; }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}

/* ----- Case study ----- */
.case-hero {
  position: relative;
  height: clamp(420px, 70vh, 720px);
  overflow: hidden;
  background: var(--blue-deep);
  color: var(--paper);
}
.case-hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.78; }
.case-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.7) 100%);
}
.case-hero-text {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 5vw, 64px) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  left: 0; right: 0;
}
.case-hero-text .label { color: rgba(255,255,255,0.7); }
.case-hero-text h1 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--paper);
  margin-top: 16px;
  text-wrap: balance;
  max-width: 18ch;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .case-meta { grid-template-columns: repeat(2, 1fr); } }
.case-meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.case-meta dd { font-family: var(--font-sans); font-size: 16px; font-weight: 450; color: var(--ink); }

.case-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(56px, 7vw, 96px) 0;
}
@media (max-width: 900px) { .case-body { grid-template-columns: 1fr; } }
.case-body .colA .label { display: block; margin-bottom: 18px; }
.case-body .colA h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.018em;
  line-height: 1.1;
}
.case-body .colB p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 1.2em;
  max-width: 64ch;
}
.case-body .colB p:first-letter {
  /* removed dropcap, keep editorial */
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.case-gallery .img-1 { grid-column: span 8; }
.case-gallery .img-2 { grid-column: span 4; }
.case-gallery .img-3 { grid-column: span 12; }
.case-gallery .img-4 { grid-column: span 5; }
.case-gallery .img-5 { grid-column: span 7; }
.case-gallery > div { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-soft); }
.case-gallery > div img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .case-gallery > div { grid-column: span 12 !important; }
}

.next-case {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  padding: clamp(48px, 5vw, 80px) 0;
}
.next-case-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.next-case .label { color: var(--muted); }
.next-case .h2 { margin-top: 8px; }

/* ----- About / leadership ----- */
.about-hero {
  padding: clamp(80px, 9vw, 144px) 0 clamp(48px, 5vw, 80px);
}
.about-hero h1 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 108px);
  letter-spacing: -0.028em;
  line-height: 0.98;
  max-width: 18ch;
  margin-bottom: 32px;
}
.about-hero h1 .it { font-family: "Newsreader", serif; font-style: italic; font-weight: 300; }
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-top: 48px;
}
@media (max-width: 800px) { .about-cols { grid-template-columns: 1fr; } }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { display: flex; flex-direction: column; }
.team-card .portrait {
  aspect-ratio: 4 / 5;
  background: var(--paper-soft);
  position: relative;
  overflow: hidden;
}
.team-card .portrait::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(14,42,71,0.05) 14px 15px),
    var(--paper-soft);
}
.team-card .portrait .initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 56px;
  color: var(--blue);
  letter-spacing: -0.03em;
}
.team-card .name { font-family: var(--font-sans); font-weight: 500; font-size: 16px; margin-top: 14px; letter-spacing: -0.01em; }
.team-card .role { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field select { appearance: none; cursor: pointer; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 18px, calc(100% - 6px) 18px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field textarea { min-height: 100px; resize: vertical; }

.office-card {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.office-card:first-child { border-top: none; padding-top: 0; }
.office-card .city { font-family: var(--font-sans); font-weight: 500; font-size: 22px; letter-spacing: -0.015em; }
.office-card .city .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-left: 12px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; vertical-align: 3px; }
.office-card .addr { font-family: var(--font-body); font-size: 15px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.office-card .contact-line { font-family: var(--font-mono); font-size: 12px; color: var(--ink); margin-top: 10px; letter-spacing: 0.02em; }

/* ----- Marquee / running text ----- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  background: var(--paper);
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 32px);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.marquee-track .it { font-family: "Newsreader", serif; font-style: italic; font-weight: 300; color: var(--blue); }
.marquee-track .dot { color: var(--terracotta); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----- Lightbox ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5,10,18,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
}
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox .close {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ----- Mobile nav drawer ----- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--paper);
  padding: 24px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.drawer .drawer-head { display: flex; justify-content: space-between; align-items: center; height: 76px; margin: -24px -16px 0; padding: 0 16px; }
.drawer nav { display: flex; flex-direction: column; gap: 4px; margin-top: 32px; }
.drawer nav a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

/* ----- Misc utility ----- */
.cinematic-band {
  background: var(--blue-deep);
  color: var(--paper);
}
.cinematic-band .label { color: rgba(255,255,255,0.55); }

.eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 32px;
}
.eyebrow-row h2 { max-width: 18ch; }

/* Tweaks panel base (slot) */
#tweaks-root { position: fixed; z-index: 90; }

/* page fade */
.page { animation: fadeUp 0.4s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* logo color override based on theme */
.logo-svg path { fill: var(--ink); }
.nav.dark .logo-svg path { fill: var(--paper); }
.footer .logo-svg path { fill: var(--paper); }
