:root {
  --page: #f7f4ed;
  --surface: #fffdf8;
  --surface-soft: #edf1ea;
  --ink: #14242c;
  --ink-soft: #4a5a5c;
  --line: rgba(20, 36, 44, 0.14);
  --green: #3e7256;
  --green-dark: #285541;
  --green-light: #dce9de;
  --amber: #c9894d;
  --navy: #17333b;
  --shadow: 0 18px 54px rgba(37, 55, 49, 0.1);
  --radius-lg: 28px;
  --radius-md: 20px;
  --shell: min(1160px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 84% 5%, rgba(220, 233, 222, 0.92), transparent 23rem),
    var(--page);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.65;
}

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

a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 5px;
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--shell);
  margin: 0 auto;
  padding: 24px 0;
}

.brand,
.site-nav,
.hero-actions,
.hero-panel-topline,
.hero-panel-footer,
.project-meta,
.timeline-topline,
.contact-links,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  place-items: center;
}

.site-nav {
  gap: 24px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a {
  transition:
    color 180ms ease,
    background 180ms ease;
}

.site-nav a:hover {
  color: var(--green-dark);
}

.site-nav .nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.64);
  color: var(--ink);
}

.hero {
  display: grid;
  min-height: 660px;
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  padding: 80px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2 {
  line-height: 1.05;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 770px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 7.2vw, 6.8rem);
}

h1 span {
  color: var(--green);
}

h2 {
  max-width: 690px;
  margin-bottom: 22px;
  font-size: clamp(2.3rem, 4.2vw, 4rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.hero-summary {
  max-width: 680px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

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

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

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

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
}

.button-secondary:hover {
  background: var(--surface);
}

.hero-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: var(--navy);
  box-shadow: var(--shadow);
  color: #fff;
}

.hero-panel-topline {
  gap: 10px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8fcb9a;
  box-shadow: 0 0 0 5px rgba(143, 203, 154, 0.16);
}

.hero-panel-code {
  padding: 25px 22px 22px;
  color: #d7ead8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.83rem;
}

.hero-panel-code p {
  margin-bottom: 14px;
}

.code-muted {
  margin-right: 16px;
  color: rgba(255, 255, 255, 0.34);
}

.hero-panel-footer {
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 22px;
}

.hero-panel-footer span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.7rem;
  font-weight: 750;
}

.proof {
  padding-bottom: 128px;
}

.compact-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.compact-intro h2 {
  max-width: 720px;
  margin-bottom: 32px;
}

.proof-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.proof-card {
  min-height: 184px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.7);
}

.featured-proof {
  background: var(--green);
  color: #fff;
}

.proof-value {
  margin-bottom: 44px;
  font-size: clamp(2.6rem, 4.5vw, 4.4rem);
  font-weight: 850;
  letter-spacing: -0.08em;
  line-height: 0.86;
}

.proof-value-text {
  max-width: 220px;
  font-size: clamp(1.65rem, 2.65vw, 2.55rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.proof-label {
  max-width: 180px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.45;
}

.featured-proof .proof-label {
  color: rgba(255, 255, 255, 0.82);
}

.split-section {
  display: grid;
  gap: clamp(40px, 8vw, 140px);
  grid-template-columns: minmax(230px, 0.78fr) minmax(0, 1.22fr);
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.section-body {
  max-width: 710px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.section-body p {
  margin-bottom: 18px;
}

.section-body .lead {
  color: var(--ink);
  font-size: 1.42rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.38;
}

.work {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.work-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.work-intro h2 {
  margin-bottom: 0;
}

.work-intro > p {
  max-width: 330px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.project-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(37, 55, 49, 0.05);
}

.project-featured {
  display: grid;
  min-height: 430px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
}

.project-visual {
  display: grid;
  overflow: hidden;
  min-height: 360px;
  background: linear-gradient(145deg, #dce9de, #bccfbd);
  place-items: center;
}

.project-visual img {
  width: min(78%, 290px);
  max-height: 385px;
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(20, 36, 44, 0.22);
  object-fit: cover;
  object-position: top;
  transform: translateY(44px);
}

.project-content {
  padding: 32px;
}

.project-featured .project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 70px);
}

.project-meta {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 54px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-status {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-dark);
  letter-spacing: 0.07em;
}

.project-card h3 {
  font-size: 1.8rem;
}

.project-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 10px;
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 850;
}

.text-link:hover {
  color: var(--amber);
}

.project-glyph,
.project-index {
  display: flex;
  min-height: 148px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--navy);
  color: #d7ead8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.25rem;
  font-weight: 800;
}

.project-index {
  background: #e9ddce;
  color: var(--amber);
  font-size: 3.8rem;
  letter-spacing: -0.1em;
}

.project-standard .project-meta,
.project-next .project-meta {
  margin-bottom: 36px;
}

.timeline {
  border-left: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 48px 34px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  top: 6px;
  left: -6px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--page);
  border-radius: 50%;
  background: var(--green);
}

.timeline-topline {
  justify-content: space-between;
  gap: 18px;
}

.timeline-topline span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.timeline-company {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
}

.timeline-content > p:last-child {
  max-width: 710px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.toolkit {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.toolkit-intro {
  margin-bottom: 34px;
}

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

.toolkit-card {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.68);
}

.toolkit-number {
  margin-bottom: 42px;
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.toolkit-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.toolkit-card li {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 760;
}

.contact {
  margin-top: 18px;
  padding: clamp(42px, 8vw, 90px);
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
}

.contact .eyebrow {
  color: #9bc4a4;
}

.contact h2 {
  max-width: 780px;
  margin-bottom: 20px;
}

.contact > p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.7);
}

.contact-links {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.contact-links a {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.contact-links a:hover {
  background: #fff;
  color: var(--navy);
}

.site-footer {
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 36px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 72px 0 92px;
  }

  .hero-panel {
    max-width: 560px;
  }

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

  .split-section {
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .project-featured {
    grid-template-columns: 1fr;
  }

  .project-visual {
    max-height: 300px;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: min(100% - 28px, 560px);
    --radius-lg: 22px;
    --radius-md: 17px;
  }

  .site-header {
    padding-top: 16px;
  }

  .brand-name,
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .site-nav {
    gap: 0;
  }

  .hero {
    gap: 32px;
    padding: 52px 0 74px;
  }

  h1 {
    font-size: clamp(3.45rem, 16vw, 5.1rem);
  }

  h2 {
    font-size: clamp(2.4rem, 11vw, 3.25rem);
  }

  .hero-summary {
    font-size: 1rem;
  }

  .proof {
    padding-bottom: 84px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-card {
    min-height: 142px;
  }

  .proof-value {
    margin-bottom: 24px;
  }

  .split-section,
  .work,
  .toolkit {
    padding: 84px 0;
  }

  .work-intro {
    display: block;
  }

  .work-intro > p {
    margin-top: 18px;
  }

  .project-grid,
  .toolkit-grid {
    grid-template-columns: 1fr;
  }

  .project-content {
    padding: 24px;
  }

  .project-featured .project-content {
    padding: 28px 24px 30px;
  }

  .project-meta {
    margin-bottom: 36px;
  }

  .timeline-topline {
    display: block;
  }

  .contact {
    padding: 34px 24px;
  }

  .site-footer {
    display: block;
    padding-bottom: 26px;
  }

  .site-footer p {
    margin-bottom: 6px;
  }
}
