@import url("fonts/misans/Normal/MiSans-Regular.min.css");
@import url("fonts/misans/Normal/MiSans-Semibold.min.css");
@import url("fonts/misans/Normal/MiSans-Bold.min.css");
@import url("fonts/d-din/font-face.css");

:root {
  --white: #f4f4f4;
  --muted: rgba(244, 244, 244, 0.68);
  --dim: rgba(244, 244, 244, 0.44);
  --line: rgba(255, 255, 255, 0.16);
  --black: #050505;
  --panel: rgba(255, 255, 255, 0.055);
  --font: "D-DIN-PRO", MiSans, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --brand-watermark: url("orulink-logo.png");
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    #050505;
  background-size: 120px 120px;
  color: var(--white);
  font-family: var(--font);
  line-height: 1.2;
  overflow-x: hidden;
}

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

.detail-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 76px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.58), transparent);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-header.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-28px);
}

.brand {
  width: 152px;
  height: 28px;
  opacity: 0.74;
  transition: opacity 180ms ease;
}

.brand:hover { opacity: 0.88; }

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.detail-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  font-family: MiSans, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  font-weight: 600;
  letter-spacing: 0.02em;
}

.detail-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  color: rgba(244, 244, 244, 0.68);
  line-height: 1.2;
  transition: color 220ms ease;
}

.detail-nav a:hover,
.detail-nav a[aria-current="page"] { color: var(--white); }

.language-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 30px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.language-toggle::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 0;
  width: 34px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateX(0);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.language-toggle.is-en::before {
  transform: translateX(36px);
}

.language-toggle button {
  position: relative;
  z-index: 1;
  min-width: 34px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  font: inherit;

  letter-spacing: 0;
  cursor: pointer;
  transition: color 220ms ease;
}

.language-toggle button.is-active {
  color: rgba(255, 255, 255, 0.96);
  background: transparent;
}

.detail-hero {
  min-height: 86vh;
  padding: 160px clamp(24px, 6vw, 96px) 112px;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  border-bottom: 0;
}

.hero-watermark {
  position: absolute;
  top: 30%;
  right: clamp(-70px, 2vw, 36px);
  z-index: 0;
  width: min(72vw, 980px);
  height: auto;
  opacity: 0.065;
  pointer-events: none;
  user-select: none;
}

.detail-hero > :not(.hero-video):not(.hero-watermark) {
  position: relative;
  z-index: 1;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-bg, radial-gradient(circle at 70% 30%, rgba(255,255,255,0.18), transparent 28%), #050505);
  background-size: cover;
  background-position: center;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.84), rgba(0,0,0,0.26) 52%, rgba(0,0,0,0.68)),
    linear-gradient(0deg, rgba(5,5,5,1), rgba(0,0,0,0.12) 58%, rgba(0,0,0,0.28));
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--muted);

  text-transform: uppercase;
}

h1 {
  max-width: 1040px;
  margin: 0;

  line-height: 1.08;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);

  line-height: 1.45;
}

.page-section {
  position: relative;
  padding: 112px clamp(24px, 6vw, 96px);
  border-bottom: 0;
  background: linear-gradient(180deg, #050505 0%, #090909 100%);
  overflow: hidden;
  isolation: isolate;
}

.page-section::before {
  content: "";
  position: absolute;
  top: 50%;
  right: clamp(-160px, -6vw, -48px);
  z-index: -1;
  width: min(66vw, 920px);
  aspect-ratio: 15524 / 1392;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.042);
  -webkit-mask-image: var(--brand-watermark);
  mask-image: var(--brand-watermark);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  pointer-events: none;
}

.section-heading {
  max-width: 900px;
  margin: 0 0 34px;

  line-height: 1.12;
}

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

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  min-height: 164px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

.card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.09); }

.card strong {
  display: block;
  margin-bottom: 12px;

}

.card p {
  margin: 0;
  color: var(--muted);

  line-height: 1.45;
}

.media-band {
  min-height: 520px;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: #050505;
}

.media-band video,
.media-band img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
  opacity: 0.82;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  min-height: 50px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 3px;
  color: #000;
  background: #fff;
}

.button.secondary {
  color: #fff;
  background: transparent;
}

.detail-footer {
  padding: 88px clamp(24px, 6vw, 96px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--dim);
}

@media (max-width: 960px) {
  .detail-header {
    padding: 0 18px;
  }

  .detail-nav {
    gap: 16px;

  }

  .detail-nav a:nth-child(n+3) {
    display: none;
  }

  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    min-height: 680px;
    padding: 120px 18px 58px;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-watermark {
    top: 34%;
    right: -18vw;
    width: 108vw;
    opacity: 0.055;
  }

  .detail-hero > *,
  .page-section > *,
  .card > * {
    min-width: 0;
  }

  h1,
  .lead,
  .section-heading,
  .card p {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  h1 {

    overflow-wrap: anywhere;
    word-break: normal;
  }

  .page-section {
    padding: 64px 18px;
  }

  .page-section::before {
    right: -28vw;
    width: 118vw;
  }

  .detail-footer {
    flex-direction: column;
    padding: 54px 18px;
  }
}

.menu-toggle {
  position: relative;
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  opacity: 0.86;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 220ms ease;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  width: 23px;
  height: 1px;
  margin: 0;
  background: currentColor;
  transform: translateX(-50%);
  transform-origin: center;
  transition: top 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.menu-toggle::before { top: 14px; }
.menu-toggle span { top: 21px; }
.menu-toggle::after { top: 28px; }
.menu-toggle:hover,
.menu-toggle:focus-visible { opacity: 1; }

.menu-open .menu-toggle::before { top: 21px; transform: translateX(-50%) rotate(45deg); }
.menu-open .menu-toggle span { opacity: 0; }
.menu-open .menu-toggle::after { top: 21px; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 900px) {
  .detail-header { height: 72px; padding: 0 18px; }
  .brand { width: 132px; height: 24px; }
  .menu-toggle { display: block; }

  .detail-nav {
    position: absolute;
    top: 62px;
    right: 14px;
    left: 14px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 16px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(7,7,7,0.94);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

.menu-open .detail-nav { display: flex; flex-direction: column; }
.detail-nav a { width: 100%; min-height: 42px; }
.detail-nav .language-toggle { align-self: flex-start; margin-top: 10px; }
}

/* Homepage navigation is the shared navigation source for all detail pages. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  border: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.58), transparent);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-28px);
}

.nav {
  width: 100%;
  height: 76px;
  padding: 0 max(32px, env(safe-area-inset-left)) 0 max(32px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-transform: uppercase;
  font-family: MiSans, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  font-weight: 600;
  letter-spacing: 0.02em;
  transition: height 420ms ease;
}

.nav .brand { min-width: 0; }
.nav .brand img { display: block; }

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  color: rgba(244, 244, 244, 0.68);
  line-height: 1.2;
  transition: color 220ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] { color: rgba(244, 244, 244, 0.88); }
.nav a:active { color: rgba(244, 244, 244, 0.72); }

@media (max-width: 960px) {
  .nav { padding: 0 max(22px, env(safe-area-inset-left)) 0 max(22px, env(safe-area-inset-right)); }
  .nav-right .nav-secondary { display: none; }
}

@media (max-width: 620px) {
  .nav {
    height: 72px;
    padding: 0 max(18px, env(safe-area-inset-left)) 0 max(18px, env(safe-area-inset-right));

  }
  .nav .brand { width: 132px; height: 24px; }

  .detail-hero {
    min-height: auto;
    padding: 112px 20px 64px;
    align-items: start;
  }

  .detail-hero .eyebrow {
    margin-bottom: 14px;
    letter-spacing: 0.08em;
  }

  .detail-hero h1,
  .section-heading {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(244, 244, 244, 0.24);
    line-height: 1.12;
    letter-spacing: 0;
  }

  .detail-hero .lead {
    margin-top: 18px;
    line-height: 1.58;
  }

  .page-section { padding: 58px 20px; }
  .section-heading { margin-bottom: 26px; }
  .card { min-height: 0; padding: 20px; }
  .card p { line-height: 1.58; }

  /* Video heroes become two clean rows on phones: picture first, copy second. */
  .detail-hero:has(> .hero-video) {
    min-height: 100svh;
    padding: 64px 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    align-content: start;
    overflow: visible;
    background: #050505;
  }

  .detail-hero:has(> .hero-video)::before,
  .detail-hero:has(> .hero-video)::after,
  .detail-hero:has(> .hero-video) .hero-watermark {
    display: none;
  }

  .detail-hero:has(> .hero-video) > .hero-video {
    position: relative;
    inset: auto;
    z-index: 0;
    grid-row: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
    background: #000;
  }

  .detail-hero:has(> .hero-video) > :not(.hero-video):not(.hero-watermark) {
    margin-right: 18px;
    margin-left: 18px;
  }

  .detail-hero:has(> .hero-video) > .eyebrow {
    grid-row: 2;
    margin-top: 30px;
  }

  .detail-hero:has(> .hero-video) > h1 { grid-row: 3; }
  .detail-hero:has(> .hero-video) > .lead {
    grid-row: 4;
    margin-bottom: 42px;
  }

  .media-band {
    min-height: 0;
    aspect-ratio: 16 / 9;
    background: #000;
  }

  .media-band video,
  .media-band img {
    height: 100%;
    min-height: 0;
    object-fit: contain;
    opacity: 1;
    background: #000;
  }
}

@media (max-width: 900px) {
  .nav { height: 72px; padding: 0 18px; }
  .nav .brand { width: 132px; height: 24px; }
  .nav .menu-toggle { display: block; }
  .nav-right {
    position: absolute;
    top: 62px;
    right: 14px;
    left: 14px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 16px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(7,7,7,0.94);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .menu-open .nav-right { display: flex; flex-direction: column; }
  .nav-right .nav-secondary { display: flex !important; width: 100%; min-height: 42px; }
  .nav-right .language-toggle { align-self: flex-start; margin-top: 10px; }
}
