.edu-research {
  --edu-ink: #232323;
  --edu-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --edu-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  padding: 48px 0;
  background: #fff;
  color: var(--edu-ink);
  scroll-margin-top: 96px;
}

.edu-wrap {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.edu-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(24px, 4.35vw, 64px);
}

.edu-intro h2 {
  margin: 0;
  color: var(--edu-ink);
  font: 400 clamp(30px, 3.4vw, 44px) / 1.09 var(--edu-display);
  letter-spacing: -.01em;
  text-wrap: balance;
}

.edu-intro p {
  max-width: 56ch;
  margin: 0;
  color: #737373;
  font: 400 14px / 1.45 var(--edu-text);
  text-wrap: pretty;
}

.edu-figure { margin: 48px 0 0; }

.edu-scene {
  --edu-device-top: 9%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr);
  gap: clamp(14px, 2.15vw, 28px);
  align-items: stretch;
  isolation: isolate;
  font-family: var(--edu-text);
}

.edu-panel {
  position: relative;
  min-width: 0;
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  background: #f0f0f0;
}

.edu-panel-desktop {
  display: grid;
  align-self: start;
  place-items: center;
  aspect-ratio: 16 / 9;
}
.edu-icon-defs { position: absolute; pointer-events: none; }

.edu-panel svg:not(.edu-status-icons) {
  display: block;
  flex: none;
  width: 1.08em;
  height: 1.08em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edu-workspace {
  display: grid;
  grid-template-columns: 4.25em minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  box-sizing: border-box;
  width: 94%;
  aspect-ratio: 16 / 9;
  padding: .5em .5em .5em 0;
  border: 1px solid #353535;
  border-radius: 1.3em;
  background: #121212;
  box-shadow: 0 .75em 2em #1717171f;
  color: #171717;
  font: 400 1.17cqw / 1.45 Geist, var(--edu-text);
  transform: translateY(5%);
}

.edu-app-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .18em;
  min-height: 0;
  padding: .65em .22em .28em;
  color: #bababa;
}

.edu-app-rail img { width: 1.75em; height: 1.75em; margin: .28em 0 .86em; filter: brightness(0) invert(1); }
.edu-app-rail > span {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .36em;
  min-height: 4.8em;
  width: 100%;
  font-size: .625em;
  white-space: nowrap;
}

.edu-app-rail > span:first-of-type {
  border-radius: .8em;
  background: #2b2b2b;
  color: #fff;
}

.edu-app-rail > span svg:not(.edu-status-icons) { width: 1.8em; height: 1.8em; }

.edu-app-account {
  display: grid;
  justify-items: center;
  gap: .2em;
  margin-top: auto;
  color: #bababa;
  line-height: 1.2;
}

.edu-app-account b { color: #fff; font-size: .75em; font-weight: 500; }
.edu-app-account small { font-size: .56em; }
.edu-app-account i {
  display: grid;
  place-items: center;
  width: 2.85em;
  height: 2.85em;
  margin-top: .45em;
  border: 1px solid #565656;
  border-radius: 50%;
  background: #353535;
  color: #fff;
  font: 600 .63em / 1 Geist, var(--edu-text);
}

.edu-app-body {
  display: grid;
  grid-template-columns: 16.25em minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: .95em;
  background: #fff;
}

.edu-history {
  min-width: 0;
  overflow: hidden;
  padding: 0 .625em .75em;
  border-right: 1px solid #e9e9e9;
  background: #f7f7f7;
  color: #555555;
}

.edu-history-head {
  display: flex;
  align-items: center;
  gap: .62em;
  min-height: 3.75em;
  padding: .3em .45em 0;
}

.edu-history-head b {
  flex: 1;
  color: #171717;
  font-size: 1.05em;
  font-weight: 550;
  letter-spacing: -.035em;
}

.edu-history > p { margin: .45em .7em .46em; color: #6f6f6f; font-size: .72em; }
.edu-history ul { margin: 0; padding: 0; list-style: none; }
.edu-history li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35em;
  min-height: 3.1em;
  padding: .48em .8em;
  border-radius: .7em;
  font-size: .75em;
}

.edu-history li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edu-history li.edu-history-current { background: #e9e9e9; color: #171717; font-weight: 500; }

.edu-research-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22.5em;
  min-width: 0;
  min-height: 0;
}

.edu-thread {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
}

.edu-app-head {
  display: flex;
  align-items: center;
  gap: .55em;
  min-height: 3.2em;
  padding: .44em .76em;
  border-bottom: 1px solid #eaeaea;
  color: #6f6f6f;
  white-space: nowrap;
}

.edu-app-head b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #171717;
  font-size: .91em;
  font-weight: 600;
  text-overflow: ellipsis;
}

.edu-app-control {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  flex: none;
  border: 1px solid #dddddd;
  border-radius: .48em;
  background: #efefef;
  color: #2a2a2a;
}

.edu-app-chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: .45em;
  padding: .55em .8em;
  border: 1px solid #dfdfdf;
  border-radius: .62em;
  background: #fff;
  color: #171717;
  font-size: .75em;
  white-space: nowrap;
}

.edu-simulation { color: #6f6f6f; font-size: .65em; }

.edu-desktop-chat {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 1.24em 1.6em .75em;
  scrollbar-width: thin;
}

.edu-desktop-chat p { margin: 0; }
.edu-user-message {
  width: fit-content;
  max-width: 86%;
  margin-inline-start: auto;
  padding: .82em .96em;
  border-radius: 1em 1em .28em 1em;
  background: #eeeeee;
  line-height: 1.56;
}

.edu-chat-file {
  display: flex;
  align-items: center;
  gap: .44em;
  width: fit-content;
  max-width: 100%;
  margin-bottom: .55em;
  padding: .35em .55em;
  border: 1px solid #dddddd;
  border-radius: .49em;
  background: #f7f7f7;
  color: #5a5a5a;
  font-size: .72em;
  overflow-wrap: anywhere;
}

.edu-chat-answer { margin-top: 1.42em; line-height: 1.62; }
.edu-chat-answer p + p { margin-top: .5em; }
.edu-chat-answer strong { font-weight: 600; }
.edu-chat-trust {
  display: flex;
  justify-content: space-between;
  gap: .6em;
  margin-top: .8em;
  padding-top: .63em;
  border-top: 1px solid #eaeaea;
  color: #6f6f6f;
  font-size: .78em;
}

.edu-chat-trust > :first-child { color: #5e5e5e; font-weight: 500; }
.edu-chat-actions { display: flex; gap: .83em; margin-top: .62em; color: #6f6f6f; font-size: .9em; }

.edu-process {
  margin-top: .98em;
  padding: .64em .78em;
  border: 1px solid #eaeaea;
  border-radius: .8em;
  background: #f7f7f7;
  color: #6f6f6f;
  font-size: .81em;
}

.edu-process-bar { display: flex; align-items: center; gap: .67em; white-space: nowrap; }
.edu-process-bar strong { color: #171717; font-weight: 600; }
.edu-process-status { margin-left: auto; }
.edu-process .edu-steps { gap: .34em; margin-top: .56em; padding-left: 1.43em; font-size: .94em; }
.edu-process .edu-steps li::before { left: -1.25em; }

.edu-composer {
  margin: 0 1.6em 1.1em;
  padding: .9em 1em .7em;
  border: 1px solid #dddddd;
  border-radius: 1.43em;
  background: #fff;
  box-shadow: 0 .14em .4em #17171706;
  color: #767676;
}

.edu-composer-tools { display: flex; align-items: center; gap: .83em; margin-top: 1.65em; }
.edu-composer-tools .edu-app-chip { border-radius: 999px; color: #686868; }
.edu-composer-cost { margin-left: auto; font-size: .72em; white-space: nowrap; }
.edu-composer-send {
  display: grid;
  place-items: center;
  width: 2.7em;
  height: 2.7em;
  flex: none;
  border-radius: .62em;
  background: #eeeeee;
  color: #7c7c7c;
}

.edu-reader {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  border-left: 1px solid #eaeaea;
  background: #fff;
}

.edu-reader-bar {
  display: flex;
  justify-content: space-between;
  gap: .5em;
  padding: 1em 1.2em .62em;
  color: #6f6f6f;
  font-size: .78em;
}

.edu-source-view {
  overflow: auto;
  margin-inline: 1em;
  padding: .85em .9em;
  align-self: start;
  max-height: 100%;
  border: 1px solid #eaeaea;
  border-radius: .52em;
  background: #f7f7f7;
  font-size: .85em;
}

.edu-source-title {
  display: flex;
  align-items: center;
  gap: .53em;
  margin-bottom: .62em;
  font: 500 .91em / 1.4 GeistMono, Geist, var(--edu-text);
}

.edu-source-title b { font-weight: 500; }
.edu-source-name { margin: 0; color: #171717; font-weight: 500; line-height: 1.5; }
.edu-source-meta { margin: .43em 0 0; color: #6f6f6f; font-size: .91em; }
.edu-source-quote {
  margin: .86em 0 .74em;
  padding: .56em 0 .56em .73em;
  border-left: 2px solid #dddddd;
  color: #444444;
  line-height: 1.58;
}

.edu-source-quote mark { background: #ededed; color: inherit; }
.edu-source-link {
  display: inline-flex;
  align-items: center;
  gap: .42em;
  min-height: 2.15em;
  padding: .28em .65em;
  border: 1px solid #dddddd;
  border-radius: .45em;
  background: #fff;
  color: #171717;
  text-decoration: none;
  font-size: .91em;
}

.edu-source-link:hover { background: #eeeeee; }
.edu-source-link:focus-visible { outline: 2px solid #494949; outline-offset: 2px; }

.edu-source-properties {
  display: flex;
  align-items: center;
  gap: .56em;
  min-width: 0;
  padding: .85em 1.2em;
  border-top: 1px solid #eaeaea;
  color: #6f6f6f;
  font-size: .8em;
  white-space: nowrap;
}

.edu-source-properties b { color: #171717; font-weight: 600; }
.edu-source-properties span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.edu-panel-desktop .edu-reference {
  display: inline-grid;
  min-width: 1.48em;
  min-height: 1.44em;
  place-items: center;
  padding-inline: .18em;
  border: 1px solid #dddddd;
  border-radius: .29em;
  background: #f4f4f4;
  color: #494949;
  font: 500 .78em / 1 Geist, var(--edu-text);
  vertical-align: .12em;
}

.edu-panel-phone .edu-reference {
  display: inline-flex;
  justify-content: center;
  min-width: 1.5em;
  margin-inline-start: .2em;
  border-radius: .28em;
  background: #ebebeb;
  color: #494949;
  font: 600 .78em / 1.5 Geist, var(--edu-text);
  vertical-align: .14em;
}

/* Highlights follow the metal edge, with a separate black display gasket. */
.edu-phone {
  position: absolute;
  top: var(--edu-device-top);
  left: 9%;
  width: 82%;
  aspect-ratio: 9 / 19.5;
  padding: 2.05cqw;
  border: 1px solid #252525;
  border-radius: 16cqw;
  background: linear-gradient(152deg, #636363 0%, #252525 10%, #111 32%, #111111 76%, #4d4d4d 100%);
  box-shadow: 0 .6cqw .9cqw #1115, inset 0 0 0 .37cqw #a0a0a0;
}

.edu-phone::before {
  position: absolute;
  z-index: 2;
  inset: .65cqw;
  border: .35cqw solid #5a5a5a;
  border-top-color: #a4a4a4;
  border-bottom-color: #2d2d2d;
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.edu-phone::after {
  position: absolute;
  top: 31%;
  right: -.68cqw;
  width: .84cqw;
  height: 16.8cqw;
  border-radius: .36cqw;
  background: linear-gradient(90deg, #1b1b1b, #858585 75%, #3a3a3a);
  content: "";
}

.edu-phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: .6cqw solid #090909;
  border-radius: 13.75cqw;
  background: #fff;
  color: #262626;
  font: 400 clamp(6.5px, 3.17cqw, 12px) / 1.46 var(--edu-text);
}

.edu-phone-status {
  position: relative;
  display: flex;
  height: 11.55cqw;
  align-items: flex-start;
  justify-content: space-between;
  padding: 3.5cqw 5.4cqw 0 10.75cqw;
  color: #121212;
  font-size: clamp(6.5px, 3.3cqw, 12px);
  line-height: 1.4;
}

.edu-phone-camera {
  position: absolute;
  top: 2.46cqw;
  left: 50%;
  width: 31%;
  height: 6.75cqw;
  transform: translateX(-50%);
  border: 1px solid #1d1d1d;
  border-radius: 999px;
  background: radial-gradient(circle at 86% 50%, #212121 0%, #080808 5%, #020202 10%);
}

.edu-status-icons { width: 14.85cqw; height: 3.66cqw; margin-top: .54cqw; }

.edu-phone-nav {
  display: flex;
  height: 9.6cqw;
  align-items: center;
  justify-content: space-between;
  padding-inline: 4.05cqw;
}

.edu-phone-nav img {
  width: 3.66cqw;
  height: 3.66cqw;
  object-fit: contain;
  filter: brightness(0);
}

.edu-phone-nav svg:not(.edu-status-icons) { width: 4.15cqw; height: 4.15cqw; }

.edu-phone-chat { padding: 2.85cqw 3.4cqw 0; }

.edu-phone-chat p { margin: 0; }
.edu-phone-chat .edu-prompt {
  margin-inline: 1.15em .15em;
  padding: .79em .95em;
  border-radius: 1.34em;
  background: #f1f1f1;
}

.edu-phone-chat .edu-reply { margin-top: 1.22em; }

.edu-steps-title {
  display: flex;
  align-items: center;
  gap: .52em;
}

.edu-phone-chat .edu-steps-title { margin-top: .7em; }
.edu-steps-title svg { color: #828282; }
.edu-steps-title strong { font-weight: 600; }
.edu-steps-title .edu-chevron { width: .9em; height: .9em; }

.edu-steps {
  position: relative;
  display: grid;
  gap: .76em;
  margin: .85em 0 0;
  padding: 0 0 0 2.25em;
  list-style: none;
  color: #7b7b7b;
}

.edu-steps::before {
  position: absolute;
  inset: .1em auto 0 .25em;
  width: 1px;
  background: #efefef;
  content: "";
}

.edu-steps li {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .46em;
  padding-inline-end: .55em;
}

.edu-steps li::before {
  position: absolute;
  top: .54em;
  left: -1.54em;
  width: .33em;
  height: .33em;
  border-radius: 50%;
  background: #d9d9d9;
  content: "";
}

.edu-scene[data-edu-stage="1"] [data-edu-step="1"],
.edu-scene[data-edu-stage="2"] [data-edu-step="2"],
.edu-scene[data-edu-stage="3"] [data-edu-step="3"],
.edu-scene[data-edu-stage="4"] [data-edu-step="3"] { color: #282828; font-weight: 600; }

.edu-phone-chat .edu-step-detail {
  margin: .63em 0 0 2.25em;
  color: #868686;
}

.edu-output {
  display: flex;
  align-items: center;
  gap: .65em;
  margin-top: .85em;
  padding: .65em .74em;
  border: 1px solid #e7e7e7;
  border-radius: .65em;
  background: #f7f7f7;
}

.edu-output svg { color: #686868; }
.edu-output b { display: block; font-size: .94em; font-weight: 600; }
.edu-output small { display: block; color: #696969; font-size: .8em; }

.edu-scene [data-edu-reveal] { transition: opacity .45s, transform .45s; }
.edu-scene[data-edu-stage="1"] .edu-source-view { visibility: hidden; }
.edu-scene:is([data-edu-stage="1"], [data-edu-stage="2"]) .edu-chat-answer {
  height: 0;
  margin-top: 0;
  overflow: hidden;
}

.edu-scene[data-edu-stage="1"] [data-edu-reveal],
.edu-scene[data-edu-stage="2"] :is([data-edu-reveal="3"], [data-edu-reveal="4"]),
.edu-scene[data-edu-stage="3"] [data-edu-reveal="4"] {
  transform: translateY(.25em);
  opacity: 0;
}

.edu-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.edu-accessible:focus-within {
  position: static;
  width: auto;
  height: auto;
  margin-top: 12px;
  clip-path: none;
}

.edu-accessible a { text-decoration: underline; }

@media (max-width: 820px) {
  .edu-figure { margin-top: 36px; }
}

@media (max-width: 760px) {
  .edu-scene {
    --edu-device-top: 7%;
    grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr);
  }
  .edu-phone-chat .edu-steps { gap: .53em; }
  .edu-phone-chat .edu-reply { margin-top: .94em; }
  .edu-phone-chat .edu-output { margin-top: .6em; }
}

@media (width > 620px) {
  .edu-workspace {
    position: absolute;
    top: var(--edu-device-top);
    left: 3%;
    transform: none;
  }
}

@media (max-width: 620px) {
  .edu-research { padding: 40px 0; scroll-margin-top: 82px; }
  .edu-wrap { width: calc(100% - 36px); }
  .edu-intro { display: block; }
  .edu-intro h2 { text-wrap: wrap; max-width: 320px; }
  .edu-intro p { margin-top: 12px; }
  .edu-figure { margin-top: 26px; }
  .edu-scene { grid-template-columns: minmax(0, 1fr); }
  .edu-panel-phone { justify-self: center; width: min(100%, 292px); aspect-ratio: 5 / 8; }
}

@media (prefers-reduced-motion: reduce) {
  .edu-scene [data-edu-reveal] { transition: none; }
}
