@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-600.woff2") format("woff2");
}

/* Tokens: edit colours and type here */
:root {
  --bg: #080808;
  --bg-header: rgba(8, 8, 8, 0);
  --bg-header-scrolled: rgba(8, 8, 8, 0.94);
  --text: #ededed;
  --text-muted: #9a9a9a;
  --text-dim: #8a8a8a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #6d8cff;
  --accent-soft: rgba(109, 140, 255, 0.06);
  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 38rem;
  --page: min(1080px, calc(100% - 2rem));
  --header-h: 6.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pointer-x: 50%;
  --pointer-y: 20%;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(720px circle at var(--pointer-x) var(--pointer-y), var(--accent-soft), transparent 55%),
    radial-gradient(900px 480px at 80% -10%, rgba(109, 140, 255, 0.045), transparent 50%);
}

body > * {
  position: relative;
  z-index: 1;
}

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

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

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

::selection {
  background: rgba(109, 140, 255, 0.28);
  color: var(--text);
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  min-height: var(--header-h);
  background: var(--bg-header);
  border-bottom: 1px solid transparent;
  transition: background 280ms var(--ease), border-color 280ms var(--ease);
}

.site-header.is-scrolled {
  background: var(--bg-header-scrolled);
  border-bottom-color: var(--border);
}

.header-inner,
.hero-inner,
.section-inner,
.footer-inner {
  width: var(--page);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.1rem 1rem;
  padding-block: 0.35rem 0.2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  width: 100%;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.1rem 0.15rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 180ms var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

/* Hero */
.hero {
  min-height: min(100svh, 52rem);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 4.25rem;
}

.hero-inner {
  padding-bottom: 0.5rem;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(1.7rem, 7.2vw, 4.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.038em;
  overflow-wrap: break-word;
}

.hero-break {
  display: block;
}

.hero-kicker {
  margin-top: 1.5rem;
  max-width: min(40rem, 100%);
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: -0.02em;
}

.hero-copy {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
  max-width: 38rem;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2.25rem;
}

.action-primary,
.action-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.action-primary {
  font-weight: 500;
  letter-spacing: -0.02em;
  text-underline-offset: 0.28em;
  background-image: linear-gradient(var(--text), var(--text));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  transition: color 180ms var(--ease), background-size 220ms var(--ease);
}

.action-primary:hover {
  color: var(--accent);
  background-image: linear-gradient(var(--accent), var(--accent));
}

.action-secondary {
  color: var(--text-dim);
  font-size: 0.9375rem;
  transition: color 180ms var(--ease);
}

.action-secondary:hover {
  color: var(--text);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-inner-narrow {
  max-width: var(--measure);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2 {
  max-width: 16em;
  font-size: clamp(1.7rem, 4.4vw, 2.85rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.036em;
}

.lede {
  margin-top: 1.25rem;
  max-width: var(--measure);
  color: var(--text-muted);
}

/* Work system: typographic, not cards */
.system {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 2.75rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.system li {
  padding: 1.45rem 0 1.55rem;
  border-bottom: 1px solid var(--border);
}

.system-index {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--text-dim);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.system h3 {
  max-width: 16ch;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.system p {
  margin-top: 0.45rem;
  max-width: 28rem;
  color: var(--text-dim);
  font-size: 0.975rem;
}

.focus-note {
  margin-top: 2.25rem;
  max-width: 40rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* Beyond Jages: compact, secondary */
.beyond {
  padding-top: 4.25rem;
  padding-bottom: 4.25rem;
}

.beyond h2 {
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  color: var(--text-muted);
}

.ventures {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.ventures li {
  padding: 1.2rem 0 1.3rem;
  border-bottom: 1px solid var(--border);
}

.ventures h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ventures a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text-muted);
  transition: color 180ms var(--ease);
}

.ventures a:hover {
  color: var(--text);
}

.ventures p {
  max-width: 32rem;
  color: var(--text-dim);
  font-size: 0.9375rem;
}

/* Contact */
.close {
  padding-top: 6rem;
  padding-bottom: 4.5rem;
}

.close-heading {
  max-width: 16em;
}

.close-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.close-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-right: 1.25rem;
  color: var(--text-muted);
  font-size: 0.975rem;
  transition: color 180ms var(--ease);
}

.close-links a:hover {
  color: var(--text);
}

.site-footer {
  padding: 0 0 2.75rem;
}

.footer-inner {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.footer-name {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.footer-fields {
  margin-top: 0.3rem;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 390px) {
  :root {
    --page: min(1080px, calc(100% - 2.25rem));
  }
}

@media (min-width: 768px) {
  :root {
    --page: min(1080px, calc(100% - 4.5rem));
    --header-h: 4.75rem;
  }

  .nav {
    width: auto;
    justify-content: flex-end;
    gap: 0.25rem 1.1rem;
  }

  .nav a {
    font-size: 0.875rem;
    padding-inline: 0.15rem;
  }

  .header-inner {
    align-items: center;
    gap: 1.5rem;
    padding-block: 0.85rem;
  }

  .wordmark {
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
  }

  .hero {
    align-items: center;
    padding: calc(var(--header-h) + 1.5rem) 0 5rem;
  }

  .hero-break {
    display: none;
  }

  .hero h1 {
    max-width: 22ch;
  }

  .hero-copy {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
    max-width: 46rem;
  }

  .system {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--border);
  }

  .system li {
    padding: 1.7rem 1.4rem 1.8rem 0;
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }

  .system li:last-child {
    border-right: 0;
    padding-right: 0;
  }

  .system li:not(:first-child) {
    padding-left: 1.4rem;
  }

  .ventures {
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
  }

  .ventures li {
    padding: 1.35rem 2rem 1.45rem 0;
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }

  .ventures li:last-child {
    border-right: 0;
    padding-right: 0;
    padding-left: 2rem;
  }

  .section {
    padding: 7.5rem 0;
  }

  .beyond {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .close {
    padding-top: 8rem;
    padding-bottom: 5.5rem;
  }
}

@media (min-width: 1100px) {
  :root {
    --page: min(1120px, calc(100% - 6.5rem));
  }

  .hero h1 {
    font-size: clamp(2.6rem, 4.4vw, 4.15rem);
  }

  .hero-kicker {
    margin-top: 1.85rem;
  }

  .hero-copy {
    margin-top: 2.4rem;
    max-width: 50rem;
  }

  .hero-actions {
    margin-top: 2.35rem;
  }

  .section h2 {
    font-size: clamp(1.9rem, 3.1vw, 2.75rem);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  body::before {
    background: radial-gradient(800px 400px at 80% 0%, rgba(109, 140, 255, 0.04), transparent 55%);
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
