:root {
  --bg: #07131f;
  --card: rgba(10, 28, 45, 0.72);
  --line: rgba(154, 194, 220, 0.18);
  --text: #eff8ff;
  --muted: #a7c2d8;
  --accent: #4ec3ff;
  --gold: #ffd166;
  --success: #7fffc4;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(78, 195, 255, 0.18), transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(255, 209, 102, 0.14), transparent 25%),
    linear-gradient(180deg, #05101a 0%, #091a29 45%, #06111b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 85%);
  pointer-events: none;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.03;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 6.2rem);
}

h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.site-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.narrow-shell {
  width: min(760px, calc(100% - 2rem));
}

.progress-line {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 16px rgba(78, 195, 255, 0.7);
}

.topbar,
.hero-stats article,
.glass-card,
.capability-card,
.contact-form,
.contact-copy,
.map-card,
.map-copy,
.service-card,
.timeline-item,
.cta-banner,
.info-strip div {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 2rem;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #1b6eff);
  color: #04111d;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: 0.98rem;
}

.nav {
  display: inline-flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.brand-text small,
.nav a,
.hero-text,
.info-strip p,
.glass-card p,
.capability-card p,
.contact-copy p,
.contact-points span,
.map-copy p,
.service-card p,
.timeline-item p,
.site-footer p,
label,
input,
textarea,
.form-status {
  color: var(--muted);
}

.nav a {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
}

.nav a.active {
  border-color: rgba(78, 195, 255, 0.5);
  color: var(--text);
}

.nav a,
.nav-cta,
.primary-button,
.secondary-button,
.capability-tab {
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.nav a:hover,
.nav-cta:hover,
.primary-button:hover,
.secondary-button:hover,
.capability-tab:hover {
  transform: translateY(-1px);
}

.nav-cta,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #ff9f43);
  color: #08131f;
  font-weight: 800;
  cursor: pointer;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.hero,
.page-hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

.hero {
  grid-template-columns: 1.1fr 0.9fr;
  min-height: calc(100vh - 8rem);
}

.page-hero {
  min-height: 55vh;
  align-content: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.77rem;
  font-weight: 800;
}

.hero-text {
  max-width: 62ch;
  margin: 1.4rem 0 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-stats,
.info-strip,
.about-grid,
.three-column,
.career-grid,
.map-layout,
.contact-section {
  display: grid;
  gap: 1.2rem;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.hero-stats article,
.glass-card,
.capability-card,
.service-card,
.info-strip div {
  padding: 1.4rem;
  border-radius: 1.5rem;
}

.hero-visual {
  position: relative;
  min-height: 34rem;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  animation: drift 12s ease-in-out infinite;
}

.orb-one {
  top: 5%;
  left: 10%;
  width: 10rem;
  height: 10rem;
  background: rgba(78, 195, 255, 0.22);
}

.orb-two {
  right: 6%;
  top: 18%;
  width: 12rem;
  height: 12rem;
  background: rgba(255, 209, 102, 0.18);
  animation-delay: -3s;
}

.orb-three {
  left: 22%;
  bottom: 8%;
  width: 9rem;
  height: 9rem;
  background: rgba(54, 255, 174, 0.16);
  animation-delay: -6s;
}

.refinery-card {
  position: absolute;
  inset: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(15, 31, 49, 0.95), rgba(6, 16, 27, 0.88)),
    radial-gradient(circle at top, rgba(78, 195, 255, 0.14), transparent 40%);
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-10deg);
}

.refinery-grid {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.95) 20%);
}

.refinery-tower {
  position: absolute;
  bottom: 16%;
  width: 3.2rem;
  border-radius: 1.6rem 1.6rem 0.5rem 0.5rem;
  background: linear-gradient(180deg, #b8d5e8, #57788d 40%, #263d4d 100%);
}

.refinery-tower::before {
  content: "";
  position: absolute;
  top: -0.9rem;
  left: 50%;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}

.tower-a {
  left: 18%;
  height: 14rem;
}

.tower-b {
  left: 40%;
  height: 18rem;
}

.tower-c {
  right: 18%;
  width: 4rem;
  height: 12rem;
}

.flow-line,
.signal {
  position: absolute;
}

.flow-line {
  height: 2px;
  opacity: 0.7;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 3s linear infinite;
}

.flow-a {
  left: 22%;
  top: 45%;
  width: 42%;
}

.flow-b {
  left: 32%;
  top: 58%;
  width: 35%;
  animation-duration: 4.2s;
}

.signal {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 195, 255, 0.2), transparent 65%);
  animation: signal 4.5s ease-out infinite;
}

.signal-a {
  left: 10%;
  top: 15%;
}

.signal-b {
  right: 12%;
  bottom: 14%;
  animation-delay: -1.5s;
}

.info-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 4rem;
}

.about-grid,
.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section {
  padding: 2rem 0 4rem;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.capability-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.capability-panel {
  display: grid;
  gap: 0.8rem;
}

.capability-tab {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.capability-tab.active {
  border-color: rgba(78, 195, 255, 0.45);
  background: rgba(78, 195, 255, 0.12);
}

.capability-content {
  position: relative;
  min-height: 15rem;
}

.capability-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.capability-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

.contact-copy,
.contact-form,
.map-card,
.map-copy,
.timeline-item,
.cta-banner {
  padding: 1.5rem;
  border-radius: 1.8rem;
}

.map-card iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 1.2rem;
}

.contact-points {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-points strong,
.info-strip span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-weight: 700;
}

.location-points {
  margin-top: 1.2rem;
}

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

label {
  display: grid;
  gap: 0.55rem;
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(167, 194, 216, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(78, 195, 255, 0.3);
  border-color: rgba(78, 195, 255, 0.45);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

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

.form-footer,
.site-footer,
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: #ff9b9b;
}

.service-stack,
.timeline {
  display: grid;
  gap: 1rem;
}

.service-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 1.4rem;
}

.career-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
}

.timeline-item span {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(78, 195, 255, 0.25), rgba(255, 209, 102, 0.25));
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.site-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-group .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.stagger-group .reveal:nth-child(3) {
  transition-delay: 160ms;
}

.stagger-group .reveal:nth-child(4) {
  transition-delay: 240ms;
}

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0.8rem, -1rem, 0) scale(1.04);
  }
}

@keyframes signal {
  0% {
    transform: scale(0.85);
    opacity: 0.35;
  }
  70% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes scan {
  0% {
    transform: translateX(-10%);
  }
  100% {
    transform: translateX(10%);
  }
}

@media (max-width: 980px) {
  .topbar {
    border-radius: 1.5rem;
    padding: 1rem;
  }

  .hero,
  .page-hero,
  .map-layout,
  .contact-section,
  .capability-layout,
  .about-grid,
  .three-column,
  .career-grid,
  .info-strip,
  .service-card {
    grid-template-columns: 1fr;
  }

  .hero,
  .page-hero {
    min-height: auto;
    padding-top: 1rem;
  }

  .nav {
    display: none;
  }

  .hero-visual {
    order: -1;
    min-height: 24rem;
  }

  .refinery-card {
    transform: none;
  }

  .site-footer,
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 1rem, 100%);
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-cta,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-stats,
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 20rem;
  }

  .refinery-card {
    inset: 0.5rem;
  }

  .tower-a,
  .tower-b,
  .tower-c {
    transform: scale(0.82);
    transform-origin: bottom;
  }

  .map-card iframe {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
