/* Ethoserve — site styles
   Palette and type follow CLAUDE.md (brand brief). */

:root {
  --green: #225344;        /* Ethos Green, primary */
  --sage: #7CA271;         /* Leaf Sage, graphics only */
  --sage-light: #9CC28F;   /* text/graphics on dark */
  --ochre: #C8892B;        /* accent fills, numbers on dark */
  --ochre-ink: #8F5E17;    /* ochre for text on light (AA) */
  --ink: #2B2F33;          /* Charcoal Slate */
  --muted: #5F666D;        /* Slate Grey */
  --paper: #F6F4EF;        /* Off-white */
  --pale: #E7EDE6;         /* Pale Sage */
  --forest: #1A3A31;       /* Deep Forest */
  --line: #D5DDD3;

  --serif: "Fraunces", "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 3vw, 3.75rem);
  --step-5: clamp(2.8rem, 1.6rem + 5vw, 5.5rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1240px;
  --radius: 6px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--green);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; }
h2 { font-size: var(--step-4); font-weight: 400; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--sans); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.4rem;
  font: 600 1rem/1.2 var(--sans);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--ochre); color: var(--ink); }
.btn-primary:hover { background: #D99A3C; }
.btn-ghost { border-color: currentColor; color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green); color: var(--paper); border-color: var(--green); }
.on-dark .btn-ghost { color: var(--paper); }
.on-dark .btn-ghost:hover { background: var(--paper); color: var(--forest); border-color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(246, 244, 239, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand .logo-reversed { display: none; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: var(--sage); }
.nav .btn { min-height: 42px; padding: 0.55rem 1.15rem; font-size: 0.95rem; }
.menu-toggle { display: none; }

/* Home: header sits over the hero until scrolled */
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; }
.home .site-header.is-scrolled { background: rgba(246, 244, 239, 0.94); backdrop-filter: saturate(1.4) blur(10px); }

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 44px; padding: 0.5rem 0.9rem;
    background: none; border: 1.5px solid currentColor; border-radius: 999px;
    color: var(--green); font: 600 0.95rem var(--sans); cursor: pointer;
  }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 0.5rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(26, 58, 49, .35);
    display: none;
  }
  .menu-open .nav { display: flex; }
  .nav a:not(.btn) { color: var(--ink) !important; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 1rem; }
  .home .site-header.menu-open { background: var(--paper); }
  .home .site-header.menu-open .logo-primary { display: block; }
  .home .site-header.menu-open .logo-reversed { display: none; }
}

/* ---------- Home hero: layered landscape ---------- */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  overflow: hidden;
  background: #DDE8E1;
  color: var(--ink);
  isolation: isolate;
}
.hero-scene { position: absolute; inset: 0; z-index: -1; }
.hero-scene .layer { position: absolute; inset: 0; will-change: transform; }
.hero-scene .layer svg { width: 100%; height: 100%; }
.hero-scene .layer-front { bottom: -2px; }
.hero-copy {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2rem, 8vh, 6rem));
  padding-bottom: 40vh;
  will-change: transform, opacity;
}
.hero h1 { color: var(--forest); max-width: 14ch; margin-bottom: 0.35em; }
.hero .lede { color: var(--ink); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* one orchestrated load: land rises in layers, then the words */
.js .hero .layer, .js .hero-copy > * { opacity: 0; }
.hero.is-ready .layer { animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both; }
.hero.is-ready .layer:nth-child(2) { animation-delay: .05s; }
.hero.is-ready .layer:nth-child(3) { animation-delay: .15s; }
.hero.is-ready .layer:nth-child(4) { animation-delay: .25s; }
.hero.is-ready .layer:nth-child(5) { animation-delay: .35s; }
.hero.is-ready .layer:nth-child(6) { animation-delay: .45s; }
.hero.is-ready .layer:nth-child(7) { animation-delay: .55s; }
.hero.is-ready .hero-copy > * { animation: fadein 1s ease-out both; animation-delay: .7s; }
.hero.is-ready .hero-copy > *:nth-child(2) { animation-delay: .85s; }
.hero.is-ready .hero-copy > *:nth-child(3) { animation-delay: 1s; }
@keyframes rise { from { opacity: 0; translate: 0 70px; } to { opacity: 1; translate: 0 0; } }
@keyframes fadein { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.blades { transform-box: view-box; animation: spin 14s linear infinite; }
.blades.b2 { animation-duration: 17s; }
.blades.b3 { animation-duration: 12s; }
@keyframes spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .js .hero .layer, .js .hero-copy > * { opacity: 1; }
  .hero.is-ready .layer, .hero.is-ready .hero-copy > *, .blades { animation: none; }
}

/* ---------- Intro (continues the hero's front hill) ---------- */
.intro { background: var(--forest); color: #DCE5DA; padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 9vw, 8rem); margin-top: -1px; }
.intro-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.intro-statement { font-family: var(--serif); font-size: var(--step-3); line-height: 1.25; color: var(--paper); font-weight: 300; margin: 0; max-width: 24ch; }
.name-meaning { border-left: 2px solid var(--sage); padding-left: 1.5rem; }
.name-meaning p { color: #C9D6C6; }
.name-meaning .word { font-family: var(--serif); font-size: var(--step-2); color: var(--sage-light); line-height: 1.2; margin-bottom: 0.35rem; }
.name-meaning .word + p { margin-bottom: 1.25rem; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

/* ---------- Framework wheel ---------- */
.framework-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.framework-head p { margin: 0; }
.framework { display: grid; grid-template-columns: minmax(320px, 520px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.wheel { position: relative; aspect-ratio: 1; width: 100%; }
.wheel svg { width: 100%; height: 100%; }
.wheel .seg { fill: none; stroke: var(--pale); stroke-width: 44; transition: stroke .35s; }
.wheel .seg.is-active { stroke: var(--green); }
.wheel .arrow { fill: var(--sage); transition: fill .35s; }
.wheel .hub-ring { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }
.wheel-centre {
  position: absolute; inset: 34%; display: grid; place-content: center; text-align: center;
  font-family: var(--serif); color: var(--green); font-size: clamp(1rem, 0.8rem + 0.8vw, 1.35rem); line-height: 1.2;
}
.wheel-centre small { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }
.wheel-tabs { list-style: none; margin: 0; padding: 0; }
.wheel-tab {
  position: absolute; width: 38%;
  display: flex; flex-direction: column; gap: 0.15rem;
  background: none; border: 0; padding: 0.4rem; cursor: pointer; text-align: left;
  font: inherit; color: var(--ink);
}
.wheel-tab .num { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: var(--ochre-ink); line-height: 1; }
.wheel-tab .label { font-weight: 600; font-size: 0.98rem; line-height: 1.25; }
.wheel-tab[aria-selected="true"] .label { color: var(--green); text-decoration: underline; text-decoration-color: var(--sage); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.wheel-tab:hover .label { color: var(--green); }
.t1 { top: 0; right: 0; text-align: right; align-items: flex-end; }
.t2 { bottom: 0; right: 0; text-align: right; align-items: flex-end; }
.t3 { bottom: 0; left: 0; }
.t4 { top: 0; left: 0; }

.pillar-panel[hidden] { display: none; }
.pillar-panel h3 { font-size: var(--step-3); margin-bottom: 0.3em; }
.pillar-panel .tagline { font-family: var(--serif); font-size: var(--step-1); color: var(--ink); font-weight: 300; line-height: 1.4; margin-bottom: 1rem; }
.pillar-panel .services { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin: 2rem 0; padding: 1.75rem 0 0; border-top: 1px solid var(--line); }
.pillar-panel .services h4 { display: flex; align-items: center; gap: 0.6rem; color: var(--green); margin-bottom: 0.4rem; }
.pillar-panel .services p { font-size: 0.95rem; color: var(--muted); margin: 0; }
.icon { width: 28px; height: 28px; flex-shrink: 0; stroke: var(--green); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 960px) {
  .framework-head, .framework { grid-template-columns: 1fr; }
  .wheel { max-width: 460px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .wheel { aspect-ratio: auto; }
  .wheel svg { aspect-ratio: 1; max-width: 300px; margin-inline: auto; }
  .wheel-centre { inset: 0 0 auto 0; height: min(300px, 100vw - 2rem); padding: 0 30%; }
  .wheel-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1.25rem; }
  .wheel-tab { position: static; width: auto; text-align: left !important; align-items: flex-start !important; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem; min-height: 44px; }
  .wheel-tab[aria-selected="true"] { border-color: var(--green); background: var(--pale); }
  .pillar-panel .services { grid-template-columns: 1fr; }
}

/* ---------- Experience numbers ---------- */
.experience { background: var(--pale); }
.experience-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #C5D2C3; }
.figure { padding: 2rem 1.5rem 0 0; }
.figure + .figure { padding-left: 1.5rem; border-left: 1px solid #C5D2C3; }
.figure .value { font-family: var(--serif); font-weight: 300; font-size: clamp(3.2rem, 2rem + 4.5vw, 6rem); line-height: 1; color: var(--green); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.03em; }
.figure .value sup { font-size: 0.45em; vertical-align: 0.9em; color: var(--ochre-ink); margin-left: 0.05em; }
.figure p { margin-top: 0.85rem; color: var(--ink); font-size: 0.98rem; }
.credentials { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid #C5D2C3; list-style: none; padding-left: 0; }
.credentials li { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; }
.credentials .icon { width: 24px; height: 24px; }
.experience-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .experience-grid.three { grid-template-columns: 1fr; }
  .experience-grid.three .figure { border-left: 0; padding-left: 0; }
  .experience-grid.three .figure + .figure { border-top: 1px solid #C5D2C3; margin-top: 2rem; }
}
@media (max-width: 860px) {
  .experience-grid { grid-template-columns: 1fr 1fr; }
  .figure:nth-child(3) { border-left: 0; padding-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid #C5D2C3; margin-top: 2rem; }
}

/* ---------- Photos (shared grade so the set feels like one) ---------- */
.photo { position: relative; overflow: hidden; border-radius: 3px; background: var(--pale); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.03); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34,83,68,.08), rgba(26,58,49,.22)); mix-blend-mode: multiply; pointer-events: none; }

/* ---------- Sectors ---------- */
.sectors-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.sectors-head p { margin: 0; }
.sector-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 1.25rem; }
.sector .photo { height: clamp(260px, 28vw, 400px); }
.sector h3 { font-size: var(--step-1); margin: 1rem 0 0.35rem; }
.sector p { font-size: 0.95rem; color: var(--muted); margin: 0; }
@media (max-width: 960px) { .sector-row { grid-template-columns: 1fr 1fr; } .sector .photo { height: auto; aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .sector-row { grid-template-columns: 1fr; } }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.portrait-slot {
  aspect-ratio: 4 / 5; border-radius: 3px;
  background: linear-gradient(160deg, var(--pale), #D7E2D4);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.portrait-slot img.mark { width: 34%; opacity: .9; }
.portrait-slot::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(34,83,68,.18); border-radius: 2px; }
.portrait { aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden; background: var(--pale); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.founder .role { font-weight: 500; color: var(--muted); margin-bottom: 1.5rem; }
.founder .role-title { display: block; margin-bottom: 0.4rem; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre-ink); }
.founder blockquote { margin: 0 0 1.5rem; font-family: var(--serif); font-size: var(--step-2); line-height: 1.35; color: var(--green); font-weight: 300; max-width: 30ch; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .portrait-slot, .portrait { max-width: 420px; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color: var(--paper); position: relative; overflow: hidden; }
.cta-band svg.ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 45%; pointer-events: none; }
.cta-band .wrap { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem 4rem; align-items: end; }
.cta-band h2 { color: var(--paper); margin: 0; max-width: 18ch; }
.cta-band p { color: #D6E2D2; }
.cta-band a:not(.btn) { color: var(--paper); }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Inner page header ---------- */
.page-head { background: var(--forest); color: #D6E2D2; position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 7rem) clamp(6rem, 12vw, 9rem); }
.page-head h1 { color: var(--paper); font-size: var(--step-5); max-width: 16ch; }
.page-head .lede { color: #D6E2D2; max-width: 52ch; margin: 0; }
.page-head svg.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(60px, 9vw, 120px); }

/* ---------- Services page ---------- */
.cycle-nav { position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.cycle-nav ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.cycle-nav a { display: flex; align-items: baseline; gap: 0.6rem; padding: 1rem 0.75rem; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 3px solid transparent; min-height: 44px; }
.cycle-nav li:first-child a { padding-left: 0; }
.cycle-nav a .n { font-family: var(--serif); color: var(--ochre-ink); font-size: 1.15rem; }
.cycle-nav a.is-current { border-bottom-color: var(--green); color: var(--green); }
@media (max-width: 720px) {
  .cycle-nav ol { grid-template-columns: repeat(4, auto); overflow-x: auto; }
  .cycle-nav a { white-space: nowrap; font-size: 0.92rem; padding-inline: 0.6rem; }
}
.pillar { padding-block: clamp(4rem, 8vw, 7rem); border-bottom: 1px solid var(--line); }
.pillar:nth-of-type(even) { background: #FBFAF7; }
.pillar-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.pillar:nth-of-type(even) .pillar-top .photo { order: -1; }
.pillar .big-num { font-family: var(--serif); font-weight: 300; font-size: clamp(4rem, 3rem + 4vw, 7rem); line-height: .9; color: var(--ochre-ink); display: block; margin-bottom: 1rem; }
.pillar h2 { margin-bottom: 0.3em; }
.pillar .tagline { font-family: var(--serif); font-size: var(--step-2); color: var(--ink); line-height: 1.3; font-weight: 300; }
.pillar .photo { aspect-ratio: 4 / 3; }
.service-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(3rem, 6vw, 4.5rem); }
.service { border-top: 2px solid var(--green); padding-top: 1.5rem; }
.service h3 { display: flex; align-items: center; gap: 0.75rem; font-size: var(--step-2); }
.service .icon { width: 36px; height: 36px; }
@media (max-width: 860px) {
  .pillar-top, .service-pair { grid-template-columns: 1fr; }
  .pillar:nth-of-type(even) .pillar-top .photo { order: 0; }
}

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about-grid .portrait-slot, .about-grid .portrait { position: sticky; top: calc(var(--header-h) + 2rem); }
.bio p { font-size: 1.1rem; line-height: 1.7; }
.bio strong { font-weight: 600; color: var(--green); }
.bio .role { font-weight: 500; color: var(--muted); font-size: 1rem; margin-bottom: 2rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-grid .portrait-slot, .about-grid .portrait { position: static; max-width: 420px; } }

.career { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem 5rem; }
.career ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--sage); }
.career li { position: relative; padding: 0 0 2.25rem 2rem; }
.career li::before { content: ""; position: absolute; left: -8px; top: 0.45rem; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--green); }
.career li h3 { font-size: var(--step-2); margin-bottom: 0.2rem; }
.career li .meta { color: var(--muted); font-weight: 500; margin-bottom: 0.4rem; }
.career li p { margin: 0; }
@media (max-width: 860px) { .career { grid-template-columns: 1fr; } }

.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.cred { border-top: 2px solid var(--green); padding-top: 1.25rem; }
.cred h3 { font-size: var(--step-1); }
.cred .icon { margin-bottom: 0.9rem; }
.cred p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .cred-grid { grid-template-columns: 1fr; } }

/* Career journey (About) */
.journey { list-style: none; margin: 0; padding: 0; }
.journey > li { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 1rem clamp(2rem, 5vw, 4rem); padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.journey > li:last-child { border-bottom: 1px solid var(--line); }
.journey .when { font-family: var(--serif); font-size: var(--step-2); font-weight: 400; color: var(--ochre-ink); line-height: 1.15; margin: 0; font-variant-numeric: lining-nums; }
.journey .org { font-weight: 600; color: var(--muted); font-size: 0.95rem; margin: 0.4rem 0 0; }
.journey h3 { font-size: var(--step-2); margin-bottom: 0.3rem; }
.journey .scope { color: var(--muted); margin-bottom: 1.5rem; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 2rem; }
.highlights li { font-size: 0.95rem; border-left: 2px solid var(--sage); padding-left: 1rem; }
.highlights strong { display: block; color: var(--green); font-weight: 600; margin-bottom: 0.25rem; }
.nowrap { white-space: nowrap; }
@media (max-width: 1180px) { .highlights { grid-template-columns: 1fr; gap: 1rem; } }
@media (max-width: 1024px) {
  .journey > li { grid-template-columns: 1fr; gap: 0.25rem; }
  .journey > li > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; margin-bottom: 0.5rem; }
  .journey .org { margin: 0; }
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.two-col h2 { font-size: var(--step-3); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 1.1rem 0; border-top: 1px solid #C5D2C3; }
.plain-list strong { display: block; color: var(--green); font-weight: 600; margin-bottom: 0.2rem; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.expertise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 4rem; }
.expertise li { display: flex; gap: 1rem; align-items: flex-start; }
.expertise .icon { width: 32px; height: 32px; margin-top: 0.15rem; }
.expertise h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.expertise p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .expertise { grid-template-columns: 1fr; } }

.edu-section { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem 5rem; }
@media (max-width: 860px) { .edu-section { grid-template-columns: 1fr; } }
.edu { list-style: none; margin: 0; padding: 0; }
.edu li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid #C5D2C3; }
.edu .yr { font-family: var(--serif); color: var(--ochre-ink); font-size: 1.15rem; line-height: 1.4; }
.edu strong { display: block; font-weight: 600; color: var(--ink); }
.edu div { color: var(--muted); }

.placeholder-note { background: #FFF6E6; border: 1px dashed var(--ochre); border-radius: var(--radius); padding: 1.25rem 1.5rem; color: var(--ink); }
.placeholder-note strong { color: var(--ochre-ink); }

.meaning { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.meaning .icon-lg { width: clamp(120px, 18vw, 200px); border-radius: 22%; }
.meaning .eq { font-family: var(--serif); font-size: var(--step-4); color: var(--paper); font-weight: 300; line-height: 1.1; margin-bottom: 1.25rem; }
.meaning .eq span { color: var(--sage-light); }
@media (max-width: 640px) { .meaning { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.form { display: grid; gap: 1.25rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.9rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #B9C4B7; border-radius: var(--radius);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(124,162,113,.45); }
.field [aria-invalid="true"] { border-color: #A3322A; }
.field .error { color: #A3322A; font-size: 0.9rem; margin-top: 0.35rem; }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 500; }
.form-status.ok { background: var(--pale); color: var(--green); border-left: 4px solid var(--green); }
.form-status.err { background: #FBEDEB; color: #7E241E; border-left: 4px solid #A3322A; }
.contact-details { background: var(--pale); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); }
.contact-details dl { margin: 0; display: grid; gap: 1.4rem; }
.contact-details dt { font-weight: 600; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.2rem; }
.contact-details dd { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-grid, .form .row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #BFCDBB; padding-block: 4rem 2rem; font-size: 0.95rem; }
.site-footer a { color: #E4EBE2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer-grid img { height: 30px; width: auto; margin-bottom: 1rem; }
.footer-grid h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--sage-light); margin-bottom: 0.9rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(156,194,143,.25); color: #9DB09A; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* utility */
.on-dark { color: #DCE5DA; }
.on-dark h2, .on-dark h3 { color: var(--paper); }
.bg-forest { background: var(--forest); }
.bg-pale { background: var(--pale); }
.stack > * + * { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* The walkway layer rises with the plant layer so it stays on the entrance */
.hero.is-ready .layer[data-speed="0.32"] { animation-delay: .15s; }

/* Track record: three per row, rows separated by a rule */
@media (min-width: 861px) {
  .experience-grid.three .figure:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .experience-grid.three .figure:nth-child(n+4) { border-top: 1px solid #C5D2C3; margin-top: 2.5rem; }
}

/* What we deliver */
.deliver h2 { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.deliver-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
.deliver-grid li { border-top: 2px solid var(--green); padding-top: 1.75rem; }
.deliver-grid .icon { width: 40px; height: 40px; margin-bottom: 1.25rem; }
.deliver-grid h3 { margin-bottom: 0.75rem; color: var(--forest); }
.deliver-grid p { margin: 0; color: var(--ink); }
@media (max-width: 860px) { .deliver-grid { grid-template-columns: 1fr; } }
