/* ============================================================
   Axtell Construction — editorial / architectural redesign
   Tokens are driven by data-palette + data-type on <html>.
   ============================================================ */

:root {
  /* Palette: Hewn (default) — warm cream + deep navy + tan */
  --cream:      #efe7d2;
  --paper:      #f6f0de;
  --paper-2:    #faf6e9;
  --ink:        #1a2742;
  --ink-2:      #2b3654;
  --ink-muted:  #5a6481;
  --rule:       #d6cdb4;
  --accent:     #a47a4c;
  --accent-2:   #8a6536;
  --on-dark:    #ece2c5;
  --on-dark-mute:#b6ad94;
  --shadow-1:   0 1px 0 rgba(26, 39, 66, 0.08);
  --shadow-card:0 24px 60px -28px rgba(26, 39, 66, 0.35);

  /* Type pairing: Editorial (default) */
  --f-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --f-sans: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-tracking: -0.01em;
  --display-weight: 500;
  --display-italic-weight: 400;
  --eyebrow-tracking: 0.18em;
}

[data-palette="legacy"] {
  /* Matched to the current axtellconstruction.com: charcoal header, silver wordmark, white body */
  --cream:    #e9e9e9;
  --paper:    #f4f4f4;
  --paper-2:  #ffffff;
  --ink:      #1c1c1c;
  --ink-2:    #2e2e2e;
  --ink-muted:#6b6b6b;
  --rule:     #cfcfcf;
  --accent:   #8a8a8a;
  --accent-2: #5f5f5f;
  --on-dark:  #f2f2f2;
  --on-dark-mute:#b0b0b0;
}
[data-palette="concrete"] {
  --cream:    #ece8df;
  --paper:    #f3efe6;
  --paper-2:  #f8f5ec;
  --ink:      #1f201d;
  --ink-2:    #2e2f2b;
  --ink-muted:#6a6a64;
  --rule:     #cfc9bc;
  --accent:   #8a6a44;
  --accent-2: #6e5333;
  --on-dark:  #ddd6c5;
  --on-dark-mute:#a39d8b;
}
[data-palette="coastal"] {
  --cream:    #ecebe5;
  --paper:    #f5f4ee;
  --paper-2:  #fbfaf5;
  --ink:      #0c2a44;
  --ink-2:    #163652;
  --ink-muted:#4f6b85;
  --rule:     #cdd2d4;
  --accent:   #c0a778;
  --accent-2: #9d8657;
  --on-dark:  #e6e3d8;
  --on-dark-mute:#a8b4c2;
}
[data-palette="foundry"] {
  --cream:    #ede9e0;
  --paper:    #f4f1e8;
  --paper-2:  #faf7ee;
  --ink:      #14140f;
  --ink-2:    #24241c;
  --ink-muted:#5b5b50;
  --rule:     #d2cdbe;
  --accent:   #c97a1f;
  --accent-2: #a46318;
  --on-dark:  #ece6d3;
  --on-dark-mute:#a39e8b;
}

/* Type pairings */
[data-type="modern"] {
  --f-display: "Newsreader", "Cormorant Garamond", Georgia, serif;
  --f-sans:    "Outfit", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.018em;
}
[data-type="bold"] {
  --f-display: "DM Serif Display", "Playfair Display", Georgia, serif;
  --f-sans:    "Spline Sans", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.025em;
}

/* ----------- base ----------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--cream); }
body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.serif { font-family: var(--f-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
.italic { font-style: italic; font-weight: var(--display-italic-weight); }
.eyebrow {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-muted);
}
.eyebrow.on-accent { color: var(--accent-2); }
.eyebrow.on-dark { color: var(--on-dark-mute); }

.hairline { height: 1px; background: var(--rule); width: 100%; }

.container { width: min(1320px, 100% - 64px); margin: 0 auto; }
.container-wide { width: min(1480px, 100% - 64px); margin: 0 auto; }

/* ----------- nav ----------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px 0;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  width: 44px; height: 44px;
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--f-display); font-style: italic;
  font-size: 24px; line-height: 1;
  color: var(--ink);
  background: transparent;
}
.brand-name {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-wm { font-family: "Barlow Condensed", var(--f-sans); font-style: italic; font-weight: 900; text-transform: uppercase; line-height: .86; display: flex; flex-direction: column; color: var(--ink); }
.brand-l1 { font-size: 34px; letter-spacing: -.01em; }
.brand-l2 { font-size: 12px; font-weight: 700; letter-spacing: .2em; margin-top: 4px; padding-left: 2px; color: var(--ink-muted); }
.foot-brand .brand-wm { color: var(--on-dark); } .foot-brand .brand-l2 { color: var(--on-dark-mute); }
.brand-name span { display: block; font-family: var(--f-sans); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-muted); margin-top: 5px; font-weight: 600; }

.nav-links {
  display: flex; gap: 36px; justify-content: center;
}
.nav-links button {
  background: none; border: 0; padding: 6px 0;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: var(--ink);
  position: relative;
}
.nav-links button[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}
.nav-links button:hover { color: var(--accent-2); }
.nav-links button.has-mega { display: inline-flex; align-items: center; gap: 7px; }
.nav-links button.has-mega svg { transition: transform .2s; }
.nav-links button.has-mega[aria-expanded="true"] svg { transform: rotate(180deg); }
.topbar { position: relative; }
.mega { position: absolute; left: 50%; top: calc(100% - 6px); transform: translateX(-50%); width: 720px; background: var(--paper-2); border: 1px solid var(--rule); box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); z-index: 60; display: grid; grid-template-columns: 300px 1fr; animation: mega-in .2s cubic-bezier(.2,.7,.25,1) both; }
@keyframes mega-in { from { opacity: 0; transform: translate(-50%, -6px) } to { opacity: 1; transform: translate(-50%, 0) } }
.mega-list { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-direction: column; border-right: 1px solid var(--rule); }
.mega-list li > button { width: 100%; background: none; border: 0; padding: 13px 24px; display: block; text-align: left; color: var(--ink); }
.mega-list li > button.on { background: var(--paper); box-shadow: inset 2px 0 0 var(--accent); }
.mega-num { font-family: var(--f-display); font-style: italic; font-size: 14px; color: var(--accent-2); }
.mega-title { font-family: var(--f-display); font-weight: var(--display-weight); font-size: 19px; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.mega-list li > button.on .mega-title { color: var(--accent-2); }
.mega-count { font-family: var(--f-display); font-style: italic; font-size: 15px; color: var(--ink-muted); }
.mega-preview { position: relative; background: var(--ink); border: 0; padding: 0; overflow: hidden; min-height: 300px; cursor: pointer; text-align: left; }
.mega-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity .35s ease; }
.mega-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 24px 22px; background: linear-gradient(to top, rgba(14,14,14,.96) 0%, rgba(14,14,14,.82) 55%, rgba(14,14,14,0) 100%); color: #fff; }
.mega-cap-num { font-family: var(--f-display); font-style: italic; font-size: 15px; color: var(--on-dark-mute); }
.mega-cap p { margin: 0; font-family: var(--f-display); font-size: 21px; line-height: 1.3; letter-spacing: -.005em; color: #fff; max-width: 30ch; text-wrap: pretty; }
@media (max-width: 980px) { .mega { display: none; } }

.nav-cta {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px;
}
.nav-phone {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.02em;
}
.nav-phone span { font-family: var(--f-sans); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; display: block; color: var(--ink-muted); font-weight: 600; }

/* ----------- buttons ----------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--on-dark);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--on-dark); }
.btn-light {
  background: transparent; color: var(--on-dark); border-color: var(--on-dark);
}
.btn-light:hover { background: var(--on-dark); color: var(--ink); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 6px;
}
.arrow-link:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ----------- hero variants ----------- */
.hero { position: relative; }

/* full-bleed (default) */
.hero-fullbleed {
  position: relative;
  height: calc(100vh - 84px);
  min-height: 640px;
  max-height: 820px;
  overflow: hidden;
  background: var(--ink);
}
.hero-fullbleed .hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.78);
}
.hero-fullbleed::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,39,66,0.05) 0%, rgba(26,39,66,0.0) 30%, rgba(26,39,66,0.65) 100%);
}
.hero-fullbleed .hero-body {
  position: relative; z-index: 2;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0 0 56px;
  color: var(--on-dark);
}
.hero-fullbleed .hero-meta {
  align-self: start;
  padding-top: 40px;
  display: flex; justify-content: space-between; align-items: end;
}
.hero-fullbleed .hero-headline {
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--on-dark);
  max-width: 16ch;
}
.hero-fullbleed .hero-headline em {
  font-style: italic; color: var(--on-dark);
  font-weight: var(--display-italic-weight);
}
.hero-fullbleed .hero-foot {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 48px;
  border-top: 1px solid rgba(236,226,197,0.25);
  padding-top: 28px;
  margin-top: 28px;
}
.hero-fullbleed .hero-sub {
  font-size: 16px; line-height: 1.55; color: var(--on-dark-mute);
  max-width: 44ch;
}
.hero-tag {
  font-family: var(--f-sans);
  font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; font-weight: 600;
  color: var(--on-dark-mute);
}
.hero-counter {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px; color: var(--on-dark);
}
.hero-counter b { font-style: normal; font-family: var(--f-sans); font-weight: 600; }

/* split */
.hero-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: 700px;
  background: var(--paper);
}
.hero-split .hero-text {
  padding: 80px 64px 64px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--rule);
}
.hero-split .hero-headline {
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  font-size: clamp(48px, 5.4vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 24px 0 0;
}
.hero-split .hero-headline em { font-style: italic; color: var(--accent-2); font-weight: var(--display-italic-weight); }
.hero-split .hero-img {
  background-size: cover; background-position: center;
}
.hero-split .hero-foot {
  display: grid; gap: 24px;
  margin-top: 48px;
}
.hero-split .hero-sub {
  font-size: 17px; color: var(--ink-muted); line-height: 1.6; max-width: 44ch;
}

/* stacked editorial */
.hero-stacked {
  background: var(--paper);
  padding: 80px 0 0;
}
.hero-stacked .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: end;
}
.hero-stacked .hero-headline {
  grid-column: 1 / 3;
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  font-size: clamp(60px, 7vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.hero-stacked .hero-headline em { font-style: italic; color: var(--accent-2); font-weight: var(--display-italic-weight); }
.hero-stacked .hero-aside {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  font-size: 15px; line-height: 1.6; color: var(--ink-muted);
  max-width: 36ch;
}
.hero-stacked .hero-photos {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 4px;
  height: 520px;
}
.hero-stacked .hero-photo {
  background-size: cover; background-position: center;
}

/* ----------- section ----------- */
.section { padding: 120px 0; }
.section-tight { padding: 80px 0; }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-paper { background: var(--paper); }
.section-paper-2 { background: var(--paper-2); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .lead {
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 16px 0 0;
}
.section-head .lead em { font-style: italic; color: var(--accent-2); font-weight: var(--display-italic-weight); }
.section-head .lead-side {
  font-size: 16px; line-height: 1.65; color: var(--ink-muted);
  max-width: 48ch;
}
.section-dark .section-head .lead { color: var(--on-dark); }
.section-dark .section-head .lead em { color: var(--accent); }
.section-dark .section-head .lead-side { color: var(--on-dark-mute); }

/* ----------- services ----------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.service {
  padding: 36px 28px 28px;
  border-right: 1px solid var(--rule);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  background: transparent;
  transition: background 0.2s;
}
.service:last-child { border-right: 0; }
.service:hover { background: var(--paper-2); }
.service-num {
  font-family: var(--f-display); font-style: italic;
  font-size: 18px; color: var(--accent-2);
}
.service-thumb {
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  filter: saturate(0.9) contrast(1.02);
}
.service-title {
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  font-size: 28px; line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.service-desc { font-size: 14px; line-height: 1.55; color: var(--ink-muted); margin: 0 0 20px; }
.service-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; color: var(--ink);
}

/* ----------- featured projects ----------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.feature-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
}
.feature-card .img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s ease;
}
.feature-card:hover .img { transform: scale(1.04); }
.feature-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,39,66,0) 35%, rgba(26,39,66,0.78) 100%);
}
.feature-card .meta {
  position: absolute; left: 28px; right: 28px; bottom: 24px;
  color: var(--on-dark);
  z-index: 2;
}
.feature-card .meta .eyebrow { color: var(--on-dark-mute); }
.feature-card .meta h3 {
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  font-size: 30px; line-height: 1.05;
  letter-spacing: -0.012em;
  margin: 8px 0 4px;
  color: var(--on-dark);
}
.feature-card .meta .loc { font-size: 13px; color: var(--on-dark-mute); }
.feature-card .index {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--f-display); font-style: italic;
  font-size: 18px; color: var(--on-dark);
  z-index: 2;
}

.fc-tall { grid-column: span 5; aspect-ratio: 4/5; }
.fc-wide { grid-column: span 7; aspect-ratio: 7/5; }
.fc-half { grid-column: span 6; aspect-ratio: 6/4; }
.fc-third { grid-column: span 4; aspect-ratio: 4/4; }
.fc-twothird { grid-column: span 8; aspect-ratio: 8/4; }

/* ----------- stats / strip ----------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--on-dark-mute);
  border-bottom: 1px solid var(--on-dark-mute);
}
.stat {
  padding: 56px 32px;
  border-right: 1px solid color-mix(in srgb, var(--on-dark-mute) 40%, transparent);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--f-display); font-weight: var(--display-weight);
  font-size: 76px; line-height: 1;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  display: flex; align-items: baseline; gap: 6px;
}
.stat-num em { font-style: italic; font-size: 32px; color: var(--accent); font-weight: var(--display-italic-weight); }
.stat-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-mute); margin-top: 14px; font-weight: 600; }

/* ----------- about / family ----------- */
.about-block {
  display: grid; grid-template-columns: 5fr 7fr; gap: 80px;
  align-items: start;
}
.about-photo {
  aspect-ratio: 4/5;
  background-size: cover; background-position: center;
}
.about-copy h2 {
  font-family: var(--f-display); font-weight: var(--display-weight);
  font-size: clamp(40px, 4.4vw, 72px); line-height: 1; letter-spacing: -0.02em;
  margin: 12px 0 32px;
}
.about-copy h2 em { font-style: italic; color: var(--accent-2); font-weight: var(--display-italic-weight); }
.about-copy p { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin: 0 0 18px; max-width: 60ch; }
.signature {
  font-family: var(--f-display); font-style: italic;
  font-size: 28px; color: var(--accent-2);
  margin-top: 32px;
}

/* ----------- press / accolades strip ----------- */
.press {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.press-item {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  align-items: center;
}
.press-item:last-child { border-right: 0; }
.press-logo {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.press-logo img { max-width: 70%; max-height: 70%; }
.press-text { font-size: 12px; letter-spacing: 0.05em; color: var(--ink-muted); line-height: 1.4; }
.press-text b { display: block; color: var(--ink); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; margin-bottom: 4px; }

/* ----------- verse band ----------- */
.verse-band {
  padding: 64px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.verse-inner {
  display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center;
}
.verse-inner .eyebrow { white-space: nowrap; }
.verse-inner blockquote {
  margin: 0;
  font-family: var(--f-display); font-style: italic;
  font-weight: var(--display-italic-weight);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.verse-inner cite {
  display: block; margin-top: 14px;
  font-style: normal; font-family: var(--f-sans);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-muted);
}

/* ----------- CTA / contact ----------- */
.cta-band {
  background: var(--ink); color: var(--on-dark);
  padding: 120px 0;
}
.cta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end;
}
.cta-grid h2 {
  font-family: var(--f-display); font-weight: var(--display-weight);
  font-size: clamp(48px, 6vw, 96px); line-height: 0.95; letter-spacing: -0.025em;
  margin: 16px 0 0; color: var(--on-dark);
}
.cta-grid h2 em { font-style: italic; color: var(--accent); font-weight: var(--display-italic-weight); }
.cta-grid .cta-side { display: grid; gap: 24px; }
.cta-grid p { font-size: 17px; line-height: 1.65; color: var(--on-dark-mute); margin: 0; max-width: 44ch; }

/* ----------- footer ----------- */
footer.foot {
  background: var(--ink); color: var(--on-dark);
  padding: 80px 0 32px;
  border-top: 1px solid color-mix(in srgb, var(--on-dark-mute) 40%, transparent);
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px;
}
.foot-brand .brand-mark { color: var(--on-dark); border-color: var(--on-dark); }
.foot-brand .brand-name { color: var(--on-dark); }
.foot-brand p { font-size: 13px; line-height: 1.65; color: var(--on-dark-mute); margin: 24px 0 0; max-width: 36ch; }
.foot h5 {
  font-family: var(--f-sans);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--on-dark-mute); font-weight: 600;
  margin: 0 0 16px;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot ul li a { font-size: 14px; color: var(--on-dark); }
.foot ul li a:hover { color: var(--accent); }
.foot-bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--on-dark-mute) 30%, transparent);
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--on-dark-mute);
  letter-spacing: 0.04em;
}

/* ============================================================
   Page-specific (About, Services, Projects, Contact)
   ============================================================ */

/* page header */
.page-header {
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--rule);
}
.page-header .ph-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: end;
}
.page-header .ph-title {
  font-family: var(--f-display); font-weight: var(--display-weight);
  font-size: clamp(56px, 7vw, 128px); line-height: 0.92; letter-spacing: -0.025em;
  margin: 16px 0 0;
}
.page-header .ph-title em { font-style: italic; color: var(--accent-2); font-weight: var(--display-italic-weight); }
.page-header .ph-side {
  font-size: 17px; line-height: 1.65; color: var(--ink-muted);
  max-width: 50ch;
}

/* about page timeline */
.timeline {
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: 40px;
  border-top: 1px solid var(--rule);
}
.timeline-row {
  display: contents;
}
.timeline-year {
  padding: 32px 0;
  font-family: var(--f-display); font-style: italic;
  font-size: 36px; color: var(--accent-2); font-weight: var(--display-italic-weight);
  border-bottom: 1px solid var(--rule);
}
.timeline-body {
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 2fr 3fr; gap: 32px; align-items: start;
}
.timeline-body h3 { font-family: var(--f-display); font-weight: var(--display-weight); font-size: 28px; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.timeline-body p { font-size: 15px; line-height: 1.65; color: var(--ink-muted); margin: 0; }

/* team */
.team { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.team-row { display: grid; grid-template-columns: minmax(240px, 2fr) 3fr; gap: 56px; padding: 56px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.team-row.flip { grid-template-columns: 3fr minmax(240px, 2fr); }
.team-row.flip .photo { order: 2; }
.team-row .photo { aspect-ratio: 4/5; background: var(--paper-2); background-size: cover; background-position: center top; max-width: 420px; width: 100%; }
.team-copy { display: flex; flex-direction: column; gap: 14px; }
.team-copy .role { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.team-copy h3 { font-family: var(--f-display); font-weight: var(--display-weight); font-size: clamp(32px, 3.4vw, 48px); line-height: 1; letter-spacing: -.02em; margin: 0; }
.team-copy p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin: 6px 0 0; max-width: 62ch; }
.team-copy blockquote { margin: 10px 0 0; padding-left: 22px; border-left: 2px solid var(--accent); font-family: var(--f-display); font-style: italic; font-weight: var(--display-italic-weight); font-size: 22px; line-height: 1.35; color: var(--ink); max-width: 44ch; }
@media (max-width: 760px) { .team-row, .team-row.flip { grid-template-columns: 1fr; gap: 24px; } .team-row.flip .photo { order: 0; } .team-row .photo { max-width: 320px; } }

/* leadership */
.leadership {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.leader-card .photo {
  aspect-ratio: 4/5; background: var(--paper-2);
  background-size: cover; background-position: center;
  margin-bottom: 16px;
}
.leader-card h4 { font-family: var(--f-display); font-weight: var(--display-weight); font-size: 24px; margin: 0; letter-spacing: -0.01em; }
.leader-card .role { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; margin-top: 4px; }
.leader-card p { font-size: 14px; line-height: 1.6; color: var(--ink-muted); margin: 14px 0 0; }

/* services page */
.svc-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--rule);
}
.svc-row.reverse { direction: rtl; }
.svc-row.reverse > * { direction: ltr; }
.svc-row .svc-img {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
}
.svc-row .svc-info {
  padding: 64px 56px;
  display: grid; align-content: center; gap: 18px;
}
.svc-row .svc-num {
  font-family: var(--f-display); font-style: italic;
  font-size: 22px; color: var(--accent-2); font-weight: var(--display-italic-weight);
}
.svc-row h2 {
  font-family: var(--f-display); font-weight: var(--display-weight);
  font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.02em;
  margin: 0;
}
.svc-row p { font-size: 16px; line-height: 1.65; color: var(--ink-muted); margin: 0; max-width: 50ch; }
.svc-row ul.svc-bullets {
  display: grid; gap: 8px; padding: 0; margin: 8px 0 0;
  list-style: none;
}
.svc-row ul.svc-bullets li {
  font-size: 14px; color: var(--ink-2); padding-left: 22px; position: relative;
}
.svc-row ul.svc-bullets li::before {
  content: "—"; position: absolute; left: 0; color: var(--accent-2);
  font-family: var(--f-display); font-style: italic;
}

/* projects index */
.proj-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px; margin-bottom: 40px;
}
.proj-filter {
  background: transparent; border: 1px solid var(--rule);
  padding: 10px 18px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-muted);
}
.proj-filter[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

.proj-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.proj-card { display: grid; gap: 14px; }
.proj-card .img {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
}
.proj-card .meta-row { display: flex; justify-content: space-between; align-items: baseline; }
.proj-card h3 { font-family: var(--f-display); font-weight: var(--display-weight); font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.proj-card .cat { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.proj-card .loc { font-size: 13px; color: var(--ink-muted); }

/* contact */
.contact-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: 80px;
}
.contact-info { display: grid; gap: 32px; align-content: start; }
.contact-info .ci-block h4 { font-family: var(--f-sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; margin: 0 0 8px; }
.contact-info .ci-block p { font-family: var(--f-display); font-size: 24px; line-height: 1.3; margin: 0; letter-spacing: -0.005em; }
.contact-info .ci-block.body p { font-family: var(--f-sans); font-size: 15px; color: var(--ink-2); line-height: 1.6; }

.contact-form {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 48px;
  display: grid; gap: 22px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  font-family: var(--f-sans); font-size: 15px;
  padding: 12px 0; background: transparent;
  border: 0; border-bottom: 1px solid var(--rule);
  color: var(--ink); outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--accent-2);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field textarea { min-height: 120px; resize: vertical; }

/* misc */
.crossfade { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s; }
.crossfade.active { opacity: 1; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--rule); background: transparent; color: var(--ink); place-items: center; padding: 0; }
.mnav { position: fixed; inset: 0; z-index: 800; background: var(--paper); display: flex; flex-direction: column; animation: pm-fade .2s ease both; overflow: auto; }
.mnav-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--rule); }
.mnav-close { width: 44px; height: 44px; border: 1px solid var(--rule); background: transparent; color: var(--ink); display: grid; place-items: center; padding: 0; }
.mnav-links { display: flex; flex-direction: column; padding: 12px 24px; flex: 1; }
.mnav-link { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 20px 0; text-align: left; font-family: var(--f-display); font-weight: var(--display-weight); font-size: 34px; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.mnav-link[aria-current="page"] { color: var(--accent-2); }
.mnav-link svg { transition: transform .2s; }
.mnav-sub { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); padding: 6px 0 14px; }
.mnav-sub button { background: none; border: 0; text-align: left; padding: 12px 0 12px 20px; font-family: var(--f-display); font-size: 22px; color: var(--ink-2); min-height: 44px; }
.mnav-foot { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px 32px; border-top: 1px solid var(--rule); }
.mnav-foot .btn { justify-content: center; }

@media (max-width: 980px) {
  .topbar-inner { grid-template-columns: auto 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
  .nav-cta .nav-phone { display: none; }
  .services { grid-template-columns: 1fr 1fr; }
  .service:nth-child(2n) { border-right: 0; }
  .service:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--on-dark-mute); }
  .feature-grid > * { grid-column: span 12 !important; aspect-ratio: 16/10 !important; }
  .about-block, .cta-grid, .page-header .ph-grid, .contact-grid, .hero-split { grid-template-columns: 1fr; }
  .hero-stacked .hero-grid { grid-template-columns: 1fr; }
  .hero-stacked .hero-headline { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .leadership { grid-template-columns: 1fr 1fr; }
}

/* ----------- project modal ----------- */
.proj-card { cursor: pointer; }
.proj-card:hover .img { filter: brightness(.94); }
.pm-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(20,20,20,.82); display: flex; align-items: center; justify-content: center; padding: 32px; animation: pm-fade .25s ease both; }
@keyframes pm-fade { from { opacity: 0 } to { opacity: 1 } }
.pm { position: relative; width: min(1320px, 100%); height: min(780px, calc(100dvh - 64px)); max-height: calc(100dvh - 64px); background: var(--paper-2); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); box-shadow: 0 60px 120px -40px rgba(0,0,0,.6); animation: pm-rise .35s cubic-bezier(.2,.7,.25,1) both; }
@keyframes pm-rise { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }
.pm-close { position: absolute; top: 18px; right: 18px; z-index: 3; width: 44px; height: 44px; border: 1px solid var(--rule); background: var(--paper-2); color: var(--ink); display: grid; place-items: center; }
.pm-close:hover { background: var(--ink); color: var(--on-dark); }
.pm-stage { position: relative; background: var(--ink); overflow: hidden; min-height: 320px; }
.pm-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity .45s ease; }
.pm-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.4); background: rgba(20,20,20,.45); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); }
.pm-arrow:hover { background: var(--on-dark); color: var(--ink); }
.pm-prev { left: 22px; } .pm-prev svg { transform: rotate(180deg); }
.pm-next { right: 22px; }
.pm-counter { position: absolute; left: 26px; bottom: 22px; font-family: var(--f-display); font-size: 18px; color: var(--on-dark); letter-spacing: .04em; }
.pm-counter em { font-style: italic; font-size: 26px; }
.pm-info { padding: 48px 44px 40px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.pm-info h2 { font-family: var(--f-display); font-weight: var(--display-weight); font-size: clamp(32px, 3vw, 46px); line-height: 1; letter-spacing: -.02em; margin: 4px 0 0; }
.pm-loc { font-size: 14px; color: var(--ink-muted); margin: 0; }
.pm-body { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 8px 0 0; }
.pm-facts { margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; border-top: 1px solid var(--rule); }
.pm-facts div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.pm-facts dt { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.pm-facts dd { margin: 4px 0 0; font-size: 15px; color: var(--ink); }
.pm-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pm-thumb { width: 64px; height: 48px; border: 1px solid var(--rule); background-size: cover; background-position: center; opacity: .55; padding: 0; }
.pm-thumb:hover, .pm-thumb[aria-pressed="true"] { opacity: 1; border-color: var(--ink); }
@media (max-width: 1000px) {
  .pm-backdrop { padding: 0; }
  .pm { grid-template-columns: 1fr; grid-template-rows: 46dvh minmax(0, 1fr); height: 100dvh; max-height: 100dvh; }
  .pm-info { padding: 28px 24px 32px; }
}

/* ----------- service page ----------- */
.sp-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; background-size: cover; background-position: center; color: var(--on-dark); }
.sp-hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,14,14,.92) 0%, rgba(14,14,14,.45) 50%, rgba(14,14,14,.15) 100%); }
.sp-hero-inner { position: relative; padding: 120px 0 72px; display: flex; flex-direction: column; gap: 18px; }
.sp-title { font-family: var(--f-display); font-weight: var(--display-weight); font-size: clamp(56px, 7vw, 120px); line-height: .95; letter-spacing: -.025em; margin: 0; color: #fff; max-width: 14ch; text-wrap: balance; }
.sp-kicker { font-family: var(--f-display); font-style: italic; font-size: clamp(20px, 2vw, 28px); color: var(--on-dark); margin: 0; }
.sp-overview { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.sp-lead { font-family: var(--f-display); font-weight: var(--display-weight); font-size: clamp(28px, 2.8vw, 40px); line-height: 1.15; letter-spacing: -.015em; margin: 12px 0 0; text-wrap: pretty; }
.sp-body p { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin: 0 0 18px; max-width: 62ch; }
.sp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; border-top: 1px solid var(--rule); }
.sp-stats > div { padding-top: 20px; }
.sp-stat-num { font-family: var(--f-display); font-weight: var(--display-weight); font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -.02em; }
.sp-stat-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; margin-top: 8px; }
.sp-cap { background: var(--paper); }
.sp-cap-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; border-top: 1px solid var(--rule); }
.sp-cap-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); font-family: var(--f-display); font-weight: var(--display-weight); font-size: clamp(22px, 2vw, 30px); line-height: 1.15; letter-spacing: -.01em; }
.sp-cap-num { font-style: italic; font-size: 18px; color: var(--accent-2); }
.sp-next { position: relative; display: block; width: 100%; border: 0; padding: 0; text-align: left; background-size: cover; background-position: center; color: var(--on-dark); cursor: pointer; }
.sp-next-scrim { position: absolute; inset: 0; background: rgba(14,14,14,.72); transition: background .3s; }
.sp-next:hover .sp-next-scrim { background: rgba(14,14,14,.6); }
.sp-next-inner { position: relative; padding: 72px 0; display: flex; flex-direction: column; gap: 14px; }
.sp-next-title { font-family: var(--f-display); font-weight: var(--display-weight); font-size: clamp(36px, 4.4vw, 72px); line-height: 1; letter-spacing: -.02em; color: #fff; display: inline-flex; align-items: center; gap: 20px; }
.sp-next-title svg { width: .6em; height: .6em; transition: transform .25s; }
.sp-next:hover .sp-next-title svg { transform: translateX(10px); }
@media (max-width: 980px) { .sp-overview { grid-template-columns: 1fr; gap: 28px; } .sp-cap-list { grid-template-columns: 1fr; } .sp-stats { grid-template-columns: 1fr 1fr; } }

/* ----------- phones ----------- */
@media (max-width: 640px) {
  .container, .container-wide { width: calc(100% - 40px); }
  .topbar-inner { padding: 12px 0; }
  .nav-cta .btn { display: none; }
  .brand-l1 { font-size: 26px; }
  .section { padding: 72px 0; }
  .section-tight { padding: 56px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .hero-fullbleed { height: auto; min-height: 88svh; }
  .hero-fullbleed .hero-headline { font-size: clamp(44px, 13vw, 64px); }
  .hero-fullbleed .hero-body { padding-bottom: 40px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-sub { font-size: 16px; }
  .services, .stats { grid-template-columns: 1fr; }
  .service, .stat { border-right: 0 !important; border-bottom: 1px solid var(--rule); }
  .stat { border-bottom-color: color-mix(in srgb, var(--on-dark-mute) 40%, transparent); padding: 32px 0; }
  .service { padding: 28px 0; }
  .feature-grid { gap: 20px; }
  .press { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 72px 0; }
  .cta-grid h2 { font-size: clamp(40px, 11vw, 56px); }
  .page-header .ph-title, .sp-title { font-size: clamp(42px, 12vw, 60px); }
  .about-copy h2, .svc-row h2 { font-size: clamp(34px, 9vw, 44px); }
  .timeline { grid-template-columns: 1fr; }
  .timeline-year { padding: 24px 0 0; border-bottom: 0; }
  .timeline-body { padding: 8px 0 24px; }
  .proj-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .sp-hero { min-height: 70svh; }
  .sp-hero-inner { padding: 80px 0 40px; }
  .sp-stats { grid-template-columns: 1fr; gap: 16px; }
  .sp-cap-list li { font-size: 22px; padding: 18px 0; }
  .sp-next-inner { padding: 48px 0; }
  .sp-next-title { font-size: clamp(32px, 9vw, 44px); }
  .pm { grid-template-rows: 40dvh minmax(0, 1fr); }
  .pm-arrow { width: 44px; height: 44px; }
  .pm-facts { grid-template-columns: 1fr; }
  .verse-band { padding: 48px 0; }
  .verse-inner { grid-template-columns: 1fr; }
}
