:root {
  --bg: oklch(99.2% 0 0);
  --ink: oklch(22% 0.01 260);
  --ink-muted: oklch(42% 0.015 260);
  --line: oklch(88% 0.005 260);
  --line-strong: oklch(78% 0.01 260);
  --accent: oklch(28% 0.02 260);

  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  --wrap: min(92vw, 72rem);
  --header-h: 4.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: var(--space-sm);
  background: var(--ink);
  color: var(--bg);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-sm);
}

/* Header */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  margin-right: auto;
}

.nav {
  display: none;
  gap: var(--space-lg);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: var(--ink-muted);
  transition: color 0.25s var(--ease-out);
}

.nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--line-strong);
  transition:
    background 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  text-decoration: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding-top: var(--header-h);
  padding-bottom: var(--space-xl);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in oklch, var(--bg) 55%, transparent) 0%,
    color-mix(in oklch, var(--bg) 92%, transparent) 45%,
    var(--bg) 88%
  );
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: clamp(4rem, 18vh, 10rem);
}

.eyebrow {
  margin: 0 0 var(--space-md);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 14ch;
}

.hero-lede {
  margin: var(--space-lg) 0 0;
  max-width: 42rem;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 0.35s var(--ease-out),
    color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  text-decoration: none;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  text-decoration: none;
}

.hero-rule {
  position: absolute;
  bottom: var(--space-xl);
  right: max(4vw, calc((100vw - var(--wrap)) / 2));
  width: min(40vw, 18rem);
  height: 1px;
  background: var(--line-strong);
  z-index: 1;
}

/* Stat strip */

.stat-strip {
  border-block: 1px solid var(--line);
  padding-block: var(--space-lg);
}

.stat-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.stat-value {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Sections */

.section {
  padding-block: var(--space-2xl);
}

@media (min-width: 900px) {
  .section {
    padding-block: var(--space-3xl);
  }
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-title.display {
  font-size: clamp(3.5rem, 12vw, 7rem);
  letter-spacing: -0.04em;
}

.section-lede {
  margin: var(--space-md) 0 0;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink-muted);
  max-width: 36rem;
  text-wrap: pretty;
}

.section-lede-narrow {
  max-width: 22rem;
}

.section-head {
  margin-bottom: var(--space-xl);
}

.body {
  margin: var(--space-md) 0 0;
  max-width: 38rem;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* Thesis */

.thesis-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 900px) {
  .thesis-grid {
    grid-template-columns: 1fr 0.85fr;
    gap: var(--space-2xl);
  }
}

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(12%) contrast(1.02);
}

.figure-wide img {
  aspect-ratio: 3 / 2;
}

.figure-tall img {
  aspect-ratio: 4 / 5;
}

.caption {
  margin-top: var(--space-sm);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.full-bleed img {
  width: 100%;
  max-height: min(55vh, 32rem);
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
}

/* Model */

.model-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.model-item {
  display: grid;
  gap: var(--space-md);
  padding-block: var(--space-xl);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .model-item {
    grid-template-columns: 6rem 1fr;
    gap: var(--space-xl);
    align-items: start;
  }
}

.model-index {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--line-strong);
  line-height: 1;
}

.model-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.model-body p {
  margin: var(--space-sm) 0 0;
  max-width: 52rem;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* Channels */

.channels {
  background: oklch(97.5% 0 0);
}

.channels-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .channels-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-2xl);
  }
}

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.channel-tags li {
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
}

/* Proof */

.proof-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .proof-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

.metrics {
  margin: var(--space-lg) 0 0;
  display: grid;
  gap: var(--space-md);
}

.metrics dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.metrics dd {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* Contact */

.contact {
  padding-bottom: var(--space-3xl);
}

.contact-inner {
  border-top: 1px solid var(--line);
  padding-top: var(--space-2xl);
}

.contact-inner {
  border-top: 1px solid var(--line);
  padding-top: var(--space-2xl);
}

.contact-layout {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-3xl);
  }
}

.contact-domain {
  margin: var(--space-sm) 0 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact-domain a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition:
    color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}

.contact-domain a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-form-wrap {
  width: 100%;
  max-width: 32rem;
}

@media (min-width: 900px) {
  .contact-form-wrap {
    justify-self: end;
    max-width: 28rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-form.is-sent {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  transition: border-color 0.25s var(--ease-out);
}

.field input::placeholder,
.field textarea::placeholder {
  color: oklch(55% 0.015 260);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.btn-submit {
  align-self: flex-start;
  margin-top: var(--space-xs);
  cursor: pointer;
  border: none;
}

.contact-success {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--line);
}

.contact-success[hidden] {
  display: none;
}

.contact-success-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.contact-success-text {
  margin: var(--space-sm) 0 0;
  max-width: 26rem;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.footer-domain {
  text-decoration: none;
  color: inherit;
}

.footer-domain:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
}

.footer-tag {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Reveal */

[data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(1.25rem);
    transition:
      opacity 0.9s var(--ease-out),
      transform 0.9s var(--ease-out);
  }

  [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
