/* ============================================================
   DELCON ENGINEERING — design tokens
   Palette:
     --paper        #F3F0E8  drafting-paper background
     --charcoal     #23262B  primary ink / text
     --blueprint    #1F4E5F  deep blueprint blue (dark sections)
     --blueprint-2  #3E7A8C  lighter blueprint / links / accents
     --rebar        #E1592C  safety-orange accent (sparing)
     --steel        #6B7A85  secondary text / rules
   Type:
     display  — 'Space Grotesk'  (headlines, technical + geometric)
     body     — 'Inter'          (body copy)
     mono     — 'IBM Plex Mono'  (labels, sheet numbers, data callouts)
   ============================================================ */

:root {
  --paper: #f3f0e8;
  --paper-dim: #eae5d8;
  --charcoal: #23262b;
  --blueprint: #0e1a5c;
  --blueprint-2: #2f4ea6;
  --rebar: #e1592c;
  --steel: #6b7a85;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --nav-h: 76px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--charcoal); }

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--rebar);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------------- blueprint grid background ---------------- */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
}
.grid-bg-light {
  background-image:
    linear-gradient(rgba(31,78,95,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,78,95,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* corner registration marks — echoes crop/reg marks on a drawing sheet */
.reg-marks { position: relative; }
.reg-marks::before, .reg-marks::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  top: 14px; left: 14px;
  opacity: 0.5;
}
.reg-marks::after {
  top: auto; left: auto;
  bottom: 14px; right: 14px;
  border-top: none; border-left: none;
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

/* ================= NAV ================= */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--paper);
  border-bottom: 1px solid rgba(35,38,43,0.12);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; }

.brand {
  display: flex; flex-direction: column; gap: 2px;
}
.brand-logo {
  height: 50px;
  width: auto;
  display: block;
}
@media (max-width: 500px) {
  .brand-logo { height: 42px; }
}
/* white chip so the logo (dark ink on white) stays legible on dark sections */
.logo-chip {
  display: inline-flex;
  background: var(--paper);
  padding: 10px 14px;
  border-radius: 3px;
  line-height: 0;
}
.logo-chip img { height: 40px; width: auto; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--steel);
  text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: 3px;
  position: relative;
}
.nav-links a:hover { color: var(--blueprint-2); }
.nav-links a.active { color: var(--blueprint); font-weight: 700; }
.nav-links a.active::after {
  content: '';
  position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--rebar);
}

.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  position: absolute; top: 100%; left: 0;
  background: var(--paper);
  border: 1px solid rgba(35,38,43,0.14);
  min-width: 200px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  display: none;
  flex-direction: column;
  padding: 6px;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel { display: flex; }
.nav-dropdown-panel a { padding: 10px 12px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--charcoal);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid rgba(35,38,43,0.12);
    padding: 8px 16px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 12px 8px; border-bottom: 1px solid rgba(35,38,43,0.06); border-radius: 0; }
  .nav-dropdown-panel { position: static; display: flex; box-shadow: none; border: none; padding-left: 12px; }
  .nav-toggle { display: inline-flex; }
}

/* sheet indicator strip — a real drawing-set convention, used as page orientation */
.sheet-strip {
  border-bottom: 1px solid rgba(35,38,43,0.12);
  background: var(--paper-dim);
}
.sheet-strip .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 9px; padding-bottom: 9px;
  color: var(--steel);
}
.sheet-strip .mono span { color: var(--charcoal); }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  cursor: pointer;
  background: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--blueprint); border-color: var(--blueprint); color: var(--paper); }
.btn-primary:hover { background: var(--blueprint-2); border-color: var(--blueprint-2); }
.btn-outline { color: var(--paper); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark { color: var(--charcoal); }
.btn-outline-dark:hover { background: rgba(35,38,43,0.06); }
.btn-rebar { background: var(--rebar); border-color: var(--rebar); color: var(--paper); }
.btn-rebar:hover { background: #c94b23; border-color: #c94b23; }

/* ================= HERO (home) ================= */
.hero {
  background: var(--blueprint);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
}
.hero-photo {
  background-size: cover;
  background-position: center 30%;
}
.hero-photo-sm {
  background-size: cover;
  background-position: center 35%;
  padding: 64px 0 54px;
  overflow: hidden;
}

/* ================= PRELOADER ================= */
#site-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
#site-preloader .preloader-mark {
  width: 92px;
  height: auto;
  animation: preloaderPulse 1.15s ease-in-out infinite;
}
#site-preloader .preloader-bar {
  position: absolute;
  bottom: 38%;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 2px;
  background: rgba(35,38,43,0.12);
  overflow: hidden;
}
#site-preloader .preloader-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -40%;
  width: 40%; height: 100%;
  background: var(--rebar);
  animation: preloaderSlide 1.1s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.65; }
  50% { transform: scale(1.05); opacity: 1; }
}
@keyframes preloaderSlide {
  0% { left: -40%; }
  100% { left: 100%; }
}
#site-preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #site-preloader .preloader-mark { animation: none; }
  #site-preloader .preloader-bar::after { animation: none; left: 0; width: 100%; }
}
.hero .eyebrow {
  color: var(--rebar); font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  max-width: 850px;
  color: var(--paper);
}
.hero .sub {
  max-width: 560px;
  color: rgba(243,240,232,0.82);
  font-size: 1.08rem;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.dim-stats {
  margin-top: 68px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border-top: 1px solid rgba(243,240,232,0.25);
}
.dim-stat {
  padding: 22px 20px 6px;
  border-right: 1px solid rgba(243,240,232,0.25);
  position: relative;
}
.dim-stat:last-child { border-right: none; }
.dim-stat::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 1px; height: 10px; background: var(--rebar);
}
.dim-stat .num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.1rem; color: var(--paper);
}
.dim-stat .label {
  font-family: var(--font-mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(243,240,232,0.65);
}

/* ================= REHAB VIDEO SHOWCASE (home) ================= */
.rehab-showcase {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  padding: 0;
  color: var(--paper);
  background: var(--charcoal); /* shows briefly while the video buffers */
}
.rehab-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.rehab-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(14,26,92,0.08) 0%,
    rgba(14,26,92,0.22) 40%,
    rgba(14,26,92,0.66) 78%,
    rgba(14,26,92,0.92) 100%);
  z-index: 1;
}
.rehab-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 64px 0 52px;
}
.rehab-content .eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rebar); margin-bottom: 16px; display: block;
}
.rehab-content h2 { color: var(--paper); max-width: 640px; }
.rehab-content .sub { max-width: 580px; color: rgba(243,240,232,0.85); font-size: 1.02rem; }
.rehab-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; align-items: center; }
.rehab-tags span {
  font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--paper);
  border: 1px solid rgba(243,240,232,0.4);
  background: rgba(35,38,43,0.45);
  padding: 6px 12px;
  border-radius: 2px;
}
.rehab-state-tag {
  min-width: 76px;
  text-align: center;
  font-weight: 600;
  background: var(--rebar) !important;
  border-color: var(--rebar) !important;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.rehab-state-tag.is-after {
  background: var(--blueprint-2) !important;
  border-color: var(--blueprint-2) !important;
}
@media (max-width: 700px) {
  .rehab-showcase { min-height: 480px; }
  .rehab-content { padding: 40px 0 34px; }
}

/* ================= SECTION HELPERS ================= */
section { padding: 92px 0; }
.section-dark { background: var(--charcoal); color: var(--paper); }
.section-dark p { color: rgba(243,240,232,0.78); }
.section-blueprint { background: var(--blueprint); color: var(--paper); }
.section-blueprint p { color: rgba(243,240,232,0.82); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .eyebrow {
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rebar); margin-bottom: 12px; display: block;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

/* ================= TITLE-BLOCK CARDS (projects / expertise) ================= */
.tb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.tb-card {
  border: 1px solid rgba(35,38,43,0.16);
  background: var(--paper);
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tb-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(31,78,95,0.12); }
.tb-media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--blueprint), var(--blueprint-2));
  position: relative;
  display: flex; align-items: flex-end;
}
.tb-media .status {
  margin: 14px;
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--paper);
  background: rgba(35,38,43,0.55);
  padding: 5px 10px;
  border-radius: 2px;
}
.tb-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.tb-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.tb-meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  margin-top: auto; padding-top: 16px;
  border-top: 1px dashed rgba(35,38,43,0.2);
}
.tb-meta div { font-family: var(--font-mono); font-size: 0.68rem; color: var(--steel); }
.tb-meta div span { display: block; color: var(--charcoal); font-size: 0.82rem; margin-top: 2px; }

/* ================= expertise list ================= */
.expertise-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 26px;
  padding: 34px 0;
  border-top: 1px solid rgba(35,38,43,0.14);
}
.expertise-row:last-child { border-bottom: 1px solid rgba(35,38,43,0.14); }
.expertise-row .idx { font-family: var(--font-mono); color: var(--rebar); font-size: 0.95rem; padding-top: 4px; }
.expertise-row h3 { font-size: 1.3rem; margin-bottom: 8px; }
.expertise-row .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.expertise-row .tags span {
  font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--blueprint-2);
  border: 1px solid rgba(62,122,140,0.4); padding: 4px 9px; border-radius: 2px;
}

/* ================= simple cards ================= */
.card {
  border: 1px solid rgba(35,38,43,0.16);
  padding: 26px 24px;
  background: var(--paper);
}

.card-logo {
  height: 72px;
  display: flex; align-items: center; justify-content: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(35,38,43,0.12);
}
.card-logo img {
  max-height: 100%;
  max-width: 180px;
  object-fit: contain;
}
.card-logo.photo img {
  max-height: 100%;
  width: auto;
  border-radius: 2px;
}

.two-col {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.value-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px;
}

/* turnover bar chart */
.turnover-chart {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  height: 240px;
  padding: 20px 10px 0;
  border-bottom: 1px solid rgba(35,38,43,0.2);
}
.turnover-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.turnover-bar-col .value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--charcoal);
  margin-bottom: 8px;
  white-space: nowrap;
}
.turnover-bar-col .bar {
  width: 100%;
  max-width: 64px;
  background: var(--blueprint);
  border-radius: 3px 3px 0 0;
  transition: transform 0.2s ease;
}
.turnover-bar-col:last-child .bar { background: var(--rebar); }
.turnover-bar-col:hover .bar { transform: scaleY(1.02); }
.turnover-bar-col .year {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel);
}

/* client reel — auto-scrolling marquee showcase */
.reel-wrap {
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(243,240,232,0.18);
  border-bottom: 1px solid rgba(243,240,232,0.18);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.reel-track {
  display: flex;
  width: max-content;
  animation: reelScroll 38s linear infinite;
}
.reel-wrap:hover .reel-track { animation-play-state: paused; }
.reel-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 40px;
  border-right: 1px solid rgba(243,240,232,0.18);
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--paper);
}
.reel-item .loc {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(243,240,232,0.55);
  margin-top: 2px;
}
.reel-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rebar); flex: 0 0 auto; }
@keyframes reelScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none; }
}

/* client logos strip */
.logo-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 1px; background: rgba(35,38,43,0.14);
  border: 1px solid rgba(35,38,43,0.14);
}
.logo-cell {
  background: var(--paper);
  padding: 22px 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--steel);
  font-size: 1rem; text-align: center;
  min-height: 96px;
}
.logo-cell img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

/* credential / registration badges */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.cred-badge {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid rgba(35,38,43,0.16);
  background: var(--paper);
  padding: 18px 20px;
}
.cred-badge .seal {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
}
.cred-badge .seal svg { width: 22px; height: 22px; }
.cred-badge .seal img { width: 100%; height: 100%; object-fit: contain; }
.cred-badge .cred-text .org {
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
}
.cred-badge .cred-text .cat {
  font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--steel); margin-top: 2px;
}

/* testimonial */
.testimonial {
  border-left: 3px solid var(--rebar);
  padding-left: 24px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  max-width: 720px;
}
.testimonial cite {
  display: block; font-family: var(--font-mono); font-style: normal;
  font-size: 0.72rem; color: var(--steel); margin-top: 16px; text-transform: uppercase; letter-spacing: 0.06em;
}

/* job listings */
.job-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; border-top: 1px solid rgba(35,38,43,0.14); flex-wrap: wrap;
}
.job-row:last-child { border-bottom: 1px solid rgba(35,38,43,0.14); }
.job-row h3 { font-size: 1.05rem; margin-bottom: 4px; }
.job-row .job-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--steel); text-transform: uppercase; letter-spacing: 0.04em; }

/* form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--steel); display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: 0.95rem;
  border: 1px solid rgba(35,38,43,0.28); background: var(--paper); color: var(--charcoal);
  border-radius: 2px;
}
textarea { resize: vertical; min-height: 110px; }

/* tabs (ongoing/completed cross-link) */
.tab-switch { display: inline-flex; border: 1px solid var(--charcoal); border-radius: 2px; overflow: hidden; margin-bottom: 40px; }
.tab-switch a { padding: 10px 22px; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tab-switch a.active { background: var(--charcoal); color: var(--paper); }

/* ================= FOOTER ================= */
.site-footer {
  background: var(--charcoal); color: var(--paper);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(243,240,232,0.14);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--steel); margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--rebar); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding-top: 22px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--steel); text-transform: uppercase; letter-spacing: 0.04em;
}

/* photo gallery grid — for pictorial sections */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 8px;
}
.photo-grid img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--charcoal);
  display: block;
}
.photo-grid .tall { grid-row: span 2; }
.photo-grid .wide { grid-column: span 2; }
@media (max-width: 760px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .photo-grid .wide { grid-column: span 2; }
}

/* team page */
.team-lead {
  display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center;
}
@media (max-width: 700px) { .team-lead { grid-template-columns: 1fr; } }
.avatar-frame {
  width: 100%; aspect-ratio: 1; border-radius: 4px;
  background: var(--blueprint);
  display: flex; align-items: center; justify-content: center;
  color: rgba(243,240,232,0.85);
  font-family: var(--font-display); font-weight: 700; font-size: 3rem;
  border: 1px solid rgba(35,38,43,0.16);
}
.avatar-frame.sm { font-size: 2.2rem; }
.team-card {
  border: 1px solid rgba(35,38,43,0.16);
  background: var(--paper);
  padding: 26px;
  text-align: center;
}
.team-card .avatar-frame { width: 120px; height: 120px; margin: 0 auto 18px; }

/* instagram callout */
.insta-cta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  justify-content: space-between;
}
.insta-icon-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit;
}
.insta-icon-link svg { width: 22px; height: 22px; flex: 0 0 auto; }
.fade-up { animation: fadeUp 0.6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   DYNAMIC / DESIGNER ENHANCEMENT LAYER
   Scroll-reveal, refined hover states, ambient motion, dividers.
   ============================================================ */

/* ---- ambient hero glow (decorative, behind content) ---- */
.hero::before, .hero-photo-sm::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(circle, rgba(225,89,44,0.16), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container, .hero-photo-sm > .container { position: relative; z-index: 2; }

/* ---- angled divider beneath every hero, no markup needed ---- */
.hero::after, .hero-photo-sm::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 44px;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 1;
}
@media (max-width: 700px) {
  .hero::after, .hero-photo-sm::after { height: 26px; }
}

/* ---- scroll-reveal system (JS adds .is-visible on intersect) ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- nav: shrinks + gains depth once the page is scrolled ---- */
.site-nav {
  transition: box-shadow 0.25s ease, height 0.25s ease, background 0.25s ease;
}
.site-nav.is-scrolled {
  box-shadow: 0 4px 24px rgba(14,26,92,0.10);
  background: rgba(243,240,232,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  height: 62px;
}
.site-nav.is-scrolled .brand-logo { height: 38px; }
.brand-logo { transition: height 0.25s ease; }

/* ---- nav links: growing underline on hover (active keeps its own) ---- */
.nav-links a:not(.active) {
  transition: color 0.2s ease;
}
.nav-links a:not(.active)::after {
  content: '';
  position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--blueprint-2);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:not(.active):hover::after { transform: scaleX(1); }

/* ---- buttons: sweep-fill on hover instead of a flat swap ---- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  transform: translateX(-102%);
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1);
  z-index: -1;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: translateX(0); }
.btn-primary::before { background: var(--blueprint-2); }
.btn-outline::before { background: rgba(255,255,255,0.14); }
.btn-outline-dark::before { background: rgba(35,38,43,0.08); }
.btn-rebar::before { background: #c94b23; }

/* ---- cards: lifted depth + accent bar reveal ---- */
.tb-card, .card, .cred-badge, .team-card {
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.tb-card::before, .card::before, .cred-badge::before, .team-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--rebar);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.tb-card:hover, .card:hover, .cred-badge:hover, .team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(14,26,92,0.14);
  border-color: rgba(14,26,92,0.3);
}
.tb-card:hover::before, .card:hover::before, .cred-badge:hover::before, .team-card:hover::before {
  transform: scaleX(1);
}

/* ---- expertise rows: index number pops, tags lift ---- */
.expertise-row { transition: background 0.3s ease; }
.expertise-row .idx { transition: transform 0.3s cubic-bezier(.2,.7,.3,1), color 0.3s ease; display: inline-block; }
.expertise-row:hover .idx { transform: scale(1.25); color: var(--blueprint-2); }
.expertise-row .tags span { transition: background 0.2s ease, color 0.2s ease; }
.expertise-row .tags span:hover { background: var(--blueprint-2); color: var(--paper); }

/* ---- logo cells: gentle lift + saturation on hover ---- */
.logo-cell { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.logo-cell img { transition: transform 0.25s ease, filter 0.25s ease; filter: grayscale(0.35); }
.logo-cell:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(14,26,92,0.12); z-index: 2; }
.logo-cell:hover img { transform: scale(1.06); filter: grayscale(0); }

/* ---- photo-grid: subtle zoom on hover, cursor invites interaction ---- */
.photo-grid img {
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1), box-shadow 0.4s ease;
  cursor: default;
}
.photo-grid img:hover { transform: scale(1.035); box-shadow: 0 10px 30px rgba(0,0,0,0.35); position: relative; z-index: 2; }

/* ---- dim-stat: number count-up target + hover pulse on the tick ---- */
.dim-stat::before { transition: height 0.4s ease; }
.dim-stat:hover::before { height: 100%; opacity: 0.35; }

/* ---- reel items: subtle hover brighten ---- */
.reel-item { transition: background 0.2s ease; }
.reel-item:hover { background: rgba(243,240,232,0.06); }

/* ---- turnover bars animate in from zero (JS toggles .grow) ---- */
.turnover-bar-col .bar {
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.9s cubic-bezier(.2,.7,.3,1);
}
.turnover-bar-col.grow .bar { transform: scaleY(1); }
.turnover-bar-col:hover .bar { transform: scaleY(1.02); }

/* ---- footer links: arrow-nudge on hover ---- */
.footer-grid a { display: inline-block; transition: transform 0.2s ease, color 0.2s ease; }
.footer-grid a:hover { transform: translateX(3px); }

/* ---- back-to-top button ---- */
#back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blueprint);
  color: var(--paper);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(14,26,92,0.28);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
  z-index: 90;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--blueprint-2); }
#back-to-top svg { width: 18px; height: 18px; }

/* ---- job rows / tab-switch: small interactive polish ---- */
.job-row { transition: background 0.2s ease, padding-left 0.2s ease; }
.job-row:hover { padding-left: 8px; background: rgba(14,26,92,0.03); }
.tab-switch a { transition: background 0.2s ease, color 0.2s ease; }

/* ---- avatar frames: subtle glow ring on hover ---- */
.avatar-frame { transition: box-shadow 0.3s ease; }
.team-lead:hover .avatar-frame, .team-card:hover .avatar-frame {
  box-shadow: 0 0 0 4px rgba(225,89,44,0.18);
}
