@font-face {
  font-family: "Bowlby One";
  src: url("/assets/fonts/bowlby-one-sc.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

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

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

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

@font-face {
  font-family: "Cormorant Display";
  src: url("/assets/fonts/cormorant-garamond-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #030303;
  --black-2: #090a0c;
  --graphite: #111317;
  --bone: #f4f1ea;
  --bone-dim: #c7c3bb;
  --acid: #caff3d;
  --emerald: #18c878;
  --ruby: #ff1648;
  --signal-blue: #79a8ff;
  --violet: #9e74ff;
  --chrome-light: #f8fbff;
  --chrome-mid: #79808a;
  --line: rgba(244, 241, 234, 0.2);
  --line-strong: rgba(244, 241, 234, 0.42);
  --line-dark: rgba(3, 3, 3, 0.18);
  --max: 1440px;
  --pad: clamp(18px, 3.4vw, 56px);
  --header: 68px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: clip;
  color: var(--bone);
  background: var(--black);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection,
body *::selection {
  color: var(--black);
  background: var(--acid);
}

img,
picture,
svg,
canvas {
  display: block;
}

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

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

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

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

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

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 14px;
  color: var(--black);
  background: var(--acid);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(calc(100% - (var(--pad) * 2)), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  padding: 10px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 3, 3, 0.84);
  backdrop-filter: blur(16px) saturate(125%);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(3, 3, 3, 0.94);
  border-bottom-color: rgba(244, 241, 234, 0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-orb {
  position: relative;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border: 1px solid #e7edf5;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 23%, #fff 0 7%, transparent 9%),
    radial-gradient(circle at 42% 36%, #f6f8fb 0, #8e959f 22%, #15181d 47%, #b8bec6 61%, #050608 76%);
  box-shadow: inset -4px -5px 8px #000, inset 4px 3px 6px rgba(255, 255, 255, 0.7), 0 0 12px rgba(255, 255, 255, 0.2);
}

.brand-orb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent 26%, rgba(255, 255, 255, 0.85) 44%, transparent 58%);
  animation: orb-glint 4s ease-in-out infinite;
}

@keyframes orb-glint {
  0%, 65%, 100% { transform: translateX(-130%); }
  78% { transform: translateX(130%); }
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  font-family: "Inter Tight", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.desktop-nav > a:not(.nav-action) {
  position: relative;
  color: var(--bone-dim);
}

.desktop-nav > a:not(.nav-action)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.desktop-nav > a[aria-current="page"] {
  color: var(--bone);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  color: var(--black);
  border: 1px solid #fff;
  background: linear-gradient(180deg, #fff 0%, #9ca2aa 48%, #f8fbff 53%, #6c727b 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 255, 255, 0.12);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  list-style: none;
  text-transform: uppercase;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav[open] nav {
  position: absolute;
  top: 45px;
  right: 0;
  display: grid;
  width: min(84vw, 310px);
  padding: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(3, 3, 3, 0.98);
  box-shadow: 0 30px 80px #000;
}

.mobile-nav nav a {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-nav nav a:last-child {
  color: var(--black);
  background: var(--acid);
  border: 0;
}

.section {
  position: relative;
  padding-block: clamp(88px, 11vw, 180px);
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--acid);
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(0.65rem, 0.72vw, 0.76rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Inter Tight", sans-serif;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.93;
}

h2 {
  max-width: 1050px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 7.2vw, 7.8rem);
}

h3 {
  font-size: clamp(1.55rem, 2.5vw, 3rem);
}

.large-copy {
  max-width: 940px;
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(1.5rem, 2.75vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.chapter-grid,
.story-layout {
  display: grid;
  grid-template-columns: minmax(140px, 0.28fr) minmax(0, 1fr);
  gap: clamp(38px, 7vw, 120px);
}

.section-index {
  align-self: start;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--bone-dim);
  font-family: "Inter Tight", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-index span {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: var(--black);
  border: 1px solid white;
  border-radius: 50%;
  background: linear-gradient(155deg, #fff, #6d737b 45%, #eef1f5 53%, #4a4e54);
  box-shadow: inset 0 0 0 1px #101114;
  place-items: center;
}

.section-index p {
  margin: 0;
}

.section-index-inline {
  margin-bottom: 42px;
}

.source-note {
  max-width: 760px;
  margin-top: 24px;
  color: #96938d;
  font-size: 0.75rem;
  line-height: 1.55;
}

.chrome-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: min(100%, 330px);
  min-height: 52px;
  margin-top: 28px;
  padding: 12px 17px;
  color: var(--black);
  border: 1px solid #f9fbff;
  background: linear-gradient(180deg, #ffffff 0%, #949aa2 44%, #eff3f7 52%, #5b6068 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.42), 0 8px 28px rgba(255, 255, 255, 0.08);
  font-family: "Inter Tight", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  transition: filter 160ms ease, transform 160ms ease;
}

.chrome-link:hover {
  filter: brightness(1.14) contrast(1.08);
  transform: translateY(-2px);
}

.role-boundary {
  display: grid;
  grid-template-columns: 135px 1fr;
  margin: 34px 0 10px;
  border-top: 1px solid var(--line-strong);
}

.role-boundary > * {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.role-boundary span {
  color: #85827d;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.role-boundary strong {
  font-family: "Inter Tight", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.start-section {
  position: relative;
  padding: clamp(80px, 10vw, 160px) var(--pad);
  overflow: hidden;
  color: var(--black);
  background: var(--acid);
}

.start-section::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.24;
  background-image: linear-gradient(rgba(0, 0, 0, 0.25) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.25) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 70% 40%, black, transparent 68%);
}

.start-panel {
  position: relative;
  z-index: 1;
}

.start-panel .eyebrow {
  color: #293600;
}

.start-panel h2 {
  max-width: 1150px;
  margin-bottom: 24px;
  font-size: clamp(3.8rem, 10.4vw, 11rem);
}

.start-panel > p:not(.eyebrow) {
  max-width: 760px;
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.start-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 45px 0 0;
  list-style: none;
}

.start-panel li {
  padding: 10px 15px;
  border: 1px solid var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.contact-actions .chrome-link {
  min-width: min(100%, 240px);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 30px;
  padding: 40px var(--pad);
  border-top: 1px solid var(--line);
  background: #000;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer > div {
  display: grid;
  gap: 4px;
}

.site-footer > div span,
.site-footer p {
  color: #77746f;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.site-footer nav a:hover {
  color: var(--acid);
}

.site-footer p {
  justify-self: end;
  margin: 0;
  text-align: right;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

@media (max-width: 900px) {
  .chapter-grid,
  .story-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .section-index {
    max-width: max-content;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .site-footer p {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  :root {
    --pad: 16px;
    --header: 60px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .brand > span:last-child {
    display: none;
  }

  .section {
    padding-block: 82px;
  }

  .role-boundary {
    grid-template-columns: 1fr;
  }

  .role-boundary span {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .role-boundary strong {
    padding-top: 0;
  }

  .start-panel h2 {
    font-size: clamp(3.6rem, 19vw, 6rem);
  }
}

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

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

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