@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Barlow:wght@300;400;500;600&display=swap");

:root {
  --bg: #000;
  --ink: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.18);
  --heading: "Instrument Serif", serif;
  --body: "Barlow", sans-serif;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: #000;
  scroll-behavior: smooth;
}

body.cinematic-page {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #000;
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.skip-link:focus {
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  top: 16px;
  left: 16px;
  padding: 10px 14px;
  border-radius: 9999px;
  background: #fff;
  color: #000;
}

.liquid-glass {
  background: rgba(255,255,255,0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%,
    rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.liquid-glass-strong {
  background: rgba(255,255,255,0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: none;
  box-shadow: 4px 4px 4px rgba(0,0,0,0.05), inset 0 1px 1px rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

.liquid-glass-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.5) 0%,
    rgba(255,255,255,0.2) 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.2) 80%,
    rgba(255,255,255,0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cinematic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 15%, rgba(255,255,255,.16), transparent 26rem),
    radial-gradient(circle at 80% 24%, rgba(122,86,255,.2), transparent 30rem),
    #000;
}

.cinematic-bg video {
  position: absolute;
  left: 50%;
  top: 0;
  width: 120%;
  height: 120%;
  object-fit: cover;
  object-position: center top;
  opacity: .96;
  filter: brightness(1.18) saturate(1.18) contrast(1.04);
  transform: translateX(-50%) scale(1.01);
  animation: cinematicDrift 18s ease-in-out infinite alternate;
}

.cinematic-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 8%, transparent 0, rgba(0,0,0,.22) 52%, rgba(0,0,0,.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.64));
}

@keyframes cinematicDrift {
  from {
    transform: translateX(-51%) scale(1.02) translateY(-1%);
  }

  to {
    transform: translateX(-49%) scale(1.05) translateY(1%);
  }
}

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

.cinematic-nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 32px;
}

.cinematic-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.brand-orb {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 9999px;
  color: #fff;
  font-family: var(--heading);
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 9999px;
}

.nav-pill a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 9999px;
  color: rgba(255,255,255,.9);
  font-size: .93rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-pill a[aria-current="page"] {
  background: rgba(255,255,255,.12);
}

.nav-pill .nav-cta {
  gap: 8px;
  padding: 0 16px;
  background: #fff;
  color: #000;
  font-weight: 600;
}

.language-orb {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 9999px;
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.cinematic-main {
  position: relative;
  z-index: 1;
}

.page-hero {
  min-height: 78vh;
  display: grid;
  align-items: center;
  padding: 138px 0 72px;
  text-align: center;
}

.page-hero.compact {
  min-height: 58vh;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: rgba(255,255,255,.78);
  font-size: .82rem;
  font-weight: 500;
}

.page-hero h1,
.section-head h2,
.notice h2,
.glass-card h3,
.directory-card h3,
.panel h3 {
  margin: 0;
  color: #fff;
  font-family: var(--heading);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: .82;
}

.lead {
  max-width: 760px;
  margin: 22px auto 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  font-weight: 300;
  line-height: 1.45;
}

.action-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.button,
.ghost,
.card-link,
.filter-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
}

.button {
  gap: 8px;
  padding: 0 18px;
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  font-weight: 600;
}

.ghost,
.filter-button {
  padding: 0 16px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
}

.filter-button.active {
  background: #fff;
  color: #000;
}

.card-link {
  min-height: auto;
  justify-content: flex-start;
  color: #fff;
  font-weight: 600;
}

.section {
  padding: 76px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2,
.notice h2 {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: .88;
}

.section-head p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-weight: 300;
}

.kicker,
.tag,
.chip {
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  font-weight: 500;
}

.grid-2,
.grid-3,
.grid-4,
.directory-grid {
  display: grid;
  gap: 18px;
}

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

.grid-3,
.directory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.glass-card,
.feature-card,
.mini-card,
.directory-card,
.panel,
.notice,
.search-shell {
  border-radius: 1.25rem;
}

.glass-card,
.feature-card,
.mini-card,
.directory-card,
.panel,
.notice {
  min-height: 260px;
  padding: 24px;
}

.feature-card,
.mini-card,
.directory-card,
.panel,
.notice,
.search-shell,
.filters {
  background: rgba(255,255,255,0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.feature-card::before,
.mini-card::before,
.directory-card::before,
.panel::before,
.notice::before,
.search-shell::before,
.filters::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.15) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,.15) 80%, rgba(255,255,255,.45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.feature-card,
.mini-card,
.directory-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card h3,
.mini-card h3,
.directory-card h3,
.panel h3 {
  margin-top: auto;
  font-size: clamp(2.2rem, 3.2vw, 3.6rem);
  line-height: .92;
}

.feature-card p,
.mini-card p,
.directory-card p,
.panel p,
.notice p {
  color: rgba(255,255,255,.82);
  font-weight: 300;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.card-top img {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.tag,
.chip {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 9999px;
  padding: 0 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.search-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 780px;
  margin: 34px auto 0;
  padding: 8px;
}

.search-shell input,
.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 1rem;
  background: rgba(0,0,0,.38);
  color: #fff;
  outline: none;
}

.search-shell input {
  min-height: 52px;
  padding: 0 16px;
}

.search-shell input::placeholder,
.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: rgba(255,255,255,.48);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-radius: 9999px;
}

.empty {
  display: none;
  margin-top: 18px;
  color: rgba(255,255,255,.72);
}

.empty.visible {
  display: block;
}

.feedback-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feedback-form .full {
  grid-column: 1 / -1;
}

.feedback-form label {
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,.78);
  font-size: .88rem;
  font-weight: 500;
}

.feedback-form input,
.feedback-form select {
  min-height: 46px;
  padding: 0 14px;
}

.feedback-form textarea {
  min-height: 150px;
  resize: vertical;
  padding: 14px;
}

.status {
  color: #fff;
  font-weight: 600;
}

.status.error {
  color: #ffb4b4;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 34px 0;
  color: rgba(255,255,255,.72);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.owner-entry {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: rgba(255,255,255,.74);
  opacity: .18;
  outline: none;
}

.owner-entry span,
.owner-entry span::before {
  position: absolute;
  display: block;
  content: "";
}

.owner-entry span {
  left: 5px;
  top: 8px;
  width: 8px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.owner-entry span::before {
  left: 1px;
  top: -7px;
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 8px 8px 0 0;
  transform: rotate(-16deg);
}

.owner-entry:hover,
.owner-entry:focus-visible {
  opacity: .9;
}

@media (max-width: 980px) {
  .cinematic-nav {
    padding: 0 14px;
  }

  .cinematic-nav-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-orb,
  .language-orb {
    width: 44px;
    height: 44px;
  }

  .nav-pill {
    order: 3;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: calc(100vw - 28px);
    overflow-x: auto;
    padding: 5px;
    border-radius: 9999px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-pill::-webkit-scrollbar {
    display: none;
  }

  .nav-pill a {
    min-height: 34px;
    flex: 0 0 auto;
    padding: 0 11px;
    font-size: .82rem;
  }

  .nav-pill .nav-cta {
    display: none;
  }

  .page-hero {
    min-height: 76svh;
    padding-top: 142px;
    padding-bottom: 56px;
  }

  .section-head,
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .directory-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .cinematic-bg video {
    left: 45%;
    width: 150%;
    height: 112%;
  }

  .page-hero {
    align-items: center;
    min-height: 78svh;
  }

  .page-hero h1 {
    max-width: 8.8em;
    font-size: clamp(3rem, 12.5vw, 3.7rem);
    line-height: .92;
  }

  :lang(zh-CN) .page-hero h1 {
    max-width: 7.2em;
    font-size: clamp(3.05rem, 12.8vw, 3.55rem);
    line-height: .94;
  }

  .page-hero .lead {
    max-width: 31rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  .page-hero .action-row {
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }

  .page-hero .button,
  .page-hero .ghost {
    width: min(100%, 285px);
    min-height: 44px;
  }

  .section {
    padding: 58px 0;
  }

  .section-head {
    gap: 14px;
    margin-bottom: 22px;
  }

  .section-head h2 {
    font-size: clamp(2.6rem, 12vw, 3.35rem);
    line-height: .95;
  }

  .search-shell,
  .feedback-form {
    grid-template-columns: 1fr;
  }

  .search-shell .button,
  .feedback-form .button,
  .feedback-form .ghost {
    width: 100%;
  }

  .filters {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    max-width: 100%;
    border-radius: 1.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .feature-card,
  .directory-card,
  .panel,
  .notice {
    min-height: auto;
    padding: 20px;
  }

  .directory-grid,
  .grid-3 {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
