:root {
  --bg: #0b0f14;
  --bg-elevated: #121821;
  --surface: #151b23;
  --surface-2: #1c2430;
  --text: #e8edf2;
  --muted: #8b9aab;
  --line: rgba(232, 237, 242, 0.12);
  --accent: #2f6bff;
  --accent-soft: rgba(47, 107, 255, 0.18);
  --wire: #3ddcff;
  --warn: #f5a623;
  --radius: 18px;
  --header-h: 72px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Outfit", sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47, 107, 255, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(61, 220, 255, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(11, 15, 20, 0.15) 100%);
  z-index: -1;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.1rem, 3vw, 2.5rem);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(11, 15, 20, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 14px;
  height: 28px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--wire), var(--accent));
  box-shadow: 0 0 24px rgba(47, 107, 255, 0.45);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.25s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 107, 255, 0.45);
  background: var(--accent-soft);
  color: var(--text) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(21, 27, 35, 0.7);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding:
    calc(var(--header-h) + 2.5rem)
    clamp(1.1rem, 4vw, 3.5rem)
    4.5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  animation: hero-zoom 12s var(--ease) forwards;
  filter: saturate(1.05) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 15, 20, 0.92) 0%, rgba(11, 15, 20, 0.72) 42%, rgba(11, 15, 20, 0.35) 100%),
    linear-gradient(180deg, rgba(11, 15, 20, 0.35) 0%, rgba(11, 15, 20, 0.2) 40%, rgba(11, 15, 20, 0.92) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61, 220, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 220, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 30% 60%, black 0%, transparent 70%);
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 0 40px rgba(47, 107, 255, 0.35);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  color: #c4ced9;
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  width: 28px;
  height: 42px;
  border: 1px solid rgba(232, 237, 242, 0.28);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  z-index: 2;
}

.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--wire);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #3d7bff, var(--accent));
  color: #fff;
  box-shadow: 0 12px 30px rgba(47, 107, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(47, 107, 255, 0.45);
}

.btn-ghost {
  border: 1px solid rgba(232, 237, 242, 0.22);
  background: rgba(21, 27, 35, 0.45);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(61, 220, 255, 0.45);
}

/* Sections */
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1.1rem, 4vw, 3.5rem);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wire);
  font-weight: 600;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-lead {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.service-card {
  padding: 1.45rem 1.3rem 1.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 36, 48, 0.7), rgba(21, 27, 35, 0.35));
  transition: border-color 0.3s ease, transform 0.35s var(--ease), background 0.3s ease;
}

.service-card:hover {
  border-color: rgba(47, 107, 255, 0.55);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.14), rgba(21, 27, 35, 0.45));
}

.service-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  color: var(--wire);
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.gallery--balanced .gallery-frame {
  aspect-ratio: 4 / 3;
}

.gallery-item {
  margin: 0;
}

.gallery-frame {
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.9s var(--ease), filter 0.5s ease;
  filter: saturate(1.05);
}

.gallery-item:hover .gallery-frame img {
  transform: scale(1.08);
  filter: saturate(1.12) contrast(1.04);
}

.gallery-item figcaption {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.85rem;
}

.gallery-item figcaption strong {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.gallery-item figcaption span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Process */
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.process-steps li {
  padding: 1.2rem 0.2rem 0.4rem;
  border-top: 3px solid rgba(232, 237, 242, 0.55);
  background: linear-gradient(180deg, rgba(232, 237, 242, 0.04), transparent 75%);
}

.process-steps li:last-child {
  border-top-color: var(--accent);
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.12), transparent 75%);
}

.step-num {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.step-num--accent {
  color: var(--accent);
}

.process-steps h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.process-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Stage choice */
.stages-panel {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(47, 107, 255, 0.28);
  background:
    radial-gradient(700px 260px at 100% 0%, rgba(47, 107, 255, 0.2), transparent 55%),
    linear-gradient(160deg, #121821, #0d131b);
  box-shadow: var(--shadow);
}

.stages-copy {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.stages-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.stages-copy p:last-child {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.stages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.stage-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.25rem 1.15rem;
  border-radius: 14px;
  border: 1px solid #2c4462;
  background: #16273d;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.3s ease, transform 0.3s var(--ease), background 0.3s ease, box-shadow 0.3s ease;
}

.stage-card:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 220, 255, 0.55);
  background: #1a2f4a;
}

.stage-card--featured {
  border-color: rgba(47, 107, 255, 0.65);
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.18), #16273d);
}

.stage-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wire);
}

.stage-card strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.stage-card p {
  margin: 0;
  color: #c9d3df;
  font-size: 0.95rem;
}

/* Contact */
.contact {
  padding-top: 2rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(47, 107, 255, 0.35);
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(47, 107, 255, 0.22), transparent 60%),
    linear-gradient(160deg, #151b23, #10161e);
  box-shadow: var(--shadow);
}

.contact-copy h2 {
  margin: 0;
}

.contact-copy > p {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.contact-points {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.contact-points a {
  color: var(--wire);
  font-weight: 600;
}

.contact-points a:hover {
  text-decoration: underline;
}

.direct-mail {
  margin: 1.15rem 0 0 !important;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(61, 220, 255, 0.28);
  border-radius: 12px;
  background: rgba(61, 220, 255, 0.07);
  color: #d7dee8 !important;
  font-size: 0.95rem;
}

.direct-mail a {
  color: var(--wire);
  font-weight: 600;
}

.disclaimer {
  margin-top: 1.15rem !important;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--warn);
  background: rgba(245, 166, 35, 0.08);
  border-radius: 0 12px 12px 0;
  color: #d7dee8 !important;
  font-size: 0.92rem;
}

.disclaimer strong {
  color: #fff;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label,
.check-row {
  font-size: 0.92rem;
  color: #c7d2de;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(232, 237, 242, 0.16);
  border-radius: 12px;
  background: rgba(11, 15, 20, 0.55);
  color: var(--text);
  padding: 0.8rem 0.95rem;
  font: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(47, 107, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18);
}

.form-row select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.check-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  line-height: 1.4;
}

.check-row input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.check-row a {
  color: var(--wire);
  text-decoration: underline;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-form .btn {
  justify-self: start;
  border: none;
  cursor: pointer;
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.92rem;
  color: var(--wire);
}

.form-status.is-error {
  color: #ff8f8f;
}

/* Footer */
.site-footer {
  padding: 2.5rem clamp(1.1rem, 4vw, 3.5rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.footer-brand strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-brand a {
  color: var(--wire);
  margin-top: 0.35rem;
}

.footer-col h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-col a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.footer-disclaimer {
  margin: 0;
  color: #9aa8b8;
}

/* Legal pages */
.legal-main {
  padding:
    calc(var(--header-h) + 2.5rem)
    clamp(1.1rem, 4vw, 3.5rem)
    4rem;
}

.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.legal-wrap h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}

.legal-meta {
  margin: 0 0 2rem;
  color: var(--muted);
}

.legal-wrap h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.legal-wrap p,
.legal-wrap li {
  color: #c7d2de;
}

.legal-wrap a {
  color: var(--wire);
}

.legal-wrap ul {
  padding-left: 1.2rem;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--wire);
  font-weight: 600;
}

.legal-box {
  margin: 1.25rem 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(61, 220, 255, 0.25);
  border-radius: 14px;
  background: rgba(61, 220, 255, 0.06);
}

.legal-box p {
  margin: 0.45rem 0;
}

.legal-wrap ol {
  padding-left: 1.25rem;
  color: #c7d2de;
}

.legal-wrap ol li {
  margin: 0.45rem 0;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes scroll-pulse {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(10px); opacity: 1; }
}

@media (max-width: 980px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .stages-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) - 4px);
    right: clamp(1.1rem, 3vw, 2.5rem);
    left: clamp(1.1rem, 3vw, 2.5rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.85rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(11, 15, 20, 0.96);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease);
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    align-items: center;
    padding-bottom: 5rem;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(11, 15, 20, 0.55) 0%, rgba(11, 15, 20, 0.72) 45%, rgba(11, 15, 20, 0.94) 100%),
      linear-gradient(90deg, rgba(11, 15, 20, 0.7), rgba(11, 15, 20, 0.35));
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .contact-form .btn {
    width: 100%;
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .hero-image,
  .gallery-frame img,
  .scroll-hint span,
  .btn,
  .service-card,
  .stage-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
