/* The device is lit from one side; the maker's voice sits beside the exhibit. */
.equipment {
  --studio-paper: #f6f1e7;
  --studio-copper: #d3aa88;
  --studio-rule: #716357;
  background: #251e1a;
  color: var(--studio-paper);
  padding: clamp(54px, 6.5vw, 104px) clamp(20px, 5.8vw, 92px) clamp(42px, 5.5vw, 84px);
}
.equipment-gallery { max-width: 1360px; }
.equipment-heading { display: block; padding: 0; }
.equipment .equipment-heading h2 {
  color: var(--studio-paper);
  font-size: clamp(44px, 5.3vw, 82px);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.equipment-name {
  margin: 15px 0 0;
  color: var(--studio-copper);
  font-size: 15px;
}
.equipment .gallery-controls {
  width: fit-content;
  margin: 24px 0 0;
  gap: clamp(18px, 2.5vw, 34px);
  border-color: var(--studio-rule);
}
.equipment .gallery-controls button { min-height: 48px; color: #d6c4b7; }
.equipment .gallery-controls button[aria-selected=true] { color: #fff8ef; border-color: #e1b089; }
.equipment :focus-visible { outline: 2px solid #ffdfac; outline-offset: 3px; }
.equipment .equipment-stage {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: clamp(12px, 2vw, 32px);
  background: radial-gradient(ellipse at 38% 36%, #655649, #493d33 46%, #372e28 85%);
}
.equipment-image-wrap {
  width: min(100%, 680px);
  margin: auto;
  flex-shrink: 0;
}
.equipment .equipment-stage figcaption {
  align-self: stretch;
  margin-top: 8px;
  padding: 12px 0 0;
  border-top: 1px solid #827264;
  text-align: left;
  font-size: 14px;
  color: #f4e9d9;
}
.equipment .equipment-pointer-mark { background: #38291f; border-color: #edccac; }
.equipment .equipment-pointer-label { background: #38291f; color: #fff6e5; }
.equipment-explainer { padding-top: 0; }
.vi-speaker { gap: 13px; margin: 0 0 18px 2px; }
.vi-avatar { width: 55px; height: 55px; border: 1px solid #c5ad98; }
.vi-speaker-name { font-family: var(--serif); font-size: 19px; letter-spacing: -.025em; }
.vi-speaker-name span { font-family: var(--sans); font-size: 14px; letter-spacing: 0; color: #d4c4b4; }
.vi-bubble {
  --bubble-paper: #eadfce;
  padding: clamp(22px, 2.3vw, 38px);
  background: var(--bubble-paper);
  color: #2c211b;
  border-radius: 0 14px 14px 14px;
}
.vi-bubble::before { top: -7px; left: 24px; width: 14px; height: 14px; background: var(--bubble-paper); }
.vi-bubble h3 { margin-bottom: 15px; font-size: clamp(25px, 2.05vw, 34px); }
.vi-explanation { min-height: 0; }
.vi-explanation p { font-size: 16px; line-height: 1.58; }
.vi-explanation p+p { margin-top: 12px; }
.equipment .equipment-copy {
  margin: 32px 0 0;
  padding: 25px 0 0;
  grid-column: 1/-1;
  grid-row: auto;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 325px);
  border-top: 1px solid var(--studio-rule);
}
.equipment .equipment-copy>p:first-child {
  font-size: clamp(20px, 2.1vw, 32px);
  font-family: var(--serif);
  line-height: 1.3;
  letter-spacing: -.025em;
  max-width: 27ch;
}
.equipment .equipment-copy .action {
  min-height: 52px;
  color: #fff8ef;
  border: 1px solid #bd9f82;
  background: transparent;
}
.equipment .equipment-copy .action:hover { color: #291f19; background: #efdfc8; }
.equipment-copy .model-note { color: #d8c9bc; line-height: 1.5; }

/* One portrait gallery field shares its vertical axis with the voice column.
   The native tab panel keeps its own focus rectangle and keyboard events. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 960px) {
    .equipment-gallery {
      display: grid;
      grid-template-columns: minmax(325px, .84fr) minmax(0, 1.28fr);
      grid-template-rows: auto auto auto auto;
      column-gap: clamp(36px, 6vw, 100px);
    }
    .equipment-heading { grid-column: 1; grid-row: 1; align-self: start; }
    .equipment .equipment-heading h2 br { display: block; }
    .equipment .gallery-controls { grid-column: 1; grid-row: 2; align-self: start; }
    .equipment-tour {
      grid-column: 1/-1;
      grid-row: 1/4;
      display: grid;
      grid-template-columns: subgrid;
      grid-template-rows: subgrid;
      gap: inherit;
      padding: 0;
      pointer-events: none;
    }
    .equipment-tour>* { pointer-events: auto; }
    .equipment .equipment-stage { grid-column: 2; grid-row: 1/4; }
    .equipment-explainer { grid-column: 1; grid-row: 3; padding: 32px 0 0; }
    .equipment .equipment-copy { grid-row: 4; }
  }
}

.conversation {
  --reading-rule: #a9917c;
  display: block;
  max-width: none;
  margin: 0;
  padding: clamp(52px, 7vw, 114px) max(6vw, calc((100% - 1270px) / 2)) clamp(54px, 6vw, 100px);
  background: #f6f1e7;
  color: #271f1b;
}
.conversation-intro {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0 clamp(42px, 9vw, 164px);
}
.conversation-intro h2 {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 12px;
  color: #593d30;
  font-family: var(--sans);
  font-size: 17px;
  letter-spacing: 0;
}
.conversation .conversation-lead {
  grid-column: 1;
  grid-row: 2;
  margin: 0 0 28px;
  color: #362820;
  font-size: clamp(51px, 6.2vw, 96px);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.conversation-intro>p:not(.conversation-lead) {
  grid-column: 2;
  max-width: 58ch;
  margin: 0;
  color: #443a32;
  font-size: 17px;
  line-height: 1.62;
}
.conversation-intro>p:nth-child(3) {
  grid-column: 1;
  grid-row: 3/5;
  max-width: 45ch;
  color: #382b24;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.55;
}
.conversation-intro>p:nth-child(4) { grid-row: 1/3; }
.conversation-intro>p:nth-child(5) { grid-row: 3; margin: 0 0 16px; }
.conversation-intro>p:nth-child(6) { grid-row: 4; }
.conversation .questions { width: 100%; margin: clamp(38px, 6vw, 88px) 0 0; }
.conversation .questions details { border-color: var(--reading-rule); }
.conversation .questions summary {
  min-height: 78px;
  font: 500 clamp(21px, 2.15vw, 34px)/1.28 var(--serif);
  letter-spacing: -.03em;
}
.conversation .questions summary::after {
  font: 400 25px/1 var(--sans);
  color: #593d30;
}
.conversation .questions details[open] summary { color: #593d30; }
.conversation .questions summary:focus-visible { outline-offset: 0; }
.conversation .questions details p { max-width: 65ch; padding: 0 0 25px; color: #443a32; line-height: 1.65; }

.next-step {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1.6fr) minmax(245px, .75fr);
  gap: clamp(28px, 6vw, 100px);
  max-width: none;
  margin: 0;
  padding: clamp(48px, 7vw, 104px) max(6vw, calc((100% - 1270px) / 2));
  background: #593d30;
  color: #fff5e6;
}
.next-step h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(52px, 6.5vw, 98px);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.next-step-action { width: 100%; min-width: 0; padding-bottom: 5px; }
.next-step-action>p:first-child { margin: 0 0 13px; font-size: 17px; overflow-wrap: break-word; }
.next-step .action { min-height: 57px; border: 1px solid #f3e3c9; background: #f6f1e7; color: #35281f; }
.next-step .action:hover { background: #e6d5bd; }
.next-step .action:focus-visible { outline-color: #fff5e6; }
.site-footer {
  align-items: center;
  gap: 24px;
  padding: 24px max(6vw, calc((100% - 1270px) / 2)) max(24px, env(safe-area-inset-bottom));
  background: #f6f1e7;
  color: #271f1b;
  border-top: 0;
}
.site-footer p { font: 500 21px/1.35 var(--serif); letter-spacing: -.025em; }
.site-footer p span { font: 400 14px/1.5 var(--sans); color: #604c3f; letter-spacing: 0; }
.site-footer button { color: #503e31; font-size: 14px; }
.site-footer button:focus-visible { outline-offset: 1px; }

@media (max-width: 959px) {
  .equipment-tour { align-items: start; column-gap: 28px; }
  .equipment .equipment-stage { align-self: center; }
  .equipment .equipment-heading h2 br { display: none; }
  .vi-explanation { min-height: 0; }
}
@media (max-width: 760px) {
  .equipment { padding: 46px 20px 36px; }
  .equipment .equipment-heading h2 { max-width: 11ch; font-size: clamp(42px, 11.5vw, 66px); }
  .equipment-name { margin-top: 12px; }
  .equipment .gallery-controls { margin-top: 19px; }
  .equipment-tour { padding-top: 16px; gap: 26px; }
  .equipment .equipment-stage { padding: 8px 13px 12px; }
  .equipment-image-wrap { width: 100%; max-width: 420px; }
  .equipment .equipment-stage figcaption { padding-top: 10px; }
  .equipment-explainer { padding: 0; }
  .vi-bubble { padding: 20px 22px 22px; }
  .equipment .equipment-copy { display: block; margin-top: 26px; padding-top: 22px; }
  .equipment .equipment-copy>p:first-child { font-size: 23px; }
  .equipment .equipment-copy .action { margin-top: 20px; }
  .equipment .equipment-copy .model-note { margin-top: 11px; }
  .conversation { padding: 46px 22px 44px; }
  .conversation-intro { display: block; }
  .conversation-intro h2 { font-size: 16px; }
  .conversation .conversation-lead { font-size: clamp(43px, 11.8vw, 68px); margin-bottom: 22px; }
  .conversation-intro>p:not(.conversation-lead) { font-size: 16px; line-height: 1.6; max-width: none; margin: 0 0 16px; }
  .conversation-intro>p:nth-child(3) { font-size: 18px; line-height: 1.5; color: #382b24; }
  .conversation .questions { margin-top: 32px; }
  .conversation .questions summary { min-height: 66px; font-size: 21px; }
  .next-step { grid-template-columns: 1fr; gap: 27px; padding: 41px 22px 38px; }
  .next-step h2 { font-size: clamp(43px, 11.7vw, 68px); }
  .next-step-action { max-width: 30rem; padding: 0; }
  .next-step-action>p:first-child { font-size: 16px; }
  .site-footer { display: block; padding-inline: 22px; }
  .site-footer>div { margin-top: 12px; gap: 0; }
  .site-footer button { justify-self: start; }
}
