:root {
  --ink: #141719;
  --muted: #66706f;
  --paper: #f5f1e8;
  --white: #fffaf2;
  --line: rgba(20, 23, 25, 0.14);
  --green: #0d5b4d;
  --green-dark: #07372f;
  --blue: #315f86;
  --copper: #b45f3a;
  --gold: #d6b45d;
  --shadow: 0 22px 60px rgba(12, 21, 24, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--ink);
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.94rem;
  font-weight: 720;
}

.site-nav a {
  color: rgba(20, 23, 25, 0.74);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--green);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 8px;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(74px, 9vw, 118px) clamp(20px, 5vw, 72px) clamp(46px, 7vw, 86px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(13, 91, 77, 0.14), rgba(49, 95, 134, 0.08) 42%, rgba(214, 180, 93, 0.14)),
    var(--white);
}

.hero::before {
  position: absolute;
  inset: auto -10% -24% 48%;
  height: 56%;
  content: "";
  background: radial-gradient(circle, rgba(13, 91, 77, 0.2), transparent 66%);
  pointer-events: none;
}

.hero-content,
.hero-visual,
.section-shell {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.work-type {
  margin: 0;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.5rem, 15vw, 11rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 780;
}

h3 {
  font-size: clamp(1.24rem, 2vw, 1.64rem);
}

.hero-copy,
.page-hero p,
.split-section > p,
.content-panel p,
.info-card p,
.project-card p,
.step-list p {
  color: var(--muted);
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

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

.button.secondary {
  color: var(--green);
  background: rgba(255, 250, 242, 0.78);
  border-color: rgba(13, 91, 77, 0.28);
}

.hero-visual {
  display: grid;
  gap: 16px;
}

.visual-window {
  overflow: hidden;
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(20, 23, 25, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-topbar {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  background: var(--green-dark);
}

.visual-topbar span {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}

.file-tree {
  display: grid;
  gap: 12px;
  min-height: 360px;
  padding: clamp(24px, 4vw, 38px);
}

.file-tree strong {
  color: var(--green-dark);
  font-size: 1.15rem;
}

.file-row {
  padding: 12px 14px;
  color: var(--green-dark);
  background: rgba(13, 91, 77, 0.1);
  border: 1px solid rgba(13, 91, 77, 0.1);
  border-radius: 8px;
  font-weight: 760;
}

.file-row.muted {
  color: var(--blue);
  background: rgba(49, 95, 134, 0.1);
}

.visual-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(13, 91, 77, 0.18);
}

.visual-note strong,
.visual-note span {
  display: block;
}

.visual-note span {
  color: rgba(255, 250, 242, 0.78);
  text-align: right;
}

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

.metric-band div {
  padding: 24px clamp(20px, 5vw, 72px);
  background: rgba(255, 250, 242, 0.72);
}

.metric-band strong,
.metric-band span {
  display: block;
}

.metric-band strong {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.metric-band span {
  margin-top: 6px;
  color: var(--muted);
}

.section-shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.split-section,
.section-shell:not(.page-hero):not(.contact-layout):not(.content-grid):not(.project-list):not(.build-grid) {
  padding: clamp(68px, 10vw, 122px) 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(26px, 6vw, 78px);
  align-items: start;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(120px, 0.44fr) minmax(0, 1.56fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(30px, 6vw, 56px);
}

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

.info-card,
.content-panel,
.project-card,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(20, 23, 25, 0.05);
}

.info-card {
  min-height: 238px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 160ms ease, border-color 160ms ease;
}

.info-card:hover,
.info-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(13, 91, 77, 0.32);
}

.card-index {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
}

.info-card p,
.project-card p {
  margin: 18px 0 0;
}

.dark-band {
  padding: clamp(70px, 10vw, 126px) 0;
  color: var(--white);
  background: var(--green-dark);
}

.dark-band .section-kicker {
  color: var(--gold);
}

.build-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(30px, 7vw, 90px);
}

.step-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 250, 242, 0.18);
  border: 1px solid rgba(255, 250, 242, 0.18);
}

.step-list li {
  padding: 24px;
  background: var(--green-dark);
}

.step-list span {
  display: block;
  color: var(--gold);
  font-weight: 850;
}

.step-list p {
  margin: 14px 0 0;
  color: rgba(255, 250, 242, 0.74);
}

.page-main {
  min-height: calc(100vh - 154px);
}

.page-hero {
  padding: clamp(74px, 10vw, 128px) 0 clamp(44px, 7vw, 78px);
}

.page-hero h1 {
  max-width: 10ch;
}

.page-hero p {
  max-width: 760px;
  margin-top: 22px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.content-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: start;
  padding-bottom: clamp(70px, 10vw, 126px);
}

.content-panel {
  padding: clamp(24px, 4vw, 36px);
}

.content-panel p {
  margin: 20px 0 0;
}

.clean-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  padding: 13px 14px;
  color: var(--green-dark);
  background: rgba(13, 91, 77, 0.09);
  border-radius: 8px;
  font-weight: 720;
}

.project-list {
  display: grid;
  gap: 16px;
  padding-bottom: clamp(70px, 10vw, 126px);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 0.65fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 46px);
  align-items: start;
  padding: clamp(24px, 4vw, 36px);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 760;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(20, 23, 25, 0.2);
  border-radius: 8px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 95, 134, 0.18);
}

.contact-form [aria-invalid="true"] {
  border-color: #9d3324;
}

.form-button {
  width: fit-content;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 760;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 250, 242, 0.76);
  background: var(--ink);
}

.site-footer span:first-child {
  color: var(--white);
  font-weight: 850;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    gap: 4px;
  }

  .site-nav {
    position: fixed;
    inset: 72px 14px auto;
    display: none;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .hero,
  .split-section,
  .section-heading,
  .build-grid,
  .content-grid,
  .contact-layout,
  .project-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand span:last-child {
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: auto;
    padding: 58px 18px 42px;
  }

  h1 {
    font-size: clamp(4rem, 22vw, 6.7rem);
  }

  .hero-actions,
  .button,
  .form-button {
    width: 100%;
  }

  .metric-band,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .visual-note {
    display: grid;
  }

  .visual-note span {
    text-align: left;
  }

  .file-tree {
    min-height: 300px;
  }

  .info-card {
    min-height: 205px;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
