:root {
  --bg: #f4f7f6;
  --bg-elevated: #ffffff;
  --bg-soft: #e8efee;
  --text: #10232d;
  --muted: #526a74;
  --line: rgba(16, 35, 45, 0.14);
  --line-strong: rgba(16, 35, 45, 0.24);
  --blue: #006f94;
  --teal: #007f73;
  --accent-soft: rgba(8, 125, 167, 0.1);
  --header: rgba(244, 247, 246, 0.88);
  --shadow: 0 24px 70px rgba(19, 42, 52, 0.09);
  --radius: 1.5rem;
  --max-width: 78rem;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #071019;
  --bg-elevated: #0d1923;
  --bg-soft: #111f2a;
  --text: #edf7fb;
  --muted: #9aafba;
  --line: rgba(221, 238, 245, 0.13);
  --line-strong: rgba(221, 238, 245, 0.24);
  --blue: #4fc4f1;
  --teal: #35d7c2;
  --accent-soft: rgba(79, 196, 241, 0.1);
  --header: rgba(7, 16, 25, 0.86);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #071019;
    --bg-elevated: #0d1923;
    --bg-soft: #111f2a;
    --text: #edf7fb;
    --muted: #9aafba;
    --line: rgba(221, 238, 245, 0.13);
    --line-strong: rgba(221, 238, 245, 0.24);
    --blue: #4fc4f1;
    --teal: #35d7c2;
    --accent-soft: rgba(79, 196, 241, 0.1);
    --header: rgba(7, 16, 25, 0.86);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(
      circle at 15% 10%,
      color-mix(in srgb, var(--blue) 12%, transparent),
      transparent 32rem
    ),
    radial-gradient(
      circle at 88% 72%,
      color-mix(in srgb, var(--teal) 9%, transparent),
      transparent 34rem
    );
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

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

button,
select {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.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;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 0.5rem;
  transform: translateY(-200%);
}

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

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

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: var(--header);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  width: min(calc(100% - 3rem), 88rem);
  min-height: 5rem;
  margin-inline: auto;
}

.wordmark {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  justify-self: end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.3vw, 1.4rem);
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
}

.theme-picker select {
  min-height: 2.45rem;
  padding: 0 2rem 0 0.75rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  border-radius: 999px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.hero {
  position: relative;
  display: flex;
  height: 100svh;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: 9rem 0 5rem;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 4.25rem 4.25rem;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  animation: grid-drift 24s linear infinite;
}

.orb {
  position: absolute;
  width: 28rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.15;
  pointer-events: none;
}

.orb-one {
  top: 12%;
  left: -10rem;
  background: var(--blue);
  animation: orb-float-one 12s ease-in-out infinite alternate;
}

.orb-two {
  right: -12rem;
  bottom: 0;
  background: var(--teal);
  animation: orb-float-two 14s ease-in-out infinite alternate;
}

.hero-inner {
  position: relative;
}

.eyebrow,
.case-number {
  margin: 0 0 1.25rem;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-name,
h2,
h3 {
  margin: 0;
  font-family: "Avenir Next", Avenir, Inter, "Segoe UI", sans-serif;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-name {
  max-width: 9ch;
  font-size: clamp(4.2rem, 13vw, 10.5rem);
  font-weight: 800;
  line-height: 0.82;
  text-transform: uppercase;
}

.hero-role {
  max-width: 52rem;
  margin: 2.2rem 0 0;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  background-clip: text;
  color: transparent;
  font-size: clamp(1.25rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-intro {
  max-width: 52rem;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

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

.button-primary {
  background: linear-gradient(100deg, var(--blue), var(--teal));
  box-shadow: 0 12px 34px color-mix(in srgb, var(--blue) 20%, transparent);
  color: #fff;
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--bg-elevated);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 60rem;
  margin: 4rem 0 0;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  padding: 1.2rem 1.4rem 0 0;
}

.hero-facts dt {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
}

.hero-facts dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.section {
  display: flex;
  height: 100svh;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: clamp(5.5rem, 8vh, 7rem) 0 clamp(2.5rem, 5vh, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.hero,
.section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section > .container {
  width: min(calc(100% - 3rem), var(--max-width));
  max-height: calc(100svh - 9rem);
}

.section:not(.work) > .container {
  overflow-y: auto;
  scrollbar-color: var(--blue) transparent;
  scrollbar-width: thin;
}

.js main > section > .container {
  opacity: 1;
  transform: translateY(1rem) scale(0.992);
  transition:
    transform 680ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js main > section.is-active > .container {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-footer {
  scroll-snap-align: end;
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 4.25rem 4.25rem;
  }
}

@keyframes orb-float-one {
  to {
    transform: translate3d(3rem, 2rem, 0) scale(1.08);
  }
}

@keyframes orb-float-two {
  to {
    transform: translate3d(-3rem, -2rem, 0) scale(0.92);
  }
}

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

.section-heading {
  max-width: 53rem;
}

.section-heading h2 {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
}

.section-heading > p:last-child {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prose p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose p:first-child {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 650;
}

.prose p + p {
  margin-top: 1.25rem;
}
