.apex-page { color: #242424; background: #f8f8f6; }
.apex-page .shell { width: min(1440px, calc(100% - clamp(32px, 6vw, 96px))); }
.apex-page figure { margin: 0; }
.apex-page figure img { display: block; width: 100%; }
.apex-page figcaption,
.apex-page .apex-small-label,
.apex-page .apex-eyebrow,
.apex-page .apex-section-head > span,
.apex-page .apex-intro-actions,
.apex-page .apex-experience article > span,
.apex-page .apex-endnote,
.apex-page .apex-footer { font-size: 9px; line-height: 1.5; letter-spacing: .09em; text-transform: uppercase; }
.apex-page figcaption { display: flex; justify-content: space-between; gap: 20px; padding-top: 12px; color: #777; }
.apex-page .apex-intro { max-width: 720px; margin: 0 auto; padding: clamp(120px, 16vw, 230px) 24px clamp(125px, 17vw, 230px); text-align: center; }
.apex-page .apex-footer,
.apex-page .apex-endnote { display: flex; justify-content: space-between; gap: 24px; }
.apex-page .apex-eyebrow { margin: 0 0 22px; color: #777; }
.apex-page .apex-intro h1 { margin: 0; font-size: clamp(46px, 7.4vw, 108px); font-weight: 300; letter-spacing: -.075em; line-height: .9; }
.apex-page .apex-deck { max-width: 560px; margin: clamp(35px, 5vw, 75px) auto 0; font-size: clamp(15px, 1.7vw, 22px); line-height: 1.4; letter-spacing: -.025em; }
.apex-page .apex-intro-actions { margin-top: clamp(35px, 5vw, 70px); }
.apex-page .apex-intro-actions a,
.apex-page .apex-endnote a { display: inline-block; padding-bottom: 6px; border-bottom: 1px solid currentColor; }
.apex-page .apex-hero-image { margin: 22px calc(50% - 50vw) 0; background: #f8f8f6; }
.apex-page .apex-hero-image img { width: 100%; height: auto; object-fit: contain; }
.apex-page .apex-section { padding: clamp(190px, 23vw, 330px) 0 0; }
.apex-page .apex-section-head { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; margin-bottom: clamp(38px, 6vw, 88px); }
.apex-page .apex-section-head > span { color: #777; }
.apex-page .apex-section-head h2 { max-width: 780px; margin: 0; font-size: clamp(19px, 2vw, 29px); font-weight: 400; line-height: 1.2; letter-spacing: -.04em; }
.apex-page .apex-premise { padding: clamp(170px, 20vw, 280px) 0 clamp(60px, 7vw, 100px); color: #686a6b; }
.apex-page .apex-premise-head { display: grid; justify-items: start; gap: 20px; text-align: left; }
.apex-page .apex-premise-head > span { color: #888a8b; font-size: 9px; line-height: 1.5; letter-spacing: .09em; }
.apex-page .apex-premise-head h2 { max-width: 780px; margin: 0; font-size: clamp(19px, 2vw, 29px); font-weight: 400; line-height: 1.2; letter-spacing: -.04em; }
.apex-page .apex-premise-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(130px, 17vw, 230px); border-top: 1px solid #c8c9c6; }
.apex-page .apex-premise-grid p { min-height: 110px; margin: 0; padding: 20px 24px 20px 0; font-size: clamp(13px, 1.3vw, 16px); font-weight: 600; line-height: 1.5; }
.apex-page .apex-premise-grid p span { display: block; margin-bottom: 24px; color: #9a9b9b; font-size: 10px; font-weight: 400; letter-spacing: .12em; }
.apex-page .apex-premise-grid p + p { padding-left: 24px; border-left: 1px solid #c8c9c6; }
.apex-page .apex-thesis-section { min-height: 100svh; display: grid; place-items: center; box-sizing: border-box; }
.apex-page .apex-thesis { margin: 0 auto; max-width: 720px; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.2; text-align: center; letter-spacing: -.045em; }
.apex-page .apex-persona { padding-top: clamp(60px, 7vw, 100px); }
.apex-page .apex-persona-layout { display: flex; justify-content: center; }
.apex-page .apex-persona-copy { width: min(100%, 520px); padding-bottom: 20px; }
.apex-page .apex-persona-copy .apex-small-label { font-size: 11px; }
.apex-page .apex-persona-statement { margin: 36px 0 60px; max-width: 520px; font-size: clamp(18px, 1.9vw, 25px); line-height: 1.5; letter-spacing: -.02em; }
.apex-page .apex-persona dl { margin: 0; }
.apex-page .apex-persona dl div { display: grid; grid-template-columns: 100px 1fr; padding: 14px 0; border-top: 1px solid #d7d7d3; font-size: 13px; }
.apex-page .apex-persona dt { color: #777; }
.apex-page .apex-persona dd { margin: 0; }
.apex-page .apex-persona figure img { aspect-ratio: 1.33; object-fit: cover; }
.apex-page .apex-experience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto 1fr auto auto; min-height: clamp(280px, 27vw, 380px); border-top: 1px solid #d7d7d3; border-bottom: 1px solid #d7d7d3; }
.apex-page .apex-experience article { padding: clamp(26px, 4vw, 64px); color: #242424; display: grid; grid-row: span 4; grid-template-rows: subgrid; align-items: start; }
.apex-page .apex-experience article + article { border-left: 1px solid #d7d7d3; }
.apex-page .apex-experience article > span { grid-row: 1; color: #777; }
.apex-page .apex-experience h3 { grid-row: 3; margin: 0 0 26px; font-size: clamp(18px, 1.9vw, 27px); line-height: 1.2; font-weight: 400; letter-spacing: -.035em; }
.apex-page .apex-experience article p { grid-row: 4; min-height: 3.2em; max-width: 360px; margin: 0; color: #555; font-size: clamp(12px, 1.1vw, 14px); line-height: 1.6; }
.apex-page .apex-section-note { max-width: 460px; margin: -15px 0 50px; font-size: clamp(12px, 1.2vw, 15px); line-height: 1.6; }
.apex-page .apex-reference-grid { --reference-height: clamp(190px, 21vw, 330px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 28px); }
.apex-page .apex-reference-grid figure { min-width: 0; display: grid; grid-template-rows: var(--reference-height) auto; align-content: end; }
.apex-page .apex-reference-image { display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
/* Offset transparent bottom padding so the visible forms share a baseline. */
.apex-page .apex-reference-image img { flex: none; width: min(100%, calc(var(--reference-height) * var(--reference-ratio))); height: auto; transform: translateY(var(--reference-bottom)); }
.apex-page .apex-reference-continuous { --reference-ratio: 1.776833; --reference-bottom: 24.442083%; }
.apex-page .apex-reference-surface { --reference-ratio: 2.967033; --reference-bottom: 18.956044%; }
.apex-page .apex-reference-cockpit { --reference-ratio: 2.126744; --reference-bottom: 21.744186%; }
.apex-page .apex-form-viewer { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: clamp(28px, 5vw, 80px); margin-top: clamp(145px, 19vw, 245px); align-items: center; }
.apex-page .apex-form-image { background: #f8f8f6; }
.apex-page .apex-form-image img { width: 100%; height: clamp(420px, 58vw, 760px); object-fit: contain; object-position: center; transition: opacity .24s ease; }
.apex-page .apex-form-image.is-changing img { opacity: .1; }
.apex-page .apex-form-copy h3 { margin: 26px 0 18px; font-size: clamp(18px, 1.7vw, 24px); font-weight: 400; line-height: 1.2; letter-spacing: -.035em; }
.apex-page .apex-form-copy p { max-width: 320px; font-size: 13px; line-height: 1.6; }
.apex-page .apex-form-controls { display: flex; gap: 22px; margin-top: 52px; }
.apex-page .apex-form-controls button { padding: 0 0 8px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: #888; font: inherit; font-size: 12px; cursor: pointer; }
.apex-page .apex-form-controls button.is-active { border-color: #242424; color: #242424; }
.apex-page .apex-form-controls button:focus-visible { outline: 2px solid #242424; outline-offset: 4px; }
.apex-page .apex-final-exterior { background: #050909; }
.apex-page .apex-final-exterior img { max-height: 780px; object-fit: contain; }
.apex-page .apex-final-exterior figcaption { background: #f8f8f6; }
.apex-page .apex-interior-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 30px); margin-top: clamp(55px, 8vw, 110px); }
.apex-page .apex-interior-grid img { aspect-ratio: 1.35; object-fit: cover; background: #0d1519; }
.apex-page .apex-endnote { margin: clamp(110px, 16vw, 220px) 0 60px; padding-top: 22px; border-top: 1px solid #d7d7d3; }
.apex-page .apex-footer { padding: 26px 0 34px; border-top: 1px solid #d7d7d3; }
.apex-page .apex-back-to-top { position: fixed; right: clamp(18px, 3vw, 42px); bottom: clamp(18px, 3vw, 42px); z-index: 20; width: 48px; height: 48px; padding: 0; border: 1px solid #242424; border-radius: 50%; background: #f8f8f6; color: #242424; font: 22px/1 Arial, sans-serif; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .25s ease, color .25s ease; }
.apex-page .apex-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.apex-page .apex-back-to-top:hover { background: #242424; color: #fff; }
.apex-page .apex-back-to-top:focus-visible { outline: 2px solid #242424; outline-offset: 4px; }
@media (max-width: 760px) {
  .apex-page .apex-premise-grid { grid-template-columns: 1fr; }
  .apex-page .apex-premise-grid p { min-height: 0; padding: 18px 0; }
  .apex-page .apex-premise-grid p + p { padding-left: 0; border-left: 0; border-top: 1px solid #d7d7d3; }
  .apex-page .apex-persona-layout,
  .apex-page .apex-form-viewer { grid-template-columns: 1fr; }
  .apex-page .apex-reference-grid { --reference-height: clamp(210px, 42vw, 330px); grid-template-columns: 1fr; }
  .apex-page .apex-section-note { margin: 0 0 32px; }
  .apex-page .apex-form-viewer { margin-top: 145px; }
}
@media (max-width: 540px) {
  .apex-page .apex-experience-grid,
  .apex-page .apex-interior-grid { grid-template-columns: 1fr; }
  .apex-page .apex-experience-grid { min-height: 0; }
  .apex-page .apex-experience article { min-height: 320px; grid-row: auto; grid-template-rows: auto 1fr auto auto; }
  .apex-page .apex-experience article + article { border-left: 0; border-top: 1px solid #d7d7d3; }
  .apex-page .apex-intro h1 { font-size: 15vw; }
  .apex-page .apex-intro-meta { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .apex-page .apex-form-image img,
  .apex-page .apex-back-to-top { transition: none; }
}

/* Restrained motion studies for the APEX story. */
.apex-motion-icon { display:block; width:180px; max-width:100%; height:auto; color:#34413f; margin:0 0 26px; }
.apex-premise-grid p { display:flex; flex-direction:column; align-items:flex-start; }
.apex-premise-grid .apex-motion-icon { width:150px; margin-bottom:28px; }
.apex-control-wheel { width:220px; margin:0 auto 35px; }
.apex-wheel { transform-origin:120px 90px; animation:apex-steer 7s ease-in-out infinite; }
.apex-seat { animation:apex-seat-shift 6s ease-in-out infinite; }
.apex-feedback,.apex-signal { animation:apex-pulse 4s ease-in-out infinite; }
.apex-fade { animation:apex-pulse 6s ease-in-out infinite; }
.apex-road { animation:apex-road-flow 3s linear infinite; }
@keyframes apex-steer { 0%,100% {transform:rotate(-18deg);} 50% {transform:rotate(18deg);} }
@keyframes apex-seat-shift { 0%,20%,100% {transform:translateX(-8px);} 50%,70% {transform:translateX(8px);} }
@keyframes apex-pulse { 0%,100% {opacity:.25;} 50% {opacity:1;} }
@keyframes apex-road-flow { to {stroke-dashoffset:-48;} }
.apex-animation-toggle { display:block; margin:0 auto 30px; background:none; border:0; border-bottom:1px solid #b4b4af; padding:7px 0; color:#777; font:inherit; font-size:10px; cursor:pointer; }
.apex-animation-toggle:focus-visible {outline:2px solid #34413f;outline-offset:5px;}
.apex-page.animations-paused .apex-motion-icon * { animation-play-state:paused!important; }
@media(max-width:760px) { .apex-motion-icon {width:140px;} .apex-premise-grid .apex-motion-icon {width:120px;} }
@media(prefers-reduced-motion:reduce) { .apex-motion-icon * {animation:none!important;} .apex-animation-toggle {display:none;} }

/* Motion backdrop with a protected, high-contrast statement. */
.apex-page .apex-thesis-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 85svh;
  padding: 80px 24px;
  background: #080808;
}
.apex-page .apex-thesis-section::before {
  content: "";
  position: absolute;
  inset: -5%;
  z-index: -2;
  background: url('assets/apex/editorial/thrill-light-tunnel.png') center / cover no-repeat;
  animation: apex-thrill-depth 12s ease-in-out infinite alternate;
}
.apex-page .apex-thesis-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.48), rgba(0,0,0,.2));
}
.apex-page .apex-thesis {
  color: #fff;
  font-size: clamp(30px, 4.5vw, 68px);
  max-width: 1000px;
  text-shadow: 0 2px 18px #000, 0 0 48px #000;
}
@keyframes apex-thrill-depth { from { transform: scale(1); } to { transform: scale(1.09); } }
@media (prefers-reduced-motion: reduce) { .apex-page .apex-thesis-section::before { animation: none; } }

.apex-page .apex-thesis-section::before { animation: none; background: none; }
.apex-page .apex-thrill-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .apex-page .apex-thrill-video { display: none; } .apex-page .apex-thesis-section::before { background: url('assets/apex/editorial/thrill-light-tunnel.png') center / cover no-repeat; } }

/* Monochrome footage with fine film grain beneath the headline. */
.apex-page .apex-thrill-video { filter: grayscale(1) contrast(1.12); }
.apex-page .apex-thesis-section::before {
  inset: 0;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.28' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
  opacity: .6;
  pointer-events: none;
}

/* Give the motion statement its own breathing room between chapters. */
.apex-page .apex-thesis-section {
  margin-top: 70svh;
  margin-bottom: 70svh;
}

.apex-page .apex-inspiration-title { margin: 0 0 28px; font-size: clamp(18px, 2vw, 26px); font-weight: 400; line-height: 1.2; }

.apex-page .apex-section-head .apex-inspiration-title { margin: -8px 0 0; font-size: 13px; font-weight: 400; line-height: 1.4; letter-spacing: .02em; color: #777; }

/* Dissolve the motion panel into the surrounding page at both edges. */
.apex-page .apex-thesis-section {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.1) 3%, rgba(0,0,0,.35) 6%, rgba(0,0,0,.65) 9%, rgba(0,0,0,.9) 12%, #000 16%, #000 84%, rgba(0,0,0,.9) 88%, rgba(0,0,0,.65) 91%, rgba(0,0,0,.35) 94%, rgba(0,0,0,.1) 97%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.1) 3%, rgba(0,0,0,.35) 6%, rgba(0,0,0,.65) 9%, rgba(0,0,0,.9) 12%, #000 16%, #000 84%, rgba(0,0,0,.9) 88%, rgba(0,0,0,.65) 91%, rgba(0,0,0,.35) 94%, rgba(0,0,0,.1) 97%, transparent 100%);
}

/* A taller video canvas, with a fixed shallow fade at each edge. */
.apex-page .apex-thesis-section {
  min-height: 120svh;
  --video-edge-fade: clamp(55px, 9svh, 110px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.15) calc(var(--video-edge-fade) * .25), rgba(0,0,0,.5) calc(var(--video-edge-fade) * .5), rgba(0,0,0,.85) calc(var(--video-edge-fade) * .75), #000 var(--video-edge-fade), #000 calc(100% - var(--video-edge-fade)), rgba(0,0,0,.85) calc(100% - var(--video-edge-fade) * .75), rgba(0,0,0,.5) calc(100% - var(--video-edge-fade) * .5), rgba(0,0,0,.15) calc(100% - var(--video-edge-fade) * .25), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.15) calc(var(--video-edge-fade) * .25), rgba(0,0,0,.5) calc(var(--video-edge-fade) * .5), rgba(0,0,0,.85) calc(var(--video-edge-fade) * .75), #000 var(--video-edge-fade), #000 calc(100% - var(--video-edge-fade)), rgba(0,0,0,.85) calc(100% - var(--video-edge-fade) * .75), rgba(0,0,0,.5) calc(100% - var(--video-edge-fade) * .5), rgba(0,0,0,.15) calc(100% - var(--video-edge-fade) * .25), transparent 100%);
}
