/* ==========================================================================
   Quantum Leap Incorporated — Variant 3 "Momentum"
   Mobile-first, no frameworks.
   ========================================================================== */

:root {
  --ink: #0b2a1e;          /* deep forest green */
  --ink-2: #103828;
  --ink-3: #154733;
  --green: #1e9a58;
  --green-deep: #157a45;
  --green-soft: #8fdcae;  /* for text on dark */
  --lime: #a3d65c;
  --lime-deep: #4d7c0f;    /* for text on light (AA) */
  --text: #13261d;
  --muted: #46604f;        /* 8.4:1 on white */
  --on-dark: #ffffff;
  --on-dark-muted: #c3dccb;/* 10:1 on --ink */
  --bg: #ffffff;
  --bg-alt: #f2f7f3;
  --line: #dde9e1;
  --line-dark: rgba(255, 255, 255, 0.14);

  --grad: linear-gradient(120deg, #15803d 0%, #4d7c0f 100%);
  --grad-text-dark: linear-gradient(100deg, #a7f0c4 0%, #cdeb8b 100%);
  --grad-text-light: linear-gradient(100deg, #157a45 0%, #4d7c0f 100%);
  --grad-band: linear-gradient(115deg, #0f5f36 0%, #157a45 45%, #4d7c0f 100%);

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 42, 30, .06), 0 12px 32px -12px rgba(11, 42, 30, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 42, 30, .35);
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--green-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  color: inherit;
  font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.2; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible {
  outline-color: #cdeb8b;
}

.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 {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: #fff; color: var(--ink); padding: .75rem 1.25rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; box-shadow: var(--shadow-lg);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Gradient text ---------- */
.grad-text {
  background: var(--grad-text-light);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--green-deep);
}
.on-dark .grad-text, .hero .grad-text, .page-hero .grad-text {
  background-image: var(--grad-text-dark); color: #a7f0c4;
}

/* ---------- Buttons ---------- */
.btn {
  --b-bg: linear-gradient(120deg, var(--green-deep), #11703f);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
  color: #fff; background: var(--b-bg);
  border: 0; border-radius: 999px; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(21, 122, 69, .7);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(21, 122, 69, .8); text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-ghost {
  background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px #fff; }
.btn-outline {
  background: transparent; color: var(--green-deep); box-shadow: inset 0 0 0 1.5px var(--green-deep);
}
.btn-outline:hover { background: rgba(21, 122, 69, .07); box-shadow: inset 0 0 0 1.5px var(--green-deep); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.btn-light:hover { box-shadow: 0 16px 30px -10px rgba(0,0,0,.5); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 42, 30, .88);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
  color: #fff;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); box-shadow: 0 10px 30px -15px rgba(0,0,0,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-head); }
.brand-text b { font-size: 1.08rem; letter-spacing: -.02em; }
.brand-text span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 500; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 48px; min-height: 48px; padding: 0 .9rem;
  background: rgba(255,255,255,.06); color: #fff; border: 1px solid var(--line-dark);
  border-radius: 999px; cursor: pointer; font: 600 .95rem var(--font-head);
}
.nav-toggle-bars { position: relative; width: 20px; height: 14px; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  padding: .75rem var(--gutter) 1.5rem;
  box-shadow: 0 30px 40px -20px rgba(0,0,0,.6);
}
.js .site-nav[data-open="false"] { display: none; }
.site-nav ul { list-style: none; display: grid; gap: .25rem; }
.site-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem; border-radius: 14px;
  color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem;
}
.site-nav a:hover { background: rgba(255,255,255,.07); }
.site-nav a[aria-current="page"] { background: rgba(30, 154, 88, .25); box-shadow: inset 3px 0 0 #cdeb8b; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .js .site-nav[data-open="false"] {
    display: block; position: static; background: none; border: 0; padding: 0; box-shadow: none;
  }
  .site-nav ul { display: flex; align-items: center; gap: .15rem; }
  .site-nav a { font-size: .98rem; padding: .55rem .9rem; border-radius: 999px; position: relative; color: #e0efe5; }
  .site-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
  .site-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); box-shadow: none; }
  .site-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 2px; border-radius: 2px; background: var(--grad);
  }
  .site-nav .nav-cta a { margin-left: .5rem; background: linear-gradient(120deg, var(--green-deep), #11703f); color: #fff; padding-inline: 1.2rem; }
  .site-nav .nav-cta a:hover { background: linear-gradient(120deg, #136b3d, #16804a); }
  .site-nav .nav-cta a[aria-current="page"] { background: linear-gradient(120deg, var(--green-deep), #4d7c0f); }
  .site-nav .nav-cta a[aria-current="page"]::after { display: none; }
}

/* ---------- Dark sections ---------- */
.on-dark {
  background: var(--ink); color: var(--on-dark);
  position: relative; isolation: isolate; overflow: hidden;
}
.on-dark p, .on-dark li { color: var(--on-dark-muted); }
.on-dark a:not(.btn) { color: #d4f1a8; }
.on-dark strong { color: #fff; }

/* glow blobs */
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.glow-green { background: var(--green); }
.glow-lime { background: var(--lime); opacity: .35; }

/* subtle grid texture on dark */
.on-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4rem, 9vw, 7rem); }
.hero .glow-green { width: 520px; height: 520px; top: -160px; right: -120px; }
.hero .glow-lime { width: 380px; height: 380px; bottom: -180px; left: -120px; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lime-deep); margin-bottom: 1.25rem;
}
.on-dark .eyebrow { color: #c2ec8a; }
.eyebrow-pill {
  padding: .45rem .9rem .45rem .5rem; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-dark);
  letter-spacing: .06em; text-transform: none; font-size: .9rem; color: #e0efe5;
}
.eyebrow-pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: inline-grid; place-items: center; }
.eyebrow-pill .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .line { display: block; }
.hero-tagline {
  font-family: var(--font-head); font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.3; font-weight: 500;
  color: #fff !important; max-width: 30ch; margin-bottom: 1.5rem; letter-spacing: -.01em;
}
.hero-lede { max-width: 56ch; font-size: 1.1rem; }
.hero .btn-row { margin-top: 2rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.25rem; }
.chips li {
  font-size: .88rem; font-weight: 600; padding: .4rem .85rem; border-radius: 999px;
  border: 1px solid var(--line-dark); background: rgba(255,255,255,.04); color: #e0efe5 !important;
}
.hero-art { position: relative; max-width: 520px; margin-inline: auto; width: 100%; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
}

/* Orbit animation */
.orbit-spin { transform-origin: 250px 250px; animation: spin 38s linear infinite; }
.orbit-spin-rev { transform-origin: 250px 250px; animation: spin 56s linear infinite reverse; }
.orbit-spin-fast { transform-origin: 250px 250px; animation: spin 22s linear infinite; }
.leap-path { stroke-dasharray: 8 10; animation: dash 3s linear infinite; }
.twinkle { animation: twinkle 3.6s ease-in-out infinite; }
.twinkle.d2 { animation-delay: 1.2s; }
.twinkle.d3 { animation-delay: 2.4s; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -36; } }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.page-hero .glow-green { width: 460px; height: 460px; top: -200px; right: -100px; }
.page-hero .glow-lime { width: 300px; height: 300px; bottom: -200px; left: 10%; }
.page-hero-inner { position: relative; max-width: 780px; }
.page-hero h1 { font-size: clamp(2.5rem, 6.5vw, 4.5rem); }
.page-hero .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 60ch; color: var(--on-dark-muted); }
.page-hero-art {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: min(520px, 60vw); opacity: .5; z-index: -1; pointer-events: none;
}
@media (max-width: 700px) { .page-hero-art { opacity: .22; right: -140px; } }

.breadcrumb { font-size: .9rem; margin-bottom: 1.25rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.breadcrumb a { color: #fff !important; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 820px; }
.section-head p { color: var(--muted); font-size: 1.12rem; max-width: 62ch; margin: 0; }
.on-dark .section-head p { color: var(--on-dark-muted); }
.section-head h2 { margin: 0; }
.section-num {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.on-dark .section-num { color: var(--on-dark-muted); }
.section-num .n {
  font-size: 3.4rem; letter-spacing: -.05em; line-height: 1; font-weight: 700;
  background: var(--grad-text-light); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--green-deep);
}
.on-dark .section-num .n { background-image: var(--grad-text-dark); color: #a7f0c4; }
.section-num .bar { width: 40px; height: 2px; background: var(--grad); border-radius: 2px; }

.prose p { font-size: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.55; color: var(--text); font-weight: 500; }
.on-dark .lead { color: #fff; }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .split-wide-left { grid-template-columns: 1.2fr .8fr; }
}

/* Highlight word in text */
.hl { font-weight: 700; color: var(--ink); background: linear-gradient(transparent 62%, rgba(163, 214, 92, .28) 62%); padding: 0 .1em; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}

.icon-badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: var(--grad); color: #fff; margin-bottom: 1.25rem;
  box-shadow: 0 12px 24px -10px rgba(30, 154, 88, .7);
}
.icon-badge svg { width: 28px; height: 28px; }

/* Commitments (glass list) */
.commit-grid { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 640px) { .commit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .commit-grid { grid-template-columns: repeat(6, 1fr); } .commit-grid li { grid-column: span 2; } .commit-grid li:nth-child(4) { grid-column: 2 / span 2; } }
.commit-grid li { display: flex; flex-direction: column; gap: 1.2rem; min-height: 170px; justify-content: space-between; }
.commit-grid .k {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: .04em;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25); color: #fff;
}
.commit-grid .t { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.25; font-weight: 600; color: #fff; letter-spacing: -.015em; }

/* Teaser bento (home) */
.bento { display: grid; gap: 1.25rem; }
@media (min-width: 760px) {
  .bento-3 { grid-template-columns: repeat(2, 1fr); }
  .bento-3 > :first-child { grid-row: span 2; }
}
@media (min-width: 1040px) {
  .bento-3 { grid-template-columns: 1.25fr 1fr 1fr; }
  .bento-3 > :first-child { grid-row: auto; }
}
.teaser { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; min-height: 300px; }
.teaser:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #c8f2d8; text-decoration: none; }
.teaser .more {
  margin-top: auto; padding-top: 1.25rem; display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; color: var(--green-deep);
}
.teaser .more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.teaser:hover .more svg { transform: translateX(4px); }
.teaser-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.teaser-dark p { color: var(--on-dark-muted); }
.teaser-dark .more { color: #c2ec8a; }
.teaser-dark:hover { border-color: var(--green); }
.teaser .tag { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime-deep); margin-bottom: .75rem; }
.teaser-dark .tag { color: #c2ec8a; }
.teaser-deco { position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; opacity: .9; pointer-events: none; }
.teaser > *:not(.teaser-deco) { position: relative; }

/* Services bento */
.svc-bento { display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .svc-bento { grid-template-columns: repeat(2, 1fr); }
  .svc-bento .svc-wide { grid-column: 1 / -1; }
}
.svc-card { overflow: hidden; }
.svc-card .svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.svc-card .svc-count { font-family: var(--font-head); font-weight: 700; font-size: 3.5rem; line-height: 1; letter-spacing: -.05em; color: #e3f0e7; }
.svc-card.teaser-dark .svc-count { color: rgba(255,255,255,.12); }
.svc-list { list-style: none; display: grid; gap: .6rem; margin-top: 1.25rem; }
@media (min-width: 900px) { .svc-wide .svc-list { grid-template-columns: repeat(3, 1fr); } }
.svc-list li {
  display: flex; gap: .75rem; align-items: center;
  padding: .85rem 1rem; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--line);
  font-weight: 600; color: var(--text); line-height: 1.35;
}
.svc-card.teaser-dark .svc-list li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #fff; }
.svc-list li::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--grad);
  box-shadow: 0 0 0 4px rgba(30, 154, 88, .14);
}

/* Check list */
.check-list { list-style: none; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .85rem; align-items: flex-start; font-weight: 600; color: var(--text); line-height: 1.45; }
.on-dark .check-list li { color: #fff; }
.check-list li svg { flex: none; width: 26px; height: 26px; margin-top: -1px; }

/* Priority tiles (about) */
.tile-grid { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 600px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tile-grid-5 { grid-template-columns: repeat(6, 1fr); } .tile-grid-5 li { grid-column: span 2; } .tile-grid-5 li:nth-child(4) { grid-column: 2 / span 2; } }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.35rem 1.4rem;
  display: flex; flex-direction: column; gap: .9rem; box-shadow: var(--shadow);
}
.tile .k { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--lime-deep); letter-spacing: .06em; }
.tile .t { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }

/* Philosophy pillars */
.pillars { list-style: none; display: grid; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 2rem 1.75rem 1.75rem;
  background: var(--ink); color: #fff; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.pillar::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -70px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.18); box-shadow: 0 0 0 30px rgba(255,255,255,.03), 0 0 0 60px rgba(255,255,255,.02);
}
.pillar:nth-child(1) { background: linear-gradient(150deg, #1a5c3c, var(--ink)); }
.pillar:nth-child(2) { background: linear-gradient(150deg, #1d7247, #134530); }
.pillar:nth-child(3) { background: linear-gradient(150deg, #3f6510, #10402e); }
.pillar .k { font-family: var(--font-head); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: #c3dccb; font-weight: 600; position: relative; }
.pillar .t { font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; position: relative; }

/* Contact cards (people) */
.people { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .people-2 { grid-template-columns: repeat(2, 1fr); } }
.person { display: flex; flex-direction: column; gap: 1rem; }
.person-head { display: flex; align-items: center; gap: 1rem; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
}
.person h3 { margin: 0; font-size: 1.3rem; }
.person .role { font-size: .9rem; color: var(--muted); margin: 0; font-weight: 600; }
.contact-lines { list-style: none; display: grid; gap: .6rem; }
.contact-lines li { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.45; }
.contact-lines .ci {
  width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: #ecf6ef; color: var(--green-deep);
}
.on-dark .contact-lines .ci, .glass .contact-lines .ci { background: rgba(255,255,255,.08); color: #d4f1a8; }
.contact-lines .ci svg { width: 18px; height: 18px; }
.contact-lines .lbl { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.on-dark .contact-lines .lbl, .glass .contact-lines .lbl { color: var(--on-dark-muted); }
.contact-lines a, .contact-lines .val { font-weight: 700; color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-lines a:hover { text-decoration: underline; color: var(--green-deep); }
.on-dark .contact-lines a, .on-dark .contact-lines .val { color: #fff; }
.on-dark .contact-lines a:hover { color: #d4f1a8; }

/* Info strip (program location) */
.info-strip { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 700px) { .info-strip { grid-template-columns: 1.6fr 1fr; } }
.info-box { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem 1.5rem; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--line); }
.info-box .ci { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.info-box .ci svg { width: 22px; height: 22px; }
.info-box .lbl { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: .2rem; }
.info-box .val, .info-box a { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--ink); line-height: 1.35; text-decoration: none; }
.info-box a:hover { text-decoration: underline; color: var(--green-deep); }

/* Map */
.map-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--bg-alt); position: relative;
}
.map-frame iframe { width: 100%; height: 380px; border: 0; }
.map-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; background: #fff; border-top: 1px solid var(--line); font-size: .95rem; }
.map-caption strong { font-family: var(--font-head); }

/* Residential spotlight */
.spotlight { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .spotlight { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* Jobs */
.jobs { list-style: none; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .jobs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .jobs { grid-template-columns: repeat(3, 1fr); } }
.job { display: flex; flex-direction: column; gap: 1rem; min-height: 320px; overflow: hidden; }
.job:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #c8f2d8; }
.job .job-top { display: flex; justify-content: space-between; align-items: center; }
.job .job-num { font-family: var(--font-head); font-weight: 700; font-size: 3rem; letter-spacing: -.05em; color: #e3f0e7; line-height: 1; }
.job h3 { font-size: 1.55rem; margin: 0; }
.job .loc { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-weight: 600; margin: 0; }
.job .loc svg { width: 18px; height: 18px; color: var(--lime-deep); flex: none; }
.job .btn { margin-top: auto; align-self: flex-start; }
.ext-note { font-size: .95rem; color: var(--muted); margin-top: 1.75rem; display: flex; gap: .5rem; align-items: center; }
.ext-note svg { width: 18px; height: 18px; flex: none; color: var(--lime-deep); }

/* Statement panel */
.statement {
  position: relative; overflow: hidden; border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; gap: 1.25rem;
}
@media (min-width: 760px) { .statement { grid-template-columns: auto 1fr; align-items: center; gap: 2rem; } }
.statement::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--grad); }
.statement p { margin: 0; font-family: var(--font-head); font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.45; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.statement .icon-badge { margin: 0; }

/* CTA band */
.cta-band { padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad-band); color: #fff; border-radius: calc(var(--radius) + 8px);
  padding: clamp(2rem, 5vw, 3.75rem);
  display: grid; gap: 2rem; align-items: center;
  box-shadow: 0 40px 80px -40px rgba(15, 95, 54, .8);
}
@media (min-width: 900px) { .cta-card { grid-template-columns: 1.3fr 1fr; } }
.cta-card h2 { margin: 0 0 .35em; color: #fff; }
.cta-card p { color: #eef7f0; margin: 0; font-size: 1.1rem; max-width: 52ch; }
.cta-card .cta-actions { display: grid; gap: .75rem; }
@media (min-width: 900px) { .cta-card .cta-actions { justify-items: end; } }
.cta-card .cta-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.cta-card .cta-links a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; gap: .45rem; align-items: center; }
.cta-card .cta-links a:hover { text-decoration: underline; }
.cta-card .cta-links svg { width: 18px; height: 18px; }
.cta-deco { position: absolute; z-index: -1; right: -80px; top: -120px; width: 460px; opacity: .45; pointer-events: none; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 2rem; } }
.contact-panel { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.5rem); position: relative; overflow: hidden; isolation: isolate; }
.contact-panel h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.contact-panel p { color: var(--on-dark-muted); }
.contact-panel .contact-lines { gap: 1.1rem; margin-top: 1.5rem; }
.contact-panel .contact-lines a, .contact-panel .contact-lines .val { color: #fff; }
.contact-panel .contact-lines a:hover { color: #d4f1a8; }
.contact-panel :focus-visible { outline-color: #cdeb8b; }
.contact-panel .glow-green { width: 300px; height: 300px; right: -120px; bottom: -140px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .95rem; color: var(--ink); }
.field .req { color: #b42318; }
.field .opt { font-weight: 500; color: var(--muted); font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: .85rem 1rem; min-height: 50px;
  background: var(--bg-alt); border: 1.5px solid #c9dccf; border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235233e0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9fd8b5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-deep); background-color: #fff; box-shadow: 0 0 0 4px rgba(30, 154, 88, .2);
}
.field [aria-invalid="true"] { border-color: #b42318; background-color: #fff6f5; }
.field .error { color: #b42318; font-size: .9rem; font-weight: 600; min-height: 0; }
.field .error:empty { display: none; }
.form-note {
  display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; color: var(--muted);
  background: #f3f9ea; border: 1px solid #d3eab5; border-radius: 12px; padding: .9rem 1rem; margin: 1.25rem 0;
}
.form-note svg { width: 20px; height: 20px; flex: none; color: var(--lime-deep); margin-top: .15rem; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: #b42318; }
.form-status.is-success { color: #0b6b3a; }

/* ---------- Footer ---------- */
.site-footer { background: #071c14; color: var(--on-dark-muted); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; position: relative; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.4fr 1fr .8fr; gap: 3rem; } }
.footer-brand p { max-width: 40ch; margin-top: 1rem; }
.footer-tagline { font-family: var(--font-head); color: #fff; font-size: 1.15rem; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
.site-footer h2 { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; font-weight: 700; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #d4f1a8; text-decoration: underline; }
.footer-links { list-style: none; display: grid; gap: .55rem; }
.footer-contact { list-style: none; display: grid; gap: .7rem; font-style: normal; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.5; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: .25rem; color: #c2ec8a; }
.footer-contact .lbl { color: var(--on-dark-muted); margin-right: .25rem; }
.footer-legal { border-top: 1px solid var(--line-dark); margin-top: 3rem; padding-top: 1.75rem; display: grid; gap: .75rem; font-size: .92rem; }
.footer-legal p { margin: 0; }
.footer-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.04); color: #fff; font-size: .9rem; font-weight: 600; margin-top: 1.25rem; }
.footer-badge svg { width: 18px; height: 18px; color: #c2ec8a; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }
.js .reveal-d4 { transition-delay: .32s; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.text-muted { color: var(--muted); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .orbit-spin, .orbit-spin-rev, .orbit-spin-fast, .leap-path, .twinkle, .float { animation: none !important; }
  .twinkle { opacity: .7; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .teaser:hover, .job:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .cta-band, .map-frame, .hero-art, .page-hero-art, .glow { display: none !important; }
  .on-dark, .site-footer { background: #fff !important; color: #000 !important; }
  .on-dark p, .on-dark li, .site-footer * { color: #000 !important; }
  .grad-text, .section-num .n { -webkit-text-fill-color: currentColor; background: none; }
}

/* ---------- No-JS fallback: show nav inline ---------- */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .75rem; }
html:not(.js) .site-nav { position: static; padding: 0; box-shadow: none; border: 0; background: none; width: 100%; }
html:not(.js) .site-nav ul { display: flex; flex-wrap: wrap; }
@media (min-width: 960px) { html:not(.js) .site-nav { width: auto; } }
.on-dark .person .role { color: var(--on-dark-muted); }
.on-dark h3 { color: #fff; }
.prose .lead { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
@media (max-width: 639px) { .commit-grid li { min-height: 0; } }

/* ==========================================================================
   Photography layer
   ========================================================================== */
figure { margin: 0; }
.photo-chip, .hv-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem .95rem .5rem .55rem; border-radius: 999px; margin: 0;
  font: 600 .88rem/1.2 var(--font-head); letter-spacing: .02em; color: #fff !important;
  background: rgba(11, 42, 30, .72); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.5);
}
.photo-chip .dot, .hv-chip .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--grad); display: inline-grid; place-items: center; flex: none; }
.photo-chip .dot::after, .hv-chip .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* ---- Home hero visual: arched photo on the orbit ---- */
.hero-visual { position: relative; width: 88%; max-width: 500px; margin-inline: auto; aspect-ratio: 500 / 550; }
.hv-orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hv-orbit-back { z-index: 0; }
.hv-orbit-front { z-index: 2; }
.hv-spin { transform-origin: 250px 275px; animation: spin 60s linear infinite; }
.hv-main {
  position: absolute; z-index: 1; left: 13%; width: 74%; top: 8%; aspect-ratio: 4 / 5;
  border-radius: 50% 50% 28px 28px / 40% 40% 28px 28px; overflow: hidden;
  background: var(--ink-3);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 0 8px rgba(30, 154, 88,.18), 0 40px 80px -30px rgba(30, 154, 88, .85);
}
.hv-main img, .hv-bubble img { width: 100%; height: 100%; object-fit: cover; }
.hv-main::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(30, 154, 88,.10) 0%, rgba(30, 154, 88,0) 40%, rgba(11, 42, 30,.55) 100%);
}
.hv-bubble {
  position: absolute; z-index: 3; width: 27%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  transform: translate(-50%, -50%);
  border: 3px solid transparent;
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--grad) border-box;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.7), 0 0 0 6px rgba(11, 42, 30,.55);
}
.hv-bubble img { border-radius: 50%; }
.hv-b1 { left: 90.4%; top: 39.3%; }
.hv-b2 { left: 9.6%; top: 66.2%; }
.hv-chip { position: absolute; z-index: 4; left: 50%; bottom: 3%; transform: translateX(-50%); white-space: nowrap; }
@media (min-width: 900px) { .hero-visual { width: 100%; } }

/* ---- Framed photo (offset gradient block) ---- */
.photo-frame { position: relative; margin-top: 2rem; isolation: isolate; }
.photo-frame::before {
  content: ""; position: absolute; z-index: -1; inset: 18px -14px -14px 18px; border-radius: var(--radius);
  background: var(--grad); opacity: .9;
}
.photo-frame img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.photo-frame .photo-chip { position: absolute; left: 1rem; bottom: 1rem; }
.photo-frame-dark::before { opacity: .55; }
@media (max-width: 480px) { .photo-frame::before { inset: 12px -8px -8px 12px; } }

/* ---- Cinematic photo band ---- */
.photo-band { position: relative; min-height: clamp(460px, 56vw, 660px); display: flex; align-items: center; padding: clamp(4rem, 9vw, 6rem) 0; }
.photo-band::before { display: none; }
.photo-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 42, 30,.95) 0%, rgba(11, 42, 30,.82) 38%, rgba(11, 42, 30,.35) 72%, rgba(11, 42, 30,.15) 100%),
    linear-gradient(0deg, rgba(11, 42, 30,.6) 0%, rgba(11, 42, 30,0) 40%),
    linear-gradient(120deg, rgba(30, 154, 88,.35), rgba(163, 214, 92,.1));
}
.photo-band-inner { position: relative; }
.photo-band h2 { max-width: 16ch; font-size: clamp(2.2rem, 5.4vw, 4rem); color: #fff; }
.photo-band p:not(.eyebrow) { max-width: 46ch; font-size: 1.12rem; color: #e0efe5; }
.photo-band .btn-row { margin-top: 1.75rem; }
@media (max-width: 760px) {
  .photo-band::after { background: linear-gradient(180deg, rgba(11, 42, 30,.55) 0%, rgba(11, 42, 30,.9) 55%, rgba(11, 42, 30,.96) 100%); }
  .photo-band { align-items: flex-end; }
  .photo-band .eyebrow-pill { font-size: .8rem; }
}

/* ---- Home bento: photo tiles ---- */
@media (min-width: 760px) {
  .bento-3.bento-photo { grid-template-columns: 1.3fr 1fr; }
  .bento-3.bento-photo > :first-child { grid-row: span 2; }
}
.teaser-photo { background: var(--ink); border-color: transparent; color: #fff; justify-content: flex-end; min-height: 360px; }
.teaser-photo.teaser-lg { min-height: 440px; }
@media (min-width: 760px) { .teaser-photo.teaser-lg { min-height: 600px; } }
.teaser-photo > .teaser-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  transition: transform .9s var(--ease);
}
.teaser-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 42, 30,.15) 0%, rgba(11, 42, 30,.3) 30%, rgba(11, 42, 30,.88) 64%, rgba(11, 42, 30,.97) 100%);
}
.teaser-photo > *:not(.teaser-img) { z-index: 2; }
.teaser-photo .icon-badge { margin-bottom: auto; }
.teaser-photo .tag { color: #c2ec8a; margin-top: 1.5rem; }
.teaser-photo h3 { color: #fff; }
.teaser-photo p { color: #e0efe5; max-width: 44ch; }
.teaser-photo .more { color: #fff; }
.teaser-photo:hover { border-color: transparent; }
.teaser-photo:hover > .teaser-img { transform: scale(1.05); }
.teaser > .teaser-orb {
  position: absolute; top: 1.5rem; right: 1.5rem; width: 112px; height: 112px; border-radius: 50%; overflow: hidden;
  border: 3px solid transparent; background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--grad) border-box;
  box-shadow: 0 0 0 10px rgba(30, 154, 88,.14), 0 0 0 22px rgba(30, 154, 88,.06);
}
.teaser-orb img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.teaser-orb-card { min-height: 340px; }
@media (max-width: 400px) { .teaser > .teaser-orb { width: 84px; height: 84px; } }

/* ---- Inner page hero with photo ---- */
.page-hero.has-photo { min-height: clamp(380px, 42vw, 520px); display: flex; align-items: center; }
.page-hero.has-photo > .container { width: 100%; }
.ph-photo { position: absolute; inset: 0; z-index: -3; }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; }
.ph-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 42, 30,.78) 0%, rgba(11, 42, 30,.86) 60%, rgba(11, 42, 30,.95) 100%),
    linear-gradient(120deg, rgba(30, 154, 88,.35), rgba(163, 214, 92,.15));
}
.page-hero.has-photo .page-hero-art { opacity: .3; }
@media (min-width: 900px) {
  .ph-photo { left: 38%; }
  .ph-photo img { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%); }
  .ph-photo::after {
    background:
      linear-gradient(90deg, var(--ink) 0%, rgba(11, 42, 30,.75) 30%, rgba(11, 42, 30,.2) 75%, rgba(11, 42, 30,.1) 100%),
      linear-gradient(0deg, rgba(11, 42, 30,.5) 0%, rgba(11, 42, 30,0) 35%),
      linear-gradient(120deg, rgba(30, 154, 88,.28), rgba(163, 214, 92,.08));
  }
  .page-hero.has-photo .page-hero-art { right: auto; left: 30%; opacity: .45; }
  .page-hero.has-photo .page-hero-inner { max-width: 620px; }
}

/* ---- About collage ---- */
.about-intro { display: grid; gap: 2.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.about-intro .section-head { margin-bottom: 0; }
@media (min-width: 900px) { .about-intro { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.collage { position: relative; padding-bottom: 14%; max-width: 560px; width: 100%; margin-inline: auto; }
.collage-orbit { position: absolute; width: 78%; right: -4%; top: -6%; z-index: 0; pointer-events: none; }
.collage-main { position: relative; z-index: 1; width: 62%; }
.collage-main img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 160px 160px var(--radius) var(--radius); box-shadow: var(--shadow-lg); }
.collage-sub { position: absolute; z-index: 2; right: 0; bottom: 0; width: 58%; }
.collage-sub img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.collage-chip { position: absolute; z-index: 3; left: 4%; bottom: 4%; }
@media (max-width: 480px) { .collage-main img { border-radius: 110px 110px var(--radius) var(--radius); } .collage-chip { bottom: -1.75rem; } .collage { margin-bottom: 1.75rem; } }

/* ---- Services: media cards ---- */
.svc-card.has-media { --pad: clamp(1.5rem, 3vw, 2rem); padding: var(--pad); padding-top: 0; }
.svc-media { margin: 0 calc(-1 * var(--pad)); aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.svc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 42, 30,0) 55%, rgba(11, 42, 30,.35)); }
.svc-card.teaser-dark .svc-media::after { background: linear-gradient(180deg, rgba(11, 42, 30,0) 45%, var(--ink) 100%); }
.svc-card.has-media:hover .svc-media img { transform: scale(1.04); }
.svc-card.has-media .svc-top { margin-top: -30px; position: relative; z-index: 1; align-items: flex-end; }
.svc-card.has-media .icon-badge { border: 4px solid #fff; width: 64px; height: 64px; margin-bottom: 1rem; }
.svc-card.teaser-dark.has-media .icon-badge { border-color: var(--ink); }
@media (min-width: 900px) {
  .svc-wide.has-media { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 2.5rem; padding-top: var(--pad); padding-left: 0; align-content: start; }
  .svc-wide.has-media .svc-media { grid-column: 1; grid-row: 1 / span 3; margin: calc(-1 * var(--pad)) 0 calc(-1 * var(--pad)) 0; aspect-ratio: auto; min-height: 320px; }
  .svc-wide.has-media .svc-media::after { background: linear-gradient(90deg, rgba(11, 42, 30,0) 60%, rgba(11, 42, 30,.18)); }
  .svc-wide.has-media > :not(.svc-media) { grid-column: 2; }
  .svc-wide.has-media .svc-top { margin-top: 0; }
  .svc-wide.has-media .svc-list { grid-template-columns: 1fr; }
}
@media (min-width: 1100px) { .svc-wide.has-media .svc-list { grid-template-columns: repeat(3, 1fr); } }

/* ---- Programs: wide photo ---- */
.wide-photo { position: relative; margin: 0 0 2rem; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow-lg); }
.wide-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 700px) { .wide-photo img { aspect-ratio: 21 / 8; } }
.wide-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 42, 30,.55) 0%, rgba(11, 42, 30,0) 45%); pointer-events: none; }
.wide-photo .photo-chip { position: absolute; z-index: 1; left: 1.25rem; bottom: 1.25rem; }

/* ---- Careers: job media ---- */
.job.has-media { --pad: clamp(1.5rem, 3vw, 2rem); padding-top: 0; }
.job-media { margin: 0 calc(-1 * var(--pad)); aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.job-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.job.has-media:hover .job-media img { transform: scale(1.05); }
.job-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 42, 30,0) 50%, rgba(11, 42, 30,.3)); }
.job.has-media .job-top { margin-top: -46px; position: relative; z-index: 1; align-items: flex-end; }
.job.has-media .job-top .icon-badge { border: 4px solid #fff; width: 64px; height: 64px; }

/* ---- Contact: photo above panel ---- */
.contact-side { display: grid; gap: 1.5rem; }
.contact-photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.contact-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 42, 30,.55) 0%, rgba(11, 42, 30,0) 45%); pointer-events: none; }
.contact-photo .photo-chip { position: absolute; z-index: 1; left: 1rem; bottom: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .hv-spin { animation: none !important; }
  .teaser-photo:hover > .teaser-img, .svc-card.has-media:hover .svc-media img, .job.has-media:hover .job-media img { transform: none; }
}
@media print { .ph-photo, .photo-band-img, .hero-visual { display: none !important; } }
/* photo layer refinements */
.eyebrow-pill { display: inline-flex; align-items: center; gap: .55rem; }
.teaser-photo .more { margin-top: 0; }
.photo-frame img { aspect-ratio: 3 / 2; }
.photo-band::after {
  background:
    linear-gradient(90deg, rgba(11, 42, 30,.94) 0%, rgba(11, 42, 30,.78) 36%, rgba(11, 42, 30,.2) 70%, rgba(11, 42, 30,.02) 100%),
    linear-gradient(0deg, rgba(11, 42, 30,.55) 0%, rgba(11, 42, 30,0) 35%),
    linear-gradient(120deg, rgba(30, 154, 88,.22), rgba(163, 214, 92,0) 70%);
}
@media (max-width: 760px) {
  .photo-band::after { background: linear-gradient(180deg, rgba(11, 42, 30,.35) 0%, rgba(11, 42, 30,.88) 50%, rgba(11, 42, 30,.96) 100%); }
  .photo-band { min-height: 620px; }
}
@media (max-width: 760px) {
  .photo-band { padding-top: 260px; }
  .photo-band-img { object-position: 70% 50% !important; }
  .photo-band::after { background: linear-gradient(180deg, rgba(11, 42, 30,.1) 0%, rgba(11, 42, 30,.2) 22%, rgba(11, 42, 30,.88) 46%, rgba(11, 42, 30,.97) 100%); }
}
.teaser-photo:not(.teaser-lg)::before { background: linear-gradient(180deg, rgba(11, 42, 30,.2) 0%, rgba(11, 42, 30,.66) 30%, rgba(11, 42, 30,.9) 58%, rgba(11, 42, 30,.97) 100%); }
img { height: auto; }
@media (min-width: 900px) {
  .ph-photo { left: 42%; }
  .page-hero.has-photo .page-hero-art { left: -140px; right: auto; opacity: .28; }
  .page-hero.has-photo .page-hero-inner { max-width: 560px; }
}
@media (min-width: 1100px) { .svc-wide.has-media .svc-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 899px) {
  .ph-photo::after { background: linear-gradient(180deg, rgba(11, 42, 30,.72) 0%, rgba(11, 42, 30,.84) 60%, rgba(11, 42, 30,.94) 100%), linear-gradient(120deg, rgba(30, 154, 88,.3), rgba(163, 214, 92,.12)); }
}
@media (min-width: 761px) and (max-width: 899px) {
  .photo-band { align-items: flex-end; padding-top: 300px; min-height: 0; }
  .photo-band-img { object-position: 70% 40% !important; }
  .photo-band::after { background: linear-gradient(180deg, rgba(11, 42, 30,.1) 0%, rgba(11, 42, 30,.25) 30%, rgba(11, 42, 30,.9) 55%, rgba(11, 42, 30,.97) 100%); }
}

/* ==========================================================================
   Photography round 2
   ========================================================================== */
/* Small photo teasers: photo sits in the upper part and fades into deep green, so faces stay clear of the text */
.teaser-photo:not(.teaser-lg) > .teaser-img { height: 68%; bottom: auto; }
.teaser-photo:not(.teaser-lg)::before {
  background: linear-gradient(180deg, rgba(11, 42, 30,.08) 0%, rgba(11, 42, 30,.18) 30%, rgba(11, 42, 30,.86) 56%, var(--ink) 68%, var(--ink) 100%);
}
@media (max-width: 760px) {
  .photo-band { padding-top: 330px; }
  .photo-band-img { object-position: 84% 50% !important; }
}

/* ---- Services: photo-led service tiles ---- */
.svc-group-head { display: grid; gap: 1.25rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); align-items: end; }
.svc-group-head h2 { margin-bottom: 0; }
.svc-group-aside { display: flex; gap: 1rem; align-items: flex-start; max-width: 46ch; }
.svc-group-aside .icon-badge { flex: none; margin: 0; }
.svc-group-aside p { margin: 0; color: var(--muted); }
.on-dark .svc-group-aside p { color: var(--on-dark-muted); }
@media (min-width: 900px) { .svc-group-head { grid-template-columns: 1fr auto; column-gap: 3rem; } }
.svc-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .svc-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-tiles-4 { grid-template-columns: repeat(4, 1fr); } .svc-tiles-3 { grid-template-columns: repeat(3, 1fr); } }
.svc-tile {
  position: relative; isolation: isolate; overflow: hidden; margin: 0;
  aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--ink);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 600px) { .svc-tile { aspect-ratio: 4 / 5; } }
@media (min-width: 1000px) { .svc-tiles-3 .svc-tile { aspect-ratio: 5 / 6; } }
.svc-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.svc-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 42, 30,0) 38%, rgba(11, 42, 30,.62) 62%, rgba(11, 42, 30,.95) 100%);
}
.svc-tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.svc-tile:hover > img { transform: scale(1.05); }
.svc-tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.25rem 1.35rem; display: grid; gap: .6rem; justify-items: start; }
.svc-tile-body .k {
  display: inline-grid; place-items: center; min-width: 2.3rem; height: 2.3rem; padding: 0 .5rem; border-radius: 999px;
  font: 700 .85rem/1 var(--font-head); color: #fff; background: var(--grad);
  box-shadow: 0 0 0 5px rgba(30, 154, 88,.25);
}
.svc-tile-body h3 { margin: 0; color: #fff; font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.25; text-shadow: 0 1px 12px rgba(11, 42, 30,.6); }
.on-dark .svc-tile { box-shadow: 0 30px 60px -24px rgba(0,0,0,.7); }
.on-dark .svc-tile::after { box-shadow: inset 0 0 0 1px rgba(143, 220, 174,.28); }
@media (prefers-reduced-motion: reduce) { .svc-tile:hover > img { transform: none; } }
.careers-intro .photo-frame { margin-top: 0; }

/* ===== Services list update: sub-lines, "coming" badge, 5-tile group ===== */
.svc-sub { display: block; margin-top: .3rem; font-family: "Manrope", system-ui, sans-serif; font-size: .86rem; font-weight: 600; line-height: 1.4; color: rgba(255,255,255,.86); text-shadow: 0 1px 10px rgba(11, 42, 30,.7); }
.svc-badge { display: inline-block; padding: .25rem .7rem; border-radius: 999px; background: linear-gradient(90deg, #157a45, #4d7c0f); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 18px -6px rgba(30, 154, 88,.7); }
@media (min-width: 600px) and (max-width: 999px) {
  .svc-tiles-3 .svc-tile:last-child, .svc-tiles-5 .svc-tile:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (min-width: 1000px) {
  .svc-tiles-5 { grid-template-columns: repeat(6, 1fr); }
  .svc-tiles-5 .svc-tile { grid-column: span 2; aspect-ratio: 5 / 6; }
  .svc-tiles-5 .svc-tile:nth-child(n+4) { grid-column: span 3; aspect-ratio: 5 / 4; }
}
