/* ============================================================
   BRUK GETNET — scenes, part 1
   Hero · Doctrine · Career index
   Pinned scenes follow one contract: a tall .*__track that owns
   the scroll distance, and a sticky .*__stage that owns the frame.
   ============================================================ */

/* ── 01 · HERO ────────────────────────────────────────────────────────── */
.hero__track { height: 340vh; }

.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__figure {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(46vw, 480px);
  margin: 0;
  z-index: 2;
  transform: translate(-50%, -50%);
  will-change: transform, clip-path, filter;
}
.hero__figure img {
  width: 100%;
  height: auto;
  filter: brightness(0.4) contrast(1.14) saturate(0.62);
  will-change: filter;
}
html.js:not(.rm) .hero__figure { clip-path: inset(17% 0% 66% 0%); }

.hero__slug {
  position: absolute;
  top: calc(var(--navh) + 1.6rem);
  left: var(--pad);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.hero__slug-sep { width: 22px; height: 1px; background: var(--line); }

.hero__words {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.hero__word {
  position: absolute;
  font-family: var(--font-display);
  font-size: var(--t-hero);
  font-weight: 700;
  font-stretch: 76%;
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  mix-blend-mode: difference;
  color: #fff;
}
html.js:not(.rm) .hero__word { opacity: 0; }

.hero__id {
  position: absolute;
  z-index: 4;
  left: var(--pad);
  bottom: clamp(3.5rem, 9vh, 7rem);
  max-width: min(46ch, 52vw);
}
html.js:not(.rm) .hero__id { opacity: 0; }

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9.5vw, 10rem);
  font-weight: 500;
  font-stretch: 88%;
  line-height: 0.88;
  letter-spacing: -0.048em;
  text-transform: uppercase;
}

.hero__roles {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.6rem;
  font-size: var(--t-sm);
  color: var(--ink-60);
}
.hero__roles li { position: relative; }
.hero__roles li + li::before {
  content: '';
  position: absolute;
  left: -0.85rem;
  top: 0.62em;
  width: 4px;
  height: 1px;
  background: var(--ink-40);
}

.hero__hint {
  position: absolute;
  z-index: 4;
  right: var(--pad);
  bottom: clamp(3.4rem, 8vh, 5.5rem);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
  writing-mode: vertical-rl;
}
.hero__hint span { position: relative; display: block; padding-bottom: 42px; }
.hero__hint span::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--ink-40), transparent);
  animation: hintPulse 2.6s var(--ease-io) infinite;
  transform-origin: top;
}
@keyframes hintPulse {
  0%, 100% { transform: scaleY(0.35); opacity: 0.25; }
  45% { transform: scaleY(1); opacity: 1; }
}

/* ── 02 · DOCTRINE ────────────────────────────────────────────────────── */
.doctrine__track { height: 380vh; }

.doctrine__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  padding: calc(var(--navh) + 3vh) var(--pad) 8vh;
}

.doctrine__list { position: relative; height: 100%; max-width: var(--maxw); margin: 0 auto; }

/* statement top-left, its number bottom-right: the frame stays occupied */
.stmt {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-left: clamp(1.2rem, 2.6vw, 2.6rem);
}
html.js:not(.rm) .stmt { opacity: 0; }

.stmt__lead {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 550;
  font-stretch: 82%;
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  max-width: 13ch;
  padding-bottom: 0.06em;
}

.stmt__data {
  grid-row: 3;
  justify-self: end;
  text-align: right;
  display: grid;
  gap: 0.9rem;
  justify-items: end;
  padding-top: clamp(1rem, 3vh, 2rem);
  border-top: 1px solid var(--line);
  width: min(52ch, 72%);
}
.stmt__num {
  display: flex;
  align-items: baseline;
  gap: 0.06em;
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 0.84;
  padding-bottom: 0.04em;
}
.stmt__num b { font-family: var(--font-display); font-weight: 600; font-stretch: 84%; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stmt__num em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.42em;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stmt__num--word {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 7.5rem);
  letter-spacing: -0.015em;
  text-transform: none;
  line-height: 0.92;
}
.stmt__label { font-size: var(--t-sm); color: var(--ink-60); max-width: 34ch; }

.doctrine__rail {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--line-soft);
}
.doctrine__rail i {
  position: absolute;
  inset: 0;
  background: var(--ink-40);
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}

/* ── 03 · CAREER INDEX ────────────────────────────────────────────────── */
.index {
  padding: clamp(6rem, 16vh, 13rem) var(--pad) clamp(5rem, 12vh, 10rem);
  max-width: var(--maxw);
  margin: 0 auto;
}

.index__head { display: grid; gap: 1.6rem; margin-bottom: clamp(3.5rem, 9vh, 7rem); }
.index__title {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 450;
  font-stretch: 92%;
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 22ch;
}
.index__title .ln > i { padding-bottom: 0.06em; }

.index__list { position: relative; }

.index__row {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1.15fr) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3.4vh, 2.6rem) 0;
  border-top: 1px solid var(--line);
}
.index__row:last-of-type { border-bottom: 1px solid var(--line); }

.index__no {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 0.5em;
}
.index__co {
  display: grid;
  gap: 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 3.2rem);
  font-weight: 500;
  font-stretch: 92%;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.index__co small {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-40);
  text-transform: uppercase;
}
.index__co:hover span { color: var(--accent); }
.index__co span { transition: color 0.35s var(--ease); }
.index__role { font-size: var(--t-sm); color: var(--ink-60); }
.index__yrs {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  color: var(--ink-80);
}
.index__yrs i { width: clamp(18px, 4vw, 54px); height: 1px; background: var(--line); }

.index__line {
  position: absolute;
  left: 1.05rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-soft);
}
.index__line i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}

html.js:not(.rm) [data-index-row] { opacity: 0.32; }

/* ── mobile · part 1 ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero__track { height: 300vh; }
  .hero__figure { width: 76vw; }
  .hero__word { font-size: clamp(3.2rem, 21vw, 8rem); }
  .hero__id { right: var(--pad); max-width: none; bottom: clamp(4.5rem, 12vh, 8rem); }
  .hero__hint { display: none; }

  .doctrine__track { height: 340vh; }
  .stmt { gap: 2rem; }
  .stmt__lead { max-width: 11ch; }
  .doctrine__rail { display: none; }

  .index__row {
    grid-template-columns: 2.2rem 1fr;
    grid-template-areas: 'no co' '. role' '. yrs';
    gap: 0.5rem 1rem;
  }
  .index__no { grid-area: no; }
  .index__co { grid-area: co; }
  .index__role { grid-area: role; }
  .index__yrs { grid-area: yrs; margin-top: 0.4rem; }
  .index__line { left: 0.6rem; }
}

/* ── reduced motion · part 1 ──────────────────────────────────────────── */
html.rm .hero__track,
html.rm .doctrine__track { height: auto; }
html.rm .hero__stage,
html.rm .doctrine__stage { position: static; height: auto; overflow: visible; padding: 0; }

html.rm .hero__stage {
  display: grid;
  gap: 2.5rem;
  padding: clamp(7rem, 18vh, 11rem) var(--pad) clamp(3rem, 8vh, 6rem);
}
html.rm .hero__figure {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: min(420px, 70vw);
}
html.rm .hero__figure img { filter: none; }
html.rm .hero__slug { position: static; }
html.rm .hero__words {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.4rem;
  place-items: start;
}
html.rm .hero__word {
  position: static;
  font-size: clamp(2rem, 7vw, 4rem);
  mix-blend-mode: normal;
  color: var(--ink-40);
}
html.rm .hero__id { position: static; }

html.rm .doctrine__list { height: auto; display: grid; gap: clamp(3rem, 8vh, 6rem); padding: clamp(5rem, 12vh, 9rem) 0; }
html.rm .stmt { position: static; inset: auto; }
html.rm .doctrine__rail { display: none; }
html.rm [data-index-row] { opacity: 1; }
