  :root {
    --charcoal: #2a2a2a;
    --brick: #b84a4a;
    --brick-hover: #993e3e;
    --paper: #f5f4f1;
    --white: #ffffff;
    --text-secondary: #6b665e;
    --text-muted: #a8a49a;
    --border: #e6e1d6;
    --border-dark: #404040;
    --nav-height: 64px;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Geist', system-ui, -apple-system, sans-serif;
    color: var(--charcoal);
    background: var(--white);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4 {
    font-family: 'Geist', system-ui, sans-serif;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--charcoal);
  }

  a { color: var(--brick); text-decoration: none; transition: color 0.15s ease; }
  a:hover { color: var(--brick-hover); }

  .container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
  .container.narrow { max-width: 720px; }
  .container.wide { max-width: 1200px; }

  /* ============ TOP  ============ */
  nav.topnav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
    display: flex; align-items: center;
  }
  nav.topnav .inner {
    width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
  }
  .wordmark {
    display: inline-block; background: var(--charcoal); color: var(--white);
    padding: 8px 14px 12px; border-radius: 6px;
    font-weight: 600; font-size: 16px; letter-spacing: 0.01em;
    position: relative; text-decoration: none;
  }
  .wordmark::after {
    content: ""; position: absolute;
    left: 14px; right: 14px; bottom: 6px; height: 2px;
    background: var(--brick);
  }
  .nav-links { display: flex; align-items: center; gap: 28px; font-size: 16px; }
  .nav-links a { color: var(--charcoal); font-weight: 500; }
  .nav-links a:hover { color: var(--brick); }
  .nav-right { display: flex; align-items: center; gap: 20px; }
  .nav-phone { color: var(--charcoal); font-weight: 500; font-size: 16px; font-variant-numeric: tabular-nums; }
  .nav-phone:hover { color: var(--brick); }

  /* ============ BUTTONS ============ */
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--brick); color: var(--white);
    padding: 13px 22px; border-radius: 6px;
    font-family: inherit; font-weight: 500; font-size: 15px;
    cursor: pointer; border: 1px solid var(--brick);
    transition: all 0.15s ease; text-decoration: none;
  }
  .btn:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
  .btn .arrow { transition: transform 0.2s ease; display: inline-block; }
  .btn:hover .arrow { transform: translateX(3px); }
  .btn.small { padding: 9px 16px; font-size: 16px; }

  /* ============ HERO WITH IAN'S IMAGE ============ */
  section.hero {
    min-height: calc(87vh - var(--nav-height));
    display: flex; align-items: center;
    padding: 40px 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--paper); /* fallback if image fails */
  }
  /* The flowing curves image as background */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
  }
  /* Cream wash on top — tuned so image is visibly present but text stays readable */
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      105deg,
      rgba(245,244,241,0.75) 0%,
      rgba(245,244,241,0.60) 50%,
      rgba(245,244,241,0.45) 100%
    );
    z-index: -1;
  }
  .hero-grid {
    width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 32px;
    position: relative;
    z-index: 1;
  }
  .hero h1 { font-size: 56px; line-height: 1.05; margin-bottom: 24px; letter-spacing: -0.02em; }
  .hero .sub {
    font-size: 19px; color: var(--text-secondary); line-height: 1.5;
    margin-bottom: 36px; max-width: 480px;
  }
  .video-frame {
    position: relative; width: 100%; aspect-ratio: 16/10;
    background: var(--white); border-radius: 8px;
    overflow: hidden; border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(42,42,42,0.10);
  }
  .video-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    background: linear-gradient(135deg, #f5f4f1 0%, #ebe9e2 100%);
  }
  .play-button {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--charcoal);
    display: flex; align-items: center; justify-content: center;
    padding-left: 4px;
    box-shadow: 0 2px 16px rgba(42,42,42,0.18);
  }
  .placeholder-label {
    font-size: 12px; color: var(--text-secondary);
    letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  }
  .video-caption { margin-top: 14px; font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
  .video-caption strong { color: var(--charcoal); font-weight: 500; }

  /* ============ STATS STRIP ============ */
  .stats-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); }
  .stats-inner {
    max-width: 1080px; margin: 0 auto; padding: 36px 32px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
  }
  .stat-item { text-align: left; }
  .stat-lead {
    font-size: 19px; font-weight: 500; color: var(--charcoal);
    margin-bottom: 6px; letter-spacing: -0.005em; line-height: 1.3;
  }
  .stat-label { font-size: 15px; color: var(--text-secondary); line-height: 1.45; }

  /* ============ NARRATIVE ============ */
  section.narrative { padding: 120px 0; background: #ecedef; }
  .narrative .container { max-width: 1080px; }
  .narrative h2 { font-size: 40px; margin-bottom: 32px; letter-spacing: -0.02em; }
  .narrative p { font-size: 18px; line-height: 1.65; margin-bottom: 22px; color: var(--charcoal); }
  .pull-quote {
    font-size: 28px; font-style: italic; line-height: 1.3; color: var(--charcoal);
    padding-left: 24px; border-left: 3px solid var(--charcoal);
    margin: 36px 0; max-width: 580px; font-weight: 400;
  }

  /* ============ FLOW SECTION ============ */
  section.flow-section { padding: 120px 0; background: var(--white); }
  .flow-section .section-head { margin-bottom: 64px; max-width: 1080px; }
  .flow-section h2 { font-size: 40px; margin-bottom: 20px; letter-spacing: -0.02em; }
  .flow-section .lead { font-size: 18px; color: var(--text-secondary); line-height: 1.5; }
  .flow-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0; align-items: stretch; margin-bottom: 32px;
  }
  .flow-col {
    background: var(--paper); border: 1px solid var(--border);
    border-radius: 8px; padding: 24px 22px;
    display: flex; flex-direction: column; gap: 14px;
  }
  .flow-col.human { background: var(--charcoal); border-color: var(--charcoal); }
  .flow-col.human .col-num { color: var(--brick); }
  .flow-col.human .col-label { color: var(--white); }
  .flow-col.human .col-item { color: #d8d5cc; }
  .flow-col.human .col-header { border-bottom-color: #444; }
  .col-header {
    margin-bottom: 8px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 4px;
  }
  .col-num {
    font-size: 11px; font-weight: 500; color: var(--brick);
    letter-spacing: 0.18em; font-variant-numeric: tabular-nums;
  }
  .col-label {
    font-size: 16px; font-weight: 500; color: var(--charcoal);
    letter-spacing: -0.005em; line-height: 1.3;
  }
  .col-item {
    font-size: 14px; line-height: 1.45; color: var(--charcoal);
    padding-left: 14px; position: relative;
  }
  .col-item::before {
    content: ""; position: absolute; left: 0; top: 9px;
    width: 6px; height: 1px; background: var(--text-muted);
  }
  .flow-arrow {
    display: flex; align-items: center; justify-content: center;
    width: 36px; color: var(--text-muted);
  }
  .flow-footer {
    text-align: center; font-size: 14px; color: var(--text-secondary);
    max-width: 720px; margin: 32px auto 0; padding-top: 24px;
    border-top: 1px solid var(--border); line-height: 1.5;
  }
  .flow-footer strong { color: var(--charcoal); font-weight: 500; }

  /* ============ WHAT I BUILD ============ */
  section.build { padding: 120px 0; background: #ecedef; }
  .section-head { margin-bottom: 56px; max-width: 1080px; }
  .section-head h2 { font-size: 40px; margin-bottom: 20px; letter-spacing: -0.02em; }
  .section-head .lead { font-size: 18px; color: var(--text-secondary); line-height: 1.5; }
  .value-list { list-style: none; max-width: 880px; }
  .value-list li {
    padding: 22px 0 22px 36px; border-top: 1px solid var(--border);
    position: relative; font-size: 16px; line-height: 1.55;
  }
  .value-list li:last-child { border-bottom: 1px solid var(--border); }
  .value-list li::before {
    content: ""; position: absolute; left: 0; top: 32px;
    width: 18px; height: 2px; background: var(--charcoal);
  }
  .value-list li strong { font-weight: 500; color: var(--charcoal); }

  /* ============ OFFERS ============ */
  section.offers { padding: 120px 0; background: var(--white); }
  .offer-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px;
  }
  .offer-card {
    background: var(--paper); border: 1px solid var(--border);
    border-top: 3px solid var(--charcoal);
    border-radius: 6px; padding: 32px 28px;
    transition: transform 0.2s ease, border-top-color 0.2s ease;
  }
  .offer-card:hover { transform: translateY(-2px); border-top-color: var(--brick); }
  .offer-card h3 { font-size: 22px; font-weight: 500; margin-bottom: 12px; letter-spacing: -0.01em; }
  .offer-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.55; }

  /* ============ CONTACT ============ */
  section.contact { padding: 120px 0; background: #ecedef; }
  .contact-grid {
    display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px;
    align-items: start; max-width: 1000px;
  }
  .contact-block h3 { font-size: 22px; font-weight: 500; margin-bottom: 12px; }
  .contact-block p { color: var(--text-secondary); margin-bottom: 20px; font-size: 15px; line-height: 1.55; }
  form .field { margin-bottom: 18px; }
  form label {
    display: block; font-size: 11px; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--charcoal); margin-bottom: 8px;
  }
  form input, form textarea {
    width: 100%; height: 44px; padding: 0 14px;
    border: 1px solid var(--border); border-radius: 4px;
    font-family: inherit; font-size: 15px;
    background: var(--white); color: var(--charcoal);
    transition: border-color 0.15s ease;
  }
  form textarea { height: auto; padding: 12px 14px; min-height: 120px; resize: vertical; }
  form input:focus, form textarea:focus { outline: none; border-color: var(--brick); }

  /* ============ FOOTER ============ */
  footer { background: var(--charcoal); color: var(--white); padding: 64px 0 32px; }
  .footer-grid {
    max-width: 1080px; margin: 0 auto; padding: 0 32px 48px;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
    border-bottom: 1px solid var(--border-dark);
  }
  .footer-brand .wordmark-foot {
    color: var(--white); font-weight: 600; font-size: 18px;
    padding-bottom: 6px; border-bottom: 2px solid var(--brick);
    display: inline-block; margin-bottom: 14px;
  }
  .footer-brand p { color: #a8a49a; font-size: 14px; line-height: 1.55; max-width: 260px; }
  .footer-col h4 {
    color: var(--white); font-size: 12px; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px;
  }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 10px; font-size: 14px; }
  .footer-col a { color: #d8d5cc; text-decoration: none; }
  .footer-col a:hover { color: var(--white); }
  .footer-bottom {
    max-width: 1080px; margin: 0 auto; padding: 24px 32px 0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: #757065;
  }
  .footer-bottom .legal a { color: #a8a49a; margin-left: 18px; }
  .footer-bottom .legal a:hover { color: var(--white); }

/* Add background image to all white sections */
.stats-strip,
section.flow-section,
section.offers {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.stats-strip::before,
section.flow-section::before,
section.offers::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}

.stats-strip::after,
section.flow-section::after,
section.offers::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: -1;
}

.stats-strip .stats-inner,
section.flow-section .container,
section.offers .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 880px) {
  .stats-strip::before,
  section.flow-section::before,
  section.offers::before {
    background-attachment: scroll;
  }
}


  /* ============ RESPONSIVE ============ */
  @media (max-width: 1024px) {
    .flow-grid { grid-template-columns: 1fr; gap: 16px; }
    .flow-arrow { width: 100%; height: 28px; transform: rotate(90deg); }
  }
  @media (max-width: 880px) {
    nav.topnav .inner { padding: 0 20px; gap: 12px; }
    .nav-links { display: none; }
    .container, .hero-grid, .stats-inner { padding-left: 20px; padding-right: 20px; }
    section.hero { min-height: 0; padding: 60px 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 36px; }
    section.narrative, section.flow-section, section.build, section.offers, section.contact { padding: 70px 0; }
    .narrative h2, .section-head h2, .flow-section h2 { font-size: 28px; }
    .pull-quote { font-size: 22px; padding-left: 18px; }
    .stats-inner { grid-template-columns: 1fr; gap: 20px; padding: 28px 20px; }
    .offer-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom .legal a { margin: 0 9px; }
  }

  /* Honeypot — off-screen so bots see and fill it, humans don't */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Inline status message — basic, refine later */
.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  display: none;
}
.form-message.success {
  display: block;
  background: #f0f7f0;
  color: #2a2a2a;
  border: 1px solid #c8e0c8;
}
.form-message.error {
  display: block;
  background: #fdf0f0;
  color: #2a2a2a;
  border: 1px solid #b84a4a;
}   

/* ============================================================
   ADDITIONS for inner pages (about.html, work.html, contact.html)
   Append to the end of your existing styles.css.
   ============================================================ */

/* ============ INNER PAGE HEADER ============ */
section.page-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 0;
  background: var(--paper);
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(245,244,241,0.75) 0%,
    rgba(245,244,241,0.60) 50%,
    rgba(245,244,241,0.45) 100%
  );
  z-index: -1;
}
.page-header .container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
}
.page-header h1 {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.page-header .tagline {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 580px;
}

@media (max-width: 880px) {
  section.page-header { padding: 60px 0; }
  .page-header h1 { font-size: 32px; }
  .page-header .tagline { font-size: 17px; }
}

/* ============ ACTIVE NAV STATE ============ */
.nav-links a.active {
  text-decoration: underline;
  text-decoration-color: var(--brick);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ============ SCAFFOLD NOTE (remove before launch) ============ */
.scaffold-note {
  background: #fff8e1;
  border-left: 3px solid #d4a72c;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5e4a0e;
  border-radius: 0 4px 4px 0;
}
.scaffold-note strong {
  color: #3d2f00;
  font-weight: 500;
}
.scaffold-note ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}
.scaffold-note ul li {
  margin-bottom: 4px;
}

/* ============ INNER-PAGE BACKGROUND CONTINUATION ============ */
body.inner-page section.narrative,
body.inner-page section.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

body.inner-page section.narrative + section.narrative {
  padding-top: 0;
}

body.inner-page section.narrative::before,
body.inner-page section.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}

body.inner-page section.narrative::after,
body.inner-page section.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: -1;
}

body.inner-page section.narrative .container,
body.inner-page section.contact .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 880px) {
  body.inner-page section.narrative::before,
  body.inner-page section.contact::before {
    background-attachment: scroll;
  }
}

/* ============ INNER-PAGE PAGE-HEADER ADJUSTMENT ============ */
body.inner-page .page-header::before {
  background-attachment: fixed;
}
body.inner-page .page-header::after {
  background: rgba(255, 255, 255, 0.85);
}
@media (max-width: 880px) {
  body.inner-page .page-header::before {
    background-attachment: scroll;
  }
}
/* ============ BIO PHOTO (About page, magazine-style float) ============ */
.bio-photo {
  float: left;
  margin: 4px 32px 16px 0;
  text-align: center;
  width: 200px;
}
.bio-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brick);
  display: block;
  margin: 0 auto;
}
.bio-photo figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
}
.bio-photo figcaption strong {
  display: block;
  font-weight: 500;
  color: var(--charcoal);
}
.bio-photo figcaption span {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Clear the float so the CTA section below isn't pulled up */
section.narrative .container::after {
  content: "";
  display: block;
  clear: both;
}

/* Mobile: stack the photo above the bio rather than floating */
@media (max-width: 880px) {
  .bio-photo {
    float: none;
    margin: 0 auto 24px;
  }
}

/* ============ BRIDGE (home page → inner pages) ============ */
section.bridge { padding: 120px 0; background: #ecedef; }
.bridge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.bridge-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--charcoal);
  border-radius: 6px;
  padding: 32px 28px;
  text-decoration: none;
  color: var(--charcoal);
  display: block;
  transition: transform 0.2s ease, border-top-color 0.2s ease;
}
.bridge-card:hover {
  transform: translateY(-2px);
  border-top-color: var(--brick);
}
.bridge-card h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.bridge-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}
.bridge-link {
  color: var(--brick);
  font-weight: 500;
  font-size: 14px;
}

@media (max-width: 880px) {
  section.bridge { padding: 70px 0; }
  .bridge-grid { grid-template-columns: 1fr; }
}
