/* About us — always-on marketing page */

.about-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height, 64px));
  min-height: calc(100svh - var(--nav-height, 64px));
  min-height: calc(100dvh - var(--nav-height, 64px));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-color);
  background: var(--brand-mist, #e8f4f4);
  box-sizing: border-box;
}

.about-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.about-hero-media::before {
  content: '';
  position: absolute;
  inset: -6%;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  animation: aboutZoom 22s ease alternate infinite;
  will-change: transform;
}

.about-hero-media img {
  display: none;
}

.about-hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 88% 42%, rgba(255, 255, 255, 0.18), transparent 58%),
    radial-gradient(ellipse 45% 40% at 72% 78%, rgba(var(--accent-warm-rgb, 232, 163, 23), 0.28), transparent 60%),
    radial-gradient(ellipse 40% 50% at 8% 20%, rgba(13, 138, 138, 0.18), transparent 55%);
}

.about-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(247, 251, 251, 0.96) 0%,
      rgba(247, 251, 251, 0.9) 26%,
      rgba(247, 251, 251, 0.55) 44%,
      rgba(247, 251, 251, 0.12) 62%,
      transparent 78%
    ),
    linear-gradient(
      180deg,
      rgba(232, 244, 244, 0.35) 0%,
      transparent 28%,
      transparent 72%,
      rgba(13, 138, 138, 0.14) 100%
    );
}

.about-hero-inner {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  padding: clamp(40px, 8vw, 88px) clamp(24px, 6vw, 72px);
}

.about-brand {
  display: block;
  width: min(220px, 64vw);
  height: auto;
  margin-bottom: 22px;
}

.about-kicker {
  margin: 0 0 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-color);
}

.about-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  color: var(--brand-ink, #0c2e2e);
  text-wrap: balance;
}

.about-lead {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 36ch;
}

html.dark-theme .about-hero,
body.dark-theme .about-hero {
  background: #0e1818;
  color: #eef6f6;
}

html.dark-theme .about-hero-scrim,
body.dark-theme .about-hero-scrim {
  background:
    linear-gradient(
      105deg,
      rgba(14, 24, 24, 0.88) 0%,
      rgba(14, 24, 24, 0.72) 28%,
      rgba(14, 24, 24, 0.28) 48%,
      transparent 72%
    ),
    linear-gradient(180deg, rgba(43, 184, 184, 0.12) 0%, transparent 35%, rgba(14, 24, 24, 0.35) 100%);
}

html.dark-theme .about-kicker,
body.dark-theme .about-kicker {
  color: #7ecfcf;
}

html.dark-theme .about-title,
body.dark-theme .about-title {
  color: #ffffff;
}

html.dark-theme .about-lead,
body.dark-theme .about-lead {
  color: rgba(232, 244, 244, 0.88);
}

.about-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) clamp(20px, 4vw, 32px);
}

.about-section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.about-prose {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 52ch;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.about-section--tight {
  padding-top: 0;
}

.about-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.about-step {
  padding: 26px 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(13, 138, 138, 0.1), transparent 45%),
    var(--card-background);
  border: 1px solid var(--glass-border, var(--border-color));
  box-shadow: var(--shadow-md);
}

.about-step-num {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.about-step h3 {
  margin: 0 0 10px;
  color: var(--text-color);
}

.about-step p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.about-value {
  padding: 26px 22px;
  border-radius: 22px;
  background: var(--card-background);
  border: 1px solid var(--glass-border, var(--border-color));
  box-shadow: var(--shadow-md);
}

.about-value h3 {
  margin: 0 0 10px;
  color: var(--primary-color);
}

.about-value p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.about-mission {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 48px);
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px) clamp(48px, 8vw, 88px);
}

.about-mission-panel {
  border-radius: 28px;
  padding: 36px 30px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 40%),
    linear-gradient(145deg, var(--brand-ink), var(--primary-color));
  color: #eef8f8;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  box-shadow: var(--shadow-lg);
}

.about-mission-panel p {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.35;
}

.about-mission-copy h2 {
  margin: 0 0 14px;
}

.about-mission-copy p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1.08rem;
}

.about-close {
  padding: 0 clamp(20px, 4vw, 32px) 96px;
}

.about-close-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 6vw, 60px) clamp(24px, 5vw, 44px);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(13, 138, 138, 0.14), transparent 60%),
    var(--card-background);
  border: 1px solid var(--glass-border, var(--border-color));
  box-shadow: var(--shadow-lg);
}

.about-close-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.about-close-inner p {
  margin: 0 0 26px;
  color: var(--text-secondary);
  font-size: 1.08rem;
}

.about-close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.about-btn {
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
}

[data-about-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-about-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes aboutZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@media (max-width: 1024px) {
  .about-hero {
    align-items: flex-end;
    justify-content: center;
  }

  .about-hero-inner {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(28px, 6vw, 48px) clamp(18px, 5vw, 32px);
    padding-bottom: max(clamp(36px, 8vw, 56px), env(safe-area-inset-bottom, 0px));
  }

  .about-lead { max-width: 40ch; }
  .about-brand { margin-left: auto; margin-right: auto; }

  .about-hero-scrim {
    background:
      linear-gradient(
        180deg,
        rgba(247, 251, 251, 0.2) 0%,
        rgba(247, 251, 251, 0.45) 38%,
        rgba(247, 251, 251, 0.88) 68%,
        rgba(247, 251, 251, 0.96) 100%
      ),
      radial-gradient(
        ellipse 70% 45% at 50% 100%,
        rgba(var(--accent-warm-rgb, 232, 163, 23), 0.18),
        transparent 55%
      );
  }

  .about-hero-glow {
    background:
      radial-gradient(ellipse 70% 40% at 50% 0%, rgba(13, 138, 138, 0.12), transparent 55%),
      radial-gradient(ellipse 60% 35% at 50% 100%, rgba(var(--accent-warm-rgb, 232, 163, 23), 0.16), transparent 60%);
  }

  html.dark-theme .about-hero-scrim,
  body.dark-theme .about-hero-scrim {
    background:
      linear-gradient(
        180deg,
        rgba(14, 24, 24, 0.25) 0%,
        rgba(14, 24, 24, 0.55) 42%,
        rgba(14, 24, 24, 0.9) 100%
      ),
      radial-gradient(ellipse 70% 40% at 50% 100%, rgba(232, 163, 23, 0.14), transparent 55%);
  }

  .about-values,
  .about-mission,
  .about-timeline {
    grid-template-columns: 1fr;
  }

  .about-section,
  .about-mission {
    text-align: center;
  }

  .about-prose {
    margin-left: auto;
    margin-right: auto;
  }

  .about-mission-panel {
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  .about-brand {
    width: min(200px, 78vw);
    margin-bottom: 18px;
  }

  .about-kicker {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .about-title {
    font-size: clamp(2.1rem, 9vw, 2.7rem);
  }

  .about-lead {
    font-size: 1.02rem;
    max-width: 32ch;
  }

  .about-section {
    padding: 44px 16px;
  }

  .about-section h2 {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }

  .about-prose {
    font-size: 1.02rem;
    max-width: none;
  }

  .about-values,
  .about-timeline {
    gap: 14px;
    margin-top: 22px;
  }

  .about-value,
  .about-step {
    padding: 22px 18px;
    border-radius: 18px;
    text-align: left;
  }

  .about-mission {
    padding: 0 16px 44px;
    gap: 18px;
    text-align: left;
  }

  .about-mission-panel {
    min-height: 170px;
    padding: 28px 22px;
    border-radius: 22px;
  }

  .about-mission-panel p {
    font-size: 1.25rem;
  }

  .about-close {
    padding: 0 16px 72px;
  }

  .about-close-inner {
    padding: 32px 18px;
    border-radius: 22px;
  }

  .about-close-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero-media::before { animation: none; }
  [data-about-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
