:root {
  --ink: #111510;
  --muted: #667066;
  --soft: #f6f4ef;
  --paper: #fffdf8;
  --line: rgba(17, 21, 16, 0.12);
  --green: #2f7d62;
  --green-dark: #174a3b;
  --clay: #be6e4a;
  --gold: #c59d47;
  --mint: #dcebe3;
  --shadow: 0 24px 70px rgba(20, 28, 18, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: 54px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.brand:hover .brand-logo {
  transform: translateY(-1px);
}

.brand-logo-dark {
  display: none;
}

.site-header.is-scrolled .brand-logo-light,
.site-header.is-open .brand-logo-light {
  display: none;
}

.site-header.is-scrolled .brand-logo-dark,
.site-header.is-open .brand-logo-dark {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding-bottom: 5px;
  opacity: 0.82;
  transition: opacity 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  opacity: 1;
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

/* On the transparent hero header, use a lighter green for visibility */
.site-header:not(.is-scrolled):not(.is-open) .site-nav a.is-active::after,
.site-header:not(.is-scrolled):not(.is-open) .site-nav a:hover::after {
  background: #9fd1ad;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #101410;
}

picture.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

picture.hero-bg img.hero-bg {
  position: static;
  inset: unset;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: heroDrift 12s ease-out forwards;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: heroDrift 12s ease-out forwards;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 15, 12, 0.9) 0%, rgba(11, 15, 12, 0.66) 43%, rgba(11, 15, 12, 0.2) 100%),
    linear-gradient(180deg, rgba(11, 15, 12, 0.4) 0%, rgba(11, 15, 12, 0.08) 58%, rgba(11, 15, 12, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 120px clamp(22px, 7vw, 92px) 150px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #bce4c8;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 730px;
  margin-bottom: 24px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-actions,
.hero-metrics,
.tab-buttons,
.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-metrics {
  position: absolute;
  left: clamp(22px, 7vw, 92px);
  right: clamp(22px, 7vw, 92px);
  bottom: 28px;
  z-index: 2;
  color: #fff;
}

.hero-metrics div {
  width: min(220px, 30vw);
  min-width: 138px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(17, 21, 16, 0.42);
  backdrop-filter: blur(14px);
}

.hero-metrics strong {
  display: block;
  font-size: 31px;
  line-height: 1.1;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.section {
  padding: clamp(72px, 9vw, 126px) 0;
  scroll-margin-top: 86px;
}

.section-inner {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 44px;
}

.section-heading.narrow {
  max-width: 790px;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  font-size: 24px;
  line-height: 1.32;
}

.section-heading p:not(.eyebrow),
.copy-block p,
.culture-copy p,
.contact-layout p {
  color: var(--muted);
  font-size: 17px;
}

.thesis {
  background: var(--soft);
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.thesis-grid article {
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.5);
  transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.thesis-grid article:hover {
  transform: translateY(-8px);
  background: #fff;
  box-shadow: 0 18px 45px rgba(17, 21, 16, 0.08);
}

.thesis-grid span,
.system-steps span {
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
}

.thesis-grid h3 {
  margin: 56px 0 14px;
}

.thesis-grid p,
.system-steps p,
.value-grid p,
.job-accordions p,
.job-accordions li,
.boundary-list span,
.traits span {
  color: var(--muted);
}

.split-band {
  background: var(--paper);
}

.split-layout,
.system-layout,
.culture-layout,
.boundary-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.position-list {
  display: grid;
  gap: 18px;
}

.position-list div {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.position-list b {
  display: block;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-size: 18px;
}

.position-list span {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: #2d342d;
}

.system-layout {
  align-items: stretch;
}

.system-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.system-step,
.value-grid article,
.traits article,
.job-panel,
.candidate-note,
.contact-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 44px rgba(17, 21, 16, 0.06);
}

.system-step {
  display: block;
  width: 100%;
  padding: 22px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.system-step:hover,
.system-step.is-active {
  transform: translateY(-5px);
  border-color: rgba(47, 125, 98, 0.5);
  background: #f8fbf8;
  box-shadow: 0 18px 44px rgba(47, 125, 98, 0.12);
}

.system-step strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 20px;
}

.image-panel {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-panel img,
.culture-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.image-panel:hover img,
.culture-photo:hover img {
  transform: scale(1.04);
}

.image-panel figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  color: #fff;
  border-radius: var(--radius);
  background: rgba(17, 21, 16, 0.62);
  backdrop-filter: blur(12px);
}

.value-band {
  background: #111510;
  color: #fff;
}

.value-band .eyebrow {
  color: #aadbb7;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.value-grid article {
  padding: 30px;
  color: var(--ink);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.value-grid article:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
}

.value-grid ul,
.job-accordions ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.value-grid li,
.job-accordions li {
  position: relative;
  padding: 10px 0 10px 18px;
  border-top: 1px solid var(--line);
}

.value-grid li::before,
.job-accordions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.culture-section {
  background: var(--soft);
}

.culture-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
}

.principles {
  margin-top: 28px;
}

.principles span {
  padding: 10px 13px;
  border: 1px solid rgba(47, 125, 98, 0.28);
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--mint);
  font-weight: 700;
  font-size: 14px;
}

.culture-photo {
  height: 560px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.manifesto {
  padding: clamp(64px, 9vw, 110px) 0;
  color: #fff;
  background: #263127;
}

.manifesto-lines {
  display: grid;
  gap: 20px;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.25;
  font-weight: 800;
}

.manifesto-lines p {
  margin: 0;
  max-width: 1080px;
}

.jobs-section {
  background: var(--paper);
}

.candidate-note {
  padding: 30px;
  margin-bottom: 20px;
  background: var(--soft);
}

.candidate-note h3 {
  margin-bottom: 18px;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.question-grid p {
  min-height: 112px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.traits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 42px;
}

.traits article {
  padding: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.traits article:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 125, 98, 0.35);
}

.traits strong {
  display: block;
  margin-bottom: 10px;
  font-size: 19px;
}

.tab-buttons {
  margin-bottom: 14px;
}

.tab-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.tab-button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.job-panel {
  display: none;
  padding: clamp(24px, 4vw, 44px);
}

.job-panel.active {
  display: block;
}

.job-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.job-head h3 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
}

.job-head > span {
  max-width: 360px;
  color: var(--green-dark);
  font-weight: 800;
}

.job-snapshot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.job-snapshot div {
  min-height: 110px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--soft);
}

.job-snapshot b,
.job-snapshot span {
  display: block;
}

.job-snapshot b {
  margin-bottom: 9px;
  color: var(--green-dark);
  font-size: 15px;
}

.job-snapshot span {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.job-accordions {
  display: grid;
  gap: 12px;
}

.job-accordions details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.job-accordions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 20px;
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.job-accordions summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
}

.job-accordions details[open] summary::after {
  content: "-";
}

.job-accordions details > *:not(summary) {
  margin: 0 20px 18px;
}

.job-accordions p,
.job-accordions li {
  color: var(--muted);
}

.boundary-section {
  background: var(--soft);
}

.boundary-layout {
  align-items: start;
}

.boundary-list {
  display: grid;
  gap: 12px;
}

.boundary-list span {
  display: block;
  padding: 18px 20px;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 34px rgba(17, 21, 16, 0.05);
}

.contact-section {
  background: #fff;
}

.contact-box {
  padding: 30px;
}

.contact-line {
  display: block;
  margin-bottom: 16px;
  color: var(--green-dark);
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.contact-box .button {
  margin-top: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(22px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.72);
  background: #111510;
  font-size: 13px;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: #fff;
  font-size: 15px;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section heading staggered entrance ── */

/* Override: heading containers don't animate themselves, children stagger instead */
.js [data-reveal]:has(h2) {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

.js [data-reveal]:has(h2).is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

/* Eyebrow slides in first */
.js [data-reveal]:has(h2) .eyebrow {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.js [data-reveal]:has(h2).is-visible .eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0ms;
}

/* h2 dramatic entrance: larger slide with expo-out easing */
.js [data-reveal]:has(h2) h2 {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.js [data-reveal]:has(h2).is-visible h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 120ms;
}

/* Subtitle / description follows */
.js [data-reveal]:has(h2) p:not(.eyebrow) {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js [data-reveal]:has(h2).is-visible p:not(.eyebrow) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 260ms;
}

/* Principles tags follow last */
.js [data-reveal]:has(h2) .principles {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js [data-reveal]:has(h2).is-visible .principles {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 340ms;
}

@keyframes heroDrift {
  from {
    transform: scale(1.05) translateX(0);
  }

  to {
    transform: scale(1.01) translateX(-10px);
  }
}

@media (max-width: 980px) {
  .site-header {
    height: 66px;
  }

  .nav-toggle {
    display: grid;
    gap: 6px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 0;
    color: currentColor;
    background: transparent;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    padding: 20px 22px 28px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    background: rgba(255, 253, 248, 0.96);
    backdrop-filter: blur(16px);
  }

  .site-nav.is-open {
    display: grid;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-content {
    padding: 104px 22px 220px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(11, 15, 12, 0.88), rgba(11, 15, 12, 0.46)),
      linear-gradient(180deg, rgba(11, 15, 12, 0.2), rgba(11, 15, 12, 0.82));
  }

  .hero-metrics {
    left: 22px;
    right: 22px;
    bottom: 20px;
  }

  .thesis-grid,
  .value-grid,
  .traits,
  .question-grid,
  .job-snapshot {
    grid-template-columns: 1fr 1fr;
  }

  .split-layout,
  .system-layout,
  .culture-layout,
  .boundary-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .image-panel,
  .culture-photo {
    min-height: auto;
    height: 420px;
  }

  .job-head {
    display: grid;
  }

  .site-footer {
    display: grid;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: auto;
    height: 44px;
  }

  .hero-content {
    padding-bottom: 260px;
  }

  .hero-metrics div {
    width: calc(50% - 6px);
  }

  .hero-metrics div:last-child {
    width: 100%;
  }

  h1 {
    font-size: 34px;
    line-height: 1.16;
  }

  .section-inner {
    width: min(calc(100% - 32px), var(--max));
  }

  .thesis-grid,
  .system-steps,
  .value-grid,
  .traits,
  .question-grid,
  .job-snapshot {
    grid-template-columns: 1fr;
  }

  .thesis-grid article {
    min-height: 210px;
  }

  .thesis-grid h3 {
    margin-top: 36px;
  }

  .image-panel,
  .culture-photo {
    height: 330px;
  }

  .job-panel {
    padding: 22px;
  }

  .job-head h3 {
    font-size: 30px;
  }
}
