:root {
  --bg: #0b0d10;
  --panel: #171a20;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --quiet: rgba(255, 255, 255, 0.5);
  --accent: #e32636;
  --accent-2: #ff4d5c;
  --line: rgba(255, 255, 255, 0.12);
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --ar: "Noto Sans Arabic", "Geeza Pro", "Arial", sans-serif;
  --zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --nav: 104px;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

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

::selection { background: var(--accent); color: white; }

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

.skip:focus {
  position: fixed;
  inset-inline-start: 16px;
  top: 12px;
  z-index: 30;
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--accent);
  color: white;
  text-decoration: none;
}

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

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: 0.01em; }

h2 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

h3 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 600; line-height: 1.12; text-transform: uppercase; }

p { margin: 0 0 16px; color: var(--muted); }

.lede { font-size: 1.2rem; color: var(--ink); }

.note { color: var(--quiet); font-size: 0.95rem; }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav);
  padding: 0 28px;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(11, 13, 16, 0.92);
  border-bottom-color: rgba(227, 38, 54, 0.45);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-inline-end: auto;
}

.brand-logo {
  display: block;
  height: 80px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 10px;
}

.nav-menu a {
  position: relative;
  padding: 7px 9px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.98rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.82);
}

.nav-menu a::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 7px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 0 / 1.5px 7px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 0 / 7px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 0 / 1.5px 7px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 100% / 7px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 100% / 1.5px 7px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 100% / 7px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 100% / 1.5px 7px no-repeat;
  transition: opacity 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a[aria-current="page"] { color: var(--accent); }

.nav-menu a:hover::before,
.nav-menu a:focus-visible::before,
.nav-menu a[aria-current="page"]::before { opacity: 1; }

.lang {
  position: relative;
  flex: none;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-cta,
.btn-gold { background: var(--accent); color: white; }

.nav-cta:hover,
.btn-gold:hover { background: var(--accent-2); }

.btn { min-height: 52px; padding: 0 26px; }

.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: white;
  padding: 0;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: white;
  position: relative;
}

.nav-toggle-lines { margin: 0 auto; }
.nav-toggle-lines::before,
.nav-toggle-lines::after { content: ""; position: absolute; left: 0; }
.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #07080a;
}

.hero-media,
.hero-shade { position: absolute; inset: 0; }

.hero-poster,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero.is-playing .hero-video { opacity: 1; }
.hero.is-fallback .hero-video { display: none; }

.hero-shade {
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.62) 0%, rgba(11, 13, 16, 0.12) 34%, rgba(11, 13, 16, 0.28) 58%, rgba(11, 13, 16, 0.88) 100%),
    linear-gradient(90deg, rgba(11, 13, 16, 0.72) 0%, rgba(11, 13, 16, 0.2) 52%, rgba(11, 13, 16, 0.08) 100%);
}

.hero-rail {
  position: absolute;
  z-index: 2;
  inset-inline-end: 8px;
  top: 50%;
  margin: 0;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.78rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--wrap), calc(100% - 80px));
  margin: 0 auto;
  padding: 0 0 72px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.4rem, 11vw, 8.6rem);
  line-height: 0.82;
  text-transform: uppercase;
}

.hero h1 span { display: block; }

.hero h1 .year { color: var(--accent); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 22px 0 8px;
  color: white;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.tagline {
  margin: 0 0 28px;
  color: white;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding: 108px 0; }

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 68vh;
  padding: calc(var(--nav) + 64px) 0 72px;
  background-color: #07080a;
  background-position: center;
  background-size: cover;
}

.page-hero-about {
  background-image: url("../assets/images/dunes.jpg");
  background-position: center 72%;
}
.page-hero-competition {
  background-image: url("../assets/images/quad.jpg");
  background-position: center 62%;
}
.page-hero-location { background-image: url("../assets/images/etihad.jpg"); }
.page-hero-apply {
  background-image: url("../assets/images/pilot.jpg");
  background-position: center 22%;
}
.page-hero-contact {
  background-image: url("../assets/images/corniche.jpg");
  background-position: center 42%;
}

.page-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.5) 0%, rgba(11, 13, 16, 0.16) 42%, rgba(11, 13, 16, 0.92) 100%),
    linear-gradient(90deg, rgba(11, 13, 16, 0.58), transparent 62%);
}

.page-hero .wrap { position: relative; z-index: 1; }

.page-hero h1 {
  margin: 0 0 16px;
  max-width: 11em;
  font-size: clamp(2.75rem, 5.6vw, 4.6rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.page-hero .lede { max-width: 38rem; color: white; }

.text-link,
.more {
  color: var(--accent);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.95rem;
}

.text-link:hover,
.more:hover { color: white; }

.more { display: inline-block; margin: 16px 0 0; }

a.highlight { color: inherit; text-decoration: none; }
a.highlight-photo { display: block; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.info-card {
  padding: 28px 24px 32px;
  background: #101318;
  border: 1px solid var(--line);
  min-height: 210px;
  transition: border-color 0.2s ease;
}

.info-card h3 { color: white; }
.info-card p:last-child { margin: 0; }
.info-card:hover { border-color: var(--accent); }

a.highlight { transition: border-color 0.2s ease; }

.field-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.field-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: white;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.caption {
  margin: 10px 0 0;
  color: var(--quiet);
  font-size: 0.92rem;
}

.about { background: var(--bg); }

.about-grid,
.contact-grid,
.date-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 3 / 2;
  min-height: 420px;
}

.frame img,
.highlight-photo img,
.location-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame img {
  position: absolute;
  inset: 0;
  min-height: 0;
  object-position: center 42%;
}

.highlights { background: var(--panel); }

.section-head { max-width: 720px; margin-bottom: 36px; }

.highlight-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1fr;
  gap: 14px;
  min-height: 560px;
}

.highlight {
  position: relative;
  overflow: hidden;
  background: #101318;
  min-height: 420px;
}

.index {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.18em;
  line-height: 1;
}

.mark {
  display: inline-flex;
  flex: none;
  width: 28px;
  height: 28px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.82);
}

.mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.title-row h3 { margin: 0; }
.title-row .mark { width: 22px; height: 22px; margin: 0; }

.highlight-photo img.shot-pilot { object-position: center 22%; }

.highlight-photo img { position: absolute; inset: 0; }

.highlight-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  background: linear-gradient(180deg, transparent, rgba(11, 13, 16, 0.88));
}

.highlight-caption h3,
.highlight-caption p:last-child { color: white; }
.highlight-caption p:last-child { margin: 0; color: rgba(255, 255, 255, 0.82); }

.competition { background: var(--bg); }

.discipline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.discipline-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.discipline-list span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.discipline-list p { margin: 0; }

.disclaimer {
  margin: 28px 0 0;
  padding: 18px 20px;
  background: var(--panel);
  border-inline-start: 2px solid var(--accent);
}

.location { padding: 0; }

.location-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 680px;
  background: var(--panel);
}

.location-photo { margin: 0; min-height: 460px; }
.location-photo img { height: 100%; min-height: 460px; }

.location-copy { padding: 72px 56px; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts dt {
  color: var(--quiet);
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
  line-height: 1.2;
}
.facts dd { margin: 6px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; text-transform: uppercase; }

.date-block {
  background:
    radial-gradient(circle at 80% 20%, rgba(227, 38, 54, 0.18), transparent 28%),
    var(--bg);
}

.date-display {
  display: flex;
  gap: 18px;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.8;
  text-transform: uppercase;
  color: white;
}

.date-display span:last-child { color: var(--accent); }
.date-display.prize-display {
  font-size: clamp(3.1rem, 6.2vw, 5.2rem);
  letter-spacing: -0.03em;
}
.date-place {
  margin: 0 0 12px;
  color: white;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  font-size: 1.25rem;
}

.apply { background: var(--panel); }

.apply-panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: start;
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 8px 0 22px;
}

.email-address,
.contact-card a {
  color: white;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: none;
  text-decoration: none;
}

.email-address:hover,
.contact-card a:hover { color: var(--accent); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: white;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-card .copy-btn { margin-top: 18px; }
.copy-btn .mark { width: 15px; height: 15px; margin: 0; color: currentColor; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

.contact { background: var(--bg); }

.contact-card {
  background: var(--panel);
  padding: 32px;
  border-top: 2px solid var(--accent);
}

.label {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer {
  padding: 42px 0 48px;
  border-top: 1px solid var(--line);
  background: #08090c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px 32px;
}

.footer p { margin: 0 0 6px; }
.footer a { color: white; text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-name {
  color: white;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.copyright { grid-column: 1 / -1; color: var(--quiet); }

.legal { padding: calc(var(--nav) + 64px) 0 80px; }
.legal-inner { max-width: 760px; }
.legal h1 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.legal h2 { font-size: 1.35rem; font-weight: 600; margin-top: 28px; line-height: 1.25; }
.legal a { color: var(--accent); }

/* Arabic has no uppercase and no tracking. Chinese tracking is set with the size rules below. */
html[lang="ar"] :is(h1, h2, h3, .eyebrow, .nav-menu a, .nav-cta, .btn, .hero-meta, .tagline, .facts dt, .facts dd, .copy-btn, .label, .footer-name, .date-place, .hero-rail) {
  letter-spacing: 0;
  text-transform: none;
}

html[lang="ar"] .page-hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
  line-height: 1.15;
}

html[lang="ar"] .hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.15;
}

html[lang="ar"] h2,
html[lang="ar"] .legal h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  line-height: 1.15;
}

html[lang="ar"] h3 {
  font-size: 1.35rem;
  line-height: 1.4;
}

html[lang="ar"] .lede,
html[lang="ar"] .tagline { font-size: 1.08rem; }

html[lang="ar"] .nav { gap: 16px; }
html[lang="ar"] .nav-menu { gap: 16px; }

html[dir="rtl"] .page-hero-shade {
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.5) 0%, rgba(11, 13, 16, 0.16) 42%, rgba(11, 13, 16, 0.92) 100%),
    linear-gradient(270deg, rgba(11, 13, 16, 0.58), transparent 62%);
}

html[dir="rtl"] .hero-shade {
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.62) 0%, rgba(11, 13, 16, 0.12) 34%, rgba(11, 13, 16, 0.28) 58%, rgba(11, 13, 16, 0.88) 100%),
    linear-gradient(270deg, rgba(11, 13, 16, 0.72) 0%, rgba(11, 13, 16, 0.2) 52%, rgba(11, 13, 16, 0.08) 100%);
}

html[dir="rtl"] .hero-rail {
  right: auto;
  left: 8px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .about-grid,
  .contact-grid,
  .date-grid,
  .location-grid,
  .highlight-grid { grid-template-columns: 1fr; }
  .location-copy { padding: 48px 24px 64px; }
  .facts { grid-template-columns: 1fr; }
  .hero-rail { display: none; }
  .hero-content { width: min(var(--wrap), calc(100% - 40px)); }
  .highlight { min-height: 460px; }
  .card-grid,
  .field-list { grid-template-columns: 1fr; }
  .page-hero { min-height: 0; }
}

@media (max-width: 820px) {
  .nav { padding: 0 16px; }
  .brand-logo { height: 72px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 20px;
    background: rgba(11, 13, 16, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.3rem; }
  .nav-menu a::before { display: none; }
  .nav-cta { min-height: 36px; padding: 0 12px; }
  .nav { gap: 12px; }
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .section { padding: 76px 0; }
  .hero h1 { font-size: clamp(3.4rem, 18vw, 5.2rem); }
  .hero-content { padding-bottom: 36px; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 480px) {
  .brand-logo { height: 52px; }
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(11, 13, 16, 0.35);
  color: white;
  cursor: pointer;
}

.lang-toggle svg { width: 16px; height: 16px; display: block; }

.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 156px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(11, 13, 16, 0.96);
  border: 1px solid var(--line);
  z-index: 30;
}

.lang-menu[hidden] { display: none; }

.lang-menu button {
  display: block;
  width: 100%;
  text-align: start;
  background: transparent;
  color: white;
  border: 0;
  padding: 10px 12px;
  cursor: pointer;
  font-family: var(--body);
  font-size: 0.95rem;
}

.lang-menu button[lang="zh-Hans"] { font-family: var(--zh); }
.lang-menu button[lang="ar"] { font-family: var(--ar); }
.lang-menu button[aria-selected="true"] { color: var(--accent); }
.lang-menu button:hover { background: rgba(255, 255, 255, 0.06); }

html[lang="zh-Hans"] {
  --display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[lang="ar"] {
  --display: "Noto Sans Arabic", "Segoe UI", sans-serif;
  --body: "Noto Sans Arabic", "Segoe UI", sans-serif;
}

html[lang="zh-Hans"] :is(h1, h2, h3, .eyebrow, .nav-menu a, .btn, .nav-cta, .tagline, .hero-meta, .hero-rail, .date-place, .facts dd, .facts dt, .footer-name, .copy-btn, .lang-toggle, .label) {
  text-transform: none;
  letter-spacing: 0.02em;
}

html[lang="zh-Hans"] body { font-size: 1rem; }

html[lang="zh-Hans"] .hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 4.2rem);
  line-height: 1.2;
}

html[lang="zh-Hans"] .page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.22;
}

html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] .legal h1 {
  font-size: clamp(1.75rem, 3.1vw, 2.7rem);
  line-height: 1.28;
}

html[lang="zh-Hans"] h3 {
  font-size: 1.35rem;
  line-height: 1.35;
}

html[lang="zh-Hans"] .lede { font-size: 1.05rem; }
html[lang="zh-Hans"] .tagline { font-size: 1.12rem; }

html[lang="zh-Hans"] :is(h1, h2, h3, .legal h1, .legal h2),
html[lang="ar"] :is(h1, h2, h3, .legal h1, .legal h2) {
  font-weight: 600;
}

html[lang="zh-Hans"] .date-display,
html[lang="ar"] .date-display {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

html[lang="zh-Hans"] .legal h2,
html[lang="ar"] .legal h2 {
  font-size: 1.25rem;
  line-height: 1.4;
}

html[lang="zh-Hans"] .field-list li,
html[lang="ar"] .field-list li,
html[lang="zh-Hans"] .more,
html[lang="ar"] .more,
html[lang="zh-Hans"] .text-link,
html[lang="ar"] .text-link {
  letter-spacing: 0.02em;
  text-transform: none;
}

html[lang="zh-Hans"] .date-place,
html[lang="zh-Hans"] .facts dd { font-size: 1.12rem; }

html[dir="rtl"] .disclaimer { border-left: 0; border-inline-start: 2px solid var(--accent); }
html[dir="rtl"] .hero-rail { transform: translateY(-50%) rotate(-90deg); }

body.modal-open { overflow: hidden; }

.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 9, 12, 0.62);
}

.apply-modal[hidden] { display: none; }

.apply-modal-card {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  width: min(960px, 100%);
  min-height: 520px;
  background: #fff;
  color: #161616;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.apply-modal-visual {
  position: relative;
  z-index: 1;
  min-height: 520px;
  margin-inline-end: -16%;
  clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%);
}

.apply-modal-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 520px;
}

.apply-modal-panel {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 48px 56px 18%;
  background: #fff;
}

.apply-modal-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #222;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.apply-modal-close:hover { border-color: #111; color: #111; }

.apply-modal-panel h2 {
  margin: 0 0 28px;
  max-width: 9em;
  color: #111;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0.01em;
}

html[lang="zh-Hans"] .apply-modal-panel h2,
html[lang="ar"] .apply-modal-panel h2 {
  max-width: none;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  line-height: 1.25;
}

.apply-modal-form input {
  width: 100%;
  height: 48px;
  margin: 0 0 16px;
  padding: 0 14px;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #161616;
  font: inherit;
  font-size: 1rem;
}

.apply-modal-form input::placeholder { color: #9a9a9a; }

.apply-modal-form input:focus-visible { outline-color: var(--accent); border-color: var(--accent); }

.apply-modal-error {
  margin: -6px 0 12px;
  color: var(--accent);
  font-size: 0.92rem;
}

.apply-modal-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 52px;
  padding: 0 16px 0 18px;
  border: 0;
  background: #1c1c1c;
  color: #fff;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.apply-modal-submit svg { width: 18px; height: 18px; flex: none; }
.apply-modal-submit:hover { background: #000; }

html[dir="rtl"] .apply-modal-visual {
  margin-inline-end: -16%;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

html[dir="rtl"] .apply-modal-submit svg { transform: scaleX(-1); }

@media (max-width: 760px) {
  .apply-modal { padding: 12px; align-items: end; }
  .apply-modal-card {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: calc(100svh - 24px);
    overflow: auto;
  }
  .apply-modal-visual,
  html[dir="rtl"] .apply-modal-visual {
    min-height: 0;
    height: 190px;
    margin: 0;
    clip-path: none;
  }
  .apply-modal-visual img { min-height: 190px; height: 190px; }
  .apply-modal-panel { padding: 56px 22px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .hero-video { transition: none; }
}
