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

/* ── THEME VARIABLES ── */
:root {
  --black: #000000;
  --white: #ffffff;
  --off-white: #f5f2ec;
  --accent: #f8992d;
  --accent-dark: #d97d1a;

  /* Dark theme tokens (default) */
  --bg: #000000;
  --fg: #ffffff;
  --muted: #666666;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --card-bg: rgba(255, 255, 255, 0.03);
  --nav-bg: rgba(0, 0, 0, 0.75);
  --menu-bg: rgba(10, 10, 10, 0.96);
  --back-top-bg: rgba(0, 0, 0, 0.82);
  --code-deco: rgba(255, 255, 255, 0.05);
  --code-deco-featured: rgba(248, 153, 45, 0.06);
  --article-color: rgba(255, 255, 255, 0.75);
  --pull-quote-color: rgba(255, 255, 255, 0.85);
  --footer-text-color: rgba(255, 255, 255, 0.6);
  --grid-alpha-base: 0.025;
  --grid-alpha-range: 0.02;
}

[data-theme="light"] {
  --bg: #f5f2ec;
  --fg: #111111;
  --muted: #5c5c5c;
  --border: rgba(0, 0, 0, 0.09);
  --border-strong: rgba(0, 0, 0, 0.15);
  --card-bg: rgba(0, 0, 0, 0.04);
  --nav-bg: rgba(245, 242, 236, 0.85);
  --menu-bg: rgba(245, 242, 236, 0.98);
  --back-top-bg: rgba(245, 242, 236, 0.9);
  --code-deco: rgba(0, 0, 0, 0.05);
  --code-deco-featured: rgba(248, 153, 45, 0.1);
  --article-color: rgba(0, 0, 0, 0.78);
  --pull-quote-color: rgba(0, 0, 0, 0.85);
  --footer-text-color: rgba(0, 0, 0, 0.6);
  --grid-alpha-base: 0.04;
  --grid-alpha-range: 0.03;
}

html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 4rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  background: var(--nav-bg);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border-strong);
  background: var(--card-bg);
  border-radius: 2px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 1.15rem;
  height: 1.5px;
  background: var(--fg);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(0.43rem) rotate(45deg);
}
nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-0.43rem) rotate(-45deg);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-img {
  height: 64px;
  width: auto;
  display: block;
}
.logo-img.logo-light-theme {
  display: none;
}
[data-theme="light"] .logo-img.logo-dark-theme {
  display: none;
}
[data-theme="light"] .logo-img.logo-light-theme {
  display: block;
}
.logo-text {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
}
.logo-text span {
  color: var(--accent);
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
nav ul li {
  list-style: none;
}
nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
nav ul a:hover,
nav ul a.active {
  color: var(--fg);
}
.nav-cta {
  background: var(--accent) !important;
  color: var(--black) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
}
.nav-cta:hover {
  background: var(--accent-dark) !important;
  color: var(--black) !important;
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  background: var(--bg);
  border: none;
  border-radius: 2px;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  color: var(--accent);
  font-size: 0;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.2s,
    background 0.2s;
  flex-shrink: 0;
  position: fixed;
  right: 1.5rem;
  bottom: 5rem;
  width: 3rem;
  height: 3rem;
  z-index: 110;
}
.theme-toggle:hover {
  color: var(--fg);
  border-color: rgba(248, 153, 45, 0.4);
  background: rgba(248, 153, 45, 0.06);
}
.theme-toggle svg {
  width: 15px;
  height: 15px;
  display: block;
  stroke: currentColor;
}
/* Dark mode: show sun (to switch to light) */
.icon-moon { display: none; }
/* Light mode: show moon (to switch to dark) */
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ── ANIMATED GRID BACKGROUND ── */
.grid-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.grid-canvas canvas {
  position: absolute;
  inset: 0;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 4rem 5rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 50% at 65% 35%,
    rgba(248, 153, 45, 0.06) 0%,
    transparent 65%
  );
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 2rem;
  font-family: "Space Grotesk", sans-serif;
}
.hero-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}
h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  line-height: 0.93;
  letter-spacing: -0.03em;
  color: var(--fg);
  max-width: 960px;
  margin-bottom: 2rem;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 3rem;
  line-height: 1.75;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.btn-primary {
  background: var(--accent);
  color: var(--black);
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 2px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition:
    background 0.2s,
    transform 0.15s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--fg);
  padding: 0.9rem 2rem;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.15s;
  display: inline-block;
}
.btn-ghost:hover {
  border-color: rgba(248, 153, 45, 0.4);
  transform: translateY(-1px);
}
.hero-stats {
  position: absolute;
  right: 4rem;
  bottom: 5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: right;
}
.stat-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

/* ── SHARED SECTION STYLES ── */
section {
  padding: 8rem 4rem;
  position: relative;
  z-index: 1;
}
.section-tag {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-tag::before {
  content: "—";
}
h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
h2 em {
  font-style: normal;
  color: var(--accent);
}

/* ── MISSION ── */
#mission {
  border-top: 1px solid var(--border);
}
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 4rem;
}
.mission-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 400;
}
.mission-body strong {
  color: var(--fg);
  font-weight: 500;
}
.pillars {
  display: flex;
  flex-direction: column;
}
.pillar {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.pillar:first-child {
  border-top: 1px solid var(--border);
}
.pillar-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 3px;
  min-width: 28px;
}
.pillar-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--fg);
  margin-bottom: 0.3rem;
}
.pillar-text {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── PRODUCTS ── */
#produits {
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.products-header {
  margin-bottom: 5rem;
}
.products-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.products-showcase::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 33.333%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(248, 153, 45, 0.2) 30%,
    rgba(248, 153, 45, 0.2) 70%,
    transparent
  );
  z-index: 2;
  pointer-events: none;
}
.products-showcase::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 66.666%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(248, 153, 45, 0.2) 30%,
    rgba(248, 153, 45, 0.2) 70%,
    transparent
  );
  z-index: 2;
  pointer-events: none;
}
.prod-card {
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: background 0.4s;
  background: var(--bg);
}
.prod-card:hover {
  background: rgba(248, 153, 45, 0.025);
}
[data-theme="light"] .prod-card:hover {
  background: rgba(248, 153, 45, 0.06);
}
.prod-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.4s;
}
.prod-card.featured .prod-card-accent {
  background: var(--accent);
}
.prod-card:not(.featured):hover .prod-card-accent {
  background: rgba(248, 153, 45, 0.35);
}
.prod-terminal {
  font-family: "Space Grotesk", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
}
.prod-terminal .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.dot-green { background: #30d158; }
.dot-yellow { background: #ffd60a; }
.dot-red { background: #ff453a; }
.featured .prod-terminal {
  color: rgba(248, 153, 45, 0.6);
}
.prod-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.prod-name span {
  color: var(--accent);
}
.prod-category {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.75rem;
}
.prod-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-weight: 400;
}
.prod-stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2rem;
}
.stack-line {
  font-family: "DM Sans", monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.featured .stack-line {
  color: var(--accent);
}
.prod-badge {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 2px;
  font-weight: 600;
}
.badge-live {
  background: rgba(48, 209, 88, 0.12);
  color: #30d158;
  border: 1px solid rgba(48, 209, 88, 0.2);
}
.badge-build {
  background: rgba(248, 153, 45, 0.1);
  color: var(--accent);
  border: 1px solid rgba(248, 153, 45, 0.2);
}
.badge-concept {
  background: var(--card-bg);
  color: var(--muted);
  border: 1px solid var(--border);
}
.prod-link {
  display: flex;
  margin-top: 1.5rem;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: "Space Grotesk", sans-serif;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.03em;
  transition:
    gap 0.2s,
    color 0.2s;
}
.prod-link:hover {
  gap: 0.85rem;
  color: var(--accent);
}
.prod-link-arrow {
  transition: transform 0.2s;
}
.prod-link:hover .prod-link-arrow {
  transform: translateX(3px);
}
.prod-code-deco {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-family: "DM Sans", monospace;
  font-size: 0.65rem;
  color: var(--code-deco);
  line-height: 1.5;
  text-align: right;
  pointer-events: none;
  user-select: none;
}
.featured .prod-code-deco {
  color: var(--code-deco-featured);
}

/* ── SERVICES ── */
#services {
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.services-header {
  max-width: 760px;
}
.services-intro {
  max-width: 640px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 400;
}
.services-marquee {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.services-marquee::before,
.services-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7rem;
  z-index: 1;
  pointer-events: none;
}
.services-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.services-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}
.services-marquee-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  padding: 1rem 0;
  animation: services-marquee 28s linear infinite;
}
.services-marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
}
.services-marquee-track span::after {
  content: "•";
  color: var(--accent);
  margin-left: 1rem;
}
.services-slider {
  margin-top: 2rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(248, 153, 45, 0.045), transparent 42%);
  border-radius: 4px;
  padding: 2rem;
}
[data-theme="light"] .services-slider {
  background: linear-gradient(180deg, rgba(248, 153, 45, 0.08), rgba(0, 0, 0, 0.015) 42%);
}
.services-slider-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}
.services-slider-copy {
  max-width: 620px;
}
.services-kicker {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.services-slider-copy p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}
.services-controls {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.services-arrow {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border-strong);
  background: var(--card-bg);
  color: var(--fg);
  border-radius: 2px;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  transition:
    transform 0.18s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.services-arrow:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 153, 45, 0.45);
  background: rgba(248, 153, 45, 0.08);
  color: var(--accent);
}
.services-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.service-card {
  min-height: 280px;
  padding: 1.6rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 55%),
    var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}
[data-theme="light"] .service-card {
  background:
    linear-gradient(180deg, rgba(248, 153, 45, 0.04), rgba(255, 255, 255, 0.65) 55%),
    var(--bg);
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 153, 45, 0.28);
}
.service-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}
.service-card-index {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.service-card-category {
  max-width: 190px;
  text-align: right;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.service-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.32rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 400;
}

@keyframes services-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

/* ── BLOG TEASER ── */
#blog-teaser {
  border-top: 1px solid var(--border);
  background: rgba(248, 153, 45, 0.015);
}
[data-theme="light"] #blog-teaser {
  background: rgba(248, 153, 45, 0.04);
}
.blog-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.blog-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.blog-label::before {
  content: "—";
}
.blog-teaser-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1rem;
}
.blog-teaser-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.2s;
  text-decoration: none;
  display: block;
}
.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.article-card:hover {
  border-color: rgba(248, 153, 45, 0.3);
  transform: translateY(-2px);
}
.article-series {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.article-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.article-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
  font-weight: 300;
  border-left: 2px solid rgba(248, 153, 45, 0.3);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.article-date {
  font-size: 0.75rem;
  color: var(--muted);
}
.article-cta {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}
.article-card:hover .article-cta {
  gap: 0.7rem;
}

/* ── CONTACT ── */
#contact {
  border-top: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-top: 4rem;
  align-items: start;
}
.contact-intro {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 400;
}
.contact-intro strong {
  color: var(--fg);
  font-weight: 500;
}
.contact-items {
  display: flex;
  flex-direction: column;
}
.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:first-child {
  border-top: 1px solid var(--border);
}
.contact-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
}
.contact-val {
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-val:hover {
  color: var(--accent);
}

/* ── FOOTER ── */
footer {
  padding: 2.5rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--fg);
}

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(248, 153, 45, 0.24);
  border-radius: 2px;
  background: var(--back-top-bg);
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease,
    background 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: rgba(248, 153, 45, 0.12);
}

/* ── BLOG PAGE STYLES ── */
.blog-header {
  padding: 12rem 4rem 5rem;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
}
.blog-header-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.blog-header-label::before { content: "—"; }
.blog-header h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.blog-header h1 em { font-style: normal; color: var(--accent); }
.blog-header-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.75;
  font-weight: 400;
}
.series-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(248, 153, 45, 0.1);
  border: 1px solid rgba(248, 153, 45, 0.2);
  border-radius: 2px;
  padding: 0.3rem 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2rem;
}
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 5rem;
  padding: 5rem 4rem;
  position: relative;
  z-index: 1;
  align-items: start;
}
.article-wrapper { max-width: 680px; }
.article-wrapper { scroll-margin-top: 7rem; }
.article-wrapper.article-is-fading {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.article-wrapper.article-fade-in {
  animation: articleFadeIn 0.32s ease;
}
@keyframes articleFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.article-header { margin-bottom: 3.5rem; }
.article-ep {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.article-wrapper .article-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 1.25rem;
}
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.meta-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(248, 153, 45, 0.15);
  border: 1px solid rgba(248, 153, 45, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}
.author-name { font-size: 0.85rem; font-weight: 500; color: var(--fg); }
.meta-sep { color: var(--border); }
.meta-info { font-size: 0.8rem; color: var(--muted); }
.article-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--article-color);
  font-weight: 400;
}
.article-body p { margin-bottom: 1.75rem; }
.article-body p:last-child { margin-bottom: 0; }
.pull-quote {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--accent);
  background: rgba(248, 153, 45, 0.04);
  border-radius: 0 4px 4px 0;
}
.pull-quote p {
  font-family: "DM Sans", sans-serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  color: var(--pull-quote-color);
  line-height: 1.75;
  margin: 0 !important;
}
.scene-break {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
}
.scene-break::before,
.scene-break::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.scene-break span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.article-footer {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.article-footer-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.article-footer-text {
  font-size: 1rem;
  color: var(--footer-text-color);
  line-height: 1.75;
}
.follow-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid rgba(248, 153, 45, 0.3);
  color: var(--accent);
  border-radius: 2px;
  padding: 0.8rem 1.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.follow-cta:hover {
  background: rgba(248, 153, 45, 0.08);
  border-color: rgba(248, 153, 45, 0.6);
}
.blog-sidebar { position: sticky; top: 7rem; }
.sidebar-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.sidebar-block-accent {
  border-color: rgba(248, 153, 45, 0.15);
}
.sidebar-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.series-list { display: flex; flex-direction: column; gap: 0; }
.series-ep {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: opacity 0.2s;
}
.series-ep:first-child { padding-top: 0; }
.series-ep:last-child { border-bottom: none; padding-bottom: 0; }
.series-ep:hover { opacity: 0.75; }
.series-ep.active {
  opacity: 1;
}
.series-ep.active .ep-title,
.series-ep.active .ep-num {
  color: var(--accent);
}
.ep-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 24px;
  padding-top: 2px;
}
.ep-title { font-size: 0.85rem; color: var(--fg); line-height: 1.4; font-weight: 400; }
.ep-status { font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }
.ep-dot-live {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #30d158;
  margin-right: 4px;
  vertical-align: middle;
}
.ep-dot-soon {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--muted);
  margin-right: 4px;
  vertical-align: middle;
}
.about-block { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.about-block strong { color: var(--fg); font-weight: 500; }
.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-top: 1rem;
  transition: gap 0.2s;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav {
    padding: 1rem 1.5rem;
  }
  #hero {
    padding: 0 1.5rem 4rem;
  }
  .hero-stats {
    display: none;
  }
  section {
    padding: 5rem 1.5rem;
  }
  .mission-grid,
  .products-showcase,
  .contact-grid,
  .blog-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .services-slider-head {
    flex-direction: column;
    align-items: stretch;
  }
  .services-controls {
    align-self: flex-start;
  }
  .services-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .products-showcase::before,
  .products-showcase::after {
    display: none;
  }
  footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .blog-header {
    padding: 9rem 1.5rem 3rem;
  }
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 1.5rem;
  }
  .blog-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 767px) {
  nav {
    align-items: center;
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: inline-flex;
  }
  nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    background: var(--menu-bg);
  }
  nav.nav-open ul {
    display: flex;
  }
  nav ul a {
    display: block;
    width: 100%;
  }
  .nav-cta {
    text-align: center;
  }
  .logo-img {
  height: 32px;
  width: auto;
  display: block;
}
  #hero {
    padding-top: 8.5rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary,
  .btn-ghost {
    text-align: center;
  }
  .services-marquee::before,
  .services-marquee::after {
    width: 2.5rem;
  }
  .services-marquee-track {
    animation-duration: 22s;
  }
  .services-slider {
    padding: 1.25rem;
  }
  .services-cards {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 240px;
  }
}
