/* ============================================================
   Good Vibes Coding — Landing Page Styles
   Pure CSS, no framework. OKLCH color system. Scroll animations.
   ============================================================ */

@layer reset, base, layout, components, sections, utilities;

/* --- Reset --- */
@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }
  body {
    min-height: 100dvh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  input, button, textarea, select {
    font: inherit;
  }
  ul[role="list"] {
    list-style: none;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
}

/* --- Base: Design Tokens --- */
@layer base {
  :root {
    /* Color system — OKLCH for perceptual uniformity */
    --color-bg:           oklch(97.5% 0.005 80);     /* warm cream white */
    --color-surface:      oklch(95% 0.008 80);        /* warm off-white cards */
    --color-surface-alt:  oklch(25% 0.015 60);        /* dark surface for contrast sections */
    --color-text:         oklch(20% 0.02 60);          /* warm near-black */
    --color-text-muted:   oklch(42% 0.015 60);        /* muted body text — darkened for WCAG AA */
    --color-text-soft:    oklch(55% 0.01 60);          /* subtle labels — darkened for contrast */
    --color-border:       oklch(88% 0.01 80);          /* subtle warm border */

    /* Primary — Teal-green: growth, tech, positivity */
    --color-primary:      oklch(55% 0.14 175);
    --color-primary-light:oklch(92% 0.04 175);
    --color-primary-dark: oklch(40% 0.12 175);

    /* Accent — Warm amber: energy, optimism, approachability */
    --color-accent:       oklch(72% 0.17 70);
    --color-accent-light: oklch(92% 0.06 70);
    --color-accent-dark:  oklch(58% 0.16 70);

    /* Typography */
    --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

    /* Fluid type scale */
    --text-xs:   clamp(0.75rem,  0.7rem + 0.15vw,  0.875rem);
    --text-sm:   clamp(0.875rem, 0.8rem + 0.2vw,   1rem);
    --text-base: clamp(1rem,     0.92rem + 0.25vw,  1.125rem);
    --text-lg:   clamp(1.125rem, 1rem + 0.4vw,      1.375rem);
    --text-xl:   clamp(1.375rem, 1.1rem + 0.8vw,    1.875rem);
    --text-2xl:  clamp(1.75rem,  1.3rem + 1.2vw,    2.75rem);
    --text-3xl:  clamp(2.25rem,  1.5rem + 2vw,      3.75rem);
    --text-hero: clamp(2.75rem,  1.8rem + 3vw,      5rem);

    /* Spacing */
    --space-xs:  clamp(0.25rem, 0.15rem + 0.3vw,  0.5rem);
    --space-sm:  clamp(0.5rem,  0.3rem + 0.5vw,   1rem);
    --space-md:  clamp(1rem,    0.6rem + 1vw,      1.75rem);
    --space-lg:  clamp(1.5rem,  1rem + 1.5vw,      3rem);
    --space-xl:  clamp(2.5rem,  1.5rem + 3vw,      5rem);
    --space-2xl: clamp(4rem,    2.5rem + 4vw,      8rem);
    --space-section: clamp(5rem, 3rem + 5vw, 10rem);

    /* Layout */
    --container-max: 72rem;
    --container-pad: clamp(1.25rem, 1rem + 1vw, 3rem);

    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;

    /* Shadows */
    --shadow-sm:  0 1px 3px oklch(0% 0 0 / 0.04), 0 1px 2px oklch(0% 0 0 / 0.02);
    --shadow-md:  0 4px 16px oklch(0% 0 0 / 0.06), 0 2px 4px oklch(0% 0 0 / 0.03);
    --shadow-lg:  0 12px 40px oklch(0% 0 0 / 0.08), 0 4px 12px oklch(0% 0 0 / 0.04);
    --shadow-glow:0 0 40px oklch(55% 0.14 175 / 0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.15s;
    --duration-base: 0.3s;
    --duration-slow: 0.6s;
  }

  body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
  }

  h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--color-text);
    text-wrap: balance;
  }

  h1 em, h2 em, h3 em {
    font-style: italic;
    color: var(--color-primary);
  }

  p {
    text-wrap: pretty;
  }

  ::selection {
    background: oklch(55% 0.14 175 / 0.2);
  }

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

/* --- Layout --- */
@layer layout {
  .container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
  }
}

/* --- Components --- */
@layer components {

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.85em 1.8em;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1;
    border: none;
    border-radius: 100vw;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    white-space: nowrap;
  }
  .btn--primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 12px oklch(55% 0.14 175 / 0.25);
  }
  .btn--primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 4px 20px oklch(55% 0.14 175 / 0.35);
    transform: translateY(-1px);
  }
  .btn--ghost {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
  }
  .btn--ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
  }
  .btn--sm {
    padding: 0.6em 1.4em;
    font-size: var(--text-xs);
  }
  .btn--lg {
    padding: 1em 2.4em;
    font-size: var(--text-base);
  }

  /* Section headers */
  .section-label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-sm);
  }
  .skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.5em 1em;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-sm);
    z-index: 200;
    font-size: var(--text-sm);
  }
  .skip-link:focus {
    top: 1rem;
  }
  .section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
  }
  .section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 38rem;
    line-height: 1.55;
  }
  .section-header {
    margin-bottom: var(--space-xl);
  }
}

/* --- Sections --- */
@layer sections {

  /* ---- Navigation ---- */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) 0;
    transition: all var(--duration-base) var(--ease-out);
  }
  .nav--scrolled {
    background: oklch(97.5% 0.005 80 / 0.85);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    box-shadow: 0 1px 0 var(--color-border);
  }
  .nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
  }
  .nav__logo {
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-text);
    transition: color var(--duration-fast);
  }
  .nav__logo:hover { color: var(--color-primary); }
  .nav__logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2em;
    height: 2.2em;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75em;
    font-weight: 700;
    font-family: 'DM Sans', monospace;
  }
  .nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
  }
  .nav__links a {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color var(--duration-fast);
    font-weight: 450;
  }
  .nav__links a:hover {
    color: var(--color-text);
  }
  .nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }
  .nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--duration-base) var(--ease-out);
  }

  /* ---- Hero ---- */
  .hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5rem;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 65% 30%, oklch(55% 0.14 175 / 0.06) 0%, transparent 70%),
      radial-gradient(ellipse 50% 50% at 20% 80%, oklch(72% 0.17 70 / 0.04) 0%, transparent 60%);
    pointer-events: none;
  }
  .hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
  }
  .hero__content {
    max-width: 36rem;
  }
  .hero__eyebrow {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.1s forwards;
  }
  .hero__title {
    font-size: var(--text-hero);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.25s forwards;
  }
  .hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    max-width: 32rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
  }
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.55s forwards;
  }

  /* Hero code block */
  .hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
  }
  .hero__glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, oklch(55% 0.14 175 / 0.1) 0%, transparent 70%);
    filter: blur(40px);
    border-radius: 50%;
  }
  .hero__code-block {
    position: relative;
    background: oklch(18% 0.015 260);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-lg);
    font-family: 'DM Sans', 'SF Mono', 'Fira Code', monospace;
    font-size: var(--text-sm);
    line-height: 1.9;
    box-shadow: var(--shadow-lg), 0 0 60px oklch(55% 0.14 175 / 0.08);
    border: 1px solid oklch(100% 0 0 / 0.06);
    width: 100%;
    max-width: 26rem;
  }
  .code-line { white-space: nowrap; }
  .code-line.indent { padding-left: 1.5em; }
  .code-keyword { color: oklch(75% 0.15 310); }
  .code-var { color: oklch(80% 0.12 200); }
  .code-prop { color: oklch(80% 0.1 80); }
  .code-string { color: oklch(75% 0.15 155); }

  .hero__scroll-hint {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-xs);
    color: var(--color-text-soft);
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out) 1.2s forwards;
  }
  .hero__scroll-hint svg {
    animation: bobDown 2s var(--ease-out) infinite;
  }

  /* ---- Services ---- */
  .services {
    padding: var(--space-section) 0;
  }
  .services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: var(--space-lg);
  }
  .service-card {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    transition: all var(--duration-base) var(--ease-out);
  }
  .service-card:hover {
    border-color: oklch(55% 0.14 175 / 0.3);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(-3px);
  }
  .service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    background: var(--color-primary-light);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
  }
  .service-card__title {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
  }
  .service-card__desc {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.65;
  }

  /* ---- Mission ---- */
  .mission {
    padding: var(--space-section) 0;
    background: var(--color-surface);
  }
  .mission__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
  }
  .mission__content {
    max-width: 32rem;
  }
  .mission__text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    font-size: var(--text-base);
    line-height: 1.7;
  }
  .mission__text strong {
    color: var(--color-text);
    font-weight: 600;
  }
  .mission__values-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-start;
  }
  .value-chip {
    display: inline-block;
    padding: 0.65em 1.3em;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 100vw;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--duration-base) var(--ease-out);
  }
  .value-chip:nth-child(1) { border-color: oklch(55% 0.14 175 / 0.3); color: var(--color-primary); }
  .value-chip:nth-child(2) { margin-left: 1.5rem; }
  .value-chip:nth-child(3) { margin-left: 0.75rem; }
  .value-chip:nth-child(4) { margin-left: 2rem; }
  .value-chip:nth-child(5) { margin-left: 0.5rem; }

  /* ---- Process ---- */
  .process {
    padding: var(--space-section) 0;
  }
  .process__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: var(--space-lg);
    counter-reset: step;
  }
  .step {
    position: relative;
    padding: var(--space-lg) 0;
  }
  .step__number {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: oklch(55% 0.14 175 / 0.12);
    font-weight: 400;
    line-height: 1;
    margin-bottom: var(--space-sm);
  }
  .step__title {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
  }
  .step__desc {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.65;
  }

  /* ---- Free Tools ---- */
  .tools {
    padding: var(--space-section) 0;
    background: var(--color-surface-alt);
    color: oklch(90% 0.02 80);
  }
  .tools .section-label {
    color: var(--color-accent);
  }
  .tools .section-title {
    color: oklch(96% 0.01 80);
  }
  .tools .section-title em {
    color: var(--color-accent);
  }
  .tools .section-subtitle {
    color: oklch(70% 0.01 80);
  }
  .tools__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: var(--space-lg);
    max-width: 48rem;
    margin-inline: auto;
  }
  .tool-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid oklch(100% 0 0 / 0.08);
    background: oklch(100% 0 0 / 0.04);
    transition: all var(--duration-base) var(--ease-out);
  }
  a.tool-card:hover {
    border-color: oklch(72% 0.17 70 / 0.4);
    background: oklch(100% 0 0 / 0.07);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px oklch(0% 0 0 / 0.3);
  }
  .tool-card--coming-soon {
    opacity: 0.6;
    border-style: dashed;
  }
  .tool-card__badge {
    display: inline-block;
    align-self: flex-start;
    padding: 0.25em 0.75em;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 100vw;
    background: oklch(55% 0.14 175 / 0.2);
    color: oklch(75% 0.12 175);
    margin-bottom: var(--space-md);
  }
  .tool-card__badge--soon {
    background: oklch(72% 0.17 70 / 0.15);
    color: oklch(80% 0.12 70);
  }
  .tool-card__title {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: 600;
    color: oklch(96% 0.01 80);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
  }
  .tool-card__desc {
    font-size: var(--text-sm);
    color: oklch(70% 0.01 80);
    line-height: 1.65;
    flex: 1;
  }
  .tool-card__link {
    display: inline-block;
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-accent);
    transition: color var(--duration-fast);
  }

  /* ---- Team ---- */
  .team {
    padding: var(--space-section) 0;
    background: var(--color-surface);
  }
  .team .section-header {
    text-align: center;
  }
  .team .section-subtitle {
    margin-inline: auto;
  }
  .team__photo-wrapper {
    max-width: 26rem;
    margin-inline: auto;
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-align: center;
  }
  .team__photo {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(0);
  }
  .team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: var(--space-lg);
    max-width: 52rem;
    margin-inline: auto;
  }
  .team-card {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    text-align: center;
  }
  .team-card__photo {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    margin-bottom: var(--space-md);
    border: 3px solid var(--color-primary-light);
    margin-inline: auto;
  }
  .team-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 400;
    margin-bottom: var(--space-md);
  }
  .team-card__name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: 0.2em;
  }
  .team-card__role {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
  }
  .team-card__bio {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.65;
  }
  .team-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin-top: var(--space-md);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-soft);
    transition: color var(--duration-fast);
  }
  .team-card__link:hover {
    color: var(--color-primary);
  }

  /* ---- CTA ---- */
  .cta {
    padding: var(--space-section) 0;
  }
  .cta__inner {
    text-align: center;
    max-width: 40rem;
    margin-inline: auto;
  }
  .cta__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
  }
  .cta__text {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
  }
  .cta__actions {
    margin-bottom: var(--space-lg);
  }
  .cta__reassurance {
    font-size: var(--text-sm);
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: var(--space-lg);
  }
  .cta__note {
    font-size: var(--text-sm);
    color: var(--color-text-soft);
    margin-bottom: var(--space-sm);
  }
  .cta__channels {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
  }
  .cta__channel {
    color: var(--color-text-muted);
    transition: color var(--duration-fast);
    font-weight: 500;
  }
  .cta__channel:hover {
    color: var(--color-primary);
  }
  .cta__divider {
    color: var(--color-text-soft);
    opacity: 0.4;
  }

  /* ---- Footer ---- */
  .footer {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border);
  }
  .footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
  }
  .footer__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .footer__name {
    font-weight: 600;
    font-size: var(--text-sm);
  }
  .footer__tagline {
    display: none;
  }
  .footer__nav ul {
    display: flex;
    gap: var(--space-md);
  }
  .footer__nav a {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    transition: color var(--duration-fast);
  }
  .footer__nav a:hover {
    color: var(--color-text);
  }
  .footer__copy {
    font-size: var(--text-xs);
    color: var(--color-text-soft);
  }

  /* ---- Mobile Nav ---- */
  .mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: oklch(97.5% 0.005 80 / 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-base) var(--ease-out);
  }
  .mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }
  .mobile-nav a {
    font-size: var(--text-2xl);
    font-family: var(--font-display);
    color: var(--color-text);
    transition: color var(--duration-fast);
  }
  .mobile-nav a:hover {
    color: var(--color-primary);
  }
  body.nav-open .mobile-nav {
    opacity: 1;
    pointer-events: auto;
  }
  body.nav-open .nav__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.nav-open .nav__toggle span:nth-child(2) {
    opacity: 0;
  }
  body.nav-open .nav__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* --- Animations --- */
@layer utilities {

  /* Keyframes */
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes bobDown {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
  }

  /* Scroll-driven animations — CSS only, progressive enhancement */
  @supports (animation-timeline: view()) {
    [data-animate] {
      opacity: 0;
      transform: translateY(32px);
      animation: fadeUp 1s var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
    /* Stagger children within animated containers */
    [data-animate] > :nth-child(1) { animation-delay: 0s; }
    [data-animate] > :nth-child(2) { animation-delay: 0.08s; }
    [data-animate] > :nth-child(3) { animation-delay: 0.16s; }
  }

  /* Intersection Observer fallback for browsers without scroll-driven animations */
  @supports not (animation-timeline: view()) {
    [data-animate] {
      opacity: 0;
      transform: translateY(32px);
      transition: opacity var(--duration-slow) var(--ease-out),
                  transform var(--duration-slow) var(--ease-out);
    }
    [data-animate].in-view {
      opacity: 1;
      transform: translateY(0);
    }
    /* Stagger children */
    [data-animate].in-view > :nth-child(1) { transition-delay: 0s; }
    [data-animate].in-view > :nth-child(2) { transition-delay: 0.08s; }
    [data-animate].in-view > :nth-child(3) { transition-delay: 0.16s; }
  }

  /* JS-off fallback: show content even without animations */
  @media (scripting: none) {
    [data-animate] {
      opacity: 1 !important;
      transform: none !important;
    }
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-delay: 0ms !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}

/* --- Responsive --- */
@media (max-width: 64rem) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__content {
    max-width: 38rem;
    margin-inline: auto;
  }
  .hero__subtitle {
    margin-inline: auto;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__visual {
    display: none;
  }
  .mission__layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .mission__content {
    max-width: none;
  }
  .section-header {
    text-align: center;
  }
  .section-subtitle {
    margin-inline: auto;
  }
  .value-chip:nth-child(n) {
    margin-left: 0;
  }
}

/* Sticky mobile CTA */
.mobile-cta {
  display: none;
}

@media (max-width: 56rem) {
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
  .team__grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .footer__nav ul {
    justify-content: center;
  }
  .mobile-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem var(--container-pad);
    background: oklch(97.5% 0.005 80 / 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    z-index: 98;
    text-align: center;
    transition: transform var(--duration-base) var(--ease-out);
  }
  .mobile-cta.hidden {
    transform: translateY(100%);
  }
  .mobile-cta .btn {
    width: 100%;
    max-width: 24rem;
  }
  .footer {
    padding-bottom: 5rem;
  }
}
