/* ============================================================
   WALLYTEK — Revenue Systems
   Design system: Navy · Teal · White  (dark cinematic)
   Type: Clash Display (display) · Satoshi (body) · JetBrains Mono (telemetry)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --abyss:       #060F1F;
  --navy:        #0B1F3A;
  --navy-raise:  #10294A;
  --slate:       #33455E;
  --mist:        #A8C5D1;
  --seafoam:     #EAF4F3;
  --white:       #F7FAFB;
  --teal:        #12897E;
  --teal-bright: #2BB3A3;

  --text-body:   rgba(199, 214, 224, 0.86);
  --text-dim:    rgba(168, 197, 209, 0.62);
  --line:        rgba(168, 197, 209, 0.14);
  --line-strong: rgba(168, 197, 209, 0.26);

  --font-display: "Clash Display", "Avenir Next", "Segoe UI", sans-serif;
  --font-body:    "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;

  --size-hero:    clamp(2.9rem, 7.4vw, 6.75rem);
  --size-title:   clamp(2.2rem, 4.8vw, 4.35rem);
  --size-sub:     clamp(1.35rem, 2.4vw, 2rem);
  --size-body:    1.0625rem;
  --size-small:   0.9375rem;
  --size-mono:    0.75rem;

  --space-section: clamp(6.5rem, 13vw, 12rem);
  --container:     1280px;
  --gutter:        clamp(1.25rem, 4vw, 3rem);

  --radius:     20px;
  --radius-sm:  12px;

  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.15, 1);

  --glow-teal: 0 0 24px rgba(43, 179, 163, 0.45), 0 0 80px rgba(43, 179, 163, 0.18);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.7;
  color: var(--text-body);
  background: var(--abyss);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }

::selection { background: rgba(18, 137, 126, 0.55); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--abyss); }
::-webkit-scrollbar-thumb { background: var(--slate); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* ---------- Film grain overlay ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(10) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -8%); }
  30% { transform: translate(3%, -12%); }
  50% { transform: translate(9%, 6%); }
  70% { transform: translate(-7%, 9%); }
  90% { transform: translate(5%, 3%); }
}

/* ---------- Page veil (enter/exit transition) ---------- */
.veil {
  position: fixed; inset: 0;
  background: var(--abyss);
  z-index: 3000;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.7s var(--ease-soft);
}
.veil.is-open { opacity: 0; }
.veil.is-closing { opacity: 1; transition-duration: 0.25s; }

/* ---------- HUD rail (left telemetry) ---------- */
.hud {
  position: fixed;
  left: clamp(0.9rem, 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  pointer-events: none;
}
.hud-track {
  width: 1px; height: 34vh;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hud-fill {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, var(--teal-bright), var(--teal));
  transform-origin: top;
  transform: scaleY(0);
  box-shadow: 0 0 8px rgba(43, 179, 163, 0.8);
}
.hud-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
  transition: opacity 0.4s;
}
@media (max-width: 1100px) { .hud { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(6, 15, 31, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  color: var(--white);
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.wordmark em {
  font-style: normal;
  color: var(--teal-bright);
}
.wordmark .tick {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  margin-left: 5px;
  box-shadow: 0 0 10px rgba(43, 179, 163, 0.9);
  animation: tick-pulse 2.6s ease-in-out infinite;
  align-self: center;
}
@keyframes tick-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.72); }
}

.main-nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.6rem); }
.main-nav a:not(.btn) {
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--mist);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--teal-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.main-nav a:not(.btn):hover, .main-nav a:not(.btn)[aria-current="page"] { color: var(--white); }
.main-nav a:not(.btn):hover::after, .main-nav a:not(.btn)[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.6rem 0.2rem;
  z-index: 1200;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0;
    background: rgba(6, 15, 31, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav a:not(.btn) { font-size: 1.6rem; font-family: var(--font-display); font-weight: 500; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.1rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: var(--size-small);
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background-color 0.35s, border-color 0.35s, color 0.35s;
  will-change: transform;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(18, 137, 126, 0.35);
}
.btn-primary:hover {
  background: var(--teal-bright);
  box-shadow: var(--glow-teal);
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--white);
  background: rgba(11, 31, 58, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--teal-bright);
  background: rgba(18, 137, 126, 0.12);
  transform: translateY(-2px);
}
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: var(--space-section) 0; position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--teal-bright);
  box-shadow: 0 0 8px rgba(43, 179, 163, 0.7);
}

.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-title);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
}
.title .accent {
  background: linear-gradient(100deg, var(--teal-bright), #7BD8CC 60%, var(--teal-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.65;
  color: var(--mist);
  max-width: 620px;
  margin-top: 1.6rem;
}

/* ---------- Background media layers ---------- */
.bg-layer {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.bg-layer img {
  position: absolute;
  inset: -12% 0;
  width: 100%; height: 124%;
  object-fit: cover;
  will-change: transform;
}
.bg-layer::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--abyss) 0%, rgba(6,15,31,0.25) 18%, rgba(6,15,31,0.25) 72%, var(--abyss) 100%);
}
.bg-layer.dim::after {
  background: linear-gradient(to bottom, var(--abyss) 0%, rgba(6,15,31,0.72) 20%, rgba(6,15,31,0.72) 80%, var(--abyss) 100%);
}
.section > .container, .hero > .container { position: relative; z-index: 2; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 0 5rem;
  overflow: hidden;
}
.hero.short { min-height: 72svh; padding-bottom: 3rem; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-hero);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--white);
  max-width: 15ch;
  text-wrap: balance;
}
.hero-title .accent {
  background: linear-gradient(100deg, var(--teal-bright), #8FE3D6 55%, var(--teal-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-lede {
  margin-top: 2rem;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  color: var(--mist);
  max-width: 560px;
  line-height: 1.65;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.8rem;
}

/* word-split reveal targets */
.split-words .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.split-words .word > span {
  display: inline-block;
  transform: translateY(115%);
  will-change: transform;
}
/* background-clip:text doesn't paint through nested inline-blocks,
   so gradient accents re-apply per word once a title is split */
.split-words .accent { background: none; }
.split-words .accent .word > span {
  background: linear-gradient(100deg, var(--teal-bright), #8FE3D6 55%, var(--teal-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
html.no-motion .split-words .word > span { transform: none; }

/* telemetry strip at hero base */
.telemetry {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  border-top: 1px solid var(--line);
  background: rgba(6, 15, 31, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.telemetry-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.95rem var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.telemetry-inner b { color: var(--teal-bright); font-weight: 500; }
.telemetry-inner .t-item { display: inline-flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.telemetry-inner .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 8px rgba(43,179,163,0.9);
  animation: tick-pulse 2s ease-in-out infinite;
}
@media (max-width: 860px) {
  .telemetry-inner { justify-content: flex-start; overflow: hidden; }
  .telemetry-inner .t-item:nth-child(n+3) { display: none; }
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 4.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-cue .wheel {
  width: 1px; height: 44px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-cue .wheel::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%; height: 40%;
  background: var(--teal-bright);
  animation: cue-drop 1.8s var(--ease-soft) infinite;
}
@keyframes cue-drop {
  0% { top: -40%; }
  70%, 100% { top: 110%; }
}
@media (max-width: 860px) { .scroll-cue { display: none; } }

/* ============================================================
   LEAKS (pain points)
   ============================================================ */
.leaks-head { max-width: 760px; margin-bottom: clamp(3rem, 6vw, 5rem); }

.leak-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 820px) { .leak-grid { grid-template-columns: 1fr; } }

.leak-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  background: linear-gradient(165deg, rgba(16, 41, 74, 0.55), rgba(11, 31, 58, 0.28));
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
}
.leak-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(43, 179, 163, 0.11), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.leak-card:hover { border-color: rgba(43, 179, 163, 0.4); transform: translateY(-5px); }
.leak-card:hover::before { opacity: 1; }

.leak-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.7rem;
}
.leak-tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #E36F6F;
  box-shadow: 0 0 10px rgba(227, 111, 111, 0.8);
}
.leak-stat {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.leak-stat .unit {
  font-size: 0.4em;
  color: var(--teal-bright);
  font-weight: 500;
}
.leak-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--white);
  margin: 1.1rem 0 0.5rem;
}
.leak-card p { font-size: var(--size-small); color: var(--mist); max-width: 40ch; }

/* ============================================================
   ENGINE (pinned signature section)
   ============================================================ */
.engine { position: relative; overflow: hidden; }
.engine-stage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 0 5rem;
  position: relative;
  z-index: 2;
}
.engine-head { text-align: center; max-width: 780px; margin: 0 auto clamp(3rem, 6vh, 5rem); }
.engine-head .eyebrow { justify-content: center; }
.engine-head .eyebrow::before { display: none; }

.pipeline { position: relative; }
.pipeline-svg { width: 100%; height: auto; display: block; overflow: visible; }
.pipe-base { stroke: rgba(168, 197, 209, 0.18); stroke-width: 2; fill: none; }
.pipe-lit {
  stroke: var(--teal-bright);
  stroke-width: 2.5;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(43, 179, 163, 0.9));
}
.pipe-node { fill: var(--navy-raise); stroke: rgba(168, 197, 209, 0.35); stroke-width: 2; r: 9; transition: fill 0.4s, stroke 0.4s; }
.pipe-node.is-lit { fill: var(--teal-bright); stroke: var(--teal-bright); filter: drop-shadow(0 0 10px rgba(43, 179, 163, 1)); }
.pipe-pulse {
  fill: #C9F5EE;
  filter: drop-shadow(0 0 14px rgba(43, 179, 163, 1));
}

.engine-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.4rem;
}
.engine-step {
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(11, 31, 58, 0.4);
  opacity: 0.38;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-out), border-color 0.5s, background-color 0.5s;
}
.engine-step.is-active {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(43, 179, 163, 0.45);
  background: linear-gradient(170deg, rgba(18, 137, 126, 0.14), rgba(11, 31, 58, 0.5));
}
.engine-step .step-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--teal-bright);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.8rem;
}
.engine-step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  color: var(--white);
  margin-bottom: 0.45rem;
  line-height: 1.25;
}
.engine-step p { font-size: 0.875rem; color: var(--mist); line-height: 1.55; }

@media (max-width: 900px) {
  .engine-steps { grid-template-columns: 1fr 1fr; }
  .pipeline-svg { display: none; }
  .engine-stage { min-height: 0; }
}
@media (max-width: 540px) { .engine-steps { grid-template-columns: 1fr; } }

/* ============================================================
   SERVICES PREVIEW (home)
   ============================================================ */
.services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 820px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 3.4vw, 3rem);
  background: linear-gradient(165deg, rgba(16, 41, 74, 0.6), rgba(6, 15, 31, 0.4));
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease-out), box-shadow 0.5s;
  will-change: transform;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(43, 179, 163, 0.13), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover {
  border-color: rgba(43, 179, 163, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.service-card:hover::before { opacity: 1; }

.service-card .svc-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: var(--text-dim);
  display: block;
  margin-bottom: 2.6rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  color: var(--white);
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}
.service-card p { color: var(--mist); font-size: var(--size-small); max-width: 46ch; }
.service-card .svc-go {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: var(--size-small);
  color: var(--teal-bright);
}
.service-card .svc-go .arrow { transition: transform 0.35s var(--ease-out); }
.service-card:hover .svc-go .arrow { transform: translateX(5px); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.9rem 0;
  overflow: hidden;
  position: relative;
  background: rgba(11, 31, 58, 0.3);
}
.marquee-track {
  display: flex;
  gap: 4.5rem;
  width: max-content;
  will-change: transform;
  animation: marquee-scroll 32s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  color: var(--text-dim);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4.5rem;
}
.marquee-track span::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(18, 137, 126, 0.8);
}
html.no-motion .marquee-track { animation: none; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative;
  padding: var(--space-section) 0;
  overflow: hidden;
  text-align: center;
}
.cta-band .title { max-width: 18ch; margin: 0 auto; }
.cta-band .lede { margin-left: auto; margin-right: auto; text-align: center; }
.cta-band .hero-ctas { justify-content: center; }
.cta-phone {
  margin-top: 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}
.cta-phone a { color: var(--teal-bright); transition: color 0.3s; }
.cta-phone a:hover { color: var(--white); }

/* ============================================================
   SERVICES PAGE (full)
   ============================================================ */
.svc-rows { display: flex; flex-direction: column; }
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}
.svc-row:first-child { border-top: none; }
.svc-row.flip .svc-media { order: -1; }
@media (max-width: 900px) {
  .svc-row { grid-template-columns: 1fr; gap: 2.2rem; }
  .svc-row.flip .svc-media { order: 0; }
}

.svc-copy .svc-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  color: var(--teal-bright);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.4rem;
}
.svc-copy h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.svc-copy > p { color: var(--mist); max-width: 52ch; }
.svc-feats {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.svc-feats li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.3s, color 0.3s;
}
.svc-feats li::before { content: "▸"; color: var(--teal-bright); font-size: 0.8em; }
.svc-row:hover .svc-feats li { border-color: rgba(43, 179, 163, 0.35); }
.svc-copy .svc-cta {
  margin-top: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--teal-bright);
  font-size: var(--size-small);
}
.svc-copy .svc-cta:hover .arrow { transform: translateX(5px); }
.svc-copy .svc-cta .arrow { transition: transform 0.35s var(--ease-out); }

.svc-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}
.svc-media img {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}
.svc-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(6,15,31,0) 40%, rgba(6,15,31,0.55));
}
/* data-graphic media: uniform 4:3 frame, no parallax, no overlay */
.svc-media.is-graphic { aspect-ratio: 4 / 3; background: #F7FAFB; }
.svc-media.is-graphic img {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-media.is-graphic img.crop-top { object-position: top center; }
.svc-media.is-graphic::after { content: none; }
/* teal edge for light-background graphics */
.svc-media.teal-edge {
  border: 2px solid var(--teal);
  box-shadow: 0 0 22px rgba(18, 137, 126, 0.35);
}

.svc-media .media-tag {
  position: absolute;
  left: 1.2rem; bottom: 1.1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(234, 244, 243, 0.85);
  background: rgba(6, 15, 31, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.45rem 0.95rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; } }

.niche-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}
.niche-chips span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 0.6rem 1.2rem;
  color: var(--mist);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.niche-chips span:hover {
  border-color: var(--teal-bright);
  color: var(--white);
  background: rgba(18, 137, 126, 0.1);
}

.beliefs { display: flex; flex-direction: column; }
.belief {
  display: grid;
  grid-template-columns: minmax(90px, 160px) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.belief-mark {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal-bright);
  padding-top: 0.9rem;
}
.belief h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.belief p { color: var(--mist); max-width: 56ch; }
@media (max-width: 640px) {
  .belief { grid-template-columns: 1fr; gap: 0.8rem; }
  .belief-mark { padding-top: 0; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.5rem);
  background: linear-gradient(165deg, rgba(16, 41, 74, 0.55), rgba(11, 31, 58, 0.3));
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.contact-card:hover { border-color: rgba(43, 179, 163, 0.4); transform: translateY(-5px); }
.contact-card .cc-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal-bright);
  display: block;
  margin-bottom: 1.5rem;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.contact-card p { font-size: var(--size-small); color: var(--mist); margin-bottom: 1.4rem; }
.contact-card .cc-link {
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}
.contact-card .cc-link:hover { color: var(--teal-bright); }

.embed-shell {
  margin-top: clamp(3rem, 6vw, 5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(11, 31, 58, 0.4);
}
/* calendar + form side by side on wide screens */
.embed-duo {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: stretch;
}
.embed-duo .embed-shell {
  margin-top: 0;
  display: flex;
  flex-direction: column;
}
.embed-duo .embed-slot {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fff;
  padding: 0.75rem 0;
}
@media (max-width: 1080px) {
  .embed-duo { grid-template-columns: 1fr; align-items: start; }
}
.embed-shell .embed-head {
  padding: 1.4rem 2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.embed-shell .embed-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--white);
}
.embed-shell .embed-head span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.embed-slot { padding: 0; min-height: 480px; position: relative; }
.embed-slot iframe { width: 100%; border: none; display: block; }
.embed-placeholder {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
}
.embed-placeholder .ph-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--teal-bright);
  font-size: 1.4rem;
}
.embed-placeholder p { color: var(--text-dim); font-size: var(--size-small); max-width: 44ch; }
.embed-placeholder code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--teal-bright);
  background: rgba(18, 137, 126, 0.1);
  border: 1px solid rgba(18, 137, 126, 0.3);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-body { max-width: 760px; }
.legal-body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--white);
  margin: 3rem 0 1rem;
}
.legal-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--white);
  margin: 2rem 0 0.8rem;
}
.legal-body p, .legal-body li { color: var(--mist); font-size: var(--size-small); margin-bottom: 1rem; }
.legal-body ol { list-style: lower-roman; padding-left: 1.6rem; }
.legal-body ol li { margin-bottom: 0.5rem; }
.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 1.4rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--abyss), var(--navy));
  position: relative;
  overflow: hidden;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3.5rem, 7vw, 6rem) 0 3rem;
}
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

.footer-brand p {
  font-size: var(--size-small);
  color: var(--mist);
  max-width: 34ch;
  margin-top: 1.2rem;
}
.footer-phone {
  display: inline-flex;
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--teal-bright);
  transition: color 0.3s;
}
.footer-phone:hover { color: var(--white); }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.4rem;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a {
  font-size: var(--size-small);
  color: var(--mist);
  transition: color 0.3s, padding-left 0.3s;
}
.footer-col a:hover { color: var(--teal-bright); padding-left: 4px; }

.footer-cta h4 { margin-bottom: 1rem; }
.footer-cta p { font-size: var(--size-small); color: var(--mist); margin-bottom: 1.5rem; }

.footer-base {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-base p {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.footer-social { display: flex; gap: 1.6rem; }
.footer-social a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s;
}
.footer-social a:hover { color: var(--teal-bright); }

/* ---------- Reveal defaults (JS enhances) ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); will-change: transform, opacity; }
html.no-js [data-reveal], html.no-motion [data-reveal] { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .split-words .word > span { transform: none !important; }
  .veil { display: none; }
}
