/* The opening room and the interactive drawing desk. */
.academy-hero.spatial-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(580px, calc(100svh - 125px), 800px);
  padding-block: clamp(3.5rem, 8vw, 7rem);
  overflow: clip;
  background: #251c16;
  color: #fff9ef;
}

.hero-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-scene .scene-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  translate: var(--scene-x, 0px) var(--scene-y, 0px);
  scale: 1.035;
}
.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #21160fee 0%, #21160fd6 27%, #21160f73 56%, #21160f00 81%),
    linear-gradient(0deg, #21160fc4 0%, transparent 29%);
}
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 1.25rem;
  z-index: 2;
  border: 1px solid #f8e5ca46;
  pointer-events: none;
}
.hero-scene figcaption {
  position: absolute;
  bottom: 2rem;
  right: max(2.25rem, calc((100% - 1180px) / 2));
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  justify-content: end;
  color: #fff9ef;
  font: 650 .66rem/1.5 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
  text-align: right;
}
.hero-scene figcaption span { color: #f2d9c3; }
.spatial-hero .hero-copy { max-width: 44rem; }
.spatial-hero .hero-copy h1 { color: #fff9ef; font-size: clamp(3.3rem, 7.6vw, 7.6rem); }
.spatial-hero .hero-copy h1 em { color: #f2c7a7; }
.spatial-hero .hero-copy .lead-p { color: #fff4e5; }
.spatial-hero .hero-copy .eyebrow { color: #fff9ef; }
.spatial-hero .index-marker { color: #f2c7a7; }
.spatial-hero .hero-copy .btn { background: #f2c7a7; color: #2b2018; border-color: #f2c7a7; }
.spatial-hero .hero-copy .btn:hover { background: #fff9ef; border-color: #fff9ef; }
.spatial-hero .hero-copy .btn.o { background: transparent; color: #fff9ef; border-color: #fff9efb3; }
.spatial-hero .hero-copy .btn.o:hover { background: #fff9ef; color: #2b2018; }
.spatial-hero :focus-visible { outline-color: #f2c7a7; }
.spatial-hero .hero-copy .hero-tour { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: #fff9ef; }
.hero-tour .ui-icon { font-size: 1.1rem; }

.studio-index { background: #33271f; color: #fff5e8; border-top: 1px solid #f2c7a749; }
.studio-index .w { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.studio-index a {
  display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem; min-height: 55px;
  border-inline-start: 1px solid #f2c7a749; color: inherit; text-decoration: none; font-size: .82rem; font-weight: 650;
}
.studio-index a:last-child { border-inline-end: 1px solid #f2c7a749; }
.studio-index a:hover { background: #594132; text-decoration: underline; }
.studio-index a:focus-visible { outline-color: #f2c7a7; outline-offset: -4px; }
.studio-index a span { color: #f2c7a7; font-size: .68rem; letter-spacing: .12em; }

#material-lab { background: #252e27; }
.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
}
#material-lab .lab-copy > p { max-width: 42ch; }
#material-lab .lab-copy .eyebrow { color: #f2c7a7; }
#material-lab .lab-instruction { font-size: .86rem; color: #eee7d9; }
.lab-views { display: grid; margin: 1.5rem 0 .9rem; border-top: 1px solid #f3e8d658; }
.lab-views button {
  display: flex; align-items: center; gap: .8rem; padding: .6rem .65rem; min-height: 44px;
  border-bottom: 1px solid #f3e8d658; text-align: left; color: #fff9ef; font-weight: 650;
}
.lab-views button .ui-icon { color: #f2c7a7; }
.lab-views button:hover, .lab-views button[aria-pressed="true"] { background: #445346; }
.lab-views button[aria-pressed="true"] { box-shadow: inset 3px 0 #f2c7a7; }

#material-lab .lab-plate {
  background: #e6dccb;
  border: 1px solid #f7eddf70;
  padding: .65rem;
  box-shadow: 0 25px 65px #111c13a3;
}
#material-lab #lab-fallback img { aspect-ratio: 640 / 470; }
#material-lab .lab-plate .stage {
  height: clamp(265px, 38vw, 440px);
  background-color: #e4d8c4;
  background-image: linear-gradient(90deg, #695e4e1b 1px, transparent 1px),
    linear-gradient(#695e4e1b 1px, transparent 1px), radial-gradient(ellipse at 55% 48%, #fff8e6, transparent 73%);
  background-size: 22px 22px, 22px 22px, 100% 100%;
  border: 1px solid #bbae99;
}
#material-lab .lab-plate .blob { width: 82%; height: 68%; filter: blur(30px); opacity: .5; }
#material-lab .lab-plate .stage-caption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem;
  color: #524637; padding: .6rem .1rem .05rem; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
}
.stage[data-view="volume"] {
  --wall: #efe8da;
  --wall2: #d7cdbb;
  --floor: #c8bda9;
  --sofa: #b9ad98;
  --blob: #f5ebd8;
}
.stage[data-view="volume"] .face, .stage[data-view="volume"] .frame {
  background: #ddd3bf !important;
  border: 1px solid #978b78;
}
.stage[data-view="volume"] .shadow { border: 0; opacity: .3; }
.stage[data-view="volume"] .win { box-shadow: none; background: #d5d0c5; }
.stage[data-view="volume"] .fl {
  background: repeating-linear-gradient(0deg, #8c7d6450 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, #8c7d6450 0 1px, transparent 1px 28px), var(--floor);
}

.practice-section .split { align-items: center; }
.practice-section .hero-plate img { aspect-ratio: 16 / 10; }
.practice-section .step-grid { margin-top: 2.5rem; }

@media (max-width: 760px) {
  .academy-hero.spatial-hero { min-height: 560px; padding: 4rem 0 5rem; }
  .hero-scene .scene-image { object-position: 62% center; }
  .hero-scene::before { background: linear-gradient(90deg, #21160ff2, #21160fa8 70%, #21160f59), linear-gradient(0deg, #21160fc4, transparent 32%); }
  .hero-scene::after { inset: .55rem; }
  .hero-scene figcaption { bottom: 1.15rem; right: 1rem; }
  .studio-index .w { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-index a { padding: .65rem .55rem; }
  .studio-index a:nth-child(-n+2) { border-bottom: 1px solid #f2c7a749; }
  .studio-index a:nth-child(even) { border-inline-end: 1px solid #f2c7a749; }
  .lab-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-scene .scene-image { animation: room-arrival 1.65s cubic-bezier(.2,.65,.2,1) both; transition: translate .28s ease-out; }
  .spatial-hero .hero-copy { animation: text-arrival .78s cubic-bezier(.2,.65,.2,1) both; }
  .hero-tour:hover .ui-icon { animation: follow-the-room .55s ease-out; }
  .stage[data-view] .wb, .stage[data-view] .wl, .stage[data-view] .wr, .stage[data-view] .fl { transition: background-color .35s; }
  #stage[data-view].view-change .room { animation: room-view-in .65s cubic-bezier(.15,.65,.3,1) both; }
  @supports (animation-timeline: view()) {
    .lab-layout .lab-plate {
      animation: model-arrival linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 65%;
    }
  }
}
@keyframes room-arrival { from { scale: 1.14; } to { scale: 1.035; } }
@keyframes text-arrival { from { opacity: .55; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes follow-the-room { 50% { translate: 0 4px; } }
@keyframes room-view-in {
  from { opacity: .68; translate: -50% calc(-50% + 12px); rotate: y -15deg; }
  to { opacity: 1; translate: -50% -50%; rotate: y 0deg; }
}
@keyframes model-arrival {
  from { transform: perspective(950px) translateY(26px) rotateY(-5deg); }
  to { transform: perspective(950px) translateY(0) rotateY(0deg); }
}

/* Four studies share one full-width image stage. */
.project-showcase { background: #282019; color: #fbf3e7; }
.showcase-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2.5rem; margin-bottom: 1.5rem; }
.showcase-heading h2 { color: inherit; margin-bottom: 0; }
.showcase-heading .eyebrow, .showcase-panel .eyebrow, .showcase-fallback .eyebrow { color: #f0c5a2; }
.showcase-heading > p { max-width: 35ch; color: #eee0d1; }
.showcase-viewer { position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr; min-height: clamp(440px, 68svh, 660px); background: #4b3c31; }
.showcase-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.showcase-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #21170ef0, #21170ecc 22%, #21170e38 53%, transparent 72%);
  pointer-events: none;
}
.showcase-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.showcase-tabs button {
  position: relative;
  display: grid;
  align-content: center;
  gap: .3rem;
  min-height: 5.8rem;
  padding: .75rem clamp(.7rem, 2.6vw, 2.7rem);
  border-right: 1px solid #f6eee34d;
  border-bottom: 1px solid #f6eee34d;
  background: #251b16e8;
  color: #fff9ef;
  text-align: left;
}
.showcase-tabs button::after {
  content: "";
  position: absolute;
  top: 100%;
  right: -1px;
  height: clamp(340px, calc(68svh - 5.8rem), 570px);
  border-right: 1px solid #fff9ef30;
  pointer-events: none;
}
.showcase-tabs button:last-child::after { display: none; }
.showcase-tab-meta { font-size: .68rem; line-height: 1.35; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #f0c5a2; }
.showcase-tab-name { font: 400 clamp(1.13rem, 2vw, 1.85rem)/1.15 var(--se); }
.showcase-tabs button[aria-selected="true"] { background: #f4e9d9; color: #32261f; box-shadow: inset 0 4px #a25a43; }
.showcase-tabs button[aria-selected="true"] .showcase-tab-meta { color: #85422f; }
.showcase-tabs button:focus-visible { outline: 3px solid #e4a67e; outline-offset: -5px; z-index: 1; }
.showcase-panels { align-self: end; padding: clamp(1.15rem, 4vw, 3rem) max(1.25rem, calc((100vw - 1180px) / 2)); }
.showcase-panel { max-width: 38rem; }
.showcase-panel:focus-visible, .project-showcase a:focus-visible { outline-color: #efbd99; }
.showcase-panel p:not(.eyebrow) { font-size: clamp(1rem, 1.6vw, 1.2rem); }
.showcase-panel .btn { color: #2d211a; background: #f0c5a2; border-color: #f0c5a2; }
.showcase-panel .btn:hover { background: #fff9ef; color: #2d211a; border-color: #fff9ef; }
.showcase-footer { margin-top: 1.3rem; }
.showcase-footer .text-link { color: #f0c5a2; }
.showcase-fallback { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .85rem; list-style: none; }
.showcase-fallback a { display: block; padding: .9rem; border: 1px solid #e1c4ac70; text-decoration: none; }
.showcase-fallback a:hover { text-decoration: underline; }
.showcase-fallback .eyebrow { margin-bottom: .3rem; }
@media (max-width: 740px) {
  .showcase-heading { display: block; }
  .showcase-heading > p { margin-top: .8rem; }
  .showcase-viewer { min-height: 0; grid-template-rows: auto minmax(340px, auto); }
  .showcase-media { top: 0; }
  .showcase-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-tabs button { min-height: 4.15rem; }
  .showcase-tabs button::after { display: none; }
  .showcase-shot { object-position: center; }
  .showcase-panels { padding-block: 2rem 1.3rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .showcase-shot.showcase-enter { animation: showcase-appear .5s ease-out both; }
  .showcase-tabs button { transition: background-color .2s ease, color .2s ease; }
}
@keyframes showcase-appear { from { opacity: 0; scale: 1.025; } to { opacity: 1; scale: 1; } }

.spatial-hero .hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .9rem 1.5rem;
}
.hero-model-plate {
  width: 240px;
  max-width: 100%;
  padding: .75rem .7rem .4rem;
  color: #f2c7a7;
  background: #241b15df;
  border: 1px solid #d8b18a83;
  box-shadow: 0 16px 45px #21150f72;
}
.hero-model-plate > span { padding-inline: .3rem; letter-spacing: .1em; white-space: nowrap; }
.hero-model-plate .spatial-model { height: 165px; }
.hero-model-plate .spatial-model-volume { translate: 0 12px; }
@media (max-width: 800px) {
  .spatial-hero .hero-shell { grid-template-columns: minmax(0, 1fr); }
  .hero-model-plate { justify-self: end; width: 158px; }
  .hero-model-plate .spatial-model { height: 105px; --model-scale: .6; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-model-plate .spatial-model-volume { animation: model-orbit 2.45s cubic-bezier(.2,.65,.25,1) both; rotate: y var(--model-yaw, 0deg); transition: rotate .28s ease-out; }
  .hero-model-plate .spatial-model-ceiling { animation: lighting-lift 1.6s .35s cubic-bezier(.2,.65,.25,1) both; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .spatial-hero { view-timeline-name: --hero-parallax; }
    .hero-scene .scene-image {
      animation: room-arrival 1.65s cubic-bezier(.2,.65,.2,1) both, hero-parallax linear both;
      animation-timeline: auto, --hero-parallax;
      animation-range: normal, exit 0% exit 100%;
    }
    .showcase-viewer { view-timeline-name: --showcase-parallax; }
    .showcase-shot {
      inset: -32px 0 auto;
      height: calc(100% + 64px);
      animation: showcase-parallax linear both;
      animation-timeline: --showcase-parallax;
      animation-range: cover 0% cover 100%;
    }
    .showcase-shot.showcase-enter {
      animation: showcase-appear .5s ease-out both, showcase-parallax linear both;
      animation-timeline: auto, --showcase-parallax;
      animation-range: normal, cover 0% cover 100%;
    }
  }
}
@keyframes hero-parallax {
  from { transform: translateY(0); }
  to { transform: translateY(clamp(72px, 12vw, 156px)); }
}
@keyframes showcase-parallax {
  from { translate: 0 -29px; }
  to { translate: 0 29px; }
}

/* Programme discovery is followed by a full-width design exercise. */
.spatial-hero .hero-copy .lead-p { max-width: 36ch; }
.spatial-hero .hero-model-plate { background: #302219e6; }
.home-programs { background: var(--cream); }

#material-lab { background: #2a3028; }
.editorial-lab { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; }
.editorial-lab .lab-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: .25rem clamp(1.2rem, 6vw, 6rem);
  align-items: start;
}
.editorial-lab .lab-copy > .eyebrow,
.editorial-lab .lab-views { grid-column: 1 / -1; }
.editorial-lab .lab-copy > h2 { max-width: 16ch; }
#material-lab .editorial-lab .lab-copy > p:not(.eyebrow) { max-width: 54ch; }
.editorial-lab .lab-views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: .75rem; }
.editorial-lab .lab-views button { justify-content: center; border-right: 1px solid #ded0bb47; }
.editorial-lab .lab-views button:last-child { border-right: 0; }
.editorial-lab .lab-instruction { grid-column: 1 / -1; }
.editorial-lab .chips { grid-column: 1 / -1; }
#material-lab .editorial-lab .lab-plate { background: #dfd1bc; }
#material-lab .editorial-lab .stage { height: clamp(320px, 49vw, 570px); }
#material-lab .editorial-lab .room { scale: .78; }
#material-lab .editorial-lab #lab-fallback img { height: clamp(320px, 49vw, 570px); object-fit: contain; }
.practice-section .hero-plate { border: 0; padding: 0; }
.practice-section .hero-plate img { aspect-ratio: 4 / 3; }
@media (max-width: 760px) {
  .editorial-lab .lab-copy { grid-template-columns: minmax(0, 1fr); }
  .editorial-lab .lab-views button { gap: .35rem; font-size: .83rem; padding-inline: .35rem; }
  #material-lab .editorial-lab .room { scale: .39; }
  #material-lab .editorial-lab .stage, #material-lab .editorial-lab #lab-fallback img { height: clamp(280px, 66vw, 360px); }
  .showcase-shot.showcase-enter { animation-duration: .3s, auto; }
}
