:root {
  --ink: #111033;
  --ink-soft: #312b64;
  --paper: #f7f5ec;
  --paper-deep: #ebe7da;
  --white: #fffefa;
  --coral: #ff6f4f;
  --coral-dark: #d94b32;
  --mint: #8de4d0;
  --yellow: #f5c755;
  --muted: #625f73;
  --line: rgba(17, 16, 51, 0.16);
  --shadow: 0 24px 70px rgba(17, 16, 51, 0.13);
  --radius-small: 10px;
  --radius: 20px;
  --shell: 1180px;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(17, 16, 51, 0.12) 0.55px, transparent 0.55px);
  background-size: 7px 7px;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.narrow-shell {
  width: min(calc(100% - 40px), 900px);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-180%);
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(17, 16, 51, 0.1);
  background: rgba(247, 245, 236, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.24rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand strong {
  color: var(--coral-dark);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  position: relative;
  padding: 10px 13px;
  color: #343149;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 13px;
  bottom: 4px;
  left: 13px;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--coral);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  content: "";
  background: currentColor;
}

.menu-icon {
  position: relative;
}

.menu-icon::before {
  position: absolute;
  top: -6px;
}

.menu-icon::after {
  position: absolute;
  top: 6px;
}

.hero {
  overflow: hidden;
  padding: clamp(64px, 8vw, 118px) 0 clamp(72px, 9vw, 128px);
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr);
  gap: clamp(44px, 7vw, 94px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--coral-dark);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow > span {
  display: inline-block;
  width: 30px;
  height: 3px;
  background: var(--coral);
}

.hero h1,
.page-hero h1,
.experiment-header h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.1rem, 6.2vw, 6.35rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero h1 em {
  display: block;
  color: var(--coral-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero-lede {
  max-width: 640px;
  margin: 32px 0 0;
  color: #4d4961;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: 9px;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
  box-shadow: 5px 5px 0 var(--coral);
}

.button-primary:hover {
  box-shadow: 7px 7px 0 var(--coral);
}

.button-quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--ink);
  background: var(--white);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 34px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  list-style: none;
}

.hero-facts li {
  position: relative;
  padding-left: 14px;
}

.hero-facts li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.hero-lab {
  position: relative;
  padding: 16px;
  transform: rotate(1.2deg);
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: 18px 18px 0 var(--mint);
}

.hero-lab::before {
  position: absolute;
  z-index: -1;
  top: -24px;
  right: -26px;
  width: 86px;
  height: 86px;
  border: 2px solid var(--coral);
  border-radius: 50%;
  content: "";
}

.lab-topline,
.lab-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: white;
}

.lab-topline {
  padding: 2px 2px 14px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(141, 228, 208, 0.16);
  content: "";
}

.mini-grid {
  width: 100%;
  height: clamp(320px, 38vw, 470px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: white;
}

.lab-caption {
  align-items: flex-start;
  padding: 15px 2px 2px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.lab-caption span {
  color: rgba(255, 255, 255, 0.72);
}

.lab-caption strong {
  max-width: 190px;
  text-align: right;
}

.section {
  padding: clamp(68px, 8vw, 112px) 0;
}

.section-intro {
  border-block: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.58);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 8vw, 120px);
}

.intro-grid h2,
.section-heading h2,
.method-intro h2,
.reading-card h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.2rem, 4.3vw, 4.5rem);
  line-height: 1.01;
  letter-spacing: -0.055em;
}

.prose-lead {
  color: #49465a;
  font-size: 1.12rem;
}

.prose-lead p:first-child {
  margin-top: 3px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.text-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
}

.text-link span {
  display: inline-block;
  transition: transform 150ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.experiment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.experiment-card {
  display: grid;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 0 rgba(17, 16, 51, 0.06);
}

.experiment-visual {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 280px;
  border-bottom: 1px solid var(--line);
}

.visual-hermann {
  background-color: #f9f8f1;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 45px, #f9f8f1 45px 53px),
    repeating-linear-gradient(90deg, #18172c 0 45px, #f9f8f1 45px 53px);
}

.visual-hermann::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 3px;
  transform: translate(-50%, -50%);
  background: var(--coral);
  box-shadow: 0 0 0 1px rgba(17, 16, 51, 0.2);
  content: "";
}

.visual-hermann::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 22px;
  transform: translate(-50%, -50%);
  background: var(--coral);
  content: "";
}

.visual-ebbinghaus {
  background: #e8e3f5;
}

.visual-ebbinghaus::before,
.visual-ebbinghaus::after {
  position: absolute;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.visual-ebbinghaus::before {
  left: 28%;
  transform: translate(-50%, -50%);
  box-shadow:
    -70px 0 0 -17px var(--ink-soft), 70px 0 0 -17px var(--ink-soft),
    0 -70px 0 -17px var(--ink-soft), 0 70px 0 -17px var(--ink-soft),
    -50px -50px 0 -17px var(--ink-soft), 50px -50px 0 -17px var(--ink-soft),
    -50px 50px 0 -17px var(--ink-soft), 50px 50px 0 -17px var(--ink-soft);
}

.visual-ebbinghaus::after {
  left: 72%;
  transform: translate(-50%, -50%);
  box-shadow:
    -83px 0 0 13px var(--ink-soft), 83px 0 0 13px var(--ink-soft),
    0 -83px 0 13px var(--ink-soft), 0 83px 0 13px var(--ink-soft);
}

.visual-contrast {
  background: linear-gradient(90deg, #232238 0 50%, #dedbd2 50% 100%);
}

.visual-contrast::before,
.visual-contrast::after {
  position: absolute;
  top: 50%;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%);
  background: #8d8d8d;
  content: "";
}

.visual-contrast::before {
  left: 25%;
}

.visual-contrast::after {
  left: 75%;
}

.visual-muller {
  background: #dff4ed;
}

.visual-muller::before,
.visual-muller::after {
  position: absolute;
  left: 50%;
  width: 78%;
  transform: translate(-50%, -50%);
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.11em;
  white-space: nowrap;
}

.visual-muller::before {
  top: 36%;
  content: "‹━━━━›";
}

.visual-muller::after {
  top: 66%;
  content: "›━━━━‹";
}

.visual-kanizsa {
  background: #f1eee5;
}

.visual-kanizsa::before,
.visual-kanizsa::after,
.visual-kanizsa .visual-sample {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: conic-gradient(var(--ink) 0 300deg, transparent 300deg 360deg);
  content: "";
}

.visual-kanizsa::before {
  top: 19%;
  left: 50%;
  transform: translateX(-50%) rotate(30deg);
}

.visual-kanizsa::after {
  right: 24%;
  bottom: 18%;
  transform: rotate(150deg);
}

.visual-kanizsa .visual-sample {
  bottom: 18%;
  left: 24%;
  transform: rotate(270deg);
}

.visual-cafe {
  display: grid;
  place-items: center;
  background: #d7d0c8;
}

.visual-cafe .visual-sample {
  width: 112%;
  height: 76%;
  transform: rotate(-2deg);
  border-block: 6px solid #a59a8f;
  background-color: #ece9df;
  background-image:
    linear-gradient(#a59a8f 5px, transparent 5px),
    linear-gradient(90deg, var(--ink) 50%, #f8f6ee 50%);
  background-size: 100% 45px, 82px 40px;
  box-shadow: 0 8px 0 rgba(17, 16, 51, 0.15);
}

.visual-blindspot {
  background:
    linear-gradient(90deg, transparent 0 49.7%, rgba(17, 16, 51, 0.06) 49.7% 50.3%, transparent 50.3%),
    #f5f2e8;
}

.visual-blindspot::before {
  position: absolute;
  top: 50%;
  left: 24%;
  width: 52px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: var(--ink);
  content: "";
}

.visual-blindspot::after {
  position: absolute;
  top: 50%;
  left: 24%;
  width: 8px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: var(--ink);
  content: "";
}

.visual-blindspot .visual-sample {
  position: absolute;
  top: 50%;
  right: 23%;
  width: 29px;
  height: 29px;
  transform: translateY(-50%);
  border: 3px solid #ad3d29;
  border-radius: 50%;
  background: var(--coral);
}

.visual-checkershadow {
  background-color: #ded8cd;
  background-image:
    linear-gradient(90deg, transparent 50%, rgba(26, 27, 54, 0.42) 50%),
    conic-gradient(#eeece4 25%, #555364 0 50%, #eeece4 0 75%, #555364 0);
  background-position: 0 0, 0 0;
  background-size: 100% 100%, 72px 72px;
}

.visual-checkershadow::before {
  position: absolute;
  top: -18%;
  right: 22%;
  width: 27%;
  height: 138%;
  transform: rotate(-17deg);
  background: rgba(22, 23, 49, 0.24);
  content: "";
}

.visual-checkershadow::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  content: "A          B";
  font-size: 1.55rem;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.visual-troxler {
  background-color: #e9e5df;
  background-image:
    radial-gradient(circle at 31% 32%, rgba(255, 111, 79, 0.52) 0 7%, transparent 19%),
    radial-gradient(circle at 69% 32%, rgba(57, 175, 154, 0.48) 0 7%, transparent 19%),
    radial-gradient(circle at 31% 68%, rgba(126, 103, 190, 0.48) 0 7%, transparent 19%),
    radial-gradient(circle at 69% 68%, rgba(232, 180, 53, 0.5) 0 7%, transparent 19%);
}

.visual-troxler::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 43px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 6px;
  background: var(--ink);
  content: "";
}

.visual-troxler::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 43px;
  transform: translate(-50%, -50%);
  border-radius: 6px;
  background: var(--ink);
  content: "";
}

.visual-apparent {
  background: #111033;
}

.visual-apparent::before,
.visual-apparent::after {
  position: absolute;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translateY(-50%);
  border-radius: 50%;
  content: "";
}

.visual-apparent::before {
  left: 23%;
  border: 3px solid #5d597d;
  background: #242242;
}

.visual-apparent::after {
  right: 23%;
  border: 4px solid #fff0ae;
  background: #ffc94c;
  box-shadow: 0 0 0 18px rgba(255, 201, 76, 0.12), 0 0 42px rgba(255, 201, 76, 0.55);
}

.visual-apparent .visual-sample {
  position: absolute;
  top: 50%;
  right: calc(23% + 66px);
  left: calc(23% + 66px);
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
}

.experiment-card-body {
  padding: 27px 29px 31px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--coral-dark);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-meta span:first-child {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid var(--coral);
  border-radius: 50%;
}

.experiment-card h3 {
  margin: 20px 0 10px;
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
  line-height: 1.07;
  letter-spacing: -0.04em;
}

.experiment-card h3 a {
  text-decoration: none;
}

.experiment-card h3 a:hover {
  color: var(--coral-dark);
}

.experiment-card p {
  margin: 0 0 19px;
  color: var(--muted);
}

.section-method {
  overflow: hidden;
  background: var(--ink);
  color: white;
}

.method-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(50px, 9vw, 135px);
}

.section-kicker.light {
  color: var(--mint);
}

.method-intro p:last-child {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.7);
}

.method-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-steps li {
  display: grid;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  grid-template-columns: 60px 1fr;
  gap: 22px;
}

.method-steps li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.method-steps > li > span {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.method-steps h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.method-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.94rem;
}

.reading-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(35px, 6vw, 70px);
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 12px 12px 0 var(--ink);
}

.reading-card h2 {
  max-width: 21ch;
  font-size: clamp(2rem, 4vw, 4rem);
}

.reading-card p:last-child {
  max-width: 670px;
  margin-bottom: 0;
}

.page-hero,
.experiment-header {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 126px) 0;
  border-bottom: 1px solid var(--line);
}

.page-hero::after,
.experiment-header::after {
  position: absolute;
  right: -110px;
  bottom: -130px;
  width: 330px;
  height: 330px;
  border: 2px solid var(--coral);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 38px rgba(255, 111, 79, 0.09), 0 0 0 78px rgba(49, 43, 100, 0.06);
}

.page-hero h1,
.experiment-header h1 {
  max-width: 14ch;
  font-size: clamp(2.7rem, 5.8vw, 5.8rem);
}

.page-hero p:last-child,
.experiment-header > div > p:last-child {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}

.compact-hero {
  padding-block: clamp(64px, 7vw, 96px);
}

.compact-hero h1 {
  max-width: 16ch;
}

.catalog-note {
  display: grid;
  align-items: center;
  margin-bottom: 36px;
  padding: 18px 22px;
  border-left: 5px solid var(--coral);
  background: #fff2dd;
  grid-template-columns: auto 1fr;
  gap: 24px;
}

.catalog-note p {
  margin: 0;
  color: #5a4b42;
  font-size: 0.91rem;
}

.catalog-grid {
  margin-bottom: 80px;
}

.collection-copy {
  padding-top: 50px;
  border-top: 1px solid var(--line);
}

.narrow-prose {
  max-width: 800px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: var(--coral-dark);
}

.experiment-header {
  background: #ece9f8;
}

.accent-header {
  background: #fff0e6;
}

.contrast-header {
  background: #eef0f8;
}

.muller-header {
  background: #e9f6f1;
}

.kanizsa-header {
  background: #f3eee4;
}

.cafe-header {
  background: #ece5df;
}

.blindspot-header {
  background: #eef5f2;
}

.checkershadow-header {
  background: #f4eadb;
}

.troxler-header {
  background: #eaf4f2;
}

.apparent-header {
  background: #eeeaf8;
}

.experiment-stage {
  padding: clamp(54px, 7vw, 92px) 0;
  background: var(--ink);
  color: white;
}

.ebbinghaus-stage {
  background: #231f4e;
}

.contrast-stage {
  background: #19182e;
}

.muller-stage {
  background: #153f3a;
}

.kanizsa-stage {
  background: #272145;
}

.cafe-stage {
  background: #302927;
}

.blindspot-stage {
  background: #163f3b;
}

.checkershadow-stage {
  background: #292433;
}

.troxler-stage {
  background: #17413d;
}

.apparent-stage {
  background: #17152f;
}

.stage-heading {
  display: grid;
  align-items: end;
  margin-bottom: 30px;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.stage-heading h2 {
  max-width: 17ch;
  margin: 7px 0 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.stage-heading > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.stage-number {
  color: var(--mint);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.experiment-layout {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 20px;
}

.experiment-canvas-wrap {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: white;
}

.experiment-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.light-canvas {
  background: var(--paper);
}

.fixation {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 0 0 4px rgba(255, 111, 79, 0.2);
}

.control-panel {
  padding: 25px;
  background: var(--paper);
  color: var(--ink);
}

.control-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 850;
}

.test-instruction {
  display: grid;
  margin-top: 20px;
  padding: 15px 16px;
  border-left: 4px solid var(--coral);
  background: #fff0e6;
  gap: 2px;
}

.test-instruction strong {
  color: var(--coral-dark);
  font-size: 0.77rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.test-instruction span {
  color: #51464a;
  font-size: 0.82rem;
}

.reset-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--coral-dark);
  font-size: 0.79rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.range-control {
  display: block;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.range-control > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.range-control output {
  color: var(--coral-dark);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 0;
  appearance: none;
  background: #d6d1c3;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  appearance: none;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.switch-control {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 21px 0;
  font-size: 0.84rem;
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  opacity: 0;
}

.switch-control > span {
  position: relative;
  width: 43px;
  height: 24px;
  border-radius: 20px;
  background: #c9c5b9;
  transition: background 150ms ease;
}

.switch-control > span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  content: "";
  transition: transform 150ms ease;
}

.switch-control input:checked + span {
  background: var(--ink);
}

.switch-control input:checked + span::after {
  transform: translateX(19px);
}

.switch-control input:focus-visible + span {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.observation {
  margin-top: 8px;
  padding-top: 14px;
}

.observation > p:first-child {
  margin: 0 0 12px;
  font-size: 0.85rem;
}

.observation > div,
.choice-control > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.observation button,
.choice-control button {
  min-height: 39px;
  padding: 7px 10px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.observation button:hover,
.choice-control button:hover,
.choice-control button.is-selected {
  background: var(--ink);
  color: white;
}

.observation-result,
.measurement-result {
  margin: 13px 0 0;
  padding: 11px 12px;
  border-left: 3px solid var(--coral);
  background: #fff0e6;
  color: #4a3b36;
  font-size: 0.79rem;
  line-height: 1.45;
}

.choice-control {
  margin: 0;
  padding: 21px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.choice-control legend {
  margin-bottom: 11px;
  padding: 0;
  font-size: 0.83rem;
  font-weight: 800;
}

.reveal-button {
  width: 100%;
  margin-top: 22px;
}

.article-section {
  padding: clamp(72px, 9vw, 128px) 0;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(45px, 8vw, 110px);
}

.article-aside {
  align-self: start;
  padding: 22px;
  border-top: 5px solid var(--coral);
  background: var(--white);
  box-shadow: 7px 7px 0 var(--paper-deep);
}

.article-aside span {
  color: var(--coral-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-aside p {
  margin: 10px 0 0;
  color: #4c495a;
  font-size: 0.92rem;
}

.sticky-aside {
  position: sticky;
  top: 106px;
}

.prose {
  max-width: 780px;
  color: #373448;
}

.prose h2 {
  margin: 2.1em 0 0.55em;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  color: var(--ink);
}

.prose p,
.prose li {
  font-size: 1.03rem;
}

.prose li + li {
  margin-top: 8px;
}

.article-deck {
  margin-top: 0;
  color: var(--ink-soft);
  font-size: 1.2rem !important;
  font-weight: 550;
}

.source-box {
  margin-top: 45px;
  padding: 24px 27px;
  border: 1px solid var(--line);
  background: var(--white);
}

.source-box h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.source-box ul {
  margin: 0;
  padding-left: 20px;
}

.source-box li {
  font-size: 0.86rem;
}

.source-box a:hover {
  color: var(--coral-dark);
}

.article-hero {
  background: #e9f6f1;
}

.context-article-hero {
  background: #fff0e6;
}

.contours-article-hero {
  background: #f0ecf8;
}

.shadow-article-hero {
  background: #f4eadb;
}

.fading-article-hero {
  background: #eaf4f2;
}

.motion-article-hero {
  background: #eeeaf8;
}

.learn-hero {
  background: #f0ecf8;
}

.learn-intro {
  display: grid;
  align-items: end;
  margin-bottom: 42px;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
  gap: 12px 60px;
}

.learn-intro .section-kicker {
  grid-column: 1 / -1;
}

.learn-intro h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.15rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.learn-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.learning-card {
  display: flex;
  min-width: 0;
  min-height: 360px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 9px 0 rgba(17, 16, 51, 0.06);
}

.learning-card:nth-child(2) {
  background: #fff3e5;
}

.learning-card:nth-child(3) {
  background: #e9f6f1;
}

.learning-card:nth-child(4) {
  background: #f0ecf8;
}

.learning-card:nth-child(5) {
  background: #edf5ef;
}

.learning-card:nth-child(6) {
  background: #fff1df;
}

.learning-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--coral-dark);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.learning-card-top span:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--coral);
  border-radius: 50%;
}

.learning-card h2 {
  margin: 42px 0 15px;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.learning-card h2 a {
  text-decoration: none;
}

.learning-card h2 a:hover {
  color: var(--coral-dark);
}

.learning-card p {
  margin: 0 0 25px;
  color: var(--muted);
}

.learning-card .text-link {
  margin-top: auto;
}

.learn-path {
  display: grid;
  align-items: center;
  margin-top: 72px;
  padding: clamp(28px, 5vw, 55px);
  border: 2px solid var(--ink);
  background: var(--yellow);
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.75fr) auto;
  gap: 38px;
  box-shadow: 10px 10px 0 var(--ink);
}

.learn-path span {
  color: var(--coral-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.learn-path h2 {
  margin: 7px 0 0;
  font-size: clamp(1.55rem, 2.7vw, 2.5rem);
  line-height: 1.08;
}

.learn-path p {
  margin: 0;
  color: #484352;
  font-size: 0.92rem;
}

.standalone-article {
  padding-top: clamp(70px, 8vw, 108px);
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 54px;
  padding: 28px;
  border: 2px solid var(--ink);
  background: var(--yellow);
}

.article-cta span {
  color: var(--coral-dark);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.article-cta h3 {
  margin: 5px 0 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.contact-card {
  display: grid;
  align-items: center;
  padding: clamp(30px, 6vw, 64px);
  border: 2px solid var(--ink);
  background: var(--white);
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  box-shadow: 10px 10px 0 var(--mint);
}

.contact-card span {
  color: var(--coral-dark);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card h2 {
  margin: 5px 0 0;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
}

.contact-card p {
  margin: 0;
  color: var(--muted);
}

.not-found {
  min-height: 65vh;
  padding-block: clamp(90px, 12vw, 170px);
}

.not-found h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.not-found > p:not(.eyebrow) {
  margin-bottom: 30px;
  color: var(--muted);
}

.site-footer {
  padding: 54px 0 24px;
  background: #0b0a22;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 45px;
}

.brand-footer {
  color: white;
}

.footer-brand p {
  max-width: 450px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.89rem;
}

.footer-grid nav {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 7px 28px;
}

.footer-grid nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-grid nav a:hover {
  color: var(--mint);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 35px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .intro-grid,
  .method-grid,
  .article-grid,
  .learn-intro {
    grid-template-columns: 1fr;
  }

  .learning-grid {
    grid-template-columns: 1fr 1fr;
  }

  .learn-path {
    grid-template-columns: 1fr;
  }

  .learn-path .button {
    width: 100%;
  }

  .hero-grid {
    gap: 60px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-lab {
    width: min(100%, 650px);
    margin-inline: auto;
  }

  .article-aside {
    max-width: 620px;
  }

  .sticky-aside {
    position: static;
  }

  .experiment-layout {
    grid-template-columns: 1fr;
  }

  .control-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 25px;
  }

  .control-panel-title,
  .observation,
  .choice-control,
  .reveal-button,
  .measurement-result {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .shell,
  .narrow-shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 37px;
    height: 37px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 10px 14px 17px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 18px 30px rgba(17, 16, 51, 0.12);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    right: auto;
    bottom: 8px;
    left: 12px;
    width: 32px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero h1,
  .page-hero h1,
  .experiment-header h1 {
    font-size: clamp(2.7rem, 14vw, 4.15rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    display: grid;
  }

  .hero-lab {
    padding: 10px;
    transform: none;
    box-shadow: 9px 9px 0 var(--mint);
  }

  .mini-grid {
    height: 330px;
  }

  .lab-caption {
    display: grid;
  }

  .lab-caption strong {
    max-width: none;
    text-align: left;
  }

  .section-heading {
    display: grid;
  }

  .experiment-grid {
    grid-template-columns: 1fr;
  }

  .learning-grid {
    grid-template-columns: 1fr;
  }

  .learning-card {
    min-height: 0;
  }

  .experiment-visual {
    min-height: 230px;
  }

  .reading-card,
  .article-cta {
    display: grid;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .reading-card .button,
  .article-cta .button {
    width: 100%;
  }

  .catalog-note {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .stage-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .experiment-canvas-wrap,
  .experiment-canvas-wrap canvas {
    min-height: 400px;
  }

  .control-panel {
    display: block;
    padding: 20px;
  }

  .article-grid {
    gap: 35px;
  }

  .prose p,
  .prose li {
    font-size: 1rem;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-card h2 {
    overflow-wrap: anywhere;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid nav {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 430px) {
  .menu-toggle [data-menu-label] {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .hero h1,
  .page-hero h1,
  .experiment-header h1 {
    font-size: clamp(2.45rem, 13.5vw, 3.45rem);
  }

  .experiment-card-body {
    padding: 23px 21px 26px;
  }

  .experiment-canvas-wrap,
  .experiment-canvas-wrap canvas {
    min-height: 340px;
  }

  .footer-grid nav {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
