/* ============================================
   SITESTORM — style.css
   Color: Dark navy + electric cyan + warm amber
   ============================================ */

/* --- TYPE SCALE --- */
:root {
  --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);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* --- 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: 'Clash Display', 'Arial Black', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* --- RADIUS --- */
  --radius-sm: 0.375rem;
  --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);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  /* --- CONTENT WIDTHS --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ============================================
   DARK MODE (DEFAULT)
   ============================================ */
:root, [data-theme="dark"] {
  --color-bg:             #0B0F1A;
  --color-surface:        #0F1424;
  --color-surface-2:      #141A2E;
  --color-surface-offset: #1A2038;
  --color-surface-dynamic:#222942;
  --color-divider:        #1E2540;
  --color-border:         #2A3352;

  --color-text:           #F0F0F0;
  --color-text-muted:     #8A8FA0;
  --color-text-faint:     #4E5468;
  --color-text-inverse:   #0B0F1A;

  --color-primary:        #00D4FF;
  --color-primary-hover:  #00B8E0;
  --color-primary-active: #0098BA;
  --color-primary-highlight: rgba(0, 212, 255, 0.1);

  --color-accent:         #FFB347;
  --color-accent-hover:   #FFA020;

  --color-error:          #FF4D6A;
  --color-success:        #34D399;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
}

/* ============================================
   LIGHT MODE
   ============================================ */
[data-theme="light"] {
  --color-bg:             #F5F6FA;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F0F1F5;
  --color-surface-offset: #E8E9EE;
  --color-surface-dynamic:#DCDEE5;
  --color-divider:        #D0D2DA;
  --color-border:         #C0C3CE;

  --color-text:           #1A1D2E;
  --color-text-muted:     #5A5E70;
  --color-text-faint:     #9A9DAA;
  --color-text-inverse:   #F5F6FA;

  --color-primary:        #0088AA;
  --color-primary-hover:  #006E8A;
  --color-primary-active: #005770;
  --color-primary-highlight: rgba(0, 136, 170, 0.1);

  --color-accent:         #D98A20;
  --color-accent-hover:   #C07818;

  --color-error:          #D4364E;
  --color-success:        #1FAA70;

  --shadow-sm: 0 1px 2px rgba(26,29,46,0.06);
  --shadow-md: 0 4px 12px rgba(26,29,46,0.08);
  --shadow-lg: 0 12px 32px rgba(26,29,46,0.12);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg:             #F5F6FA;
    --color-surface:        #FFFFFF;
    --color-surface-2:      #F0F1F5;
    --color-surface-offset: #E8E9EE;
    --color-surface-dynamic:#DCDEE5;
    --color-divider:        #D0D2DA;
    --color-border:         #C0C3CE;
    --color-text:           #1A1D2E;
    --color-text-muted:     #5A5E70;
    --color-text-faint:     #9A9DAA;
    --color-text-inverse:   #F5F6FA;
    --color-primary:        #0088AA;
    --color-primary-hover:  #006E8A;
    --color-primary-active: #005770;
    --color-primary-highlight: rgba(0, 136, 170, 0.1);
    --color-accent:         #D98A20;
    --color-accent-hover:   #C07818;
    --color-error:          #D4364E;
    --color-success:        #1FAA70;
    --shadow-sm: 0 1px 2px rgba(26,29,46,0.06);
    --shadow-md: 0 4px 12px rgba(26,29,46,0.08);
    --shadow-lg: 0 12px 32px rgba(26,29,46,0.12);
  }
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
body {
  font-family: var(--font-body);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
}

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-32));
}

.section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ============================================
   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;
  font-family: var(--font-body);
}
.skip-link:focus {
  top: var(--space-2);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: var(--space-4) 0;
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.nav--scrolled {
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}
.nav__logo svg {
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav__links a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.nav__links a:hover {
  color: var(--color-text);
}
.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

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

/* CTA button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-height: 44px;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 20px oklch(from var(--color-primary) l c h / 0.3);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-text-muted);
  background: var(--color-surface);
}
.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
  border-radius: 1px;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: oklch(from var(--color-bg) l c h / 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-top: calc(var(--space-16) + var(--space-8));
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}
.mobile-menu.active {
  display: flex;
}
.mobile-menu a {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu a:hover {
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__right .btn { display: none; }
  .hamburger { display: flex; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--space-20);
  overflow: hidden;
}

/* Electrical pulse BG effect */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__bg::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(from var(--color-primary) l c h / 0.08) 0%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite alternate;
}
.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(from var(--color-accent) l c h / 0.05) 0%, transparent 70%);
  animation: pulse-glow 5s ease-in-out 1s infinite alternate;
}

@keyframes pulse-glow {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.15); }
}

/* Electrical grid lines */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(from var(--color-primary) l c h / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, oklch(from var(--color-primary) l c h / 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero__headline {
  font-size: var(--text-hero);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}
.hero__headline span {
  color: var(--color-primary);
}
.hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 52ch;
  line-height: 1.5;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero__image {
  position: relative;
  z-index: 1;
}
.hero__image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__content { max-width: 100%; }
  .hero__sub { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero__image { order: -1; }
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem {
  background: var(--color-surface);
}
.problem__stats {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
.problem__stat {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
}
.problem__stat:nth-child(2) {
  transform: translateY(calc(var(--space-6) * -1));
}
.problem__stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.problem__stat-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.problem__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 65ch;
}

@media (max-width: 768px) {
  .problem__stats {
    grid-template-columns: 1fr;
  }
  .problem__stat:nth-child(2) {
    transform: none;
  }
}

/* ============================================
   HOW IT WORKS — Vertical Timeline
   ============================================ */
.steps__timeline {
  position: relative;
  max-width: 680px;
  margin-top: var(--space-10);
}
.steps__timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), oklch(from var(--color-primary) l c h / 0.1));
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-10);
  position: relative;
}
.step:last-child {
  padding-bottom: 0;
}
.step__number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  position: relative;
  z-index: 1;
}
.step__content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.step__content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   SERVICES — 2-Column Checklist
   ============================================ */
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-12);
  margin-top: var(--space-10);
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.service-item__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  margin-top: 2px;
}
.service-item h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.service-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   WHO WE HELP — Bento Grid
   ============================================ */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-4);
  margin-top: var(--space-10);
}
.industry-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.industry-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px oklch(from var(--color-primary) l c h / 0.1);
}
.industry-card:first-child {
  grid-column: span 2;
}
.industry-card__icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}
.industry-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
}
.industry-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .industries__grid {
    grid-template-columns: 1fr 1fr;
  }
  .industry-card:first-child {
    grid-column: span 2;
  }
}
@media (max-width: 480px) {
  .industries__grid {
    grid-template-columns: 1fr;
  }
  .industry-card:first-child {
    grid-column: span 1;
  }
}

/* ============================================
   PRICING
   ============================================ */
.pricing__card {
  max-width: 520px;
  margin-top: var(--space-10);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  box-shadow: 0 0 40px oklch(from var(--color-primary) l c h / 0.08);
  position: relative;
  overflow: hidden;
}
.pricing__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.pricing__design {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.pricing__design-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.pricing__design-price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
}
.pricing__monthly {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}
.pricing__monthly-amount {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}
.pricing__monthly-period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.pricing__includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.pricing__includes li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.pricing__includes li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}
.pricing__trust {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  font-style: italic;
}

/* ============================================
   FAQ — Accordion
   ============================================ */
.faq__list {
  max-width: 720px;
  margin-top: var(--space-10);
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item__question {
  width: 100%;
  text-align: left;
  padding: var(--space-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  background: none;
  border: none;
  min-height: 44px;
}
.faq-item__question:hover {
  color: var(--color-primary);
}
.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform 0.3s var(--ease-out);
}
.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
}
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out), padding 0.35s var(--ease-out);
}
.faq-item__answer p {
  padding-bottom: var(--space-5);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.faq-item.active .faq-item__answer {
  max-height: 300px;
}

/* ============================================
   CONTACT / CTA SECTION
   ============================================ */
.contact {
  background: var(--color-surface);
}
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  margin-top: var(--space-10);
  align-items: start;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.form-field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}
.form-field input,
.form-field textarea {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  min-height: 44px;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.contact__info-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  margin-top: 3px;
}
.contact__info-item span {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}
.contact__info-item a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.contact__info-item a:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .contact__layout {
    grid-template-columns: 1fr;
  }
  .contact__form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-10) 0 var(--space-6);
  border-top: 1px solid var(--color-border);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}
.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 32ch;
}
.footer__links {
  display: flex;
  gap: var(--space-8);
}
.footer__links-group h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.footer__links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer__links-group a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer__links-group a:hover {
  color: var(--color-text);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.footer__bottom p,
.footer__bottom a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer__bottom a:hover {
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .footer__top {
    flex-direction: column;
  }
}

/* ============================================
   SCROLL REVEAL (opacity only — no CLS)
   ============================================ */
.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; }
}

/* JS fallback for browsers without scroll-driven animations */
.js-reveal {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.js-reveal.revealed {
  opacity: 1;
}
