/* ============================================================
   Program Edge LLC - shared stylesheet
   Mobile-first (base = ~375px), enhanced at min-width breakpoints.
   Palette: deep ink-green + emerald (primary) + amber (accent).
   ============================================================ */

:root {
  /* Brand */
  --navy: #0f1e17;          /* base ink-green / dark sections */
  --navy-2: #163024;        /* slightly lifted ink-green */
  --navy-3: #1e3d2e;        /* card on dark */
  --brand: #059669;         /* emerald - primary accent */
  --brand-bright: #34d399;  /* hover / on-dark */
  --brand-deep: #047857;    /* AA text/links on white */
  --amber: #f59e0b;         /* secondary spark, used sparingly */

  /* Back-compat aliases (older rules referenced --teal*) */
  --teal: var(--brand);
  --teal-bright: var(--brand-bright);
  --teal-deep: var(--brand-deep);

  /* Neutrals (warm-cream) */
  --ink: #0e1b2a;           /* body text on light */
  --muted: #5c5a57;         /* secondary text (warm grey) */
  --line: #e7ded0;          /* warm hairlines / borders */
  --paper: #fdfbf7;         /* warm off-white base */
  --mist: #f7f2ea;          /* warm cream section tint */
  --cloud: #efe7da;

  /* On-dark neutrals (warmed for ink-green base) */
  --on-dark: #eef3ee;
  --on-dark-muted: #a9bcae;

  /* Type */
  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --content: 1120px;
  --wide: 1320px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 14px 40px rgba(15, 30, 23, 0.12);
  --shadow-sm: 0 6px 18px rgba(15, 30, 23, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-deep); }
h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.01em; }
ul { margin: 0; }

/* ---------- Accessibility primitives ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark a:focus-visible,
.on-dark button:focus-visible,
.site-header a:focus-visible,
.site-header summary:focus-visible {
  outline-color: var(--teal-bright);
}

.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 {
  background: var(--teal);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 700;
  left: 1rem;
  padding: 0.65rem 0.9rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-160%);
  z-index: 80;
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout helpers ---------- */
.wrap { margin: 0 auto; max-width: var(--content); padding: 0 1.25rem; width: 100%; }
.wrap-wide { max-width: var(--wide); }
.section { padding: 3rem 0; }
.section-tint { background: var(--mist); }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
  color: var(--teal-deep);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-dark .eyebrow { color: var(--teal-bright); }
.lede { color: var(--muted); max-width: 62ch; font-size: 1.05rem; }
.section-dark .lede { color: var(--on-dark-muted); }

/* ---------- Site header / navigation (shared) ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--wide);
  padding: 0.85rem 1.25rem;
}
.brand { color: #fff; display: inline-flex; align-items: center; text-decoration: none; }
.brand svg { height: 34px; width: auto; }
.nav-links { display: none; }
.nav-cta { display: none; }
/* Header CTA sits in a compact nav bar — smaller than page buttons */
.nav-cta.btn { min-height: 40px; padding: 0.5rem 1.15rem; font-size: 0.85rem; }

.mobile-menu { color: #fff; position: relative; }
.mobile-menu summary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  list-style: none;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  text-transform: uppercase;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  min-width: 220px;
  padding: 0.5rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 70;
}
.mobile-menu nav a {
  color: var(--on-dark);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
}
.mobile-menu nav a:hover,
.mobile-menu nav a[aria-current="page"] { background: rgba(5, 150, 105, 0.18); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  gap: 0.5rem;
  justify-content: center;
  letter-spacing: 0.01em;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: var(--teal-bright); }
.btn-ghost { background: transparent; border: 1.5px solid var(--teal); color: var(--teal-deep); }
.btn-ghost:hover { background: rgba(5, 150, 105, 0.10); }
.on-dark .btn-ghost, .section-dark .btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.on-dark .btn-ghost:hover, .section-dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.10); }
.btn-row { display: flex; flex-direction: column; gap: 0.8rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.1rem; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem;
}
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-dark-muted);
  padding: 3rem 0 2rem;
}
.footer-grid { display: grid; gap: 2rem; }
.footer-brand svg { height: 34px; width: auto; color: #fff; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 0.8rem; }
.footer-links { display: grid; gap: 0.55rem; }
.footer-links a { color: var(--on-dark-muted); text-decoration: none; }
.footer-links a:hover { color: var(--teal-bright); }
.footer-contact a { color: var(--teal-bright); }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--on-dark-muted);
  font-size: 0.82rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
}

/* ============================================================
   Breakpoints
   ============================================================ */
@media (min-width: 700px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .section { padding: 4.5rem 0; }
  .brand svg { height: 38px; }
  .mobile-menu { display: none; }
  .nav-links {
    display: flex;
    gap: 1.6rem;
    align-items: center;
  }
  .nav-links a {
    color: var(--on-dark);
    font-family: var(--display);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
  }
  .nav-links a:hover,
  .nav-links a[aria-current="page"] { color: #fff; border-bottom-color: var(--teal); }
  .nav-cta { display: inline-flex; }
}

/* ============================================================
   Home / marketing components (mobile-first)
   ============================================================ */

/* Hero */
.hero { background: var(--navy); color: var(--on-dark); padding: 3rem 0 3.5rem; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -140px;
  width: clamp(380px, 58vw, 820px); height: clamp(380px, 58vw, 820px);
  background: radial-gradient(circle,
    rgba(52,211,153,0.62) 0%,
    rgba(16,185,129,0.32) 38%,
    rgba(5,150,105,0.13) 58%,
    transparent 72%);
  filter: blur(6px); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.08; margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--brand-bright); }
.hero-sub { color: var(--on-dark-muted); font-size: 1.1rem; max-width: 60ch; margin-bottom: 1.6rem; }
.hero-ctas { margin-bottom: 1.8rem; }
.hero-cred { color: var(--on-dark-muted); font-size: 0.82rem; letter-spacing: 0.02em; }
.hero-cred strong { color: var(--on-dark); }

/* Pillars (Consult / Build) */
.pillars { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.pillar .tag { font-family: var(--display); font-weight: 700; color: var(--brand-deep); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; }
.pillar h3 { font-size: 1.35rem; margin: 0.35rem 0 0.5rem; }
.pillar p { color: var(--muted); }
.pillar ul { list-style: none; padding: 0; margin: 0.9rem 0 0; display: grid; gap: 0.45rem; }
.pillar li { color: var(--ink); font-size: 0.95rem; padding-left: 1.4rem; position: relative; }
.pillar li::before { content: "›"; color: var(--brand); font-weight: 700; position: absolute; left: 0; }

/* Work grid */
.work-grid { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.work-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.work-card .work-media { display: block; margin: -1.5rem -1.5rem 1.1rem; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-3)); }
.work-card .work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.4s ease; }
.work-card:hover .work-media img { transform: scale(1.03); }
.work-card .meta { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.6rem; flex-wrap: wrap; }
.work-tag { font-family: var(--display); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-deep); background: rgba(5,150,105,0.10); padding: 0.25rem 0.55rem; border-radius: 999px; }
.work-badge { font-size: 0.7rem; font-weight: 600; color: var(--muted); }
.work-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.work-card p { color: var(--muted); flex: 1; }
.work-card .work-link { margin-top: 0.9rem; font-family: var(--display); font-weight: 600; color: var(--brand-deep); text-decoration: none; align-self: flex-start; }
.work-card .work-link:hover { text-decoration: underline; }
.work-card .work-link::after { content: " →"; }

/* Credibility strip */
.cred-strip { text-align: center; }
.cred-strip .label { font-family: var(--display); font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.cred-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.8rem; margin-top: 1.1rem; }
.cred-logos span { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--navy); opacity: 0.78; }

/* Split (collab / about teaser) */
.split { display: grid; gap: 1.6rem; align-items: center; }
.split-media { background: linear-gradient(135deg, var(--navy), #1c3350); border-radius: var(--radius); min-height: 240px; display: grid; place-items: center; color: var(--on-dark-muted); text-align: center; padding: 1.5rem; }
.split-media .ph { font-family: var(--display); font-size: 0.85rem; }
.split-media.has-photo { padding: 0; overflow: hidden; min-height: 320px; }
.split-media.has-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }

/* CTA band */
.cta-band { background: var(--brand-deep); color: #fff; border-radius: var(--radius); padding: 2.2rem 1.6rem; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 0.6rem; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 52ch; margin: 0 auto 1.4rem; }
.cta-band .btn-primary { background: #fff; color: var(--brand-deep); }
.cta-band .btn-primary:hover { background: var(--mist); }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.6); color: #fff; }

/* ============================================================
   Live embed: browser-frame mockup (home "Latest build")
   ============================================================ */
.showcase { display: grid; gap: 1.4rem; align-items: start; margin-top: 1.8rem; }
.showcase .showcase-copy h3 { font-size: 1.4rem; margin: 0.35rem 0 0.6rem; }
.showcase .showcase-copy p { color: var(--muted); margin-bottom: 1rem; }
.showcase .showcase-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; }

.browser-frame {
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.browser-bar {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.85rem;
  background: var(--navy-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.browser-dots { display: inline-flex; gap: 0.35rem; flex: 0 0 auto; }
.browser-dots span { width: 11px; height: 11px; border-radius: 999px; background: rgba(255,255,255,0.28); }
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1 1 auto; min-width: 0;
  background: rgba(255,255,255,0.10); color: var(--on-dark-muted);
  font-family: var(--sans); font-size: 0.74rem;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Responsive iframe wrapper (fixed height, scrollable, no overflow) */
.embed-frame { position: relative; width: 100%; height: 420px; background: #fff; }
.embed-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* Taller variant for a full-width hero embed (e.g. work-page case study) */
.embed-frame--tall { height: 460px; }

@media (min-width: 760px) {
  .showcase { grid-template-columns: 0.7fr 1.3fr; gap: 2.2rem; align-items: center; }
  .embed-frame { height: auto; aspect-ratio: 16 / 9; }
  .embed-frame--tall { height: 560px; aspect-ratio: auto; }
}

/* ============================================================
   Latest from the blog (RSS-driven post card)
   ============================================================ */
.blog-feature { display: grid; gap: 1.4rem; margin-top: 1.8rem; align-items: start; }
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.post-card .post-media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--navy-3)); overflow: hidden; }
.post-card .post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.post-card .post-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; align-items: center; font-size: 0.78rem; color: var(--muted); }
.post-card .post-cat { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-deep); background: rgba(5,150,105,0.10); padding: 0.2rem 0.55rem; border-radius: 999px; }
.post-card h3 { font-size: 1.3rem; }
.post-card p { color: var(--muted); }
.post-card .work-link { margin-top: 0.4rem; font-family: var(--display); font-weight: 600; color: var(--brand-deep); text-decoration: none; align-self: flex-start; }
.post-card .work-link:hover { text-decoration: underline; }
.post-card .work-link::after { content: " →"; }

.post-list { display: grid; gap: 0.2rem; align-content: start; }
.post-list .post-list-title { font-family: var(--display); font-weight: 600; color: var(--display); }
.post-list a {
  display: grid; gap: 0.15rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.post-list a:hover .plt { color: var(--brand-deep); text-decoration: underline; }
.post-list .plt { font-family: var(--display); font-weight: 600; font-size: 0.98rem; }
.post-list .pld { font-size: 0.76rem; color: var(--muted); }
.post-list .all-link { font-family: var(--display); font-weight: 600; color: var(--brand-deep); text-decoration: none; padding-top: 0.8rem; }
.post-list .all-link::after { content: " →"; }

@media (min-width: 860px) {
  .blog-feature { grid-template-columns: 1.3fr 0.7fr; gap: 2rem; }
}

/* ============================================================
   Services page components
   ============================================================ */

/* Page header (compact navy banner, smaller than the home hero) */
.page-header { background: var(--navy); color: var(--on-dark); padding: 2.6rem 0 2.8rem; position: relative; overflow: hidden; }
.page-header::after {
  content: ""; position: absolute; right: -120px; top: -150px;
  width: clamp(360px, 55vw, 760px); height: clamp(360px, 55vw, 760px);
  background: radial-gradient(circle,
    rgba(52,211,153,0.60) 0%,
    rgba(16,185,129,0.30) 38%,
    rgba(5,150,105,0.12) 58%,
    transparent 72%);
  filter: blur(6px); pointer-events: none;
}
.page-header .wrap { position: relative; z-index: 1; }
.page-header h1 { color: #fff; font-size: clamp(1.9rem, 6vw, 2.9rem); margin-bottom: 0.8rem; max-width: 18ch; }
.page-header .lede { color: var(--on-dark-muted); max-width: 60ch; }
.page-header .lede strong { color: var(--on-dark); }

/* Offering blocks (Building / Consulting) reuse .pillar; this adds an eyebrow + intro spacing */
.offering { margin-top: 1.4rem; }
.offering .pillar h3 { font-size: 1.45rem; }

/* Service item grid inside an offering */
.svc-grid { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.svc-card h4 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.svc-card p { color: var(--muted); font-size: 0.95rem; }

/* Process steps (How we work together) */
.steps { display: grid; gap: 1.1rem; margin-top: 1.6rem; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.4rem 1.4rem; box-shadow: var(--shadow-sm); position: relative; }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 999px;
  background: rgba(5,150,105,0.12); color: var(--brand-deep);
  font-family: var(--display); font-weight: 700; font-size: 1rem; margin-bottom: 0.7rem;
}
.step h4 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Engagement-model cards */
.models { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.model { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.model .tag { font-family: var(--display); font-weight: 700; color: var(--brand-deep); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; }
.model h4 { font-size: 1.2rem; margin: 0.35rem 0 0.5rem; }
.model p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.model .best-for { margin-top: 0.9rem; font-size: 0.85rem; color: var(--ink); }
.model .best-for strong { font-family: var(--display); color: var(--brand-deep); }

.pricing-note { margin-top: 1.4rem; color: var(--muted); font-size: 0.98rem; max-width: 60ch; }

/* Audience chips (Who I work with) */
.audience { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.audience-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.audience-card h4 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.audience-card p { color: var(--muted); font-size: 0.95rem; }

@media (min-width: 700px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .models { grid-template-columns: 1fr 1fr; }
  .audience { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .models { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 760px) {
  .hero { padding: 5rem 0 5.5rem; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1.1fr 0.9fr; }
}
@media (min-width: 1000px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Work / case studies
   ============================================================ */
/* Hero case-study figure */
.case-figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--mist); margin-top: 1.4rem; }
.case-figure img { width: 100%; height: auto; display: block; }
.case-figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.6rem; }

/* Meta chips (role / type / links) */
.case-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.7rem; margin-top: 1rem; }
.case-meta .chip { font-family: var(--display); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; color: var(--brand-deep); background: rgba(5,150,105,0.10); padding: 0.3rem 0.7rem; border-radius: 999px; }
.case-links { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.2rem; }

/* Two-lens grid (product / program) */
.lens-grid { display: grid; gap: 1.2rem; margin-top: 1.6rem; }
.lens-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--brand); }
.lens-card.program { border-top-color: var(--amber); }
.lens-card .lens-label { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--brand-deep); margin-bottom: 0.2rem; }
.lens-card.program .lens-label { color: #b45309; }
.lens-card h3 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.lens-card dl { display: grid; gap: 0.9rem; margin: 0; }
.lens-card dt { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.lens-card dd { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* Discovery / phase trail */
.trail { display: grid; gap: 0; margin-top: 1.6rem; counter-reset: trailstep; }
.trail-step { position: relative; padding: 0 0 1.4rem 2.4rem; border-left: 2px solid var(--line); }
.trail-step:last-child { border-left-color: transparent; padding-bottom: 0; }
.trail-step::before {
  counter-increment: trailstep; content: counter(trailstep);
  position: absolute; left: -0.95rem; top: -0.1rem;
  width: 1.8rem; height: 1.8rem; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.trail-step h4 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.trail-step p { color: var(--muted); font-size: 0.93rem; }

/* Outcome callout */
.outcome { display: grid; gap: 0.8rem; margin-top: 1.6rem; }
.outcome li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--ink); font-size: 0.98rem; }
.outcome li::before { content: "✓"; color: var(--brand-deep); font-weight: 800; flex: 0 0 auto; }

@media (min-width: 820px) {
  .lens-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   About page
   ============================================================ */
.about-intro { display: grid; gap: 1.6rem; align-items: start; margin-top: 1.4rem; }
.about-portrait { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--navy); max-width: 320px; }
.about-portrait img { width: 100%; height: auto; display: block; }
.about-intro .lede { font-size: 1.08rem; }

/* Career timeline (year + role + org) */
.cv { display: grid; gap: 0; margin-top: 1.6rem; }
.cv-item { position: relative; padding: 0 0 1.6rem 2.2rem; border-left: 2px solid var(--line); }
.cv-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.cv-item::before {
  content: ""; position: absolute; left: -0.55rem; top: 0.2rem;
  width: 0.95rem; height: 0.95rem; border-radius: 999px;
  background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.cv-year { font-family: var(--display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--brand-deep); text-transform: uppercase; }
.cv-item h4 { font-size: 1.08rem; margin: 0.15rem 0 0.1rem; }
.cv-item .cv-org { font-family: var(--display); font-weight: 600; color: var(--muted); font-size: 0.92rem; margin-bottom: 0.4rem; }
.cv-item p { color: var(--muted); font-size: 0.94rem; }

/* Credentials grid */
.creds { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.cred-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.cred-card h4 { font-size: 1rem; margin-bottom: 0.6rem; }
.cred-card ul { list-style: none; display: grid; gap: 0.5rem; }
.cred-card li { color: var(--muted); font-size: 0.94rem; padding-left: 1.1rem; position: relative; }
.cred-card li::before { content: "›"; position: absolute; left: 0; color: var(--brand-deep); font-weight: 700; }

@media (min-width: 720px) {
  .about-intro { grid-template-columns: 300px 1fr; gap: 2.4rem; }
  .creds { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid { display: grid; gap: 2.2rem; align-items: start; }
.contact-form-col h2,
.contact-side h2 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.contact-sub { color: var(--muted); margin-bottom: 1.3rem; font-size: 0.98rem; }

.field { display: grid; gap: 0.4rem; margin-bottom: 1.05rem; }
.field label { font-family: var(--display); font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.field .req { color: var(--brand-deep); }
.field .opt { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.field input,
.field select,
.field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem; width: 100%; min-height: 48px;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-color: var(--brand); }
.field-row { display: grid; gap: 1.05rem; }

#contactForm .btn-primary { margin-top: 0.3rem; }
.form-status { margin-top: 0.9rem; font-weight: 600; font-family: var(--display); font-size: 0.95rem; min-height: 1.2em; }
.form-status.ok { color: var(--brand-deep); }
.form-status.err { color: #b42318; }
.form-fineprint { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }
.form-fineprint a { color: var(--brand-deep); font-weight: 600; }

.contact-side {
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.contact-method { padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.contact-method:first-of-type { padding-top: 0.4rem; }
.contact-method:last-of-type { border-bottom: 0; }
.contact-method-label { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--muted); margin-bottom: 0.35rem; }
.contact-method-value { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--brand-deep); text-decoration: none; word-break: break-word; }
.contact-method-value:hover { text-decoration: underline; }
.contact-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.contact-links a { font-family: var(--display); font-weight: 600; color: var(--brand-deep); text-decoration: none; }
.contact-links a:hover { text-decoration: underline; }
.contact-location { margin-top: 1.1rem; color: var(--muted); font-size: 0.9rem; }

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 1.4fr 0.85fr; gap: 3rem; }
}

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