/* A visual index of models and tools, with optional depth. */
.research-study-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  color: var(--link);
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/source-sans-3-600.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/dm-mono-400.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --paper: #f4f6f7;
  --ink: #24333d;
  --muted: #5e6d77;
  --line: #d2dbe0;
  --soft: #e9eef1;
  --card: #fff;
  --accent: #dce8ee;
  --link: #365e76;
  --sans: "Source Sans 3", Arial, sans-serif;
  --mono: "DM Mono", monospace;
  --gutter: 48px;
  --width: 1260px;
  --header-height: 76px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #19232b;
  --ink: #edf2f5;
  --muted: #b3bfc8;
  --line: #3d4e5a;
  --soft: #26353f;
  --card: #202d36;
  --link: #b9d6e7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #19232b;
    --ink: #edf2f5;
    --muted: #b3bfc8;
    --line: #3d4e5a;
    --soft: #26353f;
    --card: #202d36;
    --link: #b9d6e7;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.08;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
img,
video {
  display: block;
  max-width: 100%;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 5px;
}
.wrap,
.site-header__inner {
  width: min(var(--width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -100px;
  z-index: 20;
  background: var(--accent);
  color: #24333d;
  padding: 12px 20px;
}
.skip-link:focus {
  top: 10px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.065em;
  text-transform: none;
  color: var(--muted);
}
/* Masthead */
.site-header__inner {
  height: 96px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.site-name {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.6px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-name__detail {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.site-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.site-nav a {
  font-size: 15px;
  text-decoration: none;
  padding: 10px 0;
}
.site-nav a:hover,
.site-nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--link);
}
.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 21px;
  display: grid;
  place-items: center;
  flex: none;
}
.theme-toggle:hover {
  background: var(--soft);
}
html:not(.js) .theme-toggle {
  display: none;
}
.theme-toggle__glyph:empty::before {
  content: "◐";
}
.theme-toggle__label {
  display: none;
}
/* Identity and gallery */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 64px;
  align-items: center;
  padding-block: 58px 68px;
}
.hero__copy {
  padding-bottom: 15px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #698044;
  border-radius: 50%;
  margin: 0 6px 1px 0;
}
.hero h1 {
  font-size: clamp(64px, 7.2vw, 104px);
  letter-spacing: -0.064em;
  line-height: 0.97;
  margin: 27px 0 28px;
}
.hero h1 span {
  color: var(--muted);
}
.hero__text {
  font-size: 21px;
  line-height: 1.5;
  max-width: 32ch;
}
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button--primary {
  background: var(--ink);
  color: var(--paper);
}
.button:hover {
  transform: translateY(-2px);
  text-decoration: none;
  background: var(--link);
  color: var(--paper);
}
.text-link {
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-block: 8px;
}
.hero__aside {
  margin-top: 54px;
  font-size: 14px;
  color: var(--muted);
}
.gallery {
  min-width: 0;
}
.gallery__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
}
.gallery__count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.hero__spotlight {
  width: 100%;
  min-height: 390px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.gallery-panel {
  min-width: 0;
}
.gallery-panel + .gallery-panel {
  border-top: 1px solid var(--line);
}
.gallery.is-enhanced .gallery-panel + .gallery-panel {
  border: 0;
}
.gallery__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 9px;
}
.gallery__caption :is(h2, h3) {
  font-size: 23px;
  letter-spacing: -0.6px;
}
.gallery__caption p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}
.gallery__limit {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  padding: 0 22px 18px;
  max-width: 75ch;
}
.round-link {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  flex: none;
  font-size: 22px;
}
.round-link:hover {
  background: var(--accent);
  color: #24333d;
}
.gallery-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.gallery-tab {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.gallery-tab[aria-selected="true"] {
  background: var(--card);
  border-color: var(--line);
}
.gallery-tab:hover {
  background: var(--soft);
}
.gallery-tab strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
}
.gallery-tab small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  line-height: 1.6;
}
.gallery-tab__image {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  flex: none;
  background: #141815;
}
.gallery-tab__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Reveal compares saved images; it does not rerun the model. */
.compare-stage {
  background: #16232b;
  color: #edf2f5;
  position: relative;
  height: 340px;
  overflow: hidden;
}
.compare-stage__labels {
  position: absolute;
  inset: 19px 22px auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #c7cbbb;
}
.comparison {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 20px;
  height: 280px;
  margin: 26px auto 0;
  isolation: isolate;
}
.comparison img {
  height: 100%;
  width: auto;
  object-fit: contain;
}
.comparison__input,
.comparison__seam {
  display: none;
}
.compare-stage__hint {
  font-size: 12px;
  color: #c4d0d8;
  text-align: center;
  margin-top: 8px;
}
.compare-stage__hint > span {
  margin-right: 5px;
}
.js .comparison {
  width: 187px;
  display: block;
  --position: 50%;
}
.js .comparison img {
  width: 100%;
  height: 100%;
}
.js .comparison__reveal {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--position));
}
.js .comparison__seam {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 1px;
  background: #e5f5bb;
  pointer-events: none;
}
.comparison__seam span {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #24333d;
  border: 4px solid #16232b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
}
.js .comparison__input {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.comparison:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
}
html:not(.js) .compare-stage__hint {
  display: none;
}
/* Full-frame recordings and keyboard scrubbers. */
.gallery-media {
  background: #16232b;
  color: #edf2f5;
}
.gallery-media video {
  height: 294px;
  width: 100%;
  object-fit: contain;
  background: #16232b;
}
.video-controls {
  display: none;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 5px 16px;
  background: #202d36;
}
.video-demo.is-enhanced .video-controls {
  display: flex;
}
.video-play {
  border: 1px solid #647986;
  border-radius: 4px;
  background: transparent;
  min-width: 62px;
  min-height: 32px;
  font-size: 13px;
  color: #edf2f5;
}
.video-play:hover {
  background: #324854;
}
.video-controls label {
  flex: 1;
  min-width: 25px;
  display: flex;
}
.video-range {
  width: 100%;
  height: 28px;
  accent-color: var(--accent);
  margin: 0;
}
.video-time {
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}
.video-controls :focus-visible {
  outline-color: var(--accent);
}
.morphliner-media {
  background: #16232b;
  position: relative;
}
.morphliner-render {
  height: 340px;
  width: 100%;
  object-fit: cover;
}
.media-switch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: none;
  background: #202d36;
  padding: 4px;
  border: 1px solid #647986;
  border-radius: 6px;
  white-space: nowrap;
}
.js .media-switch {
  display: flex;
}
.media-switch button {
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: #d4e0e7;
  font-size: 12px;
  padding: 7px 14px;
}
.media-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: #24333d;
}
.media-switch :focus-visible {
  outline-color: white;
}
.morphliner-editor video {
  padding-top: 48px;
}
.morphliner-editor-still {
  display: flex;
  flex-direction: column;
  height: 340px;
  padding-top: 55px;
  color: #edf2f5;
  text-decoration: none;
}
.morphliner-editor-still img {
  width: 100%;
  min-height: 0;
  flex: 1;
  object-fit: contain;
}
.morphliner-editor-still span {
  display: block;
  padding: 8px 16px;
  font-size: 11px;
  text-align: right;
}
@media (min-width: 1600px) {
  .morphliner-editor-still {
    height: 390px;
  }
}
@media (max-width: 800px) {
  .morphliner-editor-still {
    height: 330px;
  }
}
/* Research context */
.research {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 40px 54px;
}
.section-heading h2 {
  font-size: 35px;
  letter-spacing: -1.2px;
  margin-top: 10px;
  max-width: 17ch;
}
.research-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.research-item + .research-item {
  border-left: 1px solid var(--line);
  padding-left: 36px;
}
.research-item__kind {
  font-size: 11px;
  font-family: var(--mono);
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 12px;
}
.research-item h3 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin-bottom: 9px;
}
.research-item > p:last-child {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.research-item a {
  color: var(--ink);
}
.research-context {
  display: grid;
  grid-template-columns: 0.82fr 2fr;
  gap: 64px;
  padding-bottom: 38px;
}
.research-context .research-item {
  max-width: 650px;
}
.research-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 60px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}
.research-feature h3 {
  font-size: clamp(32px, 3.2vw, 46px);
  letter-spacing: -0.04em;
  margin: 12px 0 20px;
}
.research-feature__copy > p:not(.eyebrow):not(.research-item__scope) {
  max-width: 40ch;
  font-size: 19px;
}
.research-feature__preview {
  display: block;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
  text-decoration: none;
}
.research-feature__preview img {
  width: 100%;
  height: auto;
}
.research-feature__preview > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 22px;
  font-size: 15px;
}
.research-feature__preview:hover > span { text-decoration: underline; }
.research-feature + .research-feature { margin-top: 38px; }
.research-feature--result { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 42px; }
.research-feature--result h3 { font-size: clamp(30px, 2.8vw, 40px); }
.research-feature--result .research-feature__copy > p + p { margin-top: 14px; }
.research-feature__copy > p.research-result-limit { font-size: 15px; color: var(--muted); margin-top: 16px; }
.research-result-figure { margin: 0; min-width: 0; }
.research-result-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: white; }
.research-result-figure figcaption { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 12px; }
.research-followup { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; }
.research-followup h4 { max-width: 42ch; margin: 8px 0 14px; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; letter-spacing: -.025em; }
.research-followup > p:not(.eyebrow) { max-width: 72ch; font-size: 17px; }
.research-followup > p.research-result-limit { margin-top: 12px; color: var(--muted); font-size: 15px; }
.research-followup > a { display: inline-block; margin-top: 16px; }
.research-evidence { margin-top: 20px; }
.research-evidence p { font-size: 15px; line-height: 1.6; margin-top: 12px; }
.research-feature--supporting { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); }
.research-feature--supporting h3 { font-size: 28px; }
.research-feature--supporting .research-feature__copy > p:not(.eyebrow):not(.research-item__scope) { font-size: 17px; max-width: 58ch; }
@media (max-width: 800px) {
  .research-context, .research-feature { grid-template-columns: 1fr; gap: 26px; }
  .research-context { padding-bottom: 28px; }
  .research-feature { padding-top: 28px; }
  .research-feature h3 br { display: none; }
  .research-feature__copy > p:not(.eyebrow):not(.research-item__scope) { font-size: 18px; }
}
.research-item__scope {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.hero__aside a {
  display: inline-block;
  color: var(--link);
  margin-top: 6px;
}
/* Short accounts and native disclosures */
.projects {
  padding-block: 76px 84px;
}
.projects__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 40px;
}
.projects__heading h2 {
  font-size: 54px;
  letter-spacing: -2px;
  max-width: none;
}
.projects__heading > p {
  font-size: 15px;
  color: var(--muted);
}
.project {
  display: grid;
  grid-template-columns: 56px minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 34px;
  border-top: 1px solid var(--line);
  padding-block: 44px;
}
.project__number {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--muted);
  padding-top: 3px;
}
.project__identity h3 {
  font-size: 37px;
  letter-spacing: -1.3px;
  margin-top: 9px;
}
.project__question {
  font-size: 18px;
  max-width: 26ch;
  margin: 14px 0 20px;
  color: var(--muted);
}
.project__requirements {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.project__lede {
  font-size: 20px;
  line-height: 1.55;
  max-width: 60ch;
}
.project-limit {
  font-size: 13px;
  color: var(--muted);
  margin-block: 18px;
}
.method-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 18px;
  background: var(--soft);
  border-radius: 5px;
  font-size: 13px;
}
.method-flow span:nth-child(even) {
  color: var(--muted);
}
.project-notes {
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.project-notes summary {
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.project-notes summary::-webkit-details-marker {
  display: none;
}
.project-notes summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  color: var(--muted);
  flex: none;
}
.project-notes[open] summary::after {
  content: "−";
}
.project-notes p {
  color: var(--muted);
  margin-bottom: 17px;
  line-height: 1.7;
}
.project-notes strong,
.project-notes a {
  color: var(--ink);
}
.inline-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  margin-top: 23px;
  background: var(--soft);
  border-radius: 6px;
  overflow: hidden;
  font-size: 15px;
}
.inline-preview img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  flex: none;
}
.inline-preview > span {
  padding: 10px 16px 10px 0;
}
.inline-preview:hover {
  background: var(--line);
}
/* Contact */
.contact {
  background: var(--accent);
  color: #24333d;
  padding-block: 65px;
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact .eyebrow {
  color: #4b5939;
}
.contact h2 {
  font-size: clamp(42px, 4.4vw, 65px);
  letter-spacing: -2.5px;
  margin-top: 14px;
}
.contact__body > p:first-child {
  font-size: 20px;
  max-width: 35ch;
}
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: -0.5px;
  text-decoration: none;
  border-bottom: 1px solid #778b52;
  padding: 14px 0 8px;
  margin-top: 8px;
}
.contact__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 14px;
}
.contact :focus-visible {
  outline-color: #24333d;
}
.site-footer {
  max-width: calc(var(--width) + 2 * var(--gutter));
  margin: auto;
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
.site-footer__links {
  display: flex;
  gap: 26px;
}
.site-footer a {
  text-decoration: none;
}
/* Demo is mounted on request and disposed when closed. */
.demo-dialog {
  width: min(1180px, calc(100vw - 32px));
  height: min(900px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.demo-dialog::backdrop {
  background: #10150ed9;
  backdrop-filter: blur(5px);
}
.demo-dialog[open] {
  display: flex;
  flex-direction: column;
}
.demo-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.demo-dialog__bar h2 {
  font-size: 20px;
}
.demo-dialog__bar h2 span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 12px;
}
.demo-dialog__bar > div {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}
.demo-close {
  background: var(--ink);
  color: var(--paper);
  padding: 9px 15px;
  border: 0;
  border-radius: 5px;
}
.demo-dialog__note {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 20px;
}
.demo-dialog__mount {
  flex: 1;
  min-height: 0;
}
.demo-dialog iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.demo-is-open {
  overflow: hidden;
}
/* Secondary pages */
.legal-page,
.error-page {
  width: min(820px, calc(100% - 2 * var(--gutter)));
  margin: 70px auto 100px;
  min-height: 50vh;
}
.legal-page h1,
.error-page h1 {
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -2px;
  margin: 15px 0 28px;
}
.legal-page h2 {
  font-size: 28px;
  margin: 38px 0 16px;
}
.legal-page h3 {
  font-size: 21px;
  margin: 24px 0 14px;
}
.legal-page p,
.error-page p {
  margin-bottom: 18px;
}
.legal-page ul {
  padding-left: 24px;
}
.legal-page li {
  margin-bottom: 12px;
}
.legal-page a,
.error-page a {
  color: var(--link);
}
.legal-page__lede,
.error-page__lede {
  font-size: 21px;
  color: var(--muted);
}
.error-page__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.legal-page code {
  overflow-wrap: anywhere;
}
.legal-page table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}
.legal-page td,
.legal-page th {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1600px) {
  .hero {
    gap: 80px;
  }
  .compare-stage,
  .morphliner-render {
    height: 390px;
  }
  .comparison {
    height: 330px;
  }
  .js .comparison {
    width: 220px;
  }
  .gallery-media video {
    height: 344px;
  }
}
@media (max-width: 1150px) {
  :root {
    --gutter: 32px;
  }
  .hero {
    gap: 34px;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }
  .hero h1 {
    font-size: 76px;
  }
  .gallery-tab {
    padding: 9px 5px;
  }
  .gallery-tab__image {
    display: none;
  }
  .gallery-tab strong {
    font-size: 15px;
  }
  .gallery-tab small {
    font-size: 10px;
  }
  .gallery__caption :is(h2, h3) {
    font-size: 21px;
  }
  .hero__aside {
    margin-top: 35px;
  }
  .research {
    gap: 35px;
    grid-template-columns: 0.8fr 2fr;
  }
  .research-list {
    gap: 24px;
  }
  .research-item + .research-item {
    padding-left: 24px;
  }
  .section-heading h2 {
    font-size: 30px;
  }
  .project {
    grid-template-columns: 36px 1fr 1.3fr;
    gap: 24px;
  }
  .project__identity h3 {
    font-size: 31px;
  }
  .contact__inner {
    gap: 35px;
  }
  .site-name__detail {
    display: none;
  }
}
@media (max-width: 800px) {
  :root {
    --gutter: 24px;
  }
  .site-header__inner {
    height: 76px;
    gap: 18px;
  }
  .site-name {
    font-size: 21px;
  }
  .site-nav {
    gap: 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 42px;
  }
  .hero__copy {
    padding: 0;
  }
  .hero h1 {
    font-size: 76px;
    line-height: 0.96;
    margin: 21px 0;
  }
  .hero h1 br {
    display: none;
  }
  .hero h1 span {
    white-space: nowrap;
  }
  .hero__text {
    max-width: 46ch;
    font-size: 20px;
  }
  .hero__aside {
    display: block;
    margin-top: 20px;
  }
  .hero__actions {
    margin-top: 24px;
  }
  .gallery__heading {
    margin-bottom: 11px;
  }
  .compare-stage,
  .morphliner-render {
    height: 330px;
  }
  .comparison {
    height: 270px;
  }
  .js .comparison {
    width: 180px;
  }
  .gallery-media video {
    height: 284px;
  }
  .gallery-tab__image {
    display: block;
  }
  .research {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 32px;
  }
  .section-heading h2 {
    max-width: none;
    font-size: 32px;
  }
  .research-list {
    gap: 28px;
  }
  .research-item + .research-item {
    padding-left: 28px;
  }
  .projects {
    padding-block: 50px;
  }
  .projects__heading h2 {
    font-size: 44px;
  }
  .project {
    grid-template-columns: 30px 1fr;
    gap: 22px;
    padding-block: 32px;
  }
  .project__body {
    grid-column: 2;
  }
  .project__identity h3 {
    font-size: 35px;
  }
  .project__question {
    max-width: none;
    margin-block: 12px 15px;
  }
  .project__lede {
    font-size: 19px;
  }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact {
    padding-block: 46px;
  }
  .contact h2 {
    font-size: 50px;
  }
  .contact__email {
    font-size: 25px;
  }
  .contact__body > p:first-child {
    max-width: 40ch;
  }
  .site-footer {
    flex-wrap: wrap;
  }
  .demo-dialog__bar h2 span {
    display: none;
  }
}
@media (max-width: 480px) {
  :root {
    --gutter: 20px;
  }
  .site-header__inner {
    gap: 14px;
    height: 74px;
  }
  .site-name {
    font-size: 19px;
  }
  .site-nav {
    gap: 14px;
  }
  .site-nav a {
    font-size: 13px;
  }
  .site-nav a span {
    display: none;
  }
  .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .hero {
    padding-top: 31px;
    gap: 30px;
  }
  .hero h1 {
    font-size: 64px;
    letter-spacing: -4px;
  }
  .hero h1 br {
    display: block;
  }
  .hero__text {
    font-size: 19px;
  }
  .hero__actions {
    gap: 21px;
  }
  .button {
    font-size: 15px;
    padding-inline: 16px;
    gap: 18px;
  }
  .text-link {
    font-size: 15px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .gallery__heading .eyebrow {
    letter-spacing: 0;
  }
  .gallery__caption {
    padding: 16px 16px 8px;
    gap: 8px;
  }
  .gallery__caption :is(h2, h3) {
    font-size: 21px;
  }
  .gallery__caption p {
    font-size: 13px;
  }
  .gallery__limit {
    padding: 0 16px 16px;
    font-size: 11px;
  }
  .round-link {
    width: 36px;
    height: 36px;
  }
  .gallery-tabs {
    gap: 5px;
    margin: 0 0 12px;
  }
  .gallery-tab {
    padding: 9px 6px;
    display: block;
  }
  .gallery-tab__image {
    width: 100%;
    height: 57px;
    margin-bottom: 7px;
  }
  .gallery-tab small {
    font-size: 9px;
  }
  .gallery-tab strong {
    font-size: 13px;
  }
  .compare-stage__labels {
    inset: 16px 16px auto;
    font-size: 9px;
  }
  .research-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .research-item + .research-item {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
  }
  .research-item__kind {
    margin-bottom: 7px;
  }
  .research-item h3 {
    font-size: 21px;
  }
  .projects__heading {
    align-items: start;
    gap: 20px;
    padding-bottom: 28px;
  }
  .projects__heading h2 {
    font-size: 40px;
    letter-spacing: -1.5px;
  }
  .projects__heading > p {
    display: none;
  }
  .project {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 15px;
  }
  .project__identity h3 {
    font-size: 33px;
  }
  .project__question {
    font-size: 17px;
  }
  .project__lede {
    font-size: 18px;
  }
  .project__body {
    grid-column: 1/-1;
  }
  .project__number {
    font-size: 11px;
  }
  .project-notes summary {
    font-size: 14px;
  }
  .method-flow {
    gap: 9px;
    font-size: 12px;
    padding: 15px;
  }
  .inline-preview img {
    width: 95px;
    height: 75px;
  }
  .inline-preview {
    gap: 12px;
  }
  .inline-preview > span {
    font-size: 14px;
  }
  .contact__email {
    font-size: 21px;
    gap: 12px;
    letter-spacing: -0.4px;
  }
  .site-footer {
    padding-block: 22px;
  }
  .site-footer__links {
    gap: 24px;
  }
  .demo-dialog {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border: 0;
    margin: 0;
  }
  .demo-dialog__bar {
    padding: 12px;
    gap: 8px;
  }
  .demo-dialog__bar > div {
    gap: 10px;
    font-size: 11px;
  }
  .demo-dialog__note {
    padding: 7px 12px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (forced-colors: active) {
  .gallery-tab[aria-selected="true"],
  .button,
  .round-link,
  .theme-toggle {
    border: 1px solid ButtonText;
  }
  .comparison__seam {
    background: CanvasText;
  }
  .comparison__seam span {
    border: 1px solid ButtonText;
  }
  .comparison:focus-within {
    outline-color: Highlight;
  }
  .media-switch button[aria-pressed="true"] {
    outline: 2px solid Highlight;
  }
}
@media print {
  .site-header,
  .gallery-tabs,
  .video-controls,
  .media-switch,
  .demo-dialog,
  .hero__actions,
  .comparison__input {
    display: none !important;
  }
  .gallery-panel[hidden],
  .morphliner-render[hidden] {
    display: block !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .hero {
    display: block;
  }
  .hero__copy {
    margin-bottom: 25px;
  }
  .research,
  .project,
  .contact__inner {
    display: block;
  }
  .project__identity {
    margin-bottom: 20px;
  }
  .contact {
    background: #eee;
  }
  .gallery,
  .project {
    break-inside: avoid;
  }
  .hero h1 {
    font-size: 56px;
  }
  .comparison__reveal {
    display: none !important;
  }
}

/* Keep image labels anchored to the material rather than the stage edges. */
.video-expand {
  color: #edf2f5;
  background: transparent;
  border: 0;
  border-left: 1px solid #647986;
  padding: 7px 0 7px 12px;
  font-size: 12px;
  flex: none;
}
.gallery-media:fullscreen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.gallery-media:fullscreen video {
  flex: 1;
  min-height: 0;
  height: calc(100% - 52px);
  padding: 0;
  object-fit: contain;
}
.gallery-media:fullscreen .video-controls {
  height: 52px;
  flex: none;
}
.gallery-media:fullscreen .video-play,
.gallery-media:fullscreen .video-expand {
  min-height: 40px;
}
.compare-stage__labels {
  left: 50%;
  right: auto;
  width: 280px;
  transform: translateX(-50%);
  top: 15px;
}
.comparison {
  margin-top: 40px;
  height: 258px;
}
.js .comparison {
  width: 172px;
}
.gallery__action {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 9px 13px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}
.gallery__action:hover {
  background: var(--accent);
  color: #24333d;
}
html:not(.js) .comparison img {
  width: calc(50% - 10px);
  min-width: 0;
  object-fit: contain;
}
@media (min-width: 1600px) {
  .comparison {
    height: 308px;
  }
  .js .comparison {
    width: 205px;
  }
}
@media (max-width: 800px) {
  .comparison {
    height: 248px;
  }
  .js .comparison {
    width: 165px;
  }
}
@media (max-width: 360px) {
  :root {
    --gutter: 16px;
  }
  .site-header__inner {
    gap: 10px;
  }
  .site-name {
    font-size: 18px;
  }
  .site-nav {
    gap: 10px;
  }
  .site-nav a {
    font-size: 12px;
  }
  .gallery-tab strong {
    font-size: 12px;
  }
  .gallery-tab small {
    font-size: 8px;
  }
}

/* Criterion-driven revision: actual work carries the visual hierarchy. */
.hero__aside {
  font-family: var(--mono);
  font-size: 12px;
}
.gallery-tab small {
  font-size: 12px;
  line-height: 1.5;
}
.gallery__count {
  font-size: 12px;
}
.compare-stage {
  height: 390px;
}
.compare-stage__labels {
  inset: 20px 30px auto;
  font-size: 12px;
  text-transform: none;
}
.compare-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  height: 285px;
  padding: 0 30px;
  margin-top: 45px;
}
.field-reference {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.field-reference img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.compare-pair .comparison {
  width: 100%;
  height: 100%;
  margin: 0;
}
.region-legend {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 12px;
  margin-top: 13px;
  color: #c4d0d8;
}
.region-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.region-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}
.region-legend .dorsal {
  background: #4c6fb3;
}
.region-legend .intermediate {
  background: #6f977e;
}
.region-legend .ventral {
  background: #c45a35;
}
.compare-stage__hint {
  margin-top: 8px;
}
.project {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-areas: "media identity" "media body";
  grid-template-rows: min-content 1fr;
  gap: 20px 60px;
  padding-block: 54px;
  align-items: start;
}
.project__number {
  display: none;
}
.project__identity {
  grid-area: identity;
}
.project__identity h3 {
  font-size: clamp(32px, 3.2vw, 46px);
}
.project__identity .eyebrow {
  font-size: 12px;
}
.project__question {
  margin-block: 12px 18px;
}
.project__body {
  grid-area: body;
}
.project__lede {
  font-size: 19px;
}
.project-visual {
  grid-area: media;
  display: block;
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  color: #24333d;
}
.project-visual__tag {
  padding: 18px 22px;
  font-family: var(--mono);
  font-size: 12px;
}
.project-visual > img {
  width: 100%;
  height: auto;
}
.project-visual__footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  font-size: 15px;
  align-items: center;
  border-top: 1px solid #ffffff20;
}
.project-visual__footer > span:last-child {
  font-size: 24px;
}
.project-visual:hover .project-visual__footer {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.project-visual--brain {
  background: #16232b;
  color: #edf2f5;
}
.project-fields {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 16px 30px 22px;
}
.project-fields img {
  width: calc(50% - 24px);
  max-width: 200px;
  height: 290px;
  object-fit: contain;
}
.project-fields > span {
  font-size: 25px;
  color: #aebb9c;
}
.project-visual--editor {
  background: #29262a;
  color: #edf2f5;
}
.project-visual--editor > img {
  margin: 20px 0;
}
.project-visual--morpher > img {
  max-height: 340px;
  object-fit: contain;
}
.project-notes summary {
  min-height: 48px;
}
.gallery__limit,
.project-limit {
  font-size: 13px;
}
html:not(.js) .field-reference {
  display: none;
}
html:not(.js) .compare-pair {
  display: block;
}
html:not(.js) .compare-pair .comparison {
  display: flex;
}
@media (min-width: 801px) {
  .project:nth-of-type(2) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    grid-template-areas: "identity media" "body media";
  }
}
@media (max-width: 1150px) {
  .project {
    column-gap: 32px;
  }
  .compare-pair {
    gap: 20px;
    padding-inline: 20px;
  }
}
@media (max-width: 800px) {
  .project {
    grid-template-columns: 1fr;
    grid-template-areas: "identity" "media" "body";
    grid-template-rows: auto;
    row-gap: 22px;
    padding-block: 36px;
  }
  .project__identity .button,
  .project__identity .project__requirements {
    display: none;
  }
  .project__identity .text-link {
    margin-top: 0;
  }
  .project__body {
    grid-column: auto;
  }
  .project-visual {
    width: 100%;
  }
  .project-fields img {
    height: 260px;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 58px;
  }
  .hero__text {
    font-size: 18px;
  }
  .gallery-tab small {
    font-size: 11px;
  }
  .gallery-tab strong {
    font-size: 13px;
  }
  .gallery-tab__image {
    display: none;
  }
  .gallery-tab {
    padding: 10px 5px;
  }
  .compare-stage {
    height: 310px;
  }
  .compare-stage__labels {
    inset: 17px 16px auto;
    font-size: 12px;
  }
  .compare-pair {
    height: 205px;
    padding-inline: 16px;
    gap: 18px;
    margin-top: 42px;
  }
  .region-legend {
    gap: 10px;
    font-size: 11px;
    margin-top: 12px;
  }
  .compare-stage__hint {
    font-size: 11px;
  }
  .gallery__limit {
    font-size: 12px;
  }
  .project-visual__tag,
  .project-visual__footer {
    padding: 14px 16px;
  }
  .project-fields {
    padding: 10px 20px 20px;
    gap: 12px;
  }
  .project-fields img {
    height: 220px;
    width: calc(50% - 16px);
  }
  .project-visual__footer {
    font-size: 14px;
  }
  .eyebrow,
  .research-item__kind {
    font-size: 12px;
  }
}

.compare-pair {
  grid-template-rows: minmax(0, 1fr);
}
.field-reference,
.compare-pair .comparison {
  min-height: 0;
}
.compare-stage .compare-stage__labels {
  left: 30px;
  right: 30px;
  width: auto;
  transform: none;
}
@media (max-width: 480px) {
  .compare-stage .compare-stage__labels {
    left: 16px;
    right: 16px;
  }
}

.project-visual--morpher video {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: #fff;
}
.project-visual--morpher .project-visual__footer {
  padding-block: 14px;
}
.project-visual--morpher:fullscreen {
  background: #16232b;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
}
.project-visual--morpher:fullscreen video {
  height: calc(100vh - 160px);
  flex: 1;
  min-height: 0;
  background: #16232b;
}
.project-visual--morpher:fullscreen .project-visual__tag,
.project-visual--morpher:fullscreen .project-visual__footer {
  color: #edf2f5;
}
@media (max-width: 480px) {
  .gallery-tab small {
    font-size: 12px;
  }
  .region-legend,
  .compare-stage__hint {
    font-size: 12px;
  }
  .project-visual--morpher video {
    height: 280px;
  }
}

.compare-pair .comparison {
  max-width: 190px;
  justify-self: center;
}
.video-controls {
  height: 56px;
}
.video-controls .video-play,
.video-controls .video-expand {
  min-height: 44px;
}
.video-controls .video-range {
  height: 44px;
}
.video-time {
  font-size: 12px;
}
@media (max-width: 480px) {
  .compare-pair .comparison {
    max-width: 137px;
  }
}

.video-controls {
  color: #edf2f5;
}

/* Morphliner: one scene, its editor, and optional supporting work. */
.morphliner-showcase {
  min-width: 0;
  background: #16232b;
  color: #edf2f5;
}
.morphliner-showcase .media-switch {
  position: static;
  transform: none;
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  gap: 5px;
  flex-wrap: wrap;
}
.morphliner-showcase .media-switch button {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 13px;
}
.morphliner-showcase .media-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: #24333d;
}
.morphliner-showcase .video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}
.morphliner-showcase video,
.morphliner-showcase .morphliner-render {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 0;
  object-fit: contain;
}
.video-start {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  border: 1px solid #ffffff50;
  border-radius: 6px;
  background: #19232b;
  color: #edf2f5;
  padding: 12px 22px;
  min-height: 48px;
  font-weight: 600;
  white-space: nowrap;
}
.video-start:hover {
  background: #324854;
}
.video-start:focus-visible {
  outline-color: #dce8ee;
}
.demo-chapters {
  display: none;
  padding: 10px 12px 0;
  gap: 6px;
}
.is-enhanced .demo-chapters {
  display: flex;
}
.demo-chapters button {
  flex: 1;
  min-height: 44px;
  padding: 8px 4px;
  border: 1px solid #647986;
  border-radius: 4px;
  background: transparent;
  color: #d6ddcf;
  font-size: 12px;
}
.demo-chapters span {
  font-family: var(--mono);
  margin-right: 5px;
}
.demo-chapters button[aria-pressed="true"] {
  border-color: #dce8ee;
  color: #dce8ee;
}
.demo-chapters :focus-visible {
  outline-color: #dce8ee;
}
.demo-caption,
.morphliner-render-view figcaption {
  padding: 12px 16px;
  color: #c7cbbb;
  font-size: 12px;
  text-align: center;
}
.morphliner-showcase .morphliner-editor-still {
  height: auto;
  padding: 0;
  background: #29262a;
}
.morphliner-showcase .morphliner-editor-still img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  flex: none;
}
.morphliner-showcase .morphliner-editor-still span {
  padding: 14px 16px;
  font-size: 12px;
}
.morphliner-demo:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.morphliner-demo:fullscreen .video-stage {
  min-height: 0;
  flex: 1;
  aspect-ratio: auto;
}
.morphliner-demo:fullscreen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.morphliner-demo:fullscreen .demo-chapters,
.morphliner-demo:fullscreen .demo-caption {
  display: none;
}
.morphliner-demo:fullscreen .video-controls {
  flex: none;
  width: 100%;
}
@media (max-width: 480px) {
  .morphliner-showcase .media-switch { padding: 8px; }
  .morphliner-showcase .media-switch button { padding-inline: 11px; }
  .morphliner-showcase .video-controls { gap: 8px; padding-inline: 10px; }
  .morphliner-showcase .video-play { min-width: 48px; }
  .morphliner-showcase .video-time { font-size: 10px; }
  .video-start { bottom: 12px; padding: 9px 16px; font-size: 14px; }
  .demo-chapters { padding-inline: 8px; }
  .demo-caption { font-size: 11px; }
}
@media (forced-colors: active) {
  .video-start, .demo-chapters button,
  .morphliner-showcase .media-switch button { border: 1px solid ButtonText; }
  .demo-chapters button[aria-pressed="true"],
  .morphliner-showcase .media-switch button[aria-pressed="true"] {
    outline: 2px solid Highlight;
    outline-offset: -3px;
  }
}


/* Reading base. The reference-led composition below replaces the rejected slate panels. */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); }
.site-header__inner { height: var(--header-height); }
.eyebrow, .research-item__kind { font-family: var(--sans); letter-spacing: 0; font-size: 13px; }

/* A brief identity, a personal interest, and a direct contact route. */
.intro { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.85fr) minmax(165px, .65fr); align-items: center; gap: 36px; padding-block: 24px; }
.intro__identity { min-width: 0; }
.intro__context { max-width: 25ch; color: var(--muted); font-size: 14px; line-height: 1.4; }
.intro h1 { margin: 8px 0 0; font-size: clamp(36px, 3.4vw, 46px); letter-spacing: -.04em; }
.intro__text { max-width: 65ch; font-size: 18px; line-height: 1.5; }
.intro__contact { padding-left: 24px; border-left: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.5; }
.intro__contact a { display: inline-block; padding-block: 6px; color: var(--link); }

/* Media arrives before the full account; its provenance stays beside it. */
.research { padding-block: 8px 44px; }
.research__heading { display: flex; justify-content: space-between; flex-wrap: wrap; padding-bottom: 18px; align-items: center; gap: 10px 28px; }
.research-index { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; line-height: 1.5; }
.research-index a { display: inline-block; padding-block: 7px; text-underline-offset: 4px; }
.section-heading h2, .projects__heading h2 { margin: 0; font-size: 28px; letter-spacing: -.025em; }
.research-feature--result { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 22px; align-items: start; }
.fly-project-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 28px; }
.research-feature--result .fly-project-heading h3 { margin: 0; font-size: 32px; letter-spacing: -.03em; }
.fly-project-heading p { flex: 1; min-width: 260px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.fly-media { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; align-items: start; scroll-margin-top: calc(var(--header-height) + 20px); }
.fly-media figure { margin: 0; min-width: 0; }
.fly-media h4, .fly-replay-preview h4 { margin: 0 0 10px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.fly-media h4 span { color: var(--muted); font-size: 14px; font-weight: 400; }
.fly-replay video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #ebf0f4; border: 1px solid var(--line); border-radius: 4px; }
.fly-replay .video-demo { overflow: hidden; border-radius: 4px; }
.fly-replay .video-time { font-size: 12px; }
.fly-replay .video-demo:fullscreen { display: flex; flex-direction: column; justify-content: center; background: #16232b; }
.fly-replay .video-demo:fullscreen video { min-height: 0; max-height: calc(100vh - 54px); object-fit: contain; border: 0; }
.fly-media figcaption, .fly-replay-preview figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.fly-media figcaption strong, .fly-replay-preview figcaption strong { font-weight: 600; color: var(--ink); }
.fly-media figcaption a, .fly-replay-preview figcaption a { color: var(--link); }
.fly-circuit > a { display: block; width: 100%; max-width: 600px; margin-inline: auto; border-radius: 4px; }
.fly-circuit img { display: block; width: 100%; height: auto; border-radius: 4px; background: #fff; }
.fly-circuit > a:hover { outline: 1px solid var(--link); outline-offset: 3px; }
.fly-circuit > a:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.fly-replay-preview { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); gap: 32px; align-items: start; margin-top: 8px; padding-block: 28px; border-top: 1px solid var(--line); }
.fly-replay-preview figure { margin: 0; min-width: 0; }
.fly-replay-preview .fly-replay-intro h4 { margin: 0 0 12px; font-size: 27px; letter-spacing: -.025em; }
.fly-replay-intro p { max-width: 43ch; font-size: 17px; line-height: 1.55; }
.fly-replay-intro .research-study-link { margin-top: 16px; }
.fly-comparison > a { display: block; width: 100%; max-width: 420px; margin-inline: auto; }
.fly-comparison img { width: 100%; height: auto; border: 0; border-radius: 4px; background: #fff; }
.research-feature--result .fly-study-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.fly-study-summary > div { min-width: 0; }
.fly-study-summary h4 { margin: 0 0 10px; font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.fly-study-summary p { max-width: 65ch; font-size: 17px; line-height: 1.55; }
.fly-study-summary .research-result-limit { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.fly-study-summary .research-study-link { margin-top: 14px; font-size: 16px; }
.research-feature--result > .research-evidence { margin-top: 0; }
.research-followup { padding-top: 22px; }
.research-feature--supporting { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 42px; }
.research-feature--supporting h3 { font-size: 30px; }
.research-feature__preview--results { width: 100%; max-width: 430px; justify-self: center; border-radius: 4px; }
.research-feature__preview--results img { display: block; }
.research-feature__preview--results > span { padding: 14px 16px; font-size: 14px; line-height: 1.45; }
.supervised-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 32px; margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
.supervised-work > h2 { max-width: 22ch; font-size: 24px; letter-spacing: -.02em; }
.supervised-work .research-item__kind { margin-bottom: 6px; }
.supervised-work .research-item h3 { font-size: 21px; }
.supervised-work .research-item p:last-child { max-width: 68ch; font-size: 16px; }

/* A selected project is one complete account, beside its own preview. Without
   JavaScript, every panel remains available in this same reading order. */
.projects { padding-block: 42px 64px; }
.projects__heading { align-items: center; gap: 28px; padding-bottom: 24px; }
.projects__heading > p { max-width: 44ch; }
.project-gallery { width: 100%; margin: 0; scroll-margin-top: calc(var(--header-height) + 18px); }
.project-gallery .hero__spotlight { min-height: 0; border-radius: 6px; }
.project-gallery .gallery-panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; align-items: start; }
.project-gallery .project-gallery__visual { min-width: 0; padding: 20px; }
.project-gallery .gallery-panel > .project { display: block; min-width: 0; border-top: 0; border-left: 1px solid var(--line); margin: 0; padding: 26px; align-self: stretch; }
.projects .project__identity { grid-area: auto; }
.projects .project__identity h3 { margin: 0; font-size: 29px; letter-spacing: -.03em; }
.projects .project__identity > .text-link { display: inline-flex; margin-top: 8px; }
.projects .project__identity .project__requirements { display: block; margin-top: 8px; font-size: 13px; }
.projects .project__body { grid-area: auto; margin-top: 20px; }
.projects .project__lede { font-size: 17px; line-height: 1.55; }
.projects .project-limit { margin-top: 14px; font-size: 14px; line-height: 1.5; }
.projects .project-notes { margin-top: 20px; }
.projects .project-notes h4 { margin-top: 24px; font-size: 17px; line-height: 1.4; font-weight: 600; }
.project-gallery .compare-pair { max-width: 760px; margin-inline: auto; }
.project-gallery .morphliner-showcase .video-stage { aspect-ratio: 16 / 9; height: auto; }
.project-gallery .morphliner-showcase .video-stage > video { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: contain; }
.project-gallery .morphliner-demo:fullscreen .video-stage { height: calc(100dvh - 160px); aspect-ratio: auto; }

.contact { background: var(--soft); color: var(--ink); padding-block: 48px; }
.contact h2 { font-size: 38px; letter-spacing: -.035em; }
.contact .eyebrow { color: var(--muted); }
.contact__email { border-color: var(--line); }
.contact :focus-visible { outline-color: var(--link); }
.demo-dialog__status { padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--soft); font-size: 14px; }
.demo-dialog__status [data-demo-recovery] { display: flex; align-items: center; gap: 22px; margin-top: 8px; }
.demo-retry { min-height: 40px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
.demo-dialog__status a { color: var(--link); }

@media (max-width: 1000px) {
  .intro { grid-template-columns: minmax(180px, .8fr) minmax(0, 1.8fr); gap: 18px 32px; }
  .intro__contact { grid-column: 2; border-left: 0; padding-left: 0; }
  .fly-media { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .project-gallery .gallery-panel { grid-template-columns: minmax(0, 1fr); }
  .project-gallery .gallery-panel > .project { border-left: 0; border-top: 1px solid var(--line); padding: 24px; }
}
@media (max-width: 800px) {
  .intro { grid-template-columns: 1fr; gap: 14px; padding-block: 24px; }
  .intro__contact { grid-column: 1; }
  .intro__context { max-width: none; }
  .intro__text { font-size: 17px; }
  .research-feature--result, .research-feature--supporting { grid-template-columns: 1fr; gap: 22px; }
  .fly-media { grid-template-columns: 1fr; gap: 26px; }
  .fly-replay-preview { grid-template-columns: 1fr; gap: 20px; }
  .research-feature--result .fly-study-summary, .supervised-work { grid-template-columns: 1fr; gap: 16px; }
  .projects__heading { display: block; }
  .projects__heading > p { margin-top: 12px; }
}
@media (max-width: 600px) {
  :root { --header-height: 96px; }
  .site-header__inner { height: var(--header-height); min-height: var(--header-height); padding-block: 6px; flex-wrap: wrap; align-content: center; gap: 0 16px; }
  .site-name { font-size: 20px; white-space: nowrap; flex: none; }
  .site-name__detail { display: none; }
  .site-nav { order: 3; flex-basis: 100%; gap: 25px; margin-left: 0; }
  .site-nav a { padding-block: 7px; }
  .theme-toggle { margin-left: auto; }
  .intro { gap: 12px; padding-block: 12px; }
  .intro h1 { margin-top: 6px; font-size: 36px; }
  .intro__context { font-size: 13px; }
  .intro__contact { font-size: 13px; }
  .intro__contact br { display: none; }
  .intro__contact a { margin-left: 6px; }
  .research { padding-top: 10px; }
  .research__heading { padding-bottom: 8px; gap: 0; }
  .research-index { gap: 2px 18px; font-size: 14px; }
  .section-heading h2, .projects__heading h2 { font-size: 26px; }
  .research-feature--result { padding-top: 10px; gap: 14px; }
  .research-feature--result .fly-project-heading h3 { font-size: 29px; }
  .fly-project-heading { display: block; }
  .fly-project-heading p { margin-top: 8px; font-size: 15px; }
  .fly-media h4 { margin-bottom: 8px; font-size: 16px; }
  .fly-media h4 span { font-size: 13px; }
  .fly-media figcaption, .fly-replay-preview figcaption { margin-top: 10px; font-size: 13px; }
  .fly-study-summary p { font-size: 16px; }
  .fly-study-summary .research-result-limit { font-size: 14px; }
  .supervised-work { margin-top: 30px; padding-top: 22px; }
  .supervised-work > h2 { max-width: none; font-size: 23px; }
  .projects { padding-block: 34px; }
  .gallery-tabs { gap: 5px; }
  .gallery-tab { padding: 8px 5px; }
  .gallery-tab strong { font-size: 12px; }
  .project-gallery .project-gallery__visual { padding: 12px; }
  .project-gallery .gallery-panel > .project { padding: 22px 18px; }
  .projects .project__identity h3 { font-size: 28px; }
  .demo-dialog__bar h2 span { display: block; margin-left: 0; margin-top: 4px; }
}
