/* Editorial Services layout. The existing particle canvases remain viewport based. */
html, body { height: auto; min-height: 100%; }
/* Keep the viewport width when a panel locks page scrolling. */
html.modal-gutter { scrollbar-gutter: stable; }
body { overflow-x: clip; overflow-y: auto; }
body.modal-open { overflow: hidden; }
.stage { position: relative; inset: auto; min-height: 100svh; overflow: clip; display: block; }
.home-scene { position: sticky; top: 0; min-height: 100svh; display: flex; flex-direction: column; }
/* Add the hold on top of the original flight distance instead of speeding up the camera. */
#logo-runway {
  --flight-share: .84;
  height: calc(3 * clamp(1660px, 250svh, 2850px) / var(--flight-share));
  pointer-events: none;
}
.stage.logo-rail-active .motion-field.visible { opacity: var(--rail-rain, 1); }
@media (prefers-reduced-motion: reduce) { #logo-runway { display: none; } }
.motion-field, .logo-canvas, .seam, .guides { position: fixed; }
/* Touch browser chrome can animate the visual viewport during the swipe.
   Keep the particle surfaces in the same stable coordinate space as the hero. */
@media (hover: none) and (pointer: coarse) and (max-width: 900px) {
  .logo-canvas, .motion-field { bottom: auto; height: 100svh; }
}
/* Clip only the homepage rain, not the gallery or 3D canvas. */
.stage:not(.transport-open) .motion-field { clip-path: inset(0 0 var(--rain-footer-cut, 0px) 0); }
.center {
  position: relative; left: auto; top: auto; transform: none;
  flex: 1 0 auto; justify-content: center; margin: 0 auto;
  padding: clamp(95px, 13svh, 165px) 0 clamp(40px, 10svh, 128px);
  will-change: auto;
}
.logo-wrap { width: min(85.8vw, 112svh, 1320px); }
.tagline { margin-top: clamp(30px, 5.3svh, 76px); }
.services {
  position: relative; z-index: 35; flex: 0 0 auto;
  width: min(1000px, calc(100% - 64px));
  margin: 0 auto; padding: 0 0 clamp(26px, 6svh, 72px); text-align: center;
}
.services-label {
  color: #a9a8a3; font-size: 10px; font-weight: 500;
  line-height: 1.5; letter-spacing: .34em; text-indent: .34em;
  text-transform: uppercase; margin: 0 0 12px;
}
.service-options {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(12px, 2.4vw, 36px);
}
.service-card { min-width: 0; display: grid; justify-items: center; align-items: stretch; }
.service-cover { display: block; width: 100%; height: auto; aspect-ratio: 2.35; object-fit: cover; margin: 1.35rem 0 1rem; }
.nav button:focus-visible { outline: 1px solid #fff; outline-offset: 6px; }
@media (max-width: 700px) {
  .center { width: 100%; padding: 94px 0 38px; }
  .logo-wrap { width: min(88vw, 420px); }
  .tagline { margin-top: 37px; font-size: 10px; letter-spacing: .38em; }
  .services { width: min(460px, calc(100% - 40px)); padding-bottom: 24px; }
  .services-label { margin-bottom: 9px; }
  .service-options { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .center { padding-block: 75px 32px; }
  .tagline { margin-top: 26px; }
  .services { padding-bottom: 14px; }
}
.bottom-meta {
  position: relative; inset: auto; flex: 0 0 auto; margin: 0 auto;
  width: calc(100% - clamp(40px, 4.2vw, 76px));
  min-height: 40px; height: auto; padding: 14px 0;
  background: transparent; border-top-color: rgba(230,230,220,.25);
}
.modal .close { z-index: 2; }
/* About unfolds from the top edge; service dialogs keep their centered layout. */
.modal-backdrop.about-mode {
  align-items: flex-start;
  background: rgba(0,0,0,.28); backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity .7s ease;
}
.about-mode .modal {
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 24px);
  padding: 46px 48px 38px; text-align: center;
  border: 1px solid #292929; border-top: 0; border-radius: 0 0 28px 28px;
  background: #080808; transform: none; opacity: 1;
  clip-path: inset(0 calc(50% - 56px) calc(100% - 24px) round 0 0 14px 14px);
  transition: clip-path .7s cubic-bezier(.22,1,.36,1);
}
.about-mode.open .modal {
  transform: none;
  clip-path: inset(0 0 0 round 0 0 28px 28px);
}
.about-mode .modal::before {
  content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 3px; border-radius: 3px; background: #363636;
}
.about-mode .modal > * {
  opacity: 0; transform: translateY(-8px);
  transition: opacity .16s ease, transform .25s ease;
}
.about-mode.open .modal > * {
  opacity: 1; transform: none;
  transition: opacity .4s ease .18s, transform .5s cubic-bezier(.22,1,.36,1) .18s;
}
.about-mode .modal .close { top: 15px; right: 16px; }
.about-mode .modal .eyebrow { font-size: 10px; letter-spacing: .3em; color: #999; }
.about-mode .modal h3 {
  margin: 16px 0 18px; font-size: clamp(26px, 4vw, 34px); font-weight: 300;
  line-height: 1.15; letter-spacing: -.03em; text-transform: none; color: #eae8e3;
}
.about-mode .modal p { max-width: 400px; margin: 0 auto; font-size: 15px; line-height: 1.75; color: #aaa; }
.about-mode .rule, .about-mode .tags { display: none; }
.about-specialization {
  display:block;margin:10px auto 0;color:#d1d1cb;font-size:clamp(11px,1.8vw,13px);
  font-weight:500;line-height:1.55;letter-spacing:.01em;
}
.bottom-meta .footer-contact {
  width:min(100%,720px);margin-inline:auto;display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  place-items:center;column-gap:clamp(6px,1.3vw,18px);
}
.bottom-meta .footer-contact > * {white-space:nowrap;}
.bottom-meta .footer-contact a {display:inline-flex;align-items:center;gap:5px;min-height:32px;color:#ddd;}
.bottom-meta .footer-contact .footer-email {
  font-size:clamp(12px,1vw,15px);font-weight:300;letter-spacing:.065em;text-transform:none;color:#f0f0eb;
}
.bottom-meta .footer-contact a:hover {color:#fff;}
@media (max-width:380px) {
  .bottom-meta .footer-contact {letter-spacing:.07em;}
  .bottom-meta .footer-contact a {gap:3px;}
}
.bottom-meta .footer-contact a:focus-visible {outline:1px solid #eee;outline-offset:3px;}
.modal .close:focus-visible { outline: 2px solid #e3e3de; outline-offset: 2px; }
@media (max-width: 700px) {
  .about-mode .modal { padding: 46px 28px 30px; }
  .about-mode .modal p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop.about-mode, .about-mode .modal, .about-mode .modal > *,
  .about-mode.open .modal > * { transition: none; }
}
@media (max-width: 700px) {
  .bottom-meta { font-size: 8px; letter-spacing: .18em; }
}

/* Concise service notes, independent from the scroll-driven film controls. */
.modal .service-demo-status,
.transport-demo-status {
  color: #b1b0aa;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.modal .service-demo-status {margin: 1.4rem 0 0;}
.transport-demo-status {display: grid; min-height: 43px; align-items: center;}
.transport-demo-status[hidden] {display: none;}
.service-film-action {
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid #ffffff60;
  background: #131312;
  color: #fff;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.service-film-action:hover {background: #efeee8; color: #121212;}
.service-film-action:focus-visible {outline: 2px solid #fff; outline-offset: 3px;}
