@charset "UTF-8";
/* ------------------------------------------------------------------
   刘哲廷 · 个人作品集
   1. 变量  2. 基础  3. 页头  4. 首页  5. 项目  6. 能力荣誉
   7. 教育实践  8. 页脚  9. 动效  10. 响应式
------------------------------------------------------------------ */

/* 1. 变量 ---------------------------------------------------------- */
:root {
  --paper: #f7f6f0;
  --paper-2: #eef0e7;
  --ink: #243b30;
  --ink-2: #37503f;
  --muted: #5d6b5c;
  --line: #dbe0d3;
  --line-soft: #e6e9dd;
  --accent: #ac6a4b;
  --accent-soft: #d9b8a2;
  --gold: #c39a63;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Microsoft YaHei", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 7px;
}

/* 2. 基础 ---------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, h4, dl, dd, dt, figure { margin: 0; }
b, strong { font-weight: 600; }
button, a, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
::selection { background: #dbe0c7; color: var(--ink); }

.container { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 200; padding: 12px 16px; color: #fff; background: var(--ink); border-radius: 4px; }
.skip-link:focus { top: 12px; }
.section-space { padding-block: clamp(58px, 6.4vw, 104px); }

.eyebrow { font: 10px/1.6 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.section-heading { max-width: 46em; margin-bottom: clamp(28px, 3.6vw, 48px); }
.section-heading h2 { margin-top: 12px; }
.section-lead { margin-top: 16px; color: var(--muted); font-size: 14.5px; line-height: 1.95; }
h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 500; letter-spacing: -.035em; line-height: 1.35; }
.accent-dot { color: var(--accent); font-family: var(--serif); padding-left: .04em; }

/* 3. 页头 ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: 82px;
  background: rgba(247, 246, 240, .88);
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(247, 246, 240, .95); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-controls { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.language-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding-inline: 9px; border-left: 1px solid var(--line);
  color: var(--ink-2); font-size: 12px; font-weight: 650; white-space: nowrap;
}
.language-switch:hover { text-decoration: underline; text-underline-offset: 4px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: .08em; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid #b4bdac; border-radius: 50%;
  font: italic 15px var(--serif); letter-spacing: -.06em;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.brand:hover .brand-mark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); font-size: 13px; }
.nav-link { position: relative; padding: 11px 0; color: #626f5e; transition: color .2s var(--ease); }
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent);
}
.nav-contact { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid #c3cbba; border-radius: 999px; transition: background .25s var(--ease), border-color .25s var(--ease); }
.nav-contact:hover, .nav-contact.is-active { background: #e9ecdf; border-color: #adb89f; }
.menu-toggle { display: none; }

/* 4. 首页 ---------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: 1.06fr 1fr;
  gap: clamp(36px, 5.4vw, 82px); align-items: center;
  padding-block: clamp(40px, 4.6vw, 68px) clamp(56px, 6.4vw, 96px);
}
.hero-copy > .eyebrow { margin-bottom: 22px; }
h1 { font-size: clamp(46px, 5.6vw, 78px); font-weight: 500; line-height: 1.32; letter-spacing: -.045em; }
html:lang(en) h1 { font-size: clamp(36px, 5.25vw, 72px); }
.name-wrap { position: relative; white-space: nowrap; }
.name-wrap svg { position: absolute; left: -1%; bottom: -9px; width: 102%; height: 15px; fill: none; stroke: var(--accent-soft); stroke-width: 1.6; stroke-linecap: round; }
.title-period { color: var(--accent); font-family: var(--serif); padding-left: .04em; }
.hero-description { max-width: 28em; margin-top: clamp(22px, 2.6vw, 34px); color: var(--muted); font-size: 16px; line-height: 2; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 28px; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-size: 13px; }
.button { min-height: 46px; padding: 11px 22px; border-radius: 5px; }
.button-primary { color: var(--paper); background: var(--ink); transition: background .22s var(--ease), transform .22s var(--ease); }
.button-primary:hover { background: #3b5747; transform: translateY(-1px); }
.text-link { min-height: 44px; color: var(--ink-2); transition: color .2s var(--ease); }
.text-link:hover { color: var(--accent); }

.hero-stats {
  display: flex; flex-wrap: wrap; margin-top: clamp(30px, 3.4vw, 46px);
  padding-top: 22px; border-top: 1px solid var(--line);
}
.hero-stats > div {
  display: flex; flex-direction: column-reverse;
  margin: 0 clamp(18px, 2.4vw, 32px) 10px 0; padding-right: clamp(18px, 2.4vw, 32px);
  border-right: 1px solid var(--line);
}
.hero-stats > div:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.hero-stats dd { font: 500 clamp(23px, 2.4vw, 30px)/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hero-stats dd span { color: var(--accent); font-size: .7em; }
.hero-stats dt { margin-top: 8px; font-size: 11px; letter-spacing: .06em; color: var(--muted); }

.hero-visual { margin: 0; }
.hero-frame {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 1 / 1.03; border-radius: 8px;
  background: radial-gradient(125% 92% at 50% 4%, #f5f3e7 0%, #eae7d7 58%, #e2dfcd 100%);
  border: 1px solid #e0ddc9;
}
.art-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(#8b967b17 1px, transparent 1px),
    linear-gradient(90deg, #8b967b17 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(#000 0%, #000 58%, transparent 100%);
  mask-image: linear-gradient(#000 0%, #000 58%, transparent 100%);
}
.art-floor { position: absolute; left: 7%; right: 7%; bottom: 9%; height: 1px; background: linear-gradient(90deg, transparent, #b5b9a2, transparent); }
.hero-frame img {
  position: absolute; left: 50%; bottom: 8%; z-index: 1;
  width: auto; height: 88%; max-width: 88%;
  object-fit: contain; object-position: center bottom;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 24px rgba(36, 59, 48, .18));
}
.hero-caption {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  margin-top: 13px; font-size: 11.5px; line-height: 1.6; color: #68765f;
}
.caption-kicker { font: 9.5px var(--mono); letter-spacing: .2em; color: var(--accent); }

/* 5. 项目 ---------------------------------------------------------- */
.projects-section { background: #eef0e7; border-block: 1px solid #e2e5d8; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 54px 40px; }
.project-card { min-width: 0; }
.project-summary { display: block; cursor: pointer; list-style: none; }
.project-summary::-webkit-details-marker { display: none; }
.project-summary::marker { content: ""; }

.project-cover {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 2.02; overflow: hidden; border-radius: var(--radius);
  padding: 0; isolation: isolate;
  background: radial-gradient(132% 122% at 50% 6%, #18241d 0%, #0a0f0c 74%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.project-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(80% 70% at 50% 100%, rgba(0, 0, 0, .55), transparent 72%);
}

/* 照片是黑底棚拍，contain 不裁切，lighten 让照片黑边融进深色卡面 */
.project-cover img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; max-width: none;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: brightness(1.05) saturate(1.02);
  transition: transform .6s var(--ease);
}
.project-summary:hover .project-cover img { transform: scale(1.035); }
.project-summary:hover .project-title { color: var(--accent); }

/* 教学鱼缸：真实照片，整张入框；背景用同一张照片虚化铺满，避免大片空场 */
.project-cover.is-photo::after { content: none; }
.project-cover.is-photo .cover-bg {
  position: absolute; inset: -8%; z-index: 0;
  width: 116%; height: 116%; max-width: none;
  object-fit: cover;
  mix-blend-mode: normal;
  filter: blur(26px) brightness(.46) saturate(.85);
}
.project-cover.is-photo .cover-fg {
  position: relative; z-index: 1;
  width: auto; height: 88%;
  mix-blend-mode: normal;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 18px 34px rgba(0, 0, 0, .6);
}
.project-summary:hover .project-cover.is-photo .cover-fg { transform: scale(1.02); }

.cover-index {
  position: absolute; left: 16px; top: 13px; z-index: 2;
  font: 11px var(--mono); letter-spacing: .18em; color: #8d998e;
}

.wave-art { position: relative; z-index: 1; width: 56%; height: auto; overflow: visible; }
.wave-base { stroke: rgba(219, 224, 211, .26); stroke-width: 1; stroke-dasharray: 3 6; }
.wave-line { stroke: #cbd3c2; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wave-dot { fill: var(--accent); }

.project-info { display: block; margin-top: 18px; }
.project-meta { display: block; font: 10px/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #7d8874; }
.project-title { display: block; margin-top: 9px; font-size: clamp(19px, 1.9vw, 24px); font-weight: 550; line-height: 1.45; letter-spacing: -.015em; transition: color .2s var(--ease); }
.project-description { display: block; margin-top: 9px; max-width: 34em; color: var(--muted); font-size: 14px; line-height: 1.9; }
.spec-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.spec {
  padding: 5px 10px; border: 1px solid #cfd6c7; border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  font: 10.5px/1.35 var(--mono); letter-spacing: .02em; color: #4f5e4f;
}
.detail-action { display: flex; align-items: center; gap: 9px; margin-top: 15px; color: #4d614c; font-size: 12px; letter-spacing: .02em; }
.disclosure-icon { width: .5em; height: .5em; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-.08em) rotate(45deg); transition: transform .25s var(--ease); }
.when-open, .project-card[open] .when-closed { display: none; }
.project-card[open] .when-open { display: inline; }
.project-card[open] .disclosure-icon { transform: translateY(.1em) rotate(225deg); }
.project-card[open] .project-title { color: var(--accent); }

.topic-body {
  margin-top: 20px; padding-top: 22px; border-top: 1px solid #cfd5c5;
  display: grid; gap: 20px;
}
.project-card[open] .topic-body { animation: body-in .34s var(--ease) both; }
@keyframes body-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.topic-block h3 {
  margin: 0 0 8px; font: 10px var(--mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
}
.topic-block p { color: var(--muted); font-size: 14px; line-height: 1.95; }
.bullet-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.bullet-list li { position: relative; padding-left: 16px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.bullet-list li::before { content: ""; position: absolute; left: 0; top: .79em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-soft); }
.bullet-list b { color: var(--ink-2); font-weight: 600; }
.stack {
  padding-top: 14px; border-top: 1px dashed #cfd5c5;
  color: #6b7868; font-size: 12px; line-height: 1.9;
}
.stack span { margin-right: 10px; font: 9.5px var(--mono); letter-spacing: .18em; color: var(--accent); }

/* 末位通栏卡片（信号采集） */
.project-card.is-compact { grid-column: 1 / -1; }
.project-card.is-compact .project-summary {
  display: grid; grid-template-columns: 1.04fr 1fr;
  gap: clamp(22px, 3.4vw, 46px); align-items: center;
}
.project-card.is-compact .project-cover { aspect-ratio: 2.4; }
.project-card.is-compact .project-info { margin-top: 0; }
.project-card.is-compact .wave-art { width: 58%; }

/* 6. 能力与荣誉 ---------------------------------------------------- */
.credential-featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.credential-card {
  display: flex; flex-direction: column; align-items: start; padding: clamp(19px, 2.6vw, 35px);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fbfaf5;
}
.credential-card.is-national { background: var(--ink); border-color: var(--ink); color: #f4f4e9; }
.credential-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%;
  margin-bottom: 19px; color: #71503c; font-size: 12px; font-weight: 600;
}
.credential-card.is-national .credential-meta { color: #e3bb94; }
.credential-meta time, .credential-list time, .ip-works time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.credential-rank { font-size: clamp(24px, 3vw, 39px); line-height: 1.14; font-weight: 550; letter-spacing: -.045em; }
.credential-name { margin-top: 15px; font-size: 15px; font-weight: 600; line-height: 1.55; }
.credential-track { margin: 7px 0 19px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.credential-card.is-national .credential-track { color: #c9d4c4; }
.evidence-link {
  display: inline-flex; align-items: baseline; gap: 8px; min-height: 36px;
  color: var(--ink-2); font-weight: 600; font-size: 13px;
  text-decoration: underline; text-underline-offset: 4px;
}
.credential-card .evidence-link { margin-top: auto; align-items: center; }
.credential-card.is-national .evidence-link { color: #e9dbc6; }
.credential-entry .evidence-link { align-items: center; }
.credential-card:target, .credential-entry:target { outline: 2px solid var(--accent); outline-offset: 3px; }
.credential-disclosure {
  margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfaf5;
}
.credential-disclosure summary {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 13px clamp(16px, 2.4vw, 28px); min-height: 48px;
  cursor: pointer; list-style: none; color: var(--ink-2); font-weight: 600;
}
.credential-disclosure summary::-webkit-details-marker { display: none; }
.credential-disclosure summary::after { content: ""; width: 7px; height: 7px; flex: none; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.credential-disclosure[open] summary::after { transform: rotate(225deg); }
.credential-disclosure > .credential-list { padding-inline: clamp(16px, 2.4vw, 28px); }
.credential-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4.6vw, 68px); align-items: start; margin-top: clamp(30px, 4vw, 54px);
}
.column-title { margin-bottom: 15px; font-size: 17px; font-weight: 600; }
.credential-list { list-style: none; margin: 0; padding: 0; }
.credential-entry {
  display: grid; grid-template-columns: 4ch minmax(0, 1fr); gap: 14px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.credential-entry time, .ip-works time { color: #775440; font-size: 12px; }
.credential-entry strong { display: block; font-size: 14px; line-height: 1.55; }
.credential-entry p, .ip-content p { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.credential-ip { margin-top: 24px; }
.ip-content { padding: 5px clamp(16px, 2.4vw, 28px) 24px; }
.ip-content h3 { font-size: 15px; font-weight: 650; }
.ip-content p + h3 { margin-top: 18px; }
.ip-works { list-style: none; margin: 13px 0 0; padding: 0; }
.ip-works li { display: flex; gap: 12px; border-top: 1px solid var(--line); padding: 7px 0; font-size: 13px; }

.skill-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 30px; }
.skill-group h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.skill-group ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.skill-group li {
  padding: 5px 10px; border: 1px solid #d6dbcd; border-radius: 4px;
  background: #fbfaf3; color: #55634f; font-size: 12px; line-height: 1.5;
}

/* 7. 教育与实践 ---------------------------------------------------- */
.about-section { padding-block: clamp(50px, 6vw, 92px); }
.education-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: .92fr 1fr; gap: clamp(26px, 4vw, 58px);
  padding: clamp(28px, 4.4vw, 58px); border-radius: 8px;
  background: linear-gradient(152deg, #2b4438 0%, #22382e 100%);
  color: #eef1e6;
}
.education-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(#ffffff0b 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0b 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(120% 100% at 100% 0%, #000, transparent 72%);
  mask-image: radial-gradient(120% 100% at 100% 0%, #000, transparent 72%);
}
.education-panel h2 { color: #f2f4ea; }
.education-panel .eyebrow { color: var(--gold); margin-bottom: 12px; }
.education-panel h2 span { color: var(--gold); }
.education-note { max-width: 22em; margin-top: 14px; color: #c4ceb9; font-size: 14px; line-height: 1.9; }
.direction-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 0; padding: 0; list-style: none; }
.direction-list li { padding: 6px 11px; border: 1px solid #5d7464; border-radius: 999px; color: #d7e0ce; font-size: 11px; letter-spacing: .02em; }

.education-record { border-left: 1px solid #5b7061; padding-left: clamp(20px, 3.2vw, 44px); }
.education-record .school + .school { margin-top: 22px; padding-top: 20px; border-top: 1px solid #4f6557; }
.education-dates { color: #b4c3a9; font-size: 12px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.education-record h3 { margin-top: 6px; font-size: clamp(21px, 2.1vw, 28px); font-weight: 500; letter-spacing: -.015em; }
.education-record p { margin-top: 4px; color: #c4ceb9; font-size: 14px; }

.practice-grid {
  display: grid; grid-template-columns: .92fr 1fr;
  gap: clamp(26px, 4vw, 58px); align-items: start;
  margin: clamp(34px, 4.4vw, 58px) clamp(12px, 4.4vw, 58px) 0;
}
.practice-grid .eyebrow { margin-bottom: 12px; }
.practice-records { margin: 0; padding-left: clamp(20px, 3.2vw, 44px); }
.practice-records > div { padding-bottom: 16px; }
.practice-records > div + div { padding-top: 16px; border-top: 1px solid var(--line); }
.practice-records dt { font-size: 16px; font-weight: 550; letter-spacing: -.01em; }
.practice-records dt span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: .02em; }
.practice-records dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.85; }

/* 8. 页脚 ---------------------------------------------------------- */
.site-footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 10px 24px; padding-block: 22px 30px;
  border-top: 1px solid var(--line);
  color: #5b6b57; font-size: 12px; line-height: 1.9;
}
.site-footer p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.site-footer a { transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .28em; }
.footer-meta span { color: #7d887a; }

/* 9. 动效 ---------------------------------------------------------- */
.has-js [data-reveal] { opacity: 0; transform: translateY(18px); }
.has-js [data-reveal].is-revealed {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .has-js [data-reveal] { opacity: 1; transform: none; }
}

/* 10. 响应式 ------------------------------------------------------- */
@media (max-width: 1024px) {
  .container { width: calc(100% - 64px); }
  .hero { gap: 36px; }
  .project-grid { gap: 46px 28px; }
  .credential-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .skill-groups { gap: 22px 20px; }
}

@media (max-width: 900px) {
  .hero { gap: 28px; padding-block: 34px 56px; }
  .hero-stats { justify-content: flex-start; }
  .project-cover { aspect-ratio: 1.95; }
  .education-panel { grid-template-columns: 1fr; gap: 26px; }
  .education-record { border-left: 0; border-top: 1px solid #4f6557; padding: 18px 0 0; }
}

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { max-width: 560px; }
  .hero-frame { aspect-ratio: 1.1; }
  .hero-frame img { height: 90%; bottom: 6%; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  .site-header { height: 66px; }
  .brand { gap: 9px; font-size: 13px; }
  .brand-mark { width: 32px; height: 32px; font-size: 13px; }
  .header-controls { gap: 8px; }
  html:not(.has-menu) .site-header { height: auto; }
  html:not(.has-menu) .header-inner, html:not(.has-menu) .header-controls { flex-wrap: wrap; }
  html:not(.has-menu) #main-nav { flex-wrap: wrap; }
  .has-menu .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 6px; width: 42px; height: 42px;
  }
  .menu-toggle span { width: 20px; height: 1px; background: var(--ink); transition: transform .25s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .has-menu nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 20px 16px; font-size: 14px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 16px 24px #253d2f10;
  }
  .has-menu nav.is-open { display: flex; }
  .has-menu nav a { padding: 11px 4px; }
  .has-menu .nav-link.is-active::after { left: 4px; top: 50%; bottom: auto; margin-top: -2px; }
  .has-menu .nav-contact { border: 0; border-radius: 0; padding-inline: 4px; justify-content: space-between; }
  .has-menu .nav-contact:hover, .has-menu .nav-contact.is-active { background: transparent; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
  .section-space { padding-block: 52px; }
  h1 { font-size: clamp(42px, 11.4vw, 58px); }
  .hero-description { font-size: 14.5px; line-height: 1.95; }
  .hero-frame { aspect-ratio: 1.04; }
  .hero-frame img { height: 88%; }
  .hero-stats > div { margin-right: 20px; padding-right: 20px; }
  .hero-stats dd { font-size: 22px; }
  .project-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-cover { aspect-ratio: 1.8; }
  .project-cover.is-photo .cover-fg { height: 84%; }
  .project-title { font-size: 21px; }
  .wave-art { width: 62%; }
  .project-card.is-compact .project-summary { grid-template-columns: 1fr; gap: 0; }
  .project-card.is-compact .project-cover { aspect-ratio: 1.8; }
  .project-card.is-compact .project-info { margin-top: 18px; }
  .project-card.is-compact .wave-art { width: 60%; }
  .credential-grid, .practice-grid { grid-template-columns: 1fr; gap: 30px; }
  .credential-featured { grid-template-columns: 1fr; }
  .practice-grid { margin-inline: 0; }
  .practice-records { padding-left: 0; }
  .skill-groups { gap: 24px 16px; }
  .education-panel { padding: 26px 22px; }
  .site-footer { font-size: 11px; }
  .footer-meta { width: 100%; justify-content: space-between; }
}

@media (max-width: 400px) {
  .hero-stats > div { margin-right: 14px; padding-right: 14px; }
  .hero-stats dt { font-size: 10px; }
}
