:root {
  color-scheme: dark;
  --canvas: #090d0c;
  --canvas-soft: #111816;
  --ink: #eef1e9;
  --muted: #abb2aa;
  --faint: rgba(213, 220, 211, 0.42);
  --line: rgba(211, 220, 211, 0.15);
  --line-strong: rgba(211, 220, 211, 0.3);
  --lime: #b8ce2f;
  --gold: #c49a43;
  --font-display: "Arial Narrow", "Aptos Narrow", "Roboto Condensed", sans-serif;
  --font-ui: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--canvas);
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
}

.operator-profile {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 480px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 7, 6, 0.98) 0%, rgba(7, 11, 10, 0.9) 36%, rgba(7, 11, 10, 0.46) 68%, rgba(6, 9, 8, 0.82) 100%),
    var(--canvas);
}

.operator-profile::before,
.operator-profile::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.operator-profile::before {
  inset: 0;
  background:
    radial-gradient(circle at 77% 48%, rgba(184, 206, 47, 0.08), transparent 27%),
    linear-gradient(180deg, transparent 0 70%, rgba(3, 5, 4, 0.5) 100%);
}

.operator-profile::after {
  top: 0;
  right: clamp(1rem, 6.5vw, 8rem);
  width: 1px;
  height: 100%;
  background: var(--line-strong);
}

.operator-profile__grid {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0.62;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(rgba(216, 225, 215, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 225, 215, 0.06) 1px, transparent 1px);
  background-size: 25vw 25vh, 25vw 25vh, 6.25vw 6.25vh, 6.25vw 6.25vh;
  mask-image: linear-gradient(90deg, black, rgba(0, 0, 0, 0.72) 74%, rgba(0, 0, 0, 0.3));
}

.operator-profile__index {
  position: absolute;
  z-index: 5;
  top: max(1rem, env(safe-area-inset-top));
  right: max(clamp(1.5rem, 3vw, 4rem), env(safe-area-inset-right));
  color: var(--muted);
  font: 700 clamp(0.58rem, 0.75vw, 0.76rem) / 1 var(--font-display);
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

.operator-profile__background-art {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 29%;
  width: max(104vw, 115vh);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%) scale(1.08);
  transform-origin: center;
  opacity: 0.26;
  filter: grayscale(1) contrast(1.16) brightness(0.54);
  pointer-events: none;
  user-select: none;
}

.operator-profile__wordmark {
  position: absolute;
  z-index: 1;
  right: -0.05em;
  bottom: -0.18em;
  color: rgba(233, 239, 230, 0.052);
  font: 900 clamp(7rem, 20vw, 24rem) / 0.78 var(--font-display);
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
}

.operator-profile__brand {
  position: absolute;
  z-index: 6;
  top: max(clamp(1.25rem, 4vh, 3rem), env(safe-area-inset-top));
  left: max(clamp(2rem, 11vw, 14rem), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1vw, 1rem);
}

.operator-profile__brand::after {
  position: absolute;
  top: calc(100% + clamp(0.65rem, 1.3vh, 1rem));
  left: 0;
  width: min(34vw, 30rem);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--lime) 0 24%, var(--line-strong) 24% 100%);
}

.operator-profile__logo {
  display: block;
  width: clamp(3.2rem, 4.6vw, 5.8rem);
  height: auto;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.35));
}

.operator-profile__brand-copy {
  display: grid;
  gap: 0.18rem;
  color: var(--muted);
  font: 700 clamp(0.56rem, 0.67vw, 0.72rem) / 1 var(--font-display);
}

.operator-profile__brand-copy span:first-child {
  color: var(--ink);
  font-size: 1.28em;
}

.operator-profile__copy {
  position: absolute;
  z-index: 5;
  top: 38%;
  left: max(clamp(2rem, 11vw, 14rem), env(safe-area-inset-left));
  width: min(33vw, 34rem);
  min-width: 19rem;
  transform: translateY(-14%);
}

.operator-profile__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 clamp(0.7rem, 1.5vh, 1.1rem);
  color: var(--lime);
  font: 800 clamp(0.64rem, 0.8vw, 0.86rem) / 1 var(--font-display);
}

.operator-profile__eyebrow::before {
  width: clamp(1.7rem, 3vw, 3rem);
  height: 3px;
  content: "";
  background: var(--lime);
}

.operator-profile__name-block {
  position: relative;
  padding: clamp(0.65rem, 1.3vh, 1rem) 0 clamp(0.8rem, 1.6vh, 1.25rem);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.operator-profile__latin {
  margin: 0 0 0.18rem;
  color: var(--muted);
  font: 800 clamp(0.72rem, 1.1vw, 1.12rem) / 1 var(--font-display);
}

.operator-profile h1 {
  margin: 0;
  color: transparent;
  font-size: clamp(2.45rem, 4.9vw, 5.85rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
  -webkit-text-stroke: 1.15px var(--ink);
  text-wrap: nowrap;
  text-shadow: none;
}

.operator-profile__role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.72rem;
  margin: clamp(0.8rem, 1.8vh, 1.35rem) 0 0;
  color: var(--muted);
  font-size: clamp(0.7rem, 0.9vw, 0.95rem);
  font-weight: 600;
  line-height: 1.4;
}

.operator-profile__role span:first-child {
  color: var(--ink);
}

.operator-profile__role span[aria-hidden] {
  color: var(--gold);
}

.operator-profile__archive {
  display: grid;
  margin: clamp(1.15rem, 3vh, 2.25rem) 0 0;
  width: min(100%, 25rem);
  border-top: 1px solid var(--line);
}

.operator-profile__archive div {
  display: grid;
  grid-template-columns: minmax(5.6rem, 0.8fr) minmax(0, 1fr);
  align-items: baseline;
  gap: clamp(0.75rem, 2vw, 2rem);
  min-width: 0;
  padding: clamp(0.52rem, 1.15vh, 0.82rem) 0;
  border-bottom: 1px solid var(--line);
}

.operator-profile__archive dt,
.operator-profile__archive dd {
  margin: 0;
}

.operator-profile__archive dt {
  color: var(--faint);
  font: 400 clamp(0.64rem, 0.72vw, 0.78rem) / 1.25 var(--font-ui);
}

.operator-profile__archive dd {
  color: rgba(238, 241, 233, 0.88);
  font: 500 clamp(0.72rem, 0.86vw, 0.92rem) / 1.25 var(--font-ui);
  white-space: nowrap;
}

.operator-profile__figure {
  position: absolute;
  z-index: 4;
  right: clamp(7rem, 12vw, 15rem);
  bottom: -1.5vh;
  width: min(52vw, 86vh);
  height: min(96vh, 68vw);
  margin: 0;
  pointer-events: none;
}

.operator-profile__foreground-art {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 1.1rem 1.7rem rgba(0, 0, 0, 0.56));
  user-select: none;
}

.operator-profile__footer-line {
  position: absolute;
  z-index: 6;
  right: max(clamp(1.5rem, 3vw, 4rem), env(safe-area-inset-right));
  bottom: max(clamp(1rem, 2.2vh, 1.8rem), env(safe-area-inset-bottom));
  left: max(clamp(2rem, 11vw, 14rem), env(safe-area-inset-left));
  display: flex;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line-strong);
  color: var(--faint);
  font: 700 clamp(0.52rem, 0.62vw, 0.68rem) / 1 var(--font-display);
}

@media (max-width: 760px) {
  .operator-profile {
    background:
      linear-gradient(90deg, rgba(4, 7, 6, 0.98) 0%, rgba(7, 11, 10, 0.84) 45%, rgba(7, 11, 10, 0.34) 78%, rgba(6, 9, 8, 0.6) 100%),
      var(--canvas);
  }

  .operator-profile::after,
  .operator-profile__index,
  .operator-profile__brand-copy,
  .operator-profile__footer-line span:first-child {
    display: none;
  }

  .operator-profile__grid {
    background-size: 50vw 25vh, 50vw 25vh, 12.5vw 6.25vh, 12.5vw 6.25vh;
  }

  .operator-profile__background-art {
    left: -16%;
    width: max(154vw, 106vh);
    opacity: 0.22;
  }

  .operator-profile__brand {
    top: max(0.6rem, env(safe-area-inset-top));
    left: max(1.25rem, env(safe-area-inset-left));
  }

  .operator-profile__brand::after {
    top: calc(100% + 0.35rem);
    width: 7rem;
  }

  .operator-profile__logo {
    width: clamp(2.7rem, 11vw, 3.6rem);
  }

  .operator-profile__copy {
    top: 33%;
    left: max(1.25rem, env(safe-area-inset-left));
    width: 44vw;
    min-width: 8.8rem;
    transform: translateY(-12%);
  }

  .operator-profile__eyebrow {
    max-width: 100%;
    margin-bottom: 0.45rem;
    font-size: clamp(0.48rem, 1.9vw, 0.6rem);
    white-space: nowrap;
  }

  .operator-profile__eyebrow::before {
    width: clamp(0.8rem, 3vw, 1.2rem);
    height: 2px;
  }

  .operator-profile__name-block {
    padding: 0.45rem 0 0.55rem;
  }

  .operator-profile__latin {
    font-size: clamp(0.52rem, 2.3vw, 0.7rem);
  }

  .operator-profile h1 {
    font-size: clamp(1.7rem, 9vw, 2.55rem);
  }

  .operator-profile__role {
    display: grid;
    gap: 0.12rem;
    margin-top: 0.55rem;
    font-size: clamp(0.55rem, 2.25vw, 0.7rem);
  }

  .operator-profile__role span[aria-hidden] {
    display: none;
  }

  .operator-profile__archive {
    margin-top: clamp(0.55rem, 1.6vh, 0.85rem);
    width: 100%;
  }

  .operator-profile__archive div {
    grid-template-columns: minmax(3.6rem, 46%) minmax(0, 1fr);
    gap: 0.35rem;
    min-height: 1.9rem;
    padding: 0.34rem 0;
  }

  .operator-profile__archive dt {
    margin-bottom: 0;
    font-size: clamp(0.48rem, 1.9vw, 0.58rem);
  }

  .operator-profile__archive dd {
    font-size: clamp(0.58rem, 2.2vw, 0.7rem);
  }

  .operator-profile__figure {
    right: -5vw;
    bottom: -0.5vh;
    width: 68vw;
    height: 92vh;
  }

  .operator-profile__wordmark {
    right: -0.08em;
    bottom: 0.08em;
    font-size: clamp(5.5rem, 26vw, 9rem);
    writing-mode: vertical-rl;
  }

  .operator-profile__footer-line {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.7rem, env(safe-area-inset-bottom));
    left: max(1.25rem, env(safe-area-inset-left));
    justify-content: flex-end;
    font-size: 0.5rem;
  }
}

@media (max-height: 680px) {
  .operator-profile__brand {
    top: max(0.7rem, env(safe-area-inset-top));
  }

  .operator-profile__copy {
    top: 27%;
  }

  .operator-profile__archive {
    margin-top: 0.7rem;
  }

  .operator-profile__archive div {
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
  }

  .operator-profile__figure {
    height: 94vh;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .operator-profile__copy,
  .operator-profile__brand {
    animation: copy-in 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .operator-profile__brand {
    animation-delay: 80ms;
  }

  .operator-profile__copy {
    animation-delay: 140ms;
  }

  .operator-profile__foreground-art {
    animation: figure-in 1.05s 100ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .operator-profile__background-art {
    animation: background-in 1.4s ease-out both;
  }
}

@keyframes copy-in {
  from {
    opacity: 0;
    translate: -1rem 0;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes figure-in {
  from {
    opacity: 0;
    translate: 2.5rem 1.5rem;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes background-in {
  from {
    opacity: 0;
    scale: 1.035;
  }
}

@media (forced-colors: active) {
  .operator-profile,
  .operator-profile__archive div {
    background: Canvas;
  }

  .operator-profile__grid,
  .operator-profile__background-art,
  .operator-profile__wordmark {
    display: none;
  }

  .operator-profile__archive,
  .operator-profile__archive div,
  .operator-profile__name-block,
  .operator-profile__footer-line {
    border-color: CanvasText;
  }

  .operator-profile h1 {
    color: CanvasText;
    -webkit-text-stroke: 0;
  }
}
