:root {
  --ink: #15181d;
  --muted: #5c6470;
  --paper: #f7f4ea;
  --panel: #ffffff;
  --line: #d8d4c8;
  --signal: #ff6a2a;
  --blue: #1d55ff;
  --green: #1e7d4f;
  --shadow: 0 24px 70px rgba(21, 24, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 106, 42, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(29, 85, 255, 0.16), transparent 26rem),
    linear-gradient(180deg, #fbf8ef 0%, #f0ede4 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(21, 24, 29, 0.12);
  background: rgba(247, 244, 234, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  font-size: 1.35rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

nav a:hover {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding: clamp(4rem, 10vw, 8rem) 0 4rem;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.3rem, 7vw, 6.2rem);
}

.hero .lead {
  max-width: 38rem;
}

.progress-note {
  max-width: 38rem;
  margin-top: 1.25rem;
  border: 1px solid rgba(21, 24, 29, 0.18);
  border-radius: 22px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.progress-note span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--signal);
  font-family: var(--sans-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.progress-note p {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.4;
}

.model-note {
  display: inline-grid;
  gap: 0.25rem;
  max-width: 34rem;
  margin: 0.7rem 0 1rem;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 18px;
  padding: 0.75rem 0.9rem;
  background: rgba(37, 99, 235, 0.07);
}

.model-note span,
.theme-route em {
  color: var(--signal);
  font-family: var(--sans-strong);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.model-note p {
  margin: 0;
  color: #30343a;
  font-size: 0.98rem;
  line-height: 1.4;
}

.hero-collage {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.7rem;
  align-items: stretch;
  border: 1px solid rgba(21, 24, 29, 0.12);
  border-radius: 34px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

.hero-collage img {
  width: 100%;
  height: 100%;
  min-height: 8.3rem;
  border-radius: 20px;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.03);
}

.hero-collage .collage-main {
  grid-row: span 2;
  min-height: 18rem;
}

.collage-note {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  min-height: 8.3rem;
  border: 1px solid rgba(21, 24, 29, 0.1);
  border-radius: 20px;
  padding: 1rem;
  background: var(--ink);
  color: #fff;
}

.collage-note span {
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.collage-note strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.detail-hero {
  max-width: 980px;
  padding: clamp(4rem, 10vw, 8rem) 0 4rem;
}

.episode-source {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 2.5rem);
  align-items: center;
  margin-bottom: 4rem;
  border: 1px solid rgba(21, 24, 29, 0.14);
  border-radius: 34px;
  padding: clamp(1rem, 2vw, 1.35rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.6)),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(21, 24, 29, 0.035) 31px);
  box-shadow: 0 18px 50px rgba(21, 24, 29, 0.08);
}

.episode-still {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.episode-still img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 180ms ease, opacity 180ms ease;
}

.episode-still span {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  background: rgba(21, 24, 29, 0.86);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
}

.episode-still:hover img {
  transform: scale(1.025);
  opacity: 1;
}

.episode-source h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.episode-source p {
  color: #30343a;
  font-size: 1.06rem;
  line-height: 1.55;
}

.episode-source .episode-meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.eyebrow,
.machine-label,
.tag,
.status {
  margin: 0 0 0.8rem;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 13ch;
  margin-bottom: 1.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 9vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.15;
}

.lead {
  max-width: 42rem;
  color: #30343a;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.48;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.75rem 1.05rem;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(21, 24, 29, 0.12);
}

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

.theme-routes {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.7rem;
}

.theme-route {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  min-height: 8.4rem;
  border: 1px solid rgba(21, 24, 29, 0.14);
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.theme-route:hover {
  border-color: rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(21, 24, 29, 0.1);
}

.theme-route strong {
  color: var(--blue);
  font-family: var(--sans-strong);
  font-size: 1rem;
  font-weight: 900;
}

.theme-route em {
  width: fit-content;
  border-radius: 999px;
  padding: 0.25rem 0.42rem;
  background: rgba(255, 100, 0, 0.1);
}

.theme-route span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.button.ghost {
  border-color: var(--line);
  color: var(--muted);
}

.button.disabled {
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

.button.disabled:hover {
  transform: none;
  box-shadow: none;
}

.process span {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.section {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.text-column {
  color: #2b3037;
  font-size: 1.18rem;
  line-height: 1.65;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1rem 0 5rem;
}

.timeline article,
.media-grid article,
.process article,
.source-item {
  border: 1px solid rgba(21, 24, 29, 0.12);
  border-radius: 26px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.74);
}

.timeline span {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--blue);
  font-size: 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.timeline p,
.media-grid p,
.process p,
.source-item p {
  color: var(--muted);
  line-height: 1.5;
}

.article-link {
  display: inline-flex;
  margin-top: 0.35rem;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.article-link:hover {
  text-decoration: underline;
}

.audio-player {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
}

.video-embed {
  overflow: hidden;
  margin-top: 0.65rem;
  border-radius: 16px;
  background: var(--ink);
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-page {
  max-width: 840px;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.article-body {
  border: 1px solid rgba(21, 24, 29, 0.12);
  border-radius: 34px;
  padding: clamp(1.4rem, 5vw, 3rem);
  background: rgba(255, 255, 255, 0.76);
}

.article-body h1 {
  max-width: 11ch;
  margin-bottom: 1.6rem;
  font-size: clamp(3rem, 8vw, 6.2rem);
}

.article-body h2 {
  margin-top: 2.4rem;
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.article-body p,
.article-body li {
  color: #30343a;
  font-size: 1.08rem;
  line-height: 1.7;
}

.article-body ul {
  padding-left: 1.2rem;
}

.article-body code {
  border-radius: 0.35rem;
  padding: 0.1rem 0.25rem;
  background: rgba(21, 24, 29, 0.08);
  font-size: 0.92em;
}

.article-episode-source {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 3rem;
  border-top: 1px solid rgba(21, 24, 29, 0.12);
  padding-top: 1.4rem;
}

.article-episode-source h2 {
  margin-top: 0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.media-grid article {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.media-grid article > p {
  margin-bottom: 0;
}

.media-grid article > .button {
  width: 100%;
  margin-top: auto;
}

.media-points {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.4;
}

.tnw-grid,
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 5rem;
}

.tnw-grid {
  grid-template-columns: repeat(2, 1fr);
}

.tnw-grid article,
.signal-grid article {
  min-height: 330px;
  border: 1px solid rgba(21, 24, 29, 0.12);
  border-radius: 30px;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.74);
}

.tnw-grid article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tnw-grid h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.tnw-grid p,
.signal-grid p,
.output-list p {
  color: var(--muted);
  line-height: 1.55;
}

.signal-grid article {
  min-height: 260px;
}

.make-layer {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 1rem;
  align-items: start;
  margin: -0.35rem 0 0.85rem;
  border: 1px solid rgba(29, 85, 255, 0.18);
  border-radius: 20px;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.58);
}

.make-layer h2 {
  margin-bottom: 0;
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.make-layer p:last-child {
  margin-bottom: 0;
  color: #30343a;
  font-size: 0.96rem;
  line-height: 1.46;
}

.output-strip {
  padding-top: 3rem;
  padding-bottom: 2.4rem;
}

.output-strip .section-heading {
  max-width: 560px;
  margin-bottom: 1rem;
}

.output-strip .section-heading h2 {
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.output-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.output-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid rgba(21, 24, 29, 0.12);
  border-radius: 18px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.74);
}

.output-list article.pending-output {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.48);
}

.output-list article.pending-output > span {
  background: rgba(37, 99, 235, 0.18);
  color: var(--blue);
}

.output-list article > span {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
}

.output-list h3,
.output-list p {
  margin-bottom: 0.2rem;
}

.output-list h3 {
  font-size: 1rem;
}

.output-list p {
  font-size: 0.92rem;
  line-height: 1.38;
}

.status {
  display: inline-block;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
}

.status.live {
  background: rgba(30, 125, 79, 0.12);
  color: var(--green);
}

.status.soon {
  background: rgba(29, 85, 255, 0.1);
  color: var(--blue);
}

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.experiment-note {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.experiment-note article {
  border: 1px solid rgba(21, 24, 29, 0.12);
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.68);
}

.experiment-note h3 {
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.experiment-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.48;
}

.process article {
  min-height: 220px;
}

.source-lab {
  padding-bottom: 6rem;
}

.search-label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-weight: 750;
}

input[type="search"] {
  width: 100%;
  border: 1px solid rgba(21, 24, 29, 0.22);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
}

.source-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.source-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.source-item small {
  color: var(--signal);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-item a {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--blue);
  font-family: var(--sans-strong);
  font-weight: 900;
  text-decoration: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    padding-bottom: 0.75rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex: 0 0 auto;
    padding: 0.45rem 0.68rem;
    font-size: 0.86rem;
  }

  .hero,
  .detail-hero,
  .episode-source,
  .split,
  .timeline,
  .media-grid,
  .process,
  .hero-collage,
  .source-results,
  .tnw-grid,
  .signal-grid,
  .make-layer,
  .output-list,
  .article-episode-source,
  .experiment-note {
    grid-template-columns: 1fr;
  }

  .hero-collage .collage-main {
    grid-row: auto;
    min-height: 12rem;
  }

  .hero-collage img,
  .collage-note {
    min-height: 8rem;
  }

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

  .theme-route {
    min-height: auto;
  }

  .article-body h1 {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .theme-routes {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .theme-route {
    display: grid;
    gap: 0.3rem;
    width: 100%;
    border: 1px solid rgba(21, 24, 29, 0.14);
    border-radius: 22px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.68);
    text-decoration: none;
  }

  .theme-route strong,
  .theme-route em,
  .theme-route span {
    display: block;
  }

  .theme-route span {
    font-size: 0.98rem;
    line-height: 1.35;
  }
}
