/* =========================================================================
   Denver Design Tile — Craftsman & Rugged
   Palette: warm clay/terracotta + charcoal + bone
   Type: Boska (display) + General Sans (body)
   ========================================================================= */

:root,
[data-theme='light'] {
  /* Surfaces — warm bone & clay */
  --color-bg: #f3efe8;
  --color-surface: #faf7f1;
  --color-surface-2: #fdfbf7;
  --color-surface-offset: #ece6db;
  --color-surface-offset-2: #e4dcc9;
  --color-surface-dynamic: #dad2c4;
  --color-divider: #ddd5c6;
  --color-border: #cabfa9;

  /* Text — warm charcoal */
  --color-text: #211c16;
  --color-text-muted: #6a5f4f;
  --color-text-faint: #a89c87;
  --color-text-inverse: #faf7f1;

  /* Primary — clay / terracotta */
  --color-primary: #a8421c;
  --color-primary-hover: #8a3415;
  --color-primary-active: #6e2a12;
  --color-primary-highlight: #e8d4c8;

  /* Ink — deep warm charcoal for band sections */
  --color-ink: #1c1813;
  --color-ink-2: #26201a;

  /* Secondary — steel slate */
  --color-steel: #3c4a52;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — tone-matched to warm surfaces */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 60 / 0.07);
  --shadow-md: 0 4px 14px oklch(0.2 0.02 60 / 0.1);
  --shadow-lg: 0 14px 38px oklch(0.2 0.02 60 / 0.14);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1240px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Boska', 'Georgia', serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #15110c;
  --color-surface: #1c1813;
  --color-surface-2: #221d17;
  --color-surface-offset: #1f1a14;
  --color-surface-offset-2: #26201a;
  --color-surface-dynamic: #2e281f;
  --color-divider: #2a241d;
  --color-border: #3a3329;

  --color-text: #ddd5c7;
  --color-text-muted: #8c8170;
  --color-text-faint: #5c5447;
  --color-text-inverse: #f4ede0;

  --color-primary: #d9753e;
  --color-primary-hover: #e0834a;
  --color-primary-active: #b85c28;
  --color-primary-highlight: #3a2a1f;

  --color-ink: #0d0a07;
  --color-ink-2: #16110c;

  --color-steel: #6a7a82;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 14px 38px oklch(0 0 0 / 0.45);
}

/* Type scale */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 7vw, 7rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* =========================================================================
   Layout primitives
   ========================================================================= */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-10));
}
.container--wide { max-width: var(--content-wide); }
.container--narrow { max-width: var(--content-narrow); }

.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
.section--tight { padding-block: clamp(var(--space-10), 5vw, var(--space-16)); }
.section--ink {
  background: var(--color-ink);
  color: var(--color-text-inverse);
}
.section--ink .eyebrow { color: var(--color-primary); }
.section--ink .muted { color: oklch(from var(--color-text-inverse) l c h / 0.7); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.muted { color: var(--color-text-muted); }

/* =========================================================================
   Header / nav
   ========================================================================= */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.skip-link:focus { top: var(--space-3); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.site-header[data-scrolled='true'] {
  border-color: oklch(from var(--color-text) l c h / 0.1);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-10));
  height: 72px;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  text-decoration: none;
  color: var(--color-text);
  margin-right: auto;
}
.brand-mark { width: 34px; height: 34px; flex: none; color: var(--color-primary); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.brand-logo {
  display: block;
  height: 42px;
  width: auto;
  flex: none;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 4px;
}
[data-theme='dark'] .site-header .brand-logo { filter: invert(1); }
.footer-brand .brand-logo { filter: invert(1); }

.logo-band {
  background: var(--color-ink);
  color: var(--color-text-inverse);
  text-align: center;
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
}
.logo-band .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  position: relative;
}
.logo-band .container::before,
.logo-band .container::after {
  content: "";
  display: block;
  width: clamp(48px, 8vw, 80px);
  height: 1px;
  background: oklch(from var(--color-text-inverse) l c h / 0.28);
}
.logo-band-logo {
  height: clamp(72px, 14vw, 132px);
  width: auto;
  filter: invert(1);
}
.logo-band-tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(from var(--color-text-inverse) l c h / 0.85);
  margin: 0;
}
.logo-band-loc {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-lg);
  letter-spacing: 0.02em;
  color: oklch(from var(--color-text-inverse) l c h / 0.6);
  margin: 0;
}

/* Slim variant — inner pages */
.logo-band--slim { padding-block: clamp(var(--space-8), 4vw, var(--space-10)); }
.logo-band--slim .logo-band-logo { height: clamp(48px, 7vw, 66px); }
.logo-band--slim .container { gap: var(--space-3); }
.logo-band--slim .container::before,
.logo-band--slim .container::after { width: clamp(40px, 7vw, 56px); }
.logo-band--slim .logo-band-tag {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
}

.nav { display: none; }
.nav-list {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.nav-list a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  position: relative;
}
.nav-list a:hover { color: var(--color-text); }
.nav-list a[aria-current='page'] { color: var(--color-text); }
.nav-list a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-primary);
}

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
}
.theme-toggle:hover { color: var(--color-text); border-color: oklch(from var(--color-text) l c h / 0.2); }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid oklch(from var(--color-text) l c h / 0.12);
  color: var(--color-text);
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) clamp(var(--space-4), 4vw, var(--space-10)) var(--space-8);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.1);
  background: var(--color-bg);
}
.mobile-nav[data-open='true'] { display: flex; }
.mobile-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: 500;
  padding: var(--space-3) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.mobile-nav a.cta-link {
  color: var(--color-primary);
}
.mobile-nav .btn { margin-top: var(--space-4); }

.site-header .header-cta-mobile { display: none; }
@media (min-width: 920px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .site-header .header-cta-mobile { display: inline-flex; }
}
@media (max-width: 919px) {
  .header-inner { height: auto; min-height: 60px; padding-block: var(--space-2); }
  .brand-logo { height: 34px; }
  .brand-sub { display: none; }
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  min-height: 44px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-primary:active { background: var(--color-primary-active); }
.btn-ghost {
  color: var(--color-text);
  border-color: oklch(from var(--color-text) l c h / 0.18);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-ink {
  background: var(--color-ink);
  color: var(--color-text-inverse);
}
.btn-ink:hover { background: var(--color-ink-2); }
.btn--lg { padding: var(--space-4) var(--space-6); font-size: var(--text-base); }

/* on ink sections, ghost reads light */
.section--ink .btn-ghost {
  color: var(--color-text-inverse);
  border-color: oklch(from var(--color-text-inverse) l c h / 0.3);
}
.section--ink .btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
/* hero ghost button — light text on dark image */
.hero .btn-ghost {
  color: var(--color-text-inverse);
  border-color: oklch(from var(--color-text-inverse) l c h / 0.55);
  background: oklch(from var(--color-text-inverse) l c h / 0.08);
}
.hero .btn-ghost:hover {
  border-color: var(--color-text-inverse);
  background: oklch(from var(--color-text-inverse) l c h / 0.18);
  color: var(--color-text-inverse);
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: clamp(560px, 84vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-text-inverse);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(in oklab,
    oklch(0.12 0.02 50 / 0.15) 0%,
    oklch(0.1 0.02 50 / 0.55) 55%,
    oklch(0.08 0.02 50 / 0.82) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-20) clamp(var(--space-4), 4vw, var(--space-10)) clamp(var(--space-12), 6vw, var(--space-24));
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-hero);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 16ch;
  text-shadow: 0 2px 30px oklch(0 0 0 / 0.3);
}
.hero .eyebrow { color: var(--color-primary); }
.hero-lead {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  max-width: 48ch;
  color: oklch(from var(--color-text-inverse) l c h / 0.9);
}
.hero-actions {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero-meta {
  margin-top: var(--space-10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  font-size: var(--text-sm);
  color: oklch(from var(--color-text-inverse) l c h / 0.85);
}
.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-inverse);
}

/* =========================================================================
   Section headings
   ========================================================================= */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
  max-width: 60ch;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.section-head p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
}
.section-head--centered { margin-inline: auto; text-align: center; align-items: center; }

/* =========================================================================
   Value / capabilities (asymmetric, not 3 identical cards)
   ========================================================================= */
.value-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 760px) {
  .value-grid { grid-template-columns: 1.4fr 1fr; }
  .value-grid > :nth-child(3) { grid-column: 1; }
  .value-grid > :nth-child(4) { grid-column: 2; grid-row: 2; }
}
.value-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.value-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
}
.value-card p { color: var(--color-text-muted); }
.value-card--feature {
  background: var(--color-surface-offset);
  gap: var(--space-4);
}
.value-card .num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-primary);
}

/* =========================================================================
   Split / feature rows
   ========================================================================= */
.split {
  display: grid;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: center;
}
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split-media { order: 2; }
}
.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: var(--space-4);
}
.split-body p { color: var(--color-text-muted); margin-bottom: var(--space-4); }
.split-body p + p { margin-top: 0; }
.split-list {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-3);
}
.split-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  list-style: none;
  color: var(--color-text);
}
.split-list li::before {
  content: '';
  flex: none;
  width: 10px; height: 10px;
  margin-top: 0.55em;
  background: var(--color-primary);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* =========================================================================
   Gallery / portfolio grid — masonry
   ========================================================================= */
.gallery {
  columns: 3 300px;
  column-gap: var(--space-4);
}
.gallery-item {
  display: block;
  width: 100%;
  margin-bottom: var(--space-4);
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface-offset);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-10) var(--space-4) var(--space-4);
  background: linear-gradient(in oklab, oklch(0.06 0.02 50 / 0), oklch(0.06 0.02 50 / 0.92));
  color: var(--color-text-inverse);
}
.gallery-item .cap span {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e89a5a;
  margin-bottom: 2px;
  text-shadow: 0 1px 6px oklch(0 0 0 / 0.5);
}
.gallery-item .cap strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  text-shadow: 0 1px 8px oklch(0 0 0 / 0.55);
}
.gallery-item--wide { aspect-ratio: 16 / 9; }
.gallery-item--tall { aspect-ratio: 3 / 4; }

/* filter chips */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.chip {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid oklch(from var(--color-text) l c h / 0.15);
  background: transparent;
  color: var(--color-text-muted);
}
.chip:hover { color: var(--color-text); }
.chip[aria-pressed='true'] {
  background: var(--color-ink);
  color: var(--color-text-inverse);
  border-color: var(--color-ink);
}

/* =========================================================================
   Capability list (GC page)
   ========================================================================= */
.spec-grid {
  display: grid;
  gap: 1px;
  background: oklch(from var(--color-text) l c h / 0.12);
  border: 1px solid oklch(from var(--color-text) l c h / 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 720px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
.spec-cell {
  background: var(--color-surface);
  padding: clamp(var(--space-5), 2.5vw, var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.spec-cell h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.spec-cell h3 svg { width: 22px; height: 22px; color: var(--color-primary); flex: none; }
.spec-cell p { color: var(--color-text-muted); font-size: var(--text-sm); }
.spec-cell ul { display: grid; gap: var(--space-1); margin-top: var(--space-1); }
.spec-cell ul li { font-size: var(--text-sm); color: var(--color-text-muted); list-style: none; padding-left: var(--space-4); position: relative; }
.spec-cell ul li::before { content: '—'; position: absolute; left: 0; color: var(--color-primary); }

/* =========================================================================
   Stats band
   ========================================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(var(--space-6), 4vw, var(--space-12));
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-3xl);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}
.stat .label {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: oklch(from var(--color-text-inverse) l c h / 0.8);
}
.section--ink .stat .label { color: oklch(from var(--color-text-inverse) l c h / 0.78); }

/* =========================================================================
   Process steps
   ========================================================================= */
.steps {
  display: grid;
  gap: var(--space-8);
  counter-reset: step;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); } }
.step {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--color-primary);
  line-height: 1;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}
.step p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-start;
}
@media (min-width: 760px) {
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* =========================================================================
   Forms
   ========================================================================= */
.form-grid {
  display: grid;
  gap: var(--space-5);
}
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.field .req { color: var(--color-primary); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid oklch(from var(--color-text) l c h / 0.18);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-base);
  min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.18);
}
.field-row { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: var(--text-sm); color: var(--color-text-muted); }
.form-success {
  display: none;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: oklch(from var(--color-primary) l c h / 0.12);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.3);
}
.form-success[data-show='true'] { display: block; }
.form-success strong { color: var(--color-primary); font-family: var(--font-display); font-size: var(--text-lg); }
.form-success p { margin-top: var(--space-2); color: var(--color-text-muted); }

/* =========================================================================
   Contact info cards
   ========================================================================= */
.contact-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 760px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.contact-card .ico { width: 28px; height: 28px; color: var(--color-primary); }
.contact-card h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); }
.contact-card a, .contact-card p { color: var(--color-text-muted); font-size: var(--text-base); text-decoration: none; }
.contact-card a:hover { color: var(--color-primary); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--color-ink);
  color: var(--color-text-inverse);
  padding-block: clamp(var(--space-12), 5vw, var(--space-20)) var(--space-8);
}
.footer-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-10));
}
.footer-top {
  display: grid;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer-brand .brand-logo { height: 56px; margin-bottom: var(--space-2); }
.footer-brand .brand-sub { color: oklch(from var(--color-text-inverse) l c h / 0.8); }
.footer-brand p {
  margin-top: var(--space-4);
  max-width: 36ch;
  color: oklch(from var(--color-text-inverse) l c h / 0.7);
  font-size: var(--text-sm);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(from var(--color-text-inverse) l c h / 0.55);
  margin-bottom: var(--space-4);
}
.footer-col ul { display: grid; gap: var(--space-3); }
.footer-col a {
  text-decoration: none;
  color: oklch(from var(--color-text-inverse) l c h / 0.85);
  font-size: var(--text-sm);
}
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid oklch(from var(--color-text-inverse) l c h / 0.12);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: oklch(from var(--color-text-inverse) l c h / 0.55);
}

/* =========================================================================
   Contact layout
   ========================================================================= */
.contact-layout {
  display: grid;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: start;
}
@media (min-width: 860px) {
  .contact-layout { grid-template-columns: 1.3fr 1fr; }
  .contact-layout .contact-aside { grid-column: 2; }
}

/* =========================================================================
   Utilities
   ========================================================================= */
.lead { font-size: var(--text-lg); color: var(--color-text-muted); }
.divider-img {
  width: 100%;
  height: clamp(240px, 38vh, 420px);
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.note-callout {
  border-left: none;
  background: oklch(from var(--color-primary) l c h / 0.1);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.26);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.note-callout strong { color: var(--color-primary); display: block; margin-bottom: var(--space-2); font-family: var(--font-display); font-size: var(--text-base); }

/* =========================================================================
   From the jobsite gallery (real progress photos)
   ========================================================================= */
.jobsite-gallery {
  columns: 3 300px;
  column-gap: var(--space-4);
  margin-top: var(--space-7);
}
.jobsite-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-offset);
  box-shadow: var(--shadow-sm);
}
.jobsite-item img { display: block; width: 100%; height: auto; }
.jobsite-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-10) var(--space-4) var(--space-4);
  background: linear-gradient(to top, rgba(13,10,7,0.94) 0%, rgba(13,10,7,0.62) 55%, rgba(13,10,7,0) 100%);
  color: var(--color-text-inverse);
}
.jobsite-cap .tag {
  display: inline-block;
  font: 600 0.66rem/1 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e89a5a;
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}
.jobsite-cap p {
  font: 500 0.95rem/1.35 var(--font-sans);
  color: #f4ede0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
@media (max-width: 640px) {
  .jobsite-gallery { columns: 1; }
}

/* =========================================================================
   Project page — lead image, scope tags, build-process timeline, lightbox
   ========================================================================= */
.project-head { max-width: var(--content-default); }
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  align-items: center;
  margin-top: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}
.project-meta .dot { color: var(--color-text-faint); }
.scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.scope-tags li {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-steel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  background: var(--color-surface-2);
}
.project-hero {
  margin-top: var(--space-8);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-offset);
  box-shadow: var(--shadow-md);
}
.project-hero img { width: 100%; height: 100%; object-fit: cover; }

.related-scope {
  max-width: var(--content-default);
  padding: var(--space-6) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-offset);
}
.related-scope p { margin-top: var(--space-2); }
.related-scope a { color: var(--color-steel); text-decoration: underline; text-underline-offset: 2px; }
.related-scope a:hover { text-decoration-thickness: 2px; }

.tl-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
}
.tl-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  cursor: zoom-in;
}
.tl-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.tl-item:hover img,
.tl-item:focus-visible img { transform: scale(1.05); }
.tl-num {
  position: absolute;
  top: 8px; left: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--color-text-inverse);
  background: oklch(0.1 0.02 50 / 0.55);
  backdrop-filter: blur(4px);
  padding: 2px 9px;
  border-radius: var(--radius-full);
}
.tl-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-10) var(--space-3) var(--space-3);
  background: linear-gradient(in oklab, oklch(0.06 0.02 50 / 0), oklch(0.06 0.02 50 / 0.88));
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
  line-height: 1.35;
  opacity: 0;
  transition: opacity 200ms ease;
}
.tl-item:hover .tl-cap,
.tl-item:focus-visible .tl-cap { opacity: 1; }

/* Captions removed from project galleries — thumbnails and lightbox */
.tl-cap,
.lightbox-cap { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: oklch(0.05 0.01 50 / 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(var(--space-4), 4vw, var(--space-8));
}
.lightbox[data-open="true"] { display: flex; }
.lightbox-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(100%, 1100px);
}
.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox-cap {
  margin-top: var(--space-3);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  text-align: center;
  max-width: 60ch;
  opacity: 0.92;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: none;
  border-radius: var(--radius-full);
  background: oklch(0.1 0.01 50 / 0.6);
  color: var(--color-text-inverse);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background var(--transition-interactive);
}
.lightbox-close:hover,
.lightbox-nav:hover { background: oklch(0.1 0.01 50 / 0.85); }
.lightbox-close { top: clamp(var(--space-3), 3vh, var(--space-6)); right: clamp(var(--space-3), 4vw, var(--space-8)); }
.lightbox-prev { left: clamp(var(--space-2), 2vw, var(--space-5)); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(var(--space-2), 2vw, var(--space-5)); top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 20px; }
}

/* Featured project card (portfolio index of projects) */
.project-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.project-featured:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.project-featured .pc-media { aspect-ratio: 4 / 3; overflow: hidden; }
.project-featured .pc-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.project-featured:hover .pc-media img { transform: scale(1.03); }
.project-featured .pc-body {
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-3);
}
.project-featured .pc-meta { color: var(--color-text-muted); font-size: var(--text-sm); }
@media (max-width: 860px) {
  .project-featured { grid-template-columns: 1fr; }
}
