/* =====================================================
   LioTech — Dark "Nothing"-inspired theme
   Palette: deep navy, mid blue, sky blue, near-black, white.
   Mobile-first, no build step.
   ===================================================== */

:root {
  /* --- Background surfaces, darkest to lightest --- */
  --void:        #000000;
  --bg-deep:     #050B14;     /* footer, sections behind everything */
  --bg:          #08101F;     /* body / hero — primary dark canvas */
  --surface-1:   #0F1E3D;     /* raised section like pillars */
  --surface-2:   #142545;     /* card surface */
  --surface-3:   #1F3157;     /* card hover state */
  --frost:       #F0F4FA;     /* light contrast section (contact) */
  --paper:       #FFFFFF;     /* white surfaces (form fields) */

  /* --- Blues from the new palette --- */
  --blue-deep:   #0F1E3D;
  --blue-mid:    #3D5A9C;
  --blue:        #5DA9F0;     /* PRIMARY ACCENT (replaces old orange) */
  --blue-hot:    #7CC4FF;
  --blue-soft:   #B8D8F8;

  /* --- Text --- */
  --text-on-dark:       #E8F0FC;
  --text-on-dark-muted: #8DA4C6;
  --text-on-dark-dim:   #5A7AAC;
  --text-on-light:      #0F1E3D;
  --text-on-light-muted:#475569;

  /* --- Lines and overlays --- */
  --line:        rgba(232, 240, 252, 0.10);
  --line-strong: rgba(232, 240, 252, 0.22);
  --line-dark:   rgba(15, 30, 61, 0.16);
  --line-dark-strong: rgba(15, 30, 61, 0.30);

  /* --- Type families --- */
  --display: "Fraunces", "Times New Roman", Georgia, serif;
  --body:    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", "Fira Code", ui-monospace, monospace;

  /* --- Type scale --- */
  --text-meta:    0.8125rem;
  --text-body:    1rem;
  --text-body-lg: clamp(1.0625rem, 0.5vw + 1rem, 1.1875rem);
  --text-lead:    clamp(1.125rem, 0.75vw + 1rem, 1.5rem);
  --text-h3:      clamp(1.25rem, 0.5vw + 1.1rem, 1.625rem);
  --text-h2:      clamp(1.875rem, 1.8vw + 1rem, 3rem);
  --text-h1:      clamp(2.25rem, 3vw + 1rem, 4rem);
  --text-display: clamp(3.25rem, 7vw + 1rem, 8rem);

  /* --- Spacing & layout --- */
  --gutter:    clamp(1.25rem, 3.5vw, 2.5rem);
  --container: 1240px;
  --section:   clamp(4.5rem, 9vw, 8.5rem);

  /* --- Radii & shadows --- */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --shadow-soft:   0 1px 2px rgba(0, 0, 0, 0.20), 0 8px 28px rgba(0, 0, 0, 0.25);
  --shadow-medium: 0 2px 6px rgba(0, 0, 0, 0.25), 0 18px 48px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 4px 12px rgba(0, 0, 0, 0.30), 0 30px 60px rgba(0, 0, 0, 0.50);
  --glow-blue:     0 0 32px rgba(93, 169, 240, 0.45);

  /* --- Motion --- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.6s;
}

/* =====================================================
   RESET + BASE
   ===================================================== */
*,
*::before,
*::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-on-dark);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at top left, rgba(93, 169, 240, 0.06), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(61, 90, 156, 0.10), transparent 60%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--blue); color: var(--bg-deep); }

img, svg { display: block; max-width: 100%; }
a {
  color: inherit;
  text-decoration-color: var(--blue);
  text-underline-offset: 0.2em;
}
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
em {
  font-style: italic;
  color: var(--blue);
  font-family: var(--display);
  font-weight: 600;
}

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

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
.display, .section-head h2, .offer-title, .pillar h3, .why-head h2, .contact-card h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-on-dark);
}
.display {
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0.5rem 0 1.25rem;
}
.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: var(--text-meta);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(20, 37, 69, 0.55);
  backdrop-filter: blur(8px);
}
.eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--blue);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px rgba(93, 169, 240, 0.8);
}
.lead {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--text-lead);
  line-height: 1.35;
  color: var(--text-on-dark);
  max-width: 38ch;
  margin: 0 0 2rem;
}
.lead strong { font-weight: 600; color: var(--blue-hot); }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  --bg: var(--blue);
  --fg: var(--bg-deep);
  --border: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.4rem;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--glow-blue); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--blue-hot); outline-offset: 3px; }

.btn-primary { --bg: var(--blue); --fg: var(--bg-deep); --border: var(--blue); }
.btn-primary:hover { --bg: var(--blue-hot); --border: var(--blue-hot); }

.btn-ghost {
  --bg: transparent;
  --fg: var(--text-on-dark);
  --border: var(--line-strong);
}
.btn-ghost:hover { --bg: rgba(93, 169, 240, 0.08); --border: var(--blue); --fg: var(--blue-hot); }

.btn-card {
  width: 100%;
  --bg: transparent;
  --fg: var(--text-on-dark);
  --border: var(--line-strong);
}
.btn-card:hover { --bg: var(--blue); --fg: var(--bg-deep); --border: var(--blue); }

.btn-card-light {
  width: 100%;
  --bg: var(--blue);
  --fg: var(--bg-deep);
  --border: var(--blue);
}
.btn-card-light:hover { --bg: var(--blue-hot); --border: var(--blue-hot); }

.btn-block { width: 100%; }
.btn-sm { padding: 0.65rem 1rem; font-size: 0.85rem; }
.btn-arrow { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem 0;
  background: rgba(8, 16, 31, 0.55);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), padding 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(8, 16, 31, 0.85);
  border-bottom-color: var(--line);
  padding: 0.65rem 0;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-on-dark);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-deep);
  color: var(--text-on-dark);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 7px;
  position: relative;
  border: 1px solid var(--line-strong);
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 4px; bottom: 4px;
  width: 5px; height: 5px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue);
}
.brand-mark.sm { width: 26px; height: 26px; font-size: 0.85rem; border-radius: 6px; }
.brand-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  color: var(--text-on-dark);
}
.brand-dot { color: var(--blue); }
.primary-nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.primary-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  padding: 0.4rem 0;
  position: relative;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--blue);
  transition: right 0.3s var(--ease);
}
.primary-nav a:hover { color: var(--text-on-dark); text-decoration: none; }
.primary-nav a:hover::after { right: 0; }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0.5rem;
  width: 40px; height: 40px;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text-on-dark);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100svh;
  padding-top: calc(7rem + 1vh);
  padding-bottom: clamp(2rem, 5vh, 4rem);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: end;
  margin-top: auto;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 0.62fr); }
  .hero-copy { max-width: 38rem; }
}
.hero-copy, .hero-ticket { position: relative; z-index: 3; }

.hero-meta {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: var(--text-on-dark-muted);
}
.hero-meta li { display: flex; align-items: baseline; gap: 0.65rem; }
.meta-tick {
  color: var(--blue);
  font-weight: 700;
  font-family: var(--mono);
  font-size: 1rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.hero-scroll {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
  position: relative;
  z-index: 2;
}
.scroll-line {
  flex: 0 0 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

/* =====================================================
   SECTION HEAD (shared)
   ===================================================== */
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); max-width: 60ch; }
.section-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.section-head h2 {
  font-size: var(--text-h2);
  margin: 0 0 1rem;
  line-height: 1.05;
}
.section-sub {
  font-size: var(--text-body-lg);
  color: var(--text-on-dark-muted);
  max-width: 55ch;
  margin: 0;
}

/* =====================================================
   PILLARS  (slightly lighter dark surface)
   ===================================================== */
.pillars {
  padding-block: var(--section);
  background: var(--surface-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.pillars-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 700px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .pillars-grid { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }
.pillar {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.pillar:hover {
  box-shadow: var(--shadow-medium), 0 0 32px rgba(93, 169, 240, 0.08);
  border-color: rgba(93, 169, 240, 0.4);
}
.pillar::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 40px; height: 3px;
  background: var(--blue);
  border-top-left-radius: var(--r-md);
  box-shadow: 0 0 12px var(--blue);
}
.pillar-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
/* Icon at the top of each pillar card */
.pillar-icon, .category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(93, 169, 240, 0.10);
  color: var(--blue);
  margin-bottom: 0.9rem;
  border: 1px solid rgba(93, 169, 240, 0.18);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pillar:hover .pillar-icon,
.service-category:hover .category-icon {
  background: rgba(93, 169, 240, 0.18);
  border-color: rgba(93, 169, 240, 0.40);
}
.pillar-icon svg, .category-icon svg {
  width: 24px; height: 24px;
}
.offer-featured .pillar-icon, .offer-featured .category-icon {
  background: rgba(255, 255, 255, 0.10);
  color: var(--blue-hot);
  border-color: rgba(255, 255, 255, 0.20);
}
.pillar h3 {
  margin: 0 0 0.65rem;
  font-size: var(--text-h3);
}
.pillar p {
  margin: 0;
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
}

/* =====================================================
   OFFERS  (dark, with featured card glowing in blue)
   ===================================================== */
.offers {
  padding-block: var(--section);
  background: var(--bg);
}
.offers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 760px) { .offers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .offers-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem 1.75rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.offer:hover {
  box-shadow: var(--shadow-strong), 0 0 40px rgba(93, 169, 240, 0.15);
  border-color: rgba(93, 169, 240, 0.5);
}

.offer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.offer-tag {
  padding: 0.35rem 0.7rem;
  background: rgba(93, 169, 240, 0.10);
  color: var(--blue);
  border: 1px solid rgba(93, 169, 240, 0.20);
  border-radius: var(--r-sm);
  font-weight: 600;
}
.offer-id { color: var(--text-on-dark-dim); }

.offer-title {
  font-size: clamp(1.5rem, 1.5vw + 1rem, 1.875rem);
  margin: 0 0 0.65rem;
  line-height: 1.1;
}
.offer-pitch {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
  min-height: 4.5em;
}
.offer-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.price-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--text-on-dark);
  letter-spacing: -0.025em;
  line-height: 1;
}
.price-unit {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-on-dark-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.offer-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  flex-grow: 1;
}
.offer-list li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.5;
}
.offer-list li::before {
  content: "→";
  position: absolute;
  left: 0; top: 0;
  color: var(--blue);
  font-family: var(--mono);
  font-weight: 600;
}
.offer-list li strong { color: var(--text-on-dark); font-weight: 600; }
.offer-note {
  font-size: 0.825rem;
  color: var(--text-on-dark-dim);
  font-style: italic;
  margin: 0 0 1.25rem;
  line-height: 1.4;
}

/* Featured offer — bright blue card */
.offer-featured {
  background: linear-gradient(140deg, var(--blue-mid) 0%, var(--blue-deep) 100%);
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue) inset, 0 20px 60px rgba(93, 169, 240, 0.18);
}
.offer-featured .offer-title,
.offer-featured .price-num { color: #FFFFFF; }
.offer-featured .offer-pitch,
.offer-featured .offer-list,
.offer-featured .offer-note { color: rgba(255, 255, 255, 0.82); }
.offer-featured .offer-tag {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.30);
}
.offer-featured .offer-id { color: rgba(255, 255, 255, 0.55); }
.offer-featured .offer-price { border-bottom-color: rgba(255, 255, 255, 0.22); }
.offer-featured .offer-list li::before { color: var(--blue-hot); }
.offer-featured .offer-list li strong { color: var(--blue-hot); }
.offer-featured:hover { box-shadow: 0 0 0 1px var(--blue-hot) inset, 0 30px 80px rgba(93, 169, 240, 0.30); }
.featured-badge {
  position: absolute;
  top: -12px; right: 1.5rem;
  background: var(--blue-hot);
  color: var(--bg-deep);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-sm);
  box-shadow: 0 8px 24px rgba(124, 196, 255, 0.5);
}
.offers-foot {
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: var(--text-body-lg);
  color: var(--text-on-dark-muted);
  max-width: 50ch;
  margin-inline: auto;
}

/* =====================================================
   WHY LIO  (deepest black for drama)
   ===================================================== */
.why {
  padding-block: var(--section);
  background: var(--void);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.why::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(93, 169, 240, 0.20), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}
.why::after {
  content: "";
  position: absolute;
  bottom: -30%; left: -10%;
  width: 50%; height: 70%;
  background: radial-gradient(circle, rgba(61, 90, 156, 0.18), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}
.why-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 980px) {
  .why-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }
}
.why-head { margin-bottom: 0; grid-column: 1 / -1; }
.why-head .section-num { color: var(--blue); }
.why-head h2 { color: var(--text-on-dark); }
.why-head h2 em { color: var(--blue); font-style: italic; }
.why-body p {
  margin: 0 0 1.25rem;
  font-size: var(--text-body-lg);
  color: rgba(232, 240, 252, 0.85);
  line-height: 1.6;
  max-width: 50ch;
}
.why-lead {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 1vw + 1rem, 1.625rem) !important;
  color: var(--text-on-dark) !important;
  line-height: 1.4 !important;
}
.why-lead strong {
  font-style: normal;
  color: var(--blue);
  font-weight: 700;
}
.why-sign {
  font-family: var(--display);
  font-style: italic;
  color: var(--blue) !important;
  margin-top: 2rem !important;
}

.why-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat {
  padding: 1.5rem 1.25rem;
  background: rgba(232, 240, 252, 0.04);
  border: 1px solid rgba(232, 240, 252, 0.12);
  border-radius: var(--r-md);
  backdrop-filter: blur(8px);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
  will-change: transform;
}
.stat:hover { border-color: rgba(93, 169, 240, 0.5); }
.stat strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.stat span {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  line-height: 1.4;
}

/* =====================================================
   CONTACT  (light FROST section for contrast + form clarity)
   ===================================================== */
.contact {
  padding-block: var(--section);
  background: var(--frost);
  color: var(--text-on-light);
  border-top: 1px solid var(--line);
}
.contact .section-num { color: var(--blue-mid); }
.contact .section-head h2 { color: var(--text-on-light); }
.contact .section-head h2 em { color: var(--blue); }
.contact .section-sub { color: var(--text-on-light-muted); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
  /* The message form is taller; let it span two columns so it stays readable */
  .contact-form-card { grid-column: span 2; }
}
.contact-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  color: var(--text-on-light);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  will-change: transform;
}
.contact-card:hover {
  box-shadow: 0 20px 50px rgba(15, 30, 61, 0.10);
  border-color: rgba(93, 169, 240, 0.5);
}
.contact-num {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.15em;
}
.contact-card h3 {
  margin: 0 0 0.65rem;
  font-size: var(--text-h3);
  color: var(--text-on-light);
}
.contact-card > p {
  margin: 0 0 1.5rem;
  color: var(--text-on-light-muted);
  font-size: 0.95rem;
}
.contact-note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--text-on-light-muted);
  font-style: italic;
}

/* Buttons inside the light contact section */
.contact .btn-ghost {
  --bg: transparent;
  --fg: var(--blue-deep);
  --border: var(--line-dark-strong);
}
.contact .btn-ghost:hover { --bg: rgba(15, 30, 61, 0.04); --border: var(--blue-deep); --fg: var(--blue-deep); }
.contact .btn-card {
  --bg: transparent;
  --fg: var(--blue-deep);
  --border: var(--line-dark-strong);
}
.contact .btn-card:hover { --bg: var(--blue-deep); --fg: var(--paper); --border: var(--blue-deep); }
.contact .btn-primary { --bg: var(--blue-deep); --fg: var(--paper); --border: var(--blue-deep); }
.contact .btn-primary:hover { --bg: var(--blue); --border: var(--blue); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 0.95rem;
  font-family: var(--body);
  color: var(--text-on-light);
  padding: 0.75rem 0.9rem;
  background: var(--frost);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-deep);
  background: var(--paper);
}
.field textarea { resize: vertical; min-height: 80px; }
.hp { position: absolute; left: -9999px; }
.form-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-on-light-muted);
  text-align: center;
}
.form-success {
  text-align: center;
  padding: 1.5rem;
  background: var(--frost);
  border: 1px dashed var(--blue);
  border-radius: var(--r-sm);
}
.form-success strong {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--text-on-light);
  margin-bottom: 0.4rem;
}
.form-success p { margin: 0; color: var(--text-on-light-muted); font-size: 0.9rem; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--void);
  color: rgba(232, 240, 252, 0.55);
  padding-block: 3rem 2rem;
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
  }
}
.footer-brand { display: flex; align-items: center; gap: 0.85rem; }
.footer-brand .brand-mark { background: var(--surface-2); color: var(--text-on-dark); }
.footer-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-on-dark);
  margin: 0;
}
.footer-tag {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--text-on-dark-dim);
}
.footer-meta p { margin: 0 0 0.3rem; line-height: 1.5; }
.footer-meta p:last-child { color: var(--text-on-dark-dim); font-style: italic; }
.footer-legal { text-align: left; }
@media (min-width: 760px) { .footer-legal { text-align: right; } }
.footer-url {
  margin: 0.3rem 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.footer-url a { color: var(--blue); text-decoration: none; }
.footer-url a:hover { text-decoration: underline; }

/* =====================================================
   REVEAL ANIMATION
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   MOBILE NAV
   ===================================================== */
@media (max-width: 760px) {
  .primary-nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-menu-open .primary-nav,
  .site-header.is-menu-open .nav-cta {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface-2);
    flex-direction: column;
    padding: 1.25rem var(--gutter);
    gap: 1.25rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }
  .site-header.is-menu-open .nav-cta { display: inline-flex; align-self: stretch; justify-content: center; }
  .hero-meta { gap: 0.85rem; }
}

/* =====================================================
   ★  CINEMATIC LAYER  ★
   ===================================================== */
/* Smoke / vapor — slow drifting blurred wisps behind the floating logo */
.hero { isolation: isolate; }
.hero-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  mix-blend-mode: screen;
}
.aurora {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform, opacity;
}
.aurora-1 {
  width: 85vw; height: 85vw;
  max-width: 1200px; max-height: 1200px;
  top: -28vh; left: -22vw;
  background: radial-gradient(circle, rgba(93, 169, 240, 0.55), transparent 65%);
  animation: smokeDrift1 36s ease-in-out infinite alternate;
}
.aurora-2 {
  width: 75vw; height: 75vw;
  max-width: 1100px; max-height: 1100px;
  bottom: -32vh; right: -20vw;
  background: radial-gradient(circle, rgba(61, 90, 156, 0.65), transparent 70%);
  animation: smokeDrift2 44s ease-in-out infinite alternate;
}
.aurora-3 {
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  top: 35%; left: 50%;
  /* Pale vapor wisp — softer, near-white */
  background: radial-gradient(circle, rgba(232, 240, 252, 0.22), transparent 70%);
  animation: smokeDrift3 52s ease-in-out infinite alternate;
}
@keyframes smokeDrift1 {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg);   opacity: 0.45; }
  100% { transform: translate3d(20vw, 14vh, 0) scale(1.35) rotate(14deg); opacity: 0.7; }
}
@keyframes smokeDrift2 {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg);   opacity: 0.50; }
  100% { transform: translate3d(-16vw, -12vh, 0) scale(1.2) rotate(-10deg); opacity: 0.72; }
}
@keyframes smokeDrift3 {
  0%   { transform: translate3d(-50%, -50%, 0) scale(0.85) rotate(0deg); opacity: 0.20; }
  100% { transform: translate3d(-32%, -72%, 0) scale(1.45) rotate(10deg); opacity: 0.45; }
}

/* Pulsing 'live' dot */
.eyebrow-dot { animation: livePulse 2.4s ease-in-out infinite; }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 12px rgba(93, 169, 240, 0.8), 0 0 0 0 rgba(93, 169, 240, 0.55); }
  50%      { box-shadow: 0 0 12px rgba(93, 169, 240, 0.8), 0 0 0 8px rgba(93, 169, 240, 0); }
}

/* Letter-by-letter hero reveal */
.anim-headline { visibility: hidden; }
.anim-headline.is-split { visibility: visible; }
.anim-headline .anim-word {
  display: inline-block;
  white-space: nowrap;
}
.anim-headline .anim-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  animation: letterIn 0.85s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 0.04s + 0.25s);
}
.anim-headline em .anim-letter {
  animation-delay: calc(var(--i, 0) * 0.04s + 0.45s);
}
@keyframes letterIn {
  0%   { opacity: 0; transform: translateY(0.45em) rotateX(-12deg); filter: blur(4px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) rotateX(0); filter: blur(0); }
}

/* Vertical scroll progress (right edge, desktop only) */
.scroll-progress {
  position: fixed;
  top: 50%; right: clamp(1.25rem, 2vw, 2rem);
  height: 140px; width: 2px;
  background: rgba(232, 240, 252, 0.10);
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  border-radius: 2px;
  overflow: hidden;
}
@media (min-width: 980px) { .scroll-progress { display: block; } }
.scroll-progress-bar {
  display: block;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--blue-hot) 0%, var(--blue) 50%, var(--blue-mid) 100%);
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 0.1s linear;
  box-shadow: 0 0 10px var(--blue);
}

/* Film grain overlay (whole viewport) */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* =====================================================
   ★  3D LOGO CANVAS  ★
   ===================================================== */
#logo3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;     /* needs pointer to detect hover for explode */
  opacity: 0;
  transition: opacity 1.2s ease-out 0.4s;
}
#logo3d.is-ready { opacity: 1; }
.hero-copy { pointer-events: auto; }
/* Allow the copy to receive clicks even when logo canvas is layered */
.hero-grid > * { position: relative; }

/* Mobile: same composition as desktop — 3D logo absolute-fills
   the hero, cubes float behind/above the headline which sits at
   the bottom of the viewport. Same magical "sculpture meets text"
   feel that works on desktop. The JS handles a smaller logo scale
   + a slight upward Y offset so the cubes sit in the upper portion
   rather than getting fully covered by the text. */
@media (max-width: 759px) {
  .hero {
    min-height: 100svh;
    padding-top: 6.5rem;
    padding-bottom: clamp(2rem, 5vh, 3.5rem);
  }
  #logo3d {
    /* Restore the desktop-style absolute fill on mobile too */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
  }
  .hero-grid {
    margin-top: auto;        /* push copy to the bottom of the hero */
  }
  /* Smoke stays visible on mobile too */
  .aurora-1 { width: 130vw; height: 130vw; max-width: 700px; max-height: 700px; }
  .aurora-2 { width: 120vw; height: 120vw; max-width: 600px; max-height: 600px; }
  .aurora-3 { width: 90vw;  height: 90vw;  max-width: 500px; max-height: 500px; }
  /* Hide the eyebrow tag on mobile only — it crowds the small viewport */
  .hero .eyebrow { display: none; }
}

/* =====================================================
   LANGUAGE TOGGLE (EN / FR) — top-right of the header
   ===================================================== */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-left: 1.25rem;
}
.lang-toggle-link {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-toggle-link:hover {
  color: var(--text-on-dark);
  background: rgba(232, 240, 252, 0.06);
  text-decoration: none;
}
.lang-toggle-link.is-active {
  color: var(--blue);
  background: rgba(93, 169, 240, 0.10);
}
.lang-toggle-sep {
  color: var(--text-on-dark-dim);
  user-select: none;
}
/* On mobile (where the burger menu shows), the language toggle slides into it */
@media (max-width: 760px) {
  .lang-toggle {
    margin-left: 0;
    justify-content: center;
  }
  /* Hide the toggle from the closed header bar; show only when menu is open */
  .site-header:not(.is-menu-open) .lang-toggle {
    display: none;
  }
  .site-header.is-menu-open .lang-toggle {
    display: inline-flex;
    align-self: stretch;
    justify-content: center;
    padding: 0.5rem 0;
    border-top: 1px solid var(--line);
  }
}

/* =====================================================
   SERVICES (the full catalog, 8 categories, no prices)
   ===================================================== */
.services {
  padding-block: var(--section);
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 760px)  { .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 1080px) { .services-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
@media (min-width: 1080px) { .category-services { grid-template-columns: 1fr; column-gap: 0; } }

.service-category {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.75rem 1.75rem 1.5rem;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  will-change: transform;
}
.service-category:hover {
  box-shadow: var(--shadow-medium), 0 0 32px rgba(93, 169, 240, 0.10);
  border-color: rgba(93, 169, 240, 0.4);
}
.service-category::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 48px; height: 3px;
  background: var(--blue);
  border-top-left-radius: var(--r-md);
  box-shadow: 0 0 12px var(--blue);
}
.category-id {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.category-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1vw + 1.1rem, 1.875rem);
  color: var(--text-on-dark);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.category-desc {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  line-height: 1.5;
  max-width: 42ch;
}
.category-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--text-on-dark);
}
@media (min-width: 540px) {
  .category-services { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; row-gap: 0.5rem; }
}
.category-services li {
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.4;
}
.category-services li::before {
  content: "·";
  position: absolute;
  left: 0.3rem; top: -0.15rem;
  color: var(--blue);
  font-weight: 700;
  font-size: 1.3rem;
}

/* =====================================================
   ★  REDUCED MOTION  ★
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .aurora-1, .aurora-2, .aurora-3 { animation: none !important; }
  .eyebrow-dot { animation: none !important; }
  .anim-headline { visibility: visible !important; }
  .anim-headline .anim-letter { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .grain { display: none; }
  #logo3d { display: none; }
  .pillar, .offer, .contact-card, .stat { transition: none !important; }
}
