/* ================================================================
   marc-levy.com — Main Stylesheet
   Dark Command Center Design System
   ================================================================ */

/* ----------------------------------------------------------------
   0. Font Face
---------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2-variations'),
       url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------
   1. CSS Custom Properties
---------------------------------------------------------------- */
:root {
  --c-base:         #0A0F11;
  --c-surface:      #1A2E35;
  --c-primary:      #00F5FF;
  --c-primary-dim:  rgba(0, 245, 255, 0.10);
  --c-tertiary:     #FF3D00;
  --c-white:        #FFFFFF;
  --c-muted:        #8899A6;
  --c-glass:        rgba(26, 46, 53, 0.65);
  --glass-blur:     blur(14px);
  --glass-border:   1px solid rgba(0, 245, 255, 0.12);
  --shadow-card:    0 4px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow:    0 0 28px rgba(0, 245, 255, 0.18);
  --shadow-nav:     0 1px 0 rgba(0, 245, 255, 0.15), 0 8px 32px rgba(0, 0, 0, 0.5);
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h:          72px;
  --max-w:          1200px;
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-2xl: 24px; --r-full: 9999px;
  --sp-1:.25rem; --sp-2:.5rem; --sp-3:.75rem; --sp-4:1rem; --sp-5:1.25rem;
  --sp-6:1.5rem; --sp-8:2rem; --sp-10:2.5rem; --sp-12:3rem; --sp-16:4rem;
  --sp-20:5rem; --sp-24:6rem; --sp-32:8rem;
  --t-fast:150ms ease; --t-base:250ms ease; --t-slow:400ms ease;
}

/* ----------------------------------------------------------------
   2. Reset & Base
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  font-family: var(--font);
  background-color: var(--c-base);
  color: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ----------------------------------------------------------------
   3. Typography
---------------------------------------------------------------- */
h1, h2, h3, h4 { font-weight: 300; line-height: 1.12; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.25rem; font-weight: 500; }
p  { font-size: 1rem; line-height: 1.8; }

.text-muted   { color: var(--c-muted); }
.text-primary { color: var(--c-primary); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ----------------------------------------------------------------
   4. Accessibility
---------------------------------------------------------------- */
.skip-link {
  position: absolute; top: -100%; left: var(--sp-4);
  background: var(--c-primary); color: var(--c-base);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-md);
  font-size: .875rem; font-weight: 500; z-index: 9999;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-4); }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; border-radius: var(--r-sm); }

/* ----------------------------------------------------------------
   5. Layout Utilities
---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--sp-6); }
.section     { padding-block: var(--sp-24); }
.section--lg { padding-block: var(--sp-32); }

/* ----------------------------------------------------------------
   6. Navigation
---------------------------------------------------------------- */
.nav {
  position: fixed;
  inset-block-start: 0; inset-inline: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--c-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  transition: background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.nav.scrolled {
  background: rgba(10, 15, 17, 0.94);
  border-bottom-color: rgba(0, 245, 255, 0.3);
  box-shadow: var(--shadow-nav);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--sp-6);
}
.nav__logo {
  font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em;
  color: var(--c-white); transition: color var(--t-fast);
}
.nav__logo span { color: var(--c-primary); }
.nav__logo:hover { color: var(--c-primary); }

.nav__links { display: flex; align-items: center; gap: var(--sp-8); }
.nav__link {
  font-size: .875rem; font-weight: 500; letter-spacing: .02em;
  color: var(--c-muted); transition: color var(--t-fast); position: relative;
}
.nav__link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--c-primary); transition: width var(--t-base);
}
.nav__link:hover, .nav__link.active { color: var(--c-white); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: var(--sp-5); }
.nav__social { display: flex; align-items: center; gap: var(--sp-3); }
.nav__social-link {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.nav__social-link:hover { color: var(--c-primary); border-color: var(--c-primary); background: var(--c-primary-dim); }
.nav__social-link svg {
  width: 15px; height: 15px; fill: currentColor; stroke: none;
}

/* Hamburger */
.nav__hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 32px; height: 32px; cursor: pointer;
}
.nav__hamburger span {
  display: block; width: 100%; height: 1.5px; background: var(--c-white);
  transition: transform var(--t-base), opacity var(--t-base); transform-origin: center;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none; position: fixed; inset: 0; top: var(--nav-h);
  background: rgba(10, 15, 17, 0.97); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-8); z-index: 999; opacity: 0; pointer-events: none;
  transition: opacity var(--t-base);
}
.nav__mobile.open { display: flex; opacity: 1; pointer-events: all; }
.nav__mobile ul { display: flex; flex-direction: column; align-items: center; gap: var(--sp-6); }
.nav__mobile-link {
  font-size: clamp(1.875rem, 5vw, 2.5rem); font-weight: 300;
  color: var(--c-white); letter-spacing: -.02em; transition: color var(--t-fast);
}
.nav__mobile-link:hover { color: var(--c-primary); }
.nav__mobile-social { display: flex; gap: var(--sp-5); margin-top: var(--sp-4); }

/* ----------------------------------------------------------------
   7. Buttons
---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-size: .8125rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-6);
  transition: all var(--t-base); cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn--primary { background: var(--c-primary); color: var(--c-base); border-color: var(--c-primary); }
.btn--primary:hover { background: transparent; color: var(--c-primary); box-shadow: var(--shadow-glow); }
.btn--outlined { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--outlined:hover { background: var(--c-primary); color: var(--c-base); box-shadow: var(--shadow-glow); }
.btn--ghost { background: rgba(255,255,255,.06); color: var(--c-white); border-color: rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.btn--lg { font-size: .9375rem; padding: var(--sp-4) var(--sp-10); border-radius: var(--r-lg); }

/* ----------------------------------------------------------------
   8. Glass Card
---------------------------------------------------------------- */
.card {
  background: var(--c-glass); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur); border: var(--glass-border);
  border-radius: var(--r-xl); padding: var(--sp-8);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  border-color: rgba(0, 245, 255, 0.28);
}
.card__icon {
  width: 44px; height: 44px; color: var(--c-primary); margin-bottom: var(--sp-5);
}
.card__icon svg {
  width: 100%; height: 100%; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.card__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: var(--sp-3); }
.card__body  { font-size: .9375rem; line-height: 1.75; color: var(--c-muted); }

/* ----------------------------------------------------------------
   9. Hero (Homepage) — Cinematic full-bleed photo blend
---------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden; padding-top: var(--nav-h);
}

/* Subtle grid overlay */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,245,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,.025) 1px, transparent 1px);
  background-size: 64px 64px; pointer-events: none; z-index: 1;
}

/* Background photo container */
.hero__bg { position: absolute; inset: 0; z-index: 0; }

.hero__bg-img {
  position: absolute; right: 0; top: 0;
  height: 100%; width: 62%;
  object-fit: cover; object-position: center top;
  filter: brightness(.78) contrast(1.06) saturate(.75);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 100%);
}

/* Dark gradient overlay — solid left, fades right, darkens bottom */
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--c-base) 32%, rgba(10,15,17,.5) 62%, rgba(10,15,17,.08) 100%),
    linear-gradient(to top, var(--c-base) 0%, transparent 22%);
  pointer-events: none;
}

/* Content */
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin-inline: auto;
  padding-inline: var(--sp-6); padding-block: 6rem; width: 100%;
}
.hero__content { display: flex; flex-direction: column; gap: var(--sp-5); max-width: 660px; }

/* Eyebrow */
.hero__eyebrow {
  font-size: .6875rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--c-primary);
}

/* Giant name */
.hero__name {
  display: flex; flex-direction: column;
  line-height: .9; font-weight: 900;
  letter-spacing: -.04em;
  font-size: clamp(4.5rem, 12vw, 10.5rem);
}
.hero__name-first { color: var(--c-white); }
.hero__name-last {
  color: transparent;
  -webkit-text-stroke: 3px var(--c-primary);
}

/* Tagline with vertical bar */
.hero__tagline {
  display: flex; align-items: center; gap: var(--sp-4);
  font-size: 1rem; color: rgba(255,255,255,.72); line-height: 1.6;
  max-width: 38ch;
}
.hero__tagline-bar {
  flex-shrink: 0; width: 2px; height: 3.2em;
  background: var(--c-primary); border-radius: 2px;
}

.hero__actions { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-3); }

/* Grid column pulse — canvas drawn via JS */
.hero__elec {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
}
.hero__elec canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

/* Status badges (decorative) */
.hero__status {
  position: absolute; bottom: 2.5rem; right: 2.5rem;
  z-index: 3; text-align: right;
  display: flex; flex-direction: column; gap: 1rem;
}
.hero__status-item { text-align: right; }
.hero__status-label {
  display: block; font-size: .5625rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--c-muted); margin-bottom: .25rem;
}
.hero__status-value {
  display: block; font-size: .875rem; font-weight: 700;
  color: var(--c-primary); letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.hero__status-value::before {
  content: ''; display: inline-block; width: 28px; height: 2px;
  background: var(--c-primary); vertical-align: middle;
  margin-right: .5rem; border-radius: 2px;
}
/* Blinking cursor while counting */
.hero__count.counting::after {
  content: '|'; animation: cursorBlink .6s step-end infinite;
  color: var(--c-primary); margin-left: 1px;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}

/* Badge bar — grows from 0 whilst counter runs */
@keyframes barLoad {
  from { width: 0; opacity: .4; }
  to   { width: 28px; opacity: 1; }
}
.hero__status-value.bar-loading::before {
  animation: barLoad 3.2s cubic-bezier(0.33, 1, 0.68, 1) forwards !important;
  width: 0;
}

/* Badge bar — slow breathing glow (after load) */
@keyframes barGlow {
  0%, 100% { box-shadow: 0 0 4px rgba(0,245,255,.35); opacity: .75; }
  50%       { box-shadow: 0 0 12px rgba(0,245,255,.85); opacity: 1; }
}
/* Badge value — occasional digital flicker, like a live readout */
@keyframes badgeFlicker {
  0%, 72%, 100% { opacity: 1; }
  75%           { opacity: .4; }
  78%           { opacity: .85; }
  81%           { opacity: .5; }
  84%           { opacity: 1; }
}
.hero__status-value::before {
  animation: barGlow 2.8s ease-in-out infinite;
}
.hero__status-value {
  animation: badgeFlicker 14s ease-in-out infinite;
}
.hero__status-item:nth-child(2) .hero__status-value {
  animation-delay: 7s;
}
.hero__status-item:nth-child(2) .hero__status-value::before {
  animation-delay: 1.4s;
}

/* ----------------------------------------------------------------
   10. Section Header
---------------------------------------------------------------- */
.section-header { margin-bottom: var(--sp-12); }
.section-header--center { text-align: center; }
.section-header__eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-primary); margin-bottom: var(--sp-3);
}
.section-header__title { font-size: clamp(1.875rem,4vw,3rem); font-weight: 300; letter-spacing: -.025em; }
.section-header__title strong { font-weight: 600; }
.section-header__subtitle { font-size: 1.125rem; color: var(--c-muted); margin-top: var(--sp-4); max-width: 58ch; }
.services__subtitle { white-space: nowrap; }
.about__subtitle { white-space: nowrap; }
.section-header--center .section-header__subtitle { margin-inline: auto; }

/* ----------------------------------------------------------------
   11. Services Grid
---------------------------------------------------------------- */
.services { background: var(--c-base); }
.services__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-5); align-items: start; }
.services__grid .card:nth-child(2) { margin-top: var(--sp-8); }
.services__grid .card:nth-child(3) { margin-top: var(--sp-4); }
.services__grid .card:nth-child(4) { margin-top: var(--sp-12); }

/* ----------------------------------------------------------------
   12. Client Logos Marquee
---------------------------------------------------------------- */
.logos-section {
  position: relative;
  background: var(--c-base);
  padding-block: var(--sp-16);
  overflow: hidden;
  border-top: 1px solid rgba(0,245,255,.22);
  border-bottom: 1px solid rgba(0,245,255,.22);
  box-shadow:
    0 -1px 24px rgba(0,245,255,.07),
    0  1px 24px rgba(0,245,255,.07);
}

/* Subtle grid overlay */
.logos-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,245,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,.03) 1px, transparent 1px);
  background-size: 44px 44px; pointer-events: none;
}

/* Central radial teal glow */
.logos-section::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 120% at 50% 50%, rgba(0,245,255,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Label with decorative lines */
.logos-section__label {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: var(--sp-5);
  font-size: .625rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--c-primary); margin-bottom: var(--sp-8);
}
.logos-section__label::before,
.logos-section__label::after {
  content: ''; flex: 1; max-width: 72px; height: 1px;
}
.logos-section__label::before { background: linear-gradient(to right, transparent, var(--c-primary)); }
.logos-section__label::after  { background: linear-gradient(to left,  transparent, var(--c-primary)); }

/* Track */
.logos__track-wrap { position: relative; overflow: hidden; z-index: 1; transform: translateZ(0); }
.logos__track-wrap::before, .logos__track-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.logos__track-wrap::before { left: 0;  background: linear-gradient(to right, var(--c-base), transparent); }
.logos__track-wrap::after  { right: 0; background: linear-gradient(to left,  var(--c-base), transparent); }

.logos__track {
  display: flex; align-items: center; width: max-content;
  will-change: transform;
}

/* Individual logo items — separated by teal hairlines */
.logos__item {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  height: 120px; padding-inline: var(--sp-16);
  border-right: 1px solid rgba(0,245,255,.12);
  transition: background var(--t-base);
}
.logos__item:hover { background: transparent; }

/* Logos — inverted to white silhouettes, brand colour restored on hover */
.logos__item img {
  height: 80px; width: auto; max-width: 280px; object-fit: contain;
  filter: invert(1) grayscale(1) brightness(1.1) opacity(.75);
  transition: filter 300ms ease;
}
.logos__item:hover img {
  filter: invert(0) grayscale(0%) brightness(1) opacity(1);
}

/* ----------------------------------------------------------------
   13. Testimonials
---------------------------------------------------------------- */
.testimonials { background: var(--c-base); }
.testimonials__grid {
  display: flex; flex-direction: row; align-items: flex-start;
  gap: var(--sp-8); overflow-x: auto;
  padding-inline: var(--sp-8); padding-bottom: var(--sp-16);
  -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
}
/* Dotted progress-track scrollbar */
.testimonials__grid::-webkit-scrollbar { height: 1.5px; }
.testimonials__grid::-webkit-scrollbar-track {
  background: rgba(0,245,255,.08);
  border-radius: 0;
}
.testimonials__grid::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, transparent, var(--c-primary) 40%, var(--c-primary) 60%, transparent);
  border-radius: 0;
  box-shadow: 0 0 6px rgba(0,245,255,.5);
}

/* Cards grow to fill wide screens, min-width triggers scroll on smaller ones */
.testimonials__grid .testimonial-card {
  flex: 1 0 clamp(220px, 18vw, 300px);
  scroll-snap-align: start;
}
/* Stagger every other card down */
.testimonials__grid .testimonial-card:nth-child(even) { margin-top: var(--sp-8); }

.testimonial-card {
  background: var(--c-glass); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur); border: var(--glass-border);
  border-radius: var(--r-xl); padding: var(--sp-8);
  display: flex; flex-direction: column; gap: var(--sp-5);
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-card), var(--shadow-glow);
  border-color: rgba(0,245,255,.24);
}
.testimonial-card__quote-mark {
  font-size: 3.5rem; line-height: .7; color: var(--c-primary); opacity: .5;
  font-family: Georgia,'Times New Roman',serif; user-select: none; font-weight: 700;
}
.testimonial-card__text { font-size: .9375rem; line-height: 1.78; color: rgba(255,255,255,.88); flex: 1; }
.testimonial-card__author {
  display: flex; align-items: center; gap: var(--sp-3); margin-top: auto;
  padding-top: var(--sp-4); border-top: 1px solid rgba(136,153,166,.12);
}
.testimonial-card__avatar {
  width: 42px; height: 42px; border-radius: var(--r-full);
  border: 2px solid var(--c-primary); object-fit: cover; flex-shrink: 0;
}
.testimonial-card__name { font-size: .875rem; font-weight: 600; color: var(--c-white); }
.testimonial-card__role { font-size: .75rem; color: var(--c-muted); margin-top: 2px; }

/* ----------------------------------------------------------------
   14. CTA / Contact Section
---------------------------------------------------------------- */
.cta-section { background: var(--c-surface); position: relative; overflow: hidden; }
.cta__elec { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cta__elec canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Radial glow */
.cta-section::before {
  content: ''; position: absolute; top: -180px; right: -180px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(0,245,255,.045) 0%, transparent 68%); pointer-events: none; z-index: 0;
}
/* Faint grid lines — matches hero */
.cta-section::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(0,245,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
}
.cta-section__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: start; position: relative; z-index: 1; }
.cta-section__heading {
  font-size: clamp(2rem,4vw,3rem); font-weight: 300; letter-spacing: -.03em; margin-top: var(--sp-3);
}
.cta-section__badge {
  display: inline-block; font-size: .8125rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-primary); margin-top: var(--sp-3); margin-bottom: var(--sp-5);
}
.cta-section__body { font-size: 1rem; line-height: 1.8; color: var(--c-muted); }
/* get-in-touch.html page variant — full-page hero treatment */
.cta-section--page {
  padding-top: calc(var(--nav-h) + var(--sp-16));
  background: linear-gradient(to bottom, var(--c-base) 0%, var(--c-surface) 35%);
}
.cta-section--page .container { position: relative; z-index: 1; }
.cta-section--page .cta-section__heading { margin-top: 0.75rem; }
.cta-section--page .cta-section__intro { margin-bottom: var(--sp-10); }

/* ----------------------------------------------------------------
   15. Form
---------------------------------------------------------------- */
/* Glass card wrapping the form */
.form {
  display: flex; flex-direction: column; gap: var(--sp-4);
  background: #04080a;
  border: 1px solid rgba(0,245,255,.12);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: 0 0 60px rgba(0,0,0,.6), inset 0 0 40px rgba(0,245,255,.02);
}
.form__group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form__label { font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
/* Terminal-style inputs: bottom border only */
.form__input, .form__textarea {
  background: transparent; border: none; border-bottom: 1px solid rgba(0,245,255,.2);
  border-radius: 0; color: #e0fffe; font-size: .9375rem;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  padding: var(--sp-3) var(--sp-4); width: 100%; outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form__input::placeholder, .form__textarea::placeholder { color: rgba(0,245,255,.45); font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; }
.form__input:focus, .form__textarea:focus {
  outline: none;
  border-bottom-color: var(--c-primary);
  box-shadow: 0 2px 0 rgba(0,245,255,.35);
}
.form__textarea { min-height: 140px; resize: vertical; }
.form__status { font-size: .875rem; min-height: 1.4em; margin-top: var(--sp-2); }
.form__status.success { color: var(--c-primary); }
.form__status.error   { color: var(--c-tertiary); }

/* ----------------------------------------------------------------
   16. Footer
---------------------------------------------------------------- */
.footer { background: var(--c-base); border-top: 1px solid rgba(0,245,255,.07); padding-block: var(--sp-12); }
.footer__main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-8); }
.footer__brand-name { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.footer__brand-name span { color: var(--c-primary); }
.footer__tagline { font-size: .75rem; color: var(--c-muted); margin-top: var(--sp-1); }
.footer__nav { display: flex; justify-content: center; }
.footer__nav-list { display: flex; gap: var(--sp-6); flex-wrap: wrap; justify-content: center; }
.footer__nav-link { font-size: .8125rem; color: var(--c-muted); transition: color var(--t-fast); }
.footer__nav-link:hover { color: var(--c-primary); }
.footer__social { display: flex; gap: var(--sp-3); justify-content: flex-end; }
.footer__social-link {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.footer__social-link:hover { color: var(--c-primary); border-color: var(--c-primary); background: var(--c-primary-dim); }
.footer__social-link svg {
  width: 15px; height: 15px; fill: currentColor; stroke: none;
}
.footer__bottom {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-4);
  margin-top: var(--sp-8); padding-top: var(--sp-6);
  border-top: 1px solid rgba(136,153,166,.08);
}
.footer__copy { font-size: .75rem; color: var(--c-muted); }

/* ----------------------------------------------------------------
   17. Page Hero (inner pages)
---------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--nav-h) + var(--sp-20)); padding-bottom: var(--sp-16);
  background: var(--c-base); position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 55%; height: 1px; z-index: 2;
  background: linear-gradient(to right, transparent, rgba(0,245,255,.35), transparent);
}
.page-hero__elec { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-hero__elec canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__eyebrow {
  display: block; font-size: .75rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--c-primary); margin-bottom: var(--sp-3);
}
.page-hero__title { font-size: clamp(2.75rem,7vw,5rem); font-weight: 300; letter-spacing: -.035em; }
.page-hero__subtitle { font-size: 1.125rem; color: var(--c-muted); margin-top: var(--sp-4); max-width: 52ch; }

/* ----------------------------------------------------------------
   18. Breadcrumb
---------------------------------------------------------------- */
.breadcrumb { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.breadcrumb__item { font-size: .75rem; color: var(--c-muted); }
.breadcrumb__item a { color: var(--c-muted); transition: color var(--t-fast); }
.breadcrumb__item a:hover { color: var(--c-primary); }
.breadcrumb__sep { color: var(--c-muted); opacity: .4; font-size: .75rem; }

/* ----------------------------------------------------------------
   19. My Story Layout
---------------------------------------------------------------- */
.story-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-16); align-items: start; }

.timeline { position: relative; }
.timeline__line { position: relative; }
.timeline__line::before {
  content: ''; position: absolute; left: 7px; top: 10px; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, var(--c-primary) 0%, transparent 100%); opacity: .35;
}
.timeline__item { position: relative; padding-left: var(--sp-8); padding-bottom: var(--sp-8); }
.timeline__item::before {
  content: ''; position: absolute; left: 0; top: 8px; width: 15px; height: 15px;
  border-radius: var(--r-full); background: var(--c-base);
  border: 2px solid var(--c-primary); box-shadow: 0 0 12px rgba(0,245,255,.4);
}
.timeline__year {
  font-size: .6875rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-primary); margin-bottom: 2px;
}
.timeline__title { font-size: .9375rem; font-weight: 600; color: var(--c-white); margin-bottom: var(--sp-1); }
.timeline__detail { font-size: .8125rem; color: var(--c-muted); line-height: 1.6; }

/* ── Timeline scroll-reveal ──────────────────────────────────── */
/* Override generic reveal: items slide in from the left */
.js-ready .timeline__item.reveal {
  opacity: 0; transform: translateX(-22px);
  transition: opacity .55s ease, transform .55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.js-ready .timeline__item.reveal.revealed { opacity: 1; transform: translateX(0); }

/* Dot springs in after the item slides */
.js-ready .timeline__item::before {
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s;
}
.js-ready .timeline__item.revealed::before { transform: scale(1); }

/* Vertical line draws downward when first item fires */
.js-ready .timeline__line::before {
  transform-origin: top center; transform: scaleY(0);
  transition: transform 2.2s ease 0.25s;
}
.js-ready .timeline__line.line-drawn::before { transform: scaleY(1); }

.story-narrative { display: flex; flex-direction: column; gap: var(--sp-6); }
.story-narrative p { font-size: 1.0625rem; line-height: 1.85; color: rgba(255,255,255,.85); }

.pull-quote {
  border-left: 3px solid var(--c-primary); padding: var(--sp-5) var(--sp-6);
  background: var(--c-primary-dim); border-radius: 0 var(--r-md) var(--r-md) 0; margin-block: var(--sp-2);
}
.pull-quote p { font-size: 1.25rem !important; font-weight: 300; color: var(--c-primary) !important; line-height: 1.55; font-style: italic; }

/* ── About narrative redesign ─────────────────────────────────── */
.story-intro { margin-bottom: var(--sp-10); }
.story-intro__bio { font-size: 1.0625rem; color: rgba(255,255,255,0.75); line-height: 1.78; }

.story-section { margin-top: var(--sp-10); }
.story-section__eyebrow { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--c-primary); margin-bottom: var(--sp-5); padding-bottom: var(--sp-3); border-bottom: 1px solid rgba(0,245,255,0.15); }
.story-section p { font-size: 1rem; color: rgba(255,255,255,0.72); line-height: 1.78; margin-bottom: var(--sp-4); }
.story-section p:last-child { margin-bottom: 0; }
.story-section em { color: rgba(0,245,255,0.85); font-style: italic; }
.story-section__intro { margin-bottom: var(--sp-6) !important; }

.story-services { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-top: var(--sp-6); }

.story-service-card {
  position: relative; overflow: hidden;
  background: var(--c-glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border); border-left: 3px solid rgba(0,245,255,0.45);
  border-radius: var(--r-md); padding: var(--sp-6);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  cursor: default;
}
.story-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  border-color: rgba(0,245,255,0.28); border-left-color: var(--c-primary);
}
.story-service-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(0,245,255,0.07) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.55s ease;
}
.story-service-card:hover::before { transform: translateX(110%); }

.story-service-card__icon { width: 40px; height: 40px; color: var(--c-primary); margin-bottom: var(--sp-4); }
.story-service-card__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.story-service-card h3 { font-size: 0.9375rem; font-weight: 700; color: var(--c-white); margin-bottom: var(--sp-2); }
.story-service-card h3 span { font-size: 0.8125rem; font-weight: 400; color: var(--c-muted); display: block; margin-top: 2px; }
.story-service-card p { font-size: 0.875rem; color: rgba(255,255,255,0.58); line-height: 1.65; margin: 0; }

/* ----------------------------------------------------------------
   20. Blog Grid
---------------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-6); }

.blog-card {
  background: var(--c-glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border); border-radius: var(--r-xl); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card), var(--shadow-glow); border-color: rgba(0,245,255,.28); }

.blog-card__thumb { display: block; position: relative; overflow: hidden; aspect-ratio: 16/9; }
.blog-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow), filter var(--t-slow);
  filter: brightness(.82) saturate(.75);
}
.blog-card:hover .blog-card__thumb img { transform: scale(1.04); filter: brightness(.7) saturate(1.1); }
.blog-card__thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,15,17,.55) 0%, transparent 55%);
  pointer-events: none; opacity: 0; transition: opacity var(--t-base);
}
.blog-card:hover .blog-card__thumb-overlay { opacity: 1; }

.blog-card__body { padding: var(--sp-6); flex: 1; display: flex; flex-direction: column; gap: var(--sp-3); }
.blog-card__category { font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--c-primary); }
.blog-card__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.blog-card__title a { color: var(--c-white); transition: color var(--t-fast); }
.blog-card:hover .blog-card__title a { color: var(--c-primary); }
.blog-card__excerpt { font-size: .9375rem; line-height: 1.72; color: var(--c-muted); flex: 1; }
.blog-card__cta {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: .8125rem; font-weight: 500; color: var(--c-primary);
  margin-top: var(--sp-2); transition: gap var(--t-fast);
}
.blog-card__cta svg {
  width: 14px; height: 14px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-fast);
}
.blog-card:hover .blog-card__cta { gap: var(--sp-3); }
.blog-card:hover .blog-card__cta svg { transform: translateX(3px); }

/* ----------------------------------------------------------------
   21. Contact Page Layout
---------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: start; }

.contact-info__item {
  display: flex; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-5);
  border: var(--glass-border); border-radius: var(--r-lg); margin-bottom: var(--sp-4);
  background: var(--c-glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  transition: border-color var(--t-fast);
}
.contact-info__item:hover { border-color: rgba(0,245,255,.28); }
.contact-info__icon {
  width: 38px; height: 38px; border-radius: var(--r-md); background: var(--c-primary-dim);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--c-primary);
}
.contact-info__icon svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.contact-info__label { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); margin-bottom: var(--sp-1); }
.contact-info__value { font-size: .9375rem; color: var(--c-white); }
.contact-info__value a { color: var(--c-primary); transition: opacity var(--t-fast); }
.contact-info__value a:hover { opacity: .8; }

/* ----------------------------------------------------------------
   22. Blog Post — Single Article
---------------------------------------------------------------- */
.post-hero { padding-top: calc(var(--nav-h) + var(--sp-16)); padding-bottom: var(--sp-10); background: var(--c-base); }
.post-meta { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.post-meta__category { font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--c-primary); }
.post-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--c-muted); flex-shrink: 0; }
.post-meta__author, .post-meta__date { font-size: .75rem; color: var(--c-muted); }
.post-title { font-size: clamp(2rem,5vw,3.75rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.1; max-width: 22ch; }

.post-thumbnail { margin-bottom: var(--sp-12); }
.post-thumbnail img { width: 100%; border-radius: var(--r-xl); border: 1px solid rgba(0,245,255,.1); max-height: 520px; object-fit: cover; }

.post-content { max-width: 760px; margin-inline: auto; padding-bottom: var(--sp-8); }
.post-content p { font-size: 1.0625rem; line-height: 1.85; color: rgba(255,255,255,.85); margin-bottom: var(--sp-5); }
.post-content h2 { font-size: clamp(1.5rem,3vw,2rem); font-weight: 600; letter-spacing: -.02em; margin-top: var(--sp-12); margin-bottom: var(--sp-5); }
.post-content h3 { font-size: 1.25rem; font-weight: 600; color: var(--c-primary); margin-top: var(--sp-8); margin-bottom: var(--sp-4); }
.post-content img { border-radius: var(--r-lg); margin-block: var(--sp-8); border: 1px solid rgba(0,245,255,.1); width: 100%; }
.post-content a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.post-content strong { font-weight: 600; color: var(--c-white); }
.post-content em { font-style: italic; color: var(--c-muted); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-top: var(--sp-16); padding-top: var(--sp-8); border-top: 1px solid rgba(136,153,166,.12); }
.post-nav__item {
  display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4) var(--sp-5);
  border: var(--glass-border); border-radius: var(--r-lg);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.post-nav__item:hover { border-color: rgba(0,245,255,.3); background: var(--c-primary-dim); }
.post-nav__item--next { text-align: right; }
.post-nav__dir { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.post-nav__title { font-size: .875rem; font-weight: 500; color: var(--c-primary); }
.post-nav__item--placeholder { border: none; background: none; pointer-events: none; }

.post-figure { margin-block: var(--sp-10); }
.post-figure img { border-radius: var(--r-lg); border: 1px solid rgba(0,245,255,.1); width: 100%; }
.post-figure figcaption { font-size: .8125rem; color: var(--c-muted); margin-top: var(--sp-3); text-align: center; font-style: italic; }

/* ----------------------------------------------------------------
   23. Scroll Reveal
   .js-ready added to <body> by JS — prevents flash of hidden content
---------------------------------------------------------------- */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}
.js-ready .reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal--delay-3 { transition-delay: .3s; }
.reveal--delay-4 { transition-delay: .4s; }

/* ----------------------------------------------------------------
   24. Responsive — Tablet ≤ 1024px
---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2,1fr); }
  .services__grid .card:nth-child(n) { margin-top: 0; }
  .services__grid .card:nth-child(2) { margin-top: var(--sp-6); }
  .services__subtitle { white-space: normal; }
  .about__subtitle { white-space: normal; }
  .services__grid .card:nth-child(4) { margin-top: var(--sp-6); }
  .testimonials__grid .testimonial-card { flex: 0 0 clamp(240px, 60vw, 300px); }
  .story-layout { grid-template-columns: 220px 1fr; gap: var(--sp-10); }
  .cta-section__inner, .contact-layout { grid-template-columns: 1fr; gap: var(--sp-10); }
  .footer__main { grid-template-columns: 1fr; text-align: center; gap: var(--sp-6); }
  .footer__social { justify-content: center; }
  .footer__nav-list { justify-content: center; }
}

/* ----------------------------------------------------------------
   25. Responsive — Mobile ≤ 768px
---------------------------------------------------------------- */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav__links, .nav__social { display: none; }
  .nav__hamburger { display: flex; }
  .hero__inner { padding-block: var(--sp-12); }
  .hero__name { font-size: clamp(3.75rem, 18vw, 6rem); }
  .hero__bg-img { width: 100%; object-position: center top; -webkit-mask-image: none; mask-image: none; filter: brightness(.75) contrast(1.05) saturate(.65); }
  .hero__bg::after { background: linear-gradient(to bottom, rgba(10,15,17,.2) 0%, rgba(10,15,17,.08) 40%, rgba(10,15,17,.6) 85%, var(--c-base) 100%), linear-gradient(to right, rgba(10,15,17,.45) 0%, rgba(10,15,17,.05) 100%); }
  .hero__status { bottom: 1.5rem; right: 1.5rem; }
  .services__grid { grid-template-columns: 1fr; }
  .services__grid .card:nth-child(n) { margin-top: 0; }
  .testimonials__grid .testimonial-card { flex: 0 0 clamp(220px, 75vw, 280px); }
  .story-layout { grid-template-columns: 1fr; gap: var(--sp-10); }
  .story-services { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-16); }
  .section--lg { padding-block: var(--sp-20); }
  .page-hero { padding-top: calc(var(--nav-h) + var(--sp-12)); }
  .footer__bottom { flex-direction: column; gap: var(--sp-2); }
  .contact-layout { grid-template-columns: 1fr; gap: var(--sp-8); }
}

/* ----------------------------------------------------------------
   26. Responsive — Small mobile ≤ 480px
---------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: center; }
  .btn--lg { width: 100%; justify-content: center; }
  .logos__track-wrap::before, .logos__track-wrap::after { width: 48px; }
}
