/* Four scenes, one shared viewport. Content reserves space; the art fills the rest. */
:root { --screen: 100svh; --edge-y: clamp(20px,4svh,40px); }
html { scroll-padding-top: 0; }
main > section.hero, main > section.section { height: var(--screen); min-height: 0; max-height: none; }
.company,.contact { padding: var(--edge-y) 0; }
.company > .wrap { height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: clamp(12px,2svh,22px); }
.company .section-kicker { margin: 0; }
.company-body { min-height: 0; display: grid; grid-template-columns: 1.25fr 1fr; gap: 6%; align-items: center; }
.company-art { height: 100%; min-height: 0; }
.company-scene { inset: 0 0 20px; }
.company-copy { display: block; padding: 0; }
.company-copy h2 { font-size: clamp(38px,min(6vw,10svh),92px); margin: 0 0 clamp(12px,3svh,30px); }
.company-copy p:first-of-type { font-size: clamp(16px,min(2vw,2.6svh),25px); line-height: 1.5; margin: 0; color: #b8b8b8; }
.company-explorer { margin: 0; }
.company-strip { margin: 0; gap: 20px; }
.company-strip button { padding: 12px 0 8px; font-size: clamp(17px,2.1vw,28px); min-height: 44px; }
.company-strip button span { font-size: 13px; margin-top: 4px; }
.principle-status { margin: 8px 0 0; min-height: 22px; font-size: 14px; }
.company-art .scene-instruction { font-size: 10px; }
/* The section's typography scales with height as well as width. */
.approach { padding: 0; }
.approach .section-kicker { top: var(--edge-y); }
.approach-title { top: calc(var(--edge-y) + 38px); }
.approach-title h2 { font-size: clamp(34px,min(4.4vw,7.4svh),70px); }
.approach .stage-list { top: 32%; }
.approach .stage-tab { min-height: 0; height: clamp(60px,11svh,110px); padding: 10px 0; }
.approach .stage-name { font-size: clamp(28px,min(3.7vw,6.2svh),56px); }
.approach .stage-tab[aria-selected="true"]::before { top: 29px; }
.approach .panel-copy { bottom: var(--edge-y); }
.approach .panel-copy h3 { font-size: clamp(18px,2.6svh,23px); margin-bottom: 8px; }
.approach .panel-copy p { font-size: clamp(13px,1.8svh,15px); line-height: 1.55; }
.approach .scene-controls { bottom: calc(var(--edge-y) - 4px); }

.approach .scene-caption { bottom: calc(var(--edge-y) + 73px); }
/* Contact and its footer are a single screen, including its sent state. */
.contact { position: relative; display: grid; grid-template-rows: minmax(0,1fr) auto; gap: 12px; padding-bottom: 0; }
.contact > .wrap { height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr); gap: clamp(12px,2.5svh,28px); }
.contact .section-kicker { margin: 0; }
.contact-layout { min-height: 0; align-items: stretch; gap: 8%; }
.contact-intro { min-height: 0; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; }
.contact h2 { font-size: clamp(42px,min(7vw,11svh),104px); }
.contact .contact-email { margin-top: 12px; font-size: 20px; justify-self: start; min-height: 38px; }
.contact-scene { height: auto; min-height: 0; margin: 12px 0 0; }
.contact-scene-note { font-size: 10px; }
.contact-form-slot { min-height: 0; display: flex; align-items: center; }
#contact-form { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 18px; row-gap: clamp(8px,1.6svh,16px); }
#contact-form > .form-intro,#contact-form > .topic-picker,#contact-form > .field:has(textarea),#contact-form > .btn,#contact-form > .form-note,#contact-form > .form-status { grid-column: 1/-1; }
#contact-form .form-intro { margin: 0; font-size: 17px; }
#contact-form .topic-picker { margin: 0; gap: 8px; }
#contact-form .topic-picker button { padding: 7px 12px; }
#contact-form .field { margin: 0; min-width: 0; }
#contact-form .field label { font-size: 12px; margin-bottom: 2px; }
#contact-form .field input { min-height: 44px; padding: 8px 0; }
#contact-form .field textarea { height: clamp(64px,10svh,96px); min-height: 64px; max-height: 96px; resize: none; padding: 8px 0; }
#contact-form .field-error { margin-top: 2px; font-size: 11px; line-height: 1.25; }
#contact-form .btn { min-height: 48px; }
#contact-form .form-note,#contact-form .form-status { font-size: 12px; margin: 0; line-height: 1.4; }
#contact-form .form-status:empty { display: none; }
.contact-feedback { width: 100%; height: 100%; min-height: 0; }
.contact-feedback canvas { height: clamp(140px,36svh,340px); flex: 0 1 auto; min-height: 0; }
.contact-feedback h3 { font-size: clamp(28px,5svh,46px); }
.contact-feedback p { font-size: 16px; }
.contact-feedback button { margin-top: 16px; }
.contact footer { padding: 0 0 12px; }
.contact .footer-inner { padding-top: 10px; gap: 20px; min-height: 44px; }
.contact footer .brand-logo { width: 104px; }
.contact .footer-line { font-size: 11px; margin-left: 0; }
.contact .copyright { font-size: 10px; }
.contact footer .text-button { font-size: 11px; }
.hero__content { bottom: 105px; }
.hero h1 { font-size: clamp(44px,min(8.3vw,14svh),132px); }
@media (max-width: 700px), (max-width: 900px) and (orientation: portrait) {
  :root { --edge-y: clamp(18px,3svh,26px); }
  .company > .wrap { gap: 10px; }
  .company-body { display: grid; grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); gap: 4px; align-items: stretch; }
  .company-copy { order: 0; display: block; }
  .company-copy h2 { font-size: clamp(30px,5.7svh,48px); margin: 0 0 10px; }
  .company-copy h2 br { display: none; }
  .company-copy h2 br::after { content: ' '; }
  .company-copy p:first-of-type { font-size: 15px; line-height: 1.45; }
  .company-art { order: 1; height: auto; min-height: 0; margin: 0; }
  .company .company-explorer { order: initial; margin: 0; }
  .company-strip { gap: 10px; }
  .company-strip button { font-size: 16px; line-height: 1.15; padding: 10px 0 6px; }
  .company-strip button span { display: none; }
  .principle-status { font-size: 12px; line-height: 1.45; min-height: 35px; margin-top: 6px; }
  .company-art .scene-instruction { display: none; }
  .company-scene { inset: 0; }
  .approach-title { top: calc(var(--edge-y) + 32px); }
  .approach-title h2 { font-size: clamp(29px,5.1svh,44px); }
  .approach .stage-list { top: calc(var(--edge-y) + 32px + clamp(60px,10.5svh,92px) + 16px); left: var(--gut); right: var(--gut); width: auto; display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid #ffffff25; gap: 12px; }
  .approach .stage-tab { height: 50px; min-height: 44px; padding: 10px 0; text-align: center; border-bottom: 1px solid transparent; }
  .approach .stage-tab[aria-selected="true"] { border-bottom-color: #eee; }
  .approach .stage-tab[aria-selected="true"] .stage-name { transform: none; }
  .approach .stage-short,.approach .stage-tab[aria-selected="true"]::before,.approach-title > p { display: none; }
  .approach .stage-name { font-size: clamp(22px,3svh,25px); }
  .approach .panel-copy { left: var(--gut); right: var(--gut); width: auto; max-width: none; bottom: calc(var(--edge-y) + 91px); }
  .approach .panel-copy h3 { font-size: clamp(19px,2.8svh,24px); margin-bottom: 6px; }
  .approach .panel-copy p { font-size: 14px; line-height: 1.45; }
  .approach .scene-controls { left: var(--gut); right: var(--gut); bottom: var(--edge-y); min-height: 54px; padding-top: 7px; }
  .approach .scene-controls label { display: block; position: absolute; top: -20px; }

  .approach .lab-scene::after { background: linear-gradient(0deg,#070707 0%,#070707cc 21%,transparent 44%,transparent 72%,#070707 92%); }
  .contact { gap: 10px; }
  .contact > .wrap { gap: 8px; }
  .contact-layout { display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(90px,1fr) auto; gap: 10px; }
  .contact-intro { position: relative; display: block; padding-bottom: 0; }
  .contact h2 { position: relative; z-index: 1; font-size: clamp(30px,4.6svh,40px); line-height: 1.05; max-width: 280px; pointer-events: none; }
  .contact h2 br { display: none; }
  .contact h2 br::after { content: ' '; }
  .contact .contact-email { position: relative; z-index: 1; font-size: 14px; min-height: 30px; margin-top: 9px; gap: 24px; }
  .contact-scene { position: absolute; inset: 0; margin: 0; opacity: .50; }
  .contact-scene canvas { mask-image: linear-gradient(90deg,transparent,#000 75%); }

  .contact-scene-note { display: none; }
  .contact-asterisk { width: 26px; height: 26px; }
  #contact-form { gap: 10px 14px; }
  #contact-form .form-intro { display: none; }
  #contact-form .topic-picker { gap: 6px; }
  #contact-form .topic-picker button { font-size: 12px; padding: 7px 12px; flex: 1; }
  #contact-form .field input { font-size: 16px; }
  #contact-form .field textarea { height: 72px; min-height: 64px; }
  #contact-form .btn { min-height: 48px; padding: 10px 18px; }
  #contact-form .form-note { font-size: 10px; }
  .contact footer { padding-bottom: max(8px,env(safe-area-inset-bottom)); }
  .contact .footer-inner { gap: 8px; flex-wrap: nowrap; min-height: 44px; padding-top: 6px; }
  .contact footer .brand-logo { width: 80px; }
  .contact .footer-line { display: none; }
  .contact .copyright { font-size: 9px; }
  .contact footer .text-button { font-size: 10px; padding: 6px 0 6px 8px; }
  .contact-feedback { justify-content: center; height: 100%; min-height: 0; }
  .contact-feedback canvas { height: clamp(110px,25svh,240px); }
  .contact-feedback h3 { font-size: 30px; margin: 6px 0; }
  .contact-feedback p { font-size: 14px; }
  .contact-feedback button { margin-top: 8px; }
}
@media (max-height: 650px) {
  #contact-form { row-gap: 6px; }
  #contact-form .form-intro { display: none; }
  #contact-form .field textarea { min-height: 52px; height: 52px; }
  #contact-form .field label { font-size: 11px; }
  .contact .section-kicker { min-height: 20px; }
  .contact-asterisk { height: 24px; width: 24px; }
  .contact-feedback canvas { height: 23svh; }
  .contact-feedback button { margin-top: 6px; }
  .company-strip button span { display: none; }
  .company-copy p:first-of-type { font-size: 14px; }
  .company-art .scene-instruction { display: none; }
}
@media (max-height: 500px) and (min-width: 701px) {
  :root { --edge-y: 16px; }
  .nav { height: 60px; }
  .hero__content { bottom: 79px; }
  .hero h1 { font-size: 10.5svh; }
  .hero__lead { font-size: 15px; margin-top: 10px; }
  .hero__bottom { bottom: 12px; padding-top: 10px; }
  .approach-title { top: 44px; }
  .approach-title h2 { font-size: 30px; }
  .approach-title > p { font-size: 12px; }
  .approach .stage-list { top: 36%; }
  .approach .stage-tab { height: 46px; padding: 4px 0; }
  .approach .stage-name { font-size: 27px; }
  .approach .stage-short { display: none; }
  .approach .stage-tab[aria-selected="true"]::before { top: 17px; }
  .approach .panel-copy h3 { font-size: 17px; margin-bottom: 4px; }
  .approach .panel-copy p { font-size: 12px; line-height: 1.3; }
  .approach .scene-caption { display: none; }
  .contact h2 { font-size: 37px; }
  .contact .contact-email { font-size: 15px; margin-top: 6px; min-height: 30px; }
  .contact .contact-scene-note { display: none; }
  .contact > .wrap { gap: 4px; }
  .contact-layout { gap: 5%; }
  #contact-form .form-note { display: none; }
  #contact-form .topic-picker button { min-height: 44px; padding: 5px 10px; font-size: 11px; }
  #contact-form .field input { min-height: 44px; padding: 4px 0; }
  #contact-form .btn { min-height: 44px; padding: 6px 18px; }
  .contact .footer-inner { padding-top: 2px; }
  .contact footer { padding-bottom: 4px; }
}

main h1[tabindex="-1"]:focus,main h2[tabindex="-1"]:focus { outline: none; }

@media (max-width: 700px) {
  .hero__content { bottom: 89px; }
  .hero h1 { font-size: clamp(36px,min(12.5vw,8.5svh),78px); }
  .hero__lead { margin-top: 16px; }
  .hero__bottom { bottom: 16px; }
}

/* Full-width approach: navigation sits above the scene, leaving its breadth to the art. */
@media (min-width: 701px) and (orientation: landscape), (min-width: 901px) {
  .approach .stage-list { top: calc(var(--edge-y) + 42px); left: 49%; right: var(--gut); width: auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; border-bottom: 1px solid #ffffff25; }
  .approach .stage-tab { height: auto; min-height: 70px; padding: 8px 0 14px; border: 0; border-bottom: 1px solid transparent; }
  .approach .stage-name { font-size: clamp(27px,2.8vw,42px); }
  .approach .stage-short { font-size: 11px; }
  .approach .stage-tab[aria-selected="true"] { border-bottom-color: #fff; }
  .approach .stage-tab[aria-selected="true"] .stage-name { transform: none; }
  .approach .stage-tab[aria-selected="true"]::before { display: none; }
  .approach .lab-scene::after { background: linear-gradient(0deg,#070707 0%,#070707d9 12%,transparent 29%,transparent 76%,#070707bb),radial-gradient(ellipse at 10% 8%,#070707e8,transparent 42%); }
  .approach .panel-copy { width: 33%; max-width: 450px; }
}
@media (max-height:500px) and (min-width:701px) {
  .approach .stage-list { top: 40px; }
  .approach .stage-tab { min-height: 48px; padding-bottom: 8px; }
  .approach .stage-name { font-size: 24px; }
}
