:root {
  --ink: #111317;
  --ink-2: #1b1f25;
  --paper: #f4f0e8;
  --paper-2: #e7ded1;
  --white: #ffffff;
  --muted: #a9aaac;
  --muted-dark: #61646a;
  --line: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(17, 19, 23, 0.14);
  --copper: #d49a6a;
  --mint: #9be4c8;
  --mint-hover: #71c9aa;
  --radius: 8px;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--ink);
  color: var(--white);
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(17, 19, 23, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(17, 19, 23, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(212, 154, 106, 0.9), rgba(155, 228, 200, 0.82)),
    var(--ink-2);
  color: #101113;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: lowercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: var(--radius);
  transition:
    background 160ms ease,
    color 160ms ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
}

.site-nav .nav-cta {
  margin-left: 4px;
  color: #151311;
  background: var(--paper);
}

.site-nav .nav-cta:hover {
  background: var(--mint);
  color: #101113;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  width: 18px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-toggle span {
  margin: 4px 0;
}

.nav-open .nav-toggle::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span {
  opacity: 0;
}

.nav-open .nav-toggle::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 112px clamp(20px, 5vw, 72px) 64px;
  isolation: isolate;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 19, 23, 0.94) 0%, rgba(17, 19, 23, 0.78) 42%, rgba(17, 19, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(17, 19, 23, 0.52), rgba(17, 19, 23, 0.1));
}

.hero-content {
  width: min(720px, 100%);
  padding-top: 26px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 20px;
  font-size: 5.8rem;
}

h2 {
  max-width: 860px;
  margin-bottom: 0;
  font-size: 4.2rem;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.5rem;
  line-height: 1.08;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.16rem;
  line-height: 1.62;
}

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

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

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

.button.primary {
  background: var(--mint);
  color: #0f1514;
}

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

.button.secondary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(820px, 100%);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.hero-stats div {
  min-height: 102px;
  padding: 18px;
  background: rgba(17, 19, 23, 0.72);
}

.hero-stats dt {
  margin-bottom: 9px;
  color: var(--white);
  font-weight: 850;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.45;
}

.section,
.intro-band,
.contact-section {
  position: relative;
  padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 72px);
}

.section-inner {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.intro-band {
  background: var(--paper);
  color: var(--ink);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.intro-grid h2 {
  max-width: 720px;
  font-size: 3.2rem;
}

.intro-grid p:last-child {
  color: var(--muted-dark);
  font-size: 1.08rem;
  line-height: 1.72;
}

.intro-band .section-kicker,
.section .section-kicker,
.contact-section .section-kicker {
  color: #98704d;
}

.section {
  background: #fbfaf6;
  color: var(--ink);
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.section-heading p:not(.section-kicker) {
  max-width: 560px;
  color: var(--muted-dark);
  font-size: 1.08rem;
  line-height: 1.72;
}

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

.capability-card {
  min-height: 310px;
  padding: 28px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.68);
}

.capability-card p {
  margin: 0;
  color: var(--muted-dark);
  line-height: 1.68;
}

.card-index {
  display: inline-block;
  margin-bottom: 76px;
  color: #a27a55;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.process-section {
  background: var(--ink);
  color: var(--white);
}

.process-section .section-kicker {
  color: var(--mint);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
}

.process-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  min-height: 132px;
  padding: 26px 28px 26px 86px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.67);
  line-height: 1.65;
  overflow: hidden;
}

.process-list li::before {
  counter-increment: process;
  content: counter(process, decimal-leading-zero);
  position: absolute;
  left: 26px;
  top: 26px;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
}

.process-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.18rem;
  font-weight: 850;
}

.stack-section {
  background: var(--paper-2);
}

.stack-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.3fr;
  gap: clamp(28px, 6vw, 92px);
  align-items: start;
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-cloud span {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17, 19, 23, 0.15);
  border-radius: var(--radius);
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.58);
  color: #24211e;
  font-weight: 800;
}

.contact-section {
  background:
    linear-gradient(135deg, rgba(17, 19, 23, 0.98), rgba(25, 24, 21, 0.94)),
    var(--ink);
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: start;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(255, 255, 255, 0.065);
}

.contact-card p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}

.contact-link {
  display: block;
  margin-bottom: 24px;
  color: var(--mint);
  font-size: 1.5rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  background: #090a0c;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.94rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
}

.email-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(340px, calc(100vw - 36px));
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: rgba(17, 19, 23, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

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

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

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

@media (max-width: 1000px) {
  h1 {
    font-size: 4.65rem;
  }

  h2 {
    font-size: 3.15rem;
  }

  .intro-grid h2 {
    font-size: 2.8rem;
  }

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

  .intro-grid,
  .process-layout,
  .stack-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    min-height: auto;
  }
}

@media (max-width: 740px) {
  .site-header {
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .brand {
    font-size: 0.82rem;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .js .nav-toggle {
    display: grid;
  }

  .js .site-header {
    flex-wrap: nowrap;
  }

  .js .site-nav {
    position: fixed;
    inset: 68px 14px auto;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(17, 19, 23, 0.97);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    justify-content: flex-start;
    min-height: 46px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    justify-content: center;
  }

  .hero {
    min-height: 88svh;
    padding: 104px 20px 42px;
    align-items: end;
  }

  .hero-image {
    object-position: 66% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(17, 19, 23, 0.48), rgba(17, 19, 23, 0.94) 58%, rgba(17, 19, 23, 0.98)),
      linear-gradient(90deg, rgba(17, 19, 23, 0.68), rgba(17, 19, 23, 0.18));
  }

  h1 {
    max-width: 12ch;
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  h3 {
    font-size: 1.28rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .intro-grid h2 {
    font-size: 2.25rem;
  }

  .contact-link {
    font-size: 1.2rem;
  }

  .hero-stats {
    display: none;
  }

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

  .intro-grid h2,
  h2 {
    line-height: 1.02;
  }

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

  .capability-card {
    min-height: 250px;
  }

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

  .process-list li {
    padding-left: 72px;
  }

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

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

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