/*
Theme Name: LAN Systems Redesign
Theme URI: https://lansystemsinc.com
Author: LAN Systems Inc.
Description: Modern corporate redesign for LAN Systems Inc. — IT consulting firm, Washington DC Metro.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: lansystems-redesign
*/
/* base.css — reset & foundations */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body, sans-serif);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

::selection {
  background: oklch(from var(--color-primary) l c h / 0.25);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }

a, button, [role='button'], [role='link'], input, textarea, select {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

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

/* ===== DESIGN TOKENS ===== */
:root, [data-theme='light'] {
  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing — 4px base */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Fonts */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  /* Corporate Navy Palette — Modern & Authoritative */
  --color-bg: #f8f9fb;
  --color-surface: #ffffff;
  --color-surface-2: #f1f3f7;
  --color-surface-offset: #ebeef3;
  --color-divider: #d5dae2;
  --color-border: #c5cbd6;

  --color-text: #0f1729;
  --color-text-muted: #5a6578;
  --color-text-faint: #9aa3b4;
  --color-text-inverse: #f8f9fb;

  --color-primary: #1a3a5c;
  --color-primary-hover: #142e4a;
  --color-primary-active: #0e2138;
  --color-primary-highlight: #d0dcea;

  --color-accent: #2d8a9e;
  --color-accent-hover: #237080;
  --color-accent-active: #1a5660;

  --color-error: #a12c44;
  --color-success: #2a7a3c;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 250 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 250 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 250 / 0.12);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* DARK MODE */
[data-theme='dark'] {
  --color-bg: #0c1220;
  --color-surface: #131b2e;
  --color-surface-2: #1a2440;
  --color-surface-offset: #162036;
  --color-divider: #243050;
  --color-border: #2e3b58;

  --color-text: #d4dae6;
  --color-text-muted: #8892a6;
  --color-text-faint: #5a6578;
  --color-text-inverse: #0f1729;

  --color-primary: #5a9cc6;
  --color-primary-hover: #4a88b0;
  --color-primary-active: #3a749a;
  --color-primary-highlight: #1e3050;

  --color-accent: #4ab8cc;
  --color-accent-hover: #38a0b3;
  --color-accent-active: #2a889a;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0c1220;
    --color-surface: #131b2e;
    --color-surface-2: #1a2440;
    --color-surface-offset: #162036;
    --color-divider: #243050;
    --color-border: #2e3b58;
    --color-text: #d4dae6;
    --color-text-muted: #8892a6;
    --color-text-faint: #5a6578;
    --color-text-inverse: #0f1729;
    --color-primary: #5a9cc6;
    --color-primary-hover: #4a88b0;
    --color-primary-active: #3a749a;
    --color-primary-highlight: #1e3050;
    --color-accent: #4ab8cc;
    --color-accent-hover: #38a0b3;
    --color-accent-active: #2a889a;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

.section {
  padding-block: clamp(var(--space-10), 6vw, var(--space-24));
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute; top: -100%; left: var(--space-4);
  background: var(--color-primary); color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-md);
  font-size: var(--text-sm); z-index: 100; text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: box-shadow 0.3s var(--ease-out);
}
.header--scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--content-wide); margin-inline: auto;
  padding: var(--space-3) var(--space-4);
}
@media (min-width: 768px) {
  .header__inner { padding: var(--space-3) var(--space-8); }
}
.header__logo {
  display: flex; align-items: center; gap: var(--space-2);
  text-decoration: none; color: var(--color-text);
}
.header__logo-text {
  font-family: var(--font-display); font-size: var(--text-lg);
  letter-spacing: -0.02em;
}
.header__logo-sub {
  font-family: var(--font-body); font-size: var(--text-xs);
  color: var(--color-text-muted); letter-spacing: 0.08em;
  text-transform: uppercase; margin-top: -2px;
}

/* Nav */
.nav { display: none; }
@media (min-width: 768px) {
  .nav {
    display: flex; align-items: center; gap: var(--space-6);
  }
}
.nav__link {
  font-size: var(--text-sm); color: var(--color-text-muted);
  text-decoration: none; font-weight: 500;
  position: relative; padding-block: var(--space-1);
}
.nav__link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--color-accent);
  transition: width 0.3s var(--ease-out);
}
.nav__link:hover { color: var(--color-text); }
.nav__link:hover::after, .nav__link--active::after { width: 100%; }
.nav__link--active { color: var(--color-text); }

/* Theme toggle */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.theme-toggle:hover { background: var(--color-surface-2); color: var(--color-text); }

/* Mobile menu toggle */
.menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; color: var(--color-text); border-radius: var(--radius-md);
}
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle:hover { background: var(--color-surface-2); }

/* Mobile nav overlay */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--color-bg);
  flex-direction: column; padding: var(--space-20) var(--space-6) var(--space-6);
}
.mobile-nav--open { display: flex; }
.mobile-nav__link {
  font-size: var(--text-lg); color: var(--color-text);
  text-decoration: none; padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  font-weight: 500;
}
.mobile-nav__link:hover { color: var(--color-accent); }
.mobile-nav__close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 40px; height: 40px; display: flex; align-items: center;
  justify-content: center; color: var(--color-text); border-radius: var(--radius-md);
}

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: 80vh; display: flex; align-items: center;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    135deg,
    oklch(from var(--color-primary) l c h / 0.88) 0%,
    oklch(from var(--color-primary) l c h / 0.65) 50%,
    oklch(from var(--color-primary) l c h / 0.45) 100%
  );
}
.hero__content {
  position: relative; z-index: 2;
  max-width: var(--content-wide); margin-inline: auto;
  padding: var(--space-16) var(--space-4);
  color: #e8ecf2;
}
@media (min-width: 768px) {
  .hero__content { padding: var(--space-20) var(--space-8); max-width: 680px; margin-inline: unset; margin-left: max(var(--space-8), calc((100vw - var(--content-wide)) / 2 + var(--space-8))); }
}
.hero__eyebrow {
  font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: 0.15em; font-weight: 600;
  color: var(--color-accent); margin-bottom: var(--space-4);
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.hero__eyebrow::before {
  content: ''; width: 24px; height: 2px; background: var(--color-accent);
}
.hero__title {
  font-family: var(--font-display); font-size: var(--text-2xl);
  line-height: 1.1; margin-bottom: var(--space-5);
  color: #ffffff;
}
.hero__desc {
  font-size: var(--text-base); line-height: 1.7;
  max-width: 520px; margin-bottom: var(--space-8);
  color: oklch(0.85 0.01 250);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md); text-decoration: none;
  transition: background var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn--primary {
  background: var(--color-accent); color: #ffffff;
}
.btn--primary:hover { background: var(--color-accent-hover); }

.btn--outline {
  background: transparent; color: #ffffff;
  border: 1px solid oklch(1 0 0 / 0.3);
}
.btn--outline:hover { background: oklch(1 0 0 / 0.1); border-color: oklch(1 0 0 / 0.5); }

.btn--dark {
  background: var(--color-primary); color: var(--color-text-inverse);
}
.btn--dark:hover { background: var(--color-primary-hover); }

.btn--ghost {
  background: transparent; color: var(--color-accent);
  padding: var(--space-2) 0;
}
.btn--ghost:hover { color: var(--color-accent-hover); transform: none; box-shadow: none; }
.btn--ghost svg { transition: transform var(--transition-interactive); }
.btn--ghost:hover svg { transform: translateX(4px); }

/* ===== STAT STRIP ===== */
.stat-strip {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4); padding-block: var(--space-10);
}
@media (min-width: 768px) {
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
}
.stat { text-align: center; }
.stat__number {
  font-family: var(--font-display); font-size: var(--text-xl);
  color: var(--color-primary); margin-bottom: var(--space-1);
}
[data-theme='dark'] .stat__number { color: var(--color-accent); }
.stat__label {
  font-size: var(--text-xs); color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.07);
  border-radius: var(--radius-lg); padding: var(--space-8);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card__icon {
  width: 44px; height: 44px; margin-bottom: var(--space-5);
  color: var(--color-accent);
}
.service-card__title {
  font-family: var(--font-display); font-size: var(--text-lg);
  margin-bottom: var(--space-3); color: var(--color-text);
}
.service-card__desc {
  font-size: var(--text-base); color: var(--color-text-muted);
  line-height: 1.7; margin-bottom: var(--space-5);
}

/* ===== ABOUT SECTION (home) ===== */
.about-split {
  display: grid; gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .about-split { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}
.about-split__img {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3;
}
.about-split__img img { width: 100%; height: 100%; object-fit: cover; }
.about-split__eyebrow {
  font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 600;
  color: var(--color-accent); margin-bottom: var(--space-3);
}
.about-split__title {
  font-family: var(--font-display); font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.about-split__text {
  font-size: var(--text-base); color: var(--color-text-muted);
  line-height: 1.7; margin-bottom: var(--space-6);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  position: relative; overflow: hidden;
  background: var(--color-primary); color: var(--color-text-inverse);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  text-align: center;
}
.cta-banner__title {
  font-family: var(--font-display); font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.cta-banner__desc {
  font-size: var(--text-base); max-width: 540px;
  margin-inline: auto; margin-bottom: var(--space-8);
  color: oklch(0.85 0.01 250);
}

/* ===== SECTION HEADERS ===== */
.section-header { margin-bottom: var(--space-10); }
.section-header--center { text-align: center; }
.section-header--center .section-header__desc { margin-inline: auto; }
.section-header__eyebrow {
  font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 600;
  color: var(--color-accent); margin-bottom: var(--space-3);
}
.section-header__title {
  font-family: var(--font-display); font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.section-header__desc {
  font-size: var(--text-base); color: var(--color-text-muted);
  line-height: 1.7; max-width: 600px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-primary); color: oklch(0.82 0.01 250);
  padding-block: var(--space-12) var(--space-6);
}
.footer a { color: oklch(0.82 0.01 250); text-decoration: none; }
.footer a:hover { color: #ffffff; }
.footer__grid {
  display: grid; gap: var(--space-8);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-10);
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer__brand-desc {
  font-size: var(--text-sm); line-height: 1.7;
  max-width: 300px; margin-top: var(--space-4);
}
.footer__heading {
  font-family: var(--font-display); font-size: var(--text-sm);
  color: #ffffff; margin-bottom: var(--space-4);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.footer__list { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer__list a { font-size: var(--text-sm); }
.footer__bottom {
  border-top: 1px solid oklch(1 0 0 / 0.12);
  padding-top: var(--space-6); display: flex;
  flex-direction: column; gap: var(--space-3);
  align-items: center; text-align: center;
}
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer__copy { font-size: var(--text-xs); }
.footer__social { display: flex; gap: var(--space-4); }
.footer__social a {
  width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; border-radius: var(--radius-full);
  border: 1px solid oklch(1 0 0 / 0.15);
  transition: background var(--transition-interactive), border-color var(--transition-interactive);
}
.footer__social a:hover { background: oklch(1 0 0 / 0.1); border-color: oklch(1 0 0 / 0.3); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--color-primary); color: var(--color-text-inverse);
  padding: var(--space-20) var(--space-4) var(--space-12);
  text-align: center;
}
@media (min-width: 768px) { .page-hero { padding: var(--space-24) var(--space-8) var(--space-16); } }
.page-hero__title {
  font-family: var(--font-display); font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}
.page-hero__desc {
  font-size: var(--text-base); max-width: 560px;
  margin-inline: auto; color: oklch(0.82 0.01 250);
}

/* ===== SERVICES PAGE ===== */
.service-detail {
  display: grid; gap: var(--space-8); align-items: start;
  padding-block: var(--space-10);
  border-bottom: 1px solid var(--color-divider);
}
@media (min-width: 768px) {
  .service-detail { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
  .service-detail:nth-child(even) .service-detail__content { order: -1; }
}
.service-detail__content {}
.service-detail__number {
  font-family: var(--font-display); font-size: var(--text-3xl);
  color: var(--color-surface-offset); line-height: 1;
  margin-bottom: var(--space-2);
}
[data-theme='dark'] .service-detail__number { color: var(--color-surface-2); }
.service-detail__title {
  font-family: var(--font-display); font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.service-detail__desc {
  font-size: var(--text-base); color: var(--color-text-muted);
  line-height: 1.7; margin-bottom: var(--space-5);
}
.service-detail__list {
  list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2);
}
.service-detail__list li {
  font-size: var(--text-sm); background: var(--color-surface-2);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.service-detail__img {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; background: var(--color-surface-2);
}
.service-detail__img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}
.value-card {
  background: var(--color-surface); padding: var(--space-6);
  border: 1px solid oklch(from var(--color-text) l c h / 0.07);
  border-radius: var(--radius-lg);
}
.value-card__icon {
  width: 40px; height: 40px; color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.value-card__title {
  font-family: var(--font-display); font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.value-card__desc {
  font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.7;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid; gap: var(--space-8);
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: var(--space-12); }
}
.contact-info__item {
  display: flex; gap: var(--space-4); align-items: flex-start;
  margin-bottom: var(--space-6);
}
.contact-info__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  color: var(--color-accent);
}
.contact-info__label {
  font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}
.contact-info__value {
  font-size: var(--text-base); color: var(--color-text);
}
.contact-info__value a { color: var(--color-accent); text-decoration: none; }
.contact-info__value a:hover { text-decoration: underline; }

/* Form */
.form { display: flex; flex-direction: column; gap: var(--space-5); }
.form__group { display: flex; flex-direction: column; gap: var(--space-1); }
.form__label {
  font-size: var(--text-sm); font-weight: 500; color: var(--color-text);
}
.form__input, .form__textarea {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md); font-size: var(--text-base);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.form__input:focus, .form__textarea:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px oklch(from var(--color-accent) l c h / 0.15);
}
.form__textarea { resize: vertical; min-height: 140px; }
.form__row {
  display: grid; gap: var(--space-5);
}
@media (min-width: 480px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}
@keyframes reveal-fade { to { opacity: 1; } }

/* ===== FULL BLEED IMAGE ===== */
.full-bleed-img {
  width: 100%; aspect-ratio: 21/9; overflow: hidden;
}
.full-bleed-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== UTILITY ===== */
.text-accent { color: var(--color-accent); }

/* ===== LOGO SWITCHER ===== */
.logo-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-full);
  padding: 3px;
  margin-left: var(--space-3);
}

.logo-switcher__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  text-transform: uppercase;
  padding: 0 6px 0 4px;
  user-select: none;
}

.logo-switcher__btn {
  all: unset;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: transparent;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  transition: background var(--transition-interactive), color var(--transition-interactive);
  line-height: 1.4;
}

.logo-switcher__btn:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.logo-switcher__btn--active {
  background: var(--color-primary);
  color: #fff !important;
}

/* Hide all non-active logo variants; JS controls display but we set defaults */
.logo-variant[hidden] {
  display: none !important;
}

/* Header logo area — fixed height so switcher doesn't jump layout */
.header__logo-wrap {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo A — Wordmark: give it a defined min-width so swap doesn't shift nav */
.logo-wordmark {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 1px;
}

.logo-wordmark__lan {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.logo-wordmark__systems {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.logo-wordmark__accent {
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  margin-bottom: 3px;
}

[data-theme='dark'] .logo-wordmark__lan { color: #fff; }
[data-theme='dark'] .logo-wordmark__systems { color: var(--color-text-faint); }

/* Logo B & C — icon + text row */
.logo-variant[data-logo-variant="b"],
.logo-variant[data-logo-variant="c"] {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Ensure logo-variant spans participate in header__logo flex flow */
.header__logo .logo-variant {
  /* span is inline by default; make it flex so icon+text align */
}

/* Override: when B or C logos are visible (not hidden), render as flex row */
.logo-variant:not([hidden])[data-logo-variant="b"],
.logo-variant:not([hidden])[data-logo-variant="c"] {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
