:root {
  --bg: #07111d;
  --bg-2: rgba(7, 17, 29, 0.82);
  --panel: rgba(10, 21, 37, 0.82);
  --panel-strong: rgba(8, 18, 32, 0.93);
  --panel-line: rgba(127, 204, 255, 0.18);
  --card: rgba(18, 31, 52, 0.82);
  --card-solid: #11233a;
  --text: #f5f8fc;
  --muted: #b4c4d7;
  --soft: #88a4bf;
  --accent: #63c7ff;
  --accent-2: #9ce1ff;
  --accent-3: #1f7ed6;
  --danger: #ff8f8f;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --space-1: 0.4rem;
  --space-2: 0.7rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --header-h: 88px;
  --font-head: "Segoe UI", "Aptos", "Trebuchet MS", sans-serif;
  --font-body: "Segoe UI", "Aptos", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #02070d;
  color: var(--text);
  font-family: var(--font-body);
}

body {
  overflow: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(92, 173, 255, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(89, 216, 255, 0.1), transparent 35%),
    #02070d;
}

.panorama-stage,
.panorama-viewer {
  position: absolute;
  inset: 0;
}

.scan-overlay,
.panorama-transition,
.point-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.panorama-transition {
  z-index: 2;
  background: rgba(2, 7, 13, 0.56);
  opacity: 0;
  transition: opacity 420ms ease;
}

.panorama-stage.is-changing .panorama-transition {
  opacity: 1;
}

.panorama-stage .pnlm-load-box,
.panorama-stage .pnlm-load-button,
.panorama-stage .pnlm-loading {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.scan-overlay {
  background:
    linear-gradient(180deg, rgba(2, 8, 15, 0.18), rgba(2, 8, 15, 0.3)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 2px,
      transparent 9px
    );
  mix-blend-mode: screen;
  opacity: 0.55;
}

.point-grid {
  background-image:
    linear-gradient(rgba(119, 211, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 211, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0 1px, transparent 1px),
    radial-gradient(circle at 65% 68%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px),
    radial-gradient(circle at 83% 22%, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px, 220px 220px, 260px 260px, 200px 200px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.12));
  opacity: 0.45;
}

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 1.15rem 1.5rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  background: rgba(7, 17, 29, 0.58);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.brand-mark img {
  width: 44px;
  height: 44px;
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark strong {
  font-family: var(--font-head);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.brand-mark small {
  font-size: 0.72rem;
  color: var(--muted);
}

.desktop-nav,
.mobile-nav {
  display: flex;
  gap: 0.75rem;
}

.nav-button,
.hero-link,
.media-chip,
.action-button,
.example-link,
.section-cta,
.gallery-trigger,
.gallery-icon-link,
.contact-submit,
.close-button,
.media-nav,
.immersive-toggle,
.mobile-menu-toggle {
  border: 1px solid rgba(127, 204, 255, 0.22);
  background: rgba(8, 18, 32, 0.68);
  color: var(--text);
  border-radius: 999px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.nav-button,
.mobile-menu-toggle {
  padding: 0.85rem 1rem;
  min-height: 48px;
  backdrop-filter: blur(12px);
}

.nav-button:hover,
.hero-link:hover,
.media-chip:hover,
.action-button:hover,
.example-link:hover,
.section-cta:hover,
.gallery-trigger:hover,
.gallery-icon-link:hover,
.contact-submit:hover,
.close-button:hover,
.immersive-toggle:hover,
.mobile-menu-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(156, 225, 255, 0.55);
  background: rgba(14, 30, 50, 0.92);
}

.nav-button.is-active {
  background: linear-gradient(135deg, rgba(31, 126, 214, 0.82), rgba(14, 43, 84, 0.82));
  border-color: rgba(156, 225, 255, 0.7);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

.mobile-menu-toggle img,
.immersive-toggle img,
.close-button img,
.media-nav img {
  width: 18px;
  height: 18px;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem 6rem;
  pointer-events: auto;
}

.hero-panel {
  width: min(840px, 100%);
  padding: clamp(1.75rem, 4vw, 3rem);
  text-align: center;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(155deg, rgba(11, 26, 44, 0.78), rgba(7, 16, 28, 0.6)),
    rgba(7, 16, 28, 0.56);
  border: 1px solid rgba(127, 204, 255, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  touch-action: manipulation;
}

.hero-logo {
  width: min(160px, 32vw);
  margin: 0 auto 1.25rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
}

.hero-panel h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.95;
}

.hero-summary {
  max-width: 58ch;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
  pointer-events: auto;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.15rem;
}

.hero-link.is-primary {
  background: linear-gradient(135deg, rgba(31, 126, 214, 0.9), rgba(18, 58, 100, 0.95));
}

.hero-link img,
.section-cta img,
.gallery-icon-link img {
  width: 18px;
  height: 18px;
}

.panorama-meta {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 3;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(127, 204, 255, 0.18);
  background: rgba(5, 15, 27, 0.72);
  backdrop-filter: blur(12px);
  max-width: min(460px, calc(100vw - 8rem));
}

.panorama-label {
  margin: 0;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.panorama-meta h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1rem, 2vw, 1.45rem);
}

.immersive-toggle {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
}

.panel-overlay,
.gallery-overlay,
.video-overlay,
.panorama-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(2, 6, 12, 0.62);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.panel-overlay.is-open,
.gallery-overlay.is-open,
.video-overlay.is-open,
.panorama-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.panel-shell,
.gallery-shell {
  position: relative;
  z-index: 11;
  width: min(95vw, 1980px);
  max-height: 95vh;
  overflow: auto;
  border-radius: 30px;
  border: 1px solid rgba(127, 204, 255, 0.16);
  background:
    linear-gradient(155deg, rgba(15, 29, 49, 0.96), rgba(7, 15, 28, 0.95));
  box-shadow: var(--shadow);
  scrollbar-width: none;
}

.panel-shell::-webkit-scrollbar,
.gallery-shell::-webkit-scrollbar,
.video-shell::-webkit-scrollbar,
.panorama-shell::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.panel-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
}

.gallery-shell::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(127, 204, 255, 0.08);
  border-radius: 22px;
  pointer-events: none;
}

.panel-media {
  position: relative;
  padding: 1.5rem;
  border-right: 1px solid rgba(127, 204, 255, 0.12);
  background:
    radial-gradient(circle at top left, rgba(99, 199, 255, 0.09), transparent 35%),
    linear-gradient(180deg, rgba(5, 12, 21, 0.8), rgba(9, 21, 35, 0.8));
}

.panel-content {
  padding: 2rem 2rem 2.2rem;
}

.mobile-media-heading {
  display: none;
}

.close-button {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.95rem;
  pointer-events: auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: var(--accent-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(156, 225, 255, 0.6);
}

.section-title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.04;
}

.section-intro {
  margin: 1rem 0 1.15rem;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.section-body {
  display: grid;
  gap: 1.15rem;
}

.copy-block {
  display: grid;
  gap: 0.85rem;
}

.copy-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.copy-block ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
}

.copy-callout,
.service-note {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(99, 199, 255, 0.08);
  border: 1px solid rgba(99, 199, 255, 0.18);
  color: var(--text);
}

.media-frame {
  --media-frame-min-height: 420px;
  position: relative;
  height: 100%;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(3, 8, 15, 0.9);
  border: 1px solid rgba(127, 204, 255, 0.14);
}

.media-viewport {
  width: 100%;
  height: 100%;
  min-height: var(--media-frame-min-height);
}

.media-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: var(--media-frame-min-height);
  overflow: hidden;
  background: rgba(3, 8, 15, 0.9);
}

.media-main {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: var(--media-frame-min-height);
}

.media-fit-cover .media-main {
  object-fit: cover;
}

.media-fit-contain .media-main,
.media-fit-contain-blur .media-main {
  object-fit: contain;
}

.media-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px);
  transform: scale(1.08);
  opacity: 0.42;
}

.media-fit-contain-blur::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(2, 7, 13, 0.38);
  pointer-events: none;
}

.media-fit-contain .media-backdrop,
.media-fit-cover .media-backdrop {
  display: none;
}

.media-nav-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  z-index: 4;
}

.media-nav-zone.is-prev {
  left: 0;
}

.media-nav-zone.is-next {
  right: 0;
}

.media-nav-zone::before,
.media-nav-zone::after {
  content: none;
  display: none;
}

.media-nav-zone:focus,
.media-nav-zone:focus-visible,
.media-nav-zone:hover,
.media-nav-zone:active {
  outline: none;
  box-shadow: none;
  background: transparent;
  border-color: transparent;
  transform: none;
}

.media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 14, 24, 0.82);
  z-index: 5;
}

.media-nav:hover {
  transform: translateY(-50%);
  border-color: rgba(156, 225, 255, 0.55);
  background: rgba(14, 30, 50, 0.92);
}

.media-nav img {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  object-fit: contain;
  background: transparent;
}

.media-nav.is-prev {
  left: 1rem;
}

.media-nav.is-next {
  right: 1rem;
}

.media-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 1rem;
  padding-inline: 0.15rem;
}

.media-caption {
  margin: 0;
  color: var(--muted);
}

.media-thumbs,
.media-actions,
.example-grid,
.action-grid,
.external-link-grid,
.about-link-grid {
  display: grid;
  gap: 0.85rem;
}

.media-thumbs {
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  margin-top: 1rem;
}

.media-actions[hidden] {
  display: none !important;
}

.media-actions {
  grid-template-columns: repeat(auto-fit, minmax(132px, max-content));
  margin-top: 0.9rem;
}

.media-action-button {
  justify-self: start;
}

.media-chip {
  display: grid;
  gap: 0.4rem;
  padding: 0.4rem;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
}

.media-chip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.media-chip span {
  font-size: 0.78rem;
  color: var(--muted);
}

.media-chip.is-active {
  border-color: rgba(156, 225, 255, 0.6);
  background: rgba(18, 38, 62, 0.94);
}

.section-subtitle {
  margin: 1.6rem 0 0.8rem;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.action-grid,
.external-link-grid,
.about-link-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.action-button,
.gallery-trigger,
.gallery-icon-link,
.example-link,
.section-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.05rem;
  min-height: 52px;
}

.action-button,
.gallery-trigger,
.gallery-icon-link {
  justify-content: space-between;
  border-radius: 18px;
}

.action-copy {
  display: grid;
  gap: 0.3rem;
  text-align: left;
}

.action-copy strong {
  font-size: 0.96rem;
}

.action-copy span {
  font-size: 0.82rem;
  color: var(--muted);
}

.action-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.example-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.example-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border-radius: 22px;
  border: 1px solid rgba(127, 204, 255, 0.12);
  background: rgba(13, 25, 41, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  isolation: isolate;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.example-card:hover {
  transform: translateY(-4px);
  border-color: rgba(156, 225, 255, 0.42);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

.example-card-media,
.example-card-overlay {
  position: absolute;
  inset: 0;
}

.example-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 240ms ease, filter 240ms ease;
}

.example-card-overlay {
  background:
    linear-gradient(180deg, rgba(4, 9, 16, 0.15), rgba(4, 9, 16, 0.72) 52%, rgba(4, 9, 16, 0.92)),
    radial-gradient(circle at top right, rgba(99, 199, 255, 0.22), transparent 30%);
}

.example-card:hover .example-card-image {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.example-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 1rem;
}

.example-type {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 0.7rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(7, 17, 29, 0.62);
  border: 1px solid rgba(156, 225, 255, 0.24);
  color: var(--accent-2);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.example-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  line-height: 1.2;
}

.example-card p {
  margin: 0 0 0.9rem;
  color: rgba(235, 241, 248, 0.9);
  line-height: 1.55;
}

.example-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.example-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(156, 225, 255, 0.22);
  background: rgba(7, 17, 29, 0.72);
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.example-action:hover,
.example-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(156, 225, 255, 0.58);
  background: rgba(18, 58, 100, 0.92);
}

.example-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.example-tag {
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: rgba(7, 17, 29, 0.62);
  border: 1px solid rgba(156, 225, 255, 0.2);
  color: var(--text);
  font-size: 0.74rem;
}

.example-card .example-link {
  align-self: flex-start;
  background: rgba(7, 17, 29, 0.72);
}

.example-card:hover .example-link {
  border-color: rgba(156, 225, 255, 0.6);
  background: rgba(18, 58, 100, 0.92);
}

.gaussian-note {
  margin-top: 1rem;
}

.gaussian-note:empty {
  display: none;
}

.gallery-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1rem;
  width: min(95vw, 1980px);
  height: min(92vh, 980px);
  padding: 1.5rem;
  min-height: 0;
}

.video-overlay {
  z-index: 12;
}

.panorama-overlay {
  z-index: 12;
}

.video-shell {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(90vh, 920px);
  padding: 1.5rem;
  overflow: auto;
  border-radius: 30px;
  border: 1px solid rgba(127, 204, 255, 0.16);
  background:
    linear-gradient(155deg, rgba(15, 29, 49, 0.96), rgba(7, 15, 28, 0.95));
  box-shadow: var(--shadow);
  scrollbar-width: none;
}

.panorama-shell {
  position: relative;
  width: min(95vw, 1600px);
  max-height: 95vh;
  padding: 1.5rem;
  overflow: auto;
  border-radius: 30px;
  border: 1px solid rgba(127, 204, 255, 0.16);
  background:
    linear-gradient(155deg, rgba(15, 29, 49, 0.96), rgba(7, 15, 28, 0.95));
  box-shadow: var(--shadow);
  scrollbar-width: none;
}

.panorama-modal-empty {
  min-height: min(72vh, 760px);
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.panorama-modal-frame {
  width: 100%;
  min-height: min(72vh, 760px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(127, 204, 255, 0.12);
  background: rgba(2, 6, 12, 0.92);
}

.panorama-modal-frame .pnlm-container {
  width: 100%;
  height: min(72vh, 760px);
}

.panorama-modal-caption {
  margin: 1rem 0 0;
  color: var(--muted);
}

.panel-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 30;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(196, 246, 236, 0.42);
  background: rgba(65, 166, 145, 0.92);
  color: #f5fffd;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.panel-scroll-cue:hover,
.panel-scroll-cue:focus-visible {
  background: rgba(77, 184, 162, 0.98);
  border-color: rgba(223, 252, 247, 0.65);
}

.panel-scroll-cue[hidden] {
  display: none !important;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(2, 6, 12, 0.92);
  border: 1px solid rgba(127, 204, 255, 0.12);
}

.video-player {
  width: 100%;
  height: 100%;
  max-height: min(76vh, 760px);
  object-fit: contain;
  background: #02070d;
}

.video-caption,
.video-error {
  margin: 1rem 0 0;
  color: var(--muted);
}

.video-error {
  color: var(--danger);
}

.gallery-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-height: 0;
}

.gallery-header h2 {
  margin: 0;
}

.gallery-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(2, 6, 12, 0.85);
  border: 1px solid rgba(127, 204, 255, 0.12);
}

.gallery-stage .media-visual {
  min-height: 0;
  height: 100%;
}

.gallery-stage .gallery-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: rgba(3, 8, 15, 0.9);
}

.gallery-stage .media-nav-zone {
  width: 18%;
}

.gallery-stage .media-nav {
  top: 50%;
}

.gallery-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  min-height: 0;
  flex: 0 0 auto;
  color: var(--muted);
}

.gallery-caption p {
  margin: 0;
}

.gallery-caption [data-gallery-caption] {
  flex: 1 1 auto;
}

.gallery-index {
  white-space: nowrap;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-layout.is-form-disabled {
  grid-template-columns: 1fr;
}

.contact-layout.is-form-disabled .contact-block {
  grid-column: 1 / -1;
}

.contact-layout.is-form-disabled .contact-form-wrap {
  display: none;
}

.contact-block,
.contact-form-wrap {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(10, 22, 37, 0.68);
  border: 1px solid rgba(127, 204, 255, 0.12);
}

.contact-block {
  display: grid;
  gap: 0.9rem;
}

.contact-block p {
  margin: 0;
}

.contact-services {
  margin-bottom: 0.8rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  font-size: 0.9rem;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(127, 204, 255, 0.16);
  background: rgba(6, 14, 24, 0.92);
  color: var(--text);
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-submit {
  justify-content: center;
  padding: 0.95rem 1.1rem;
}

.form-note,
.form-status {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.form-status.is-error {
  color: var(--danger);
}

.status-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 20;
  transform: translateX(-50%);
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: rgba(6, 16, 28, 0.92);
  border: 1px solid rgba(127, 204, 255, 0.24);
  color: var(--text);
}

.mobile-nav {
  position: fixed;
  top: 5.7rem;
  right: 1rem;
  left: auto;
  bottom: auto;
  z-index: 20;
  display: none;
  width: min(360px, calc(100vw - 2rem));
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  grid-template-columns: 1fr;
  padding: 0.7rem;
  border-radius: 24px;
  background: rgba(5, 15, 27, 0.84);
  border: 1px solid rgba(127, 204, 255, 0.18);
  backdrop-filter: blur(16px);
}

.mobile-nav.is-menu-open {
  display: grid;
}

.mobile-nav .nav-button {
  padding: 0.8rem 0.6rem;
  min-height: 46px;
  font-size: 0.88rem;
}

.site-shell.is-immersive:not(.is-ui-awake) .hero-content,
.site-shell.is-immersive:not(.is-ui-awake) .desktop-nav,
.site-shell.is-immersive:not(.is-ui-awake) .mobile-menu-toggle,
.site-shell.is-immersive:not(.is-ui-awake) .mobile-nav,
.site-shell.is-immersive:not(.is-ui-awake) .immersive-toggle {
  opacity: 0;
  pointer-events: none;
}

.site-shell.is-immersive.is-ui-awake .hero-content,
.site-shell.is-immersive.is-ui-awake .desktop-nav,
.site-shell.is-immersive.is-ui-awake .mobile-menu-toggle,
.site-shell.is-immersive.is-ui-awake .immersive-toggle,
.site-shell.is-immersive.is-ui-awake .mobile-nav.is-menu-open,
.site-shell.is-immersive .site-header:focus-within .desktop-nav,
.site-shell.is-immersive .site-header:focus-within .mobile-menu-toggle,
.site-shell.is-immersive .hero-content:focus-within,
.site-shell.is-immersive .mobile-nav:focus-within,
.site-shell.is-immersive .immersive-toggle:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 821px) {
  .site-shell.is-immersive .site-header,
  .site-shell.is-immersive .panorama-meta {
    opacity: 1;
    pointer-events: auto;
  }

  .site-shell.is-immersive:not(.is-ui-awake) .panorama-meta {
    opacity: 1;
    pointer-events: auto;
  }

  .panel-shell,
  .gallery-shell,
  .video-shell,
  .panorama-shell {
    resize: both;
    overflow: auto;
    min-width: min(720px, 90vw);
    min-height: min(460px, 80vh);
    max-width: 96vw;
    max-height: 96vh;
  }
}

body.has-modal {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .mobile-nav {
    position: fixed;
  }
}

@media (max-width: 1080px) {
  body {
    overflow: auto;
  }

  .panel-shell {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }

  .panel-content {
    order: 1;
    padding: 3.45rem 1.5rem 1.9rem;
  }

  .panel-media {
    order: 2;
    border-right: 0;
    border-bottom: 1px solid rgba(127, 204, 255, 0.12);
    padding: 1rem 1.5rem 1.5rem;
  }

  .mobile-media-heading {
    display: inline-flex;
    margin: 0 0 0.85rem;
  }

  .panel-content .section-label {
    margin-bottom: 0.45rem;
  }

  .panel-content.has-redundant-title .section-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .panel-shell,
  .gallery-shell,
  .video-shell {
    scrollbar-width: none;
  }

  .media-frame {
    --media-frame-min-height: 340px;
    min-height: 340px;
  }

  .panel-overlay .close-button,
  .gallery-overlay .close-button,
  .video-overlay .close-button,
  .panorama-overlay .close-button {
    position: fixed;
    top: max(0.9rem, env(safe-area-inset-top));
    right: max(0.9rem, env(safe-area-inset-right));
    z-index: 90;
    background: rgba(8, 18, 32, 0.94);
    border-color: rgba(156, 225, 255, 0.35);
    backdrop-filter: blur(12px);
    pointer-events: auto;
  }

  .panel-media,
  .panel-content,
  .gallery-shell {
    padding-top: 3.45rem;
  }

  .gallery-shell {
    height: auto;
    grid-template-rows: auto auto auto;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 1rem;
  }

  .brand-mark span small {
    display: none;
  }

  .hero-content {
    padding-top: 1rem;
    padding-bottom: 7.5rem;
  }

  .hero-panel {
    border-radius: 24px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .gallery-caption {
    flex-direction: column;
  }

  .panorama-meta {
    left: 1rem;
    right: 4.8rem;
    max-width: none;
  }

  .immersive-toggle {
    right: 1rem;
  }

  .panorama-meta {
    display: none;
  }

  .site-shell.is-immersive:not(.is-ui-awake) .site-header {
    opacity: 0;
    pointer-events: none;
  }

  .site-shell.is-immersive.is-ui-awake .site-header,
  .site-shell.is-immersive .site-header:focus-within {
    opacity: 1;
    pointer-events: auto;
  }

}

@media (max-width: 640px) {
  .site-header {
    gap: 0.8rem;
  }

  .brand-mark {
    padding: 0.7rem 0.85rem;
  }

  .brand-mark img {
    width: 38px;
    height: 38px;
  }

  .hero-panel h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .panel-overlay,
  .gallery-overlay,
  .video-overlay {
    padding: 0;
  }

  .panel-shell,
  .gallery-shell,
  .video-shell,
  .panorama-shell {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .panel-shell::before,
  .gallery-shell::before {
    inset: 12px;
    border-radius: 18px;
  }

  .panel-media,
  .panel-content,
  .gallery-shell,
  .video-shell,
  .panorama-shell {
    padding: 3.45rem 1rem 1rem;
  }

  .media-frame {
    --media-frame-min-height: 250px;
    min-height: 250px;
  }

  .action-grid,
  .external-link-grid,
  .about-link-grid,
  .example-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behaviour: auto !important;
  }
}

/* Remove decorative inner panel border that bleeds through section content */
.panel-shell::before {
  display: none;
}
