:root {
  color-scheme: dark;
  --page: #0f100e;
  --surface: #191a17;
  --text: #f7f5ef;
  --muted: #c5c3bc;
  --line: rgba(255, 255, 255, .10);
  --gap: clamp(8px, 1.15vw, 18px);
  --edge: clamp(10px, 2vw, 30px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--page); }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--edge);
}

.person-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  color: inherit;
  background: #252521;
  border-radius: 8px;
  isolation: isolate;
  text-decoration: none;
  outline: 0 solid transparent;
  transition: transform 180ms ease, outline-color 180ms ease;
}
.person-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(.76) contrast(1.035);
  transition: transform 260ms ease, filter 260ms ease;
}
.person-card::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .78));
  pointer-events: none;
}
.person-card:hover img,
.person-card:focus-visible img {
  transform: scale(1.018);
  filter: saturate(.88) contrast(1.045) brightness(1.03);
}
.person-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
}
.person-name {
  position: absolute;
  z-index: 2;
  right: clamp(12px, 1.4vw, 22px);
  bottom: clamp(11px, 1.35vw, 20px);
  left: clamp(12px, 1.4vw, 22px);
  margin: 0;
  color: #fff;
  font-size: clamp(.95rem, 1.35vw, 1.35rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}

.language-switch {
  position: fixed;
  top: max(9px, env(safe-area-inset-top));
  right: max(9px, env(safe-area-inset-right));
  z-index: 20;
  display: grid;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  place-items: center;
  color: var(--text);
  background: rgba(15, 16, 14, .78);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background 160ms ease, border-color 160ms ease;
}
.language-switch:hover { background: #2b2c27; border-color: rgba(255, 255, 255, .24); }
.language-switch:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.profile-shell {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(68px, 7vw, 104px) var(--edge) clamp(24px, 4vw, 48px);
}
.back-link {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  z-index: 5;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--text);
  background: rgba(15, 16, 14, .82);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.45rem;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(10px);
}
.back-link:hover { background: #242520; }
.back-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.profile-step {
  position: fixed;
  top: 50%;
  z-index: 6;
  display: grid;
  width: 46px;
  height: 64px;
  place-items: center;
  color: var(--text);
  background: rgba(15, 16, 14, .82);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 2.25rem;
  line-height: 1;
  text-decoration: none;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: background 160ms ease, transform 160ms ease;
}
.profile-step--previous { left: max(14px, env(safe-area-inset-left)); }
.profile-step--next { right: max(14px, env(safe-area-inset-right)); }
.profile-step:hover { background: #2b2c27; transform: translateY(-50%) scale(1.04); }
.profile-step:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.profile-card {
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(320px, 1.14fr);
  width: min(100%, 1120px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}
.profile-photo {
  min-height: min(68svh, 640px);
  margin: 0;
  background: #252521;
}
.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.035);
}
.profile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 6vw, 82px);
}
.profile-copy h1 {
  max-width: 12ch;
  margin: 0 0 clamp(18px, 2.3vw, 30px);
  font-size: clamp(2.35rem, 5.3vw, 5.4rem);
  font-weight: 680;
  line-height: .96;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.profile-copy p {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.62;
}
.tts-toggle {
  display: grid;
  width: 34px;
  height: 34px;
  margin-top: 20px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}
.tts-toggle:hover,
.tts-toggle[aria-pressed="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .24);
}
.tts-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tts-icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tts-icon--speaker path { vector-effect: non-scaling-stroke; }
.tts-icon--pause { display: none; stroke: none; }
.tts-toggle[aria-pressed="true"] .tts-icon--speaker { display: none; }
.tts-toggle[aria-pressed="true"] .tts-icon--pause { display: block; }
.profile-videos {
  width: min(100%, 1120px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.profile-videos__disclosure > summary {
  display: flex;
  min-height: 48px;
  padding: 12px 16px;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  font-weight: 680;
  letter-spacing: -.01em;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.profile-videos__disclosure > summary::-webkit-details-marker { display: none; }
.profile-videos__disclosure > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 420;
  line-height: 1;
}
.profile-videos__disclosure[open] > summary::after { content: "−"; }
.profile-videos__disclosure > summary:hover { background: rgba(255, 255, 255, .035); }
.profile-videos__disclosure > summary:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.profile-videos__count {
  display: grid;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, .07);
  border-radius: 999px;
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
}
.profile-videos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  padding: 0 clamp(14px, 2vw, 20px) clamp(14px, 2vw, 20px);
}
.profile-video {
  min-width: 0;
  overflow: hidden;
  background: #11120f;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.profile-video__open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  color: #fff;
  background: #050505;
  border: 0;
  cursor: pointer;
}
.profile-video__open img,
.profile-video__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #181916;
  object-fit: cover;
  transition: filter 180ms ease, transform 220ms ease;
}
.profile-video__open:hover img,
.profile-video__open:focus-visible img {
  filter: brightness(.76);
  transform: scale(1.018);
}
.profile-video__open:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
}
.profile-video__open[aria-current="true"] { outline: 3px solid rgba(255, 255, 255, .72); outline-offset: -3px; }
.profile-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  padding-left: 3px;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .68);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  opacity: .92;
  transform: translate(-50%, -50%);
  transition: background 160ms ease, transform 160ms ease;
}
.profile-video__open:hover .profile-video__play,
.profile-video__open:focus-visible .profile-video__play {
  background: rgba(0, 0, 0, .88);
  transform: translate(-50%, -50%) scale(1.06);
}
.profile-video h3 {
  display: -webkit-box;
  min-height: 3.55em;
  margin: 0;
  padding: 10px 11px 11px;
  overflow: hidden;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 560;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body.video-lightbox-open { overflow: hidden; }
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: clamp(10px, 2.5vw, 28px);
  overflow: auto;
  place-items: center;
  background: rgba(3, 3, 3, .88);
  backdrop-filter: blur(14px);
}
.video-lightbox__panel {
  position: relative;
  display: flex;
  width: min(100%, 720px);
  min-height: 0;
  padding: clamp(10px, 1.8vw, 18px);
  flex-direction: column;
  align-items: center;
  background: #11120f;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .58);
}
.video-lightbox video {
  display: block;
  width: min(100%, calc(70svh * 9 / 16), 480px);
  max-height: 70svh;
  aspect-ratio: 9 / 16;
  background: #000;
  object-fit: contain;
}
.video-lightbox__close {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .72);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.video-lightbox__close:hover { background: #2c2d29; }
.video-lightbox__close:focus-visible,
.video-lightbox__step:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.video-lightbox__meta {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  width: min(100%, 600px);
  margin-top: 10px;
  align-items: center;
  gap: 10px;
}
.video-lightbox__copy { min-width: 0; text-align: center; }
.video-lightbox__copy h2 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(.9rem, 1.8vw, 1.05rem);
  font-weight: 650;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.video-lightbox__copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.3;
}
.video-lightbox__step {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.video-lightbox__step:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
.video-lightbox__step:disabled { opacity: .24; cursor: default; }
.video-lightbox__hint {
  margin: 9px 0 0;
  color: rgba(197, 195, 188, .72);
  font-size: .7rem;
  line-height: 1.35;
  text-align: center;
}
.profile-filmstrip {
  width: min(100%, 1120px);
  padding: 8px;
  overflow: hidden;
  background: rgba(15, 16, 14, .82);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .34);
  backdrop-filter: blur(14px);
}
.profile-filmstrip__track {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px;
  scrollbar-color: rgba(255, 255, 255, .24) transparent;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.profile-filmstrip__track:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .72);
  outline-offset: -2px;
  border-radius: 6px;
}
.profile-filmstrip__track::-webkit-scrollbar { height: 5px; }
.profile-filmstrip__track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .24);
  border-radius: 999px;
}
.profile-filmstrip__item {
  position: relative;
  flex: 0 0 62px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #252521;
  border: 2px solid transparent;
  border-radius: 5px;
  opacity: .52;
  scroll-snap-align: center;
  transition: border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}
.profile-filmstrip__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(.66) contrast(1.03);
}
.profile-filmstrip__video-count {
  position: absolute;
  right: 3px;
  bottom: 3px;
  z-index: 1;
  display: grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .78);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  font-size: .6rem;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  pointer-events: none;
}
.profile-filmstrip__item:hover,
.profile-filmstrip__item:focus-visible {
  opacity: .86;
  transform: translateY(-1px);
}
.profile-filmstrip__item:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.profile-filmstrip__item[aria-current="page"] {
  border-color: #fff;
  opacity: 1;
  transform: translateY(-1px);
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 760px) {
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person-card { aspect-ratio: 4 / 5; }
  .person-name { font-size: clamp(.9rem, 4.4vw, 1.2rem); }
  .profile-shell { display: block; padding: 70px 12px 18px; }
  .profile-card { display: block; }
  .profile-photo { min-height: 0; aspect-ratio: 4 / 5; }
  .profile-copy { padding: 30px 22px 38px; }
  .profile-copy h1 { max-width: none; font-size: clamp(2.25rem, 12vw, 4rem); }
  .profile-videos { margin-top: 12px; }
  .profile-videos__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .profile-step { top: 42svh; width: 40px; height: 56px; font-size: 2rem; }
  .profile-step--previous { left: max(6px, env(safe-area-inset-left)); }
  .profile-step--next { right: max(6px, env(safe-area-inset-right)); }
  .profile-filmstrip { margin-top: 12px; padding: 7px; }
  .profile-filmstrip__item { flex-basis: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
