:root {
  --bg: #0d0b09;
  --bg-2: #16130f;
  --card: #1c1814;
  --line: rgba(255, 236, 200, 0.12);
  --text: #f3ece0;
  --muted: #a89d8c;
  --gold: #d9b26a;
  --gold-2: #f0d595;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Inter", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
:root[data-theme="light"] {
  --bg: #f7f2e9;
  --bg-2: #efe7d8;
  --card: #fffaf2;
  --line: rgba(60, 40, 10, 0.12);
  --text: #231c12;
  --muted: #6f6453;
  --gold: #a87a26;
  --gold-2: #8a6010;
  --shadow: 0 20px 50px rgba(80, 60, 20, 0.12);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f2e9; --bg-2: #efe7d8; --card: #fffaf2;
    --line: rgba(60, 40, 10, 0.12); --text: #231c12; --muted: #6f6453;
    --gold: #a87a26; --gold-2: #8a6010; --shadow: 0 20px 50px rgba(80, 60, 20, 0.12);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 80% -10%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%),
    radial-gradient(50vw 40vw at -10% 30%, color-mix(in srgb, var(--gold) 8%, transparent), transparent 70%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 5vw, 64px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1206; font-family: var(--sans);
}
.brand-sub { font-family: var(--sans); font-weight: 500; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 28px; font-size: .95rem; color: var(--muted); }
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1rem; transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.menu-btn { display: none; }

/* Layout */
main { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 48px); }
.section { padding: clamp(56px, 9vw, 110px) 0 0; }
.eyebrow { font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.section-head { margin-bottom: 36px; }
.section-head h2, .featured h2, .contact h2 {
  font-family: var(--serif); font-weight: 900; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.2; margin: 8px 0;
}
.section-desc { color: var(--muted); }

/* Hero */
.hero { padding: clamp(60px, 12vw, 140px) 0 20px; text-align: center; }
.hero-title {
  font-family: var(--serif); font-weight: 900; font-size: clamp(2.5rem, 8vw, 5.6rem); line-height: 1.12; margin: 18px 0 22px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 60%, var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 680px; margin: 0 auto; }
.hero-en { margin-top: 10px; font-size: .85rem; letter-spacing: .12em; color: var(--muted); opacity: .75; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1206; box-shadow: 0 10px 30px color-mix(in srgb, var(--gold) 35%, transparent); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); }

.stats {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  margin: clamp(48px, 8vw, 80px) auto 0; max-width: 880px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats li { padding: 22px 8px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold); line-height: 1.1; }
.stats span { font-size: .85rem; color: var(--muted); }

/* Skill cards */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.skill-card {
  --h: 40;
  position: relative; overflow: hidden;
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.skill-card::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%;
  background: hsl(var(--h) 70% 55% / .18); filter: blur(30px); transition: transform .4s;
}
.skill-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--gold) 50%, transparent); box-shadow: var(--shadow); }
.skill-card:hover::after { transform: scale(1.4); }
.skill-icon { font-size: 2rem; margin-bottom: 14px; }
.skill-card h3 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 8px; }
.skill-card p { color: var(--muted); font-size: .93rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li { font-size: .75rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* Featured */
.featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(20px, 3vw, 32px); border-radius: calc(var(--radius) + 6px);
  background: var(--bg-2); border: 1px solid var(--line);
}
.featured-media {
  --h: 210; position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--h) 45% 22%), hsl(calc(var(--h) + 40) 40% 12%));
  display: grid; place-items: center; padding: 8%;
}
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: .72rem; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #f3ece0; letter-spacing: .08em;
}
.mock-window { width: 100%; height: 100%; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); overflow: hidden; display: flex; flex-direction: column; }
.mock-bar { display: flex; gap: 6px; padding: 8px 10px; background: rgba(255,255,255,.06); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3); }
.mock-body { flex: 1; display: flex; }
.mock-side { width: 22%; background: rgba(255,255,255,.04); border-right: 1px solid rgba(255,255,255,.08); }
.mock-main { flex: 1; padding: 6%; display: flex; flex-direction: column; gap: 8%; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8%; height: 22%; }
.mock-row b { border-radius: 6px; background: rgba(255,255,255,.1); }
.mock-chart { flex: 1; display: flex; align-items: flex-end; gap: 6%; }
.mock-chart span { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(to top, #d9b26a, #f0d595); opacity: .85; animation: grow 1.6s ease both; }
@keyframes grow { from { height: 0; } }
.credit { color: var(--muted); margin-bottom: 14px; }
.credit em { font-family: var(--serif); color: var(--text); }
.featured-text > p:not(.eyebrow):not(.credit) { color: var(--muted); }
.featured-details { margin-top: 16px; }
:is(.featured-details, .work-details) summary { width: fit-content; padding: 6px 0; color: var(--gold); cursor: pointer; font-size: .9rem; }
:is(.featured-details, .work-details) summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
:is(.featured-details, .work-details) .when-open, :is(.featured-details, .work-details)[open] .when-closed { display: none; }
:is(.featured-details, .work-details)[open] .when-open { display: inline; }
.work-details p { margin-top: 6px; }
.bullets { list-style: none; margin-top: 18px; display: grid; gap: 8px; }
.bullets li::before { content: "✦"; color: var(--gold); margin-right: 10px; }

/* AI disclosure */
.ai-note { margin: 18px auto 0; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.ai-note span, .ai-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: .04em; font-style: normal; }
.ai-chip { margin-left: 6px; vertical-align: middle; }
.ai-tag { color: var(--muted); letter-spacing: .08em; }

/* Real screenshots */
.featured-media.shot { padding: 0; display: block; background: #111; box-shadow: var(--shadow); transition: transform .3s; }
.featured-media.shot:hover { transform: translateY(-4px); }
.featured-media.shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.featured-cta { justify-content: flex-start; margin-top: 24px; }
.badge.live { background: rgba(22, 101, 52, .85); color: #dcfce7; }
.thumb.has-img { background: #111; overflow: hidden; }
.thumb.has-img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .5s; }
.work-card:hover .thumb.has-img img { transform: scale(1.04); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gallery { display: grid; gap: 10px; }
.gallery img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.gallery video { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; display: block; }

/* Filters & works */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; transition: all .2s;
}
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip.active { background: var(--gold); border-color: var(--gold); color: #1a1206; font-weight: 600; }

.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.work-card {
  border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line);
  cursor: pointer; transition: transform .3s, box-shadow .3s, opacity .3s; text-align: left; display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.thumb {
  --h: 30; position: relative; aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 70% 30%, hsl(var(--h) 70% 60% / .55), transparent 55%),
    linear-gradient(135deg, hsl(var(--h) 40% 22%), hsl(calc(var(--h) + 50) 35% 10%));
  display: grid; place-items: center; font-size: 3rem;
}
.thumb .badge { top: auto; bottom: 12px; left: auto; right: 12px; }
.work-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.work-body h3 { font-family: var(--serif); font-size: 1.2rem; }
.work-body .credit { margin: 0 0 6px; font-size: .88rem; }
.work-body p { color: var(--muted); font-size: .9rem; }
.work-body .tags { margin-top: auto; padding-top: 12px; }
.work-card.hide { display: none; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.steps span { font-family: var(--serif); font-size: 2rem; color: var(--gold); font-weight: 900; }
.steps h4 { font-size: 1.1rem; margin: 6px 0; }
.steps p { color: var(--muted); font-size: .9rem; }

/* Contact */
.contact {
  text-align: center; padding: clamp(40px, 7vw, 80px) 20px; border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%), var(--bg-2);
  border: 1px solid var(--line);
}
.contact > p:not(.eyebrow) { color: var(--muted); }
.wechat-contact { margin: 28px auto 0; width: 264px; max-width: 100%; }
.wechat-contact a, .wechat-contact img { display: block; width: 100%; }
.wechat-contact img { height: auto; border-radius: 12px; }
.wechat-contact figcaption { margin-top: 10px; color: var(--muted); font-size: .88rem; }

.footer {
  max-width: 1200px; margin: clamp(56px, 9vw, 100px) auto 0; padding: 28px clamp(16px, 5vw, 48px) 40px;
  border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .85rem;
}
.footer a:hover { color: var(--gold); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-card {
  position: relative; width: min(640px, 100%); max-height: 90vh; overflow-y: auto;
  padding: 24px; border-radius: calc(var(--radius) + 4px); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: pop .3s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; font-size: .8rem; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.55); color: #f3ece0; }
.modal-media { border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.modal-card h3 { font-family: var(--serif); font-size: 1.6rem; margin: 4px 0 10px; }
.modal-card p:not(.eyebrow) { color: var(--muted); }

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

/* Responsive */
@media (max-width: 960px) {
  .featured { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hide-sm { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer { flex-direction: column; }
}

/* Cinematic editorial direction */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.nav { box-shadow: 0 8px 35px rgba(0,0,0,.06); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; bottom: -7px; left: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.hero { padding-top: clamp(60px, 9vw, 120px); text-align: left; }
.hero-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero-title { font-size: clamp(2.8rem, 4.5vw, 4.6rem); line-height: 1.16; letter-spacing: -.055em; }
.hero-title em { background: linear-gradient(110deg, var(--gold-2), var(--gold) 50%, var(--gold-2)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; }
.hero-sub { margin: 0; max-width: 570px; line-height: 1.95; }
.hero-en { font-size: .72rem; letter-spacing: .13em; }
.hero-copy .ai-note, .hero-copy .hero-cta { justify-content: flex-start; }
.hero-copy .ai-note { margin-left: 0; }
.hero-visual { position: relative; min-height: 470px; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 72px 30px; border: 1px solid var(--line); border-radius: 4px; background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--gold) 17%, transparent), transparent 62%), var(--bg-2); }
.hero-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .32; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent); }
.hero-visual::after { content: ""; position: absolute; z-index: 0; inset: 0; background: linear-gradient(110deg, transparent 35%, color-mix(in srgb, var(--gold-2) 12%, transparent) 49%, transparent 62%); transform: translateX(-110%); animation: visual-light 9s 1s ease-in-out infinite; pointer-events: none; }
.visual-orbit { position: absolute; width: 360px; height: 360px; left: 50%; top: 48%; border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-b { width: 435px; height: 435px; opacity: .48; }
.visual-index, .visual-caption { position: absolute; left: 26px; right: 26px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .65rem; letter-spacing: .16em; }
.visual-index { top: 22px; }.visual-index span:last-child { color: var(--gold); font-size: 1.4rem; }.visual-caption { bottom: 22px; }
.visual-window { position: relative; width: 100%; z-index: 1; overflow: hidden; border-radius: 8px; background: #151515; border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent); box-shadow: 0 28px 55px rgba(0,0,0,.3); transform: rotate(-3deg); }
.visual-window-bar { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; background: #24221e; }
.visual-window-bar i { width: 6px; height: 6px; border-radius: 50%; background: #9d8d76; }.visual-window-bar span { margin-left: auto; color: #c8b89c; font: 8px var(--sans); letter-spacing: .14em; }
.visual-window img { width: 100%; height: auto; display: block; }
.visual-stamp { position: absolute; z-index: 2; bottom: 54px; right: 18px; padding: 16px 18px; color: #20180b; background: var(--gold-2); font: 700 .68rem/1.35 var(--sans); letter-spacing: .1em; box-shadow: 0 15px 30px rgba(0,0,0,.18); transform: rotate(5deg); }
.visual-stamp em { font: italic 1.05rem Georgia, serif; letter-spacing: 0; }.visual-stamp span { position: absolute; right: 8px; top: 4px; }
.hero-bottomline { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; color: var(--muted); font-size: .67rem; letter-spacing: .17em; }
.hero-bottomline a { color: var(--gold); white-space: nowrap; }
.stats { margin-top: 24px; max-width: none; }
.section-head { position: relative; padding-left: 18px; border-left: 2px solid var(--gold); }
.skill-card, .work-card, .steps li, .featured, .contact { border-radius: 8px; }
.work-card, .skill-card { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.work-card:hover { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.featured { position: relative; overflow: hidden; }
.featured::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 7%, transparent), transparent 50%); pointer-events: none; }
.featured > * { position: relative; }
.steps li { position: relative; overflow: hidden; }.steps li::after { content: "↗"; position: absolute; right: 22px; top: 20px; color: var(--gold); opacity: .45; }
@keyframes visual-light { 0%, 35% { transform: translateX(-110%); } 65%, 100% { transform: translateX(110%); } }
@media (max-width: 960px) { .hero-stage { grid-template-columns: 1fr 1fr; gap: 28px; }.hero-visual { min-height: 380px; padding: 65px 20px; }.visual-orbit { width: 260px; height: 260px; }.orbit-b { width: 320px; height: 320px; } }
@media (max-width: 720px) { .hero-stage { grid-template-columns: 1fr; gap: 44px; }.hero { padding-top: 58px; }.hero-title { font-size: clamp(2.6rem, 10vw, 4.4rem); }.hero-visual { min-height: 340px; }.hero-copy .hero-cta { justify-content: flex-start; }.hero-bottomline { margin-top: 36px; }.hero-bottomline span { max-width: 220px; }.nav-links a::after { display: none; } }
@media (max-width: 480px) { .hero-copy .hero-cta .btn { flex: 1 1 auto; }.hero-en { line-height: 1.8; }.hero-visual { min-height: 300px; padding: 58px 20px; }.visual-stamp { bottom: 40px; }.visual-caption { font-size: .58rem; }.hero-bottomline { font-size: .58rem; } }
@media (prefers-reduced-motion: reduce) { .hero-visual::after, .modal-card, .mock-chart span { animation: none; }.work-card, .skill-card, .btn, .nav-links a::after { transition: none; }.scroll-progress { display: none; } }

/* Capability index: a studio workbench instead of a generic card grid. */
.skills-layout { display: grid; grid-template-columns: minmax(200px, .34fr) minmax(0, 1fr); border: 1px solid var(--line); background: var(--bg-2); }
.skills-intro { position: relative; min-height: 100%; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; padding: 32px 26px; border-right: 1px solid var(--line); }
.skills-intro::after { content: ""; position: absolute; width: 240px; height: 240px; left: -135px; bottom: 50px; border: 1px solid color-mix(in srgb, var(--gold) 23%, transparent); border-radius: 50%; box-shadow: 0 0 0 35px color-mix(in srgb, var(--gold) 3%, transparent), 0 0 0 70px color-mix(in srgb, var(--gold) 2%, transparent); pointer-events: none; }
.skills-intro-mark { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 50%; font-size: 1.5rem; color: var(--gold); }
.skills-intro-label { margin-top: 28px; color: var(--gold); font-size: .66rem; letter-spacing: .17em; }
.skills-intro-title { margin-top: 17px; font: 700 clamp(1.25rem, 1.8vw, 1.7rem)/1.6 var(--serif); }
.skills-intro-title em { color: var(--gold); font-style: normal; }
.skills-intro-note { margin-top: 16px; color: var(--muted); font-size: .86rem; line-height: 1.8; }
.skills-intro-bottom { position: relative; margin-top: auto; padding-top: 65px; color: var(--muted); font-size: .62rem; letter-spacing: .13em; }
.skill-list { min-width: 0; }
.skill-entry { display: grid; grid-template-columns: 40px 48px minmax(125px, .65fr) minmax(0, 1.35fr); gap: 18px; align-items: start; padding: 25px 26px; border-bottom: 1px solid var(--line); transition: background-color .25s ease, opacity .7s ease, transform .7s ease; }
.skill-entry:last-child { border-bottom: 0; }
.skill-entry:hover, .skill-entry:focus-within { background: color-mix(in srgb, var(--gold) 5%, transparent); }
.skill-number { padding-top: 4px; font: italic 1rem Georgia, serif; color: var(--gold); white-space: nowrap; }.skill-number span { color: var(--muted); font: .58rem var(--sans); }
.skill-symbol { position: relative; width: 40px; height: 40px; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); color: var(--gold); }
.skill-symbol i,.skill-symbol b,.skill-symbol em { position: absolute; display: block; border-color: currentColor; }
.symbol-motion i { inset: 10px 8px; border: 1px solid; }.symbol-motion b { left: 17px; top: 14px; border: 5px solid transparent; border-left: 8px solid currentColor; }
.symbol-systems i { inset: 8px; border: 1px solid; }.symbol-systems b { top: 8px; bottom: 8px; left: 18px; border-left: 1px solid; }.symbol-systems em { left: 8px; right: 8px; top: 18px; border-top: 1px solid; }
.symbol-mobile i { width: 17px; height: 26px; left: 11px; top: 6px; border: 1px solid; border-radius: 4px; }.symbol-mobile b { width: 5px; left: 17px; bottom: 9px; border-top: 1px solid; }
.symbol-browser i { inset: 9px 7px; border: 1px solid; }.symbol-browser b { left: 7px; right: 7px; top: 15px; border-top: 1px solid; }.symbol-browser em { width: 8px; height: 8px; left: 15px; top: 20px; border: 1px solid; transform: rotate(45deg); }
.symbol-web i { width: 24px; height: 24px; left: 7px; top: 7px; border: 1px solid; border-radius: 50%; }.symbol-web b { left: 7px; right: 7px; top: 19px; border-top: 1px solid; }.symbol-web em { width: 10px; height: 24px; left: 14px; top: 7px; border-left: 1px solid; border-right: 1px solid; border-radius: 50%; }
.skill-name span { display: block; padding-top: 3px; color: var(--muted); font-size: .59rem; letter-spacing: .12em; line-height: 1.4; }.skill-name h3 { margin-top: 6px; font: 700 1.18rem/1.35 var(--serif); }
.skill-detail p { color: var(--muted); font-size: .88rem; line-height: 1.8; }.skill-detail .tags { margin-top: 10px; }.skill-detail .tags li { font-size: .7rem; padding: 2px 8px; }
.skill-link { display: inline-flex; gap: 9px; align-items: center; margin-top: 14px; color: var(--gold); font-size: .79rem; font-weight: 600; }.skill-link span { transition: transform .2s; }.skill-link:hover span { transform: translate(3px,-3px); }.skill-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (max-width: 960px) { .skills-layout { grid-template-columns: 1fr; }.skills-intro { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }.skills-intro-bottom { padding-top: 30px; }.skills-intro::after { left: auto; right: -70px; bottom: -135px; } }
@media (max-width: 600px) { .skills-intro { padding: 26px 22px; }.skill-entry { grid-template-columns: 34px 42px minmax(0,1fr); gap: 12px; padding: 23px 20px; }.skill-name { align-self: center; }.skill-detail { grid-column: 2 / -1; }.skill-symbol { width: 40px; height: 40px; }.skill-link { min-height: 44px; margin-top: 5px; } }
@media (prefers-reduced-motion: reduce) { .skill-entry,.skill-link span { transition: none; } }
@media (min-width: 601px) and (max-width: 960px) {
  .skills-intro { display: grid; grid-template-columns: 52px minmax(0,1fr) minmax(0,1fr); column-gap: 24px; align-items: center; }
  .skills-intro-mark { grid-row: 1 / 4; }
  .skills-intro-label { grid-column: 2; margin-top: 0; }
  .skills-intro-title { grid-column: 2; margin-top: 8px; }
  .skills-intro-note { grid-column: 3; grid-row: 1 / 3; margin: 0; }
  .skills-intro-bottom { grid-column: 3; grid-row: 3; padding-top: 12px; }
}

/* Five capabilities arranged around a single interactive orbit. */
.skills-layout.has-orbit { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); align-items: stretch; }
.has-orbit .skills-orbit-wrap { min-width: 0; display: grid; place-items: center; padding: 30px; border-right: 1px solid var(--line); }
.has-orbit .skills-intro { display: none; }
.skills-orbit[hidden], .skill-entry[hidden] { display: none !important; }
.skills-orbit { position: relative; width: min(100%, 470px); aspect-ratio: 1; }
.orbit-ring { position: absolute; inset: 17%; border: 1px solid color-mix(in srgb, var(--gold) 46%, transparent); border-radius: 50%; }
.orbit-ring-inner { inset: 29%; border-style: dashed; opacity: .45; }
.orbit-center { position: absolute; inset: 32%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.orbit-center span { color: var(--gold); font-size: 1.25rem; line-height: 1; }
.orbit-center strong { margin-top: 10px; font: 700 clamp(1rem, 1.8vw, 1.4rem)/1.4 var(--serif); }
.orbit-center small { margin-top: 8px; color: var(--muted); font-size: .5rem; letter-spacing: .1em; }
.orbit-node { position: absolute; width: 100px; min-height: 58px; padding: 8px 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); font-size: .8rem; font-weight: 600; text-align: center; transform: translate(-50%,-50%); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.orbit-node span { font: italic .7rem Georgia, serif; color: var(--gold); }
.orbit-node:hover, .orbit-node[aria-pressed="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, var(--card)); box-shadow: 0 8px 22px color-mix(in srgb, var(--gold) 12%, transparent); }
.orbit-node:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.node-1 { left: 50%; top: 17%; }.node-2 { left: 81.4%; top: 39.8%; }.node-3 { left: 69.4%; top: 76.7%; }.node-4 { left: 30.6%; top: 76.7%; }.node-5 { left: 18.6%; top: 39.8%; }
.has-orbit .skill-list { display: flex; align-items: center; border-left: 0; }
.has-orbit .skill-entry { width: 100%; grid-template-columns: 45px 48px minmax(0,1fr); gap: 16px; border: 0; padding: clamp(24px, 4vw, 48px); }
.has-orbit .skill-detail { grid-column: 1 / -1; padding-top: 12px; }
.has-orbit .skill-name { align-self: center; }.has-orbit .skill-name h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); }
.has-orbit .skill-detail p { font-size: 1rem; }.has-orbit .skill-detail .tags { margin-top: 20px; }.has-orbit .skill-link { margin-top: 24px; min-height: 44px; }
@media (max-width: 760px) { .skills-layout.has-orbit { grid-template-columns: 1fr; }.has-orbit .skills-orbit-wrap { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 10px; }.skills-orbit { width: min(100%, 400px); }.has-orbit .skill-entry { padding: 26px 22px; } }
@media (max-width: 420px) { .orbit-node { width: 83px; min-height: 52px; padding: 6px 4px; font-size: .72rem; }.orbit-node span { font-size: .62rem; }.orbit-center strong { font-size: .95rem; }.orbit-center small { font-size: .43rem; }.orbit-center span { font-size: 1rem; }.orbit-center strong { margin-top: 5px; }.orbit-center small { margin-top: 4px; } }
@media (prefers-reduced-motion: reduce) { .orbit-node { transition: none; } }
