:root{
    --ink:#16222b;
    --paper:#f4f4f1;
    --surface:#ffffff;
    --rule:#d9dbd4;
    --muted:#5b6a72;
    --slate:#4c6b80;
    --slate-deep:#1f2e39;
    --slate-deep-2:#182229;
    --brass:#a4783f;
    --brass-deep:#87611f;
    --on-dark:#f2f0ea;
    --on-dark-muted:#aab6bc;
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --error:#a33b2c;
  }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]){
      --paper:#12181c;
      --surface:#182027;
      --rule:#2a343b;
      --muted:#9aa7ad;
      --ink:#eef1ee;
      --slate-deep:#0d1418;
      --slate-deep-2:#0a0f13;
      --on-dark:#f2f0ea;
    }
  }
  :root[data-theme="dark"]{
    --paper:#12181c;
    --surface:#182027;
    --rule:#2a343b;
    --muted:#9aa7ad;
    --ink:#eef1ee;
    --slate-deep:#0d1418;
    --slate-deep-2:#0a0f13;
  }

  *{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:var(--sans);
    font-size:16px;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }
  img,svg{ max-width:100%; display:block; }
  a{ color:inherit; }
  .wrap{
    max-width:1120px;
    margin:0 auto;
    padding:0 clamp(1.25rem, 4vw, 2.5rem);
  }
  .measure{ max-width:640px; }
  h1,h2,h3{
    font-family:var(--serif);
    font-weight:600;
    line-height:1.15;
    margin:0 0 0.6em;
    letter-spacing:-0.01em;
  }
  h1{ font-size:clamp(2.1rem, 4.4vw, 3.4rem); }
  h2{ font-size:clamp(1.5rem, 2.6vw, 2.1rem); }
  h3{ font-size:1.15rem; font-weight:600; }
  p{ margin:0 0 1em; color:var(--muted); }
  .section{ padding:5rem 0; }
  .section + .section{ border-top:1px solid var(--rule); }
  .eyebrow{
    font-family:var(--sans);
    font-size:0.85rem;
    color:var(--slate);
    margin:0 0 0.9rem;
    font-weight:600;
  }

  /* Nav */
  header{
    position:sticky; top:0; z-index:50;
    background:color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter:blur(8px);
    border-bottom:1px solid var(--rule);
  }
  .nav-inner{
    display:flex; align-items:center; justify-content:space-between;
    padding:1rem clamp(1.25rem, 4vw, 2.5rem);
    max-width:1120px; margin:0 auto;
  }
  .brand{
    display:flex; align-items:center; gap:0.6rem;
    font-family:var(--serif); font-size:1.25rem; font-weight:600;
    text-decoration:none; color:var(--ink);
  }
  .brand svg{ width:30px; height:30px; }
  nav ul{
    list-style:none; display:flex; gap:1.9rem; margin:0; padding:0;
  }
  nav a{
    text-decoration:none; font-size:0.95rem; color:var(--muted);
    padding:0.25rem 0; border-bottom:1px solid transparent;
  }
  nav a:hover{ color:var(--ink); border-bottom-color:var(--brass); }
  .nav-cta{
    display:inline-flex; align-items:center;
    background:var(--slate-deep); color:var(--on-dark);
    padding:0.55rem 1.15rem; border-radius:3px;
    font-size:0.9rem; font-weight:500; text-decoration:none;
    white-space:nowrap;
  }
  .nav-cta:hover{ background:var(--brass-deep); }
  .nav-toggle{ display:none; }

  /* Hero */
  .hero{
    background:var(--slate-deep);
    color:var(--on-dark);
    position:relative;
    overflow:hidden;
    padding:6.5rem 0 5.5rem;
  }
  .hero::before{
    content:"";
    position:absolute; inset:0;
    background-image:radial-gradient(circle, rgba(242,240,234,0.14) 1px, transparent 1px);
    background-size:26px 26px;
    mask-image:linear-gradient(to bottom, black, transparent 85%);
    -webkit-mask-image:linear-gradient(to bottom, black, transparent 85%);
  }
  .hero-inner{
    position:relative; display:grid; grid-template-columns:1.15fr 0.85fr; gap:3rem; align-items:center;
  }
  .hero h1{ color:var(--on-dark); }
  .hero .sub{ color:var(--on-dark-muted); font-size:1.15rem; max-width:34ch; }
  .hero-actions{ display:flex; gap:0.9rem; margin-top:2rem; flex-wrap:wrap; }
  .btn{
    display:inline-flex; align-items:center; justify-content:center;
    padding:0.8rem 1.5rem; border-radius:3px; text-decoration:none;
    font-size:0.95rem; font-weight:500; cursor:pointer; border:1px solid transparent;
    font-family:var(--sans);
  }
  .btn-primary{ background:var(--brass); color:#1a1204; }
  .btn-primary:hover{ background:#b98a4f; }
  .btn-ghost{ background:transparent; color:var(--on-dark); border-color:rgba(242,240,234,0.35); }
  .btn-ghost:hover{ border-color:var(--on-dark); }
  .btn-outline{ background:transparent; color:var(--ink); border-color:var(--rule); }
  .btn-outline:hover{ border-color:var(--slate); color:var(--slate); }

  .hero-graphic{ width:100%; }

  /* Intro */
  .intro p{ font-size:1.1rem; color:var(--ink); }

  /* Services list */
  .service-row{
    display:grid; grid-template-columns:2.2rem 1fr; gap:1.5rem;
    padding:2.3rem 0; border-top:1px solid var(--rule);
  }
  .service-row:first-of-type{ border-top:none; }
  .service-icon{ width:2.2rem; height:2.2rem; color:var(--slate); }
  .service-row h3{ margin-bottom:0.4rem; }
  .service-row .outcome{
    font-size:0.92rem; color:var(--slate); font-weight:500; margin-top:0.6rem;
  }
  .learn{
    display:inline-block; margin-top:0.7rem; font-size:0.9rem; color:var(--brass-deep);
    text-decoration:none; border-bottom:1px solid currentColor;
  }

  /* Why / credibility */
  .split{
    display:grid; grid-template-columns:0.9fr 1.1fr; gap:3.5rem; align-items:start;
  }
  .stat-block{
    background:var(--surface); border:1px solid var(--rule); border-radius:4px;
    padding:1.8rem;
  }
  .stat{ font-family:var(--serif); font-size:2.6rem; color:var(--slate-deep); line-height:1; margin-bottom:0.3rem; }
  .stat-label{ font-size:0.88rem; color:var(--muted); }
  .stat-block + .stat-block{ margin-top:1rem; }

  /* CTA band */
  .cta-band{
    background:var(--slate-deep-2); color:var(--on-dark); text-align:left;
    padding:4.5rem 0;
  }
  .cta-band h2{ color:var(--on-dark); }
  .cta-band .wrap{ display:flex; align-items:center; justify-content:space-between; gap:2rem; flex-wrap:wrap; }

  /* Services page detail */
  .svc-detail{ padding:2.6rem 0; border-top:1px solid var(--rule); }
  .svc-detail:first-of-type{ border-top:none; }
  .svc-head{ display:flex; align-items:baseline; gap:1rem; margin-bottom:0.8rem; }
  .svc-num{ font-family:var(--serif); color:var(--brass); font-size:1rem; }
  .svc-detail p{ max-width:70ch; }

  /* About timeline */
  .timeline{ margin-top:1.5rem; }
  .t-row{
    display:grid; grid-template-columns:7rem 1fr; gap:1.5rem;
    padding:1.6rem 0; border-top:1px solid var(--rule);
  }
  .t-row:first-child{ border-top:none; }
  .t-year{ font-family:var(--serif); color:var(--slate); font-size:1rem; }
  .t-row h3{ font-size:1.02rem; margin-bottom:0.3rem; }
  .t-row p{ margin-bottom:0; font-size:0.95rem; }
  .avatar{
    width:96px; height:96px; border-radius:50%;
    background:var(--slate-deep); color:var(--on-dark);
    display:flex; align-items:center; justify-content:center;
    font-family:var(--serif); font-size:2rem; border:3px solid var(--brass);
    flex:none;
  }
  .about-head{ display:flex; gap:1.6rem; align-items:center; margin-bottom:0.5rem; }
  .creds{ list-style:none; padding:0; margin:1.2rem 0 0; display:grid; grid-template-columns:1fr 1fr; gap:0.5rem 1.5rem; }
  .creds li{ font-size:0.92rem; color:var(--muted); padding-left:1rem; position:relative; }
  .creds li::before{ content:"—"; position:absolute; left:0; color:var(--brass); }

  /* Case studies */
  .case{ padding:2.4rem 0; border-top:1px solid var(--rule); }
  .case:first-of-type{ border-top:none; }
  .case .tag{
    display:inline-block; font-size:0.78rem; color:var(--slate); border:1px solid var(--rule);
    padding:0.15rem 0.55rem; border-radius:20px; margin-bottom:0.8rem;
  }
  .case dl{ display:grid; grid-template-columns:9rem 1fr; gap:0.6rem 1.2rem; margin:1rem 0 0; }
  .case dt{ font-weight:600; color:var(--ink); font-size:0.92rem; }
  .case dd{ margin:0; color:var(--muted); font-size:0.95rem; }

  /* Contact */
  .contact-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:3.5rem; }
  .field{ margin-bottom:1.1rem; }
  .field label{ display:block; font-size:0.85rem; font-weight:600; margin-bottom:0.35rem; }
  .field input, .field textarea{
    width:100%; padding:0.7rem 0.85rem; border:1px solid var(--rule); border-radius:3px;
    background:var(--surface); color:var(--ink); font-family:var(--sans); font-size:0.96rem;
  }
  .field textarea{ resize:vertical; min-height:110px; }
  .contact-info h3{ margin-top:0; }
  .contact-info .row{ padding:0.9rem 0; border-top:1px solid var(--rule); }
  .contact-info .row:first-of-type{ border-top:none; }
  .contact-info .row span{ display:block; font-size:0.8rem; color:var(--muted); margin-bottom:0.2rem; }

  footer{ background:var(--slate-deep); color:var(--on-dark-muted); padding:3rem 0 2.2rem; }
  footer .wrap{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:1.5rem; align-items:center; }
  footer a{ text-decoration:none; color:var(--on-dark-muted); }
  footer a:hover{ color:var(--on-dark); }
  .foot-domains{ font-size:0.85rem; }

  /* Modal (brochure) */
  .modal-overlay{
    display:none; position:fixed; inset:0; background:rgba(10,14,17,0.6);
    align-items:center; justify-content:center; z-index:1000; padding:1rem;
  }
  .modal-overlay.open{ display:flex; }
  .modal{
    background:var(--surface); border:1px solid var(--rule); border-radius:6px;
    max-width:440px; width:100%; padding:2rem; position:relative;
    box-shadow:0 24px 60px rgba(0,0,0,0.3);
  }
  .modal h2{ font-size:1.3rem; margin-bottom:0.35rem; }
  .modal p.sub{ margin:0 0 1.3rem; color:var(--muted); font-size:0.9rem; }
  .modal-close{
    position:absolute; top:1rem; right:1.1rem; background:none; border:none;
    font-size:1.4rem; color:var(--muted); cursor:pointer; line-height:1;
  }
  .field.invalid input{ border-color:var(--error); }
  .field .err{ display:none; color:var(--error); font-size:0.78rem; margin-top:0.3rem; }
  .field.invalid .err{ display:block; }
  .privacy-note{ font-size:0.78rem; color:var(--muted); margin-top:0.9rem; }
  .success-view{ display:none; text-align:center; }
  .success-view.show{ display:block; }
  .success-view .check{ font-size:2.4rem; margin-bottom:0.5rem; }
  .form-view.hide{ display:none; }

  @media (max-width:860px){
    .hero-inner{ grid-template-columns:1fr; }
    .hero-graphic{ order:-1; max-width:280px; margin:0 auto 1.5rem; }
    .split{ grid-template-columns:1fr; }
    .contact-grid{ grid-template-columns:1fr; }
    nav ul{ display:none; }
    .creds{ grid-template-columns:1fr; }
    .cta-band .wrap{ flex-direction:column; align-items:flex-start; }
  }

/* Real-photo hero */
.hero-photo{ position:relative; width:100%; height:60vh; min-height:420px; max-height:620px; overflow:hidden; }
.hero-photo img{ width:100%; height:100%; object-fit:cover; object-position:center 30%; }
.hero-scrim{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(15,20,24,0.55) 0%, rgba(15,20,24,0.35) 45%, rgba(15,20,24,0.92) 100%); }
.hero-copy{ position:relative; margin-top:-9rem; padding-bottom:3.5rem; color:var(--on-dark); }
.hero-copy h1{ color:var(--on-dark); max-width:18ch; }
.hero-copy .sub{ color:var(--on-dark-muted); font-size:1.15rem; }
.hero-actions{ margin-bottom:0.5rem; }

/* About grid with real photo */
.about-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:3rem; align-items:center; }
.about-photo img, .founder-photo img{ width:100%; border-radius:6px; border:1px solid var(--rule); object-fit:cover; }
.founder-photo{ width:200px; height:200px; border-radius:50%; overflow:hidden; border:3px solid var(--brass); flex:none; }
.founder-photo img{ width:100%; height:100%; border:none; border-radius:0; }

/* Offerings rows with photo */
.offer-row{
  display:grid; grid-template-columns:1fr 1.4fr; gap:2.2rem; align-items:center;
  padding:2.4rem 0; border-top:1px solid var(--rule);
}
.offer-row:first-of-type{ border-top:none; }
.offer-row.reverse{ grid-template-columns:1.4fr 1fr; }
.offer-row.reverse .offer-photo{ order:2; }
.offer-photo img{ width:100%; border-radius:6px; aspect-ratio:4/3; object-fit:cover; border:1px solid var(--rule); }
.offer-row h3{ font-size:1.2rem; margin-bottom:0.5rem; }

@media (max-width:860px){
  .about-grid{ grid-template-columns:1fr; }
  .offer-row, .offer-row.reverse{ grid-template-columns:1fr; }
  .offer-row.reverse .offer-photo{ order:0; }
  .hero-copy{ margin-top:-7rem; }
}
