/* Ana Lario — base.
   Dark, film-first. One typeface at one weight (TWK Lausanne 400): hierarchy
   comes from size, case and space, never from bold. Body copy is full
   contrast; the secondary tone is kept above 7:1 on the background. */

:root {
  color-scheme: dark;
  --bg: #0b0b0a;
  --bg-2: #151513;
  --fg: #f3f1ec;
  --fg-2: #a9a69f;       /* 7.9:1 on --bg — labels and meta only */
  --line: #2a2926;
  --line-2: #3d3b37;
  --focus: #f3f1ec;

  --gutter: clamp(16px, 2.2vw, 32px);
  --gap: clamp(8px, 1vw, 14px);
  --header: 64px;

  --t-small: 13px;
  --t-body: 16px;
  --t-lead: clamp(20px, 1.9vw, 26px);
  --t-title: clamp(36px, 5.2vw, 76px);
  --t-credit: clamp(20px, 1.8vw, 26px);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--line-2) var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "TWK Lausanne", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.5;
  font-synthesis: none;             /* never fake a bold or italic */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4, strong, b, th, dt { font-weight: 400; }
ul, ol { padding: 0; list-style: none; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--fg); color: var(--bg); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.shell {
  width: 100%;
  padding-inline: var(--gutter);
  margin-inline: auto;
}

/* Header — name left, four links right. */
.site-header {
  position: relative;
  z-index: 50;
  height: var(--header);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}
.wordmark {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.nav-desktop { display: flex; gap: clamp(20px, 2.4vw, 36px); }
.nav-desktop a, .nav-toggle {
  font-size: 15px;
  line-height: 1;
  padding: 10px 0;
}
.nav-desktop a { color: var(--fg); opacity: .72; transition: opacity .2s; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { opacity: 1; }
.nav-desktop a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-toggle { display: none; }
.nav-overlay { display: none; }
.language-switcher { display: flex; gap: 12px; font-size: var(--t-small); }

/* The homepage header floats over the reel. */
body:has(.reel) .site-header {
  position: absolute;
  inset: 0 0 auto;
}
body:has(.reel) .site-header .wordmark { visibility: hidden; }
body:has(.reel) .nav-desktop a { opacity: .9; text-shadow: 0 1px 12px rgba(0,0,0,.35); }

@media (max-width: 760px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; padding: 12px 0 12px 16px; }
  .nav-overlay:not([hidden]) {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: -1;
    padding: calc(var(--header) + 24px) var(--gutter) 32px;
    background: var(--bg);
    align-items: flex-end;
  }
  .nav-overlay ul { display: grid; gap: 4px; }
  .nav-overlay a {
    display: block;
    font-size: clamp(44px, 13vw, 64px);
    letter-spacing: -0.035em;
    line-height: 1.05;
    padding: 4px 0;
  }
  .nav-overlay a[aria-current="page"] { color: var(--fg-2); }
  body.menu-open .site-header .wordmark { visibility: visible; }
}

/* Footer */
.site-footer {
  margin-top: clamp(80px, 10vw, 160px);
  padding-block: 40px 28px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  gap: 32px var(--gutter);
}
.footer-name { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.footer-id p:not(.footer-name) { color: var(--fg-2); max-width: 30ch; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--gutter); }
.footer-links li { padding: 3px 0; }
.footer-links a, .footer-links button { color: var(--fg); }
.footer-links a:hover, .footer-links button:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.footer-small { grid-column: 1 / -1; color: var(--fg-2); font-size: var(--t-small); padding-top: 24px; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

/* Staging marker: small and out of the way, so the site reads as it will. */
.staging-note {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 120;
  padding: 5px 9px;
  background: #3a1d12;
  color: #f7d7c8;
  font-size: 11px;
  line-height: 1.2;
  pointer-events: none;
}

/* Shared type */
.page-title {
  font-size: var(--t-title);
  letter-spacing: -0.04em;
  line-height: .95;
}
.standfirst {
  font-size: var(--t-lead);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 34ch;
}
.section-label {
  font-size: 15px;
  color: var(--fg-2);
  margin-bottom: 16px;
}
.note { color: var(--fg-2); }
.text-link {
  display: inline;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color .2s;
}
.text-link:hover { text-decoration-color: currentColor; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--fg);
  color: var(--fg);
  transition: background .2s, color .2s;
}
.button:hover { background: var(--fg); color: var(--bg); }
.button:disabled { opacity: .5; cursor: progress; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.nowrap { white-space: nowrap; }

/* ---------- Chinese and Korean ----------
   TWK Lausanne stays first, so Latin (brand names, Ana Lario, numbers) keeps
   the house face; Han and Hangul fall through to the platform's own
   typefaces, at 400 to match. No web fonts are downloaded for them. */
html:lang(zh-Hant) body {
  font-family: "TWK Lausanne", "PingFang HK", "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
}
html:lang(zh-Hans) body {
  font-family: "TWK Lausanne", "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "Heiti SC", sans-serif;
}
html:lang(ko) body {
  font-family: "TWK Lausanne", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", sans-serif;
  /* Korean breaks between words, not inside them. */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html:lang(zh) body, html:lang(ko) body { line-height: 1.7; }
html:lang(zh) body { line-break: strict; }

/* Negative tracking tightens Latin; on Han and Hangul it crowds the glyphs. */
:is(html:lang(zh), html:lang(ko)) :is(.page-title, .standfirst, .copy-heading, .intro-line, .credit-name, .pager-name, .nav-overlay a, .reel-role, .faq summary) {
  letter-spacing: 0;
}
:is(html:lang(zh), html:lang(ko)) .page-title { line-height: 1.15; }
:is(html:lang(zh), html:lang(ko)) :is(.standfirst, .intro-line) { line-height: 1.5; }
:is(html:lang(zh), html:lang(ko)) .copy-heading { line-height: 1.35; }
:is(html:lang(zh), html:lang(ko)) .landing-body { max-width: 38em; }

/* ---------- Language switcher ---------- */
.header-end { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); }
.language-switcher { font-size: 14px; color: var(--fg-2); white-space: nowrap; }
.language-switcher a { color: var(--fg-2); padding: 8px 2px; transition: color .2s; }
.language-switcher a:hover, .language-switcher a[aria-current] { color: var(--fg); }
.language-switcher a[aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
body:has(.reel) .language-switcher--header a { color: rgba(243, 241, 236, .85); text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.language-switcher--overlay { display: none; }
.language-switcher--footer { margin-top: 18px; }
@media (max-width: 760px) {
  .language-switcher--header { display: none; }
  .nav-overlay:not([hidden]) { flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 28px; }
  .nav-overlay:not([hidden]) .language-switcher--overlay { display: block; font-size: 18px; }
}
/* Chinese headings break at their spaces and punctuation ("TVC 广告导演"
   stays whole) rather than mid-word; overflow-wrap rescues a long run. */
html:lang(zh) :is(.page-title, .copy-heading, .reel-role) { word-break: keep-all; overflow-wrap: anywhere; }
