/* =====================================================================
   base.css — KL /home canonical layout + components.
   Uses tokens defined in theme-*.css. No hardcoded colors or fonts here.
   ===================================================================== */

/* ----------  TOKEN DEFAULTS  (overridden by .theme-* on body)  ---------- */
:root {
  /* palette */
  --bg-1: #ffffff;
  --bg-2: #f8fafc;
  --bg-3: #f1f5f9;
  --bg-dark: #0f172a;
  --text-1: #1e293b;
  --text-2: #475569;
  --text-3: #94a3b8;
  --line: #e2e8f0;
  --accent: #226DB4;
  --accent-d: #1a5a96;
  --accent-l: #e8f1fa;
  --invert-bg: #1e293b;
  --invert-text: #f8fafc;
  --invert-text-2: rgba(248,250,252,0.7);
  --surface-card: #ffffff;

  /* section backgrounds — themes flip these to make hero/cta dark or light */
  --hero-bg: var(--bg-1);
  --hero-text: var(--text-1);
  --hero-sub-text: var(--text-2);
  --hero-visual-bg: var(--bg-3);
  --hero-meta-text: var(--text-3);
  --stats-bg: var(--bg-2);
  --services-bg: var(--bg-1);
  --trust-bg: var(--bg-1);
  --industries-bg: var(--bg-1);
  --cases-bg: var(--bg-2);
  --why-bg: var(--bg-1);
  --cta-bg: var(--invert-bg);
  --cta-text: var(--invert-text);
  --cta-sub-text: var(--invert-text-2);
  --footer-bg: var(--bg-dark);
  --footer-text: rgba(255,255,255,0.65);

  /* type */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --display-weight: 700;
  --body-weight: 400;
  --display-tracking: -0.025em;
  --em-style: italic;
  --em-weight: inherit;
  --em-color: var(--accent);

  /* surface */
  --radius-card: 12px;
  --radius-button: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-card-hover: 0 12px 32px rgba(0,0,0,0.08);
  --border-width: 1px;
  --card-border: var(--line);

  /* rhythm */
  --container-max: 1320px;
  --container-pad: 40px;
  --section-pad-y: 52px;
  --hero-pad-y: 60px;
  --gap-grid: 28px;
  --gap-grid-tight: 22px;

  /* decorative */
  --eyebrow-tracking: 0.08em;
  --eyebrow-case: uppercase;
  --eyebrow-weight: 600;
  --eyebrow-color: var(--accent);
  --eyebrow-line-color: var(--accent);
  --hero-h-size: clamp(34px, 4.6vw + 16px, 68px);   /* fluid: phone to desktop, no breakpoint jump */
  --hero-h-line: 1.05;
  --section-h-size: clamp(27px, 3.1vw + 12px, 48px);
  --section-h-line: 1.1;
  --section-h-weight: var(--display-weight);
  --grid-overlay: transparent;
}

/* ----------  RESET / BASE  ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--bg-1);
  color: var(--text-1);
  font-family: var(--font-body);
  font-weight: var(--body-weight);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
/* <picture> is a transparent wrapper around its <img> (used for AVIF/WebP
   sources); display:contents keeps it out of the box tree so the inner <img>
   lays out exactly as a direct child of the photo container would. */
picture { display: contents; }
a { color: inherit; }
em {
  font-style: var(--em-style);
  color: var(--em-color);
  font-weight: var(--em-weight);
}

/* ----------  CONTAINER  ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  position: relative;
}

/* ----------  TYPOGRAPHY HELPERS  ---------- */
.eyebrow,
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--eyebrow-weight);
  letter-spacing: var(--eyebrow-tracking);
  text-transform: var(--eyebrow-case);
  color: var(--eyebrow-color);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.section-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--eyebrow-line-color);
  display: inline-block;
}
.dot { opacity: 0.5; }

/* ----------  BUTTONS  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius-button);
  transition: all 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-1);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn-secondary {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn.inv { color: var(--invert-text); border-color: rgba(255,255,255,0.3); }
.btn.inv:hover { border-color: var(--invert-text); color: var(--invert-text); }

/* ----------  PARTNER BADGE (Zoho Authorized · Since 2019)  ----------
   The badge image is brand-locked (Zoho-owned) and shown unaltered as a rounded
   chip sitting on a theme-colored card; the "Since 2019" detail is text on that
   same card. Card background + text colors are set per theme. */
.partner-badge {
  display: inline-flex; align-items: center;
  gap: 16px;
  border-radius: 10px;
  padding: 6px 14px 6px 8px;   /* chip frame around the badge (-30% from prior) */
}
.partner-badge-img {
  height: 40px; width: auto;
  display: block;
  /* badge corners are alpha-clipped in the PNG itself; no CSS border-radius needed */
}
.partner-since {
  display: inline-flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  font-family: var(--font-mono);
  line-height: 1;
}
.partner-since-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.20em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.partner-since-year {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: 0.02em;
}
.footer-badge { margin-top: 18px; }

/* ====================  TOPBAR  ==================== */
.topbar {
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 10;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  /* longhand top/bottom only — DO NOT use the `padding: 18px 0` shorthand
     here: the element also carries `.container`, whose `padding: 0 var(--container-pad)`
     would be reset by the shorthand and the wordmark/hamburger end up flush
     against the viewport edge on mobile. */
  padding-top: 18px;
  padding-bottom: 18px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--text-1);
  text-decoration: none;
}
.navlinks {
  display: flex; gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.navlinks a {
  color: var(--text-2); text-decoration: none;
  transition: color 0.15s;
}
.navlinks a:hover { color: var(--accent); }
.navlinks a.active { color: var(--accent); font-weight: 600; }
.partner-mark {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

/* ====================  HERO  ==================== */
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: var(--hero-pad-y) 0 calc(var(--hero-pad-y) * 0.7);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: start;
  position: relative; z-index: 2;
}
.hero-text .eyebrow { color: var(--eyebrow-color); }
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--hero-h-size);
  line-height: var(--hero-h-line);
  letter-spacing: var(--display-tracking);
  font-weight: var(--display-weight);
  color: var(--hero-text);
  margin-bottom: 26px;
}
.hero .lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--hero-sub-text);
  max-width: 580px;
  margin-bottom: 38px;
  font-weight: var(--body-weight);
}
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 5/4;
  background: var(--hero-visual-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  /* extend slightly past the container's right edge for a dramatic editorial-spread feel */
  margin-right: calc((100vw - var(--container-max)) / -2 - var(--container-pad));
  border-right: none;
}
.hero-visual.with-photo  img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-visual-inner {
  position: relative; z-index: 2;
  padding: 12px 18px;
  background: rgba(255,255,255,0.85);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.hero-meta {
  position: relative; z-index: 2;
  margin-top: calc(var(--hero-pad-y) * 0.4);
}
.hero-meta-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px;
  color: var(--hero-meta-text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-meta-inner .scroll { color: var(--eyebrow-color); }

/* ====================  STATS  ==================== */
.stats {
  background: var(--stats-bg);
  padding: calc(var(--section-pad-y) * 0.65) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
}
.stat { text-align: left; }
.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: var(--display-weight);
  line-height: 1.1;
  letter-spacing: var(--display-tracking);
  color: var(--text-1);
  margin-bottom: 8px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

/* ====================  SECTION HEADS  ==================== */
.section-head {
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head.wide {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: end;
  max-width: 100%;
  margin-bottom: 64px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--section-h-size);
  line-height: var(--section-h-line);
  letter-spacing: var(--display-tracking);
  font-weight: var(--section-h-weight);
  color: var(--text-1);
  margin-bottom: 16px;
}
.section-head .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 560px;
}

/* ====================  SERVICES  ==================== */
.services {
  background: var(--services-bg);
  padding: var(--section-pad-y) 0;
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
}
.service {
  background: var(--surface-card);
  border: var(--border-width) solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 32px 30px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
  position: relative;
}
.service:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent);
}
/* Feature service tiles are differentiated by full-tile treatment in each theme
   (theme-lobby.css = dark-ink fill; theme-corporate.css = Zoho-blue fill).
   No top stripe — themes handle differentiation. */
.service.feature { /* themed below */ }
.service-icon {
  width: 48px; height: 48px;
  background: var(--accent-l);
  border-radius: var(--radius-button);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--accent);
}
.service-icon svg { width: 24px; height: 24px; stroke: currentColor; }
.service h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: var(--display-weight);
  color: var(--text-1);
  margin-bottom: 10px;
}
.service p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

/* ====================  TRUST / LOGOS  ==================== */
.trust {
  background: var(--trust-bg);
  padding: calc(var(--section-pad-y) * 0.7) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-cap {
  text-align: center;
  font-size: 12px;
  letter-spacing: var(--eyebrow-tracking);
  text-transform: var(--eyebrow-case);
  color: var(--eyebrow-color);
  font-weight: var(--eyebrow-weight);
  margin-bottom: 36px;
}
.logo-strip {
  position: relative;
  overflow: hidden;
  /* soft edge fades so logos appear/disappear gracefully */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.logo-marquee {
  display: flex;
  width: max-content;
  animation: marquee 90s linear infinite;
}
.logo-track {
  display: flex;
  gap: 20px;
  padding-right: 20px;
  flex-shrink: 0;
  align-items: center;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
/* Each slot is a link to the client's site, styled as a chip. Neutral (white)
   chip by default; .is-dark = charcoal chip for white/light logos. Same in both
   themes. Logos capped at a modest height so small sources stay crisp. */
.logo-slot {
  flex: 0 0 200px;
  height: 78px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-button);
  display: flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.logo-slot:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  border-color: #cbd5e1;
}
.logo-slot.is-dark { background: #23272f; border-color: rgba(244,241,236,0.14); }
.logo-slot.is-dark:hover { border-color: rgba(244,241,236,0.32); }
.logo-slot img {
  max-height: 38px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
/* logos that read small at the default cap — let them fill more of the chip */
.logo-slot.is-lg { padding: 8px 16px; }
.logo-slot.is-lg img { max-height: 54px; }

/* ====================  INDUSTRIES (doorstep cards)  ==================== */
.industries {
  background: var(--industries-bg);
  padding: var(--section-pad-y) 0;
}
.industries-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);  /* 2 live verticals (Construction temporarily hidden); restore to repeat(3,1fr) when re-added */
  gap: var(--gap-grid);
}
.ind-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: var(--border-width) solid var(--card-border);
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}
.ind-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.ind-image {
  aspect-ratio: 4/3;
  background:
    linear-gradient(160deg, var(--bg-dark) 0%, var(--invert-bg) 100%);
  position: relative;
  overflow: hidden;
}
.ind-image::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.ind-image.two { background: linear-gradient(160deg, #2c303a 0%, #1a1e26 100%); }
.ind-image.three { background: linear-gradient(160deg, var(--accent-l) 0%, var(--accent) 100%); }
/* .with-photo — real image fills the card; ::before grid hides; ::after gradient over for text contrast */
.ind-image.with-photo { background: #000; }
.ind-image.with-photo  img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  z-index: 0;
}
.ind-image.with-photo::before { display: none; }
.ind-image.with-photo::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.45) 0%,
      rgba(0,0,0,0.05) 28%,
      rgba(0,0,0,0.05) 60%,
      rgba(0,0,0,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.ind-image.with-photo .ind-status,
.ind-image.with-photo .ind-num,
.ind-image.with-photo .ind-arrow { z-index: 2; }
.ind-status {
  position: absolute; top: 18px; left: 18px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--invert-text);
  padding: 5px 10px;
  border: 1px solid var(--invert-text);
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-button);
}
.ind-status.q4 { border-color: var(--text-1); color: var(--text-1); background: rgba(255,255,255,0.5); }
.ind-num {
  position: absolute; bottom: 18px; left: 18px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--invert-text); opacity: 0.85;
}
.ind-card.q4 .ind-num { color: var(--text-1); opacity: 0.7; }
.ind-arrow {
  position: absolute; bottom: 16px; right: 18px;
  font-size: 22px; color: var(--invert-text);
}
.ind-body {
  padding: 26px 28px 28px;
}
.ind-body h3 {
  font-family: var(--font-display);
  font-size: 24px; line-height: 1.15;
  letter-spacing: var(--display-tracking);
  font-weight: var(--display-weight);
  color: var(--text-1);
  margin-bottom: 10px;
}
.ind-body p {
  font-size: 14px; line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 16px;
}
.ind-cta {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.ind-cta::after { content: ' →'; }
.ind-card.q4 .ind-cta { color: var(--text-3); }

/* ====================  CASE STUDIES  ==================== */
.cases {
  background: var(--cases-bg);
  padding: var(--section-pad-y) 0;
}
.cases-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-grid);
}
.case-tile {
  display: grid; grid-template-columns: 200px 1fr;
  text-decoration: none; color: inherit;
  background: var(--surface-card);
  border: var(--border-width) solid var(--card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}
.case-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.case-image {
  background:
    linear-gradient(160deg, var(--bg-dark) 0%, var(--invert-bg) 100%);
  position: relative;
  overflow: hidden;
}
.case-image.two { background: linear-gradient(160deg, var(--accent-l) 0%, var(--accent) 100%); }
.case-image.with-photo { background: #000; }
.case-image.with-photo  img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  z-index: 0;
}
.case-image.with-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.05) 28%,
    rgba(0,0,0,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.case-num {
  position: absolute; top: 18px; left: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--invert-text); opacity: 0.95;
  z-index: 2;
}
.case-image.two .case-num { color: var(--invert-text); }
.case-body { padding: 28px 30px; }
.case-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.case-body h3 {
  font-family: var(--font-display);
  font-size: 22px; line-height: 1.2;
  letter-spacing: var(--display-tracking);
  font-weight: var(--display-weight);
  color: var(--text-1);
  margin-bottom: 10px;
}
.case-body p {
  font-size: 14px; line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 14px;
}
.case-cta {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.case-cta::after { content: ' →'; }

/* ====================  WHY US  ==================== */
.why {
  background: var(--why-bg);
  padding: var(--section-pad-y) 0;
  border-top: 1px solid var(--line);
}
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.why-num {
  font-family: var(--font-display);
  font-style: var(--em-style);
  font-size: 32px;
  font-weight: var(--display-weight);
  color: var(--accent);
  margin-bottom: 18px;
  line-height: 1;
}
.why-item h3 {
  font-family: var(--font-display);
  font-size: 24px; line-height: 1.2;
  letter-spacing: var(--display-tracking);
  font-weight: var(--display-weight);
  color: var(--text-1);
  margin-bottom: 12px;
}
.why-item p {
  font-size: 15px; line-height: 1.6;
  color: var(--text-2);
}

/* ====================  CTA BAND  ==================== */
.cta-band {
  background: var(--cta-bg);
  color: var(--cta-text);
  padding: var(--section-pad-y) 0;
  position: relative;
  overflow: hidden;
}
.cta-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative; z-index: 2;
}
.cta-band .section-eyebrow.inv {
  color: var(--accent);
}
.cta-band .section-eyebrow.inv::before {
  background: var(--accent);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: var(--display-tracking);
  font-weight: var(--display-weight);
  color: var(--cta-text);
  margin-bottom: 22px;
}
.cta-band .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--cta-sub-text);
  max-width: 540px;
}
.cta-actions {
  display: flex; flex-direction: column; gap: 14px;
  align-items: flex-start;
}

/* ====================  FOOTER  ==================== */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-wordmark { color: var(--invert-text); font-size: 22px; margin-bottom: 14px; display: inline-block; }
.footer-blurb {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 18px;
  color: var(--footer-text);
}
.footer-partner { color: var(--invert-text-2); }
.footer .footer-grid .footer-col-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 0;
}
.footer .footer-grid a, .footer .footer-grid p {
  font-size: 14px;
  color: var(--footer-text);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  line-height: 1.5;
}
.footer-end {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
}

/* ====================  SITE THEME SWITCHER  ====================
   Floating dark/light toggle. Theme-agnostic: same look across all
   themes so it's clearly meta-UI. */
.theme-switch {
  position: fixed; bottom: 24px; left: 24px;
  z-index: 999;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 999px;
  padding: 3px;
  display: inline-flex; align-items: center; gap: 2px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}
.theme-switch button {
  background: transparent; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  color: #475569;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: all 0.15s;
}
.theme-switch button:hover { background: rgba(0,0,0,0.06); color: #1e293b; }
.theme-switch button.active {
  background: #1e293b;
  color: #ffffff;
}

/* ====================  ACCESSIBILITY  ==================== */
/* Skip-to-content link — visually hidden until focused. */
.skip-link {
  position: absolute; left: 8px; top: -56px;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-button);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; outline: 2px solid #fff; outline-offset: 2px; }

/* Visible keyboard focus everywhere — branded ring (3:1+ on both light & dark surfaces). */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Honor reduced-motion: stop the logo marquee (keep logos reachable) and neutralize motion. */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { animation: none; }
  .logo-strip { overflow-x: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
