:root {
  color-scheme: light;
  --ink: #101512;
  --ink-soft: #354039;
  --paper: #f8f4e8;
  --paper-strong: #fffaf0;
  --field: #0e1512;
  --field-2: #16231d;
  --lime: #d7ff5f;
  --mint: #82f2c7;
  --blue: #3a86ff;
  --coral: #ff6b4a;
  --line: rgba(16, 21, 18, 0.16);
  --line-strong: rgba(16, 21, 18, 0.32);
  --shadow: 0 28px 70px rgba(16, 21, 18, 0.18);
  --radius: 8px;
  --max: 1180px;
  font-family: "Aptos Display", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 21, 18, 0.055) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(0deg, rgba(16, 21, 18, 0.045) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--paper);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: var(--field);
  background: var(--lime);
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 14px auto 0;
  padding: 12px 14px;
  color: var(--paper-strong);
  background: rgba(14, 21, 18, 0.74);
  border: 1px solid rgba(248, 244, 232, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(14, 21, 18, 0.9);
  transform: translateY(-4px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--paper-strong);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--field);
  background: var(--lime);
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: rgba(255, 250, 240, 0.82);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--field);
  background: var(--lime);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--paper-strong);
  background: transparent;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: var(--radius);
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 88svh;
  overflow: hidden;
  color: var(--paper-strong);
  background: var(--field);
  isolation: isolate;
}

.hero-canvas,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-canvas {
  z-index: -2;
  background: var(--field);
}

.hero-shade {
  z-index: -1;
  background:
    radial-gradient(circle at 18% 80%, rgba(215, 255, 95, 0.26), transparent 34%),
    linear-gradient(90deg, rgba(14, 21, 18, 0.28), rgba(14, 21, 18, 0.78));
}

.hero-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 150px 0 84px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--coral);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: 5.8rem;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 670px;
  margin: 28px 0 0;
  color: rgba(255, 250, 240, 0.86);
  font-size: 1.28rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
}

.button-primary {
  color: var(--field);
  background: var(--lime);
  border-color: var(--lime);
}

.button-secondary {
  color: var(--paper-strong);
  background: rgba(255, 250, 240, 0.08);
  border-color: rgba(255, 250, 240, 0.28);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  color: var(--field);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100% - 40px, var(--max));
  margin: -34px auto 0;
  position: relative;
  z-index: 3;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.signal-strip div {
  min-height: 118px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip strong {
  font-size: 1.12rem;
  font-weight: 900;
}

.signal-strip span {
  margin-top: 8px;
  color: var(--ink-soft);
}

.section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 112px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.72fr);
  gap: 56px;
  align-items: start;
  margin-bottom: 42px;
}

.section-heading.compact {
  display: block;
  max-width: 720px;
}

h2,
h3,
p {
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.02;
}

.section-heading p,
.systems-copy p,
.contact-panel h2 {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 330px;
  padding: 26px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(16, 21, 18, 0.08);
}

.service-card:nth-child(2) {
  background: #eff8ef;
}

.service-card:nth-child(3) {
  background: #f6efe9;
}

.service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--field);
  background: var(--lime);
  border-radius: var(--radius);
  font-weight: 900;
}

.service-card h3 {
  margin: 92px 0 14px;
  font-size: 1.46rem;
  line-height: 1.08;
}

.service-card p,
.system-row p,
.process-steps p {
  margin: 0;
  color: var(--ink-soft);
}

.systems {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 54px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 24px 0 104px;
}

.systems-copy {
  position: sticky;
  top: 112px;
  align-self: start;
}

.systems-copy h2 {
  margin-bottom: 22px;
}

.system-list {
  border-top: 1px solid var(--line-strong);
}

.system-row {
  display: grid;
  grid-template-columns: 120px minmax(180px, 0.8fr) minmax(240px, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-strong);
}

.system-row span {
  color: var(--coral);
  font-weight: 900;
}

.system-row h3 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.12;
}

.process {
  border-top: 1px solid var(--line-strong);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.process-steps li {
  min-height: 250px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.process-steps li:last-child {
  border-right: 0;
}

.process-steps span {
  display: block;
  margin-bottom: 82px;
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 900;
}

.contact {
  padding: 18px 0 80px;
  color: var(--paper-strong);
  background: var(--field);
}

.contact-panel {
  width: min(100% - 40px, var(--max));
  min-height: 440px;
  margin: 0 auto;
  padding: 58px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(135deg, rgba(215, 255, 95, 0.2), transparent 34%),
    linear-gradient(90deg, rgba(255, 107, 74, 0.16), rgba(58, 134, 255, 0.16)),
    var(--field-2);
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: var(--radius);
}

.contact-panel h2 {
  max-width: 880px;
  color: var(--paper-strong);
  font-size: 3.1rem;
  line-height: 1.02;
}

.subpage {
  background: var(--paper);
}

.page-main {
  padding-top: 120px;
}

.page-hero,
.legal-content {
  width: min(100% - 40px, 940px);
  margin: 0 auto;
  padding: 80px 0 96px;
}

.page-hero h1,
.legal-content h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.94;
}

.page-hero p:not(.eyebrow),
.legal-content p,
.legal-content li {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.page-hero p:not(.eyebrow) {
  margin: 26px 0 0;
}

.page-section {
  padding-top: 40px;
}

.legal-content {
  max-width: 880px;
}

.legal-content h2 {
  margin: 42px 0 12px;
  font-size: 1.7rem;
  line-height: 1.12;
}

.legal-date {
  margin-top: 20px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px max(20px, calc((100% - var(--max)) / 2));
  color: rgba(255, 250, 240, 0.72);
  background: var(--field);
  border-top: 1px solid rgba(255, 250, 240, 0.14);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .hero h1 {
    font-size: 4.2rem;
  }

  .hero-copy {
    font-size: 1.1rem;
  }

  .signal-strip,
  .service-grid,
  .systems,
  .process-steps,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .signal-strip div,
  .process-steps li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip div:last-child,
  .process-steps li:last-child {
    border-bottom: 0;
  }

  .service-card {
    min-height: 250px;
  }

  .service-card h3 {
    margin-top: 58px;
  }

  .systems-copy {
    position: static;
  }

  .system-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .process-steps span {
    margin-bottom: 46px;
  }
}

@media (max-width: 700px) {
  .site-header {
    width: calc(100% - 24px);
    min-height: 64px;
    margin-top: 10px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    top: 86px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 6px;
    padding: 10px;
    background: rgba(14, 21, 18, 0.96);
    border: 1px solid rgba(255, 250, 240, 0.18);
    border-radius: var(--radius);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    justify-content: center;
    min-height: 52px;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-inner {
    width: calc(100% - 28px);
    padding: 128px 0 56px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .signal-strip,
  .section,
  .systems,
  .contact-panel {
    width: calc(100% - 28px);
  }

  .section {
    padding: 82px 0;
  }

  h2,
  .contact-panel h2 {
    font-size: 2.1rem;
  }

  .page-main {
    padding-top: 96px;
  }

  .page-hero,
  .legal-content {
    width: calc(100% - 28px);
    padding: 62px 0 76px;
  }

  .contact-panel {
    min-height: 420px;
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}