@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/archivo-400.woff2") format("woff2");
}

@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/archivo-600.woff2") format("woff2");
}

@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/archivo-700.woff2") format("woff2");
}

@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/archivo-800.woff2") format("woff2");
}

@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/archivo-900.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-500.woff2") format("woff2");
}

:root {
  --ink: #1c1917;
  --ink-soft: #57534e;
  --hero: #141110;
  --navy: #171513;
  --surface: #fbf8f4;
  --mist: #faf7f3;
  --paper: #ffffff;
  --line: #eee7e0;
  --signal: #f26522;
  --signal-hover: #ff7a35;
  --signal-shadow: #c24e0d;
}

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

html {
  color-scheme: light;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

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

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a {
  color: var(--ink);
  text-underline-offset: 0.16em;
}

a:visited {
  color: var(--ink);
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 40;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.6rem 0.8rem;
  overflow: visible;
  clip-path: none;
  background: var(--hero);
  color: var(--paper);
  white-space: normal;
}

.wrap {
  width: min(72rem, 100%);
  margin-inline: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

.lockup img {
  height: 36px;
  width: auto;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 16px;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 16px;
}

.desktop-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0;
}

.desktop-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

.menu-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 600 14px Archivo, sans-serif;
  cursor: pointer;
}

.nav-panel {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 0.5rem 0 1rem;
}

.nav-panel[hidden] {
  display: none;
}

.nav-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-panel .btn {
  margin-top: 0.35rem;
  width: 100%;
  text-align: center;
}

.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--signal);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--signal-shadow);
}

.btn-primary:visited {
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--signal-hover);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:visited {
  color: #fff;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

.header-cta {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero);
  color: #fff;
}

.hero-grid,
.hero-scrim,
.hero-glow {
  position: absolute;
  pointer-events: none;
}

.hero-grid {
  inset: -15%;
  z-index: 1;
  background-image:
    linear-gradient(rgba(242, 107, 33, 0.08) 1px, transparent 0),
    linear-gradient(90deg, rgba(242, 107, 33, 0.08) 1px, transparent 0);
  background-size: 84px 84px;
  opacity: 0.2;
  mask-image: radial-gradient(ellipse at 78% 42%, #000 0, transparent 62%);
}

.hero-scrim {
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(20, 17, 16, 0.55), rgba(20, 17, 16, 0.28) 22%, rgba(20, 17, 16, 0.08) 40%, transparent 54%);
}

.hero-glow {
  top: -120px;
  right: -120px;
  z-index: 1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(242 101 34 / 0.1), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: rgb(255 227 209);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.intro {
  max-width: 42rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.125rem;
  line-height: 1.7;
}

.hero-actions {
  display: grid;
  gap: 12px;
}

.portrait {
  margin: 0;
}

.portrait-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: #231f1c;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.band {
  padding-top: 64px;
  padding-bottom: 64px;
}

.band-pale {
  background: var(--surface);
}

.band-paper {
  background: var(--paper);
}

.band-dark {
  background: var(--hero);
  color: #fff;
}

.band-dark a {
  color: #fff;
}

.band h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.875rem, 2.5vw, 2.5rem);
}

.story {
  display: grid;
  gap: 1.5rem;
}

.chapter-label,
.ch-num,
.meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
}

.chapter-label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.chapters {
  margin: 0;
  padding: 0 0 0 1.35rem;
  list-style: none;
  border-left: 1px solid var(--line);
}

.chapters > li {
  position: relative;
  max-width: 65ch;
  margin: 0 0 2.5rem;
}

.chapters > li:last-child {
  margin-bottom: 0;
}

.ch-num {
  margin: 0 0 0.45rem;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.ch-num::before {
  content: "";
  position: absolute;
  left: calc(-1.35rem - 5px);
  top: 0.28rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
}

.measure {
  max-width: 65ch;
}

.chapter-current {
  max-width: none;
}

.seated {
  margin: 1.25rem 0 0;
  max-width: 16rem;
}

.seated img {
  width: 100%;
  border-radius: 16px;
}

.session {
  margin: 1.25rem 0 0;
  max-width: 48rem;
}

.session img {
  width: 100%;
  border-radius: 16px;
}

figcaption {
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.45;
}

.principle-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.principle-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.25rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.principle-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.principle-list .ch-num {
  margin: 0.2rem 0 0;
  color: rgb(255 156 98);
}

.principle-list h3 {
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}

.principle-list p,
.band-dark .measure {
  color: rgba(255, 255, 255, 0.86);
}

.profiles {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profiles a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

address {
  font-style: normal;
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.site-footer a {
  color: #fff;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .wrap {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-inner {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .band {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

@media (max-width: 639px) {
  .hero-actions .btn,
  .nav-panel .btn {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .menu-button {
    display: none;
  }

  .desktop-nav,
  .header-cta {
    display: flex;
  }

  .header-cta {
    display: inline-block;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    gap: 48px;
    align-items: center;
  }

  .hero h1 {
    font-size: 57.6px;
  }

  .story {
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }

  .chapter-label {
    position: sticky;
    top: 5.5rem;
  }

  .chapter-current {
    display: grid;
    grid-template-columns: minmax(0, 65ch) 16rem;
    gap: 2rem;
    align-items: start;
  }

  .seated {
    margin-top: 0;
  }

  .header-end {
    gap: 28px;
  }

  .desktop-nav {
    gap: 28px;
  }
}

@media (min-width: 1280px) {
  .desktop-nav {
    gap: 28px;
  }
}

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