:root {
  color-scheme: light;
  --ink: #102331;
  --muted: #5b6b72;
  --paper: #f5f7f5;
  --panel: #ffffff;
  --line: #d9e1df;
  --accent: #df6f3d;
  --accent-dark: #b94f26;
  --cyan: #b8e3dc;
  --shadow: 0 18px 50px rgba(16, 35, 49, .09);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef5f3;
  --muted: #a9b8bb;
  --paper: #101a20;
  --panel: #18262e;
  --line: #304149;
  --accent: #f09561;
  --accent-dark: #ffb07d;
  --cyan: #8fd7cf;
  --shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", "Microsoft YaHei", sans-serif; line-height: 1.6; }
a { color: inherit; }
.site-header { max-width: 1180px; margin: 0 auto; padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; overflow: hidden; border-radius: 7px; background: var(--ink); }
.brand-mark img { width: 22px; height: 22px; object-fit: contain; filter: saturate(.8) brightness(1.2); }
.header-tools { display: flex; align-items: center; gap: 22px; }
.site-nav { display: flex; gap: 26px; color: var(--muted); font-size: 14px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent-dark); }
.theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
.theme-toggle:hover, .theme-toggle:focus-visible { border-color: var(--accent); color: var(--accent-dark); }
.theme-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.theme-icon { grid-area: 1 / 1; font-size: 22px; line-height: 1; }
.theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: block; }
main { max-width: 1180px; margin: 0 auto; }
.hero { min-height: 560px; padding: 92px 32px 96px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.eyebrow { margin: 0 0 18px; color: var(--accent-dark); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 690px; margin-bottom: 22px; font-size: clamp(42px, 6vw, 76px); line-height: 1.04; letter-spacing: 0; }
.hero-lede { max-width: 560px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 18px; align-items: center; margin-top: 36px; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: 700; }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover, .button-primary:focus-visible { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-quiet { border-color: transparent; color: var(--muted); }
.button-quiet:hover, .button-quiet:focus-visible { color: var(--accent-dark); }
.hero-visual { position: relative; min-height: 350px; display: grid; place-items: center; }
.visual-grid { position: absolute; inset: 12px 12px 0 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; opacity: .6; }
.avatar-frame { position: relative; width: min(100%, 330px); aspect-ratio: 4 / 5; margin: 0; overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.avatar-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .28); pointer-events: none; }
.avatar-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 38%; }
.avatar-frame figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 18px; background: rgba(16, 35, 49, .9); color: #fff; }
.avatar-frame figcaption span { font-size: 18px; font-weight: 700; }
.avatar-frame figcaption small { color: #d7e0df; }
.section { padding: 88px 32px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: start; margin-bottom: 42px; }
.section-intro { max-width: 620px; margin: 16px 0 0; color: var(--muted); }
h2 { margin-bottom: 0; font-size: clamp(30px, 4vw, 50px); line-height: 1.08; letter-spacing: 0; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.work-card { min-width: 0; background: var(--panel); box-shadow: var(--shadow); }
.work-link { display: block; color: inherit; text-decoration: none; transition: box-shadow .18s ease, transform .18s ease; }
.work-card-wide.work-link { display: grid; }
.work-link:hover, .work-link:focus-visible { box-shadow: 0 22px 56px rgba(16, 35, 49, .16); transform: translateY(-2px); }
:root[data-theme="dark"] .work-link:hover, :root[data-theme="dark"] .work-link:focus-visible { box-shadow: 0 22px 56px rgba(0, 0, 0, .35); }
.work-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.work-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); }
.work-image { height: 220px; overflow: hidden; background: #e6eeec; }
.work-card-wide .work-image { height: 100%; min-height: 280px; }
.work-image-engine { display: grid; place-items: center; background: #071e2c; }
.work-image-engine img { object-fit: contain; }
.work-image-dark { display: grid; place-items: center; background: var(--ink); }
.work-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.work-image-dark img { width: 45%; height: auto; object-fit: contain; }
.work-content { padding: 28px; }
.work-kicker { margin-bottom: 10px; color: var(--accent-dark); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.work-content h3 { margin-bottom: 8px; font-size: 23px; }
.work-content p:last-child { margin-bottom: 0; color: var(--muted); }
.link-section { padding-bottom: 82px; }
.link-list { border-top: 1px solid var(--ink); }
.link-item { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.link-item-static { color: var(--ink); }
.link-item:hover .link-arrow, .link-item:focus-visible .link-arrow { color: var(--accent-dark); transform: translate(3px, -3px); }
.link-label { display: block; font-size: 18px; font-weight: 700; }
.link-handle { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; }
.link-arrow { color: var(--muted); font-size: 24px; transition: transform .18s ease, color .18s ease; }
.empty-links { margin: 0; padding: 24px 0; color: var(--muted); }
.contact-section { padding-bottom: 110px; }
.site-footer { max-width: 1180px; margin: 0 auto; padding: 28px 32px 38px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
.footer-brand { margin-right: 12px; color: var(--ink); font-weight: 700; }
.friend-links { display: flex; align-items: center; gap: 12px; }
.footer-label { color: var(--muted); }
.friend-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; text-decoration: none; }
.friend-link img { width: 34px; height: 34px; display: block; object-fit: contain; background: #101010; border: 1px solid var(--line); border-radius: 6px; }
.friend-arrow { color: var(--muted); font-size: 18px; transition: color .18s ease, transform .18s ease; }
.friend-link:hover .friend-arrow, .friend-link:focus-visible .friend-arrow { color: var(--accent-dark); transform: translate(2px, -2px); }
.friend-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.icp-record { color: var(--muted); }
.icp-record:hover { color: var(--accent-dark); }
@media (max-width: 760px) {
  .site-header { padding: 20px; }
  .header-tools { gap: 14px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 13px; }
  .hero { min-height: auto; padding: 70px 20px 76px; grid-template-columns: 1fr; gap: 46px; }
  h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-lede { font-size: 16px; }
  .hero-visual { min-height: 280px; }
  .section { padding: 70px 20px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading .eyebrow { margin-bottom: 14px; }
  .work-grid, .work-card-wide, .work-card-wide.work-link { display: block; }
  .work-card + .work-card { margin-top: 20px; }
  .work-card-wide .work-image { min-height: 210px; height: 210px; }
  .work-image { height: 190px; }
  .work-content { padding: 22px; }
  .work-content h3 { font-size: 20px; }
  .link-item { gap: 16px; }
  .site-footer { padding: 24px 20px 30px; flex-direction: column; }
  .friend-links { align-items: flex-start; flex-direction: column; gap: 8px; }
}
