/* ==========================================================================
   OSNIDATWAY portfolio
   Palette: plum-black night, warm bone paper, sodium-streetlight amber.
   Type: Big Shoulders Display (headlines) + Hanken Grotesk (text).
   ========================================================================== */

:root {
  --ink: #15101A;
  --ink-2: #1F1826;
  --ink-3: #2A2132;
  --bone: #F0E7DA;
  --muted: #B3A9B8;
  --line: rgba(240, 231, 218, .16);
  --sun: #F6A93B;
  --sun-hi: #FFBC5A;
  --sun-ink: #1A1208;

  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 4.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--sun); color: var(--sun-ink);
  padding: .7rem 1.1rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; }
.section { padding: clamp(4.5rem, 10vw, 9rem) var(--gutter); }

.title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.2rem, 8.5vw, 7.5rem);
  line-height: .88;
  letter-spacing: -.005em;
}

.textlink {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
  transition: color .2s;
}
.textlink:hover { color: var(--sun); }

.inline-link {
  text-decoration-color: var(--sun);
  text-underline-offset: .25em;
}
.inline-link:hover { color: var(--sun); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sun); color: var(--sun-ink);
  border: 0; border-radius: 999px;
  padding: 1rem 2rem;
  font: inherit; font-weight: 700; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--sun-hi); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }

.noscript-note { margin-top: 1.5rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 1rem var(--gutter);
  transition: background-color .3s, backdrop-filter .3s;
}
.site-header[data-scrolled] {
  background: rgba(21, 16, 26, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1680px; margin-inline: auto;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--display); font-weight: 900;
  font-size: 1.65rem; letter-spacing: .02em; line-height: 1;
  text-decoration: none;
  transition: opacity .3s;
}
.brand__mark { width: auto; height: 2.5rem; }
.site-header:not([data-scrolled]) .brand { opacity: 0; }
.site-header:not([data-scrolled]) .brand:focus-visible { opacity: 1; }

.site-nav ul { display: flex; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.site-nav a {
  position: relative; display: inline-block; padding: .4rem 0;
  font-size: .95rem; font-weight: 500; text-decoration: none;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--sun); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="location"]::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: .75rem;
    background: none; border: 0; color: var(--bone);
    font: inherit; font-weight: 600; cursor: pointer; padding: .4rem 0;
  }
  .nav-toggle__bars, .nav-toggle__bars::before {
    display: block; width: 1.5rem; height: 2px; background: currentColor;
    transition: transform .3s var(--ease);
  }
  .nav-toggle__bars { position: relative; transform: translateY(-4px); }
  .nav-toggle__bars::before { content: ""; position: absolute; top: 8px; left: 0; }
  .nav-open .nav-toggle__bars { transform: translateY(0) rotate(45deg); }
  .nav-open .nav-toggle__bars::before { top: 0; transform: rotate(-90deg); }

  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    display: grid; place-content: center;
    background: var(--ink);
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-open .brand { opacity: 1; position: relative; z-index: 2; }
  .site-nav ul { flex-direction: column; gap: .5rem; text-align: left; }
  .site-nav a {
    font-family: var(--display); font-weight: 800;
    font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 1.05;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 100vh; min-height: 100svh;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__fallback {
  position: absolute; inset: -20%;
  background:
    radial-gradient(55% 45% at 18% 28%, rgba(246, 169, 59, .30), transparent 70%),
    radial-gradient(50% 55% at 82% 72%, rgba(196, 58, 96, .24), transparent 70%),
    radial-gradient(40% 40% at 60% 20%, rgba(60, 120, 140, .18), transparent 70%);
}
.hero__poster {
  position: absolute; inset: -8%; width: 116%; height: 116%;
  object-fit: cover; opacity: .38;
  filter: blur(34px) saturate(1.15);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .08; mix-blend-mode: overlay; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(21, 16, 26, .9) 0%, rgba(21, 16, 26, .25) 50%, rgba(21, 16, 26, .55) 100%);
  pointer-events: none;
}
.hero__content {
  position: relative; width: 100%; max-width: 1680px; margin-inline: auto;
  padding: 8rem var(--gutter) clamp(2rem, 6vh, 4rem);
}

.wordmark {
  font-family: var(--display); font-weight: 900;
  font-size: 11vw; line-height: .9; /* starting size; main.js fits it exactly to the width */
  letter-spacing: 0;
}
.wordmark__letters {
  display: flex; justify-content: space-between;
  overflow: hidden; padding-block: .04em;
}
.wordmark__letters span { display: block; }

.hero__roles {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem;
  margin-top: clamp(1rem, 2.5vh, 1.75rem);
  font-weight: 600; font-size: clamp(.85rem, 1.6vw, 1.15rem);
  letter-spacing: .2em; text-transform: uppercase;
}
.hero__roles .sep { color: var(--sun); }

.hero__tagline {
  margin-top: .9rem;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  color: var(--bone);
}

.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
}

.play {
  display: inline-flex; align-items: center; gap: 1rem;
  font-weight: 600; font-size: 1.05rem; text-decoration: none;
}
.play__icon {
  display: grid; place-items: center;
  width: 4.25rem; height: 4.25rem; border-radius: 50%;
  background: var(--sun);
  transition: transform .25s var(--ease), background-color .2s;
}
.play__icon::before {
  content: ""; margin-left: .22rem;
  border-style: solid; border-width: .7rem 0 .7rem 1.1rem;
  border-color: transparent transparent transparent var(--sun-ink);
}
.play:hover .play__icon { transform: scale(1.08); background: var(--sun-hi); }

/* One orchestrated moment: the name rises into place, then the lines follow. */
@media (prefers-reduced-motion: no-preference) {
  .hero__fallback { animation: drift 26s ease-in-out infinite alternate; }
  .hero__poster { animation: drift 30s ease-in-out infinite alternate; }

  .wordmark__letters span {
    transform: translateY(105%);
    animation: rise 1s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 60ms + 150ms);
  }
  .wordmark__letters span:nth-child(2)  { --i: 1; }
  .wordmark__letters span:nth-child(3)  { --i: 2; }
  .wordmark__letters span:nth-child(4)  { --i: 3; }
  .wordmark__letters span:nth-child(5)  { --i: 4; }
  .wordmark__letters span:nth-child(6)  { --i: 5; }
  .wordmark__letters span:nth-child(7)  { --i: 6; }
  .wordmark__letters span:nth-child(8)  { --i: 7; }
  .wordmark__letters span:nth-child(9)  { --i: 8; }
  .wordmark__letters span:nth-child(10) { --i: 9; }

  .hero__roles, .hero__tagline, .hero__actions {
    opacity: 0; animation: fade .9s var(--ease) forwards;
  }
  .hero__roles { animation-delay: 1s; }
  .hero__tagline { animation-delay: 1.15s; }
  .hero__actions { animation-delay: 1.3s; }
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes drift { to { transform: translate3d(4%, -3%, 0) scale(1.08); } }

/* ---------- Showreel ---------- */
.showreel {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink-2);
}
.showreel__ambient { position: absolute; inset: 0; z-index: -1; }
.showreel__ambient::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--ink) 0%, rgba(31, 24, 38, .55) 30%, rgba(31, 24, 38, .55) 70%, var(--ink) 100%);
}
.showreel__ambient-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(60px) saturate(1.2); transform: scale(1.3); opacity: .55;
}

.showreel__grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}
.showreel__lede {
  margin-top: 1.5rem; max-width: 32ch;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1;
}
.reel-list { margin-top: 2rem; max-width: 30rem; }
.reel-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .85rem 0; border-top: 1px solid var(--line);
}
.reel-list li:last-child { border-bottom: 1px solid var(--line); }
.reel-list__name {
  font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1;
}
.reel-list__kind { color: var(--muted); font-size: .95rem; }
.showreel__more { margin-top: 2rem; }

/* The portrait stage: a frame that matches the video's real shape and never crops it. */
.stage { display: grid; justify-items: center; }
.stage__frame, .tile__frame { --ar: .5625; }
.stage__frame {
  position: relative; overflow: hidden;
  height: min(80vh, 46rem); height: min(80svh, 46rem);
  aspect-ratio: var(--ar);
  max-width: 100%;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px var(--line);
}

.thumb__bg, .thumb__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.thumb__bg {
  object-fit: cover; filter: blur(28px) saturate(1.1);
  transform: scale(1.25); opacity: .7;
}
.thumb__img { object-fit: contain; }

.stage__frame > video,
.stage__frame > iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; object-fit: contain; background: #000;
}

.stage__pending {
  position: absolute; inset: 0;
  display: grid; align-content: center; justify-items: center; gap: .5rem;
  text-align: center;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2) 60%, var(--ink));
}
.stage__pending-title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(3rem, 7vw, 5rem); line-height: .9;
}
.stage__pending-note { color: var(--muted); }

.stage__play {
  position: absolute; inset: 0; width: 100%;
  display: grid; place-items: center;
  background: linear-gradient(to top, rgba(21, 16, 26, .55), rgba(21, 16, 26, 0) 55%);
  border: 0; padding: 0; cursor: pointer; color: inherit;
}
.stage__play-icon {
  display: grid; place-items: center;
  width: 5.25rem; height: 5.25rem; border-radius: 50%;
  background: var(--sun);
  transition: transform .25s var(--ease), background-color .2s;
}
.stage__play-icon::before {
  content: ""; margin-left: .3rem;
  border-style: solid; border-width: .85rem 0 .85rem 1.35rem;
  border-color: transparent transparent transparent var(--sun-ink);
}
.stage__play:hover .stage__play-icon { transform: scale(1.08); background: var(--sun-hi); }

@media (max-width: 900px) {
  .showreel__grid { grid-template-columns: 1fr; }
  .stage { order: -1; }
  .showreel__copy { order: 1; }
}
@media (max-width: 640px) {
  .stage__frame {
    width: 100%; height: auto; max-height: 82vh; max-height: 82svh;
  }
}

/* ---------- Introduction ---------- */
.intro__grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
}
.portrait { margin: 0; aspect-ratio: 4 / 5; background: var(--ink-2); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.intro__lead {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.1rem, 4.4vw, 3.8rem); line-height: 1.02;
  margin-bottom: 1.5rem;
}
.intro__text > p { max-width: 58ch; }
.disciplines {
  display: flex; flex-wrap: wrap; gap: .1rem 0;
  margin: 2rem 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.2;
}
.disciplines li + li::before {
  content: "/"; color: var(--sun); margin-inline: .6em;
}
@media (max-width: 820px) {
  .intro__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 26rem; }
}

/* ---------- About ---------- */
.about { background: var(--ink-2); }
.about__grid {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 6vw, 6rem);
}
.about__title { position: sticky; top: 6rem; }
.prose p { max-width: 62ch; margin-bottom: 1.25rem; font-size: 1.125rem; }
.facts { margin: 3rem 0 0; max-width: 62ch; }
.facts > div {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__title { position: static; }
}
@media (max-width: 520px) {
  .facts > div { grid-template-columns: 1fr; gap: .25rem; }
}

/* ---------- Watch ---------- */
.watch__grid {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(2rem, 5vw, 5rem);
}
.watch__head { position: sticky; top: 6rem; }
.watch__head .title { font-size: clamp(3rem, 6vw, 5.5rem); }
.watch__lede { margin-top: 1.25rem; max-width: 26ch; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: 2rem; }
.filter {
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: .35rem 0; color: var(--muted);
  font: inherit; font-weight: 600; cursor: pointer;
}
.filter:hover { color: var(--bone); }
.filter[aria-pressed="true"] { color: var(--bone); border-bottom-color: var(--sun); }

.gallery {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tile { min-width: 0; }
.tile--landscape { grid-column: 1 / -1; }

.tile__frame {
  position: relative; display: block; width: 100%;
  aspect-ratio: var(--ar);
  overflow: hidden;
  border: 0; padding: 0;
  background: #000; color: inherit; font: inherit; text-align: left;
}
button.tile__frame { cursor: pointer; }
.tile__frame .thumb__img { transition: transform .6s var(--ease); }
button.tile__frame:hover .thumb__img { transform: scale(1.03); }

.tile__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(21, 16, 26, .9), rgba(21, 16, 26, 0) 50%);
}
.tile__play {
  position: absolute; top: 1rem; right: 1rem;
  display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--sun);
  transition: transform .25s var(--ease);
}
.tile__play::before {
  content: ""; margin-left: .15rem;
  border-style: solid; border-width: .45rem 0 .45rem .75rem;
  border-color: transparent transparent transparent var(--sun-ink);
}
button.tile__frame:hover .tile__play { transform: scale(1.1); }

.tile__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.2rem; }
.tile__title {
  display: block;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1;
}
.tile__kind { display: block; margin-top: .3rem; color: var(--muted); font-size: .95rem; }

.tile__frame--empty {
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2) 60%, var(--ink));
  box-shadow: inset 0 0 0 1px var(--line);
}

@media (max-width: 1000px) {
  .watch__grid { grid-template-columns: 1fr; }
  .watch__head { position: static; }
  .watch__lede { max-width: 40ch; }
}
@media (max-width: 760px) {
  .gallery {
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 1rem;
    scroll-padding-inline: var(--gutter);
  }
  .tile { flex: 0 0 min(74vw, 19rem); scroll-snap-align: start; }
  .tile--landscape { flex-basis: min(88vw, 30rem); }
}

/* ---------- Player dialog ---------- */
.player {
  --ar: .5625;
  width: min(94vw, 1120px, calc((100vh - 6.5rem) * var(--ar)));
  width: min(94vw, 1120px, calc((100dvh - 6.5rem) * var(--ar)));
  min-width: min(94vw, 15rem);
  max-width: none; max-height: none;
  margin: auto; padding: 0;
  border: 0; background: var(--ink); color: var(--bone);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 0 1px var(--line);
}
.player::backdrop { background: rgba(10, 6, 12, .92); }
.player__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem;
}
.player__title {
  font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1;
}
.player__close {
  background: none; color: inherit; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: .4rem 1.1rem; font: inherit; font-weight: 600;
  transition: border-color .2s, color .2s;
}
.player__close:hover { border-color: var(--sun); color: var(--sun); }
.player__stage { aspect-ratio: var(--ar); background: #000; }
.player__stage video,
.player__stage iframe {
  display: block; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000;
}
@media (prefers-reduced-motion: no-preference) {
  .player[open] { animation: pop .25s var(--ease); }
}
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Experience ---------- */
.experience { background: var(--ink-2); }
.collective {
  display: grid; align-items: end;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.collective__name {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: .9;
}
.collective__text { max-width: 44ch; font-size: 1.125rem; }

.places {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.place__name {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1;
  margin-bottom: .6rem;
}
.place p { color: var(--muted); font-size: 1.125rem; }

.capabilities {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.capabilities__title, .achievements__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1;
  margin-bottom: 1.5rem;
}
.capabilities ul {
  display: grid; gap: .75rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.capabilities li {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.1;
  padding-top: .8rem; border-top: 2px solid var(--sun);
}

.achievements { padding-top: clamp(3rem, 6vw, 5rem); }
.achv {
  display: grid; align-items: baseline;
  grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: .5rem 2rem;
  padding: 1.4rem 0; border-top: 1px solid var(--line);
}
.achv:last-child { border-bottom: 1px solid var(--line); }
.achv__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1;
}
.achv__kind { font-weight: 600; }
.achv__note { color: var(--muted); font-size: .95rem; }
.achv__link { justify-self: start; }
@media (max-width: 800px) {
  .collective { grid-template-columns: 1fr; }
  .places { grid-template-columns: 1fr; }
  .achv { grid-template-columns: 1fr; }
}

/* ---------- Work with Osmar ---------- */
.work__lede { margin-top: 1.5rem; max-width: 52ch; font-size: 1.125rem; color: var(--muted); }
.offers { margin-top: clamp(2.5rem, 5vw, 4rem); }
.offer {
  position: relative;
  display: grid; align-items: baseline;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto;
  gap: .5rem 2rem;
  padding: 1.75rem 0; border-top: 1px solid var(--line);
  transition: padding .3s var(--ease), background-color .3s;
}
.offer:last-child { border-bottom: 1px solid var(--line); }
.offer:hover { background: rgba(240, 231, 218, .04); padding-inline: 1rem; }
.offer__name {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1;
  transition: color .2s;
}
.offer:hover .offer__name { color: var(--sun); }
.offer__text { color: var(--muted); max-width: 46ch; }
.offer__cta {
  font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: .35em;
}
.offer__cta::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 760px) {
  .offer { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact { background: var(--ink-2); }
.contact__grid {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}
.contact__copy .title { margin-bottom: 1.75rem; }
.contact__copy p { max-width: 42ch; margin-bottom: 1rem; }
.contact__links { margin-top: 2rem; }
.big-link {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--line);
  font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1;
  text-decoration: none; transition: color .2s;
}
.contact__links li:last-child .big-link { border-bottom: 1px solid var(--line); }
.big-link span { font-family: var(--body); font-weight: 500; font-size: 1rem; color: var(--muted); }
.big-link:hover { color: var(--sun); }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.field { display: grid; gap: .3rem; margin-bottom: 1.5rem; }
.field label { font-weight: 600; font-size: .95rem; }
.hint { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem 0;
  background: transparent; color: var(--bone);
  border: 0; border-bottom: 1.5px solid rgba(240, 231, 218, .45); border-radius: 0;
  font: inherit;
  transition: border-color .2s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select option { background: var(--ink); color: var(--bone); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--sun); }
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--bone);
  box-shadow: 0 0 0 1000px var(--ink-2) inset;
}
.form-status { margin-top: 1rem; min-height: 1.6em; color: var(--muted); }
.form-status a { color: var(--bone); }
.form-success {
  padding: 2rem 0; border-top: 2px solid var(--sun);
}
.form-success__title {
  font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1;
  margin-bottom: .75rem;
}
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 2rem var(--gutter); border-top: 1px solid var(--line); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  max-width: var(--max); margin-inline: auto;
  color: var(--muted); font-size: .95rem;
}
.site-footer__logo { width: auto; height: 5.5rem; opacity: .9; }
.site-footer__inner { align-items: center; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer a { text-decoration-color: var(--sun); text-underline-offset: .25em; }
.site-footer a:hover { color: var(--bone); }

/* ---------- Simple pages (thank you, 404) ---------- */
.simple {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-content: center; justify-items: start; gap: 1.25rem;
  padding: 4rem var(--gutter);
}
.simple .title { font-size: clamp(3rem, 10vw, 7rem); }
.simple p { max-width: 40ch; color: var(--muted); font-size: 1.125rem; }

/* ---------- Language switcher ---------- */
.lang { display: flex; align-items: center; }
.lang__select {
  appearance: none; -webkit-appearance: none;
  background: transparent; color: var(--bone, #F0E7DA);
  border: 1px solid rgba(240, 231, 218, .35); border-radius: 999px;
  padding: .4rem 1.9rem .4rem .85rem; font: inherit; font-size: .9rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1rem) 55%, calc(100% - .7rem) 55%;
  background-size: .3rem .3rem, .3rem .3rem; background-repeat: no-repeat;
}
.lang__select:hover { border-color: var(--amber, #F6A93B); }
.lang__select:focus-visible { outline: 2px solid var(--amber, #F6A93B); outline-offset: 2px; }
.lang__select option { color: #15101A; background: #F0E7DA; }
:lang(zh) body, :lang(zh) .title, :lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .intro__lead, :lang(zh) .hero__tagline, :lang(zh) .play__text, :lang(zh) .disciplines li {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; letter-spacing: 0; text-transform: none;
}
@media (max-width: 899px) { .site-nav .lang { margin-top: 1rem; } }

.watch__more { margin: 2.25rem 0 0; }
.watch__grid .watch__more { grid-column: 1 / -1; }

.showreel__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.showreel__cta .btn { text-decoration: none; }

/* Player: optional description and credits */
.player--info { width: min(94vw, 1120px, calc((100vh - 13rem) * var(--ar))); width: min(94vw, 1120px, calc((100dvh - 13rem) * var(--ar))); }
.player__info { padding: .8rem 1rem 1rem; display: grid; gap: .6rem; }
.player__desc { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--bone); opacity: .9; }
.player__credits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: .9rem; }
.player__role { color: var(--sun); font-weight: 700; margin-right: .2rem; }

.about__photo { margin: 0 0 2.5rem; max-width: 24rem; aspect-ratio: 720 / 1080; background: #8b1a1f; overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.moments { padding-block: clamp(2rem, 5vw, 4rem); }
.moments__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(.75rem, 2vw, 1.5rem); align-items: stretch; }
.moments__grid figure { margin: 0; overflow: hidden; background: var(--ink-2); }
.moments__grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) { .moments__grid { grid-template-columns: 1fr; } .moments__wide { aspect-ratio: 4 / 3; } }

/* Logo: one slow turn on load, a spin on hover. Still for anyone who prefers reduced motion. */
@keyframes logo-turn { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes logo-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .brand__mark { animation: logo-turn 1.8s cubic-bezier(.45, 0, .2, 1) .5s 1 both; }
  .brand:hover .brand__mark, .brand:focus-visible .brand__mark { animation: logo-spin 1.1s cubic-bezier(.45, 0, .2, 1) 1; }
}

/* ---------- Mobile opening: less empty space under the navigation ---------- */
@media (max-width: 700px) {
  .hero { min-height: 0; align-items: flex-start; }
  .hero__content { padding-top: 5.25rem; padding-bottom: 2.25rem; }
  .hero__roles { margin-top: .9rem; }
  .hero__actions { margin-top: 1.25rem; gap: 1rem 2rem; }
}

/* ---------- Experience, projects, press ---------- */
.subhead { margin: 3rem 0 1.25rem; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: .02em; }
.projects__lede, .press__lede { max-width: 62ch; margin-bottom: 2rem; color: var(--bone-dim, inherit); opacity: .85; }
.press-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(240,231,218,.18); }
.press-item { display: grid; gap: .6rem; padding: 1.75rem 0; border-bottom: 1px solid rgba(240,231,218,.18); max-width: 62rem; }
.press-item__meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: center; margin: 0; font-size: .95rem; opacity: .9; }
.press-item__tag { color: var(--sun); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.press-item__title { margin: 0; font-family: var(--body, inherit); font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.3; }
.press-item__text { margin: 0; max-width: 62ch; }
.press-item__note { margin: 0; font-size: .92rem; opacity: .75; }
.offer__example { display: inline-block; margin-top: .6rem; }
.offer__example { position: relative; z-index: 2; grid-column: 2; margin-top: 0; }
@media (max-width: 760px) { .offer__example { grid-column: 1; } }

.press-item__more { font-size: .95rem; }
.news__more { margin-top: 1.75rem; }
.news__toggle { cursor: pointer; }
.press-item[hidden] { display: none; }
.btn--ghost { background: transparent; color: var(--bone); border: 1.5px solid var(--sun); }
.btn--ghost:hover { background: var(--sun); color: var(--sun-ink); }
