/* =========================================================
   Eratex — glassmorphism single page
   Brand: green → blue
   1. Tokens & reset
   2. Background layers
   3. Nav
   4. Buttons & shared atoms
   5. Hero
   6. Services
   7. About
   8. Clients
   9. Contact
   10. Footer
   11. Responsive & motion preferences
   ========================================================= */

/* ---------- 1. Tokens & reset ---------- */
:root {
  --bg:            #04070c;
  --bg-2:          #071019;
  --ink:           #eaf2ff;
  --ink-soft:      #a6b6cc;
  --ink-dim:       #71829a;

  /* Brand — green and red.
     Green carries the gradients (a green→red sweep would pass through mud),
     red is the punctuation colour: indices, markers, alerts, active states.
     --red is sampled straight from the logo dot (#CC0000). */
  --green:         #10e08a;
  --green-mid:     #08c97e;
  --green-deep:    #05b877;
  --green-bright:  #3df0aa;

  --red:           #cc0000;
  --red-bright:    #ff2b2b;
  --red-soft:      #ff6b6b;

  --accent:        var(--green);
  --accent-2:      var(--red);

  /* Primary gradient — single-hue green, used on buttons, icons, fills */
  --brand-grad:    linear-gradient(115deg, var(--green) 0%, var(--green-mid) 52%, var(--green-deep) 100%);
  --brand-grad-r:  linear-gradient(115deg, var(--green-deep) 0%, var(--green-mid) 52%, var(--green) 100%);

  /* Dual gradient — green→red. Only for small marks (dots, bullets, rules)
     where the transition is too short to read as a colour blend. */
  --brand-grad-dual: linear-gradient(120deg, var(--green) 0%, var(--red) 100%);

  --glass-bg:      rgba(255, 255, 255, 0.055);
  --glass-bg-2:    rgba(255, 255, 255, 0.09);
  --glass-brd:     rgba(255, 255, 255, 0.12);
  --glass-brd-2:   rgba(255, 255, 255, 0.24);
  --glass-blur:    20px;

  --shadow:        0 24px 60px -28px rgba(0, 0, 0, 0.9);
  --shadow-lift:   0 34px 80px -32px rgba(16, 224, 138, 0.4);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  --pad-x: clamp(1.15rem, 4vw, 2.5rem);
  --maxw: 1200px;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* The browser's own [hidden]{display:none} loses to any author rule that sets
   display — which is how the logo fallback (and its dot) stayed on screen even
   with the hidden attribute set. This makes hidden actually mean hidden. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

/* Lenis drives scrolling; native smooth-scroll must stay off. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: rgba(16, 224, 138, 0.3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.8rem 1.2rem;
  background: var(--bg-2);
  border: 1px solid var(--glass-brd-2);
  border-radius: var(--r-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(5.5rem, 12vw, 9.5rem);
}

/* Shared glass surface */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Gradient hairline along the top edge of a glass panel */
.glass::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(16, 224, 138, 0.6) 24%,
              rgba(204, 0, 0, 0.5) 72%, transparent);
  opacity: 0.85;
  pointer-events: none;
}

.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.95rem;
  font-size: 0.775rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-pill);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
/* Section number inside a chip — brand red */
.glass-chip i {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--red-bright);
}

/* ---------- 2. Background layers ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.bg-aurora, .bg-grid, .bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.bg-aurora { overflow: hidden; }

.bg-aurora .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  will-change: transform;
}
.orb-1 {
  width: 46vw; height: 46vw;
  top: -12vw; left: -8vw;
  background: radial-gradient(circle, rgba(16, 224, 138, 0.5), transparent 70%);
  animation: drift 26s var(--ease) infinite alternate;
}
.orb-2 {
  width: 42vw; height: 42vw;
  top: 38%; right: -10vw;
  background: radial-gradient(circle, rgba(204, 0, 0, 0.42), transparent 70%);
  animation: drift 32s var(--ease) infinite alternate-reverse;
}
.orb-3 {
  width: 34vw; height: 34vw;
  bottom: -10vw; left: 26%;
  background: radial-gradient(circle, rgba(8, 201, 126, 0.4), transparent 70%);
  animation: drift 38s var(--ease) infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 5vh, 0) scale(1.18); }
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 78%);
}

.bg-noise {
  opacity: 0.26;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(125% 85% at 50% -12%, #0d2233 0%, var(--bg-2) 44%, var(--bg) 100%);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: rgba(255, 255, 255, 0.06);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--brand-grad);
  box-shadow: 0 0 14px rgba(16, 224, 138, 0.7);
}

/* ---------- 3. Nav ---------- */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: clamp(0.75rem, 2vw, 1.15rem) var(--pad-x);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.5rem 0.55rem 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(6, 12, 20, 0.66);
  border-color: var(--glass-brd-2);
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.95);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}
/* Wordmark PNG — height drives the size, width follows the intrinsic ratio
   declared by the width/height attributes, so nothing shifts while loading.
   The max-* pair matters: if the file 404s, a broken <img> falls back to its
   width/height attributes (1079x210) and would otherwise blow the nav apart. */
.brand-logo {
  height: 32px;
  width: auto;
  max-height: 32px;
  max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.55));
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}
.brand:hover .brand-logo {
  transform: scale(1.045);
  filter: drop-shadow(0 0 16px rgba(16, 224, 138, 0.45));
}

/* Shown only if the logo file fails to load (see the img onerror handler). */
.brand-fallback {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.footer-about .brand-fallback { font-size: 1.5rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.45rem 0.9rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
  border-radius: var(--r-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-link:hover, .nav-link.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  width: 18px; height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--red-bright);
}

.nav-cta { padding: 0.6rem 1.25rem; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  margin-left: auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ---------- 4. Buttons & atoms ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.btn-primary {
  color: #012216;
  font-weight: 600;
  background: var(--brand-grad);
  background-size: 180% 180%;
  background-position: 0% 50%;
  box-shadow: 0 14px 34px -14px rgba(16, 224, 138, 0.7);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background-position 0.6s var(--ease);
}
.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 20px 46px -14px rgba(16, 224, 138, 0.85);
}

.btn-glass, .btn-ghost {
  color: var(--ink);
  background: var(--glass-bg);
  border-color: var(--glass-brd);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-glass:hover, .btn-ghost:hover {
  background: var(--glass-bg-2);
  border-color: var(--glass-brd-2);
}
.btn-block { width: 100%; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }
.section-tag { margin-bottom: 1.4rem; }

/* Headings — gradient fill with a solid fallback colour so text is never
   invisible if background-clip:text is unsupported. */
.section-title, .hero-title, .footer-cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.08;
  margin: 0 0 1.15rem;
  color: #f3f8ff;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .section-title, .hero-title, .footer-cta-title {
    background: linear-gradient(180deg, #ffffff 22%, #c3d8ef 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.section-title { font-size: clamp(1.95rem, 4.4vw, 3.2rem); }

.section-lead {
  max-width: 640px;
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: var(--ink-soft);
  font-weight: 300;
}

/* Split-text spans injected by JS. .split-line is the clipping mask each word
   rises out of — it stays inline-block so headlines still wrap naturally. */
.split-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.split-word { display: inline-block; }

/* ---------- 5. Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: clamp(7.5rem, 17vh, 10.5rem);
  padding-bottom: clamp(5rem, 10vh, 7rem);
}
.hero-inner { max-width: 980px; }

.hero-title {
  font-size: clamp(2.6rem, 7.4vw, 5.3rem);
  font-weight: 800;
  margin-block: 1.5rem 1.6rem;
  max-width: 15ch;
}

.hero-sub {
  max-width: 62ch;
  margin: 0 0 2.4rem;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  font-weight: 300;
  color: var(--ink-soft);
}
.hero-sub strong {
  font-weight: 500;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: clamp(2.75rem, 6vw, 4rem);
}

/* Echoes the red dot from the wordmark */
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 0 rgba(255, 43, 43, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 43, 43, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 43, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 43, 43, 0); }
}

/* Six capability chips under the hero copy */
.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: clamp(1rem, 2.2vw, 1.4rem);
}
.hero-pillars li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.035);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.hero-pillars li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-grad-dual);
  flex: none;
}
.hero-pillars li:hover {
  color: var(--ink);
  border-color: rgba(16, 224, 138, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-dim);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}
.scroll-hint:hover { color: var(--ink); }
.mouse {
  width: 22px; height: 34px;
  border: 1px solid var(--glass-brd-2);
  border-radius: var(--r-pill);
  display: grid;
  justify-items: center;
  padding-top: 6px;
}
.mouse span {
  width: 3px; height: 6px;
  border-radius: 2px;
  background: var(--green);
  animation: wheel 1.9s var(--ease) infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0); opacity: 0; }
  25%  { opacity: 1; }
  70%  { transform: translateY(11px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- 6. Services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 2.6vw, 2.15rem);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease),
              background 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover {
  transform: translateY(-7px);
  background: var(--glass-bg-2);
  border-color: rgba(16, 224, 138, 0.35);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-index {
  position: absolute;
  top: clamp(1.1rem, 2vw, 1.5rem);
  right: clamp(1.2rem, 2.2vw, 1.7rem);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.055);
  transition: color 0.45s var(--ease);
}
.card:hover .card-index { color: rgba(255, 43, 43, 0.2); }

/* Cursor-tracking glow (position set from JS via --mx/--my) */
.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%),
              rgba(16, 224, 138, 0.17), rgba(204, 0, 0, 0.08) 48%, transparent 72%);
  pointer-events: none;
}
.card:hover .card-glow { opacity: 1; }

.card-icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 1.2rem;
  border-radius: 15px;
  color: #012216;
  background: var(--brand-grad);
  box-shadow: 0 10px 26px -12px rgba(16, 224, 138, 0.75);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover .card-icon {
  transform: translateY(-2px) rotate(-4deg);
  box-shadow: 0 16px 34px -12px rgba(16, 224, 138, 0.85);
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.26rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0 0 0.6rem;
}
.card > p {
  margin: 0 0 1.15rem;
  font-size: 0.945rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.card-list {
  display: grid;
  gap: 0.5rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.card-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.86rem;
  color: var(--ink-dim);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-grad-dual);
}

/* ---------- 7. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about-body {
  margin: 1.25rem 0 1.9rem;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 60ch;
}
.about-points {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2.35rem;
}
.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #012216;
  border-radius: 50%;
  background: var(--brand-grad);
}

.about-panel { padding: clamp(1.7rem, 3vw, 2.35rem); }
.panel-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.panel-sub { margin: 0 0 1.85rem; font-size: 0.85rem; color: var(--ink-dim); }

/* Five-stage project process list inside the About panel */
.process {
  display: grid;
  gap: 1.35rem;
  counter-reset: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.process li {
  position: relative;
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
}
/* Connector line down the left rail */
.process li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: -1.35rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(16, 224, 138, 0.5), rgba(204, 0, 0, 0.18));
}
.process-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 31px; height: 31px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #012216;
  background: var(--brand-grad);
  box-shadow: 0 8px 20px -10px rgba(16, 224, 138, 0.8);
}
.process-body { display: flex; flex-direction: column; gap: 0.2rem; }
.process-body strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}
.process-body span {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- 8. Clients ---------- */
/* Featured clients — three across */
.clients-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.35rem);
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

/* Additional / placeholder slots — four across, deliberately quieter */
.clients-more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.1rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.clients-more-label {
  margin: 0 0 1.1rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* Shared tile — works with either a text name or an <img class="client-logo"> */
.client-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 128px;
  padding: 1.5rem 1.15rem;
  border-radius: var(--r-md);
  text-align: center;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease),
              border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.client-tile:hover {
  transform: translateY(-5px);
  background: var(--glass-bg-2);
  border-color: rgba(16, 224, 138, 0.35);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.client-name {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.7vw, 1.24rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.client-type {
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* Drop-in logo image. Add .client-logo--mono for dark logos that need
   to be forced white against the dark background. */
.client-logo {
  max-height: 52px;
  max-width: 78%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease);
}
.client-tile:hover .client-logo { opacity: 1; }
.client-logo--mono { filter: brightness(0) invert(1); }

.client-tile--featured { min-height: 150px; }

/* Empty slot styling — dashed edge signals "logo goes here" without
   looking broken to a visitor. */
.client-tile--slot {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
  min-height: 112px;
}
.client-tile--slot:hover { border-style: solid; }
.client-slot-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--brand-grad-dual);
  opacity: 0.3;
  transition: opacity 0.4s var(--ease);
}
.client-tile--slot:hover .client-slot-mark { opacity: 0.65; }

.marquee {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-size: 0.83rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}
.marquee-track .dot { color: var(--red-bright); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 8b. Parallax picture bands ----------
   .parallax-media is deliberately taller than the band it sits in, so the
   image can slide inside without ever exposing an edge. The inset below is
   only the no-JS default — script.js recalculates it from each image's
   data-speed and overrides it inline, so any speed stays covered. */
.band-wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(1rem, 3vw, 2rem);
}

.parallax-band {
  position: relative;
  overflow: hidden;
  margin: 0;
  display: grid;
  align-items: end;
  min-height: clamp(340px, 52vh, 560px);
  border-radius: var(--r-xl);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.parallax-band--tall { min-height: clamp(380px, 62vh, 680px); }

.parallax-media {
  position: absolute;
  inset: -28% 0;
  z-index: 0;
}
.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  /* Pull the photography toward the brand: cooler, darker, less saturated,
     so white text stays readable and nothing fights the green accents. */
  filter: saturate(0.55) contrast(1.06) brightness(0.62);
}

/* Dark green wash + vignette over the photo */
.parallax-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 7, 12, 0.55) 0%, rgba(4, 7, 12, 0.2) 40%, rgba(4, 7, 12, 0.92) 100%),
    radial-gradient(120% 100% at 15% 10%, rgba(16, 224, 138, 0.22), transparent 60%),
    radial-gradient(100% 90% at 100% 100%, rgba(204, 0, 0, 0.14), transparent 62%);
}

.parallax-content {
  position: relative;
  z-index: 2;
  padding: clamp(1.6rem, 4vw, 3rem);
  max-width: 720px;
}
.parallax-content .glass-chip { margin-bottom: 1.1rem; }

.band-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.75rem;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.band-lead {
  margin: 0;
  max-width: 54ch;
  font-size: clamp(0.95rem, 1.3vw, 1.06rem);
  font-weight: 300;
  color: #cfdae8;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6);
}

/* Band B — image / copy / image */
.parallax-duo {
  display: grid;
  grid-template-columns: 0.85fr 1.1fr 0.85fr;
  gap: clamp(1rem, 2.4vw, 1.75rem);
  align-items: center;
}
.parallax-duo-copy { padding-block: clamp(1rem, 3vw, 2rem); }

.parallax-caption {
  position: relative;
  z-index: 2;
  padding: clamp(1rem, 2vw, 1.4rem) clamp(1.1rem, 2.2vw, 1.6rem);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e8f3ee;
}
.parallax-caption::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 0.6rem;
  vertical-align: middle;
  border-radius: 2px;
  background: var(--brand-grad-dual);
}

/* ---------- 9. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 0.8rem;
  margin-top: 2.35rem;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  border-radius: var(--r-md);
  font-size: 0.98rem;
}
.ci-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  color: #012216;
  background: var(--brand-grad);
}
.ci-icon svg { width: 21px; height: 21px; }
.ci-body { display: flex; flex-direction: column; gap: 0.1rem; }
.ci-label {
  font-size: 0.71rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.contact-info a { color: var(--ink); transition: color 0.25s var(--ease); }
.contact-info a:hover { color: var(--green); }

.contact-form {
  padding: clamp(1.7rem, 3vw, 2.5rem);
  display: grid;
  gap: 1.1rem;
}
.form-head {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: var(--ink-dim);
}
.form-head b { color: var(--ink); font-weight: 600; }

.field { display: grid; gap: 0.45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-sm);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #5d667c; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(16, 224, 138, 0.6);
  box-shadow: 0 0 0 4px rgba(16, 224, 138, 0.13);
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: #08111b; color: var(--ink); }

.field.invalid input, .field.invalid textarea {
  border-color: rgba(255, 116, 132, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 116, 132, 0.1);
}
.error { font-size: 0.78rem; color: #ff8a99; }

/* Honeypot — visually removed but still submitted */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0.25rem 0 0;
  font-size: 0.83rem;
  color: var(--ink-dim);
  text-align: center;
}
.form-note.success { color: var(--green); }
.form-note.error-text { color: #ff8a99; }

/* ---------- 10. Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  flex-wrap: wrap;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.6rem, 3.5vw, 2.9rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(16, 224, 138, 0.16), transparent 55%),
    radial-gradient(120% 180% at 100% 100%, rgba(204, 0, 0, 0.16), transparent 55%),
    var(--glass-bg);
}
.footer-cta-title {
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  margin-bottom: 0.5rem;
}
.footer-cta p {
  margin: 0;
  max-width: 52ch;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.25fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  padding: clamp(1.9rem, 3.5vw, 2.9rem) clamp(1.6rem, 3.5vw, 2.9rem);
  border-radius: var(--r-xl);
}
.footer-col { min-width: 0; }
.footer-about .brand { margin-bottom: 1.15rem; }
.footer-about .brand-logo { height: 38px; }

.footer-blurb {
  margin: 0 0 1.35rem;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 42ch;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}
.footer-badges li {
  padding: 0.32rem 0.7rem;
  font-size: 0.71rem;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.035);
}

.socials { display: flex; gap: 0.55rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--ink-soft);
  border: 1px solid var(--glass-brd);
  background: rgba(255, 255, 255, 0.04);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease),
              border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.socials svg { width: 18px; height: 18px; }
.socials a:hover {
  color: #012216;
  background: var(--brand-grad);
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.15rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-list { display: grid; gap: 0.65rem; font-size: 0.9rem; }
.footer-list a, .footer-list span, .footer-list address {
  color: var(--ink-soft);
  font-weight: 300;
}
.footer-list a {
  position: relative;
  display: inline-block;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-list a:hover { color: var(--green); transform: translateX(3px); }

.footer-contact-list li { display: flex; flex-direction: column; gap: 0.15rem; }
.footer-contact-list a { color: var(--ink); font-weight: 400; }
.fl-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem 0.5rem 0;
  font-size: 0.82rem;
  color: var(--ink-dim);
}
.footer-bottom p { margin: 0; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 1.15rem; }
.footer-legal-links a { transition: color 0.25s var(--ease); }
.footer-legal-links a:hover { color: var(--green); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 45;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  color: var(--ink);
  background: rgba(6, 12, 20, 0.7);
  border: 1px solid var(--glass-brd);
  border-radius: 50%;
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
              visibility 0.35s, border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.to-top svg { width: 19px; height: 19px; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--green); border-color: rgba(16, 224, 138, 0.45); }

/* ---------- 11. Responsive ---------- */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .parallax-duo { grid-template-columns: 1fr 1fr; }
  .parallax-duo-copy { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav-cta { display: none; }

  .nav { position: relative; flex-wrap: wrap; padding: 0.5rem 0.55rem 0.5rem 0.8rem; }
  .nav-links {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    margin: 0;
    padding: 0.55rem;
    border-radius: var(--r-md);
    background: rgba(6, 12, 20, 0.9);
    border: 1px solid var(--glass-brd);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link { padding: 0.72rem 0.9rem; }
  .nav-link.active::after { display: none; }

  .field-row { grid-template-columns: 1fr; }
  .parallax-duo { grid-template-columns: 1fr; }
  .parallax-band, .parallax-band--tall { min-height: clamp(280px, 46vh, 420px); }
  .footer-main { grid-template-columns: 1fr; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
  .footer-bottom { justify-content: flex-start; }
  .marquee-track { animation-duration: 26s; }
}

@media (max-width: 520px) {
  .hero-pillars { padding: 1rem; }
  .hero-pillars li { font-size: 0.8rem; padding: 0.42rem 0.8rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .scroll-hint { display: none; }
  .clients-more { grid-template-columns: 1fr 1fr; }
}

/* Fallback for browsers without backdrop-filter */
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .glass, .glass-chip, .nav-links, .to-top { background: rgba(9, 16, 26, 0.9); }
}

/* ---------- Motion preferences ---------- */
@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;
  }
  .marquee-track { animation: none; }
  #bg-canvas { display: none; }
}
