/* ============================================================
   Blue Spruce Technologies — Website Styles
   Editorial design system (warm neutrals + Spruce Blue)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Inter+Tight:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Tokens: Light --- */
:root {
  /* Neutrals */
  --bg: #FFFFFF;
  --bg-alt: #F5F5F3;
  --ink: #424242;
  --ink-soft: #5A5A5A;
  --ink-mute: #6B6D72;
  --ink-faint: #A6A8AC;
  --rule: rgba(17, 18, 20, 0.12);
  --rule-soft: rgba(17, 18, 20, 0.06);

  /* Accents */
  --accent: #1E3A5F;          /* Spruce Blue — signature */
  --accent-deep: #0F2540;     /* Hover/pressed */
  --accent-btn-bg: #1E3A5F;
  --accent-btn-fg: #F6F3EC;
  --copper: #B8612B;
  --copper-light: #D4823F;

  /* Legacy aliases (back-compat with existing markup) */
  --navy: var(--accent);
  --dark-blue: var(--accent);
  --accent-hover: var(--accent-deep);
  --bg-primary: var(--bg);
  --bg-secondary: var(--bg-alt);
  --bg-tertiary: var(--bg-alt);
  --bg-card: var(--bg);
  --bg-footer: var(--bg-alt);
  --bg-hero: #0a0f16;
  --text-primary: var(--ink);
  --text-secondary: var(--ink-soft);
  --text-muted: var(--ink-mute);
  --text-on-dark: #EDEBE4;
  --text-on-hero: #EDEBE4;
  --text-link: var(--accent);
  --border-color: var(--rule);

  /* Shadows (subtle; editorial) */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.12);

  /* Layout */
  --max-width: 1400px;
  --header-height: 72px;
  --section-padding: 120px;
  --border-radius: 8px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-fast: 320ms;
  --dur-base: 620ms;
  --dur-slow: 900ms;
}

/* --- Tokens: Dark --- */
[data-theme="dark"] {
  --bg: #0B0D0E;
  --bg-alt: #121416;
  --ink: #EDEBE4;
  --ink-soft: #B9B7B0;
  --ink-mute: #7F7D77;
  --ink-faint: #4A4945;
  --rule: rgba(237, 235, 228, 0.14);
  --rule-soft: rgba(237, 235, 228, 0.07);

  --accent-btn-bg: #1E3A5F;
  --accent-btn-fg: #EDEBE4;
  --copper: #D4823F;

  --bg-primary: var(--bg);
  --bg-secondary: var(--bg-alt);
  --bg-tertiary: var(--bg-alt);
  --bg-card: var(--bg);
  --bg-footer: var(--bg-alt);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-soft);
  --text-muted: var(--ink-mute);
  --text-link: var(--ink);
  --border-color: var(--rule);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.24s var(--ease-out-expo);
}
a:hover { color: var(--accent-deep); }
[data-theme="dark"] a:hover { color: var(--ink); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.08;
}

h1 {
  font-size: clamp(1.2rem, 2vw + 0.4rem, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.8rem, 2.4vw + 0.8rem, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
}
h3 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
h4 {
  font-size: 0.9rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 80px;
}
@media (max-width: 1024px) { .container { padding: 0 48px; } }
@media (max-width: 640px)  { .container { padding: 0 24px; } }

.section { padding: var(--section-padding) 0; }
.section--alt { background-color: var(--bg-alt); }
.text-center { text-align: center; }

/* --- Grid --- */
.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--bg);
  border-bottom: 1px solid var(--rule);
  z-index: 1000;
  transition: background-color 0.32s var(--ease-out-expo),
              border-color 0.32s var(--ease-out-expo),
              color 0.32s var(--ease-out-expo);
}

.header__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo { display: inline-flex; align-items: center; }
.header__logo img {
  height: 45px;
  width: auto;
  transition: opacity 0.2s;
}
.header__logo .logo-light { display: none; }

/* In dark mode, show the light/white logo site-wide.
   For pages that include both logos (dark + light), we hide .logo-dark.
   For pages with a single dark logo, we invert it to white. */
[data-theme="dark"] .header__logo .logo-dark { display: none; }
[data-theme="dark"] .header__logo .logo-light { display: inline-block; }
[data-theme="dark"] .header__logo a > img:only-child,
[data-theme="dark"] .header__logo > img:only-child {
  filter: brightness(0) invert(1);
}

/* Translucent variant (over hero photo) */
.header--translucent {
  background: transparent;
  border-bottom: 1px solid rgba(237, 235, 228, 0.12);
}
.header--translucent .logo-dark { display: none; }
.header--translucent .logo-light { display: inline-block; }

.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__nav a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  padding: 10px 20px;
  position: relative;
  transition: color 0.24s var(--ease-out-expo);
}
.header__nav a::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease-out-expo);
}
.header__nav a:hover,
.header__nav a.active {
  color: var(--accent);
}
.header__nav a:hover::after,
.header__nav a.active::after {
  transform: scaleX(1);
}

.header--translucent .header__nav a { color: rgba(237, 235, 228, 0.85); }
.header--translucent .header__nav a:hover,
.header--translucent .header__nav a.active { color: #fff; }
.header--translucent .header__nav a::after { background: #EDEBE4; }

/* Services dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0a0f16;
  border: 1px solid rgba(237, 235, 228, 0.12);
  min-width: 220px;
  padding: 12px 0;
  z-index: 1001;
  box-shadow: var(--shadow-md);
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown.open .nav-dropdown__menu { display: block; }
.nav-dropdown__menu a {
  display: block;
  padding: 10px 24px;
  font-size: 14px;
  color: #EDEBE4;
}
.nav-dropdown__menu a::after { display: none; }
.nav-dropdown__menu a:hover {
  background: rgba(237, 235, 228, 0.08);
  color: var(--copper);
}

/* Light mode: white dropdown on all pages except the home page (which has a dark hero behind it) */
html:not([data-theme="dark"]) body:not(.home) .nav-dropdown__menu {
  background: #ffffff;
  border: 1px solid rgba(10, 15, 22, 0.12);
}
html:not([data-theme="dark"]) body:not(.home) .nav-dropdown__menu a {
  color: #0a0f16;
}
html:not([data-theme="dark"]) body:not(.home) .nav-dropdown__menu a:hover {
  background: rgba(10, 15, 22, 0.06);
  color: var(--copper);
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  border-radius: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 12px;
  transition: color 0.24s var(--ease-out-expo),
              border-color 0.24s var(--ease-out-expo),
              background-color 0.24s var(--ease-out-expo);
}
.theme-toggle:hover {
  color: var(--ink);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

.header--translucent .theme-toggle {
  color: rgba(237, 235, 228, 0.75);
}
.header--translucent .theme-toggle:hover {
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.hamburger svg { width: 24px; height: 24px; }
.header--translucent .hamburger { color: #EDEBE4; }

/* Mobile nav */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .header__inner { padding: 0 24px; }
  .header__nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .header__nav.open { display: flex; }
  .header__nav a {
    width: 100%;
    padding: 14px 16px;
    color: var(--ink);
  }
  .header__nav a::after { display: none; }
  .nav-dropdown__menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown__menu { display: block; }
  .theme-toggle { margin-left: 0; margin-top: 8px; align-self: flex-start; }
}

/* ============================================================
   HERO — Masthead (full-bleed, Variation D)
   Applies to .hero (no .hero--page modifier)
   ============================================================ */
.hero {
  position: relative;
  height: min(100vh, 960px);
  min-height: 620px;
  overflow: hidden;
  background: #0a0f16;
  color: #EDEBE4;
}

.hero--with-bg { background-size: cover; background-position: center; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 22, 0.35) 0%,
    rgba(10, 15, 22, 0.15) 45%,
    rgba(10, 15, 22, 0.82) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 0 40px;
  max-width: none;
}

/* Consortium link — top right */
.hero__consortium {
  position: absolute;
  top: 96px;
  right: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #EDEBE4;
  opacity: 0.85;
  text-decoration: none;
  z-index: 3;
  transition: opacity 0.2s;
}
.hero__consortium:hover,
[data-theme="dark"] .hero__consortium:hover {
  opacity: 1;
  color: var(--copper);
  text-decoration: underline;
}
.hero__consortium-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Coordinates — top right */
.hero__coords {
  position: absolute;
  top: 96px;
  right: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
  color: #EDEBE4;
  opacity: 0.85;
  line-height: 1.8;
  z-index: 3;
}
.hero__coords-loc {
  color: #EDEBE4;
  margin-top: 8px;
  opacity: 0.75;
}

/* Main editorial stack — bottom of hero */
.hero__inner {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 80px;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #EDEBE4;
  margin-bottom: 32px;
  opacity: 0.9;
}
.hero__eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: #EDEBE4;
  display: inline-block;
  opacity: 0.6;
}

.hero__headline {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(2.34rem, 6.25vw, 7.8rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #EDEBE4;
  margin: 0;
  max-width: 1400px;
}
.hero__headline-accent {
  color: var(--copper);
}

.word-cycle {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
}
.word-cycle__word {
  display: inline-block;
  opacity: 0;
  filter: blur(16px);
  transform: translateX(-0.6em);
  transition: opacity 900ms ease, filter 900ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter, transform;
}
.word-cycle__word.is-active {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}
.word-cycle__word.is-leaving {
  opacity: 0;
  filter: blur(16px);
  transform: translateX(0.6em);
}
.word-cycle__word:not(.is-active) {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .word-cycle__word { transition: none; filter: none; transform: none; }
}


.hero__footer {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 64px;
  align-items: end;
}

.hero__deck {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  line-height: 1.5;
  color: rgba(237, 235, 228, 0.82);
  letter-spacing: -0.003em;
  max-width: 540px;
  margin: 0;
}

.hero__scroll {
  padding-left: 24px;
  border-left: 1px solid rgba(237, 235, 228, 0.25);
}
.hero__scroll-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 10px;
}
.hero__scroll-text {
  font-size: 15px;
  letter-spacing: -0.005em;
  color: rgba(237, 235, 228, 0.9);
  line-height: 1.4;
}

.hero__actions {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}

/* Legacy centered variant — retained if used, but masthead is left-aligned */
.hero--centered .hero__inner { text-align: left; }

/* Hero responsive */
@media (max-width: 1024px) {
  .hero__inner { left: 32px; right: 32px; bottom: 64px; }
  .hero__coords { top: 88px; right: 32px; }
  .hero__consortium { top: 88px; right: 32px; }
  .hero__footer { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero__scroll { display: none; }
}
@media (max-width: 768px) {
  .hero { height: auto; min-height: 100vh; }
  .hero__inner {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 140px 24px 64px;
  }
  .hero__coords { top: 88px; right: 24px; }
  .hero__consortium { top: 88px; right: 24px; max-width: 60%; }
  .hero__footer { grid-template-columns: 1fr; gap: 32px; }
  .hero__actions { justify-content: flex-start; }
  .hero__deck { font-size: 17px; }
}

/* ============================================================
   HERO — Page (interior pages): shorter banner
   ============================================================ */
.hero--page {
  height: auto;
  min-height: 360px;
  padding: 160px 0 96px;
  margin-top: 0;
}
.hero--page::before {
  background: linear-gradient(
    180deg,
    rgba(10, 15, 22, 0.55) 0%,
    rgba(10, 15, 22, 0.35) 50%,
    rgba(10, 15, 22, 0.65) 100%
  );
}
.hero--page .hero__content {
  position: relative;
  z-index: 2;
  max-width: 960px;
}
.hero--page.hero--centered .hero__content {
  margin: 0 auto;
  text-align: center;
}
.hero--page h1 {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: #EDEBE4;
  margin-bottom: 20px;
}
.hero--page p {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  line-height: 1.5;
  color: rgba(237, 235, 228, 0.82);
  letter-spacing: -0.003em;
  max-width: 680px;
  margin-bottom: 0;
}
.hero--page.hero--centered p { margin-left: auto; margin-right: auto; }

/* For pages without a hero: clear the fixed header */
main:not(:has(.hero)) {
  margin-top: var(--header-height);
  padding-top: 80px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 16px 30px;
  border-radius: 0;        /* editorial: sharp corners */
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.24s var(--ease-out-expo),
              color 0.24s var(--ease-out-expo),
              border-color 0.24s var(--ease-out-expo),
              transform 0.24s var(--ease-out-expo);
}

.btn--primary {
  background: var(--accent-btn-bg);
  color: var(--accent-btn-fg);
}
.btn--primary:hover {
  background: var(--accent-deep);
  color: var(--accent-btn-fg);
}
[data-theme="dark"] .btn--primary:hover {
  background: #2A4F7D;
  color: #EDEBE4;
}

.btn--outline {
  background: transparent;
  color: #EDEBE4;
  border: 1px solid rgba(237, 235, 228, 0.45);
}
.btn--outline:hover {
  background: rgba(237, 235, 228, 0.08);
  border-color: rgba(237, 235, 228, 0.8);
  color: #fff;
}

.btn--secondary {
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn--secondary:hover {
  background: var(--bg);
  border-color: var(--ink);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px;
  transition: transform 0.32s var(--ease-out-expo),
              box-shadow 0.32s var(--ease-out-expo),
              border-color 0.32s var(--ease-out-expo);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--rule);
}
.section--alt .card { background: var(--bg); }

.card h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--ink);
}
.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--accent);
}
.card__icon img { width: 100%; height: 100%; object-fit: contain; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--accent);
  transition: gap 0.24s var(--ease-out-expo), color 0.24s var(--ease-out-expo);
}
.card__link:hover { gap: 10px; color: var(--accent-deep); }
[data-theme="dark"] .card__link { color: var(--ink); }
[data-theme="dark"] .card__link:hover { color: #fff; }

/* Service card — image top, meta footer with copper numeral */
.card--service {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card--service > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out-expo);
}
.card--service:hover > img { transform: scale(1.03); }
.card--service .card__body {
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card--service .card__body h3 { margin-bottom: 14px; }
.card--service .card__body p { flex: 1; }
.card--service .card__link {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}
.card--service .card__body h3 { color: var(--copper); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  max-width: 680px;
  margin-bottom: 72px;
}
.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
}
.section-header h2 {
  margin-bottom: 16px;
}
.section-header p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ============================================================
   SERVICE DETAIL (inner pages)
   ============================================================ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.service-detail--reverse { direction: rtl; }
.service-detail--reverse > * { direction: ltr; }

.service-detail__image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}
.service-detail__content h2 { margin-bottom: 20px; }
.service-detail__content p { margin-bottom: 16px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

.feature-list {
  list-style: none;
  padding: 0 0 0 24px;
  margin: 24px 0;
}
.feature-list li {
  padding: 12px 0 12px 28px;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule-soft);
  font-size: 15px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .service-detail { grid-template-columns: 1fr; gap: 32px; }
  .service-detail--reverse { direction: ltr; }
}

/* ============================================================
   PARTNER LOGOS
   ============================================================ */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 24px 0;
}
.partner-logos img {
  height: 40px;
  width: auto;
  max-width: 160px;
  opacity: 1;
  filter: none;
  transition: opacity 0.3s var(--ease-out-expo),
              filter 0.3s var(--ease-out-expo);
}

/* Marquee variant — continuous horizontal scroll */
.partner-logos--marquee {
  display: block;
  overflow: hidden;
  padding: 24px 0;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.partner-logos__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: partner-logos-scroll 40s linear infinite;
}
.partner-logos--marquee:hover .partner-logos__track {
  animation-play-state: paused;
}
@keyframes partner-logos-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .partner-logos__track { animation: none; }
  .partner-logos--marquee { overflow-x: auto; }
}
[data-theme="dark"] .partner-logos img {
  filter: grayscale(100%) brightness(1.8) invert(0.95);
  opacity: 0.75;
}
[data-theme="dark"] .partner-logos img:hover {
  filter: none;
  opacity: 1;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--accent);
  color: #EDEBE4;
  padding: 96px 0;
  text-align: center;
}
.cta-banner h2 {
  color: #EDEBE4;
  margin-bottom: 16px;
}
.cta-banner p {
  color: rgba(237, 235, 228, 0.85);
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 19px;
  line-height: 1.5;
}

/* Light variant */
.cta-banner--light {
  background: var(--bg-alt);
  color: var(--ink);
}
.cta-banner--light h2 { color: var(--ink); }
.cta-banner--light p { color: var(--ink-soft); }

[data-theme="dark"] .cta-banner {
  background: var(--bg-alt);
  color: var(--ink);
}
[data-theme="dark"] .cta-banner h2 { color: var(--ink); }
[data-theme="dark"] .cta-banner p  { color: var(--ink-soft); }
[data-theme="dark"] .cta-banner--light { background: var(--bg-alt); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #1E3A5F;
  color: rgba(237, 235, 228, 0.82);
  padding: 96px 0 48px;
  border-top: none;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}
.footer__brand img {
  height: 45px;
  width: auto;
  margin-bottom: 20px;
}
.footer__brand p {
  color: rgba(237, 235, 228, 0.65);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}
.footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 235, 228, 0.55);
  margin-bottom: 20px;
}
.footer__links {
  list-style: none;
  padding: 0;
}
.footer__links li {
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(237, 235, 228, 0.82);
}
.footer__links a {
  color: rgba(237, 235, 228, 0.82);
  font-size: 14px;
  transition: color 0.24s var(--ease-out-expo);
}
.footer__links a:hover { color: #ffffff; }

.footer__bottom {
  border-top: 1px solid rgba(237, 235, 228, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(237, 235, 228, 0.5);
}
.footer__bottom a { color: rgba(237, 235, 228, 0.65); }
.footer__bottom a:hover { color: #ffffff; }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.32s var(--ease-out-expo),
              box-shadow 0.32s var(--ease-out-expo);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.blog-card > a > img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.blog-card__body { padding: 28px; }
.blog-card__tag {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 14px;
}
.blog-card__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.blog-card__body h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.blog-card__body p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.blog-card__platforms {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
}
.blog-card__platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  transition: color 0.2s;
}
.blog-card__platform:hover { color: var(--accent); }

/* Blog post content */
.blog-post { max-width: 780px; margin: 0 auto; }
.blog-post__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 40px;
}
.blog-post__content h2 {
  margin-top: 56px;
  margin-bottom: 20px;
  font-size: 2rem;
}
.blog-post__content h3 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 1.35rem;
}
.blog-post__content p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.blog-post__content img {
  border-radius: var(--border-radius);
  margin: 32px 0;
}
.blog-post__content blockquote {
  border-left: 2px solid var(--accent);
  padding: 12px 24px;
  margin: 32px 0;
  color: var(--ink);
  font-style: normal;
  font-family: 'Inter Tight', sans-serif;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.blog-external {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.blog-external a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--bg);
  border: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s, color 0.2s;
}
.blog-external a:hover {
  border-color: var(--ink);
  color: var(--accent);
}

/* ============================================================
   CASE STUDIES
   ============================================================ */
.case-study-stat {
  text-align: center;
  padding: 24px;
}
.case-study-stat__number {
  font-family: 'Inter Tight', sans-serif;
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--copper);
  line-height: 1;
}
.case-study-stat__label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 10px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-info__item svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s;
  margin-bottom: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink-mute);
}

/* ============================================================
   ABOUT — Our Story + Innovation Heritage
   ============================================================ */
.our-story { padding: 8px 0 64px; }

.section-scroll {
  display: inline-block;
  margin: 64px auto 0;
  padding-left: 24px;
  border-left: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-fast) var(--ease-out-quart);
}
.section-scroll-wrap {
  text-align: center;
}
.section-scroll:hover { border-left-color: var(--copper); }
.section-scroll__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.section-scroll__text {
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.4;
}
@media (max-width: 768px) { .section-scroll { display: none; } }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: start;
}
.story-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}
@media (max-width: 768px) { .story-grid { grid-template-columns: 1fr; gap: 40px; } }

.innovation-heritage { padding: 24px 0 var(--section-padding); }
.innovation-heritage .section-intro {
  max-width: 700px;
  margin-bottom: 48px;
}

.service-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 640px) { .service-detail__grid { grid-template-columns: 1fr; } }

.service-detail__card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px;
}
.service-detail__icon {
  margin-bottom: 16px;
  color: var(--accent);
}
.service-detail__card .highlight {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.company-logo {
  max-height: 56px;
  width: auto;
  max-width: 200px;
}

.innovation-image { margin-top: 48px; }
.innovation-image img {
  width: 100%;
  border-radius: var(--border-radius);
  max-height: 420px;
  object-fit: cover;
}

/* ============================================================
   SECTION DIVIDERS
   ============================================================ */
.section-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  max-height: 200px;
}
.section-divider img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 768px) {
  .section-divider,
  .section-divider img { max-height: 120px; height: 120px; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ============================================================
   MOTION — scroll-reveal (IntersectionObserver-driven)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.72s var(--ease-out-expo),
              transform 0.72s var(--ease-out-expo);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--from-left  { transform: translateX(-60px); }
.reveal--from-right { transform: translateX(60px); }
.reveal--from-left.is-visible,
.reveal--from-right.is-visible { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 240ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { transform: none !important; }
}

/* ============================================================
   RESPONSIVE — global
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-padding: 80px; }
}
@media (max-width: 480px) {
  :root { --section-padding: 64px; }
  .container { padding: 0 20px; }
}

/* ============================================================
   COOKIE CONSENT BANNER — minimalist, non-blocking
   ============================================================ */
.cookie-banner {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 28px);
  padding: 7px 8px 7px 11px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-size: 9px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(8px);
  animation: cookie-banner-in 280ms var(--ease-out-quart) forwards;
}
@keyframes cookie-banner-in {
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner.is-hiding {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease;
}
.cookie-banner__text { color: var(--ink-soft); }
.cookie-banner__accept {
  appearance: none;
  border: 0;
  background: var(--accent-btn-bg);
  color: var(--accent-btn-fg);
  padding: 4px 10px;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out-quart);
}
.cookie-banner__accept:hover { background: var(--accent-deep); }
.cookie-banner__decline {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  font: inherit;
  padding: 4px 7px;
  cursor: pointer;
  border-radius: 999px;
  transition: color var(--dur-fast) var(--ease-out-quart);
}
.cookie-banner__decline:hover { color: var(--ink); }
@media (max-width: 480px) {
  .cookie-banner {
    right: 8px;
    bottom: 8px;
    max-width: calc(100vw - 16px);
    font-size: 8px;
    padding: 6px 7px 6px 10px;
  }
}
