/* PHOENIXRISE — "Ember Rising". Fonts are self-hosted (SIL OFL 1.1, see /assets/fonts/). */
@font-face { font-family: "Instrument Serif"; src: url(/assets/fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/assets/fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/assets/fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/assets/fonts/geist-mono.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --obs: #0A0807; --graphite: #17130F; --ember: #FF6B2C; --gold: #E9B85C;
  --ash: #EDE6DD; --smoke: #8C8178; --line: rgba(237,230,221,.14);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(22px, 4vw, 56px);
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--obs); color: var(--ash); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ash); color: var(--obs); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- header ---------- */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 26px var(--pad); }
.wm { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; font-size: 13px; letter-spacing: .34em; }
.wm svg { width: 26px; height: 26px; }
.top nav { display: flex; gap: 32px; font-size: 13px; letter-spacing: .04em; }
.top nav a { color: var(--smoke); text-decoration: none; transition: color .3s; }
.top nav a:hover { color: var(--ash); }
.top nav .lang { color: var(--ash); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--obs); }
.hero .poster, .hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .poster img { width: 100%; height: 100%; object-fit: cover; }
.hero canvas { display: block; opacity: 0; transition: opacity 1.2s ease; }
.hero.live canvas { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(10,8,7,.86) 0%, rgba(10,8,7,.38) 38%, rgba(10,8,7,0) 62%); }
.hero .copy { position: absolute; left: var(--pad); right: var(--pad); bottom: 12vh; z-index: 2; max-width: 820px; }
.eyebrow { color: var(--gold); margin: 0 0 22px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 7.4vw, 108px); line-height: .98; letter-spacing: -.01em; margin: 0; }
.hero h1 i, .display i { color: var(--gold); }
.hero .sub { font-size: clamp(16px, 1.6vw, 20px); opacity: .85; margin: 22px 0 0; letter-spacing: .02em; max-width: 34em; }
.cta { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; padding: 14px 22px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; letter-spacing: .06em; text-decoration: none; background: rgba(10,8,7,.4); transition: border-color .3s, background .3s; }
.cta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px var(--ember); }
.cta:hover { border-color: rgba(233,184,92,.6); background: rgba(255,107,44,.08); }
.hero .meta { position: absolute; right: var(--pad); bottom: 12vh; z-index: 2; color: var(--smoke); text-align: right; line-height: 2.1; margin: 0; padding: 0; list-style: none; }
.hero-in { animation: rise 1.1s var(--ease) both; }
.hero-in.d1 { animation-delay: .12s; } .hero-in.d2 { animation-delay: .24s; } .hero-in.d3 { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
section.block { padding: clamp(80px, 12vw, 160px) var(--pad); max-width: 1320px; margin: 0 auto; }
.label { display: flex; gap: 18px; align-items: center; color: var(--smoke); margin: 0 0 28px; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.label b { color: var(--gold); font-weight: 400; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 18px; max-width: 16em; }
.intro { color: var(--smoke); font-size: 17px; max-width: 38em; margin: 0 0 56px; }
:lang(zh-Hans) .display:not([lang="en"]) { font-family: var(--sans); font-weight: 500; letter-spacing: .02em; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.2; }

/* services */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.svc { background: var(--graphite); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; position: relative; }
.svc figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: #120e0b; }
.svc figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,107,44,.22) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform 1.1s var(--ease); pointer-events: none; }
.svc:hover figure img { transform: scale(1.03); }
.svc:hover figure::after { transform: translateX(110%); }
.svc .body { padding: 26px 28px 30px; }
.svc .num { color: var(--gold); margin: 0 0 12px; }
.svc h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; margin: 0 0 10px; }
:lang(zh-Hans) .svc h3 { font-family: var(--sans); font-weight: 500; font-size: clamp(20px, 1.9vw, 24px); }
.svc p { color: #BDB3A9; margin: 0; }

/* approach */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 32px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps .mono { color: var(--ember); }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 14px 0 8px; }
:lang(zh-Hans) .steps h3 { font-family: var(--sans); font-weight: 500; font-size: 22px; }
.steps p { color: #BDB3A9; margin: 0; }

/* contact */
.contact { text-align: center; position: relative; }
.contact::before { content: ""; position: absolute; left: 50%; top: 40%; width: min(780px, 90vw); height: 360px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,107,44,.16), rgba(233,184,92,.05) 55%, transparent); pointer-events: none; }
.contact .display { margin: 0 auto 10px; position: relative; }
.contact p { color: var(--smoke); position: relative; margin: 0; }
.contact .cta { position: relative; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px var(--pad) 48px; color: var(--smoke); font-size: 13.5px; }
footer .row { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: flex-start; }
footer .co { color: var(--ash); letter-spacing: .08em; margin: 0 0 6px; font-weight: 500; }
footer p { margin: 0; }
footer a { color: var(--ash); }
footer .links { display: flex; gap: 24px; }

/* ---------- reveal (only when JS runs and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
  .js .mask { display: block; overflow: hidden; padding-bottom: .08em; }
  .js .mask > span { display: block; transform: translateY(105%); transition: transform .8s var(--ease); }
  .js .reveal.in .mask > span, .js .mask.in > span { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-in { animation: none; }
  .hero canvas { display: none; }
  .svc figure img, .svc figure::after { transition: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 26px 0 14px; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .top { padding: 20px 22px; }
  .top nav a:not(.lang) { display: none; }
  .hero .copy { bottom: 9vh; }
  .hero .meta { display: none; }
  .svc .body { padding: 22px 22px 26px; }
}
.nf { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.nf .label { width: min(560px, 100%); }
