/* ============================================
   TSCHMITZ DATA SCIENCE — Styles
   Hero: dark | Rest: light theme
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Dark palette (hero, footer) */
  --brand-black: #05070A;
  --paper-black: #0B0F14;

  /* Light palette (main content) */
  --light-bg: #FFFFFF;
  --light-bg-alt: #F5F7FA;
  --light-text: #0F1419;
  --light-text-muted: #5C6975;
  --light-border: #E2E8F0;
  --light-card: #FFFFFF;
  --light-card-alt: #F5F7FA;

  /* Shared accent */
  --brand-blue: #2563EB;
  --brand-blue-light: #7FB6FF;
  --blue-dark: #1D4ED8;
  --blue-glow: rgba(37, 99, 235, 0.2);
  --blue-tint: rgba(37, 99, 235, 0.06);

  /* Fonts */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --container-max: 1200px;
  --section-pad: 120px;
  --card-radius: 12px;
}

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

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

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.625;
  color: var(--light-text);
  background-color: var(--light-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--blue-dark);
}

ul {
  list-style: none;
}

/* ============================================
   LOCK SCREEN
   ============================================ */


/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--brand-blue);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 4px;
}

.skip-link:focus {
  top: 16px;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--light-text);
}

h1 {
  font-size: 40px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h2 {
  font-size: 28px;
  line-height: 1.286;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

h3 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.333;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: 16px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--brand-blue);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--blue-dark);
  color: #FFFFFF;
  box-shadow: 0 0 24px var(--blue-glow);
}

.btn--secondary {
  background: transparent;
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
}

.btn--secondary:hover {
  background: var(--blue-tint);
  color: var(--brand-blue);
}

.btn--large {
  padding: 20px 48px;
  font-size: 18px;
}

/* --- Badge --- */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--brand-blue);
  color: #FFFFFF;
}

.badge--blue {
  background: var(--brand-blue);
  color: #FFFFFF;
}

/* --- Tag --- */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* --- Section Base --- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section--dark {
  background: var(--light-bg);
}

.section--paper {
  background: var(--light-bg-alt);
}

.section__title {
  margin-bottom: 24px;
}

.section__title--large {
  font-size: 36px;
}

.section__intro {
  color: var(--light-text-muted);
  max-width: 680px;
  margin-bottom: 48px;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-border);
}

/* When header is over the hero (not scrolled), text is light */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav__brand:hover {
  color: var(--brand-blue-light);
}

/* Scrolled: switch to dark text */
.site-header--scrolled .nav__brand {
  color: var(--light-text);
}

.site-header--scrolled .nav__brand:hover {
  color: var(--brand-blue);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: #FFFFFF;
}

.nav__link--active {
  color: var(--brand-blue-light);
}

/* Scrolled nav links: dark text */
.site-header--scrolled .nav__link {
  color: var(--light-text-muted);
}

.site-header--scrolled .nav__link:hover {
  color: var(--light-text);
}

.site-header--scrolled .nav__link--active {
  color: var(--brand-blue);
}

.btn--nav {
  padding: 10px 24px;
  font-size: 13px;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.nav__hamburger,
.nav__hamburger::before,
.nav__hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.site-header--scrolled .nav__hamburger,
.site-header--scrolled .nav__hamburger::before,
.site-header--scrolled .nav__hamburger::after {
  background: var(--light-text);
}

.nav__hamburger {
  position: relative;
}

.nav__hamburger::before,
.nav__hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav__hamburger::before {
  top: -7px;
}

.nav__hamburger::after {
  top: 7px;
}

.nav__toggle[aria-expanded="true"] .nav__hamburger {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============================================
   HERO (stays dark)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--brand-black);
  overflow: hidden;
}

.hero h1,
.hero h2,
.hero h3 {
  color: #E8EDF2;
}

/* Grain: real PNG texture matching the PDF template */
.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("../img/grain.png");
  background-repeat: repeat;
  background-size: 512px 512px;
  pointer-events: none;
  z-index: 1;
}

/* Glow: bivariate Gaussian luminosity, same as PDF template */
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(127, 182, 255, 0.07) 0%,
    rgba(127, 182, 255, 0.03) 30%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 1;
}

.hero__gaussian {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  max-height: 40vh;
  pointer-events: none;
  z-index: 2;
}

.hero__gaussian-stroke {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: gaussianDraw 2.5s ease-in-out 0.5s forwards;
}

@keyframes gaussianDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 800px;
}

.hero .label {
  color: var(--brand-blue-light);
}

.hero__title {
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.667;
  color: #8A9BB0;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero bullets */
.hero__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.hero__bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #C8D6E5;
  letter-spacing: 0.01em;
}

.hero__bullets svg {
  flex-shrink: 0;
}

/* Hero buttons: use light blue variant */
.hero .btn--primary {
  background: var(--brand-blue-light);
  color: var(--brand-black);
}

.hero .btn--primary:hover {
  background: #5A9FFF;
  color: var(--brand-black);
  box-shadow: 0 0 24px rgba(127, 182, 255, 0.25);
}

.hero .btn--secondary {
  border-color: var(--brand-blue-light);
  color: var(--brand-blue-light);
}

.hero .btn--secondary:hover {
  background: rgba(127, 182, 255, 0.1);
  color: var(--brand-blue-light);
}

/* WhatsApp button */
.btn--whatsapp {
  background: #25D366;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn--whatsapp:hover {
  background: #1EBE5A;
  color: #FFFFFF;
  box-shadow: 0 0 24px rgba(37, 211, 102, 0.3);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: center;
}

.about__photo-img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-blue);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.1);
}

.about__content p {
  color: var(--light-text-muted);
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.7;
}

.about__content p:last-of-type {
  margin-bottom: 0;
}

.about__content strong {
  color: var(--light-text);
}

.about__highlights {
  display: flex;
  gap: 40px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--light-border);
}

.about__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about__stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1;
}

.about__stat-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--light-text-muted);
}

/* ============================================
   AUDIENCE (Para Quem)
   ============================================ */
.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.audience-card {
  background: var(--light-card-alt);
  border-radius: var(--card-radius);
  padding: 32px 28px;
  border: 1px solid var(--light-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
}

.audience-card__icon {
  color: var(--brand-blue);
  margin-bottom: 20px;
}

.audience-card__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--light-text);
}

.audience-card__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--light-text-muted);
}

/* ============================================
   SOLUTIONS (main service cards)
   ============================================ */
.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--light-card);
  border-radius: 16px;
  padding: 0 32px 40px;
  border: 1px solid var(--light-border);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.solution-card__accent {
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-light));
  margin: 0 -32px 32px;
  opacity: 0.5;
  transition: opacity 0.35s ease;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
}

.solution-card:hover .solution-card__accent {
  opacity: 1;
}

.solution-card--featured {
  border-color: var(--brand-blue);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.12);
}

.solution-card--featured .solution-card__accent {
  height: 4px;
  opacity: 1;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-light));
}

.solution-card--featured .badge {
  position: absolute;
  top: 16px;
  right: 24px;
}

.solution-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.solution-card__step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-tint);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.04em;
}

.solution-card--featured .solution-card__step {
  background: var(--brand-blue);
  color: #FFFFFF;
}


.solution-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--light-text);
}

.solution-card__duration {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-blue);
  background: var(--blue-tint);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.solution-card__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--light-text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.solution-card__deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--light-border);
}

.solution-card__deliverables li {
  font-size: 14px;
  color: var(--light-text-muted);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.solution-card__deliverables li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ============================================
   PARTNERS
   ============================================ */
.partners__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 56px;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.partner-logo:hover {
  transform: translateY(-4px);
  opacity: 0.8;
}

.partner-logo img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.partner-logo:hover img {
  opacity: 0.85;
}

.partner-logo--tall img {
  max-height: 110px;
}

.partner-logo--wide img {
  max-height: 80px;
  max-width: 500px;
}

/* ============================================
   CASES
   ============================================ */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--light-card);
  border-radius: var(--card-radius);
  padding: 32px 28px;
  border: 1px solid var(--light-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
}

.case-card__sector {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-blue);
  margin-bottom: 12px;
}

.case-card__context {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--light-text);
  margin-bottom: 12px;
}

.case-card__intervention {
  font-size: 14px;
  line-height: 1.7;
  color: var(--light-text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.case-card__result {
  padding-top: 16px;
  border-top: 1px solid var(--light-border);
}

.case-card__metric {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1.2;
  margin-bottom: 4px;
}

.case-card__detail {
  font-size: 13px;
  color: var(--light-text-muted);
  line-height: 1.5;
}

/* ============================================
   ABOUT — location line
   ============================================ */
.about__location {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-blue);
  margin-top: 8px;
  margin-bottom: 0;
}

/* ============================================
   PUBLICATIONS (list style)
   ============================================ */
.publications__list {
  max-width: 800px;
}

.pub-item {
  display: flex;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--light-border);
}

.pub-item:first-child {
  padding-top: 0;
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-item__meta {
  flex-shrink: 0;
  width: 80px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pub-item__date {
  font-size: 13px;
  font-weight: 600;
  color: var(--light-text-muted);
}

.pub-item__venue {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-blue);
}

.pub-item__content {
  flex: 1;
}

.pub-item__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--light-text);
}

.pub-item__title a {
  color: var(--light-text);
  display: inline;
}

.pub-item__title a:hover {
  color: var(--brand-blue);
}

.pub-item__title svg {
  display: inline;
  vertical-align: middle;
  margin-left: 4px;
  color: var(--brand-blue);
}

.pub-item__summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--light-text-muted);
}

/* Toggle publications button */
.btn--toggle-pubs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  background: transparent;
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--toggle-pubs:hover {
  background: var(--blue-tint);
}

.publications__more {
  margin-top: 0;
}

/* ============================================
   CONTACT (light theme with subtle blue tint)
   ============================================ */
.section--contact {
  background: var(--light-bg);
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(ellipse at 50% 60%, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
}

.contact__gaussian {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

.contact__gaussian svg {
  width: 100%;
  height: 120px;
  display: block;
}

.contact__content {
  position: relative;
  z-index: 1;
}

.contact__content .section__intro {
  margin-left: auto;
  margin-right: auto;
}

.contact__ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.contact__details {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--light-text-muted);
}

.contact__item svg {
  flex-shrink: 0;
  color: var(--brand-blue);
}

.contact__item a {
  color: var(--brand-blue);
}

.contact__item a:hover {
  color: var(--blue-dark);
}

/* ============================================
   FOOTER (dark)
   ============================================ */
.footer {
  background: var(--brand-black);
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

/* Footer grain: same real PNG texture */
.footer__grain {
  position: absolute;
  inset: 0;
  background-image: url("../img/grain.png");
  background-repeat: repeat;
  background-size: 512px 512px;
  opacity: 0.5;
  pointer-events: none;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.footer__brand {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E8EDF2;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer__nav a {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8A9BB0;
  transition: color 0.3s ease;
}

.footer__nav a:hover {
  color: #E8EDF2;
}

.footer__company {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 12px;
  color: #8A9BB0;
}

.footer__social {
  color: #8A9BB0;
  transition: color 0.3s ease;
}

.footer__social:hover {
  color: var(--brand-blue-light);
}

.footer__copy {
  font-size: 13px;
  color: #8A9BB0;
}

/* ============================================
   ANIMATIONS / SCROLL REVEAL
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 4px;
}

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

  html {
    scroll-behavior: auto;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }

  .hero__gaussian-stroke {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

/* ============================================
   RESPONSIVE — Tablet (768-1023px)
   ============================================ */
@media (max-width: 1023px) {
  :root {
    --section-pad: 80px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .section__title--large {
    font-size: 28px;
  }

  .hero__content {
    padding-top: 100px;
  }

  .about__grid {
    grid-template-columns: 200px 1fr;
    gap: 32px;
  }

  .about {
    grid-template-columns: 180px 1fr;
    gap: 40px;
  }

  .about__photo-img {
    width: 180px;
    height: 180px;
  }

  .audience__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners__grid {
    gap: 32px 40px;
  }

  .partner-logo img {
    max-height: 60px;
  }

  .partner-logo--wide img {
    max-height: 52px;
    max-width: 320px;
  }

  .pub-item__meta {
    width: 70px;
  }
}

/* ============================================
   RESPONSIVE — Mobile (< 768px)
   ============================================ */
@media (max-width: 767px) {
  :root {
    --section-pad: 60px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .section__title--large {
    font-size: 24px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .btn--large {
    padding: 16px 32px;
    font-size: 16px;
  }

  /* Mobile Nav */
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--light-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 96px 32px 32px;
    gap: 24px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--light-border);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  }

  .nav__menu--open {
    right: 0;
  }

  /* Mobile menu always uses dark text */
  .nav__menu .nav__link {
    font-size: 16px;
    color: var(--light-text-muted);
  }

  .nav__menu .nav__link:hover {
    color: var(--light-text);
  }

  .nav__menu .nav__link--active {
    color: var(--brand-blue);
  }

  .btn--nav {
    margin-top: 16px;
    width: 100%;
    text-align: center;
  }

  /* Mobile overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-overlay--visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* About */
  .about {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    justify-items: center;
  }

  .about__photo-img {
    width: 180px;
    height: 180px;
  }

  .about__content {
    text-align: left;
  }

  .about__highlights {
    justify-content: center;
    gap: 32px;
  }

  /* Audience */
  .audience__grid {
    grid-template-columns: 1fr;
  }

  /* Solutions */
  .solutions__grid {
    grid-template-columns: 1fr;
  }

  /* Cases */
  .cases__grid {
    grid-template-columns: 1fr;
  }

  /* Contact CTAs */
  .contact__ctas {
    flex-direction: column;
    align-items: center;
  }

  .contact__ctas .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Publications */
  .pub-item {
    flex-direction: column;
    gap: 8px;
  }

  .pub-item__meta {
    width: auto;
    flex-direction: row;
    gap: 12px;
  }

  /* Partners */
  .partners__grid {
    gap: 24px;
  }

  .partner-logo img {
    max-height: 52px;
  }

  .partner-logo--wide img {
    max-height: 44px;
    max-width: 260px;
  }

  /* Contact */
  .contact__details {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  /* Footer */
  .footer__nav {
    gap: 16px;
  }

  .footer__nav a {
    font-size: 12px;
  }

  .footer__company {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  /* Hero CTAs */
  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn {
    width: 100%;
  }
}
