:root {
  --ink: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --bg: #0c0c0c;
  --line: rgba(244, 241, 234, 0.18);
  --font: "Nunito", "Noto Sans TC", "Noto Sans SC", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.7;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 20px 15px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 20px;
  mix-blend-mode: difference;
}

@media (min-width: 1000px) {
  .site-header {
    padding: 30px;
  }
}

.nav-left,
.nav-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.nav-left a.is-home,
.nav-right a.is-active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.nav-lang {
  display: flex;
  gap: 10px;
  margin-left: 0.35rem;
}

.nav-lang a.is-active {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

/* Home reel */
.reel {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.reel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

@media (orientation: landscape) {
  .reel.is-portrait #reel-video {
    width: 50%;
    height: 100%;
    left: 25%;
    right: auto;
    object-fit: contain;
    background: #000;
  }
}

.reel-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 70%,
    rgba(0, 0, 0, 0.28) 100%
  );
}

.reel-bar {
  position: absolute;
  z-index: 6;
  left: 15px;
  right: 15px;
  bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  mix-blend-mode: difference;
  pointer-events: none;
}

@media (min-width: 1000px) {
  .reel-bar {
    left: 30px;
    right: 30px;
    bottom: 30px;
  }
}

.reel-caption {
  pointer-events: none;
  max-width: 42rem;
  min-width: 0;
}

.reel-caption h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 24px;
  text-transform: uppercase;
}

@media (min-width: 1000px) {
  .reel-caption h1 {
    font-size: 30px;
    line-height: 32px;
    letter-spacing: -0.01em;
  }
}

.reel-caption p {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 20px;
  color: inherit;
}

.reel-sound {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  flex-shrink: 0;
}

.reel-sound:hover {
  opacity: 0.7;
}

/* Frenzy-style intro: two words meet at center, then split to the edges */
body.home {
  --intro-gutter: 15px;
  --half-mark-height: 20px;
}

@media (min-width: 1000px) {
  body.home {
    --intro-gutter: 30px;
  }

  #intro-logo {
    font-size: 30px;
    line-height: 32px;
  }
}

body.home:not(.intro-has-played) {
  overflow: hidden;
}

body.home:not(.intro-has-played) .reel,
body.home:not(.intro-has-played) .site-header {
  visibility: hidden;
}

body.home.intro-has-played .site-header {
  visibility: visible;
  animation: header-in 1s ease both;
}

@keyframes header-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#site-intro {
  --background-color: #fff;
  --opacity: 1;
  --intro-scale: 1;
  overflow: hidden;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  transform: scale(var(--intro-scale));
  transform-origin: 50% calc(50% - var(--half-mark-height));
  color: #000;
  cursor: default;
}

#site-intro::before {
  z-index: 2;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  background: var(--background-color);
  transition: opacity 500ms linear;
}

#site-intro.is-fading::before {
  opacity: 0;
}

#intro-logo {
  position: relative;
  z-index: 3;
  display: flex;
  width: 100%;
  height: 0;
  overflow: visible;
  top: calc(50svh - 15px);
  color: inherit;
  mix-blend-mode: normal;
  text-transform: capitalize;
  letter-spacing: -0.03em;
  font-size: 22px;
  font-weight: 500;
  line-height: 24px;
  pointer-events: none;
}

.intro-col {
  flex: 0 0 50%;
  width: 50%;
}

.intro-col-left {
  text-align: left;
}

.intro-col-right {
  text-align: right;
}

#intro-logo-mark,
#intro-logo-division {
  display: inline-block;
  will-change: transform, color;
}

#site-intro.is-done {
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s linear;
}

/* Inner pages */
.page {
  min-height: 100vh;
  padding: 6.5rem 15px 4rem;
}

@media (min-width: 1000px) {
  .page {
    padding: 7rem 30px 4rem;
  }
}

.people {
  max-width: 58rem;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
}

.page-inner {
  max-width: 44rem;
  margin: 0 auto;
}

.page h1 {
  margin: 0 0 1.5rem;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 32px;
}

.page p {
  margin: 0 0 1.05rem;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(244, 241, 234, 0.88);
}

.kicker {
  margin: 2rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.page h1 + .kicker {
  margin: -0.35rem 0 1.75rem;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1.4;
}

.standfirst {
  margin: 1.6rem 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: var(--ink);
}

@media (min-width: 800px) {
  .people {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
  }
}

.person img {
  display: block;
  width: 30%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 1.1rem;
  background: #1a1a1a;
}

.person h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 24px;
}

.person .role {
  margin: 0.35rem 0 0.9rem;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--muted);
}

.person ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.person li {
  margin: 0 0 0.45rem;
  font-size: 18px;
  line-height: 1.35;
  color: rgba(244, 241, 234, 0.88);
}

.person a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

.contact a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
