/* ─── Self-hosted fonts (no external CDN) ─────────────────────────────────── */

/* latin */
@font-face {
  font-family: 'Reenie Beanie';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/z7NSdR76eDkaJKZJFkkjuvWxXPq1qw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/rnCu-xNNww_2s0amA9M8qtHEWfSFXQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/rnCs-xNNww_2s0amA9uSsG3BafY.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/rnCs-xNNww_2s0amA9vKsW3BafY.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── Base layout ────────────────────────────────────────────────────────── */

:root {
  --artboard-scale: 1;
  --paper: #ffffff;
  --ink: #070707;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
}

body {
  color: var(--ink);
}

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

.viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--paper);
}

.artboard {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  background: var(--paper);
  transform: translate(-50%, -50%) scale(var(--artboard-scale));
  transform-origin: center center;
}

.intro-copy {
  position: absolute;
  top: 166px;
  left: 74px;
  width: 430px;
  font-family: "IBM Plex Sans", sans-serif;
  font-style: normal;
  font-weight: 400;
}

.intro-lead {
  margin: 0 0 44px;
  font-size: 40px;
  line-height: 1;
}

.intro-body {
  display: grid;
  gap: 2px;
  font-size: 24px;
  line-height: 1.28;
}

.intro-body p {
  margin: 0;
}

.section-list {
  position: absolute;
  top: 520px;
  left: 74px;
  display: grid;
  gap: 111px;
  font: 400 24px/1.46 "IBM Plex Serif", serif;
}

.section-list a {
  pointer-events: auto;
}

.stage {
  position: absolute;
  top: 199px;
  left: 633px;
  width: 1215px;
  height: 682px;
  overflow: hidden;
  z-index: 20;
}

.stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

/* ─── Component styles ───────────────────────────────────────────────────── */

::selection {
  background-color: #95E78E;
  color: #062C02;
}

:focus-visible {
  outline: 2px solid #0047CC;
  outline-offset: 4px;
  border-radius: 2px;
}

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 36px;
  --space-6: 48px;

  --left-column-x: 50px;
  --left-column-width: 550px;
  --content-indent: 6px;

  --stage-x: 653px;
  --stage-y: 199px;
  --stage-width: 1215px;
  --stage-height: 682px;
  --stage-caption-gap: 16px;

  --text-hero: 38px;
  --text-section-title: 26px;
  --text-section-body: 20px;
  --text-footer: 18px;
  --text-caption: 15px;
}

.hover-trigger {
  display: inline-block;
  line-height: 1.2;
  transition: transform 180ms var(--ease-out);
  will-change: transform;
}

.highlight-orange {
  color: oklch(54% 0.16 47);
  background-color: oklch(94% 0.05 47);
  padding: 0px;
  border-radius: 0px;
}

.blog-list {
  margin: 0;
  padding: 0;
  text-decoration-thickness: 0.25px;
  font-size: 18px;
  line-height: 1.35;
  color: rgba(15, 17, 17, 0.72);
}

.blog-list li+li {
  margin-top: var(--space-1);
}

.blog-list a {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 0.25px;
  text-underline-offset: 4px;
  font-family: "Spectral", serif;
  font-weight: 300;
}

.blog-list a:hover,
.blog-list a:focus-visible {
  text-decoration-line: underline;
  outline: none;
}

.intro-copy {
  position: absolute;
  top: 110px;
  left: var(--left-column-x);
  width: var(--left-column-width);
  z-index: 10;
}

.hero-text {
  font-family: "Spectral", serif;
  font-weight: 300;
  font-size: var(--text-hero);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: rgb(15, 17, 17);
  margin: 0;
}

.intro-copy p {
  font-size: calc(var(--text-section-body) + 4px);
  line-height: 1.45;
  letter-spacing: normal;
  color: rgba(15, 17, 17, 0.82);
  margin: var(--space-2) 0 0 0;
}

.highlight-blue {
  color: oklch(44% 0.20 264);
  background-color: oklch(93% 0.05 264);
  padding: 0px;
  border-radius: 0px;
}

.highlight-purple {
  color: oklch(44% 0.17 310);
  background-color: oklch(93% 0.05 310);
  padding: 0px;
  border-radius: 0px;
}

.highlight-green {
  color: oklch(48% 0.14 150);
  background-color: oklch(94% 0.04 150);
  padding: 0px;
  border-radius: 0px;
}

@media (hover: hover) and (pointer: fine) {
  .hover-trigger:hover {
    transform: translateX(3px);
  }
}

.section-list {
  position: absolute;
  top: 308px;
  left: var(--left-column-x);
  width: var(--left-column-width);
  height: 660px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  font-family: "Spectral", serif;
  font-weight: 300;
  font-size: var(--text-section-title);
  line-height: 1.15;
  z-index: 25;
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.section-heading-wrapper {
  width: max-content;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.section-heading-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.heading-separator {
  color: rgba(15, 17, 17, 0.35);
  font-size: 0.85em;
  transform: translateY(-1px);
  user-select: none;
}

.section-content {
  font-size: var(--text-section-body);
  line-height: 1.45;
  color: rgba(15, 17, 17, 0.82);
  margin-left: var(--content-indent);
  display: grid;
  gap: var(--space-1);
}

.section-content p {
  margin: 0;
}

.section-content .two-col-item {
  display: grid;
  grid-template-columns: 1fr max-content;
  column-gap: var(--space-3);
  row-gap: calc(var(--space-1) / 2);
  align-items: baseline;
}

.section-content .two-col-main {
  min-width: 0;
}

.section-content .two-col-meta {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: var(--text-footer);
  line-height: 1;
  letter-spacing: normal;
  color: rgba(15, 17, 17, 0.62);
  transform: translateX(12px);
}

.section-content .two-col-under {
  grid-column: 1;
  font-size: var(--text-footer);
  line-height: 1.25;
  color: rgba(15, 17, 17, 0.62);
}

.section-content .two-col-main a {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 0.25px;
  text-underline-offset: 4px;
}

.section-content .two-col-main a:hover,
.section-content .two-col-main a:focus-visible {
  text-decoration-line: underline;
  outline: none;
}

.section-content .two-col-main a.always-underline {
  text-decoration-line: underline;
}

.section-block-blog {
  margin-top: auto;
  font-size: 0.9em;
}

.section-block-blog .section-content {
  font-size: var(--text-footer);
}

.footer-copy {
  position: absolute;
  bottom: 56px;
  left: var(--left-column-x);
  text-decoration-thickness: 0.25px;
  width: var(--left-column-width);
  font-family: "Spectral", serif;
  font-weight: 300;
  font-size: var(--text-footer);
  line-height: 1.25;
  color: rgba(15, 17, 17, 0.62);
  z-index: 10;
}

.footer-copy a {
  color: rgb(15, 17, 17);
  text-decoration-line: underline;
  text-decoration-thickness: 0.25px;
  text-underline-offset: 4px;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr max-content;
  align-items: center;
  column-gap: var(--space-3);
}

.footer-right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transform: translateX(12px);
}

.footer-divider {
  width: 1px;
  height: 18px;
  background-color: rgba(15, 17, 17, 0.35);
}

.github-link {
  color: rgba(15, 17, 17, 0.62);
  text-decoration: none;
}

.github-link:hover,
.github-link:focus-visible {
  color: rgb(15, 17, 17);
}

.stage {
  position: absolute;
  top: var(--stage-y);
  left: var(--stage-x);
  width: var(--stage-width);
  height: var(--stage-height);
  z-index: 20;
  overflow: visible;
}

.stage-caption {
  position: absolute;
  top: calc(var(--stage-y) + var(--stage-height) + var(--stage-caption-gap));
  left: var(--stage-x);
  width: var(--stage-width);
  text-align: center;
  font-family: "Spectral", serif;
  font-weight: 300;
  font-size: var(--text-caption);
  line-height: 1.2;
  color: rgba(15, 17, 17, 0.65);
  font-style: italic;
  z-index: 30;
  pointer-events: auto;
  user-select: text;
  cursor: text;
}

.hero-text em {
  font-style: italic;
  font-family: "Spectral", serif;
  font-weight: 300;
}

.hero-text .medium {
  font-weight: 500;
  font-family: "Spectral", serif;
}

.hero-text .reenie {
  display: inline-block;
  min-height: 1em;
  font-family: 'Reenie Beanie', cursive;
  font-size: 1.25em;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.mouse-tracker {
  position: fixed;
  width: 100px;
  height: 100px;
  border-radius: 10px;
  box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  pointer-events: none;
  /* Crucial */
  opacity: 0;
  transition: opacity 0.15s ease-in-out, left 0.2s ease-in-out, top 0.2s ease-in-out;
  z-index: 50;
  left: -100px;
  top: -100px;
  transform: scale(var(--artboard-scale, 1));
  transform-origin: center center;
}

.mouse-tracker video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

.mouse-tracker video.active {
  opacity: 1;
}

@media (max-width: 899px) {

  html,
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  :root {
    --left-column-x: 24px;
    --left-column-width: 330px;
    --content-indent: 4px;

    --space-5: 28px;

    --text-hero: 32px;
    --text-section-title: 22px;
    --text-section-body: 18px;
    --text-footer: 18px;
  }

  .viewport {
    width: 100%;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .artboard {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    min-height: 100vh;
    height: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    padding: 60px 24px 32px;
  }

  .intro-copy {
    position: static;
    top: auto;
    left: auto;
    width: auto;
  }

  .hero-text {
    line-height: 1.3;
  }

  .section-list {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    margin-top: 56px;
  }

  .section-block-blog {
    margin-top: 0;
  }

  .blog-list {
    font-size: 16px;
  }

  .footer-copy {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    bottom: auto;
    margin-top: 56px;
  }

  .footer-row {
    align-items: start;
  }

  .stage-caption,
  .stage {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hover-trigger {
    transition: none;
  }

  .mouse-tracker {
    transition: none;
    display: none;
  }
}