/* =========================================================
   BRAYDEN WU — Personal Hair Design
   Palette: white ground, black ink, wine accent
   Type: Cormorant Garamond (display), Jost (body),
         Pinyon Script (accent), Noto Serif/Sans SC (中文)
   ========================================================= */

:root {
  --ink: #0b0b0b;
  --ivory: #ffffff;
  --sand: #f6f5f3;
  --line: #d9d3c8;
  --line-dark: #e4e1dc;
  --wine: #8c1c34;
  --rose: #8c1c34;
  --text: #3d3a36;
  --muted: #5d5a55;

  --serif: "Cormorant Garamond", Georgia, "Noto Serif SC", serif;
  --sans: "Jost", system-ui, -apple-system, "Noto Sans SC", sans-serif;
  --script: "Pinyon Script", cursive;

  --pad-x: max(5vw, 20px);
  --pad-y: clamp(64px, 9vw, 130px);
}

/* Chinese mode: swap to CJK-friendly faces */
html[lang="zh-Hans"] {
  --serif: "Noto Serif SC", "Cormorant Garamond", serif;
  --sans: "Noto Sans SC", "Jost", system-ui, sans-serif;
}
html[lang="zh-Hans"] .script-accent,
html[lang="zh-Hans"] .statement__script {
  font-family: var(--serif);
  font-style: normal;
  letter-spacing: 0.12em;
}
html[lang="zh-Hans"] .script-accent { font-size: 22px; }
html[lang="zh-Hans"] .statement__script { font-size: clamp(32px, 4.5vw, 56px); margin-top: 14px; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, ol, ul { margin: 0; }
ol, ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; }
.wrap--narrow { max-width: 900px; }
.section { padding: var(--pad-y) var(--pad-x); }
.dark { background: #fff; color: var(--ink); border-top: 1px solid var(--line-dark); }

/* ---------- type ---------- */
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  text-wrap: balance;
}
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
}
.body { margin-top: 26px; max-width: 640px; color: var(--text); }
.body--light { color: var(--text); }
.muted { color: var(--muted); font-size: 16px; }
.script-accent {
  font-family: var(--script);
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.1;
  color: var(--wine);
}
.script-accent--rose { color: var(--rose); }
.script-accent--light { color: var(--wine); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 14px 28px;
  font-size: 15px; font-weight: 400; letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s;
}
.btn--light { background: var(--ink); color: #fff; }
.btn--light:hover { background: var(--wine); color: #fff; }
.btn--ghost { border-color: rgba(11, 11, 11, 0.35); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); min-height: 44px; padding: 10px 22px; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn-row--center { justify-content: center; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--pad-x);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--ink);
  border-bottom: 1px solid rgba(11, 11, 11, 0.1);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__emblem { width: 44px; height: 44px !important; object-fit: contain; }
.nav__script { height: 32px; width: auto; }
.nav__links { display: flex; gap: 34px; font-size: 15px; }
.nav__links a { color: rgba(11, 11, 11, 0.72); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 18px; }

.lang { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.lang__btn {
  background: none; border: 0; cursor: pointer;
  color: rgba(11, 11, 11, 0.5);
  font: inherit; padding: 10px 6px; min-height: 44px;
  transition: color .2s;
}
.lang__btn[aria-pressed="true"] { color: var(--ink); border-bottom: 1px solid var(--rose); }
.lang__btn:hover { color: var(--ink); }
.lang__sep { color: rgba(11, 11, 11, 0.25); }

.nav__toggle {
  display: none; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 12px 10px;
  flex-direction: column; justify-content: center; gap: 7px;
}
.nav__toggle span { display: block; height: 1px; background: var(--ink); transition: transform .25s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #fff; color: var(--ink);
  padding: clamp(48px, 7vw, 110px) var(--pad-x) clamp(64px, 8vw, 120px);
}
.hero__diamond { position: absolute; transform: rotate(45deg); pointer-events: none; }
.hero__diamond--a { right: -180px; top: 80px; width: 620px; height: 620px; border: 1px solid rgba(11, 11, 11, 0.08); }
.hero__diamond--b { right: -130px; top: 130px; width: 520px; height: 520px; border: 1px solid rgba(140, 28, 52, 0.25); }
.hero__grid { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(48px, 6vw, 96px); }
.hero__text { flex: 1 1 460px; }
.hero__kicker { font-size: 15px; color: rgba(11, 11, 11, 0.6); margin-bottom: 28px; }
.hero__script { width: min(100%, 540px); height: auto; }
.hero__title {
  margin-top: 36px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 62px); line-height: 1.08;
  text-wrap: balance;
}
.hero__lead { margin-top: 26px; max-width: 520px; color: rgba(11, 11, 11, 0.72); }
.hero__photo { flex: 1 1 340px; max-width: 470px; margin: 0 auto; position: relative; }
.hero__frame { position: absolute; inset: -18px 18px 34px -18px; border: 1px solid rgba(11, 11, 11, 0.25); }
.hero__photo img { position: relative; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; }
.hero__photo figcaption { margin-top: 14px; font-size: 13px; color: rgba(11, 11, 11, 0.55); }

/* ---------- intro ---------- */
.intro__grid { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 96px); }
.intro__num { flex: 1 1 300px; }
.intro__text { flex: 2 1 480px; }
.big-16 { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(110px, 14vw, 190px); line-height: 0.9; color: var(--wine); }
.intro__num .muted { margin-top: 12px; }

/* ---------- journey ---------- */
.journey { background: #fff; border-top: 1px solid var(--line-dark); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 48px; }
.section__title { margin-bottom: 48px; }
.timeline { border-bottom: 1px solid #cfc8bc; }
.timeline__row {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px; align-items: baseline;
  padding: 36px 0; border-top: 1px solid #cfc8bc;
}
.timeline__year { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; line-height: 1; white-space: nowrap; transition: color .25s; }
.timeline__row:hover .timeline__year { color: var(--wine); }
.timeline__role { margin-top: 6px; font-size: 15px; font-weight: 400; color: var(--wine); }

/* ---------- expertise ---------- */
.skills {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.skill { background: var(--ivory); padding: 36px 30px 40px; transition: background .25s; }
.skill:hover { background: var(--sand); }
.skill .muted { margin-top: 14px; }
.diamond { display: block; width: 14px; height: 14px; border: 1px solid var(--wine); transform: rotate(45deg); margin-bottom: 28px; }

/* ---------- on stage ---------- */
.stage__grid { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 90px); }
.stage__photo { flex: 1 1 360px; max-width: 520px; }
.stage__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 40%; }
.stage__text { flex: 1 1 420px; }
.stage__text .h2 { margin-top: 14px; }
.events { margin-top: 40px; border-bottom: 1px solid var(--line-dark); }
.events li { display: flex; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line-dark); }
.events__year { font-family: "Cormorant Garamond", Georgia, serif; font-size: 30px; line-height: 1; color: var(--rose); }
.events__meta { margin-top: 4px; font-size: 15px; color: rgba(11, 11, 11, 0.6); }

/* ---------- philosophy ---------- */
.philosophy { position: relative; overflow: hidden; background: #fff; color: var(--ink); text-align: center; border-top: 1px solid var(--line-dark); }
.philosophy__diamond {
  position: absolute; left: 50%; top: 50%;
  width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border: 1px solid rgba(11, 11, 11, 0.12); transform: rotate(45deg);
}
.philosophy__inner { position: relative; }
.philosophy__quote {
  margin-top: 24px;
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1.15; text-wrap: balance;
}
html[lang="zh-Hans"] .philosophy__quote { font-style: normal; }
html[lang="zh-Hans"] .hero__title { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.25; word-break: keep-all; }
.philosophy .body { margin-left: auto; margin-right: auto; max-width: 680px; color: var(--text); }
.steps {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 5vw, 64px);
  margin-top: 54px; font-family: var(--serif); font-size: 26px;
}
.steps__sep { color: var(--wine); opacity: .7; }

/* ---------- statement ---------- */
.statement { text-align: center; }
.statement__emblem { width: 84px; height: 84px !important; object-fit: contain; margin: 0 auto; }
.statement__title { margin-top: 30px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.5vw, 72px); line-height: 1.05; }
.statement__script { margin-top: 6px; font-family: var(--script); font-size: clamp(48px, 6.5vw, 88px); line-height: 1.15; color: var(--rose); }
.statement__body { margin: 30px auto 0; max-width: 520px; }

/* ---------- footer ---------- */
.footer { background: #fff; color: var(--muted); padding: 0 var(--pad-x) 40px; font-size: 14px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; border-top: 1px solid rgba(11, 11, 11, 0.12); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav__toggle { display: flex; }
  .nav__book { display: none; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; padding: 8px var(--pad-x) 20px;
    border-bottom: 1px solid rgba(11, 11, 11, 0.1);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(11, 11, 11, 0.08); }
}
@media (max-width: 760px) {
  .timeline__row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 28px 0; }
  .timeline__year { font-size: 26px; }
  .hero__diamond { display: none; }
  .hero__frame { inset: -10px 10px 34px -10px; }
  .hero__photo { margin-left: 10px; }
}
@media (max-width: 420px) {
  .nav__script { display: none; }
  .vision { padding: 24px 22px; }
  .btn { width: 100%; justify-content: center; }
}
