@font-face {
  font-family: "Departure Mono";
  src: url("https://cdn.jsdelivr.net/gh/floriankarsten/space-grotesk@main/.gitkeep");
  font-display: swap;
}
@import url("https://fonts.cdnfonts.com/css/departure-mono");

:root {
  --bg: #0a0a0a;
  --bg-2: #111110;
  --fg: #e8e8e3;
  --fg-dim: #9a9a93;
  --muted: #585852;
  --line: rgba(232, 232, 227, 0.08);
  --line-2: rgba(232, 232, 227, 0.16);
  --accent: oklch(0.8 0.14 75);
  --accent-soft: oklch(0.8 0.14 75 / 0.18);
  --measure: 78ch;
  --font-mono: "Departure Mono", "JetBrains Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

::selection {
  background: var(--accent);
  color: #1a1407;
}

/* ---------- layout primitives ---------- */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.rule {
  height: 1px;
  background: var(--line);
  width: 100%;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, 0.65);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 14px;
  height: 14px;
  position: relative;
  display: inline-block;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--fg);
}
.brand-mark::after {
  transform: rotate(45deg);
  border-color: var(--accent);
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}
.nav-links a:hover {
  color: var(--fg);
}

.nav-meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 72px 32px 96px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(8px);
}
.hero-pill .tag {
  color: var(--accent);
}

.hero h1 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 32px auto 20px;
  max-width: 14ch;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  color: var(--fg-dim);
  font-size: 15px;
  max-width: 52ch;
  margin: 0 auto;
  letter-spacing: 0.01em;
}

/* ---------- intro paragraph ---------- */
.intro {
  padding: 80px 0 80px;
}
.intro-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  align-items: start;
}
.intro-grid .label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.intro-body {
  max-width: var(--measure);
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  text-wrap: pretty;
}
.intro-body p + p {
  margin-top: 1.2em;
}
.intro-body em {
  color: var(--accent);
  font-style: normal;
}

/* ---------- stories ---------- */
.stories {
  padding: 80px 0 60px;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 80px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head h2 {
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.01em;
  margin: 8px 0 0;
  max-width: 18ch;
}
.section-head .count {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.story-list {
  border-top: 1px solid var(--line);
}

.story-row {
  display: grid;
  grid-template-columns: 80px 1.4fr 2fr 200px 100px;
  gap: 32px;
  align-items: center;
  padding: 28px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease, padding 0.25s ease;
}
.story-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}
.story-row:hover {
  background: rgba(255, 255, 255, 0.015);
  padding-left: 24px;
}
.story-row:hover::before {
  width: 2px;
}
.story-row:hover .story-arrow {
  transform: translateX(6px);
  color: var(--accent);
}

.story-num {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.story-title {
  font-size: 20px;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.story-blurb {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.55;
  text-wrap: pretty;
}
.story-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.story-tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line-2);
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}
.story-arrow {
  font-size: 14px;
  color: var(--muted);
  text-align: right;
  letter-spacing: 0.05em;
  transition: transform 0.25s ease, color 0.25s ease;
}

/* ---------- teacher ---------- */
.teacher {
  padding: 140px 0;
  border-top: 1px solid var(--line);
}

.teacher-grid {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: 80px;
  align-items: start;
}

.teacher-body h3 {
  font-weight: 400;
  font-size: 28px;
  margin: 8px 0 24px;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.teacher-body p {
  color: var(--fg-dim);
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 1em;
}
.teacher-body p strong {
  color: var(--fg);
  font-weight: 400;
}
.teacher-links {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
}
.teacher-links a {
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}
.teacher-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.teacher-card {
  border: 1px solid var(--line);
  padding: 24px;
  font-size: 12px;
  display: grid;
  gap: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.015),
    transparent
  );
}
.teacher-card .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.teacher-card .k {
  color: var(--muted);
  letter-spacing: 0.06em;
}
.teacher-card .v {
  color: var(--fg);
}
.teacher-portrait {
  aspect-ratio: 1 / 1;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.03) 0 6px,
      transparent 6px 12px
    ),
    #141413;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

/* ---------- social proof ---------- */
.proof {
  padding: 100px 0 120px;
  border-top: 1px solid var(--line);
}
.proof[data-empty="true"] {
  display: none;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.proof-card {
  border: 1px solid var(--line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent);
  transition: border-color 0.3s ease;
}
.proof-card:hover {
  border-color: var(--line-2);
}
.proof-quote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  text-wrap: pretty;
  margin: 0;
}
.proof-quote::before {
  content: "“";
  color: var(--accent);
  margin-right: 4px;
}
.proof-quote::after {
  content: "”";
  color: var(--accent);
  margin-left: 2px;
}
.proof-author {
  margin-top: auto;
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.proof-name {
  font-size: 13px;
  color: var(--fg);
}
.proof-role {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .intro-grid,
  .section-head,
  .teacher-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .story-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "num   arrow"
      "title arrow"
      "blurb arrow"
      "tags  arrow";
    gap: 8px 16px;
    padding: 24px 8px;
    align-items: start;
  }
  .story-num { grid-area: num; }
  .story-title { grid-area: title; font-size: 17px; }
  .story-blurb { grid-area: blurb; }
  .story-tags { grid-area: tags; }
  .story-arrow { grid-area: arrow; align-self: center; }
  .proof-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 12px; }
}
