:root{
  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #5b6472;

  --accent: #6a2a2a;      /* fresco oxblood */
  --accent-dark: #582222;

  --alt: #f7f6f4;         /* parchment */
  --border: #e2ddd7;      /* warm divider */
}


*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--ink);
  background:var(--bg);
}

.container{max-width:1040px;margin:0 auto;padding:0 22px}

.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--border);
}
.brand{display:flex; gap:10px; align-items:center; text-decoration:none; color:var(--ink)}
.brand-mark{
  width:34px;height:34px;border:1px solid var(--border);border-radius:10px;
  display:grid;place-items:center;font-weight:700;
}
.brand-name{font-weight:700; letter-spacing:-0.01em}

.nav{display:flex; gap:18px; align-items:center}
.nav a{color:var(--muted); text-decoration:none; font-weight:600; font-size:0.95rem}
.nav a:hover{color:var(--ink)}
.nav-cta{
  padding:10px 12px; border:1px solid var(--border); border-radius:999px;
}
.hero{
  padding: 120px 0 96px;
  border-bottom:1px solid var(--border);

  background-image: url("/assets/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(15,23,42,0.55); /* dark slate overlay */
  z-index:0;
}
.hero{
  position: relative;
}
.hero > *{
  position: relative;
  z-index: 1;
}
.hero-copy{
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  max-width: 640px;
}
.hero h1{
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.hero p{
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 60ch;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.hero h1{
  margin:0 0 14px;
  font-size: clamp(2.1rem, 3.2vw, 3.1rem);
  letter-spacing:-0.03em;
}
.hero p{
  margin:0 0 22px;
  color:var(--muted);
  font-size:1.08rem;
  line-height:1.7;
  max-width:52ch;
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap}

.btn{
  display:inline-block;
  padding:12px 16px;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
  border:1px solid var(--border);
}
.hero-card{
  border:1px solid var(--border);
  border-radius:18px;
  background:linear-gradient(180deg, #fff, #f8fafc);
  min-height:180px;
}
.hero-card-inner{padding:18px}
.hero-card-title{font-weight:800; margin-bottom:8px}
.hero-card-text{color:var(--muted); line-height:1.6}

.section{padding:64px 0}
.section-alt{background:var(--alt); border-top:1px solid var(--border); border-bottom:1px solid var(--border)}
h2{margin:0 0 10px; font-size:1.6rem; letter-spacing:-0.02em}
.lede{margin:0 0 22px; color:var(--muted)}

.cards{
  margin-top:22px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:16px;
}
.card h3{
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.card p{margin:0; color:var(--muted); line-height:1.65}

.form{
  margin-top:18px;
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px;
  background:#fff;
}
label{display:block; font-weight:700; margin:0 0 10px}
input, textarea{
  width:100%;
  margin-top:8px;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  font-size:1rem;
}
.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.form-note{margin:12px 0 0; color:var(--muted); font-weight:600}

.bio{
  display:grid;
  grid-template-columns: 180px 1fr;
  gap:24px;
  align-items:start;
}
.bio-photo{
  width: 180px;
  height: 180px;
  border-radius: 18px;
  border: 1px solid var(--border);
  object-fit: cover;
  display: block;
  box-shadow: 0 12px 30px rgba(15,23,42,0.08);
}
.muted{color:var(--muted)}

.site-footer{
  padding:26px 0;
  border-top:1px solid var(--border);
}
.footer-inner{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap}
.site-footer a{color:var(--muted); text-decoration:none}
.site-footer a:hover{color:var(--ink)}

@media (max-width: 820px){
  .hero-inner{grid-template-columns:1fr}
  .nav{gap:12px}
  .bio{grid-template-columns:1fr}
  .bio-photo{width:140px;height:140px}
  .grid-2{grid-template-columns:1fr}
}
@media (max-width: 820px){
  .bio-photo{
    margin-bottom: 12px;
  }
}
.icon{
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(15,23,42,0.06);
}

.icon svg{
  width:20px;
  height:20px;
}
.card{
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
}
/* Header polish */
.site-header{ box-shadow: 0 1px 0 rgba(15,23,42,0.03); }

.nav a{
  padding: 8px 10px;
  border-radius: 999px;
  transition: background .12s ease, color .12s ease;
}
.nav a:hover{
  background: rgba(15,23,42,0.05);
  color: var(--ink);
}
.nav-cta{
  background: #fff;
}
.nav-cta:hover{
  background: rgba(11,95,255,0.08);
  border-color: rgba(11,95,255,0.35);
}
/* Typography tuning */
h1{ line-height: 1.05; }
.hero p{ max-width: 56ch; }
.section p{ max-width: 70ch; }
/* Buttons */
.btn{
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15,23,42,0.10);
}
.btn-secondary{
  background: rgba(255,255,255,0.85);
}
/* FIX: ensure capability cards stay white with dark text */
.cards .card{
  background: #ffffff !important;
  color: var(--ink) !important;
}

.cards .card h3{
  color: var(--ink) !important;
}

.cards .card p{
  color: var(--muted) !important;
}
#what .card{
  background: #ffffff !important;
  color: #0f172a !important;
}
#what .card h3{ color:#0f172a !important; }
#what .card p{ color:#475569 !important; }

/* =========================
   FINAL OVERRIDES (CLEAN)
   ========================= */

/* HERO overlay + contrast */
.hero{ position: relative; }
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(15,23,42,0.55);
  z-index:0;
}
.hero > *{ position: relative; z-index:1; }

.hero h1, .hero p{ color:#ffffff; }
.hero p{ opacity: 0.92; }

/* PRIMARY CTA — sitewide oxblood */
.btn-primary{
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.btn-primary:hover{
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* HERO primary — light editorial */
.hero .btn-primary{
  background: rgba(255,255,255,0.88);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.25);
}
.hero .btn-primary:hover{
  background: #ffffff;
  border-color: rgba(255,255,255,0.45);
}

/* HERO secondary */
.hero .btn-secondary{
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.38);
}
.hero .btn-secondary:hover{
  background: rgba(255,255,255,0.12);
}

/* Header-inner (valid selector) */
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* Focus rings */
input:focus, textarea:focus{
  outline: none;
  border-color: rgba(106,42,42,0.45);
  box-shadow: 0 0 0 4px rgba(106,42,42,0.14);
}
/* ===== NAV POLISH ===== */

.nav{
  gap: 10px; /* tighter, more intentional */
}

.nav a{
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(91,100,114,0.95);
  padding: 10px 12px;           /* bigger click target */
  border-radius: 999px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.nav a:hover{
  background: rgba(15,23,42,0.05);
  color: var(--ink);
  transform: translateY(-1px);
}
/* Contact CTA in nav */
.nav .nav-cta{
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  padding: 10px 14px;
}

.nav .nav-cta:hover{
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}
/* Header width + safe padding (prevents Contact from hitting the edge) */
.header-wide{
  max-width: 1440px;
  margin: 0 auto;        /* centers header content */
  padding: 0 24px;       /* keeps nav away from screen edge */
  width: 100%;
  gap: 28px;
}
.nav{
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav .nav-cta{
  white-space: nowrap;
}
.nav a.active{
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(106,42,42,0.45);
}
/* ===== HEADER ALIGNMENT FIX (FINAL) ===== */

/* Make the header content a centered container, not full-bleed */
.site-header{
  padding-left: 0;
  padding-right: 0;
}

/* Constrain and pad the inner header */
.header-wide{
  width: 100%;
  max-width: 1320px;     /* slightly tighter than 1440 so it never feels edgey */
  margin: 0 auto;
  padding: 0 24px;
}

/* Stop space-between from flinging nav to the edge */
.header-inner{
  justify-content: flex-start !important;
  gap: 28px;
}

/* Push nav to the right, but within the padded container (not the screen edge) */
.header-inner .nav{
  margin-left: auto;
}

/* Extra safety so the CTA never clips */
.header-inner .nav .nav-cta{
  margin-right: 0;
  white-space: nowrap;
}
/* ===== NAV STACKING FIX ===== */

/* Desktop/tablet: keep header on one line */
@media (min-width: 821px){
  .header-inner{
    flex-wrap: nowrap;
  }

  .header-inner .nav{
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  /* Allow logo to shrink a bit if needed */
  .brand-logo{
    height: 120px; /* reduce from 140 if it’s crowding nav */
    width: auto;
    flex: 0 0 auto;
  }

  /* Give nav room to breathe */
  .header-inner .nav{
    gap: 12px;
  }
}

/* Mobile: stacking is OK, but make it clean */
@media (max-width: 820px){
  .header-inner{
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-inner .nav{
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
/* ===== FULL-BLEED CONTACT SECTION ===== */

.contact-section{
  padding: 0;
}

.contact-split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}

.contact-left{
  display: flex;
  align-items: center;
  padding: 96px 0;
  background: #ffffff;
}

.contact-left .container{
  max-width: 560px;
}

.contact-right{
  background-image: url("/assets/contact.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.contact-right::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(15,23,42,0.20), rgba(15,23,42,0.08));
}

@media (max-width: 820px){
  .contact-split{
    grid-template-columns: 1fr;
  }
  .contact-right{
    min-height: 260px;
  }
  .contact-left{
    padding: 56px 0;
  }
}
/* ===== EDITORIAL CAPABILITY CARDS ===== */

.card-editorial{
  padding: 32px 28px 30px;
}

.card-editorial .card-rule{
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent); /* oxblood */
  margin-bottom: 16px;
}

.card-editorial h3{
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 0;
}

/* Subtle hover polish */
.card-editorial:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15,23,42,0.08);
}

#what .cards{
  margin-top: 32px;
  gap: 22px;
}


#what .cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}
@media (max-width: 980px){
  #what .cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  #what .cards{ grid-template-columns: 1fr; }
}


@media (max-width: 980px){
  #what .cards{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px){
  #what .cards{
    grid-template-columns: 1fr !important;
  }
}
/* ===== WHO WE ARE — CENTERED + LARGE PHOTO ===== */

.who-grid{
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
}

.who-photo{
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(226,221,215,0.9);
  box-shadow: 0 20px 54px rgba(15,23,42,0.16);
  margin-left: -20px;
}


.who-copy h2{
  margin-top: 0;
}

.who-copy p{
  max-width: 72ch;
  line-height: 1.75;
}

/* Mobile (clean + valid) */
@media (max-width: 820px){
  .who-grid{
    grid-template-columns: 1fr;
  }

  .who-photo{
    width: 180px;
    height: 180px;
    margin-left: 0;
    margin-bottom: 14px;
  }

  /* Header: stack logo above nav on mobile */
  .header-inner{
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .header-inner .nav{
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand-logo{
    height: 120px;
    width: auto;
    display: block;
  }

  .site-header{
    padding-top: 12px;
    padding-bottom: 8px;
  }
}

/* Very small phones */
@media (max-width: 420px){
  .brand-logo{
    height: 104px;
  }
