/* ============================================================================
   OmniNeuro — style.css
   ----------------------------------------------------------------------------
   Structure:
     1.  Design tokens (CSS custom properties)  -- edit colors/spacing here
     2.  Reset & base elements
     3.  Layout helpers (.container, .section)
     4.  Buttons
     5.  Header & navigation (+ mobile menu)
     6.  Hero
     7.  About
     8.  Technology / feature cards
     9.  Programs
     10. Stats & testimonials
     11. Contact & form
     12. Footer
     13. Scroll-reveal animation
     14. Responsive breakpoints
     15. Reduced-motion / accessibility
   ========================================================================== */


/* ============================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand palette */
  --color-primary: #1E3A8A;        /* deep blue  */
  --color-primary-dark: #162a63;
  --color-cyan: #06B6D4;           /* electric cyan */
  --color-purple: #7C3AED;         /* accent gradient start */
  --color-pink: #EC4899;           /* accent gradient end */

  /* Neutrals */
  --color-navy: #0B1220;
  --color-ink: #111827;            /* body text */
  --color-ink-soft: #4B5563;       /* secondary text */
  --color-line: #E5E7EB;           /* borders / dividers */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F8FC;         /* alternating section background */
  --color-bg-navy: #0B1220;

  /* Signature gradients */
  --grad-accent: linear-gradient(120deg, var(--color-purple), var(--color-pink));
  --grad-brand: linear-gradient(120deg, var(--color-primary), var(--color-cyan));
  --grad-hero: linear-gradient(160deg, #0B1220 0%, #12235c 45%, #1E3A8A 100%);

  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", var(--font-body);

  /* Spacing / sizing */
  --container-max: 1120px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --section-pad-y: 4.5rem;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.10);
  --shadow-md: 0 10px 30px -12px rgba(16, 24, 40, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(16, 24, 40, 0.35);
  --transition: 200ms ease;
}


/* ============================================================================
   2. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Offset anchor jumps so the sticky header doesn't cover section titles */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--color-ink);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 1.1rem + 2.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

p {
  color: var(--color-ink-soft);
}

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

a:hover {
  color: var(--color-cyan);
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Visible focus outline for keyboard users */
:focus-visible {
  outline: 3px solid var(--color-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link — hidden until focused */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}


/* ============================================================================
   3. LAYOUT HELPERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: var(--section-pad-y);
}

/* Alternating section backgrounds for visual rhythm */
.about,
.programs {
  background: var(--color-bg-alt);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.75rem;
}

.section-lead {
  margin-top: 0.85rem;
  font-size: 1.05rem;
}

/* Small uppercase label above headings */
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 0.75rem;
}

/* Gradient text used for emphasis words */
.grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* ============================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background-color var(--transition), color var(--transition);
  will-change: transform;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* Ghost button variant on light backgrounds (e.g. inside forms) */
.contact .btn-ghost {
  border-color: var(--color-line);
  color: var(--color-primary);
  background: #fff;
}


/* ============================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow var(--transition);
}

/* Subtle shadow appears once the page is scrolled (toggled in main.js) */
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--color-ink);
}

.brand-logo {
  width: auto;
  height: 52px;              /* wide horizontal lockup */
  object-fit: contain;
}

/* The logo PNG is transparent. On the light header it sits bare; on the
   dark footer its navy elements would vanish, so back it with a rounded
   white tile there. */
.site-footer .brand-logo {
  height: 46px;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
}

@media (max-width: 600px) {
  .header-inner {
    height: 66px;
  }
  .brand-logo {
    height: 40px;
  }
}

/* --- Mobile hamburger button --- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Animate bars into an "X" when the menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Navigation list --- */
.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.primary-nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-weight: 500;
  font-size: 0.97rem;
}

.primary-nav a:hover {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.primary-nav .nav-cta {
  background: var(--grad-brand);
  color: #fff;
  margin-left: 0.4rem;
}

.primary-nav .nav-cta:hover {
  color: #fff;
  opacity: 0.92;
}

/* On mobile the nav collapses into a dropdown panel */
@media (max-width: 860px) {
  .primary-nav {
    position: absolute;
    top: 100%;             /* sits directly under the header, whatever its height */
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-md);
    /* Collapsed state */
    max-height: 0;
    overflow: hidden;
    transition: max-height 280ms ease;
  }

  .primary-nav.is-open {
    max-height: 380px;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
  }

  .primary-nav a {
    padding: 0.9rem 0.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--color-line);
    font-size: 1.05rem;
  }

  .primary-nav .nav-cta {
    margin-top: 0.85rem;
    margin-left: 0;
    text-align: center;
    border-radius: 999px;
    border-bottom: none;
  }
}

@media (min-width: 861px) {
  /* Hide the hamburger on desktop */
  .nav-toggle {
    display: none;
  }
}


/* ============================================================================
   6. HERO
   ========================================================================== */
.hero {
  position: relative;
  color: #fff;
  background: var(--grad-hero);
  overflow: hidden;
  padding-block: 5.5rem 6rem;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
}

/* Background video sits behind everything in the hero */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fill the area, cropping as needed */
  z-index: 0;
}

/* Dark scrim + brand tint over the video so text stays readable */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(40rem 40rem at 85% -10%, rgba(124, 58, 237, 0.40), transparent 60%),
    radial-gradient(36rem 36rem at 5% 110%, rgba(6, 182, 212, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.72) 0%, rgba(11, 18, 32, 0.55) 45%, rgba(11, 18, 32, 0.80) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3rem;
}

/* Content column now sits alone over the video */
.hero-content {
  max-width: 42rem;
}

/* Sound on/off control for the background video */
.hero-video-toggle {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: rgba(11, 18, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color var(--transition), transform var(--transition);
}

.hero-video-toggle:hover {
  background: rgba(11, 18, 32, 0.8);
  transform: translateY(-1px);
}

/* Speaker icon before the label. Default (aria-pressed="false") = muted,
   so the icon shows a slash; when pressed (sound on) it shows sound waves. */
.hero-video-toggle::before {
  content: "";
  width: 16px;
  height: 16px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cline x1='22' y1='2' x2='2' y2='22' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cline x1='22' y1='2' x2='2' y2='22' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-video-toggle[aria-pressed="true"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E");
}

.eyebrow {
  /* Reuse eyebrow style but brighten it on the dark hero */
}

.hero .eyebrow {
  color: #7dd3fc;
}

.hero-title {
  color: #fff;
  font-size: clamp(2.1rem, 1.4rem + 3.6vw, 3.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  /* Move the sound toggle to the top on small screens so it's not
     hidden behind the CTA buttons */
  .hero-video-toggle {
    top: 1rem;
    right: 1rem;
    bottom: auto;
  }
}


/* ============================================================================
   7. ABOUT
   ========================================================================== */
.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-text h3,
.about-diff h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}

.about-text h3:first-child {
  margin-top: 0;
}

/* Checkmark list */
.check-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--color-ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--grad-brand);
  /* Checkmark drawn with a mask so it inherits the gradient */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 70% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.check-list strong {
  color: var(--color-ink);
}

@media (min-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}


/* ============================================================================
   8. TECHNOLOGY / FEATURE CARDS
   ========================================================================== */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.feature-card,
.program-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.feature-card:hover,
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-accent);
  margin-bottom: 1.1rem;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.96rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .technology .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ============================================================================
   9. PROGRAMS
   ========================================================================== */
.program-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.program-card > p {
  font-size: 0.96rem;
}

.mini-list {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.mini-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cyan);
}

@media (min-width: 900px) {
  .programs .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ============================================================================
   10. STATS & TESTIMONIALS
   ========================================================================== */
.stats {
  background: var(--color-bg-navy);
  color: #fff;
}

.stats-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
  margin-bottom: 3rem;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 2.8rem);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.testimonials {
  display: grid;
  gap: 1.5rem;
}

.quote {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--color-cyan);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}

.quote blockquote {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
}

.quote figcaption {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.stats-disclaimer {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  text-align: center;
}

@media (min-width: 720px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================================
   10b. LEADERSHIP
   ========================================================================== */
.leader-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
}

.leader-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* Initials avatar — swap for an <img class="leader-avatar"> when you have photos */
.leader-avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;              /* used when it's an <img> */
  object-position: 50% 20%;      /* bias the crop toward the head */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  background: var(--grad-accent);
  letter-spacing: 0.02em;
}

.leader-name {
  margin-bottom: 0.15rem;
}

.leader-role {
  color: var(--color-ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

/* Row of external links (Google Scholar, LinkedIn) under each name */
.leader-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.1rem;
}

.leader-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.leader-link:hover {
  color: var(--color-cyan);
}

.leader-link-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Visually hidden but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 620px) {
  .leader-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================================
   11. CONTACT & FORM
   ========================================================================== */
.contact-inner {
  display: grid;
  gap: 2.75rem;
}

.contact-list {
  list-style: none;
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
}

.contact-list-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-cyan);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-ink);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--color-ink);
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  transition: border-color var(--transition), box-shadow var(--transition),
    background-color var(--transition);
  width: 100%;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

/* Invalid field state (set by main.js) */
.field.has-error input,
.field.has-error textarea {
  border-color: var(--color-pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.field-error {
  color: #be185d;
  font-size: 0.82rem;
  min-height: 1rem;
}

.form-status {
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.2rem;
}

.form-status.is-success {
  color: #047857;
}

.form-status.is-error {
  color: #be185d;
}

@media (min-width: 900px) {
  .contact-inner {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
    gap: 3.5rem;
  }
}


/* ============================================================================
   12. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 3rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand:hover {
  color: #fff;
}

.footer-tagline {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  max-width: 22rem;
}

.footer-nav ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--color-cyan);
}

.footer-social-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background-color var(--transition), transform var(--transition);
}

.social-icons a:hover {
  background: var(--grad-brand);
  transform: translateY(-2px);
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 780px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    align-items: start;
  }
}


/* ============================================================================
   13. SCROLL-REVEAL ANIMATION
   Elements with .reveal start hidden and fade/slide in when
   main.js adds .is-visible (via IntersectionObserver).
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger children within a grid for a nicer cascade */
.card-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.card-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.card-grid .reveal:nth-child(4) { transition-delay: 240ms; }


/* ============================================================================
   14. LARGER-SCREEN SECTION SPACING
   ========================================================================== */
@media (min-width: 900px) {
  :root {
    --section-pad-y: 6rem;
  }
}


/* ============================================================================
   15. REDUCED MOTION / PRINT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
