:root {
  color-scheme: dark;
  --bg: #06101b;
  --bg-deep: #030912;
  --surface: rgba(10, 23, 37, 0.82);
  --surface-strong: #0b1826;
  --line: rgba(157, 179, 202, 0.16);
  --line-strong: rgba(157, 179, 202, 0.27);
  --text: #e8ecef;
  --muted: #a8b1bb;
  --quiet: #778493;
  --accent: #a7b9cc;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(29, 54, 79, 0.18), transparent 34rem),
    radial-gradient(circle at 86% 32%, rgba(24, 46, 67, 0.12), transparent 31rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(160, 181, 202, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 181, 202, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 0.95rem;
  transform: translateY(-180%);
  border: 1px solid var(--line-strong);
  border-radius: 0.4rem;
  background: #e8ecef;
  color: #06101b;
  font-weight: 650;
}

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

.shell {
  width: min(calc(100% - 3rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(6, 16, 27, 0.97), rgba(6, 16, 27, 0.84));
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.26));
}

.brand-copy {
  display: grid;
  gap: 0.16rem;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.48rem);
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 620;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 4vw, 3.25rem);
}

.site-nav a {
  position: relative;
  padding-block: 0.45rem;
  color: #c9d0d7;
  font-size: 0.77rem;
  font-weight: 560;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--accent);
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(8, 19, 31, 0.86);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  width: 17px;
  height: 1px;
  display: block;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle-lines::before {
  top: -5px;
}

.nav-toggle-lines::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  transform: translateY(-5px) rotate(-45deg);
}

main {
  overflow: hidden;
}

.hero {
  min-height: 570px;
  display: flex;
  align-items: center;
  padding: clamp(5.6rem, 10vw, 9rem) 0 clamp(5.2rem, 9vw, 8rem);
}

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

.hero h1,
.section-heading,
.card h3,
.background-statement {
  font-family: var(--serif);
  font-weight: 400;
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 1.85rem;
  font-size: clamp(3.05rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.047em;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.9;
}

.section {
  position: relative;
  padding: clamp(5.3rem, 8vw, 7.6rem) 0;
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 740px;
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.section-intro {
  max-width: 680px;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3.25rem;
}

.domain-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.15rem);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background:
    linear-gradient(145deg, rgba(18, 36, 54, 0.58), rgba(6, 16, 27, 0.8)),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.domain-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background:
    linear-gradient(145deg, rgba(20, 40, 60, 0.66), rgba(6, 16, 27, 0.86)),
    var(--surface-strong);
}

.domain-icon {
  width: 54px;
  height: 54px;
  margin-bottom: auto;
  color: #8fa4b8;
  opacity: 0.82;
}

.domain-card h3 {
  margin: 2.3rem 0 0.8rem;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  line-height: 1.15;
}

.domain-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.82;
}

.method-intro {
  max-width: 760px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.2rem);
  margin-top: 3.5rem;
}

.method-item {
  position: relative;
  padding-top: 1.55rem;
  border-top: 1px solid var(--line-strong);
}

.method-number {
  color: var(--quiet);
  font-family: var(--serif);
  font-size: 0.86rem;
}

.method-item h3 {
  margin: 1.4rem 0 0.55rem;
  font-size: 1rem;
  font-weight: 620;
  letter-spacing: 0.01em;
}

.method-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.75;
}

.background-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.background-statement {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.background-copy {
  max-width: 650px;
  padding-top: 0.4rem;
}

.background-copy p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.88;
}

.background-copy p:last-child {
  margin-bottom: 0;
  color: #c8d0d7;
}

.site-footer {
  padding: 2.6rem 0 3.2rem;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-note {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

:focus-visible {
  outline: 2px solid #c6d4e0;
  outline-offset: 5px;
}

@media (max-width: 880px) {
  .header-inner {
    min-height: 86px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 0.6rem 1.5rem 1rem;
    transform: translateY(-8px);
    border-bottom: 1px solid var(--line);
    background: #05101b;
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

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

  .domain-card {
    min-height: 275px;
  }

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

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

@media (max-width: 560px) {
  .shell {
    width: min(calc(100% - 2rem), var(--max-width));
  }

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

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.58rem;
    letter-spacing: 0.25em;
  }

  .hero {
    min-height: auto;
    padding: 5.2rem 0 5.8rem;
  }

  .hero h1 {
    margin-bottom: 1.4rem;
    font-size: clamp(2.8rem, 14.2vw, 4.1rem);
  }

  .hero p {
    font-size: 0.98rem;
    line-height: 1.78;
  }

  .section {
    padding: 4.8rem 0;
  }

  .domain-grid {
    margin-top: 2.35rem;
  }

  .domain-card {
    min-height: 255px;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 1.9rem;
    margin-top: 2.8rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.not-found-inner {
  width: min(100%, 720px);
}

.not-found-code {
  margin: 0 0 1rem;
  color: var(--quiet);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.18em;
}

.not-found h1 {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 400;
  line-height: 1;
}

.not-found p {
  max-width: 560px;
  margin: 0 0 2rem;
  color: var(--muted);
}

.not-found a {
  display: inline-block;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--accent);
  color: var(--text);
}
