* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 94px; }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; font-weight: 750; font-size: 17px; line-height: 1.4; }
.brand img { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); }
.brand small { display: block; color: var(--muted); font-size: 9px; letter-spacing: 1.7px; margin-top: 3px; font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { text-decoration: none; font-size: 14px; color: var(--muted); padding: 10px 0; }
.site-nav a:hover { color: var(--accent); }
.menu-toggle { display: none; }
.hero { display: grid; grid-template-columns: 1.13fr .87fr; align-items: center; gap: 56px; padding: 45px 0 52px; }
.eyebrow { color: var(--muted); font-size: 12px; letter-spacing: 1.3px; margin: 0 0 18px; }
.hero .eyebrow > span { color: var(--accent); margin-right: 7px; font-size: 19px; vertical-align: -1px; }
h1 { font-size: clamp(42px, 4.7vw, 64px); line-height: 1.22; letter-spacing: -2.3px; margin: 0 0 22px; font-weight: 800; }
h1 > span { display: block; white-space: nowrap; }
.accent-word { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent), transparent 65%); text-decoration-thickness: 6px; text-underline-offset: 9px; }
.hero-description { color: var(--muted); margin: 0 0 28px; line-height: 1.9; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 48px; padding: 11px 21px; border-radius: 7px; font-size: 14px; font-weight: 650; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.button-primary { background: var(--button); color: var(--button-ink); border: 1px solid var(--button); }
.button-secondary { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.button-accent { background: var(--accent); color: var(--bg); border: 1px solid var(--accent); }
.hero-footnote { margin: 22px 0 0; font-size: 12px; color: var(--muted); }
.hero-art { position: relative; padding: 12px 10px; }
.desk-photo { margin: 0; padding: 9px; background: var(--surface); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(-2deg); }
.desk-photo > img { width: 100%; height: auto; aspect-ratio: 1.22; object-fit: cover; object-position: 58% 50%; border-radius: 11px; }
.desk-photo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; padding: 13px 8px 4px; }
.desk-photo figcaption span:last-child { font-size: 10px; letter-spacing: 1.2px; }
.note-sticker { position: absolute; top: 35px; right: -5px; background: #bb4d2a; color: #fff; padding: 9px 16px; font-size: 13px; font-weight: 600; border-radius: 5px; transform: rotate(7deg); box-shadow: 0 4px 10px #0001; }
.note-sticker span { margin-left: 12px; }
.albums { padding-top: 56px; }
.projects { padding-top: 12px; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.section-heading .eyebrow { margin-bottom: 8px; font-size: 11px; }
h2 { font-size: clamp(26px, 2.7vw, 34px); line-height: 1.4; margin: 0; font-weight: 750; letter-spacing: -.7px; }
.section-heading > p { font-size: 13px; color: var(--muted); margin: 0 0 3px; }
.album-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.album-card { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; border-radius: 12px; background: #20362b; text-decoration: none; isolation: isolate; }
.album-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #07110d0a 30%, #07110d38 55%, #07110ded 100%); z-index: 1; }
.album-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.album-card:hover > img { transform: scale(1.035); }
.album-count { position: absolute; top: 14px; right: 14px; padding: 4px 9px; border-radius: 5px; background: #0c1812c9; color: #fff; font-size: 11px; z-index: 2; }
.album-caption { position: absolute; inset: auto 20px 18px; display: flex; justify-content: space-between; align-items: end; gap: 12px; color: #fff; z-index: 2; }
.album-caption small { display: block; font-size: 9px; letter-spacing: 1.2px; margin-bottom: 4px; color: #fff; }
.album-caption strong { font-size: 25px; font-weight: 650; }
.album-arrow { display: grid; place-items: center; border: 1px solid #ffffff70; border-radius: 50%; width: 32px; height: 32px; font-size: 19px; }
.game-album { background: #233f32; }
.game-grid { position: absolute; inset: 0; background-image: linear-gradient(#d9e8bc0a 1px, transparent 1px), linear-gradient(90deg, #d9e8bc0a 1px, transparent 1px); background-size: 24px 24px; }
.controller { position: absolute; width: 46%; height: auto; left: 27%; top: 26%; stroke: #d9e8bc; stroke-width: 3; fill: none; z-index: 1; }
.album-help { color: var(--muted); margin: 14px 0 0; font-size: 11px; }
.about { display: grid; grid-template-columns: .85fr 1.3fr; gap: 50px; margin-top: 65px; padding: 38px 42px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); }
.about-heading .eyebrow { font-size: 11px; margin-bottom: 12px; }.about-heading h2 { font-size: 28px; }
.about-heading > img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; margin-top: 20px; border: 1px solid var(--line); }
.intro-lines { padding-top: 7px; font-size: 15px; line-height: 1.9; }
.intro-lines p { margin: 0 0 7px; }.intro-lines p:last-child { margin-bottom: 0; }
.intro-last { font-weight: 700; color: var(--accent); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project-card { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 20px; padding: 20px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s; }
.project-card:hover { border-color: var(--accent); }
.project-card > img { width: 90px; height: 90px; border-radius: 7px; object-fit: cover; }
.project-card small { display: block; color: var(--muted); font-size: 10px; letter-spacing: 1px; margin-bottom: 4px; }
.project-card strong { display: block; font-size: 18px; font-weight: 700; }.project-card > span > span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.project-card b { align-self: start; font-weight: 500; color: var(--muted); }
.featured-project { background: var(--soft); }
.project-action { display: inline-block; margin-top: 8px; color: var(--accent); font-style: normal; font-weight: 700; font-size: 12px; }
.more-about { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); }
.more-about summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; list-style: none; color: var(--ink); font-size: 13px; cursor: pointer; font-weight: 600; }
.more-about summary::-webkit-details-marker { display: none; }
.more-about summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.more-about summary > span { font-size: 20px; color: var(--accent); }
.more-about[open] summary > span { transform: rotate(45deg); }
.more-about dl { margin: 10px 0 0; font-size: 12px; }
.more-about dl > div { padding: 9px 0; }
.more-about dt { color: var(--muted); font-size: 11px; }
.more-about dd { margin: 3px 0 0; }
.story-icon { display: grid; place-content: center; width: 90px; height: 90px; font-size: 26px; line-height: 1.2; font-weight: 700; text-align: center; background: var(--soft); color: var(--ink); border-radius: 7px; }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 62px; padding: 38px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact .eyebrow { margin-bottom: 8px; font-size: 11px; }.contact h2 { font-size: 27px; }
.site-footer { padding: 27px 0 36px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 11px; }
.site-footer > p { margin: 0; }.site-footer > p > span { display: block; font-size: 10px; margin-top: 4px; }
.site-footer > div { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.site-footer a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; min-height: 30px; }.site-footer a:hover { text-decoration: underline; }
.site-footer a img { width: 16px; height: 16px; object-fit: contain; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1000px) {
  .hero { gap: 26px; }.site-nav { gap: 20px; }
  h1 { font-size: 48px; letter-spacing: -2px; }
  .section-heading { display: block; }.section-heading > p { margin-top: 12px; }
  .album-grid { gap: 14px; }.album-caption { inset-inline: 15px; }.album-caption strong { font-size: 23px; }
  .about { gap: 32px; padding: 30px; }
  .project-card { gap: 14px; grid-template-columns: 70px 1fr auto; padding: 16px; }.project-card > img, .story-icon { width: 70px; height: 70px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 82px; flex-wrap: wrap; gap: 0; padding: 15px 0; }
  .brand { font-size: 15px; gap: 9px; }.brand img { width: 34px; height: 34px; }.brand small { font-size: 8px; letter-spacing: 1px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 7px 0 7px 12px; min-height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 12px; }
  .site-nav { display: none; width: 100%; padding-top: 14px; margin-top: 12px; border-top: 1px solid var(--line); justify-content: space-between; gap: 8px; }.site-nav[data-open="true"] { display: flex; }.site-nav a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 27px; padding: 25px 0 35px; }
  .hero .eyebrow { margin-bottom: 14px; letter-spacing: .6px; font-size: 11px; }
  h1 { font-size: clamp(34px, 10.5vw, 54px); line-height: 1.24; letter-spacing: -1.5px; margin-bottom: 20px; }
  .accent-word { text-decoration-thickness: 4px; text-underline-offset: 6px; }
  .hero-description { font-size: 14px; margin-bottom: 22px; }.hero-actions { gap: 9px; }.button { padding: 10px 15px; gap: 18px; min-height: 46px; font-size: 13px; }
  .hero-footnote { margin-top: 17px; font-size: 11px; }.hero-art { padding: 9px 8px 7px; }
  .desk-photo > img { aspect-ratio: 2.2; object-position: 50% 48%; }.note-sticker { top: 23px; right: 0; font-size: 11px; padding: 7px 12px; }
  .desk-photo figcaption { padding: 10px 5px 2px; font-size: 11px; }.desk-photo figcaption span:last-child { font-size: 9px; }
  .albums { padding-top: 42px; }.projects { padding-top: 6px; padding-bottom: 32px; }.section-heading { margin-bottom: 20px; }.section-heading > p { font-size: 12px; line-height: 1.8; margin-top: 9px; }.section-heading .eyebrow { font-size: 10px; }
  h2 { font-size: 27px; }.album-grid { grid-template-columns: 1fr 1fr; gap: 12px; }.album-card { border-radius: 10px; aspect-ratio: 4/5; }
  .album-caption { inset: auto 13px 12px; gap: 6px; }.album-caption strong { font-size: 21px; }.album-caption small { font-size: 7px; letter-spacing: .6px; }.album-arrow { width: 27px; height: 27px; font-size: 16px; }
  .album-count { top: 10px; right: 10px; padding: 3px 7px; font-size: 10px; }.album-help { font-size: 10px; line-height: 1.8; }
  .about { grid-template-columns: 1fr; gap: 24px; padding: 24px; margin-top: 36px; }.about-heading { position: relative; padding-right: 70px; }.about-heading .eyebrow { margin-bottom: 8px; font-size: 10px; }.about-heading h2 { font-size: 24px; }.about-heading > img { position: absolute; top: 20px; right: 0; width: 52px; height: 52px; margin-top: 0; }
  .intro-lines { font-size: 14px; padding-top: 0; }.intro-lines p { margin-bottom: 9px; }
  .project-grid { grid-template-columns: 1fr; gap: 12px; }.project-card { grid-template-columns: 64px 1fr auto; gap: 14px; padding: 15px; }.project-card > img, .story-icon { width: 64px; height: 64px; }.project-card strong { font-size: 16px; }.project-card > span > span { font-size: 11px; }
  .contact { align-items: flex-start; flex-direction: column; gap: 22px; padding: 30px 0; margin-top: 38px; }.contact h2 { font-size: 25px; }.contact .eyebrow { font-size: 10px; }
  .site-footer { flex-direction: column; align-items: flex-start; font-size: 10px; padding-top: 22px; }.site-footer > div { flex-direction: column; align-items: flex-start; gap: 0; }
}
@media (max-width: 350px) {.brand { font-size: 13px; }.brand small { font-size: 7px; }.brand img { width: 30px; height: 30px; }
  .album-caption { inset-inline: 10px; }.album-arrow { width: 23px; height: 23px; }.album-caption strong { font-size: 19px; }.album-caption small { font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button, .album-card > img { transition: none; } }

/* The production site uses one palette and the existing local media. */
.featured-project .project-action { color: #ae4223; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 20px; top: -100px; padding: 10px 16px; z-index: 10; background: var(--button); color: #fff; }
.skip-link:focus { top: 12px; }
.wallpapers { margin-top: 62px; padding-top: 38px; border-top: 1px solid var(--line); }
.wallpaper-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; }
.wallpaper-panel { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.carousel { aspect-ratio: 16/9; border-radius: 9px; overflow: hidden; }
.carousel a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.carousel img { width: 100%; height: 100%; object-fit: cover; }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 25px; padding-top: 6px; }
.carousel-controls button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 21px; }
#slideStatus { min-width: 40px; text-align: center; font-size: 12px; color: var(--muted); }
.audio-controls .eyebrow { margin-bottom: 12px; font-size: 11px; }
.audio-controls h3 { font-size: 25px; line-height: 1.4; margin: 0 0 14px; }
.audio-controls > p:not(.eyebrow) { font-size: 13px; color: var(--muted); line-height: 1.9; }
.audio-buttons { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.audio-buttons .button { padding-inline: 15px; font-size: 12px; }
.audio-controls #audioStatus { margin-top: 16px; font-size: 11px; }
.contact-email { display: inline-block; font-size: 13px; color: var(--muted); margin-top: 12px; overflow-wrap: anywhere; }
@media (max-width:760px) {
    .wallpapers { margin-top: 36px; padding-top: 30px; }
    .wallpaper-layout { grid-template-columns: 1fr; gap: 26px; }
    .audio-controls { padding: 22px; border: 1px solid var(--line); background: var(--soft); border-radius: 12px; }
    .audio-controls h3 { font-size: 22px; }
}
