/* Wiserunts — light cinematic landing */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f4f6f9;
  --bg-soft: #e7ecf2;
  --text: #16181d;
  --muted: #5a6270;
  --line: rgba(22, 24, 29, 0.12);
  --accent: #2c4a66;
  --hero-text: #f7f8fa;
  --hero-muted: rgba(247, 248, 250, 0.78);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", "Inter", sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(44, 74, 102, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(120, 150, 180, 0.1), transparent 50%),
    var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header — transparent over hero, solid after scroll */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(22, 24, 29, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(22, 24, 29, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  transition: color 0.35s ease;
}

.site-header.is-scrolled .brand {
  color: var(--text);
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  animation: logo-soft 4.5s ease-in-out infinite;
  transition: filter 0.35s ease;
}

.site-header.is-scrolled .brand-mark {
  filter: none;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.header-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.3s ease, transform 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease;
}

.header-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.site-header.is-scrolled .header-nav a {
  color: #3a414d;
}

.site-header.is-scrolled .header-nav a:hover {
  color: var(--text);
}

.header-cta {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff !important;
  background: transparent;
}

.header-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff !important;
}

.site-header.is-scrolled .header-cta {
  border-color: rgba(22, 24, 29, 0.22);
  color: var(--text) !important;
  background: #fff;
}

.site-header.is-scrolled .header-cta:hover {
  background: var(--text);
  color: #fff !important;
  border-color: var(--text);
}

.header-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.35rem;
}

.header-login,
.header-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  padding: 0.6rem 1.05rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.header-login {
  background: #fff;
  color: #16181d !important;
  border: 1px solid #fff;
  min-width: 8.5rem;
}

.header-login:hover {
  background: #f0f3f7;
  color: #16181d !important;
  transform: translateY(-1px);
}

.header-login[aria-disabled="true"],
.header-login--idle {
  cursor: default;
  opacity: 0.9;
}

.header-login[aria-disabled="true"]:hover,
.header-login--idle:hover {
  transform: none;
  background: #fff;
}

.site-header.is-scrolled .header-login {
  background: #16181d;
  color: #fff !important;
  border-color: #16181d;
}

.site-header.is-scrolled .header-login:hover {
  background: #2a2e36;
  color: #fff !important;
}

.site-header.is-scrolled .header-login[aria-disabled="true"]:hover,
.site-header.is-scrolled .header-login--idle:hover {
  background: #16181d;
}

/* Hero — full-bleed from top under transparent header */
.hero {
  position: relative;
  margin-top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 1.5rem) clamp(1.25rem, 5vw, 4rem) 3.5rem;
  overflow: hidden;
  color: var(--hero-text);
  background: #0a0c10;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  animation: hero-drift 16s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 18, 28, 0.62) 0%, rgba(12, 18, 28, 0.18) 52%, rgba(12, 18, 28, 0.35) 100%),
    linear-gradient(180deg, rgba(12, 18, 28, 0.28) 0%, rgba(12, 18, 28, 0.06) 35%, rgba(12, 18, 28, 0.78) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.hero-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
  animation: logo-soft 4.5s ease-in-out infinite;
}

.hero-brand {
  font-size: clamp(3rem, 8.5vw, 5.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 0.85rem;
}

.hero-brand .word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 1.1em, 0);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.hero-copy.is-in .hero-brand .word {
  opacity: 1;
  transform: none;
}

.hero-title {
  font-size: clamp(1.28rem, 2.6vw, 1.72rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--hero-text);
  margin-bottom: 1.1rem;
}

.hero-lead {
  font-size: clamp(1.08rem, 1.85vw, 1.28rem);
  color: var(--hero-muted);
  max-width: 36ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero .btn-primary {
  background: #fff;
  color: #16181d;
  border-color: #fff;
}

.hero .btn-primary:hover {
  background: #f0f3f7;
}

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

.hero-scroll {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 2rem;
  z-index: 1;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hero-muted);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}

@keyframes hero-drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1%, -0.4%, 0); }
}

@keyframes logo-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 0.9rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}

.btn-primary {
  background: var(--text);
  color: #fff;
  border: 1px solid var(--text);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(22, 24, 29, 0.16);
  background: #2a2e36;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: rgba(22, 24, 29, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(22, 24, 29, 0.08);
}

.btn--idle {
  cursor: default;
  opacity: 0.9;
  pointer-events: none;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* W I S E R U N T S — watermark behind each text block */
.has-letter {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.has-letter > :not(.letter-bg) {
  position: relative;
  z-index: 1;
}

.letter-bg {
  position: absolute;
  z-index: 0;
  left: -0.06em;
  top: 46%;
  transform: translate3d(0, -46%, 0) scale(0.9);
  font-size: clamp(18rem, 54vw, 38rem);
  font-weight: 200;
  line-height: 0.75;
  letter-spacing: -0.08em;
  color: rgba(44, 74, 102, 0.038);
  -webkit-text-stroke: 1.5px rgba(44, 74, 102, 0.15);
  text-stroke: 1.5px rgba(44, 74, 102, 0.15);
  pointer-events: none;
  user-select: none;
  opacity: 0;
  backface-visibility: hidden;
  transition: opacity 1s var(--ease);
}

.letter-bg--center {
  left: 50%;
  transform: translate3d(-50%, -46%, 0) scale(0.9);
}

.has-letter.is-in > .letter-bg,
.pillar.is-in .letter-bg {
  opacity: 0.68;
  transform: translate3d(0, -52%, 0) scale(1);
}

.has-letter.is-in > .letter-bg.letter-bg--center,
.pillar.is-in .letter-bg--center {
  transform: translate3d(-50%, -52%, 0) scale(1);
}

.pillar-text.has-letter,
.statement.has-letter,
.mission-inner.has-letter,
.pillars-intro.has-letter,
.chapter-copy.has-letter,
.journey-copy.has-letter {
  overflow: visible;
}

.pillars-intro.has-letter,
.chapter-copy.has-letter,
.journey-copy.has-letter {
  min-height: 12rem;
}

/* Chapter */
.chapter {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  background: transparent;
}

.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.chapter-copy h2,
.pillars-intro h2,
.journey-copy h2,
.mission-inner h2,
.statement h2,
.join h2 {
  font-size: clamp(2.2rem, 4.8vw, 3.7rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.chapter-copy p,
.pillar-text p,
.journey-copy p,
.mission-inner > p,
.statement p,
.join > p,
.pillars-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.65vw, 1.22rem);
  max-width: 40rem;
}

.pillar-text p + p,
.chapter-copy p + p,
.journey-copy p + p {
  margin-top: 1rem;
}

.solution {
  background: var(--bg-soft);
}

.solution .chapter-grid {
  align-items: stretch;
  grid-template-columns: 1fr 1.4fr;
  max-width: 1200px;
  min-height: min(68vh, 620px);
}

.solution .chapter-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  max-width: none;
  height: 100%;
}

.solution .chapter-copy .letter-bg {
  left: -0.06em;
}

.solution .chapter-media {
  min-height: 0;
  height: 100%;
}

.solution .chapter-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.chapter-media {
  margin: 0;
  overflow: hidden;
  min-height: clamp(320px, 55vh, 620px);
  border-radius: 2px;
}

.chapter-media img,
.pillar-media img,
.journey-gallery img {
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.chapter-media:hover,
.pillar:hover .pillar-media,
.journey-gallery figure:hover {
  filter: brightness(1.03);
}

.pillar-media {
  margin: 0;
  overflow: hidden;
  min-height: 320px;
}

/* Pillars */
.pillars {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--bg-soft);
}

.pillars-intro {
  position: relative;
  max-width: 1200px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}

.pillars-intro p:not(.eyebrow) {
  margin-top: 0.25rem;
}

.pillar {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: min(78vh, 760px);
  align-items: stretch;
}

.pillar-reverse {
  grid-template-columns: 1.2fr 1fr;
}

.pillar-reverse .pillar-text {
  order: 2;
}

.pillar-reverse .pillar-media {
  order: 1;
}

.pillar-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--bg);
}

.pillar-text h3 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Statement */
.statement {
  padding: clamp(5rem, 12vw, 9rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center;
  background: transparent;
}

.statement-mark {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.statement h2 {
  margin-bottom: 1.25rem;
}

.statement p {
  margin: 0 auto;
}

/* Journey */
.journey {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--bg-soft);
}

.journey-sticky {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 6vw, 4rem);
}

.journey-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1rem 1rem 0;
}

.journey-gallery figure {
  margin: 0;
  min-height: 70vh;
  overflow: hidden;
  border-radius: 2px;
}

/* Mission */
.mission {
  padding: clamp(5rem, 12vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  background: transparent;
  text-align: center;
}

.mission-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.mission-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  animation: logo-soft 4.5s ease-in-out infinite;
}

.mission-inner > p {
  margin: 0 auto 2rem;
}

.mission-points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.5rem;
  text-align: left;
  max-width: 28rem;
  margin: 0 auto;
}

.mission-points li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.mission-inner.is-in .mission-points li {
  opacity: 1;
  transform: none;
}

.mission-inner.is-in .mission-points li:nth-child(1) { transition-delay: 0.15s; }
.mission-inner.is-in .mission-points li:nth-child(2) { transition-delay: 0.25s; }
.mission-inner.is-in .mission-points li:nth-child(3) { transition-delay: 0.35s; }
.mission-inner.is-in .mission-points li:nth-child(4) { transition-delay: 0.45s; }

.mission-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Join */
.join {
  padding: clamp(5rem, 12vw, 9rem) clamp(1.25rem, 5vw, 4rem) 3rem;
  text-align: center;
  background:
    radial-gradient(ellipse 55% 45% at 50% 15%, rgba(44, 74, 102, 0.1), transparent 70%),
    var(--bg-soft);
}

.join .eyebrow,
.join h2,
.join > p {
  margin-left: auto;
  margin-right: auto;
  max-width: 32rem;
}

.join h2 {
  margin-bottom: 1rem;
}

.join > p {
  text-align: center;
}

.join-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Non-production environment badge */
.env-badge {
  position: fixed;
  top: calc(var(--header-h) + 0.65rem);
  left: 50%;
  z-index: 60;
  transform: translateX(-50%);
  padding: 0.35rem 0.9rem;
  background: rgba(44, 74, 102, 0.92);
  color: #fff;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Platform links under Join */
.platform-links {
  width: min(920px, 100%);
  margin: 3.5rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.platform-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1.35rem;
}

.platform-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition:
    transform 0.35s var(--ease),
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.35s ease;
}

.platform-card:hover {
  transform: translateY(-3px);
  border-color: rgba(44, 74, 102, 0.28);
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 24, 29, 0.08);
}

.platform-card--featured {
  padding: 1.15rem 1.2rem;
  background: #fff;
  min-height: 5.5rem;
}

.platform-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border-radius: 2px;
  overflow: hidden;
}

.platform-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.platform-icon--sm {
  width: 36px;
  height: 36px;
}

.platform-icon--mark {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.platform-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.platform-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.platform-sub {
  font-size: 0.88rem;
  color: var(--muted);
}

.platform-go {
  flex: 0 0 auto;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.platform-card:hover .platform-go {
  opacity: 1;
}

@media (max-width: 900px) {
  .platform-featured,
  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .platform-featured,
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

/* Watch — embedded video */
.watch {
  padding: 5rem clamp(0.75rem, 3vw, 2rem) 4.5rem;
  text-align: center;
  background:
    linear-gradient(180deg, transparent 0%, rgba(231, 236, 242, 0.65) 100%);
}

.watch .eyebrow,
.watch h2,
.watch > p {
  position: relative;
  z-index: 1;
}

.watch h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.75rem;
  line-height: 1.15;
}

.watch > p {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--muted);
}

.watch-frame {
  position: relative;
  width: min(1280px, 96vw);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0e1116;
  box-shadow: 0 24px 48px rgba(22, 24, 29, 0.14);
  border: 1px solid var(--line);
}

.watch-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Legal / policy pages */
.legal-page {
  padding: calc(var(--header-h) + 2.5rem) clamp(1.25rem, 5vw, 4rem) 4rem;
}

.legal-shell {
  max-width: 780px;
  margin: 0 auto;
}

.legal-shell .eyebrow {
  margin-bottom: 0.5rem;
}

.legal-shell h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.legal-body h2 {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 2rem 0 0.65rem;
  letter-spacing: -0.01em;
}

.legal-body p,
.legal-body li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-body p {
  margin-bottom: 0.85rem;
}

.legal-body ul {
  padding-left: 1.25rem;
  margin: 0 0 0.5rem;
}

.legal-body li {
  margin-bottom: 0.45rem;
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-body a:hover {
  color: var(--text);
}

/* Site footer */
.site-footer {
  background: #16181d;
  color: rgba(247, 248, 250, 0.88);
  padding: 2.75rem clamp(1.25rem, 5vw, 4rem) 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-brand span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}

.footer-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 248, 250, 0.72);
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(247, 248, 250, 0.8);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.footer-social a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.footer-social svg {
  display: block;
}

.footer-copy {
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: rgba(247, 248, 250, 0.55);
}

/* Sticky QR — always visible, bottom-right */
.qr-sticky {
  position: fixed;
  right: clamp(0.85rem, 2.5vw, 1.5rem);
  bottom: clamp(0.85rem, 2.5vw, 1.5rem);
  z-index: 60;
  display: block;
  width: clamp(4.5rem, 12vw, 6rem);
  height: clamp(4.5rem, 12vw, 6rem);
  padding: 0.4rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(22, 24, 29, 0.12);
  box-shadow: 0 12px 32px rgba(22, 24, 29, 0.18);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.qr-sticky:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 40px rgba(22, 24, 29, 0.22);
}

.qr-sticky img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 560px) {
  .qr-sticky {
    width: 3.75rem;
    height: 3.75rem;
    padding: 0.3rem;
    border-radius: 10px;
  }
}

/* ---- Reveals ---- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.site-header[data-reveal] {
  transform: translate3d(0, -14px, 0);
}

.site-header[data-reveal].is-in {
  transform: none;
}

/* Staggered text children (skip watermark letters) */
[data-stagger] > *:not(.letter-bg) {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-stagger].is-in > *:not(.letter-bg) {
  opacity: 1;
  transform: none;
}

/* Delays when no watermark (e.g. hero) */
[data-stagger]:not(.has-letter).is-in > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger]:not(.has-letter).is-in > *:nth-child(2) { transition-delay: 0.16s; }
[data-stagger]:not(.has-letter).is-in > *:nth-child(3) { transition-delay: 0.28s; }
[data-stagger]:not(.has-letter).is-in > *:nth-child(4) { transition-delay: 0.4s; }
[data-stagger]:not(.has-letter).is-in > *:nth-child(5) { transition-delay: 0.5s; }
[data-stagger]:not(.has-letter).is-in > *:nth-child(6) { transition-delay: 0.6s; }

/* Delays when first child is the letter watermark */
.has-letter[data-stagger].is-in > *:nth-child(2) { transition-delay: 0.12s; }
.has-letter[data-stagger].is-in > *:nth-child(3) { transition-delay: 0.24s; }
.has-letter[data-stagger].is-in > *:nth-child(4) { transition-delay: 0.36s; }
.has-letter[data-stagger].is-in > *:nth-child(5) { transition-delay: 0.48s; }
.has-letter[data-stagger].is-in > *:nth-child(6) { transition-delay: 0.58s; }
.has-letter[data-stagger].is-in > *:nth-child(7) { transition-delay: 0.68s; }

/* Image entrances — unique per figure via data-enter */
[data-reveal="media"] {
  opacity: 0;
  transition:
    opacity 0.95s var(--ease),
    transform 1.05s var(--ease),
    clip-path 1.1s var(--ease);
  backface-visibility: hidden;
}

[data-reveal="media"] img {
  transition: transform 1.2s var(--ease);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

[data-reveal="media"].is-in {
  opacity: 1;
  transform: none;
  clip-path: inset(0);
}

[data-reveal="media"].is-in img {
  transform: scale(1);
  transition: none;
}

/* 1 — rise from below */
[data-enter="rise"] {
  transform: translate3d(0, 48px, 0);
  clip-path: inset(18% 0 0 0);
}
[data-enter="rise"] img { transform: scale(1.1) translate3d(0, 8%, 0); }
[data-enter="rise"].is-in img { animation: media-ken-up 20s linear infinite alternate; }

/* 2 — soft rise + scale */
[data-enter="rise-soft"] {
  transform: translate3d(0, 28px, 0) scale(0.96);
  clip-path: inset(0);
}
[data-enter="rise-soft"] img { transform: scale(1.06); }
[data-enter="rise-soft"].is-in img { animation: media-ken 22s linear infinite alternate; }

/* 3 — wipe from left */
[data-enter="wipe-left"] {
  transform: translate3d(-28px, 0, 0);
  clip-path: inset(0 0 0 40%);
}
[data-enter="wipe-left"] img { transform: scale(1.14) translate3d(-4%, 0, 0); }
[data-enter="wipe-left"].is-in img { animation: media-ken-alt 19s linear infinite alternate; }

/* 4 — wipe from right */
[data-enter="wipe-right"] {
  transform: translate3d(28px, 0, 0);
  clip-path: inset(0 40% 0 0);
}
[data-enter="wipe-right"] img { transform: scale(1.14) translate3d(4%, 0, 0); }
[data-enter="wipe-right"].is-in img { animation: media-ken 18s linear infinite alternate; }

/* 5 — wipe upward */
[data-enter="wipe-up"] {
  transform: translate3d(0, 32px, 0);
  clip-path: inset(42% 0 0 0);
}
[data-enter="wipe-up"] img { transform: scale(1.16) translate3d(0, 6%, 0); }
[data-enter="wipe-up"].is-in img { animation: media-ken-up 17s linear infinite alternate; }

/* 6 — wipe downward */
[data-enter="wipe-down"] {
  transform: translate3d(0, -24px, 0);
  clip-path: inset(0 0 42% 0);
}
[data-enter="wipe-down"] img { transform: scale(1.14) translate3d(0, -5%, 0); }
[data-enter="wipe-down"].is-in img { animation: media-ken-down 19s linear infinite alternate; }

/* 7 — zoom in from small */
[data-enter="zoom-in"] {
  transform: scale(0.88);
  clip-path: inset(12%);
}
[data-enter="zoom-in"] img { transform: scale(1.2); }
[data-enter="zoom-in"].is-in img { animation: media-ken-pulse 16s ease-in-out infinite alternate; }

/* 8 — zoom out from large */
[data-enter="zoom-out"] {
  transform: scale(1.06);
  clip-path: inset(0);
  opacity: 0;
}
[data-enter="zoom-out"] img { transform: scale(1.28); }
[data-enter="zoom-out"].is-in img { animation: media-ken-alt 21s linear infinite alternate; }

/* 9 — center curtain open */
[data-enter="curtain"] {
  clip-path: inset(0 48% 0 48%);
  transform: none;
}
[data-enter="curtain"] img { transform: scale(1.18); }
[data-enter="curtain"].is-in img { animation: media-ken 18s linear infinite alternate; }

@keyframes media-ken {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-1.4%, -0.7%, 0); }
}

@keyframes media-ken-alt {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(1.3%, -0.6%, 0); }
}

@keyframes media-ken-up {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(0, -1.5%, 0); }
}

@keyframes media-ken-down {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(0.5%, 1.2%, 0); }
}

@keyframes media-ken-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}

/* Pillar text only — images use data-enter variants above */
.pillar[data-reveal] .pillar-text > *:not(.letter-bg) {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.pillar[data-reveal].is-in .pillar-text > *:not(.letter-bg):nth-child(2) { transition-delay: 0.1s; }
.pillar[data-reveal].is-in .pillar-text > *:not(.letter-bg):nth-child(3) { transition-delay: 0.22s; }
.pillar[data-reveal].is-in .pillar-text > *:not(.letter-bg):nth-child(4) { transition-delay: 0.34s; }

.pillar[data-reveal].is-in .pillar-text > *:not(.letter-bg) {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .header-nav a:not(.header-login) {
    display: none;
  }

  .header-auth {
    margin-left: 0;
  }

  .chapter-grid,
  .pillar,
  .pillar-reverse,
  .journey {
    grid-template-columns: 1fr;
  }

  .solution .chapter-grid {
    min-height: 0;
  }

  .solution .chapter-media {
    min-height: clamp(280px, 52vw, 420px);
  }

  .pillar-reverse .pillar-text,
  .pillar-reverse .pillar-media {
    order: initial;
  }

  .journey-sticky {
    position: relative;
    min-height: auto;
    padding-bottom: 1.5rem;
  }

  .journey-gallery {
    padding: 0 1rem 1rem;
  }

  .journey-gallery figure {
    min-height: 55vh;
  }

  .hero {
    align-items: center;
  }

  .mission-points {
    grid-template-columns: 1fr;
  }

  .letter-bg {
    font-size: clamp(13rem, 64vw, 24rem);
    -webkit-text-stroke-width: 1.1px;
    left: -0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-media img,
  .brand-mark,
  .hero-logo,
  .mission-logo,
  .hero-scroll,
  [data-reveal="media"].is-in img,
  .pillar[data-reveal].is-in .pillar-media img,
  .letter-bg {
    animation: none !important;
  }

  [data-reveal],
  [data-stagger] > *:not(.letter-bg),
  .mission-points li,
  .pillar[data-reveal] .pillar-text > *:not(.letter-bg),
  .hero-brand .word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .letter-bg {
    --letter-x: 0px !important;
    --letter-y: 0px !important;
    opacity: 0.68 !important;
    transform: translate3d(0, -52%, 0) !important;
    animation: none !important;
    transition: none !important;
  }

  .letter-bg--center {
    transform: translate3d(-50%, -52%, 0) !important;
  }

  [data-reveal="media"],
  .pillar[data-reveal] .pillar-media {
    clip-path: none !important;
  }
}
