:root {
  color-scheme: dark;
  --blue: #062b4d;
  --blue-soft: rgba(8, 45, 79, 0.82);
  --glass: rgba(236, 248, 255, 0.16);
  --glass-strong: rgba(255, 255, 255, 0.36);
  --line: rgba(220, 244, 255, 0.64);
  --white: #f7fbff;
  --muted: rgba(247, 251, 255, 0.78);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background: #111;
  color: var(--white);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

/* ---------- Showroom (scroll-driven flight + pinned scene, one continuous pin) ---------- */

.showroom {
  position: relative;
  width: 100vw;
  height: 380vh;
  background: #05080b;
}

.approach-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.approach-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: opacity, transform, filter;
}

.approach-coast {
  opacity: 1;
  transform-origin: 76% 22%;
}

.approach-building {
  opacity: 0;
  transform-origin: 58% 46%;
}

.stage {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.82);
  transform-origin: 50% 50%;
  will-change: opacity, transform, filter;
}

.showroom-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .approach-layer,
  .stage {
    transition: none;
  }
}

@media (max-width: 760px) {
  .showroom {
    height: 300vh;
  }
}

/* ---------- Central showroom menu ---------- */

.showroom-menu {
  position: absolute;
  z-index: 15;
  left: 50%;
  bottom: 12%;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  transform: translateX(-50%) translateY(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(180, 220, 240, 0.04));
  backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    0 24px 60px rgba(0, 10, 24, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease, transform 420ms ease;
}

.showroom-menu.is-revealed {
  opacity: 1;
  pointer-events: auto;
  animation: showroom-menu-float 7s ease-in-out infinite;
}

@keyframes showroom-menu-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .showroom-menu.is-revealed {
    animation: none;
    transform: translateX(-50%) translateY(0);
  }
}

.menu-group {
  position: relative;
}

.menu-cat {
  appearance: none;
  position: relative;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 20px;
  white-space: nowrap;
  transition: background 220ms ease, color 220ms ease;
}

.menu-cat:hover,
.menu-group.is-open .menu-cat {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.menu-sub {
  position: absolute;
  bottom: calc(100% + 14px);
  top: auto;
  left: 50%;
  z-index: 2;
  min-width: 240px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(226, 242, 250, 0.58));
  backdrop-filter: blur(26px) saturate(160%);
  box-shadow:
    0 20px 60px rgba(0, 12, 30, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  opacity: 0;
  transform: translate(-50%, -6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.menu-group.is-open .menu-sub {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.menu-sub li a {
  display: block;
  border-radius: 14px;
  padding: 10px 18px;
  color: var(--blue);
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: background 160ms ease;
}

.menu-sub li a:hover {
  background: rgba(8, 45, 79, 0.08);
}

.founder-trigger {
  position: absolute;
  z-index: 15;
  left: 4%;
  top: 6%;
  appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
  padding: 0 0 4px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 420ms ease, transform 420ms ease;
}

.founder-trigger.is-revealed {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.founder-trigger:hover {
  color: #fff;
  border-bottom-color: rgba(126, 224, 255, 0.9);
}

/* ---------- Detail panels ---------- */

.detail-panels {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.detail-panel {
  grid-area: 1 / 1;
  width: min(680px, calc(100vw - 48px));
  max-height: min(78svh, 640px);
  overflow: auto;
  padding: 26px 30px 30px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(226, 242, 250, 0.62));
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 28px 90px rgba(0, 12, 30, 0.42);
  color: var(--blue);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
  scrollbar-color: rgba(6, 43, 77, 0.4) rgba(255, 255, 255, 0.2);
  scrollbar-width: thin;
}

.detail-panel.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.detail-panel h2 {
  margin: 0 0 10px;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
}

.detail-panel p {
  margin: 0 0 4px;
  color: rgba(6, 43, 77, 0.84);
  font-size: 19px;
  line-height: 1.45;
}

.detail-panel img {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(6, 43, 77, 0.16);
  background: white;
}

.detail-panel .close {
  float: right;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.founder-panel {
  width: min(1080px, calc(100vw - 48px));
  max-height: min(82svh, 700px);
  border: 1px solid rgba(226, 248, 255, 0.54);
  border-bottom: 2px solid rgba(178, 232, 255, 0.98);
  background: linear-gradient(145deg, rgba(4, 20, 38, 0.92), rgba(8, 45, 79, 0.78));
  color: #f7fbff;
  text-shadow: 0 2px 18px rgba(0, 20, 42, 0.78);
}

.founder-panel .founder-kicker {
  margin: 0 0 6px;
  color: rgba(226, 248, 255, 0.96);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 10, 24, 0.6);
}

.founder-panel .founder-tagline {
  margin: 0 0 20px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 10, 24, 0.6);
}

.founder-panel .founder-plaque {
  display: block;
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 20px;
  border: 1px solid rgba(226, 248, 255, 0.32);
  background: white;
}

.founder-layout {
  display: grid;
  grid-template-columns: 124px minmax(220px, 0.68fr) minmax(420px, 1.6fr);
  gap: 20px;
  align-items: start;
}

.founder-layout img {
  display: block;
  width: 112px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 42px rgba(0, 18, 36, 0.22);
}

.founder-layout h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.founder-layout p {
  color: rgba(247, 251, 255, 0.88);
  font-size: 16px;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.founder-meta {
  color: rgba(203, 239, 255, 0.8);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.founder-statement {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(203, 239, 255, 0.28);
  color: rgba(247, 251, 255, 0.94);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.05em;
  text-transform: none !important;
}

.portrait-fallback {
  display: grid;
  width: 112px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(205, 231, 242, 0.72));
  color: var(--blue);
  font-size: 30px;
  font-weight: 800;
}

.company-profile {
  max-height: min(61vh, 570px);
  overflow: auto;
  padding: 0 8px 0 20px;
  border-left: 1px solid rgba(203, 239, 255, 0.28);
  text-transform: none;
  scrollbar-color: rgba(203, 239, 255, 0.72) rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
}

.company-profile h3 {
  margin: 0 0 10px;
  color: #fff;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.company-profile p {
  margin: 0 0 12px;
  color: rgba(247, 251, 255, 0.88);
  font-size: 17px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-transform: none;
}

.company-profile .profile-lead {
  color: rgba(203, 239, 255, 0.92);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.company-profile ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 14px;
  margin: 0 0 13px;
  padding: 0;
  list-style: none;
}

.company-profile li {
  color: rgba(247, 251, 255, 0.84);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Bottom service navigation ---------- */

.bottom-nav {
  position: fixed;
  z-index: 12;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 22px;
  align-items: center;
  transform: translateX(-50%);
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.38);
}

.bottom-nav a:hover {
  color: #fff;
}

.language-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  padding: 0;
  text-shadow: inherit;
}

.language-toggle:hover {
  color: #fff;
}

.service-panel {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 68px;
  width: min(760px, calc(100vw - 32px));
  max-height: min(72svh, 560px);
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(226, 242, 250, 0.5));
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 28px 90px rgba(0, 12, 30, 0.42);
  color: var(--blue);
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.service-panel:target {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.service-panel h2 {
  margin: 0 0 18px;
  font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-size: 42px;
  font-weight: 400;
}

.service-panel p {
  margin: 0 0 14px;
  color: rgba(6, 43, 77, 0.84);
  font-size: 20px;
  line-height: 1.5;
}

.close {
  float: right;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Narrow-screen adjustments (same experience as desktop) ---------- */

@media (max-width: 760px) {
  body {
    background: #101316;
  }

  .bottom-nav {
    position: fixed;
    bottom: 12px;
    gap: 12px;
    font-size: 14px;
  }

  .showroom-menu {
    flex-wrap: wrap;
    justify-content: center;
    max-width: calc(100vw - 24px);
  }

  .founder-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder-layout img,
  .portrait-fallback {
    margin: 0 auto;
  }

  .company-profile {
    max-height: none;
    border-left: 0;
    border-top: 1px solid rgba(203, 239, 255, 0.28);
    margin-top: 14px;
    padding: 14px 0 0;
    text-align: left;
  }

  .company-profile ul {
    grid-template-columns: 1fr;
  }

  .service-panel {
    position: fixed;
    bottom: 58px;
    padding: 20px;
  }
}

/* ---------- Image zoom overlay ---------- */

.zoomable-image {
  cursor: zoom-in;
}

.zoomable-image:focus-visible {
  outline: 2px solid rgba(126, 224, 255, 0.95);
  outline-offset: 4px;
}

.image-zoom {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  color: #fff;
}

.image-zoom.is-open {
  display: block;
}

.image-zoom__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 18, 0.9);
  backdrop-filter: blur(18px);
}

.image-zoom__toolbar {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.image-zoom__toolbar button {
  min-width: 42px;
  height: 42px;
  border: 1px solid rgba(226, 248, 255, 0.36);
  background: rgba(5, 24, 42, 0.72);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.image-zoom__toolbar button:hover,
.image-zoom__toolbar button:focus-visible {
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(12, 46, 76, 0.9);
}

.image-zoom__stage {
  position: absolute;
  inset: 76px 18px 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
}

.image-zoom__stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center;
  transition: transform 160ms ease;
  will-change: transform;
  user-select: none;
}

.image-zoom-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .image-zoom__toolbar {
    top: 12px;
    right: 12px;
    left: 12px;
    justify-content: flex-end;
    gap: 8px;
  }

  .image-zoom__toolbar button {
    min-width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .image-zoom__stage {
    inset: 68px 10px 12px;
  }
}

