:root {
  --navy: #0a1628;
  --navy-2: #12233c;
  --teal: #2a9d8f;
  --cream: #f4f1de;
  --muted: #9aa8b8;
  --line: rgba(42, 157, 143, 0.45);
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Palatino, "Palatino Linotype", "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

body {
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  background: var(--navy);
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(10, 22, 40, 0.62);
}

.bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: rgba(10, 22, 40, 0.82);
  border-bottom: 1px solid var(--line);
}

.brand img { display: block; height: 72px; width: auto; }

.bar-end { display: flex; align-items: center; gap: 12px; }

.lang { display: flex; gap: 4px; }

.lang button, .cta, .card button {
  font: inherit;
  cursor: pointer;
  border-radius: 2px;
}

.lang button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.08em;
  font-size: 12px;
  padding: 6px 10px;
}

.lang button[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
  font-weight: 700;
}

.cta, .card button {
  background: var(--teal);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  border: 0;
  padding: 8px 14px;
}

.stage {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 58px);
  padding: 28px 28px 36px;
}

.copy h1 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  font-weight: 700;
  max-width: 16ch;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--teal);
}

.sub { max-width: 42ch; margin: 0; font-size: 18px; }

.lead {
  max-width: 42ch;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.lead[hidden] { display: none; }

.dock {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 156px;
  height: 156px;
  z-index: 4;
}

.orb {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  perspective: 520px;
}

.orb-rotor {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: orb-spin 16s linear infinite;
}

.orb-rotor i {
  position: absolute;
  left: 8%;
  top: 8%;
  width: 84%;
  height: 84%;
  border: 1.5px solid rgba(236, 240, 244, 0.82);
  border-radius: 50%;
  background: transparent;
}

.orb-rotor i:nth-child(1) { transform: rotateY(0deg); }
.orb-rotor i:nth-child(2) { transform: rotateY(30deg); }
.orb-rotor i:nth-child(3) { transform: rotateY(60deg); }
.orb-rotor i:nth-child(4) { transform: rotateY(90deg); }
.orb-rotor i:nth-child(5) { transform: rotateY(120deg); }
.orb-rotor i:nth-child(6) { transform: rotateX(68deg); }
.orb-rotor i:nth-child(7) { transform: rotateX(68deg) rotateZ(60deg); }
.orb-rotor i:nth-child(8) { transform: rotateX(68deg) rotateZ(120deg); }

@keyframes orb-spin {
  to { transform: rotateX(360deg) rotateY(360deg); }
}

.card {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 264px;
  background: rgba(18, 35, 60, 0.92);
  border: 1px solid var(--line);
  padding: 10px;
  display: grid;
  gap: 5px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.2);
  transform-origin: right bottom;
  transition: opacity 0.2s ease, transform 0.25s ease, visibility 0s linear 0.2s;
}

.dock:hover .card,
.dock.is-open .card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-144px);
  transition: opacity 0.2s ease, transform 0.25s ease, visibility 0s;
}

.card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.card label { display: grid; gap: 2px; font-size: 12px; color: var(--muted); }

.card input, .card select, .card textarea {
  font: inherit;
  font-size: 14px;
  color: var(--cream);
  background: var(--navy);
  border: 1px solid var(--line);
  padding: 4px 7px;
  width: 100%;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.card button { justify-self: start; padding: 5px 10px; font-size: 14px; }

.status { min-height: 0; margin: 0; font-size: 13px; }
.status.ok { color: var(--teal); }
.status.bad { color: #e07a5f; }

.mail { margin: 0; font-size: 12px; }
.mail a { color: var(--muted); }

.band {
  position: relative;
  z-index: 2;
  background: var(--navy);
  padding: 48px 28px;
  border-top: 1px solid var(--line);
}

.site-foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px 28px;
  background: var(--navy);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-foot a { color: var(--cream); text-decoration: none; }

.band h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
}

.proof, .lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.proof figure { margin: 0; }
.proof img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #fff;
}
.proof figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lane {
  text-align: left;
  font: inherit;
  color: var(--cream);
  background: var(--navy-2);
  border: 1px solid var(--line);
  padding: 16px;
  cursor: pointer;
}
.lane strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 18px;
}
.lane span { color: var(--muted); font-size: 14px; }

.outs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.outs li {
  border-top: 2px solid var(--teal);
  padding-top: 10px;
  font-size: 15px;
}

@media (max-width: 860px) {
  .stage { padding: 20px 16px 28px; }
  .copy h1 { max-width: none; }
  .bar { padding: 8px 12px; }
  .cta { display: none; }
  .card { width: min(264px, calc(100vw - 32px)); }
  .dock:hover .card,
  .dock.is-open .card { transform: translateY(calc(-100% - 12px)); }
  .band { padding: 32px 16px; }
  .site-foot { flex-direction: column; padding: 20px 16px 24px; }
  .proof, .lanes, .outs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #bg { display: none; }
  body { background: #0a1628 url("../media/poster.jpg?v=2") center/cover no-repeat fixed; }
  .orb-rotor { animation: none; }
}
