@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #17171a;
  --muted: #68686d;
  --line: #deded8;
  --accent: #315cf4;
  --accent-2: #7658ff;
  --accent-soft: #e8edff;
  --status: #35b878;
  --soft: #efefeb;
  --dark: #1b1c20;
  --radius: 24px;
  --wrap: 1180px;
  --sans: "Source Sans 3", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Manrope, "Source Sans 3", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cjk: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --shadow: 0 24px 70px rgba(25, 29, 45, .11);
  --shadow-soft: 0 12px 36px rgba(25, 29, 45, .065);
  --header-bg: rgba(247, 247, 244, .86);
  --glass-bg: rgba(255, 255, 255, .66);
  --glass-line: rgba(23, 23, 26, .08);
  --body-copy: #45454a;
  --card-line: rgba(23, 23, 26, .08);
  --hover-fill: rgba(255, 255, 255, .48);
  --ambient: rgba(49, 92, 244, .105);
}

:root[data-theme="dark"] {
  --bg: #101116;
  --surface: #191a20;
  --text: #f3f2ee;
  --muted: #a8a9b1;
  --line: #33343c;
  --accent: #8298ff;
  --accent-2: #a187ff;
  --accent-soft: #20294e;
  --soft: #15161b;
  --dark: #090a0d;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, .22);
  --header-bg: rgba(16, 17, 22, .88);
  --glass-bg: rgba(255, 255, 255, .055);
  --glass-line: rgba(255, 255, 255, .1);
  --body-copy: #c3c3ca;
  --card-line: rgba(255, 255, 255, .09);
  --hover-fill: rgba(255, 255, 255, .04);
  --ambient: rgba(130, 152, 255, .075);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { --pointer-x: 8vw; --pointer-y: 0px; margin: 0; background: radial-gradient(circle 30rem at var(--pointer-x) var(--pointer-y), var(--ambient), transparent 100%), var(--bg); background-attachment: fixed; color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, dl, dd { margin-top: 0; }
h1, h2, h3, .brand { font-family: var(--display); }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.cjk { font-family: var(--cjk); }
html[data-language="zh"] body { font-family: var(--cjk); }
html[data-language="zh"] h1, html[data-language="zh"] h2, html[data-language="zh"] h3 { font-family: var(--cjk); letter-spacing: -.035em; }
html[data-language="zh"] .name-accent { font-family: var(--display); }

.site-header { border-bottom: 1px solid var(--glass-line); background: var(--header-bg); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px); }
.site-nav { min-height: 72px; display: flex; align-items: center; gap: 18px; }
.brand { font-size: 18px; font-weight: 760; letter-spacing: -.035em; }
.nav-links { margin-left: auto; padding: 4px; border: 1px solid var(--glass-line); border-radius: 999px; background: var(--glass-bg); box-shadow: 0 4px 18px rgba(0, 0, 0, .05); display: flex; gap: 2px; font-size: 13px; color: var(--muted); }
.nav-links a { padding: 7px 14px; border-radius: 999px; transition: .2s ease; }
.nav-links a:hover, .nav-links .active { color: var(--text); }
.nav-links .active { background: var(--surface); box-shadow: 0 3px 10px rgba(0, 0, 0, .1); font-weight: 700; }
.site-tools { display: flex; gap: 6px; }
.site-tool { width: 38px; height: 38px; padding: 0; border: 1px solid var(--glass-line); border-radius: 50%; background: var(--glass-bg); color: var(--text); cursor: pointer; display: grid; place-items: center; font: 700 13px/1 var(--sans); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.site-tool[data-theme-toggle] { font-size: 17px; }
.site-tool:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-1px); }
.site-tool:focus-visible, a:focus-visible, .button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 48%, transparent); outline-offset: 3px; }

.hero { min-height: 690px; padding-block: 88px; position: relative; display: grid; grid-template-columns: 1.35fr .65fr; gap: 64px; align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow { margin-bottom: 18px; color: var(--accent); font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin-bottom: 30px; max-width: 790px; font-size: clamp(58px, 6.7vw, 88px); font-weight: 720; line-height: .98; letter-spacing: -.062em; text-wrap: balance; }
.name-accent { padding-inline: .025em; background: linear-gradient(transparent 74%, rgba(49, 92, 244, .18) 0); background-repeat: no-repeat; background-size: 100% 100%; }
.formal-name { margin: -14px 0 26px; color: var(--muted); font-size: 13px; font-weight: 720; letter-spacing: .12em; text-transform: uppercase; }
.hero-lead { max-width: 690px; margin-bottom: 0; color: var(--body-copy); font-size: clamp(19px, 2vw, 25px); line-height: 1.42; letter-spacing: -.02em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; padding: 0 20px; border: 1px solid var(--text); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; transition: .2s ease; }
.button:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.button.primary { background: var(--text); color: var(--bg); }
.button.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.profile-card { min-height: 500px; padding: 32px; border: 1px solid rgba(49, 92, 244, .12); border-radius: var(--radius); background: linear-gradient(145deg, #e8edff 0%, #f1edff 58%, #fff6e8 100%); box-shadow: var(--shadow); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.profile-card::after { content: ""; width: 260px; height: 260px; border: 1px solid rgba(49, 92, 244, .12); border-radius: 50%; position: absolute; top: -126px; right: -96px; box-shadow: 0 0 0 42px rgba(49, 92, 244, .035), 0 0 0 84px rgba(49, 92, 244, .025); }
.profile-visual { height: 174px; position: relative; z-index: 1; }
.profile-mark { width: 138px; height: 138px; border-radius: 50%; background: linear-gradient(145deg, var(--accent), var(--accent-2)); box-shadow: 0 18px 36px rgba(49, 92, 244, .26); color: #fff; position: relative; z-index: 2; display: grid; place-items: center; font: 760 39px/1 var(--display); letter-spacing: -.06em; }
.orbit-tag { padding: 7px 12px; border: 1px solid rgba(23, 23, 26, .08); border-radius: 999px; background: rgba(255, 255, 255, .82); box-shadow: 0 8px 22px rgba(25, 29, 45, .09); position: absolute; z-index: 3; color: #45454a; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.orbit-tag--one { top: 13px; left: 118px; }
.orbit-tag--two { top: 67px; left: 151px; }
.orbit-tag--three { top: 120px; left: 104px; }
.availability { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; color: #4f577c; font-size: 12px; font-weight: 700; letter-spacing: .035em; }
.availability span { width: 8px; height: 8px; border-radius: 50%; background: var(--status); box-shadow: 0 0 0 5px rgba(53, 184, 120, .12); }
.profile-role { margin-bottom: 26px; font-size: 27px; font-weight: 720; line-height: 1.2; letter-spacing: -.035em; }
.profile-facts { margin-bottom: 0; border-top: 1px solid rgba(49, 92, 244, .25); }
.profile-facts div { padding: 13px 0; border-bottom: 1px solid rgba(49, 92, 244, .25); display: grid; grid-template-columns: 92px 1fr; gap: 16px; }
.profile-facts dt { color: #5d6691; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.profile-facts dd { margin: 0; font-size: 14px; font-weight: 650; }

.section { padding-block: 108px; }
.section-heading { max-width: 730px; margin-bottom: 64px; }
.section-heading.compact { margin-bottom: 46px; }
.section-heading h2, .contact h2 { margin-bottom: 22px; font-size: clamp(43px, 5.1vw, 68px); font-weight: 680; line-height: 1.01; letter-spacing: -.055em; }
.section-heading > p:last-child { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: 18px; }
#work { padding-top: 82px; }

.project-card { margin-top: 38px; min-height: 510px; border: 1px solid var(--card-line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-soft); display: grid; grid-template-columns: 1.18fr .82fr; transition: transform .3s ease, box-shadow .3s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card--flagship { min-height: 620px; grid-template-columns: 1.38fr .62fr; }
.project-card--reverse { grid-template-columns: .82fr 1.18fr; }
.project-card--reverse .project-media { order: 2; }
.project-card--secondary { min-height: 430px; grid-template-columns: .88fr 1.12fr; }
.project-card--secondary .project-media { min-height: 430px; }
.project-media { min-height: 510px; overflow: hidden; background: #d9dce6; position: relative; }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.project-media:hover img { transform: scale(1.018); }
.project-gallery { min-height: 620px; padding: 10px; overflow: hidden; background: #15171c; position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.1fr .9fr; gap: 10px; }
.project-shot { min-width: 0; min-height: 0; overflow: hidden; border-radius: 12px; background: #24262e; }
.project-shot--world { grid-column: 1 / -1; }
.project-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-gallery:hover .project-shot img { transform: scale(1.018); }
.media-badge { padding: 7px 11px; border: 1px solid rgba(23, 23, 26, .08); border-radius: 999px; background: rgba(255, 255, 255, .86); box-shadow: 0 7px 24px rgba(18, 20, 30, .12); backdrop-filter: blur(10px); position: absolute; top: 18px; left: 18px; z-index: 4; color: #35353a; font-size: 11px; font-weight: 750; letter-spacing: .025em; }
.project-copy { padding: clamp(32px, 4.4vw, 54px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.project-index { margin-bottom: 22px; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.project-copy h3 { margin-bottom: 20px; font-size: clamp(40px, 4.2vw, 58px); font-weight: 680; line-height: .98; letter-spacing: -.055em; }
.project-copy > p:not(.project-index) { margin-bottom: 16px; color: var(--muted); font-size: 17px; }
.role-note strong { color: var(--text); }
.project-proof { width: 100%; margin: 10px 0 28px; border-top: 1px solid var(--line); }
.project-proof div { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 82px 1fr; gap: 14px; }
.project-proof dt { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.project-proof dd { margin: 0; font-size: 13px; font-weight: 650; }
.text-link { margin-top: 0; color: var(--accent); font-weight: 750; }
.text-link span { margin-left: 6px; display: inline-block; transition: transform .32s cubic-bezier(.16, 1, .3, 1); }
.text-link:hover span, .project-card:hover .text-link span { transform: translateX(5px); }
.system-cover { background: radial-gradient(circle at 65% 22%, rgba(118, 88, 255, .3), transparent 36%), var(--dark); display: grid; place-items: center; padding: 50px; }
.system-cover::after { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.mini-system { width: min(420px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.system-cover .mini-system { position: relative; z-index: 2; }
.mini-system span, .mini-system b { min-height: 86px; padding: 18px; border-radius: 16px; display: grid; place-items: center; text-align: center; }
.mini-system span { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.045); color: #e5e5e8; font: 650 18px/1.3 var(--cjk); backdrop-filter: blur(4px); }
.mini-system b { grid-column: 1 / -1; background: linear-gradient(120deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 32px rgba(49, 92, 244, .32); color: #fff; font-size: 20px; }

.section--soft { background: var(--soft); }
.ownership-flow { margin: 0; padding: 0; border-block: 1px solid var(--line); list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.ownership-flow li { min-height: 230px; padding: 30px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.ownership-flow li:first-child { border-left: 0; }
.ownership-flow span { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.ownership-flow h3 { margin: auto 0 12px; font-size: 23px; line-height: 1.15; letter-spacing: -.03em; }
.ownership-flow p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.contact { margin-block: 76px; padding: clamp(42px, 6.2vw, 74px); border-radius: 30px; background: var(--dark); box-shadow: var(--shadow); color: #fff; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: center; }
.contact h2 { margin-bottom: 0; max-width: 700px; }
.contact .eyebrow { color: #9fb0ff; }
.contact-copy > p { margin-bottom: 0; color: #c3c3c8; font-size: 18px; }
.contact .button { border-color: rgba(255,255,255,.58); color: #fff; }
.contact .button:hover { border-color: #fff; color: #fff; }
.contact .button.primary { border-color: #fff; background: #fff; color: var(--dark); }
.contact .button.primary:hover { border-color: #dfe5ff; background: #dfe5ff; color: var(--dark); }
.site-footer { border-top: 1px solid var(--glass-line); }
.site-footer .wrap { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 13px; }
.site-footer span { color: var(--muted); }

.page-hero { padding-block: 92px 74px; border-bottom: 1px solid var(--card-line); }
.page-hero .back-link { display: inline-block; margin-bottom: 38px; color: var(--muted); font-size: 14px; }
.page-hero .back-link:hover { color: var(--accent); }
.page-hero h1 { margin-bottom: 26px; max-width: 900px; font-size: clamp(55px, 7vw, 92px); font-weight: 690; line-height: .96; letter-spacing: -.068em; }
.page-hero .page-lead { max-width: 800px; margin-bottom: 0; color: var(--body-copy); font-size: clamp(20px, 2.4vw, 29px); line-height: 1.4; letter-spacing: -.025em; }
.case-facts { margin-top: 52px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.case-facts div { min-height: 102px; padding: 18px 20px; border: 1px solid var(--card-line); border-radius: 16px; background: var(--glass-bg); box-shadow: var(--shadow-soft); }
.case-facts dt { margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.case-facts dd { margin: 0; font-weight: 680; }
.case-visual { margin-top: 58px; overflow: hidden; border-radius: var(--radius); background: var(--dark); box-shadow: var(--shadow); }
.case-visual img { width: 100%; max-height: 720px; object-fit: cover; }
.case-section { padding-block: 88px; border-bottom: 1px solid var(--line); }
.case-section:last-of-type { border-bottom: 0; }
.content-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 86px; align-items: start; }
.content-grid h2 { margin-bottom: 0; font-size: clamp(34px, 4vw, 52px); font-weight: 680; line-height: 1.06; letter-spacing: -.048em; }
.content-body { max-width: 720px; }
.content-body > p { color: var(--body-copy); font-size: 18px; }
.content-body > p:last-child { margin-bottom: 0; }
.media-pair { margin-top: 46px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.media-pair figure { margin: 0; overflow: hidden; border-radius: 18px; background: var(--dark); }
.media-pair img { width: 100%; height: 300px; object-fit: cover; }
.media-pair figcaption { padding: 12px 16px; color: #d7d7da; background: var(--dark); font-size: 13px; }
.decision-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.decision-list li { padding: 24px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 46px 1fr; gap: 20px; transition: background .2s ease, padding-left .2s ease; }
.decision-list li:hover { padding-left: 20px; background: var(--hover-fill); }
.decision-list span { color: var(--accent); font-weight: 800; }
.decision-list h3 { margin-bottom: 7px; font-size: 22px; letter-spacing: -.025em; }
.decision-list p { margin-bottom: 0; color: var(--muted); }
.flow-simple { margin-top: 36px; display: grid; grid-template-columns: 1fr auto 1.25fr auto 1fr; align-items: center; gap: 14px; }
.flow-simple div { min-height: 118px; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--card-line); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; justify-content: space-between; }
.flow-simple small { color: var(--muted); }
.flow-simple > span { color: var(--accent); font-size: 24px; }
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split-cards article { padding: 30px; border-radius: 20px; background: var(--surface); border: 1px solid var(--card-line); box-shadow: var(--shadow-soft); }
.split-cards h3 { margin-bottom: 18px; font-size: 25px; letter-spacing: -.03em; }
.split-cards ul { margin: 0; padding-left: 20px; color: var(--muted); }
.split-cards li + li { margin-top: 10px; }
.notice { padding: 24px 26px; border-radius: 18px; background: var(--accent-soft); }
.notice p:last-child { margin-bottom: 0; }
.system-stage { padding: clamp(32px, 6vw, 70px); border-radius: var(--radius); background: radial-gradient(circle at 70% 20%, rgba(118, 88, 255, .3), transparent 38%), var(--dark); box-shadow: var(--shadow); }
.system-stage .mini-system { width: min(680px, 100%); margin-inline: auto; }
.system-stage .mini-system span { min-height: 120px; font-size: 23px; }
.system-stage .mini-system b { min-height: 110px; font-size: 25px; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.role-grid article { min-height: 220px; padding: 28px; border: 1px solid var(--card-line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-soft); }
.role-grid .role-top { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.role-grid h3 { font: 750 25px/1.2 var(--cjk); }
.role-grid span { color: var(--accent); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.role-grid p { margin: 24px 0 0; color: var(--muted); }

.about-intro { display: grid; grid-template-columns: .75fr 1.25fr; gap: 86px; }
.about-intro h2 { margin: 0; font-size: clamp(38px, 4.6vw, 60px); font-weight: 680; line-height: 1.06; letter-spacing: -.052em; }
.about-copy p { color: var(--body-copy); font-size: 19px; }
.timeline-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.timeline-list li { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 34px; }
.timeline-list time { color: var(--accent); font-weight: 800; }
.timeline-list h3 { margin-bottom: 7px; font-size: 23px; }
.timeline-list p { margin-bottom: 0; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detail-card { padding: 28px; border: 1px solid var(--card-line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-soft); }

:root[data-theme="dark"] .profile-card { border-color: rgba(130, 152, 255, .22); background: linear-gradient(145deg, #1a2444 0%, #241e3d 58%, #28231c 100%); }
:root[data-theme="dark"] .profile-card::after { border-color: rgba(130, 152, 255, .2); box-shadow: 0 0 0 42px rgba(130, 152, 255, .045), 0 0 0 84px rgba(130, 152, 255, .026); }
:root[data-theme="dark"] .orbit-tag { border-color: rgba(255, 255, 255, .12); background: rgba(16, 17, 22, .76); color: #d8d8de; }
:root[data-theme="dark"] .availability { color: #b9c3ef; }
:root[data-theme="dark"] .profile-facts { border-color: rgba(130, 152, 255, .28); }
:root[data-theme="dark"] .profile-facts div { border-color: rgba(130, 152, 255, .28); }
:root[data-theme="dark"] .profile-facts dt { color: #aab6e8; }
.detail-card h3 { margin-bottom: 16px; font-size: 23px; }
.detail-card p:last-child { margin-bottom: 0; color: var(--muted); }

.resume-section { padding-block: 76px; }
.resume-section .content-grid { width: min(960px, 100%); margin-inline: auto; grid-template-columns: 1fr; gap: 38px; }
.resume-section .content-grid > h2 { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; font-size: clamp(29px, 3vw, 38px); text-align: center; }
.resume-section .content-grid > h2::before, .resume-section .content-grid > h2::after { content: ""; height: 1px; background: var(--line); }
.education-section .detail-grid { grid-template-columns: 1fr; gap: 0; border-bottom: 1px solid var(--line); }
.education-section .detail-card { padding: 26px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; display: grid; grid-template-columns: minmax(0, 1fr) max-content; column-gap: clamp(28px, 5vw, 64px); }
.education-section .detail-card .eyebrow { grid-column: 2; grid-row: 1; margin: 3px 0 0; text-align: right; }
.education-section .detail-card h3 { grid-column: 1; grid-row: 1; margin-bottom: 7px; }
.education-section .detail-card p:last-child { grid-column: 1; max-width: 760px; }
.experience-section .timeline-list li { grid-template-columns: minmax(0, 1fr) max-content; gap: clamp(28px, 5vw, 64px); }
.experience-section .timeline-list li > div { grid-column: 1; grid-row: 1; }
.experience-section .timeline-list time { grid-column: 2; grid-row: 1; padding-top: 3px; text-align: right; }
.experience-section .timeline-list p { max-width: 760px; }
.skills-list { border-block: 1px solid var(--line); }
.skill-row { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px minmax(190px, .62fr) minmax(0, 1.38fr); gap: clamp(24px, 4vw, 50px); align-items: start; transition: background-color .25s ease; }
.skill-row:last-child { border-bottom: 0; }
.skill-row:hover { background-color: var(--hover-fill); }
.skill-index { padding-top: 4px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.skill-row h3 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.025em; }
.skill-body p { margin-bottom: 10px; color: var(--muted); }
.skill-body p:last-child { margin-bottom: 0; }
.skill-body .skill-keywords { color: var(--text); font-size: 13px; font-weight: 650; line-height: 1.65; text-wrap: pretty; }

/* Motion is progressive enhancement: content remains visible until JavaScript opts in. */
html.motion-enabled .motion-reveal { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .72s cubic-bezier(.16, 1, .3, 1), transform .72s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
html.motion-enabled .motion-reveal.motion-intro { transform: translate3d(0, 18px, 0); }
html.motion-enabled .motion-reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }
html.motion-enabled .name-accent { background-size: 0% 100%; transition: background-size 1.05s cubic-bezier(.16, 1, .3, 1) .22s; }
html.motion-enabled.motion-started .name-accent { background-size: 100% 100%; }
.timeline-list li, .education-section .detail-card { transition: background-color .25s ease; }
.timeline-list li:hover, .education-section .detail-card:hover { background-color: var(--hover-fill); }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 54px; padding-block: 70px; }
  .profile-card { min-height: 430px; }
  .project-card, .project-card--reverse, .project-card--flagship, .project-card--secondary { grid-template-columns: 1fr; }
  .project-card--reverse .project-media { order: 0; }
  .project-media { min-height: 420px; }
  .project-gallery { min-height: 570px; }
  .ownership-flow { grid-template-columns: repeat(2, 1fr); }
  .ownership-flow li { min-height: 190px; border-bottom: 1px solid var(--line); }
  .ownership-flow li:nth-child(odd) { border-left: 0; }
  .ownership-flow li:last-child { grid-column: 1 / -1; }
  .contact, .content-grid, .about-intro { grid-template-columns: 1fr; gap: 42px; }
  .contact { margin-block: 54px; }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .flow-simple { grid-template-columns: 1fr; }
  .flow-simple > span { transform: rotate(90deg); justify-self: center; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 36px, var(--wrap)); }
  .site-nav { min-height: 64px; }
  .brand { font-size: 15px; }
  .nav-links { gap: 1px; font-size: 12px; }
  .nav-links a { padding: 6px 10px; }
  .nav-links a:first-child { display: none; }
  .site-tools { gap: 4px; }
  .site-tool { width: 34px; height: 34px; font-size: 12px; }
  .hero { padding-block: 52px 66px; }
  .hero h1 { font-size: clamp(42px, 11.3vw, 48px); line-height: 1.02; }
  .hero h1 .name-accent { display: inline-block; white-space: nowrap; }
  .hero-lead { font-size: 18px; }
  .actions { display: grid; }
  .button { width: 100%; }
  .profile-card { min-height: 410px; padding: 24px; }
  .profile-visual { height: 148px; }
  .profile-mark { width: 112px; height: 112px; font-size: 32px; }
  .orbit-tag--one { top: 8px; left: 94px; }
  .orbit-tag--two { top: 53px; left: 124px; }
  .orbit-tag--three { top: 98px; left: 82px; }
  .profile-role { font-size: 23px; }
  .profile-facts div { grid-template-columns: 82px 1fr; }
  .section { padding-block: 74px; }
  .section-heading { margin-bottom: 42px; }
  .section-heading h2, .contact h2 { font-size: 41px; }
  .project-card { margin-top: 24px; min-height: 0; }
  .project-media { min-height: 250px; }
  .project-card--secondary .project-media { min-height: 300px; }
  .project-gallery { min-height: 490px; padding: 7px; gap: 7px; }
  .project-shot { border-radius: 10px; }
  .project-copy { padding: 28px 24px 32px; }
  .project-copy h3 { font-size: 40px; }
  .media-badge { top: 14px; left: 14px; }
  .system-cover { padding: 24px; }
  .mini-system { gap: 9px; }
  .mini-system span, .mini-system b { min-height: 68px; padding: 12px; font-size: 14px; }
  .mini-system b { font-size: 16px; }
  .project-proof div { grid-template-columns: 74px 1fr; }
  .ownership-flow { display: block; }
  .ownership-flow li, .ownership-flow li:nth-child(odd), .ownership-flow li:last-child { min-height: 0; padding: 24px 4px; border-left: 0; border-bottom: 1px solid var(--line); }
  .ownership-flow li:last-child { border-bottom: 0; }
  .ownership-flow h3 { margin: 24px 0 8px; }
  .site-footer .wrap { padding-block: 25px; flex-direction: column; align-items: flex-start; }
  .contact { margin-block: 36px; padding: 34px 24px; border-radius: 22px; }
  .page-hero { padding-block: 54px 58px; }
  .page-hero .back-link { margin-bottom: 28px; }
  .page-hero h1 { font-size: 50px; }
  .page-hero .page-lead { font-size: 19px; }
  .case-facts { grid-template-columns: 1fr; }
  .case-facts div { min-height: 0; padding: 15px 17px; }
  .case-visual { margin-top: 38px; border-radius: 17px; }
  .case-visual img { min-height: 300px; object-fit: cover; }
  .case-section { padding-block: 66px; }
  .content-grid h2 { font-size: 37px; }
  .content-body > p { font-size: 17px; }
  .media-pair, .split-cards, .role-grid, .detail-grid { grid-template-columns: 1fr; }
  .media-pair img { height: auto; aspect-ratio: 1.65; }
  .decision-list li { grid-template-columns: 34px 1fr; }
  .system-stage { padding: 24px; }
  .system-stage .mini-system span { min-height: 78px; font-size: 18px; }
  .system-stage .mini-system b { min-height: 76px; font-size: 18px; }
  .timeline-list li { grid-template-columns: 1fr; gap: 7px; }
  .resume-section { padding-block: 60px; }
  .resume-section .content-grid { gap: 28px; }
  .resume-section .content-grid > h2 { grid-template-columns: 1fr auto 1fr; gap: 14px; font-size: 30px; }
  .education-section .detail-card { grid-template-columns: 1fr auto; column-gap: 18px; }
  .education-section .detail-card p:last-child { grid-column: 1 / -1; }
  .experience-section .timeline-list li { grid-template-columns: 1fr auto; gap: 7px 18px; }
  .experience-section .timeline-list li > div { grid-column: 1 / -1; grid-row: 2; }
  .experience-section .timeline-list time { grid-column: 2; grid-row: 1; padding-top: 0; }
  .skill-row { grid-template-columns: 32px 1fr; gap: 8px 14px; }
  .skill-index { grid-column: 1; grid-row: 1; }
  .skill-row h3 { grid-column: 2; grid-row: 1; }
  .skill-body { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 360px) {
  .site-nav { gap: 8px; }
  .brand { font-size: 14px; }
  .nav-links { margin-left: auto; }
  .nav-links a:last-child { display: none; }
  .nav-links a { padding-inline: 9px; }
  .hero h1 { font-size: clamp(36px, 11.1vw, 40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; transform: none !important; }
}
