/* Hoballah Design and Consulting: blueprint grid, gold on dark.
   Mobile first. Colors meet WCAG 2.2 AA contrast on every background they sit on. */

:root {
  --gold: #F5B822;
  --gold-hover: #FFC83B;
  --gold-subtle: rgba(245, 184, 34, 0.12);
  --gold-border: rgba(245, 184, 34, 0.4);

  --bg: #07090E;
  --surface: #0E131F;
  --surface-2: #151C2C;
  --band: #0A0E17;
  --input: #0B0F18;

  --text: #F8FAFC;
  --text-2: #A9B6C8;   /* 8.9:1 on --bg */
  --text-3: #8D9BB0;   /* 6.6:1 on --bg, 5.9:1 on --surface-2 */
  --error: #FF8A8A;    /* 7.6:1 on --input */
  --success: #4ADE80;

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.22);
  --grid-line: rgba(255, 255, 255, 0.035);

  --font-head: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --max: 1240px;
  --gutter: 16px;
  --header-h: 68px;
  --radius: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}

img, svg, picture { display: block; max-width: 100%; height: auto; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hover); }
a[href^="tel:"] { white-space: nowrap; } /* keep phone numbers on one line */
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.2; font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--bg); }

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.gold { color: var(--gold); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-hover); color: var(--bg); }
.btn-outline { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--text); }
.btn-small { min-height: 44px; padding: 10px 16px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 14, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(7, 9, 14, 0.82); backdrop-filter: blur(10px); }
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: var(--header-h);
  padding-block: 10px;
}
.brand { display: inline-flex; padding: 4px 0; }
.brand img { width: 150px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: 600 0.9375rem var(--font-head);
  cursor: pointer;
}
.nav-toggle[hidden] { display: none; }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Without JavaScript the menu is always visible and wraps under the logo. */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  width: 100%;
}
.nav-list { display: flex; flex-wrap: wrap; gap: 0 4px; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
}
.nav-list a:hover { color: var(--text); }

/* With JavaScript, small screens get a toggle menu. */
@media (max-width: 959px) {
  .js .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
  }
  .js .site-nav.is-open { display: flex; }
  .js .nav-list { flex-direction: column; }
  .js .nav-list a { width: 100%; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .js .site-nav .btn { margin-top: 12px; }
}
@media (min-width: 960px) {
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle { display: none !important; }
  .site-nav { width: auto; flex-wrap: nowrap; }
  .nav-list { flex-wrap: nowrap; }
  .brand img { width: 168px; }
}

/* Hero */
.hero { padding-block: 40px 56px; }
.hero-grid { display: grid; gap: 40px; }
.hero h1 {
  font-size: clamp(2.125rem, 6vw + 0.5rem, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.lead { font-size: 1.0625rem; color: var(--text-2); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn { flex: 1 1 220px; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; } /* top-align values */
.facts dd { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 500; color: var(--gold); }
.facts dt { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }

.model-card {
  position: relative;
  align-self: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 16px;
}
.model-card::before, .model-card::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--gold);
}
.model-card::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.model-card::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.model-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.model-card-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.icon-layers {
  width: 18px; height: 18px; flex: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5B822' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 2 2 7l10 5 10-5-10-5z'/%3E%3Cpath d='m2 12 10 5 10-5'/%3E%3Cpath d='m2 17 10 5 10-5'/%3E%3C/svg%3E");
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  color: var(--gold);
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  border-radius: 3px;
}
.model-card-media { position: relative; border-radius: 4px; overflow: hidden; }
.model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
}
.model-chips li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: rgba(7, 9, 14, 0.92);
  border: 1px solid var(--line-strong);
  padding: 6px 10px;
  border-radius: 3px;
}
.model-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.model-meta dt { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.model-meta dd { font-family: var(--font-mono); font-size: 0.875rem; color: var(--text); }

@media (min-width: 560px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .model-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-chips { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 0; }
}
@media (min-width: 1024px) {
  .hero { padding-block: 72px 88px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* Sections */
.section { padding-block: 64px; }
.section-band { background: var(--band); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.75rem, 3vw + 0.75rem, 2.5rem); letter-spacing: -0.01em; }
.section-intro { margin-top: 14px; color: var(--text-2); font-size: 1.0625rem; }
@media (min-width: 1024px) { .section { padding-block: 96px; } }

.card-grid { display: grid; gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.card p { color: var(--text-2); }
@media (min-width: 640px) { .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Services */
.svc-jump { display: grid; gap: 10px; margin-bottom: 40px; }
.svc-jump a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 14px;
  min-height: 56px;
  padding: 12px 18px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.svc-jump a:hover { border-color: var(--gold-border); background: var(--surface-2); transform: translateY(-2px); color: var(--text); }
.svc-jump-num { font-family: var(--font-mono); color: var(--gold); }
.svc-jump-name { font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; }
.svc-jump-count { grid-column: 2; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
@media (min-width: 760px) { .svc-jump { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.svc {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 20px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(245, 184, 34, 0.06), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.svc + .svc { margin-top: 28px; }
.svc::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(245, 184, 34, 0.5), transparent 35%, transparent 65%, rgba(56, 189, 248, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.service-num { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.svc-body h3 { font-size: clamp(1.625rem, 2.2vw + 0.9rem, 2.25rem); margin: 8px 0 12px; letter-spacing: -0.01em; }
.svc-intro { color: var(--text-2); margin-bottom: 22px; }
.list-title {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 22px 0 10px;
}

/* 3D model frame */
.svc-media { min-width: 0; }
.model-view {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(90% 70% at 50% 40%, rgba(56, 189, 248, 0.08), transparent 70%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    #05070B;
}
.model-view::before { /* poster for browsers without JavaScript */
  content: '';
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
}
.model-grading::before { background-image: url('/assets/img/model-grading.webp'); }
.model-bim::before { background-image: url('/assets/img/model-bim.webp'); }
.model-phasing::before { background-image: url('/assets/img/model-phasing.webp'); }
.model-view.is-live::before { display: none; }
.model-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.model-hud {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}
.hud-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.hud-dot-red { background: #FF6B6B; box-shadow: 0 0 10px #FF6B6B; }
.model-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 12px;
}
.legend, .phase-track { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.875rem; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.swatch-cut { background: #EF4444; }
.swatch-fill { background: #38BDF8; }
.swatch-contour { background: var(--gold); height: 3px; }
.swatch-pond { background: rgba(56, 189, 248, 0.35); border: 1px solid #38BDF8; border-radius: 50%; }
.swatch-storm { background: #2DD4BF; }
.swatch-sanitary { background: #C084FC; }
.swatch-water { background: #60A5FA; }
.swatch-clash { background: transparent; border: 2px solid #FF6B6B; border-radius: 50%; }
.phase-track { gap: 6px; counter-reset: phase; }
.phase-track li {
  counter-increment: phase;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.phase-track li::before { content: counter(phase) ' '; color: var(--text-3); }
.phase-track li.is-done { color: var(--text); border-color: var(--gold-border); }
.phase-track li.is-active { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.phase-track li.is-active::before { color: var(--bg); }
.model-pause {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  font: 600 0.875rem var(--font-head);
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.model-pause:hover { border-color: var(--gold); }
.model-pause[hidden] { display: none; }
.pause-icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.model-pause[aria-pressed="true"] .pause-icon { border: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; height: 0; }

/* Service tiles with a pointer spotlight */
.tile-grid { display: grid; gap: 10px; }
.tile {
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
  padding: 16px 16px 16px 18px;
  background: rgba(7, 9, 14, 0.55);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(245, 184, 34, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.tile::after {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0.35);
  opacity: 0.5;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: var(--gold-border); background: rgba(21, 28, 44, 0.85); }
.tile:hover::before { opacity: 1; }
.tile:hover::after { transform: scaleY(1); opacity: 1; }
.tile-idx { position: relative; font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); letter-spacing: 0.08em; }
.tile h4, .tile h5 { position: relative; font-size: 1.0625rem; font-weight: 600; margin: 4px 0; }
.tile p { position: relative; color: var(--text-2); font-size: 0.9375rem; }

@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 40px; align-items: start; }
  .svc-media { position: sticky; top: calc(var(--header-h) + 24px); }
  .svc-flip .svc-media { order: 2; }
}

/* How we work: timeline */
.timeline { position: relative; display: grid; gap: 18px; padding-left: 34px; }
.timeline::before, .timeline::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
}
.timeline::before { background: var(--line-strong); }
.timeline::after {
  background: linear-gradient(to bottom, var(--gold), #38BDF8);
  transform-origin: top;
  transform: scaleY(1);
}
.js .timeline::after { transform: scaleY(0); transition: transform 1.4s var(--ease); }
.js .timeline.is-inview::after { transform: scaleY(1); }

.step {
  --mx: 50%;
  --my: 50%;
  position: relative;
  z-index: 1; /* nodes sit above the timeline line */
  padding: 22px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(245, 184, 34, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.step:hover { transform: translateY(-4px); border-color: var(--gold-border); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.step:hover::before { opacity: 1; }
.step-node {
  position: absolute;
  left: -40px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--gold);
  background: var(--bg);
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--band);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.step-node svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step:hover .step-node { transform: scale(1.12); box-shadow: 0 0 0 5px var(--band), 0 0 22px rgba(245, 184, 34, 0.55); }
.step-num { position: relative; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.step h3 { position: relative; font-size: 1.375rem; margin: 4px 0 8px; }
.step > p:not(.step-num) { position: relative; color: var(--text-2); }
.step-tags { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.step-tags li {
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
  background: rgba(245, 184, 34, 0.08);
  border: 1px solid rgba(245, 184, 34, 0.28);
  border-radius: 999px;
}

@media (min-width: 1100px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-left: 0; padding-top: 58px; }
  .timeline::before, .timeline::after { left: 12.5%; right: 12.5%; top: 21px; bottom: auto; width: auto; height: 2px; }
  .timeline::after { background: linear-gradient(to right, var(--gold), #38BDF8); transform-origin: left; }
  .js .timeline::after { transform: scaleX(0); }
  .js .timeline.is-inview::after { transform: scaleX(1); }
  .step-node { left: 50%; top: -52px; width: 44px; height: 44px; margin-left: -22px; }
  .step-node svg { width: 22px; height: 22px; }
  .step:hover .step-node { transform: scale(1.12); }
}

/* About */
.about-grid { display: grid; gap: 36px; align-items: start; }
.headshot { max-width: 200px; width: 100%; }
@media (min-width: 900px) { .headshot { max-width: 360px; } }
.headshot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 8px; border: 1px solid var(--line-strong); }
.about-copy h2 { font-size: clamp(1.75rem, 3vw + 0.75rem, 2.5rem); margin-bottom: 16px; }
.about-copy > p { color: var(--text-2); font-size: 1.0625rem; }
.quote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-head);
  font-size: 1.1875rem;
  color: var(--text);
}
.creds { display: grid; gap: 0; border-top: 1px solid var(--line); }
.creds div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.creds dt { font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); }
.creds dd { color: var(--text); }
@media (min-width: 560px) { .creds div { grid-template-columns: 140px 1fr; gap: 16px; } }
@media (min-width: 900px) { .about-grid { grid-template-columns: 340px 1fr; gap: 56px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.contact-direct { display: grid; gap: 12px; align-content: start; }
.contact-direct li {
  display: grid;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.contact-label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.contact-direct a { font-size: 1.125rem; font-weight: 600; padding-block: 6px; display: inline-block; max-width: 100%; }
.contact-direct a[href^="mailto:"], .site-footer a[href^="mailto:"] { overflow-wrap: anywhere; }
.contact-direct span:not(.contact-label) { color: var(--text-2); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 22px 18px;
}
.form-note { font-size: 0.875rem; color: var(--text-2); margin-bottom: 16px; }
.field-row { display: grid; gap: 0 16px; }
.field { display: grid; gap: 6px; align-content: start; margin-bottom: 18px; min-width: 0; } /* never stretch to match a taller neighbour */
.field label { font-weight: 600; font-size: 0.9375rem; }
.req { color: var(--gold); }
.label-note { font-weight: 400; color: var(--text-3); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem; /* 16px keeps iOS from zooming in */
  color: var(--text);
  background: var(--input);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.field select { appearance: none; padding-right: 40px; background: var(--input) no-repeat right 14px center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A9B6C8' stroke-width='2'/%3E%3C/svg%3E"); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--gold); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-hint { font-size: 0.875rem; color: var(--text-3); }
.field-error { font-size: 0.875rem; color: var(--error); font-weight: 500; }
.field-error::before { content: '⚠ '; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status:empty { display: none; }
.form-status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
}
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 3px solid var(--gold); }
.form-status.is-success { border-color: var(--success); }
.form-status.is-warning, .form-status.is-error { border-color: var(--gold); }
.form-status h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.form-status p { color: var(--text-2); }
.form-status .status-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.form-status .status-actions .btn { flex: 1 1 180px; }

@media (min-width: 640px) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-form { padding: 32px; }
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; } }

/* Footer */
.site-footer { padding-top: 56px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; gap: 32px; padding-bottom: 32px; }
.footer-logo { width: 150px; margin-bottom: 14px; }
.site-footer p, .site-footer li { color: var(--text-2); }
.footer-title { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 8px; }
.site-footer ul a { display: inline-block; padding-block: 8px; color: var(--text-2); text-decoration: none; }
.site-footer ul a:hover { color: var(--gold); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.footer-bottom a { display: inline-block; padding-block: 10px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* Simple pages (thank you, privacy, 404) */
.page { padding-block: 64px 96px; min-height: 60vh; }
.page h1 { font-size: clamp(2rem, 4vw + 0.75rem, 3rem); margin-bottom: 20px; }
.page p, .page li { color: var(--text-2); max-width: 65ch; margin-bottom: 14px; }
.page h2 { font-size: 1.375rem; margin: 28px 0 10px; }
.page ul { list-style: disc; padding-left: 22px; }
.page .hero-actions { margin-top: 24px; }

/* Respect people who turn off motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tile:hover, .step:hover, .svc-jump a:hover { transform: none; }
}

/* Windows high contrast mode: keep borders and focus visible. */
@media (forced-colors: active) {
  .btn, .card, .service, .contact-form, .field input, .field select, .field textarea { border: 1px solid CanvasText; }
  :focus-visible { outline: 3px solid Highlight; }
}
