/* Menu portrait uses a bounded frame and remains in the menu's layout. */
.nav-shell { overflow-y: auto; }
.nav-grid { align-items: start; min-width: 0; }
.nav-grid aside {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  min-width: 0;
  padding: 0;
  opacity: 1;
  z-index: auto;
  pointer-events: auto;
}
.nav-portrait {
  width: min(100%, 250px);
  height: clamp(190px, 31vh, 290px);
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #789bc94d;
  background: #0b1726;
  margin: 0 0 20px;
  perspective: none;
}
.nav-portrait img, .nav-grid:has(nav a:hover) .nav-portrait img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center 28%;
  transform: none;
}
.nav-portrait .portrait-orbit { display: none; }
.nav-grid aside > small, .nav-grid aside > a, .nav-grid aside > p { display: block; }
.nav-grid aside .theme-controls { display: flex; }

/* Inner-page closing section: portrait and copy have separate grid columns. */
.beyond-section {
  height: auto;
  min-height: 0;
  padding: 90px max(24px, 7vw) 55px;
  display: block;
}
.beyond-stage {
  width: 100%;
  max-width: 1120px;
  height: auto;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(35px, 5vw, 80px);
  transform: none !important;
  transform-style: flat;
}
.beyond-portrait {
  position: relative;
  width: 100%;
  height: clamp(360px, 42vw, 540px);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.beyond-portrait img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px #0009);
}
.beyond-portrait .beyond-frame {
  inset: 8% 21%;
  width: auto;
  height: auto;
  border-width: 2px;
  transform: rotate(-5deg);
}
.beyond-copy { min-width: 0; position: relative; z-index: 3; }
.beyond-stage .beyond-copy h2 {
  position: static;
  margin: 20px 0 28px;
  font-size: clamp(30px, 4.3vw, 56px);
  line-height: 1.05;
  letter-spacing: -.04em;
  text-align: left;
  transform: none;
  overflow-wrap: normal;
}
.beyond-stage .beyond-card {
  position: static;
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
  padding: 28px;
  text-align: left;
  backdrop-filter: none;
}
.beyond-stage .beyond-card p { font-size: 14px; line-height: 1.8; }
.beyond-caption { position: relative; display: block; bottom: auto; text-align: center; margin: 40px 0 0; }

/* Visible, bounded intro on every page load. Default stays safe without JS. */
body .boot { display: flex !important; opacity: 0; visibility: hidden; }
.booting body .boot:not(.done) {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: boot-failsafe 2.5s steps(1, end) forwards;
}
body .boot.done { opacity: 0; visibility: hidden; pointer-events: none; }

.gallery-toolbar { align-items: flex-start; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.project-filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 550px; }
.project-filter-tabs button { font: 500 10px var(--orbit); padding: 11px 14px; color: #9baecb; background: #0a1424; border: 1px solid #5d81b033; cursor: pointer; }
.project-filter-tabs button:hover, .project-filter-tabs button:focus-visible { border-color: var(--cyan); color: #e8f2ff; }
.project-filter-tabs button.selected { color: #051021; background: var(--cyan); border-color: var(--cyan); }
.gallery-platform-note { color: #93a9c9; font-size: 12px; margin-bottom: 12px; }

.process-section { --process-progress: 0; position: relative; scroll-margin-top: 80px; overflow: visible; }
.process-section .section-marquee { max-width: 100%; overflow: hidden; }
.process-layout { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.5fr); gap: clamp(30px, 5vw, 75px); align-items: start; }
.process-overview { position: sticky; top: 100px; padding: 30px; background: radial-gradient(ellipse at 50% 35%, #23496c44, transparent 65%), #07101d; }
.process-overview h3 { font: 500 clamp(20px, 2.5vw, 29px)/1.35 var(--orbit); color: #dcecff; margin: 24px 0 16px; }
.process-overview > p { font-size: 13px; line-height: 1.9; color: #8ea3c0; }
.process-emblem { height: 165px; position: relative; display: grid; place-items: center; margin: 20px 0; }
.process-emblem > span { font: 500 45px var(--orbit); color: var(--cyan); text-shadow: 0 0 35px #4688df77; z-index: 2; }
.process-emblem i { width: 130px; height: 130px; border: 1px solid #75a9ee88; transform: rotate(35deg); position: absolute; border-radius: 12%; animation: process-turn 30s linear infinite; }
.process-emblem i:last-child { width: 100px; height: 100px; border-color: #75a9ee44; animation-direction: reverse; }
.process-index { list-style: none; padding: 0; margin: 26px 0 0; }
.process-index a { display: flex; align-items: center; gap: 15px; padding: 14px 0; color: #829abf; border-top: 1px solid #8cafe51f; font-size: 12px; transition: color .25s; }
.process-index a span { font: 500 10px var(--orbit); }
.process-index a.is-active { color: #d9ebff; }
.process-index a.is-active span { color: var(--cyan); }
.process-steps { position: relative; display: grid; gap: 28px; padding-left: 28px; }
.process-steps::before, .process-steps::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: #6e99d333; }
.process-steps::after { background: var(--cyan); transform: scaleY(var(--process-progress)); transform-origin: top; box-shadow: 0 0 12px #75a9ee88; }
.process-step { padding: clamp(24px, 3.5vw, 42px); position: relative; background: linear-gradient(125deg, #0d1a2b, #070d17); border: 1px solid #6e99d32b; scroll-margin-top: 110px; transition: opacity .6s, transform .6s, border-color .45s, box-shadow .45s; }
.process-step.is-active { border-color: #78acfa77; box-shadow: inset 3px 0 0 #78acfa88, 0 8px 55px #1e42691c; }
.process-number { display: block; color: #5f86b755; font: 700 55px/1 var(--orbit); margin-bottom: 24px; transition: color .4s; }
.process-step.is-active .process-number { color: var(--cyan); }
.process-step h3 { color: #e0edff; font: 500 clamp(19px, 2.2vw, 27px)/1.45 var(--orbit); margin: 16px 0 20px; }
.process-step p { font-size: 14px; line-height: 1.95; color: #95abc9; margin: 0 0 16px; }
.process-deliverable { display: flex; justify-content: space-between; align-items: center; font: 400 8px var(--orbit); letter-spacing: 1px; color: #7fa4d7; padding-top: 20px; margin-top: 25px; border-top: 1px solid #7098cf22; }
.process-deliverable b { font-size: 22px; color: var(--cyan); }
@keyframes process-turn { to { transform: rotate(395deg); } }
@media (max-width: 900px) {
  .process-layout { grid-template-columns: 1fr; }
  .process-overview { position: static; display: none; }
  .process-steps { padding-left: 20px; }
  .beyond-stage { gap: 30px; }
  .beyond-stage .beyond-copy h2 { font-size: clamp(28px, 4.2vw, 40px); }
}
@media (max-width: 700px) {
  .nav-grid { grid-template-columns: 1fr; gap: 30px; }
  .nav-grid aside { position: static; display: flex; width: 100%; padding: 0; opacity: 1; z-index: auto; pointer-events: auto; }
  .nav-portrait { width: 160px; height: 180px; }
  .nav-grid aside > small, .nav-grid aside > a, .nav-grid aside > p { display: block; }
  .nav-grid aside .theme-controls { display: flex; }
  .beyond-section { padding: 60px 22px 40px; }
  .beyond-stage { grid-template-columns: 1fr; gap: 32px; }
  .beyond-portrait { height: 380px; max-width: 310px; margin: 0 auto; }
  .beyond-copy { max-width: 440px; margin: 0 auto; width: 100%; }
  .beyond-stage .beyond-copy h2 { font-size: clamp(30px, 8vw, 45px); text-align: center; }
  .beyond-copy > .eyebrow { display: block; text-align: center; }
  .beyond-stage .beyond-card { text-align: center; padding: 24px; }
  .beyond-caption { letter-spacing: 1px; font-size: 6px; }
  .gallery-toolbar { display: flex; }
  .project-filter-tabs { flex-basis: 100%; }
  .project-filter-tabs button { font-size: 9px; padding: 10px 12px; }
  .project-search { width: 100%; }
  .process-step { padding: 24px; }
  .process-step p { font-size: 13px; }
}
.paused .process-emblem i { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .process-emblem i { animation: none; }
  .process-step, .process-index a { transition: none; }
  .boot-logo > span, .boot-track i { animation: none; }
}
