/* Approved editorial refinement. Shared controls and page composition only;
   the V2 navigation artwork and V3 sculpture materials retain their own styles. */
:root {
  --space-section: clamp(64px, 8vw, 144px);
  --space-group: clamp(24px, 3vw, 48px);
  --text-reading: clamp(16px, 1.3vw, 20px);
  --ease-interface: cubic-bezier(0.22, 0.78, 0.17, 1);
}
:is(a, button, [tabindex]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}
main:focus {
  outline: none;
}
.skip:focus {
  z-index: 250;
}
:is(.action, .chapter-link, .ex-read, .chapter-turn button, .ex-expand, .ex-playback, .menu-toggle) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
:is(
  .scene-controls button,
  .chapter-turn button,
  .ex-playback,
  .ex-expand,
  .dialog-top button,
  .ex-index button
) {
  min-height: 44px;
  min-width: 44px;
}
.action .circle,
.perspective-card .circle,
.panel-open {
  transition:
    transform 180ms var(--ease-interface),
    background-color 180ms;
}
.action:is(:hover, :focus-visible) .circle,
.perspective-card:is(:hover, :focus-visible) .circle {
  transform: translateX(3px);
}
:is(.action, .perspective-card):active .circle {
  transform: translateX(1px) scale(0.96);
}
.chapter-link:is(:hover, :focus-visible) .panel-open {
  transform: none;
  background: #fff;
}
.eyebrow,
.section-label {
  font-size: clamp(12px, 0.9vw, 14px);
}

/* Home: one large opening, then a measured editorial rhythm. */
.hero-heading {
  gap: var(--space-group);
}
.hero-side {
  max-width: 20ch;
  line-height: 1.5;
}
.institute-section {
  padding-block: var(--space-section);
}
.institute-copy h2 {
  max-width: 20ch;
  font-size: clamp(38px, 5.4vw, 88px);
  line-height: 1.04;
}
.institute-bottom {
  margin-top: var(--space-group);
  align-items: start;
}
.institute-bottom p {
  max-width: 40ch;
  font-size: var(--text-reading);
  line-height: 1.55;
}
.institute-section .draw-line {
  opacity: 0.35;
}
.home-reel {
  isolation: isolate;
}
.home-pillar-grid {
  column-gap: clamp(24px, 4vw, 64px);
}
.home-pillar-slot .card-caption {
  align-items: start;
  padding-top: 20px;
  gap: 20px;
}
.home-pillar-slot h4 {
  font-size: clamp(22px, 2.25vw, 36px);
  line-height: 1.17;
  letter-spacing: -0.035em;
}
.home-pillar-slot h4 span {
  font-size: 12px;
  letter-spacing: 0.02em;
}
.home-pillar-slot .circle {
  width: 44px;
  height: 44px;
  font-size: 23px;
}
.patent-section {
  padding-block: var(--space-section);
  gap: var(--space-group);
}
.patent-section h2 {
  font-size: clamp(38px, 5vw, 80px);
  line-height: 1.04;
}
.patent-side p {
  font-size: var(--text-reading);
  line-height: 1.55;
  max-width: 40ch;
}
.media-section {
  padding-block: 56px;
}

/* Institute: the same foundations, presented as one readable sequence. */
.foundations {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 1.8fr);
  column-gap: clamp(48px, 9vw, 160px);
  padding: var(--space-section) var(--gutter);
  background: var(--paper);
  color: var(--ink);
  align-items: start;
}
.foundation-heading {
  position: sticky;
  top: 112px;
  padding-top: 28px;
}
.foundation-index {
  display: grid;
  gap: 8px;
  margin-top: 40px;
}
.foundation-index a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 12px 0;
  color: #59675e;
}
.foundation-index a span {
  font: 12px/1.4 monospace;
  font-variant-numeric: tabular-nums;
}
.foundation-index a[aria-current='step'] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 8px;
}
.foundation-deck {
  display: block;
  min-width: 0;
}
.foundation-deck article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: clamp(16px, 3vw, 48px);
  min-height: 52svh;
  padding: 32px 0 72px;
  border-top: 1px solid #bbc4b9;
  scroll-margin-top: 104px;
}
.foundation-deck article > b {
  font: 400 14px/1.5 monospace;
  padding-top: 10px;
  color: #59675e;
}
.foundation-deck h3 {
  font-size: clamp(42px, 5.2vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.foundation-deck ul {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  max-width: 36ch;
}
.foundation-deck li {
  padding: 12px 0;
  border-bottom: 1px solid #d1d5cd;
  font-size: var(--text-reading);
  line-height: 1.5;
}
.foundations > .action {
  grid-column: 2;
  justify-self: start;
}
.inquiry h2 {
  font-size: clamp(38px, 4.5vw, 72px);
  max-width: 12ch;
  bottom: 16%;
}
.inquiry-disciplines {
  font-size: clamp(26px, 3vw, 48px);
  top: 24%;
}
.inquiry-disciplines span {
  display: block;
}
.inquiry-note {
  font-size: var(--text-reading);
  max-width: 30ch;
  bottom: 12%;
}
body[data-page='institute'][data-institute-section='foundations']:has(.flight-pin) .header.v2-scrolled {
  background: var(--paper);
  color: var(--ink);
}
body[data-page='institute'][data-institute-section='foundations']:has(.flight-pin)
  .header.v2-scrolled
  .brand
  img {
  filter: none;
}

/* Patent: image hierarchy stays intact; labels and actions share fixed anchors. */
.exhibit-intro {
  gap: clamp(40px, 7vw, 112px);
  grid-template-columns: 1.7fr 1fr;
  margin-bottom: var(--space-group);
}
.exhibit-intro h1 {
  font-size: clamp(44px, 6vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.exhibit-intro > p {
  max-width: 36ch;
  font-size: var(--text-reading);
  line-height: 1.6;
}
.panel-number {
  max-width: calc(100% - 100px);
  line-height: 1.5;
}
.panel-open {
  width: 44px;
  height: 44px;
  font-size: 25px;
}
.exhibit-art strong {
  max-width: calc(100% - 40px);
  line-height: 1.1;
}
.exhibit-wall button:hover img {
  scale: none;
}
.patent-chapter .reading-copy {
  max-width: 60ch;
  font-size: var(--text-reading);
  line-height: 1.65;
}
.chapter-turn {
  border-top: 1px solid #aab6a7;
  padding-top: 16px;
}

/* Contributions: a quiet reading hold between two differently scaled chapters. */
.contrib-opening h1 {
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}
.coast-reading h2 {
  font-size: clamp(42px, 5.5vw, 88px);
  line-height: 1.02;
}
.contrib-opening p,
.coast-reading p {
  font-size: var(--text-reading);
  line-height: 1.55;
  max-width: 34ch;
}
.chapter-rail {
  gap: 8px;
}
.chapter-rail a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid transparent;
}
.chapter-rail a[aria-current='step'] {
  border-color: currentColor;
  background: var(--paper);
}
.photo-chapter {
  padding: var(--space-section) var(--gutter);
  gap: clamp(32px, 5vw, 80px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  min-height: auto;
}
.photo-chapter > div {
  padding: 0;
  max-width: 54ch;
}
.photo-chapter img {
  height: clamp(400px, 72svh, 900px);
  border-radius: 8px;
  object-position: 50% 42%;
}
.photo-chapter h2 {
  font-size: clamp(34px, 3.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-block: 20px 28px;
}
.photo-chapter p {
  font-size: var(--text-reading);
  line-height: 1.65;
}
.photo-chapter.shared {
  display: block;
  padding-top: 0;
}
.photo-chapter.shared img {
  width: 100%;
  height: min(76svh, 760px);
  object-position: 50% 45%;
}
.photo-chapter.shared > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 8vw;
  max-width: none;
  padding-top: 40px;
}
.photo-chapter.shared .eyebrow {
  grid-column: 1;
}
.photo-chapter.shared h2 {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0;
}
.photo-chapter.shared p {
  grid-column: 2;
  grid-row: 1 / 3;
  max-width: 54ch;
}
.photo-chapter.shared .action {
  grid-column: 2;
  justify-self: start;
  margin-top: 8px;
}

/* Contact is a settled destination with a single clear primary action. */
.contact-copy h1 {
  font-size: clamp(64px, 8.5vw, 136px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.contact-copy > p:not(.eyebrow) {
  font-size: var(--text-reading);
  max-width: 34ch;
  line-height: 1.6;
}
.contact-copy > a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}
.contact-opening > img {
  transform: none;
}
.contact-opening .contact-copy {
  translate: none;
}
.email-large {
  font-size: clamp(26px, 6vw, 96px);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  gap: 20px;
}
.contact-directory h2 {
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.08;
}
.contact-directory p,
.contact-note {
  font-size: var(--text-reading);
  line-height: 1.6;
}
.contact-directory nav a {
  min-height: 72px;
}

/* Pillars retain their exhibition structure with readable text and whole Life images. */
.ex-intro h1 {
  font-size: clamp(30px, min(3.5vw, 6.4svh), 61px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}
.ex-kicker,
.ex-count,
.ex-notes dt,
.ex-next small {
  letter-spacing: 0.035em;
}
.ex-pin::before {
  opacity: 0.065;
}
.ex-reading {
  line-height: 1.65;
}
.ex-detail[inert] .ex-reading {
  visibility: hidden;
}
.ex-reading h2 {
  font-size: clamp(30px, 3.2vw, 52px);
  line-height: 1.08;
}
.ex-life img {
  object-position: var(--life-focus, 50% 45%);
}
.ex-index button {
  font-size: 13px;
}
.ex-hint,
.ex-count {
  padding-top: 20px;
}
.selected-perspective .stage-copy {
  max-width: min(36vw, 540px);
}

@media (max-width: 760px) {
  :root {
    --space-section: 64px;
    --space-group: 24px;
  }
  .hero-heading {
    display: block;
  }
  .hero-side {
    margin-top: 20px;
    max-width: none;
  }
  .institute-copy h2 {
    font-size: clamp(32px, 8vw, 48px);
  }
  .institute-bottom {
    display: grid;
    gap: 24px;
  }
  .patent-section h2 {
    font-size: clamp(34px, 8vw, 48px);
  }
  .foundations {
    display: block;
  }
  .foundation-heading {
    position: relative;
    top: auto;
    padding: 0 0 32px;
  }
  .foundation-index {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    margin-top: 20px;
  }
  .foundation-index a {
    gap: 8px;
    font-size: 14px;
  }
  .foundation-deck article {
    min-height: 0;
    padding: 32px 0 56px;
    grid-template-columns: 24px 1fr;
  }
  .foundation-deck h3 {
    font-size: clamp(38px, 10vw, 56px);
  }
  .foundations > .action {
    margin-top: 24px;
  }
  .inquiry h2 {
    top: 16%;
    bottom: auto;
    max-width: none;
    width: 90%;
    font-size: clamp(30px, 8vw, 44px);
  }
  .inquiry-disciplines {
    left: var(--gutter);
    right: auto;
    top: 31%;
    display: flex;
    gap: 16px;
    font-size: clamp(16px, 4.4vw, 23px);
    letter-spacing: -0.025em;
  }
  .inquiry-note {
    left: var(--gutter);
    right: var(--gutter);
    bottom: 8%;
    max-width: 31ch;
    font-size: 16px;
  }
  .has-editorial-surface .inquiry::before {
    background: linear-gradient(90deg, #0b171ae8, #0b171a66 80%);
  }
  .arrival h1 {
    font-size: 18vw;
    bottom: 12%;
  }
  .scene-scroll {
    bottom: 6%;
    font-size: 12px;
  }
  .exhibit-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .exhibit-intro h1 {
    font-size: clamp(40px, 10vw, 64px);
  }
  .exhibit-intro > p {
    max-width: 46ch;
  }
  .exhibit-art strong {
    font-size: clamp(24px, 6vw, 38px);
  }
  .panel-number {
    font-size: 11px;
    left: 16px;
  }
  .contrib-opening {
    max-width: 88%;
    top: 23%;
    text-shadow: none;
  }
  .contrib-opening h1 {
    font-size: clamp(48px, 12vw, 76px);
  }
  .coast-reading {
    top: 22%;
    max-width: 88%;
  }
  .coast-reading h2 {
    font-size: clamp(36px, 8vw, 52px);
  }
  .chapter-rail {
    bottom: max(24px, env(safe-area-inset-bottom));
  }
  .photo-chapter {
    grid-template-columns: minmax(0, 1fr);
  }
  .photo-chapter img {
    height: 58svh;
    min-height: 300px;
  }
  .photo-chapter h2 {
    font-size: clamp(32px, 8vw, 46px);
  }
  .photo-chapter.shared img {
    height: 45svh;
  }
  .photo-chapter.shared > div {
    display: block;
    padding-top: 28px;
  }
  .photo-chapter.shared h2 {
    margin-top: 16px;
  }
  .photo-chapter.shared .action {
    margin-top: 24px;
  }
  .contact-copy h1 {
    font-size: clamp(54px, 13vw, 86px);
  }
  .contact-copy > p:not(.eyebrow) {
    max-width: 28ch;
  }
  .ex-intro h1 {
    font-size: clamp(30px, 7.5vw, 44px);
    line-height: 1.08;
  }
  .ex-notes {
    font-size: 14px;
    line-height: 1.55;
  }
  .ex-life img {
    object-position: var(--life-focus-mobile, 50% 45%);
  }
  .ex-index button {
    font-size: 11px;
  }
  .ex-count {
    font-size: 11px;
  }
  .selected-perspective .stage-copy {
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .action .circle,
  .perspective-card .circle,
  .panel-open {
    transition: none;
  }
}

.chapter-rail-persistent {
  position: fixed;
  z-index: 120;
  bottom: 24px;
  padding: 4px;
  background: #f1f0e9eb;
  border: 1px solid #aab6a7;
  border-radius: 4px;
}
.chapter-rail[hidden] {
  display: none;
}
