:root {
  --bg: #060606;
  --bg-soft: rgba(255, 255, 255, 0.03);
  --panel: rgba(11, 11, 11, 0.84);
  --panel-strong: rgba(16, 16, 16, 0.93);
  --text: #f2ede1;
  --muted: rgba(242, 237, 225, 0.66);
  --line: rgba(197, 162, 92, 0.2);
  --line-strong: rgba(224, 187, 112, 0.38);
  --gold: #d4b07a;
  --gold-bright: #f3d8a1;
  --gold-soft: rgba(212, 176, 122, 0.18);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  --mono: "SFMono-Regular", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(185, 144, 72, 0.08), transparent 30%),
    radial-gradient(circle at 50% 120%, rgba(185, 144, 72, 0.06), transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(28, 24, 18, 0.78), rgba(3, 3, 3, 0.96) 58%, #020202 100%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__shell {
  width: min(320px, calc(100vw - 40px));
  aspect-ratio: 1;
  border-radius: 32px;
  border: 1px solid rgba(221, 186, 122, 0.22);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.92), rgba(8, 8, 8, 0.92));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset, 0 40px 90px rgba(0,0,0,0.6);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.preloader__shell::before,
.preloader__shell::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 24px;
}

.preloader__shell::after {
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 216, 161, 0.8), transparent);
  border: 0;
  animation: loaderSweep 2.4s linear infinite;
}

.preloader__rings {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(212, 176, 122, 0.18);
  box-shadow: 0 0 0 18px rgba(212, 176, 122, 0.03), 0 0 0 38px rgba(212, 176, 122, 0.015);
}

.preloader__rings::before,
.preloader__rings::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border-top: 1px solid rgba(243, 216, 161, 0.85);
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-left: 1px solid transparent;
  animation: spin 2s linear infinite;
}

.preloader__rings::after {
  inset: 18px;
  animation-direction: reverse;
  animation-duration: 1.6s;
  border-top-color: rgba(212, 176, 122, 0.5);
}

.preloader__logo {
  width: 168px;
  max-width: 66%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.42));
}

.preloader__meta,
.preloader__count {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(242, 237, 225, 0.7);
}

.preloader__meta {
  bottom: 64px;
  font-size: 10px;
}

.preloader__count {
  bottom: 36px;
  font-size: 12px;
  color: var(--gold-bright);
}

.ambient,
.noise,
.grid,
.scanline,
.route,
.pointer-glow,
.rail {
  position: fixed;
  pointer-events: none;
}

.ambient {
  filter: blur(70px);
  opacity: 0.5;
}

.ambient--left {
  width: 32vw;
  height: 32vw;
  top: 10vh;
  left: -8vw;
  background: radial-gradient(circle, rgba(179, 137, 63, 0.16), transparent 70%);
  animation: drift 16s ease-in-out infinite;
}

.ambient--right {
  width: 28vw;
  height: 28vw;
  bottom: 12vh;
  right: -7vw;
  background: radial-gradient(circle, rgba(179, 137, 63, 0.12), transparent 72%);
  animation: drift 18s ease-in-out infinite reverse;
}

.ambient--center {
  width: 38vw;
  height: 22vw;
  top: 40vh;
  left: 34vw;
  background: radial-gradient(circle, rgba(244, 217, 164, 0.06), transparent 70%);
  animation: pulseFade 9s ease-in-out infinite;
}

.noise {
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.8) .35px, transparent .45px),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.8) .35px, transparent .45px),
    radial-gradient(circle at 40% 70%, rgba(255,255,255,.7) .4px, transparent .5px),
    radial-gradient(circle at 70% 50%, rgba(255,255,255,.6) .4px, transparent .5px);
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

.grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 88%);
  opacity: 0.26;
}

.scanline {
  inset: -25% 0;
  background: linear-gradient(180deg, transparent 0%, rgba(243, 216, 161, 0.04) 47%, rgba(243, 216, 161, 0.11) 50%, rgba(243, 216, 161, 0.04) 53%, transparent 100%);
  animation: scan 9s linear infinite;
  opacity: 0.4;
}

.route {
  border: 1px solid rgba(212, 176, 122, 0.11);
  border-radius: 999px;
  opacity: 0.36;
}

.route::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 216, 161, 0.95), rgba(243, 216, 161, 0.05) 74%);
  box-shadow: 0 0 22px rgba(243, 216, 161, 0.45);
}

.route--1 {
  width: 54vw;
  height: 54vw;
  top: 8vh;
  left: 53vw;
  transform: translateX(-50%);
}

.route--1::after {
  top: 10%;
  left: 79%;
  animation: beaconOne 8s ease-in-out infinite;
}

.route--2 {
  width: 34vw;
  height: 34vw;
  bottom: 8vh;
  left: 12vw;
}

.route--2::after {
  right: 8%;
  bottom: 28%;
  animation: beaconTwo 10s ease-in-out infinite;
}

.route--3 {
  width: 18vw;
  height: 18vw;
  top: 16vh;
  left: 10vw;
}

.route--3::after {
  top: 42%;
  right: -6px;
  animation: beaconThree 7s ease-in-out infinite;
}

.pointer-glow {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 216, 161, 0.1), transparent 68%);
  filter: blur(8px);
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 0;
  transition: opacity .25s ease;
}

.rail {
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}

.rail--top {
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(8, 8, 8, 0.62);
  backdrop-filter: blur(12px);
}

.rail__track {
  display: flex;
  gap: 42px;
  width: max-content;
  padding: 12px 0;
  animation: marquee 26s linear infinite;
  color: rgba(242, 237, 225, 0.42);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.viewport {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 72px 24px 32px;
  position: relative;
  z-index: 1;
}

.terminal {
  width: min(1320px, 100%);
  border: 1px solid rgba(221, 186, 122, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.84), rgba(8, 8, 8, 0.94)),
    linear-gradient(120deg, rgba(255,255,255,0.03), transparent 34%);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.03) inset;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(243,216,161,0.3), rgba(255,255,255,0.03), rgba(212,176,122,0.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 24%, rgba(255,255,255,0.05) 31%, transparent 38%);
  transform: translateX(-110%);
  animation: sheen 8s ease-in-out infinite;
  pointer-events: none;
}

.terminal__head,
.terminal__foot {
  padding: 18px 28px;
}

.terminal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}

.brandblock {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brandblock__logo {
  width: 118px;
  max-width: 35vw;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
  animation: float 8s ease-in-out infinite;
}

.brandblock__eyebrow,
.sectionhead__label,
.hero__kicker,
.metric__label,
.action__tag,
.clockbox__label,
.brandblock__title,
.preloader__meta,
.footmeta,
.statuspill,
.terminalnote {
  font-family: var(--mono);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brandblock__eyebrow,
.hero__kicker,
.sectionhead__label {
  font-size: 11px;
  color: rgba(242, 237, 225, 0.48);
}

.brandblock__title {
  font-size: 12px;
  color: rgba(242, 237, 225, 0.76);
}

.headmeta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.statuspill,
.clockbox {
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
  border-radius: 999px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: rgba(242, 237, 225, 0.78);
  font-size: 10px;
}

.statuspill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 18px rgba(243, 216, 161, 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}

.clockbox span:last-child {
  color: var(--gold-bright);
}

.terminal__body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .85fr);
  gap: 0;
}

.hero,
.contactpanel {
  position: relative;
}

.hero {
  padding: 62px 34px 34px;
}

.hero::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 0;
  width: 1px;
  height: calc(100% - 56px);
  background: linear-gradient(180deg, transparent, rgba(243,216,161,0.22), transparent);
}

.hero__title {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 760px;
}

.hero__text {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.8;
}

.signalbar {
  display: flex;
  gap: 10px;
  margin: 28px 0 32px;
}

.signalbar span {
  width: 56px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(243,216,161,0.6));
  box-shadow: 0 0 12px rgba(243, 216, 161, 0.18);
  animation: barPulse 2.8s ease-in-out infinite;
}

.signalbar span:nth-child(2) { animation-delay: .25s; }
.signalbar span:nth-child(3) { animation-delay: .5s; }
.signalbar span:nth-child(4) { animation-delay: .75s; }

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

.metric {
  min-height: 122px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)),
    rgba(12, 12, 12, 0.72);
  box-shadow: 0 18px 35px rgba(0,0,0,0.22);
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto -20% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243,216,161,0.75), transparent);
  animation: metricSweep 5.2s linear infinite;
}

.metric--wide {
  grid-column: span 1;
}

.metric__label {
  font-size: 10px;
  color: rgba(242, 237, 225, 0.48);
  margin-bottom: 14px;
}

.metric__value {
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -0.02em;
}

.contactpanel {
  padding: 24px;
}

.contactpanel__inner {
  height: 100%;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012)),
    rgba(10, 10, 10, 0.78);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.contactpanel__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(243,216,161,0.1), transparent 36%);
  pointer-events: none;
}

.sectionhead__title {
  margin-top: 8px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.sectionhead--spaced {
  margin-top: 28px;
}

.stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.action {
  min-height: 76px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  padding: 18px 18px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}

.action::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 28%, rgba(255,255,255,0.08) 36%, transparent 44%);
  transform: translateX(-120%);
  transition: transform .75s ease;
}

.action:hover,
.action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(243,216,161,0.24);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 18px 34px rgba(0,0,0,0.25), 0 0 0 1px rgba(243,216,161,0.06) inset;
}

.action:hover::before,
.action:focus-visible::before {
  transform: translateX(115%);
}

.action--primary {
  background: linear-gradient(180deg, rgba(212,176,122,0.12), rgba(255,255,255,0.025));
}

.action--small {
  min-height: 68px;
}

.action__tag {
  font-size: 9px;
  color: rgba(242, 237, 225, 0.48);
}

.action__title {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.action__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 24px;
  color: var(--gold-bright);
}

.terminalnote {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(242, 237, 225, 0.56);
  font-size: 10px;
  line-height: 1.8;
}

.terminal__foot {
  padding-top: 0;
}

.footline {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243,216,161,0.38), transparent);
}

.footmeta {
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 10px;
  color: rgba(242, 237, 225, 0.46);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal .9s ease forwards;
}

.reveal--1 { animation-delay: .2s; }
.reveal--2 { animation-delay: .34s; }
.reveal--3 { animation-delay: .48s; }
.reveal--4 { animation-delay: .62s; }
.reveal--5 { animation-delay: .78s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loaderSweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes scan { 0% { transform: translateY(-25%); } 100% { transform: translateY(125%); } }
@keyframes pulse { 0%,100% { opacity: .5; transform: scale(1);} 50% { opacity: 1; transform: scale(1.22);} }
@keyframes barPulse { 0%,100% { opacity: .28; transform: scaleX(.9);} 50% { opacity: 1; transform: scaleX(1.08);} }
@keyframes pulseFade { 0%,100% { opacity: .22; } 50% { opacity: .42; } }
@keyframes drift { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(16px,-20px,0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sheen {
  0%, 20% { transform: translateX(-110%); }
  45% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
@keyframes metricSweep { 0% { transform: translateX(-120%);} 100% { transform: translateX(120%);} }
@keyframes beaconOne { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(-8px, 6px) scale(1.25);} }
@keyframes beaconTwo { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(8px, -8px) scale(1.2);} }
@keyframes beaconThree { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(-4px, 10px) scale(1.25);} }

@media (max-width: 1120px) {
  .terminal__body {
    grid-template-columns: 1fr;
  }

  .hero::after {
    display: none;
  }

  .contactpanel {
    padding-top: 0;
  }
}

@media (max-width: 820px) {
  .viewport {
    padding: 68px 14px 14px;
  }

  .terminal {
    border-radius: 24px;
  }

  .terminal__head,
  .terminal__foot,
  .hero,
  .contactpanel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .contactpanel__inner {
    padding: 20px;
  }

  .brandblock__logo {
    width: 96px;
  }

  .headmeta {
    width: 100%;
    justify-content: flex-start;
  }

  .terminal__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .hero__title {
    max-width: 520px;
  }

  .sectionhead__title {
    font-size: 22px;
  }

  .action__title {
    font-size: 17px;
  }

  .route--1 { width: 78vw; height: 78vw; top: 14vh; }
  .route--2 { width: 48vw; height: 48vw; left: -8vw; }
  .route--3 { width: 26vw; height: 26vw; }
}

@media (max-width: 560px) {
  .rail__track {
    gap: 24px;
    font-size: 9px;
    letter-spacing: 0.22em;
  }

  .hero {
    padding-top: 38px;
  }

  .hero__title {
    font-size: clamp(34px, 12vw, 52px);
  }

  .hero__text {
    font-size: 14px;
    line-height: 1.7;
  }

  .action {
    min-height: 72px;
    padding: 16px 14px;
    gap: 6px 10px;
  }

  .action__title {
    font-size: 16px;
  }

  .action__arrow {
    font-size: 20px;
  }

  .signalbar span {
    width: 36px;
  }

  .statuspill,
  .clockbox {
    height: 38px;
    padding: 0 13px;
  }

  .terminal__head,
  .terminal__foot,
  .hero,
  .contactpanel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .contactpanel__inner {
    padding: 16px;
    border-radius: 22px;
  }
}

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