:root {
  color-scheme: dark;
  --ink: #f8f3e8;
  --paper: #f3eadb;
  --muted: rgba(248, 243, 232, 0.72);
  --muted-dark: rgba(14, 17, 18, 0.68);
  --line: rgba(248, 243, 232, 0.18);
  --line-dark: rgba(14, 17, 18, 0.16);
  --night: #0a0d0e;
  --forest: #12231f;
  --teal: #2dd4bf;
  --copper: #d86842;
  --gold: #f0be57;
  --blue: #8fb8ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(10, 13, 14, 0.82);
  border-bottom: 1px solid rgba(248, 243, 232, 0.12);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.nav-cta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
}

.brand-mark {
  width: 24px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--teal), transparent 58%),
    linear-gradient(315deg, var(--copper), var(--gold));
  box-shadow: 0 0 28px rgba(45, 212, 191, 0.35);
}

.nav-links {
  gap: clamp(14px, 2.6vw, 30px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.nav-links a:hover,
.nav-cta:hover {
  color: var(--ink);
}

.nav-cta {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 13, 14, 0.44);
  font-size: 13px;
  font-weight: 850;
  backdrop-filter: blur(18px);
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 126px clamp(18px, 5vw, 72px) 34px;
  isolation: isolate;
}

.hero-video,
.hero-scrim,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -4;
  filter: saturate(1.02) contrast(1.08) brightness(0.78);
}

.hero-scrim {
  z-index: -3;
  background:
    radial-gradient(circle at 76% 24%, rgba(45, 212, 191, 0.22), transparent 30%),
    radial-gradient(circle at 18% 72%, rgba(216, 104, 66, 0.14), transparent 34%),
    linear-gradient(90deg, rgba(10, 13, 14, 0.9) 0%, rgba(10, 13, 14, 0.64) 44%, rgba(10, 13, 14, 0.28) 100%),
    linear-gradient(180deg, rgba(10, 13, 14, 0.18) 0%, rgba(10, 13, 14, 0.9) 100%);
}

.hero-grid {
  z-index: -2;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(248, 243, 232, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 243, 232, 0.1) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(180deg, transparent, black 24%, black 80%, transparent);
}

.hero-content {
  width: min(880px, 100%);
  padding-bottom: clamp(68px, 10vh, 118px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(54px, 8.6vw, 122px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.hero-caption {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(248, 243, 232, 0.58);
  font-size: 14px;
  line-height: 1.55;
}

.hero-actions,
.archive-links,
.subscribe-form,
.brief-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: var(--night);
}

.button-ghost {
  border: 1px solid var(--line);
  background: rgba(248, 243, 232, 0.08);
  backdrop-filter: blur(14px);
}

.video-panel {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 112px;
  width: min(296px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 13, 14, 0.52);
  backdrop-filter: blur(20px);
}

.icon-button {
  position: relative;
  width: 42px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: var(--night);
  cursor: pointer;
}

.icon-button::before,
.icon-button::after {
  content: "";
  position: absolute;
  top: 13px;
  bottom: 13px;
  width: 4px;
  border-radius: 4px;
  background: currentColor;
}

.icon-button::before {
  left: 15px;
}

.icon-button::after {
  right: 15px;
}

.icon-button.is-play-icon::before {
  top: 12px;
  bottom: auto;
  left: 16px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid currentColor;
  border-radius: 0;
  background: transparent;
}

.icon-button.is-play-icon::after {
  display: none;
}

.video-panel p,
.video-panel span {
  margin: 0;
}

.video-panel p {
  font-size: 14px;
  font-weight: 900;
}

.video-panel span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.hero-status {
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.hero-status span {
  min-height: 56px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.thinking-section,
.beliefs-section,
.build-section,
.books-section,
.about-section,
.subscribe-section,
.contact-section,
.radar-section {
  padding: clamp(74px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.thinking-section {
  background: var(--paper);
  color: var(--night);
}

.section-heading {
  max-width: 930px;
}

.section-heading h2,
.radar-section h2,
.about-section h2,
.subscribe-section h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.radar-section p,
.subscribe-section p,
.about-copy p {
  max-width: 760px;
  color: var(--muted-dark);
  font-size: 18px;
  line-height: 1.6;
}

.thinking-section .eyebrow,
.books-section .eyebrow,
.impact-section .eyebrow {
  color: #057366;
}

.thought-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  margin-top: 54px;
}

.thought-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7)),
    radial-gradient(circle at 86% 12%, rgba(45, 212, 191, 0.28), transparent 26%);
  transition: transform 180ms ease, border-color 180ms ease;
}

.thought-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 17, 18, 0.32);
}

.thought-featured {
  grid-row: span 2;
  min-height: 656px;
  background:
    linear-gradient(160deg, rgba(14, 17, 18, 0.95), rgba(18, 35, 31, 0.92)),
    radial-gradient(circle at 82% 18%, rgba(45, 212, 191, 0.3), transparent 30%);
  color: var(--ink);
}

.tag {
  width: fit-content;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
}

.thought-featured .tag {
  color: var(--teal);
}

.thought-card h3 {
  margin: auto 0 0;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.02;
}

.thought-card p {
  margin: 0;
  color: var(--muted-dark);
  line-height: 1.55;
}

.thought-featured p {
  color: var(--muted);
  font-size: 18px;
}

.thought-card small {
  color: rgba(14, 17, 18, 0.58);
  font-weight: 850;
}

.thought-featured small {
  color: rgba(248, 243, 232, 0.6);
}

.archive-links {
  margin-top: 24px;
}

.archive-links a,
.contact-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid currentColor;
  font-weight: 850;
}

.radar-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  background: var(--copper);
  color: var(--night);
}

.radar-section .eyebrow {
  color: var(--night);
}

.radar-section p {
  color: rgba(10, 13, 14, 0.72);
}

.beliefs-section {
  background:
    linear-gradient(180deg, #101718, #0a0d0e 58%, #13100c);
}

.belief-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 52px;
}

.belief-list p,
.build-grid article {
  margin: 0;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 243, 232, 0.06);
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.build-section {
  background: var(--night);
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 54px;
}

.build-grid article {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.build-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.08;
}

.build-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.github-section {
  padding: clamp(74px, 10vw, 132px) clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, #0e1415, #121b1d 54%, #0a0d0e);
}

.github-intro {
  display: grid;
  gap: 20px;
  margin-top: 54px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(45, 212, 191, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(248, 243, 232, 0.05), rgba(248, 243, 232, 0.02));
}

.github-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.github-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.github-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 243, 232, 0.05);
}

.github-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.02;
}

.github-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.github-points {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}

.github-points li + li {
  margin-top: 10px;
}

.github-points li {
  color: var(--muted);
  line-height: 1.5;
}

.github-card a {
  margin-top: auto;
  width: fit-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid currentColor;
  color: var(--teal);
  font-weight: 850;
}

.books-section {
  background: var(--paper);
  color: var(--night);
}

.books-photo {
  margin: 54px 0 0;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  overflow: hidden;
  background: #fffaf0;
}

.books-photo img {
  width: 100%;
  max-height: 520px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.book-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.book-card {
  min-height: 290px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fffaf0;
}

.book-card:nth-child(5n + 1) {
  background: #fff6d8;
}

.book-card:nth-child(5n + 2) {
  background: #e9f2ec;
}

.book-card:nth-child(5n + 3) {
  background: #edf0f7;
}

.book-card:nth-child(5n + 4) {
  background: #f7eadf;
}

.book-mark {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  border-radius: 6px;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(10, 13, 14, 0.18), transparent 20%),
    linear-gradient(160deg, #151d1f, #315d58 48%, #e7a35f);
  color: #fffaf0;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.16);
}

.book-mark span {
  color: rgba(255, 250, 240, 0.72);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.book-mark strong {
  font-size: 22px;
  line-height: 0.95;
  letter-spacing: 0;
}

.book-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.book-copy > span {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--copper);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.book-card h3 {
  margin: auto 0 0;
  font-size: 22px;
  line-height: 1.08;
}

.book-card p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.book-author {
  color: rgba(10, 13, 14, 0.72);
}

.book-summary {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(10, 13, 14, 0.12);
  color: rgba(10, 13, 14, 0.66);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.impact-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--teal);
  color: var(--night);
}

.executive-slide-section {
  background: var(--teal);
}

.executive-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 4vw, 46px);
  border-right: 1px solid rgba(10, 13, 14, 0.22);
}

.executive-card:last-child {
  border-right: 0;
}

.executive-card span {
  color: rgba(10, 13, 14, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.executive-card h3 {
  margin: auto 0 0;
  max-width: 360px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.98;
}

.executive-card p {
  max-width: 360px;
  margin: 0;
  color: rgba(10, 13, 14, 0.72);
  font-weight: 800;
  line-height: 1.35;
}

.proof-stat {
  min-height: 252px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 46px);
  border-right: 1px solid rgba(10, 13, 14, 0.22);
}

.proof-stat:last-child {
  border-right: 0;
}

.proof-stat strong {
  font-size: clamp(58px, 9vw, 122px);
  line-height: 0.85;
  letter-spacing: 0;
}

.proof-stat span {
  max-width: 260px;
  font-weight: 900;
  line-height: 1.25;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  background: var(--forest);
}

.about-copy p {
  color: var(--muted);
  margin: 0 0 22px;
}

.subscribe-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  align-items: end;
  gap: 30px;
  background: var(--gold);
  color: var(--night);
}

.subscribe-section .eyebrow {
  color: var(--night);
}

.subscribe-form {
  justify-content: flex-end;
}

.subscribe-form input {
  min-width: min(320px, 100%);
  min-height: 52px;
  border: 1px solid rgba(10, 13, 14, 0.28);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--night);
  font: inherit;
}

.subscribe-form button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--night);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 28px;
  background: var(--night);
}

.subscribe-section h2,
.contact-section h2,
.about-section h2 {
  font-size: clamp(34px, 4vw, 62px);
}

.contact-links {
  display: grid;
  align-content: end;
  gap: 8px;
}

section[id] {
  scroll-margin-top: 88px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--night);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 1020px) {
  .nav-links {
    display: none;
  }

  .thought-grid,
  .belief-list,
  .build-grid,
  .github-grid,
  .impact-section,
  .about-section,
  .subscribe-section,
  .contact-section,
  .radar-section {
    grid-template-columns: 1fr;
  }

  .thought-featured {
    min-height: 420px;
  }

  .build-grid article,
  .belief-list p {
    min-height: 180px;
  }

  .book-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subscribe-form {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 98svh;
    padding-top: 104px;
  }

  .hero-content {
    padding-bottom: 158px;
  }

  h1 {
    font-size: clamp(47px, 14vw, 78px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .video-panel {
    left: 18px;
    right: 18px;
    bottom: 98px;
  }

  .hero-status {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-status span {
    min-height: 26px;
  }

  .book-card {
    min-height: auto;
  }

  .proof-stat {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid rgba(10, 13, 14, 0.22);
  }

  .executive-card {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid rgba(10, 13, 14, 0.22);
  }

  .footer {
    flex-direction: column;
  }
}


@media (max-width: 560px) {
  .book-shelf {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding-top: 14px;
  }

  .nav-cta {
    display: none;
  }

  .button,
  .subscribe-form input,
  .subscribe-form button {
    width: 100%;
  }
}

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

  .hero-video {
    display: none;
  }

  .button {
    transition: none;
  }
}

/* --- Editorial type unification: display headings in Fraunces --- */
h1,
h2,
h3 {
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-weight: 700;
}

h1 {
  line-height: 0.98;
  letter-spacing: -0.01em;
}

/* --- Start here: three doors in --- */
.start-here {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--paper);
  color: var(--night);
}

.start-here .eyebrow {
  color: rgba(20, 17, 12, 0.62);
}

.start-here-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

@media (max-width: 900px) {
  .start-here-grid {
    grid-template-columns: 1fr;
  }
}

.start-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 24px;
  border: 1px solid rgba(20, 17, 12, 0.25);
  border-radius: 6px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.start-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20, 17, 12, 0.12);
  border-color: rgba(20, 17, 12, 0.55);
}

.start-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9b6b2d;
}

.start-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.start-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(20, 17, 12, 0.72);
}

.start-go {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: none;
}
