/* ============================================================
   Gongpe Consultants - "Ledger / Grid"
   Palette: #0D0D0D · #F2F2F2 · #208C30 · #59BF2A · #74D92B
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #0D0D0D;
  color: #F2F2F2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3, h4, h5, h6 { margin: 0; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
details > summary { list-style: none; }
::selection { background: #74D92B; color: #0D0D0D; }

:root {
  --ink: #0D0D0D;
  --paper: #F2F2F2;
  --green-1: #208C30;
  --green-2: #59BF2A;
  --green-3: #74D92B;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 160ms;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

:focus-visible {
  outline: 2px solid #74D92B;
  outline-offset: 2px;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.band-light,
.band-dark,
.band-green {
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.band-light {
  --fg: #0D0D0D;
  --fg-muted: rgba(13, 13, 13, 0.65);
  --line: rgba(13, 13, 13, 0.14);
  --line-strong: rgba(13, 13, 13, 0.28);
  --accent: #208C30;
  background: #F2F2F2;
  color: var(--fg);
}

.band-dark {
  --fg: #F2F2F2;
  --fg-muted: rgba(242, 242, 242, 0.65);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --accent: #74D92B;
  background: #0D0D0D;
  color: var(--fg);
}

.band-green {
  --fg: #0D0D0D;
  --fg-muted: rgba(13, 13, 13, 0.72);
  --line: rgba(13, 13, 13, 0.22);
  --line-strong: rgba(13, 13, 13, 0.42);
  --accent: #0D0D0D;
  background: #59BF2A;
  color: var(--fg);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0D0D0D;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tri-stripe {
  height: 3px;
  background: linear-gradient(90deg, #208C30 0%, #59BF2A 50%, #74D92B 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #F2F2F2;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #F2F2F2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-logo img { width: 26px; height: 26px; object-fit: contain; }

.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav a:not(.btn) {
  position: relative;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.65);
  transition: color var(--dur) var(--ease);
  padding: 0.5rem 0;
}
.nav a:not(.btn):hover { color: #F2F2F2; }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: #74D92B;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  align-items: center;
  justify-content: center;
  color: #F2F2F2;
}

.mobile-nav {
  display: none;
  background: #0D0D0D;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0 1.5rem;
}
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav a:not(.btn) {
  display: block;
  padding: 1rem 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  border-radius: 2px;
  border: 1px solid transparent;
  transition:
    background-color 140ms var(--ease),
    color 140ms var(--ease),
    border-color 140ms var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-lime {
  background: #74D92B;
  color: #0D0D0D;
  border-color: #74D92B;
}
.btn-lime:hover {
  background: transparent;
  color: #74D92B;
}
.btn-ghost-dark {
  background: transparent;
  color: #F2F2F2;
  border-color: rgba(255, 255, 255, 0.24);
}
.btn-ghost-dark:hover {
  background: #F2F2F2;
  color: #0D0D0D;
  border-color: #F2F2F2;
}
.btn-on-green {
  background: #0D0D0D;
  color: #F2F2F2;
  border-color: #0D0D0D;
  margin-top: 2.25rem;
}
.btn-on-green:hover {
  background: #F2F2F2;
  color: #0D0D0D;
  border-color: #0D0D0D;
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - 75px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 5vw, 4rem);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.72);
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: #74D92B;
  border-radius: 999px;
  flex-shrink: 0;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: end;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #F2F2F2;
  text-wrap: balance;
  max-width: 15ch;
}
.hero h1 mark {
  background: transparent;
  color: #74D92B;
  padding: 0;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 0.25rem;
}

.hero-lede {
  font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  line-height: 1.7;
  color: rgba(242, 242, 242, 0.72);
  max-width: none;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.5);
}

/* ---------- Section header ---------- */
.section-rule {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.section-tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.section-rule .line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 5rem;
  align-items: start;
}
.split-aside {
  position: sticky;
  top: 100px;
  align-self: start;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-top: 0.5rem;
}
.section-lede {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 42ch;
}

.approach-head {
  max-width: 52rem;
}
.approach-head .section-title { margin-top: 0; }

/* ---------- Ledger rows ---------- */
.ledger {
  border-top: 1px solid var(--line);
}

.ledger-row {
  border-bottom: 1px solid var(--line);
}
.ledger-row summary {
  display: flex;
  align-items: baseline;
  gap: 1.75rem;
  padding: 1.75rem 0;
  transition: padding-left 220ms var(--ease);
}
.ledger-row summary:hover { padding-left: 0.5rem; }

.ledger-num {
  flex-shrink: 0;
  min-width: 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding-top: 0.25rem;
}

.ledger-title {
  flex: 1;
  font-family: var(--display);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.ledger-toggle {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 400;
  color: var(--accent);
  transition: transform 220ms var(--ease);
  user-select: none;
}
.ledger-row[open] .ledger-toggle { transform: rotate(45deg); }

.ledger-body {
  padding: 0 0 2.5rem 3.75rem;
  max-width: 44rem;
}
.ledger-body dl {
  display: grid;
  gap: 1.75rem;
}
.ledger-body dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.55rem;
}
.ledger-body dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg);
}
.ledger-body dd em {
  font-style: normal;
  color: var(--fg-muted);
}

/* ---------- Simple list (who we work with) ---------- */
.simple-list {
  border-top: 1px solid var(--line);
}
.simple-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--fg);
}
.list-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding-top: 0.3rem;
}

/* ---------- Tiles (engagement) ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.tile {
  border: 1px solid var(--line);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.tile:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}
.tile-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.tile h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 0.5rem;
}
.tile p {
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---------- Team rows ---------- */
.team-row summary {
  align-items: center;
  padding: 1.5rem 0;
}
.team-photo {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
  filter: grayscale(0.35);
  transition: filter 220ms var(--ease);
}
.team-row summary:hover .team-photo { filter: grayscale(0); }

.team-meta {
  flex: 1;
  min-width: 0;
}
.team-name {
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.team-role {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  margin-top: 0.35rem;
}

.team-body { padding-left: 5.5rem; }
.team-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg);
}
.team-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.team-facts dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.4rem;
}
.team-facts dd {
  margin: 0;
  font-weight: 500;
  color: var(--fg);
}

.team-works-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.works-list li {
  position: relative;
  padding-left: 1.1rem;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fg-muted);
}
.works-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

/* ---------- ORBIT ---------- */
.orbit-wrap {
  position: relative;
  margin-top: 4rem;
  padding-top: 2.5rem;
}
.orbit-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.orbit {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem;
}
.orbit-step {
  position: relative;
}
.orbit-dot {
  position: absolute;
  top: -2.5rem;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 999px;
  transform: translateY(-4px);
}
.orbit-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  margin-bottom: 0.85rem;
}
.orbit-step h3 {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--fg);
}
.orbit-step p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--fg-muted);
}

/* ---------- Contact (green block) ---------- */
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 5rem;
  align-items: start;
}
.contact-split h2 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--fg);
}
.contact-lede {
  margin-top: 1.75rem;
  max-width: 40ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

.contact-meta {
  display: grid;
  gap: 2.25rem;
  padding-top: 0.5rem;
}
.contact-meta-item p {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.contact-meta-item a,
.contact-meta-item span {
  font-size: 1.0625rem;
  color: var(--fg);
  border-bottom: 1px solid transparent;
  transition: border-color 140ms var(--ease);
}
.contact-meta-item a:hover {
  border-bottom-color: var(--fg);
}

/* ---------- Footer ---------- */
.footer {
  background: #0D0D0D;
  color: rgba(242, 242, 242, 0.7);
  padding: 4rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 3rem;
  align-items: start;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #F2F2F2;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.footer-desc {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 36ch;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem 2rem;
  justify-self: end;
}
.footer-nav a {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.65);
  transition: color 140ms var(--ease);
}
.footer-nav a:hover { color: #F2F2F2; }

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.55);
  white-space: nowrap;
  margin: 0;
}

.footer-disclaimer {
  max-width: 60ch;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(242, 242, 242, 0.42);
  text-align: right;
  margin: 0;
}

/* ---------- Reveal + utilities ---------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.skip-link {
  position: absolute;
  top: 0; left: 0;
  transform: translateY(-150%);
  background: #74D92B;
  color: #0D0D0D;
  padding: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 100;
  transition: transform 160ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .split-aside {
    position: static;
  }
  .orbit {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .orbit-line { display: none; }
  .orbit-wrap { padding-top: 0; }
  .orbit-step {
    padding: 2rem 0 2rem 1.75rem;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .orbit-step:last-child { border-bottom: none; }
  .orbit-dot {
    top: 2rem;
    left: -4px;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }
  .hero h1 { max-width: none; }
  .contact-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-disclaimer {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .tile-grid { grid-template-columns: 1fr; }
  .tile { padding: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-self: start; }
  .team-facts { grid-template-columns: 1fr 1fr; }
  .hero-foot { gap: 0.5rem 1.25rem; }
}

@media (max-width: 560px) {
  .ledger-row summary { gap: 1rem; }
  .ledger-body { padding-left: 0; }
  .team-body { padding-left: 0; }
  .team-facts { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: clamp(1.875rem, 8.5vw, 2.5rem); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .header, .footer-nav, .skip-link, .tri-stripe, .hero-grid { display: none !important; }
  body { background: #fff; color: #000; }
  .band-light, .band-dark, .band-green {
    background: #fff !important;
    color: #000 !important;
  }
  .ledger-body { display: block !important; }
  details > summary .ledger-toggle { display: none; }
}