/* QUAN CHENGHAO · SUNSHINE STUDIO · Nuri */
:root, html.theme-light {
  --bg: #f5f0e5;
  --surface: #fffdf8;
  --surface-hover: #eee9de;
  --border: #bbc6d6;
  --text: #14243a;
  --text-secondary: #4b5a6f;
  --accent: #2456d8;
  --accent-secondary: #2456d8;
  --link-bg: transparent;
  --panel: #fffdf8;
  --panel-2: #eee9de;
  --ink: #14243a;
  --dim: #4b5a6f;
  --line: #bbc6d6;
  --accent-soft: #e4e8f3;
}
html.theme-dark, :root[data-theme="dark"] {
  --bg: #14243a;
  --surface: #1c2d44;
  --surface-hover: #263a54;
  --border: #52627a;
  --text: #f5f0e5;
  --text-secondary: #bbc6d6;
  --accent: #a9c0ff;
  --accent-secondary: #bbc6d6;
  --link-bg: transparent;
  --panel: #1c2d44;
  --panel-2: #263a54;
  --ink: #f5f0e5;
  --dim: #bbc6d6;
  --line: #52627a;
  --accent-soft: #203458;
}
@media (prefers-color-scheme: dark) {
  :root:not(.theme-light):not([data-theme="light"]) {
    --bg: #14243a; --surface: #1c2d44; --surface-hover: #263a54;
    --border: #52627a; --text: #f5f0e5; --text-secondary: #bbc6d6;
    --accent: #a9c0ff; --accent-secondary: #bbc6d6;
    --panel: #1c2d44; --panel-2: #263a54; --ink: #f5f0e5;
    --dim: #bbc6d6; --line: #52627a; --accent-soft: #203458;
  }
}
.brand-home {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); font: 600 13px/1.5 Inter, "Segoe UI", sans-serif;
  letter-spacing: .09em; text-decoration: none; margin-bottom: 34px;
}
.brand-fold { display: inline-block; position: relative; width: 25px; height: 29px;
  background: #2456d8; clip-path: polygon(0 0,100% 27%,74% 100%,0 73%); flex: none; }
.brand-fold::after { content: ""; position: absolute; inset: 0; background: #bbc6d6;
  clip-path: polygon(0 0,100% 27%,0 73%); }
.profile-page .hero { min-height: 0; padding: 126px 32px 68px; }
.profile-page .hero::before, .profile-page .hero::after { display: none; }
.profile-page .hero-inner { width: min(1120px,100%); max-width: none; margin: 0 auto; }
.profile-page .hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 180px; gap: 42px; align-items: end; }
.profile-page .brand-name { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.profile-page .brand-name strong { font: 700 32px/1.3 Inter, "Segoe UI", sans-serif; letter-spacing: 0; }
.profile-page .brand-name span { font-size: 16px; color: var(--text-secondary); }
.profile-page .eyebrow { font-size: 13px; font-weight: 600; margin: 0 0 28px; letter-spacing: .025em; }
.profile-page .eyebrow::before { display: none; }
.profile-page h1 { font-size: clamp(34px,4.8vw,58px); line-height: 1.3; font-weight: 700; max-width: 800px;
  color: var(--accent); word-break: keep-all; overflow-wrap: break-word; letter-spacing: -.045em; }
.profile-page .hero-copy { font-size: 19px; line-height: 1.85; font-weight: 400; margin-top: 24px; max-width: 740px; word-break: keep-all; }
.profile-page .brand-english { color: var(--text-secondary); margin-top: 16px; font-size: 14px; }
.profile-page .nuri-signature { width: 180px; margin: 0; }
.profile-page .nuri-signature img { display: block; width: 100%; height: auto; padding: 12px; }
.profile-page .nuri-signature figcaption { text-align: center; font-size: 12px; color: var(--text-secondary); margin-top: 8px; }
.profile-page .links { margin-top: 30px; }
.profile-page .link-button { font-weight: 600; border-radius: 4px; }
.profile-page .link-button:hover { background: var(--surface-hover); }
.profile-page .language-switch a[aria-current="true"], .profile-page .skip-link { background: #2456d8; color: #fffdf8; }
.profile-page .content { border-top: 1px solid var(--border); padding-top: 52px; }
.profile-page #projects, .profile-page #about { scroll-margin-top: 92px; }
.profile-page .section-title { font-size: clamp(28px,3vw,36px); font-weight: 700; }
.profile-page .card h3 { font-weight: 700; }
.profile-page .stat, .profile-page .card { box-shadow: none; border-radius: 6px; }
.profile-page .animate { animation: none; }
.profile-page .brand-community { margin-top: 56px; padding: 32px 0; border-top: 1px solid var(--border); }
.profile-page .brand-community .brand-community-label { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .08em; margin-bottom: 10px; }
.profile-page .brand-community h2 { font-size: 25px; line-height: 1.5; margin-bottom: 14px; font-weight: 600; }
.profile-page .brand-community p { max-width: 800px; color: var(--text-secondary); line-height: 1.8; }
.profile-page .brand-footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px 34px;
  padding-top: 30px; border-top: 1px solid var(--border); margin-top: 24px; }
.profile-page .brand-footer strong { font-size: 13px; letter-spacing: .07em; }
.profile-page .brand-footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; }
.profile-page .brand-footer a { color: var(--accent); text-underline-offset: 4px; }
@media (max-width: 820px) {
  .profile-page .hero { padding: 106px 22px 46px; }
  .profile-page .hero-grid { grid-template-columns: minmax(0,1fr) 120px; gap: 22px; }
  .profile-page .nuri-signature { width: 120px; }
  .profile-page .hero-copy { font-size: 17px; }
}
@media (max-width: 580px) {
  .profile-page .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .profile-page .nuri-signature { justify-self: end; width: 100px; }
  .profile-page .nuri-signature figcaption { display: none; }
  .profile-page h1 { font-size: 36px; }
  .profile-page .hero-copy { margin-top: 20px; }
  .profile-page .eyebrow { margin-bottom: 22px; }
  .profile-page .content { padding-top: 38px; }
  .profile-page .stats { gap: 10px; }
  .profile-page .stat { padding: 20px; }
  .profile-page .stat strong { font-size: 28px; }
  .profile-page .brand-name strong { font-size: 28px; }
}
@media print {
  .profile-page .hero { padding: 30px 0; }
  .profile-page .content { padding: 30px 0; }
  .profile-page .nuri-signature { width: 100px; }
  .profile-page .brand-community, .profile-page .brand-footer { break-inside: avoid; }
}
