/* ============================================================
   404200 Main Website — Visual System
   Colors + fonts ported verbatim from the coming-soon page.
   ============================================================ */
:root {
  --bg-white: #faf8f5;      /* warm off-white */
  --text-dark: #000000;
  --text-muted: #555555;
  --primary-blue: #003cff;  /* electric blue */
  --lime-green: #ccff00;    /* neon lime */
  --pink-starburst: #ff79c6;/* neon pink */
  --orange: #ff5c00;        /* concept "404 Generative" accent */

  --line: #e5e5e0;
  --shadow-hard: 6px 6px 0 #000;

  --font-sans: 'Plus Jakarta Sans', 'Manrope', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-script: 'Caveat', cursive;

  --transition-speed: 0.3s;
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
#hero, #services, #mission, #faq, #blog, #footer { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--bg-white);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--transition-speed), color var(--transition-speed);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.max-width-container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .max-width-container { padding: 0 20px; }
  body { font-size: 16px; }
}

/* ---- Dark mode base ---- */
body.dark-mode {
  --bg-white: #0e0f12;
  --text-dark: #ffffff;
  --text-muted: #9aa0a8;
  --line: #24262b;
  --shadow-hard: 6px 6px 0 #000;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-white) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--transition-speed), background var(--transition-speed);
  user-select: none;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding var(--transition-speed);
}
.site-header.scrolled .header-inner { padding-top: 11px; padding-bottom: 11px; }

.logo-group { display: flex; align-items: center; gap: 11px; }
.logo-sun { width: 42px; height: 42px; flex: none; }
.logo-sun-img { width: 100%; height: 100%; object-fit: contain; display: block; }
body.dark-mode .logo-sun-img { filter: invert(1); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-404 { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; }
.logo-trans { font-size: 8.5px; font-weight: 700; letter-spacing: 0.14em; opacity: 0.75; margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.main-nav a:hover { color: var(--text-dark); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px;
  height: 2px; background: var(--primary-blue); transition: right 0.25s;
}
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex;
  border: 2.5px solid var(--text-dark);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-white);
}
.lang-toggle button {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  background: transparent;
  color: var(--text-dark);
  border: none;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle button.is-active { background: var(--pink-starburst); color: #000; }

/* Pink-capsule theme toggle (identical to coming-soon footer toggle) */
.pink-toggle {
  position: relative; width: 64px; height: 32px; flex: none;
  background-color: var(--pink-starburst);
  border: 2.5px solid #000; border-radius: 20px;
  display: flex; align-items: center; padding: 0 4px; cursor: pointer;
  box-shadow: 1px 2px 0 rgba(0,0,0,0.15); transition: transform 0.2s;
}
.pink-toggle:hover { transform: scale(1.05); }
.toggle-circle { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #000; z-index: 1; }
.white-circle { background: #fff; margin-right: 8px; }
.black-circle { background: #000; }
.toggle-knob {
  position: absolute; left: 4px; width: 24px; height: 24px;
  border-radius: 50%; border: 2.5px solid #000; background: transparent; z-index: 2;
  transition: transform 0.25s cubic-bezier(0.68, -0.6, 0.27, 1.55);
}
body.dark-mode .toggle-knob { transform: translateX(28px); }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text-dark); color: var(--bg-white);
  font-weight: 800; font-size: 12.5px; letter-spacing: 0.04em;
  padding: 12px 22px; border-radius: 30px;
  border: 1.5px solid var(--text-dark);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.header-cta:hover { background: var(--primary-blue); border-color: var(--primary-blue); }
.header-cta .arrow { color: var(--lime-green); font-weight: 800; }

/* Header adapts to white while it sits over the black hero */
.site-header.hdr-dark { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
body.dark-mode .hdr-dark .logo-sun-img { filter: invert(1); }
body.dark-mode .hdr-dark .logo-404, body.dark-mode .hdr-dark .logo-trans { color: #fff; }
body.dark-mode .hdr-dark .main-nav a { color: rgba(255,255,255,0.66); }
body.dark-mode .hdr-dark .main-nav a:hover { color: #fff; }
body.dark-mode .hdr-dark .lang-toggle { border-color: #fff; background: transparent; }
body.dark-mode .hdr-dark .lang-toggle button { color: #fff; }
body.dark-mode .hdr-dark .lang-toggle button.is-active { background: var(--pink-starburst); color: #000; }
body.dark-mode .hdr-dark .header-cta { background: #fff; color: #000; border-color: #fff; }
body.dark-mode .hdr-dark .header-cta:hover { background: var(--primary-blue); border-color: var(--primary-blue); color: #fff; }

@media (max-width: 900px) {
  .main-nav { display: none; }
}
@media (max-width: 560px) {
  .header-inner { padding: 14px 20px; gap: 12px; }
  .header-cta { display: none; }
  .logo-trans { font-size: 8px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero-section {
  background: var(--bg-white);     /* adapts dynamically to theme background */
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 150px 0 120px;         /* top padding clears the fixed header */
  transition: background var(--transition-speed);
}
.hero-headline {
  font-family: 'Bangers', cursive;
  font-size: clamp(55px, 11.5vw, 159px);
  font-weight: 400; /* Bangers is inherently heavy */
  line-height: 1.0;
  letter-spacing: 0.04em;
  word-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  width: 100%;
  /* Light mode: beach sunset image clipped to letters */
  background-image: url('assets/hero-light.jpg');
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Dark mode: purple beach sunset image clipped to letters */
body.dark-mode .hero-headline {
  background-image: url('assets/hero-dark.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-headline {
    font-size: clamp(58px, 15vw, 154px);
    line-height: 1.0;
    word-spacing: 0.08em;
  }
}

/* Mobile (max-width: 560px) */
@media (max-width: 560px) {
  .hero-section {
    padding: 120px 0 80px;
  }
  .hero-headline {
    font-size: clamp(52px, 18.5vw, 104px); /* fills mobile screen width */
    line-height: 1.0;
    letter-spacing: 0.03em;
    word-spacing: 0.06em;
  }
}

/* ============================================================
   Multi-language hero font scaling
   html[lang] is set by i18n.js on every language switch.
   EN is the baseline. RU lines are ~13% longer; EL ~39% longer.
   ============================================================ */
/* Greek: Roboto Condensed / Oswald (wght 900/700) covers Greek glyphs with the same heavy condensed display feel */
html[lang="el"] .hero-headline { font-family: 'Roboto Condensed', 'Oswald', sans-serif; font-weight: 900; font-size: clamp(34px, 7.2vw, 98px); }
/* Russian/Cyrillic: Roboto Condensed / Oswald (wght 900/700) covers Cyrillic glyphs with the same heavy condensed display feel */
html[lang="ru"] .hero-headline { font-family: 'Roboto Condensed', 'Oswald', sans-serif; font-weight: 900; font-size: clamp(42px, 9vw, 122px); }

@media (max-width: 1024px) {
  html[lang="ru"] .hero-headline { font-size: clamp(44px, 11.8vw, 120px); }
  html[lang="el"] .hero-headline { font-size: clamp(35px, 9.4vw, 96px); }
}
@media (max-width: 560px) {
  html[lang="ru"] .hero-headline { font-size: clamp(33px, 14vw, 80px); }
  html[lang="el"] .hero-headline { font-size: clamp(23px, 10.2vw, 58px); }
}

/* ============================================================
   Multi-language footer bigtext scaling
   EN "LET'S / BUILD" is shortest. RU "ДАВАЙТЕ / СОЗДАДИМ"
   and EL "ΑΣ / ΧΤΙΣΟΥΜΕ" need a smaller size.
   ============================================================ */
html[lang="ru"] .footer-bigtext { font-size: clamp(39px, 8.8vw, 120px); }
html[lang="el"] .footer-bigtext { font-size: clamp(45px, 10vw, 138px); }

@media (max-width: 820px) {
  html[lang="ru"] .footer-bigtext { font-size: clamp(32px, 8vw, 100px); }
  html[lang="el"] .footer-bigtext { font-size: clamp(38px, 9vw, 112px); }
}
@media (max-width: 480px) {
  html[lang="ru"] .footer-bigtext { font-size: clamp(28px, 10vw, 72px); }
  html[lang="el"] .footer-bigtext { font-size: clamp(34px, 11vw, 82px); }
}

/* ============================================================
   Shared bits
   ============================================================ */
.section-pill {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; padding: 7px 14px; border-radius: 30px;
  border: 1.5px solid var(--text-dark); color: var(--text-dark);
  margin-bottom: 24px;
}

/* ============================================================
   Building. Breaking. Rebuilding.
   ============================================================ */
.building-section {
  position: relative;
  padding: 96px 0 90px;
  border-top: 1.5px solid var(--line);
  overflow: hidden;
}
.building-deco {
  position: absolute; top: -10%; right: -6%;
  width: 480px; height: 480px;
  background: url("assets/op-art-blue.jpg") center/cover no-repeat;
  opacity: 0.10; filter: saturate(0.7);
  border-radius: 50%;
  pointer-events: none; z-index: 0;
}
.building-inner { position: relative; z-index: 1; }

.building-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.building-title {
  font-size: clamp(40px, 7vw, 92px); font-weight: 800;
  line-height: 0.96; letter-spacing: -0.035em; margin: 0; max-width: 12ch;
}
.building-title .bw2 { color: var(--primary-blue); }
.building-title .bw3 { color: var(--pink-starburst); }

.hat-eyes {
  width: clamp(160px, 22vw, 240px); height: auto; flex: none;
  animation: hatFloat 5s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes hatFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

.building-copy {
  font-family: var(--font-mono); font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55; color: var(--text-muted);
  max-width: 640px; margin: 28px 0 48px;
}

.stats-row {
  display: flex; gap: 0;
  border-top: 1.5px solid var(--text-dark);
  border-bottom: 1.5px solid var(--text-dark);
}
.stat {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  padding: 28px 24px;
}
.stat + .stat { border-left: 1.5px solid var(--line); }
.stat-num { font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.stat-label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--text-muted); text-transform: uppercase; }

.building-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 44px;
  background: var(--text-dark); color: var(--bg-white);
  font-weight: 800; font-size: 13px; letter-spacing: 0.04em;
  padding: 16px 30px; border-radius: 30px; border: 2px solid var(--text-dark);
  box-shadow: 3.5px 3.5px 0 var(--primary-blue);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.building-cta:hover { transform: translate(-2px,-2px); box-shadow: 5.5px 5.5px 0 var(--primary-blue); }
.building-cta .arrow { color: var(--lime-green); }

@media (max-width: 720px) {
  .building-top { flex-direction: column-reverse; align-items: flex-start; }
  .hat-eyes { width: 180px; }
  .stats-row { flex-direction: column; }
  .stat + .stat { border-left: none; border-top: 1.5px solid var(--line); }
}

/* ============================================================
   Services
   ============================================================ */
.services-section { padding: 90px 0 100px; border-top: 1.5px solid var(--line); }
.services-head { max-width: 760px; }
.services-h2 {
  font-size: clamp(30px, 4.4vw, 56px); font-weight: 800;
  line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 16px;
}
.services-sub { font-family: var(--font-mono); font-size: clamp(14px, 1.5vw, 17px); color: var(--text-muted); line-height: 1.5; margin: 0; }

.terms-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 40px; }
.terms-chip {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  padding: 9px 14px; border-radius: 30px;
  border: 1.5px solid var(--text-dark); background: transparent; color: var(--text-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  overflow: hidden;
  border: 2.5px solid #000;
  border-radius: 24px;
  padding: 26px 24px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  box-shadow: 5px 5px 0 #000;
  transition: transform 0.22s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.22s;
}
.service-card.accent-blue   { background: var(--primary-blue); color: #fff; }
.service-card.accent-lime   { background: var(--lime-green);  color: #000; }
.service-card.accent-orange { background: var(--orange);      color: #000; }
.service-card.accent-pink   { background: var(--pink-starburst); color: #000; }
.service-card.accent-black  { background: #111;               color: #fff; }

.service-card > .service-top,
.service-card > .service-title,
.service-card > .svc-desc,
.service-card > .service-foot { position: relative; z-index: 1; }

.service-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.service-num { font-family: var(--font-mono); font-size: 22px; font-weight: 700; opacity: 0.9; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 70%; }
.service-tag {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.03em;
  border: 1.3px solid currentColor; border-radius: 20px; padding: 3px 8px; opacity: 0.8;
}

.service-title { font-size: 22px; font-weight: 800; line-height: 1.08; margin: 20px 0 10px; letter-spacing: -0.01em; }
.svc-desc {
  font-size: 13.5px; line-height: 1.5; opacity: 0.85; margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.service-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; }
.price-big { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.price-note { display: block; font-family: var(--font-mono); font-size: 11px; opacity: 0.78; margin-top: 4px; max-width: 24ch; }
.service-arrow {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; color: #000; border: 2px solid #000;
  display: grid; place-items: center; font-size: 19px; font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}
.service-arrow:hover { transform: translate(2px, -2px) rotate(8deg); background: var(--lime-green); }

@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
}

/* ============================================================
   Interactions: scroll reveal + service hover op-art
   ============================================================ */
body.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
body.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

.service-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 #000; }

/* ============================================================
   Mission
   ============================================================ */
.mission-section { padding: 90px 0; border-top: 1.5px solid var(--line); }
.mission-title { font-size: clamp(30px, 4.6vw, 58px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 22px; max-width: 16ch; }
.mission-copy { font-family: var(--font-mono); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; color: var(--text-muted); max-width: 680px; margin: 0 0 52px; }
.mission-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value { border-top: 2.5px solid var(--text-dark); padding-top: 18px; }
.value-num { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--primary-blue); }
.value h3 { font-size: 21px; font-weight: 800; margin: 12px 0 8px; letter-spacing: -0.01em; }
.value p { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); margin: 0; }
@media (max-width: 760px) { .mission-values { grid-template-columns: 1fr; gap: 22px; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { padding: 90px 0; border-top: 1.5px solid var(--line); }
.faq-inner { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; align-items: start; }
.faq-head { position: sticky; top: 100px; }
.faq-title { font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
.faq-list { border-top: 1.5px solid var(--line); }
.faq-item { border-bottom: 1.5px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 4px; color: var(--text-dark);
  font-family: var(--font-sans); font-size: clamp(16px, 1.7vw, 19px); font-weight: 700;
}
.faq-q-text { flex: 1; }
.faq-icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--text-dark); transition: transform 0.25s, background 0.25s; }
.faq-icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-item.open .faq-q-text { color: var(--primary-blue); }
.faq-item.open .faq-icon::before { background: var(--primary-blue); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { margin: 0 4px 24px; padding-right: 30px; font-family: var(--font-mono); font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }
@media (max-width: 760px) { .faq-inner { grid-template-columns: 1fr; gap: 24px; } .faq-head { position: static; } }

/* ============================================================
   Blog
   ============================================================ */
.blog-section { padding: 90px 0 100px; border-top: 1.5px solid var(--line); }
.blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.blog-title { font-size: clamp(28px, 3.8vw, 48px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 10px; }
.blog-sub { font-family: var(--font-mono); font-size: 14.5px; color: var(--text-muted); margin: 0; max-width: 460px; }
.blog-all { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; padding: 13px 22px; border-radius: 30px; border: 2px solid var(--text-dark); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.blog-all:hover { background: var(--text-dark); color: var(--bg-white); }
.blog-all .arrow { color: var(--primary-blue); }
.blog-all:hover .arrow { color: var(--lime-green); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card {
  display: flex; flex-direction: column;
  border: 2px solid var(--text-dark); border-radius: 20px; padding: 16px;
  background: var(--bg-white); box-shadow: 4px 4px 0 var(--text-dark);
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--text-dark); }
.blog-card-media { display: block; height: 150px; border-radius: 12px; border: 2px solid var(--text-dark); margin-bottom: 16px; }
.blog-card-media.accent-blue { background: var(--primary-blue); }
.blog-card-media.accent-lime { background: var(--lime-green); }
.blog-card-media.accent-pink { background: var(--pink-starburst); }
.blog-card-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--primary-blue); }
.blog-card-title { font-size: 19px; font-weight: 800; line-height: 1.15; margin: 8px 0 14px; letter-spacing: -0.01em; }
.blog-card-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.blog-card-more { font-family: var(--font-mono); font-size: 13px; font-weight: 700; margin-top: auto; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Footer — kinetic / op-art
   ============================================================ */
.site-footer { background: #0a0b0d; color: #fff; position: relative; overflow: hidden; }

/* marquee band */
.footer-marquee {
  background: var(--lime-green); color: #000;
  border-top: 2.5px solid #000; border-bottom: 2.5px solid #000;
  overflow: hidden;
}
.footer-marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; will-change: transform; }
.footer-marquee:hover .footer-marquee-track { animation-play-state: paused; }
.mq-set { display: flex; align-items: center; gap: 26px; padding: 14px 26px 14px 0; flex: none; }
.mq-item { font-weight: 800; font-size: clamp(18px, 2.3vw, 30px); letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; }
.mq-star { font-size: 20px; color: var(--primary-blue); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* main */
.footer-main { position: relative; padding: 72px 0 44px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: end; position: relative; z-index: 2; }
.footer-kicker { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; color: var(--lime-green); }
.footer-bigtext {
  font-size: clamp(60px, 13.5vw, 184px); font-weight: 800; line-height: 0.95;
  letter-spacing: -0.025em; margin: 10px 0 28px; text-transform: uppercase; width: fit-content;
  background-image: url("assets/op-art-blue.jpg"); background-size: 800px; background-position: 0 0;
  background-repeat: repeat;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.footer-bigtext:hover { background-image: url("assets/op-art-bw.jpg"); }
.footer-email {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: clamp(16px, 2vw, 24px); font-weight: 700; color: #fff;
  border-bottom: 2px solid var(--lime-green); padding-bottom: 4px; transition: color 0.2s;
}
.footer-email:hover { color: var(--lime-green); }
.footer-email .arrow { color: var(--lime-green); }

.footer-side { display: flex; flex-direction: column; gap: 28px; }
.footer-tagline { font-family: var(--font-mono); font-size: 14px; line-height: 1.55; color: #9aa0a8; max-width: 330px; margin: 0; }
.footer-cols { display: flex; gap: 52px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: #6b7178; margin-bottom: 4px; }
.footer-col a { font-size: 15px; font-weight: 600; color: #fff; width: fit-content; transition: color 0.2s, transform 0.2s; }
.footer-col a:hover { color: var(--lime-green); transform: translateX(5px); }

/* peeking blob with tracking eyes */
.footer-peek { position: absolute; right: 5%; bottom: 0; width: clamp(88px, 11vw, 144px); z-index: 1; }
.footer-peek-img { width: 100%; height: auto; display: block; }
.footer-peek-eyes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

/* bottom bar */
.footer-bottom { border-top: 1.5px solid #1c1e22; padding: 20px 0; position: relative; z-index: 2; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: #6b7178; }
.footer-bottom-actions { display: flex; align-items: center; gap: 12px; }
.site-footer .lang-toggle { border-color: #fff; background: transparent; }
.site-footer .lang-toggle button { color: #fff; }
.site-footer .lang-toggle button.is-active { background: var(--pink-starburst); color: #000; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-peek { width: 84px; opacity: 0.92; }
}
@media (max-width: 480px) {
  .footer-cols { flex-direction: column; gap: 22px; }
  .footer-peek { display: none; }
}

/* ============================================================
   Standalone subpages (privacy / terms / blog)
   ============================================================ */
.subpage { padding: 124px 0 90px; min-height: 62vh; }
.subpage-title { font-size: clamp(36px, 6vw, 72px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.0; margin: 14px 0 30px; }
.subpage-body { max-width: 720px; font-family: var(--font-mono); font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.subpage-body p { margin: 0 0 18px; }
.subpage-body a { color: var(--primary-blue); text-decoration: underline; }
.subpage-body h2 { font-family: var(--font-sans); color: var(--text-dark); font-size: 22px; font-weight: 800; margin: 34px 0 12px; }
.blog-page .blog-sub { margin: 0 0 44px; }
.subpage-footer { margin-top: 30px; }
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom-links a { font-family: var(--font-mono); font-size: 12px; color: #9aa0a8; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--lime-green); }

/* Reduced motion — tone down incidental motion, but keep signature brand loops */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero-sun-rays { animation: sunSpin 22s linear infinite !important; }
  .footer-marquee-track { animation: marquee 26s linear infinite !important; }
}

/* ============================================================
   Article pages (/blog/*.html)
   ============================================================ */
.article-page { padding: 110px 0 80px; }

/* Language tab switcher */
.lang-tabs {
  display: flex; gap: 0; margin: 0 0 48px;
  border: 2px solid var(--line); border-radius: 10px; overflow: hidden;
  max-width: 260px;
}
.lang-tab {
  flex: 1; padding: 10px 18px; font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  background: transparent; border: none; color: var(--text-muted);
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.lang-tab.active { background: var(--primary-blue); color: #fff; }
.lang-content { display: none; }
.lang-content.active { display: block; }

/* Article header */
.article-header { margin-bottom: 44px; }
.article-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  font-weight: 700; letter-spacing: 0.1em; padding: 5px 14px;
  border: 2px solid var(--primary-blue); color: var(--primary-blue);
  border-radius: 20px; margin-bottom: 18px; text-transform: uppercase;
}
.article-h1 {
  font-family: var(--font-sans); font-size: clamp(28px, 4.5vw, 54px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 20px; color: var(--text-dark); max-width: 820px;
}
.article-meta {
  font-family: var(--font-mono); font-size: 13px; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 10px;
}
.article-meta span::before { content: "· "; }
.article-meta span:first-child::before { content: ""; }

/* Article body */
.article-body {
  max-width: 740px;
  font-family: var(--font-sans); font-size: 17px; line-height: 1.75;
  color: var(--text-dark);
}
.article-body h2 {
  font-size: clamp(20px, 2.5vw, 28px); font-weight: 800;
  letter-spacing: -0.02em; margin: 48px 0 16px; color: var(--text-dark);
}
.article-body h3 {
  font-size: 19px; font-weight: 700; margin: 32px 0 12px; color: var(--text-dark);
}
.article-body p { margin: 0 0 22px; }
.article-body ul, .article-body ol {
  margin: 0 0 22px; padding-left: 24px;
}
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--primary-blue); text-decoration: underline; }
.article-body strong { font-weight: 700; }

/* Pull quote */
.article-pullquote {
  border-left: 4px solid var(--primary-blue);
  margin: 36px 0; padding: 20px 28px;
  background: color-mix(in srgb, var(--primary-blue) 6%, transparent);
  border-radius: 0 10px 10px 0;
  font-size: 20px; font-weight: 700; line-height: 1.4;
  color: var(--primary-blue);
}

/* CTA box inside article */
.article-cta-box {
  margin: 44px 0; padding: 32px 36px;
  border: 2px solid var(--text-dark); border-radius: 14px;
  background: var(--bg-white);
  box-shadow: var(--shadow-hard);
}
.article-cta-box h3 { margin: 0 0 10px; font-size: 20px; font-weight: 800; }
.article-cta-box p { margin: 0 0 18px; color: var(--text-muted); font-size: 15px; }
.article-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-blue); color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: 0.04em;
  padding: 12px 24px; border-radius: 30px;
  border: 2px solid var(--primary-blue);
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.article-cta-btn:hover { transform: translateY(-2px); background: #003cff; }

/* Related articles */
.related-section { margin-top: 72px; padding-top: 48px; border-top: 2px solid var(--line); }
.related-section h2 { font-size: 22px; font-weight: 800; margin: 0 0 28px; }

/* Breadcrumb */
.article-breadcrumb {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px; margin-bottom: 32px;
  flex-wrap: wrap;
}
.article-breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.article-breadcrumb a:hover { color: var(--primary-blue); }
.article-breadcrumb span { opacity: 0.5; }

@media (max-width: 768px) {
  .article-body { font-size: 16px; }
  .article-cta-box { padding: 24px 20px; }
  .article-pullquote { padding: 16px 20px; font-size: 17px; }
}
