:root {
  --ink: #14211d;
  --muted: #5e6b65;
  --surface: #fbfaf6;
  --surface-strong: #ffffff;
  --line: #dce2dc;
  --forest: #173b33;
  --forest-2: #23584b;
  --sage: #d9e6d9;
  --copper: #b96e3b;
  --ochre: #e2b15c;
  --blue: #254c65;
  --shadow: 0 24px 60px rgba(20, 33, 29, 0.14);
  --radius: 8px;
  --shell: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--surface-strong);
  color: var(--forest);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid rgba(220, 226, 220, 0.7);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(185, 110, 59, 0.96), rgba(35, 88, 75, 0.96)),
    var(--forest);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 800;
}

.brand-name,
.brand-subtitle {
  display: block;
}

.brand-name {
  font-weight: 800;
  line-height: 1.15;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--forest);
  background: rgba(217, 230, 217, 0.72);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(720px, calc(100vh - 120px));
  overflow: hidden;
  color: #fffaf4;
  background: #173b33;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("right-code-hero.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 30, 26, 0.9) 0%, rgba(14, 30, 26, 0.62) 48%, rgba(14, 30, 26, 0.16) 100%),
    linear-gradient(180deg, rgba(14, 30, 26, 0.28), rgba(14, 30, 26, 0.45));
}

.hero-content {
  padding: clamp(72px, 9vw, 128px) 0;
}

.eyebrow,
.section-kicker,
.snapshot-label,
.contact-label {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c37b;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 28px 0 0;
  color: rgba(255, 250, 244, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button-primary {
  color: #fffaf0;
  background: var(--copper);
  border-color: rgba(255, 255, 255, 0.12);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #a85f30;
}

.button-secondary {
  color: #fffaf0;
  background: rgba(255, 250, 244, 0.08);
  border-color: rgba(255, 250, 244, 0.36);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 250, 244, 0.16);
}

.button-ghost {
  color: var(--forest);
  background: transparent;
  border-color: var(--line);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: var(--sage);
}

.snapshot {
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.snapshot-grid article {
  min-width: 0;
  padding: 24px;
  background: var(--surface-strong);
}

.snapshot-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.snapshot-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  line-height: 1.35;
}

.section {
  padding: clamp(70px, 9vw, 112px) 0;
}

.section-muted {
  background: #eef3ec;
  border-block: 1px solid var(--line);
}

.two-column,
.standards-layout,
.contact-layout,
.profile-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.content-block p,
.contact-layout p,
.profile-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.content-block h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

.content-block p + p {
  margin-top: 18px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

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

.info-card {
  min-height: 260px;
  padding: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-index {
  display: block;
  margin-bottom: 42px;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 900;
}

.info-card h3,
.standard-item h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.info-card p,
.standard-item p {
  margin: 0;
  color: var(--muted);
}

.standards-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.standard-item {
  padding: 24px;
  background: var(--surface-strong);
}

.section-profile {
  color: #fffaf4;
  background:
    linear-gradient(135deg, rgba(23, 59, 51, 0.97), rgba(37, 76, 101, 0.96)),
    var(--forest);
}

.section-profile .section-kicker {
  color: #f0c37b;
}

.section-profile p {
  max-width: 510px;
  color: rgba(255, 250, 244, 0.76);
}

.profile-list {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 250, 244, 0.18);
  border: 1px solid rgba(255, 250, 244, 0.18);
  border-radius: var(--radius);
}

.profile-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 20px;
  background: rgba(255, 250, 244, 0.08);
}

.profile-list dt {
  color: rgba(255, 250, 244, 0.7);
  font-weight: 800;
}

.profile-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.profile-list a {
  color: #fff1c8;
}

.contact-section {
  background: var(--surface);
}

.contact-card {
  padding: 28px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-email {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--forest);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 850;
  line-height: 1.2;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.copy-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--muted);
}

.site-footer {
  color: rgba(255, 250, 244, 0.84);
  background: #13231f;
}

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

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #f4c77c;
}

@media (max-width: 980px) {
  .snapshot-grid,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-column,
  .standards-layout,
  .contact-layout,
  .profile-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    inset: 68px 14px auto;
    display: grid;
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    background: var(--surface-strong);
    border: 0 solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 46px rgba(20, 33, 29, 0.18);
    transition:
      max-height 220ms ease,
      border-width 220ms ease,
      padding 220ms ease;
  }

  .nav-open .site-nav {
    max-height: 320px;
    padding: 8px;
    border-width: 1px;
  }

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

  .hero {
    min-height: 600px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(14, 30, 26, 0.92), rgba(14, 30, 26, 0.62)),
      linear-gradient(90deg, rgba(14, 30, 26, 0.58), rgba(14, 30, 26, 0.1));
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .info-card {
    min-height: auto;
  }

  .card-index {
    margin-bottom: 28px;
  }

  .profile-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

@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;
  }
}
