:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-soft: #eef3f1;
  --ink: #171b1f;
  --text: #232a31;
  --muted: #5f6b74;
  --muted-2: #7a848c;
  --line: #d8dfdc;
  --line-strong: #bfcac6;
  --accent: #236b63;
  --accent-2: #9a5236;
  --accent-3: #2e5f92;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

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

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

p {
  color: var(--muted);
}

.container {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-150%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(23, 27, 31, 0.1);
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(23, 27, 31, 0.06);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 780;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--surface-soft);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  height: 1px;
  background: var(--accent);
  transform-origin: left center;
}

.brand-mark::before {
  width: 15px;
  top: 11px;
  left: 8px;
  transform: rotate(24deg);
}

.brand-mark::after {
  width: 14px;
  top: 20px;
  left: 9px;
  transform: rotate(-28deg);
}

.brand-mark span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.brand-mark span:nth-child(1) {
  top: 7px;
  left: 7px;
}

.brand-mark span:nth-child(2) {
  top: 12px;
  right: 7px;
  background: var(--accent-2);
}

.brand-mark span:nth-child(3) {
  bottom: 7px;
  left: 11px;
  background: var(--accent-3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-nav a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  background: rgba(35, 107, 99, 0.09);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  padding: clamp(64px, 8vw, 112px) 0 clamp(58px, 8vw, 92px);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: end;
  gap: clamp(42px, 8vw, 92px);
}

.eyebrow,
.section-kicker,
.card-label,
.note-label {
  color: var(--accent);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker {
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.eyebrow,
.section-kicker,
.card-label,
.note-label {
  margin-bottom: 12px;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subhead {
  max-width: 720px;
  margin-bottom: 12px;
  color: #364149;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}

.hero-subhead.secondary {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 7px;
  font-weight: 780;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

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

.button-secondary {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--accent);
  background: var(--surface-soft);
}

.founder-note {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 22px;
}

.founder-note p {
  margin-bottom: 14px;
  color: #45515a;
}

.founder-note p:last-child {
  margin-bottom: 0;
}

.section {
  padding: clamp(72px, 9vw, 110px) 0;
}

.section-muted {
  border-top: 1px solid rgba(247, 248, 245, 0.14);
  border-bottom: 1px solid rgba(247, 248, 245, 0.14);
  background: var(--ink);
}

.section-strong {
  border-top: 1px solid rgba(247, 248, 245, 0.14);
  border-bottom: 1px solid rgba(247, 248, 245, 0.14);
  background: var(--ink);
}

.section-strong h2,
.section-strong p:not(.section-kicker),
.section-muted h2,
.section-muted h3,
.section-muted p:not(.section-kicker) {
  color: #eef3f1;
}

.section-strong .section-kicker,
.section-muted .section-kicker,
.section-muted .project-number {
  color: #83c9bd;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 82px);
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading h2,
.contact-shell h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(2.1rem, 4.2vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p:last-child {
  max-width: 700px;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.text-stack p {
  margin-bottom: 18px;
  color: #3e4951;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
}

.text-stack p:last-child {
  margin-bottom: 0;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.module-card {
  min-height: 250px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.module-card h3,
.project-card h3,
.principle-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.28;
}

.module-card p:last-child,
.project-card p:last-child,
.principle-card p:last-child,
.contact-shell p:last-child {
  margin-bottom: 0;
}

.project-list {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.section-muted .project-list {
  border-color: rgba(247, 248, 245, 0.28);
}

.project-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-strong);
}

.section-muted .project-card {
  border-color: rgba(247, 248, 245, 0.28);
}

.project-number {
  margin: 0;
  color: var(--accent-2);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 1.68rem;
  font-weight: 820;
  line-height: 1;
}

.project-card p {
  max-width: 820px;
  margin-bottom: 8px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.principle-card {
  min-height: 178px;
  padding: 22px;
  background: var(--ink);
}

.section-strong .section-heading h2,
.section-muted .section-heading h2,
.section-muted .project-card h3,
.section-muted .principle-card h3 {
  color: #eef3f1;
}

.section-muted .section-heading p,
.section-muted .project-card p,
.section-muted .principle-card p {
  color: #cfd8d4;
}

.section-muted .principle-grid {
  border-color: rgba(247, 248, 245, 0.22);
  background: rgba(247, 248, 245, 0.22);
}

.contact-section {
  padding-bottom: clamp(78px, 10vw, 128px);
}

.contact-shell {
  max-width: 850px;
}

.contact-shell h2 {
  max-width: 760px;
}

.contact-shell p {
  max-width: 740px;
  font-size: 1.06rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  font-weight: 780;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.copy-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.copy-button.is-copied {
  border-color: var(--accent);
  color: var(--accent);
}

.site-footer {
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  max-width: 680px;
  margin: 0;
  color: var(--muted-2);
  font-size: 0.86rem;
}

.footer-inner strong {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 60px rgba(23, 27, 31, 0.14);
  }

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

  .site-nav a {
    padding: 13px 12px;
  }

  .hero-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .founder-note {
    max-width: 720px;
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 66px;
  }

  .container {
    padding: 0 20px;
  }

  .brand {
    font-size: 0.94rem;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero-subhead {
    font-size: 1.04rem;
  }

  .module-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .module-card,
  .principle-card {
    min-height: 0;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
