/* ============================================================
   CONEN.DEV — about.css — ABOUT page only
   Sections: hero / the descent (signature) / principles /
             craft / crew
   ============================================================ */

/* ---------- HERO ---------- */
.ahero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.ahero__media {
  position: absolute;
  inset: 0;
  background: var(--abyss);
}
.ahero__media .media-fallback { position: absolute; inset: 0; }
.ahero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* faded in by CONEN.initVideo */
}
.ahero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(4, 7, 13, .78) 100%),
    linear-gradient(180deg, rgba(4, 7, 13, .6), transparent 30%, transparent 60%, rgba(4, 7, 13, .95));
}
.ahero__content {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(6rem, 14vh, 10rem);
}
.ahero__title { max-width: 11em; }
.ahero__title .si {
  color: var(--ghost);
  text-shadow: 0 0 60px rgba(87, 230, 255, .4);
}
.ahero__meta {
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
  color: var(--ghost-dim);
}
.ahero__note {
  position: absolute;
  right: var(--gutter);
  bottom: 5vh;
  z-index: 3;
  color: var(--ghost-faint);
  font-size: 10px;
  letter-spacing: .2em;
}

/* ============================================================
   THE DESCENT — signature
   Default (mobile / reduced motion): 5 stacked static panels.
   Desktop + motion OK: 520vh stage, sticky viewport, JS-driven
   crossfade of zones + background layers + depth counter.
   ============================================================ */
.descent__stage { position: relative; }
.descent__sticky { position: relative; }

.descent__bg, .descent__meter { display: none; }

.descent__kicker {
  padding: clamp(3rem, 8vw, 5rem) var(--gutter) 0;
  margin-bottom: 0;
}

.descent__zone {
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.descent__zone--1 { background: linear-gradient(180deg, #101f38, #0a1428); }
.descent__zone--2 { background: linear-gradient(180deg, #0a1428, #070e1d); }
.descent__zone--3 { background: linear-gradient(180deg, #060b16, #04070d); }
.descent__zone--4 { background: linear-gradient(180deg, #03050b, #020409); }
.descent__zone--5 { background: linear-gradient(180deg, #020409, #010204); }

/* crew level 1: founder portrait beside the copy */
.descent__person {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.descent__portrait {
  flex-shrink: 0;
  width: clamp(110px, 14vw, 190px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(87, 230, 255, .35);
  box-shadow: 0 0 40px rgba(87, 230, 255, .15), 0 18px 50px rgba(0, 0, 0, .5);
}

.descent__tag {
  color: var(--ghost-faint);
  margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
}
.descent__tag-zone { color: var(--glow); }
.descent__title {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  letter-spacing: -0.03em;
  line-height: .98;
  max-width: 11em;
}
.descent__title .si { color: var(--ghost); text-shadow: 0 0 50px rgba(87, 230, 255, .3); }
.descent__copy {
  margin-top: clamp(1.2rem, 2.5vw, 2rem);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--ghost-dim);
  max-width: 33em;
}

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .descent__stage { height: 520vh; }
  .descent__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }

  .descent__bg { display: block; position: absolute; inset: 0; }
  .descent__layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    will-change: opacity;
  }
  .descent__layer--1 {
    opacity: 1;
    background:
      radial-gradient(130% 80% at 50% -25%, rgba(87, 230, 255, .22), transparent 60%),
      linear-gradient(180deg, #14284a, #0a1428);
  }
  .descent__layer--2 { background: linear-gradient(180deg, #0a1428, #070e1d 70%); }
  .descent__layer--3 { background: linear-gradient(180deg, #060b16, #04070d 70%); }
  .descent__layer--4 { background: linear-gradient(180deg, #03050b, #020409 60%); }
  .descent__layer--5 { background: linear-gradient(180deg, #020409, #010204 60%); }

  /* zone 1 ambient: light shafts from the surface */
  .descent__rays {
    position: absolute;
    inset: -10% -5%;
    background:
      linear-gradient(100deg, transparent 18%, rgba(157, 245, 227, .09) 25%, transparent 33%),
      linear-gradient(82deg, transparent 40%, rgba(87, 230, 255, .11) 50%, transparent 58%),
      linear-gradient(95deg, transparent 64%, rgba(232, 241, 246, .07) 72%, transparent 79%);
    mix-blend-mode: screen;
    filter: blur(14px);
    transform-origin: 50% -20%;
    animation: rays-sway 11s var(--ease-in-out) infinite alternate;
    will-change: opacity;
  }
  @keyframes rays-sway {
    from { transform: skewX(-2deg); }
    to   { transform: skewX(2.5deg); }
  }

  /* zone 4 ambient: dense bioluminescent motes */
  .descent__motes {
    position: absolute;
    inset: -60% 0 0 0;
    opacity: 0;
    background-image:
      radial-gradient(1.5px 1.5px at 12% 18%, rgba(87, 230, 255, .8), transparent 100%),
      radial-gradient(1px 1px at 34% 62%, rgba(87, 230, 255, .55), transparent 100%),
      radial-gradient(2px 2px at 56% 30%, rgba(157, 245, 227, .5), transparent 100%),
      radial-gradient(1px 1px at 71% 74%, rgba(87, 230, 255, .65), transparent 100%),
      radial-gradient(1.5px 1.5px at 88% 44%, rgba(87, 230, 255, .45), transparent 100%),
      radial-gradient(1px 1px at 22% 86%, rgba(157, 245, 227, .6), transparent 100%),
      radial-gradient(1.5px 1.5px at 64% 92%, rgba(87, 230, 255, .5), transparent 100%),
      radial-gradient(1px 1px at 44% 8%, rgba(87, 230, 255, .7), transparent 100%);
    background-size: 46vw 40vh;
    animation: motes-rise 26s linear infinite;
    will-change: opacity, transform;
  }
  @keyframes motes-rise {
    from { transform: translateY(0); }
    to   { transform: translateY(38vh); }
  }

  .descent__kicker {
    position: absolute;
    top: calc(var(--nav-h) + 48px);
    left: var(--gutter);
    padding: 0;
    z-index: 3;
  }

  .descent__meter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .4rem;
    position: absolute;
    right: calc(var(--gutter) + 44px); /* clear of the depth HUD */
    bottom: 8vh;
    z-index: 3;
    color: var(--ghost-faint);
  }
  .descent__meter-read {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    letter-spacing: .08em;
    color: var(--ghost);
    font-variant-numeric: tabular-nums;
  }
  .descent__meter-read .descent__depth { color: inherit; }
  .descent__meter-label { font-size: 9px; letter-spacing: .3em; }

  .descent__zone {
    position: absolute;
    left: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: min(52vw, 760px);
    padding: 0;
    border: 0;
    background: none;
    opacity: 0;
    visibility: hidden;
    will-change: opacity, transform;
  }
  .descent__zone--1 { opacity: 1; visibility: visible; }
}

/* ---------- PRINCIPLES ---------- */
.prin { background: linear-gradient(180deg, var(--abyss), var(--deep) 60%, var(--abyss)); }
.prin__head { max-width: 9em; }
.prin__head .si { color: var(--glow); text-shadow: 0 0 40px rgba(87, 230, 255, .3); }
.prin__list {
  margin-top: clamp(3rem, 6vw, 5rem);
  counter-reset: prin;
}
.prin__row {
  display: grid;
  grid-template-columns: 6rem 1.1fr 1fr;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.6rem, 3vw, 2.6rem);
  border-top: 1px solid var(--line);
  position: relative;
}
.prin__row:last-child { border-bottom: 1px solid var(--line); }
.prin__row::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 32px; height: 1px;
  background: var(--glow);
}
.prin__num { color: var(--glow); }
.prin__name {
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.prin__desc {
  color: var(--ghost-dim);
  font-size: .98rem;
  line-height: 1.6;
  max-width: 34em;
}

/* ---------- CRAFT ---------- */
.craft__head .si { color: var(--ghost); text-shadow: 0 0 50px rgba(87, 230, 255, .35); }
.craft__lead { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.craft__rows { margin-top: clamp(3rem, 6vw, 5rem); }
.craft__row {
  display: grid;
  grid-template-columns: minmax(11rem, 18rem) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3.4rem);
  border-top: 1px solid var(--line);
}
.craft__row:last-child { border-bottom: 1px solid var(--line); }
.craft__phase {
  display: block;
  color: var(--ghost-faint);
  margin-bottom: .9rem;
}
.craft__name {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.craft__desc {
  color: var(--ghost-dim);
  max-width: 38em;
  line-height: 1.6;
}
.craft__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.4rem;
}
.craft__tags li {
  padding: .55em 1.1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ghost-dim);
  transition: border-color .3s ease, color .3s ease;
}
.craft__tags li:hover { border-color: var(--glow-soft); color: var(--glow); }

/* ---------- CREW ---------- */
.crew { background: linear-gradient(180deg, var(--abyss), var(--ink)); }
.crew__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}
.crew__statement h2 { max-width: 9em; }
.crew__statement .si { color: var(--glow); text-shadow: 0 0 40px rgba(87, 230, 255, .3); }
.crew__copy {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--ghost-dim);
  max-width: 36em;
  line-height: 1.65;
}
.crew__stats { margin-top: clamp(2.5rem, 6vw, 4.6rem); }
.crew__stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}
.crew__stat:last-child { border-bottom: 1px solid var(--line); }
.crew__stat dt { color: var(--ghost-faint); }
.crew__stat dd {
  color: var(--glow);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .ahero__note { display: none; }

  .descent__person { flex-direction: column; }

  .prin__row { grid-template-columns: 3rem 1fr; }
  .prin__desc { grid-column: 2; }

  .craft__row { grid-template-columns: 1fr; }

  .crew__grid { grid-template-columns: 1fr; }
  .crew__stats { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .descent__rays, .descent__motes { animation: none; }
}
