.study-home {
  --home-bar-height:var(--ds-header-desktop);
  --paper: var(--ds-paper);
  --ink: var(--ds-ink);
  --leaf: var(--ds-accent);
  --muted: var(--ds-ink-secondary);
  --line: var(--ds-line);
  --olive: var(--ds-olive);
  --ivory: var(--ds-paper);
  --mono: var(--ds-font-mono);
  --display: var(--ds-font-display);
  --gutter: var(--ds-gutter);
  background: var(--paper);
  color: var(--ink);
}
.study-home header, .study-home footer { background: var(--paper); padding-inline: var(--gutter); border-color: var(--line); }
.study-home header, body.study-home .study-foot { height:var(--home-bar-height); }
.study-home .wordmark { letter-spacing: -.06em; }
.study-home nav a { font-family: var(--display); font-size: var(--ds-type-small); font-weight: 560; }
.study-home a:focus-visible, .study-home select:focus-visible { outline: var(--ds-focus-ring); outline-offset: 3px; }
.study-home small, .study-home .small, .studio-copy small { font: 550 var(--ds-type-tiny)/1.5 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--leaf); }
.scroll-study { height: 250svh; background: var(--paper); }
.study-frame {
  top: var(--ds-header-desktop); height: calc(100svh - var(--ds-header-desktop)); padding: clamp(var(--ds-space-3), 2.5vh, var(--ds-space-8)) var(--gutter) 57px;
  grid-template-columns: minmax(240px,.62fr) minmax(0,1.38fr); column-gap: clamp(var(--ds-space-4),3vw,68px);
}
.studio-copy small, .study-home .science-intro > small, .study-home .section-head > small,
.engineering-head small, .findings .side > small, .library > div > small {
  display: inline-flex; align-items: center; gap: .8em;
}
.studio-copy small::before, .science-intro > small::before, .study-home .section-head > small::before,
.engineering-head small::before, .findings .side > small::before, .library > div > small::before {
  content: ""; width: 27px; height: 1px; background: currentColor;
}
.studio-copy small span { color: var(--ds-outline); }
.studio-copy h1, .studio-copy h2 {
  font: 520 clamp(55px,6.45vw,134px)/.92 var(--display); margin: .26em 0 .32em;
  letter-spacing: -.083em; color: var(--ink); text-wrap: balance;
}
.studio-copy h1 em { font: italic 400 1.08em/.88 var(--ds-font-serif); letter-spacing: -.085em; color: var(--ds-ink-secondary); }
.studio-copy p { color: var(--muted); max-width: 30ch; line-height: 1.49; font-size: clamp(15px,1.16vw,20px); }
.study-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 14px; margin-top: clamp(var(--ds-space-5),3vh,38px); }
.study-home .study-link {
  display:inline-flex;align-items:center;justify-content:space-between;
  gap:var(--ds-space-5);min-height:var(--ds-hero-action-height);
  margin:0;padding:var(--ds-space-2) var(--ds-space-5);
  border:var(--ds-hairline) solid var(--ds-line);border-radius:0;
  background:transparent;color:var(--ds-nav-ink);
  font:600 var(--ds-type-small)/1.25 var(--display);text-decoration:none;
}
.study-home .study-link:hover, .study-home .study-link:active {
  background:var(--ds-action-wash);border-color:var(--ds-outline);
}
.screen-study-link { margin:0; color:var(--leaf); font-size:var(--ds-type-control); text-decoration:underline; }
.overview-model { height:100%; width:100%; min-height:0; isolation:isolate; }
.study-foot { bottom:13px; left:var(--gutter); right:var(--gutter); padding:6px 0 0; border-color:var(--line); gap:14px; font:500 var(--ds-type-caption)/1.3 var(--mono); color:var(--ink); }
.study-foot a { margin-left:auto; display:inline-flex; align-items:center; gap:10px; color:var(--ink); }
.view-caption { display:inline-flex; align-items:center; gap:var(--ds-space-2); }
.view-indicator { width:7px; height:7px; border-radius:50%; background:var(--leaf); }
.home-screen-control { margin-left:auto; }.home-screen-control select { border-color:var(--ds-line); background:var(--ds-surface); color:var(--ink); }
.study-home .section-nav {
  display:flex; flex-wrap:wrap; gap:var(--ds-space-3) clamp(22px,4vw,70px); padding:18px var(--gutter);
  border-block:1px solid var(--line); align-items:center; background:var(--ink); color:var(--ivory);
}
.section-nav a { text-decoration:none; }.section-nav a:hover { text-decoration:underline; }
.study-home .hypotheses, .study-home .engineering-notes, .study-home .evidence, .study-home .findings, .study-home .library {
  padding:clamp(60px,7vw,130px) var(--gutter); background:var(--paper);
}
.study-home .hypotheses, .study-home .evidence, .study-home .findings, .study-home .library {
  display:grid; grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr); gap:clamp(var(--ds-space-8),6vw,120px);
}
.study-home .science-intro, .study-home .findings .side { position:sticky; top:92px; align-self:start; }
.study-home .hypotheses h2,.study-home .engineering-notes h2,.study-home .evidence h2,.study-home .findings h2,.study-home .library h2 {
  font:500 clamp(47px,5.2vw,104px)/.98 var(--display); letter-spacing:-.077em; margin:var(--ds-space-5) 0 var(--ds-space-6); text-wrap:balance;
}
.study-home .hypotheses p, .study-home .engineering-notes p, .study-home .evidence p, .study-home .findings p, .study-home .library p {
  font:400 clamp(15px,1.07vw,19px)/1.55 var(--display); max-width:54ch; color:var(--muted);
}
.study-home :is(.research-questions,.data,.note-grid,.chapters) h3 {
  font:550 clamp(23px,2vw,36px)/1.08 var(--display); letter-spacing:-.055em; margin:var(--ds-space-3) 0;
}
.science-intro > a, .study-home article > a,.engineering-head > a { display:inline-block; font:550 var(--ds-type-control)/1.5 var(--display); color:var(--leaf); margin:var(--ds-space-4) 0 0; text-underline-offset:4px; }
.research-questions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:44px clamp(18px,2.3vw,var(--ds-space-10)); }
.research-questions article, .note-grid article { padding:0; border:0; }
.research-plate { margin:0; }
.research-plate img { display:block; width:100%; height:100%; object-fit:cover; }
.research-plate figcaption { font:500 var(--ds-type-tiny)/1.45 var(--mono); padding:var(--ds-space-2) 0 0; letter-spacing:.02em; color:var(--muted); }
.research-questions .research-plate { aspect-ratio:1.48; margin-bottom:var(--ds-space-4); overflow:hidden; background:var(--ds-stage); border-radius:var(--ds-radius-control); }
.research-questions article:nth-child(3) .research-plate img { object-fit:contain; background:var(--ds-surface-muted); }
.research-questions .photo-caption { display:block; font:var(--ds-type-tiny)/1.5 var(--mono); color:var(--muted); }
.study-home .evidence { background:var(--ds-dark); color:var(--ivory); align-items:start; }
.study-home .evidence p,.study-home .evidence figcaption { color:var(--ds-ink-on-dark-muted); }
.study-home .evidence small { color:var(--olive); }
.section-drawing { max-width:370px; }
.section-drawing img { height:clamp(250px,28vw,365px); object-fit:contain; background:var(--ds-surface-muted); border-radius:var(--ds-radius-control); }
.data article:first-child { border-top:1px solid var(--ds-line-on-dark); } .study-home .data article { padding-block:var(--ds-space-6) var(--ds-space-8); border-color:var(--ds-line-on-dark); }
.study-home .data h3 { color:var(--ivory); }
.engineering-head { display:flex; align-items:end; justify-content:space-between; gap:22px; }
.engineering-head > a { margin-bottom:25px; }
.study-home .note-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(var(--ds-space-4),2.4vw,45px); margin:var(--ds-space-5) 0 0; }
.note-grid .research-plate { height:clamp(150px,17vw,340px); margin-bottom:19px; border-radius:var(--ds-radius-control); overflow:hidden; }
.note-grid .research-plate img { object-position:center; }
.note-grid article:nth-child(2) img { object-fit:contain; background:var(--ds-stage); }
.study-home .findings { background:var(--ds-surface-muted); }
.study-home .chapters article { border-color:var(--ds-line); padding:23px 0 var(--ds-space-8); }
.study-home .library { background:var(--ds-paper); }
.library-plate { margin-top:28px; max-width:300px; }
.library-plate img { border-radius:3px; height:180px; object-fit:cover; }
.study-home .links a { padding:var(--ds-space-5) 0; border-color:var(--ds-line); }
.study-home .links a span:first-child { white-space:normal; font:500 clamp(var(--ds-type-lead),1.65vw,30px)/1.1 var(--display); color:var(--ink); }
.study-home .links a span:last-child { font:400 19px var(--display); }
@media (min-width:1600px) { .study-frame {grid-template-columns:minmax(0,.61fr) minmax(0,1.39fr);} }
@media (max-width:920px) {
  .research-questions { gap:var(--ds-space-8) 15px; }
  .study-home .hypotheses { grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr); gap:var(--ds-space-6); }
  .study-home .note-grid { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:34px; }
  .note-grid .research-plate { height:25vw; }
}
@media (max-width:700px) {
  .study-home { --home-bar-height:var(--ds-header-compact); }
  .study-home header nav { gap:14px; }.study-home header nav a { font-size:var(--ds-type-meta); }
  .study-frame {
    top:var(--ds-header-compact); height:calc(100svh - var(--ds-header-compact)); grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr);
    padding:var(--ds-space-3) var(--gutter) 52px; gap:var(--ds-space-3);
  }
  .studio-copy h1,.studio-copy h2 {font-size:clamp(39px,8.9vw,60px); margin:var(--ds-space-1) 0 7px; line-height:.98; text-wrap:initial;}
  .studio-copy h1 br { display:none; }
  .studio-copy p { font-size:var(--ds-type-small); line-height:1.34; max-width:47ch; }
  .studio-copy small { font-size:9px; }
  .study-actions { margin-top:11px; flex-direction:row; align-items:center; flex-wrap:wrap; gap:10px 18px; }
  .screen-study-link { font-size:var(--ds-type-meta); }
  .view-caption { display:none; }
  .home-screen-control { margin-left:0; }
  .study-foot { bottom:11px; }
  .study-home .section-nav { padding-block:14px; gap:10px 18px; }
  .study-home .section-nav a { font-size:var(--ds-type-meta); }
  .study-home .hypotheses,.study-home .evidence,.study-home .findings,.study-home .library { grid-template-columns:minmax(0,1fr); gap:28px; }
  .study-home .hypotheses h2,.study-home .engineering-notes h2,.study-home .evidence h2,.study-home .findings h2,.study-home .library h2 { margin:var(--ds-space-3) 0 var(--ds-space-5); font-size:clamp(39px,8.3vw,56px); }
  .science-intro h2 br { display:none; }
  .study-home .science-intro,.study-home .findings .side { position:static; }
  .engineering-head { display:block; }
  .engineering-head > a { margin:0; }
  .section-drawing { max-width:100%; max-height:200px; display:flex; align-items:end; gap:15px; }.section-drawing img { width:auto; max-width:55%; height:140px; }
  .study-home .library-plate img { height:150px; }
}
@media (max-width:450px) {
  .study-home .research-questions,.study-home .note-grid { grid-template-columns:minmax(0,1fr); gap:28px; }
  .research-questions .research-plate,.note-grid .research-plate { height:177px; aspect-ratio:auto; }
  .research-questions article:first-child .research-plate img,.note-grid article:first-child img {object-fit:contain;background:var(--ds-stage);}
}
@media (max-height:570px) and (min-width:590px) {
  .study-frame { grid-template-columns:minmax(165px,.62fr) minmax(0,1.38fr); grid-template-rows:minmax(0,1fr); padding:7px var(--gutter) 38px; gap:var(--ds-space-3); }
  .studio-copy h1,.studio-copy h2 { font-size:clamp(32px,4.2vw,48px); }
  .studio-copy p {font-size:var(--ds-type-meta);}.study-actions {margin-top:6px;gap:var(--ds-space-1);}
  .screen-study-link{font-size:var(--ds-type-caption);}
  .study-foot{bottom:5px;}
}
.sample-path { max-width:415px; margin-top:var(--ds-space-6); border-top:1px solid var(--ds-line); }
.sample-path figcaption { display:block; padding:10px 0 var(--ds-space-3); color:var(--muted); font:500 var(--ds-type-tiny) var(--mono); }
.sample-path ol { display:grid; grid-template-columns:repeat(3,1fr); list-style:none; margin:0; padding:0; }
.sample-path li { position:relative; font:550 clamp(15px,1.3vw,21px)/1.12 var(--display); letter-spacing:-.035em; border-left:1px solid var(--ds-outline); padding:1px 17px 1px 10px; }
.sample-path li:not(:last-child)::after { content:"→"; position:absolute; top:50%; right:5px; transform:translateY(-50%); font-weight:400; color:var(--ds-ink-secondary); }
@media (prefers-reduced-motion:reduce) { .study-home {scroll-behavior:auto;} }
.home-component-directory{width:100%;padding:clamp(35px,6vw,85px) var(--gutter);border-top:1px solid var(--line)}
.directory-title{display:inline-block;color:inherit;text-decoration:none}
.home-component-directory h2{font:400 clamp(2rem,4vw,4.3rem)/1.05 var(--ds-font-serif);letter-spacing:-.055em;margin:0}
.home-component-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4%;margin-top:2rem}
.home-component-links h3{font:600 1.05rem/1.3 var(--ds-font-ui);margin:0 0 .6rem}
.home-component-links a{display:block;width:fit-content;margin:.4rem 0}
@media(max-width:640px){.home-component-links{grid-template-columns:1fr;gap:1.25rem}}

/* Give the stage and its full-bleed controls independent grid rows. */
.study-home .study-frame {
  grid-template-rows:minmax(0,1fr) auto;
  row-gap:var(--ds-space-6);
  padding-bottom:0;
}
.study-home .study-foot {
  position:static;grid-column:1/-1;
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:var(--ds-space-6);margin-inline:calc(-1 * var(--gutter));
  padding:var(--ds-space-3) var(--gutter);
  color:var(--ds-ink);background:var(--ds-surface);
  font:500 var(--ds-type-control)/1.3 var(--ds-font-mono);
}
.study-home .home-screen-control {margin:0;gap:var(--ds-space-3);font:600 var(--ds-type-small)/1.25 var(--ds-font-ui);}
.study-home .home-screen-control select {field-sizing:content;inline-size:auto;min-inline-size:var(--ds-screen-state-min);max-inline-size:100%;justify-self:start;}
.study-home .study-foot a {justify-self:end;margin:0;font:600 var(--ds-type-small)/1.25 var(--ds-font-ui);}
@media(max-width:700px){
  .study-home .study-frame {grid-template-rows:auto minmax(0,1fr) auto;row-gap:var(--ds-space-4);}
  .study-home .study-foot {grid-template-columns:minmax(0,1fr) auto;gap:var(--ds-space-3);}
  .study-home .home-screen-control {display:grid;gap:var(--ds-space-1);min-width:0;font-size:var(--ds-type-control);}
  .study-home .study-foot a {text-align:end;gap:var(--ds-space-1);font-size:var(--ds-type-control);}
}
@media (max-height:570px) and (min-width:590px){
  .study-home .study-frame {grid-template-rows:minmax(0,1fr) auto;row-gap:var(--ds-space-3);}
  .study-home .study-foot {padding-block:var(--ds-space-1);}
}
@media(max-width:370px){
  .study-home .study-foot {grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);}
}
@media(max-width:370px){
  .study-home .study-foot {grid-template-columns:1fr auto;gap:var(--ds-space-1) var(--ds-space-3);}
  .study-home .home-screen-control {display:contents;}
  .study-home .home-screen-control select {grid-column:1/-1;grid-row:2;}
  .study-home .study-foot a {grid-column:2;grid-row:1;}
}
@media(max-width:370px) and (max-height:650px){
  .study-home .studio-copy h1,.study-home .studio-copy h2 {font-size:2rem;}
  .study-home .studio-copy p {font-size:var(--ds-type-control);}
  .study-home .study-actions {display:flex;flex-flow:row wrap;align-items:center;gap:var(--ds-space-2);}
  .study-home .study-actions .screen-study-link {margin:0;}
}

.study-home :is(.research-questions,.library-plate) .research-plate,
.study-home .research-questions article .research-plate img,
.study-home .library-plate img {
  background:var(--ds-product-glass);border-radius:0;object-fit:contain;
}
@media(min-width:110rem) {
  .studio-copy .intro-copy,.studio-copy .exploded-copy {max-width:42rem;margin-inline:auto;}
  .study-home .home-grid p {max-width:var(--ds-reading-measure);}
}
@media(min-width:701px) {
  .studio-copy .intro-copy h1 {font-size:clamp(3rem,min(5.6vw,8.5svh),6.5rem);}
}
