/* T090 Hero Reveal ("显影") — Shared across /, /en/, /km/
   Exact prototype colors, typography, layout, and animation parameters from A_src.html.
   Self-hosted Geist 300/400/500 + Geist Mono 400/500 (zero Google Fonts). */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

.hero-reveal {
  --hr-bg: #110D0A;
  --hr-ink: #EDE3D3;
  --hr-mute: #9A8A77;
  --hr-line: rgba(237, 227, 211, 0.16);
  --hr-acc: #E39B5B;
  --f-lat: "Geist", -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-cn: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);

  position: relative;
  height: 100svh;
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--hr-bg);
  color: var(--hr-ink);
  font-family: var(--f-lat), var(--f-cn);
  -webkit-font-smoothing: antialiased;
}

html[lang="km"] .hero-reveal {
  --f-cn: "Noto Sans Khmer Local", "PingFang SC", sans-serif;
}

.hero-reveal a {
  color: inherit;
  text-decoration: none;
}

.hero-reveal button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.hero-reveal :focus-visible {
  outline: 1px solid var(--hr-acc);
  outline-offset: 4px;
  border-radius: 4px;
}

.hero-reveal #gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero-reveal .static-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  background:
    radial-gradient(60% 50% at 70% 40%, rgba(227, 155, 91, .16), transparent 70%),
    radial-gradient(50% 60% at 20% 80%, rgba(120, 64, 30, .22), transparent 70%),
    var(--hr-bg);
}

.hero-reveal .frame {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.hero-reveal .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 20px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(120% 100% at 50% 50%, #000 60%, transparent 100%);
}

.hero-reveal.is-static #gl {
  display: none;
}

.hero-reveal.is-static .static-bg {
  display: block;
}

.hero-reveal.is-static .frame img {
  display: block;
}

.hero-reveal .top {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
}

.hero-reveal .logo {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .28em;
  font-weight: 500;
  color: var(--hr-ink);
  white-space: nowrap;
}

.hero-reveal .logo i {
  font-style: normal;
  color: var(--hr-acc);
}

.hero-reveal .nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  color: var(--hr-mute);
}

.hero-reveal .nav a:hover,
.hero-reveal .nav button:hover {
  color: var(--hr-ink);
}

.hero-reveal .nav .links {
  display: flex;
  gap: 24px;
}

.hero-reveal .lang {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-reveal .lang .is-cur {
  color: var(--hr-ink);
  font-weight: 500;
}

.hero-reveal .copy {
  position: absolute;
  z-index: 3;
  left: max(20px, env(safe-area-inset-left, 0px));
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: 76px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  pointer-events: none;
}

.hero-reveal .copy a,
.hero-reveal .copy button {
  pointer-events: auto;
}

.hero-reveal .hr-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--hr-mute);
  text-transform: uppercase;
}

.hero-reveal .hr-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hr-acc);
  margin-right: 10px;
  vertical-align: 1px;
  box-shadow: 0 0 12px var(--hr-acc);
}

.hero-reveal .hr-brand {
  margin: 0;
  font-family: var(--f-lat);
  font-weight: 300;
  font-size: clamp(46px, 8.2vw, 136px);
  line-height: .88;
  letter-spacing: -.05em;
  color: var(--hr-ink);
}

.hero-reveal .hr-brand b {
  font-weight: 500;
}

.hero-reveal .title {
  margin: 0;
  font-family: var(--f-cn);
  font-weight: 500;
  font-size: clamp(21px, 2.3vw, 34px);
  line-height: 1.4;
  letter-spacing: .01em;
  text-wrap: balance;
  max-width: 17em;
  color: var(--hr-ink);
}

.hero-reveal .hr-sub {
  margin: 0;
  font-family: var(--f-cn);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.7;
  color: var(--hr-mute);
  max-width: 34em;
}

html[lang="en"] .hero-reveal .hr-sub {
  font-family: var(--f-lat);
  max-width: 42em;
}

html[lang="en"] .hero-reveal .title {
  font-family: var(--f-lat);
  max-width: 24em;
  line-height: 1.32;
}

html[lang="km"] .hero-reveal .title {
  font-size: clamp(19px, 2.1vw, 30px);
  line-height: 1.65;
  max-width: 20em;
}

.hero-reveal .cta {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hero-reveal .hr-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 24px 0 26px;
  border-radius: 999px;
  background: var(--hr-ink);
  color: var(--hr-bg);
  font-family: var(--f-cn);
  font-weight: 600;
  font-size: 16px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

html[lang="en"] .hero-reveal .hr-btn {
  font-family: var(--f-lat);
}

.hero-reveal .hr-btn svg {
  transition: transform .5s var(--ease);
}

.hero-reveal .hr-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(227, 155, 91, .55);
  color: var(--hr-bg);
}

.hero-reveal .hr-btn:hover svg {
  transform: translateX(3px);
}

.hero-reveal .ghost {
  font-family: var(--f-cn);
  font-size: 15px;
  color: var(--hr-ink);
  border-bottom: 1px solid var(--hr-line);
  padding-bottom: 4px;
}

html[lang="en"] .hero-reveal .ghost {
  font-family: var(--f-lat);
}

.hero-reveal .ghost:hover {
  border-color: var(--hr-acc);
  color: var(--hr-ink);
}

.hero-reveal .meta {
  position: absolute;
  z-index: 3;
  left: max(20px, env(safe-area-inset-left, 0px));
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--hr-mute);
}

.hero-reveal .meta .sep {
  flex: 1;
  height: 1px;
  background: var(--hr-line);
  min-width: 20px;
}

.hero-reveal #again {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--hr-ink);
  letter-spacing: .06em;
}

.hero-reveal #again svg {
  transition: transform .8s var(--ease);
}

.hero-reveal #again:hover svg {
  transform: rotate(-180deg);
}

.hero-reveal .hint {
  transition: opacity .8s;
}

.hero-reveal .hint.off {
  opacity: 0;
}

.hero-reveal .rv {
  animation: hr-rise 1.4s var(--ease) both;
  animation-delay: var(--d, 0s);
}

@keyframes hr-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(12px);
  }
}

/* Smooth visual bridge from fixed warm-black hero into light/dark below-the-fold */
.hero-bridge {
  height: 44px;
  border-top: 0 !important;
  padding: 0 !important;
  background: linear-gradient(180deg, #110D0A 0%, var(--bg) 100%);
}

.hero-bridge + section {
  border-top: 0;
}

/* Desktop: artwork right, copy bottom-left */
@media (min-width: 860px) {
  .hero-reveal .top {
    padding: 28px 56px 0;
  }
  .hero-reveal .copy {
    left: 56px;
    right: auto;
    bottom: 96px;
    max-width: 46vw;
    gap: 22px;
  }
  .hero-reveal .meta {
    left: 56px;
    right: 56px;
    bottom: 32px;
  }
}

@media (max-width: 859px) {
  .hero-reveal .nav .links {
    display: none;
  }
  .hero-reveal .nav {
    gap: 12px;
  }
  .hero-reveal .copy {
    gap: 14px;
    bottom: 62px;
  }
  .hero-reveal .hr-btn {
    height: 50px;
    font-size: 15px;
    padding: 0 20px 0 22px;
  }
  .hero-reveal .meta .hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reveal .rv {
    animation: none;
  }
}
