/* =========================================================
   阳广程 · 个人作品集 / 简历
   Design tokens
   ========================================================= */
:root {
  --paper: #f6f3ec;
  --paper-2: #efe9dd;
  --paper-3: #e7e0d2;
  --ink: #15181d;
  --ink-2: #2c3138;
  --ink-3: #4a4f57;
  --muted: #78766f;
  --line: #d9d1c2;
  --line-strong: #c4baa7;
  --accent: #b8422a;
  --accent-soft: #f3ddd6;
  --green: #1f5c4d;
  --green-soft: #dce8e1;
  --white: #fffdf8;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(21, 24, 29, .05), 0 8px 20px -12px rgba(21, 24, 29, .18);
  --shadow-lg: 0 30px 70px -35px rgba(21, 24, 29, .45), 0 8px 24px -12px rgba(21, 24, 29, .16);
  --maxw: 1180px;
  --nav-h: 70px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", "Times New Roman", serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(184, 66, 42, .07), transparent 60%),
    radial-gradient(900px 520px at -10% 30%, rgba(31, 92, 77, .05), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.container {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* =========================================================
   Typography helpers
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--accent);
}

.section-title {
  margin: 14px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 700;
}

.section-lede {
  margin: 18px 0 0;
  max-width: 620px;
  color: var(--ink-3);
  font-size: 16px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 96px 0 8px;
}

.section-head .head-note {
  max-width: 300px;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
  text-align: right;
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(246, 243, 236, .78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(246, 243, 236, .92);
}
.nav-inner {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  font-size: 16px;
}
.brand-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 66, 42, .13);
}
.brand small {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-3);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(21, 24, 29, .05); }
.nav-links a.is-active { color: var(--ink); font-weight: 600; }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13.5px;
  font-weight: 600;
  transition: transform .2s var(--ease), background .2s;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--accent); }
.nav-cta svg { width: 14px; height: 14px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform .25s;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 0 84px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  margin: 22px 0 0;
  font-size: clamp(58px, 8.6vw, 108px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
}
.hero-title .cn { display: inline-block; }
.hero-title .dot { color: var(--accent); }

.hero-role {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  letter-spacing: .02em;
}
.hero-role .divider {
  width: 1px; height: 16px;
  background: var(--line-strong);
}
.hero-role .en {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 400;
  text-transform: uppercase;
}

.hero-statement {
  margin: 26px 0 0;
  max-width: 540px;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 500;
}
.hero-statement em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(184, 66, 42, .22) 62%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 14px 30px -16px rgba(21, 24, 29, .6);
}
.btn-primary:hover { background: var(--accent); box-shadow: 0 18px 34px -16px rgba(184, 66, 42, .55); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 253, 248, .45);
}
.btn-ghost:hover { background: var(--white); border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 700;
}
.stat b .unit { font-size: .55em; font-weight: 600; margin-left: 2px; }
.stat span {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .02em;
}

/* Hero visual */
.hero-visual {
  position: relative;
  padding: 10px 0 26px;
}
.shot-frame {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.4deg);
  transition: transform .6s var(--ease);
}
.hero-visual:hover .shot-frame { transform: rotate(-.4deg) translateY(-4px); }
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 10px;
}
.shot-bar i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.shot-bar i:first-child { background: #d97a63; }
.shot-bar .url {
  margin-left: 10px;
  flex: 1;
  height: 18px;
  border-radius: 4px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0 8px;
  letter-spacing: .02em;
}
.shot-frame img {
  border-radius: 9px;
  border: 1px solid rgba(21, 24, 29, .06);
}

.float-card {
  position: absolute;
  z-index: 3;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.float-card.balloon {
  width: 46%;
  left: -34px;
  bottom: -18px;
  padding: 6px;
  transform: rotate(2deg);
  transition: transform .6s var(--ease);
}
.hero-visual:hover .float-card.balloon { transform: rotate(1deg) translateY(-6px); }
.float-card.balloon img { border-radius: 9px; }

.float-card.badge {
  top: -20px;
  right: -14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  transform: rotate(1.5deg);
}
.badge .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 92, 77, .14);
}
.badge small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--muted);
}

.hero-side-note {
  position: absolute;
  right: 2px;
  bottom: -12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
  writing-mode: vertical-rl;
}

/* =========================================================
   Logos / marquee strip
   ========================================================= */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .4);
}
.strip-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
  overflow: hidden;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}
.strip-label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.strip-items {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
}
.strip-items span { display: inline-flex; align-items: center; gap: 10px; }
.strip-items span::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   Portfolio
   ========================================================= */
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  padding: 76px 0;
  border-top: 1px solid var(--line);
}
.project:first-of-type { border-top: 0; }
.project-media { position: relative; top: 6px; }
.project:nth-child(even) .project-media { order: 2; }

.project-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-kicker .pill-role {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.project h3 {
  margin: 16px 0 0;
  font-size: clamp(27px, 3.2vw, 38px);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.project h3 .sub {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.project-lead {
  margin: 18px 0 0;
  color: var(--ink-3);
  font-size: 15.5px;
}

.project-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.project-points li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-3);
}
.project-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
  opacity: .75;
}
.project-points strong { color: var(--ink); font-weight: 600; }

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px dashed var(--line-strong);
}
.project-metrics div b {
  display: block;
  font-size: 21px;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.project-metrics div b .unit { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.project-metrics div span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .02em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}
.tag {
  font-size: 11.5px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-3);
  background: rgba(255, 253, 248, .55);
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s, gap .2s;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 10px; }
.link-arrow svg { width: 13px; height: 13px; }

/* project media: desktop shot */
.media-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow-sm);
}
.media-shell .shot-bar { padding: 6px 8px 10px; }
.media-shell img { border-radius: 9px; border: 1px solid rgba(21, 24, 29, .06); }
.media-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 6px 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted);
}

.media-stack {
  position: relative;
  padding-bottom: 64px;
}
.media-stack .small-shot {
  position: absolute;
  right: -16px;
  bottom: 0;
  width: 58%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg);
  transition: transform .5s var(--ease);
}
.media-stack:hover .small-shot { transform: rotate(.2deg) translateY(-4px); }
.small-shot img { border-radius: 7px; }

/* Architecture diagram */
.arch-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.arch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.arch-top b { font-size: 13px; letter-spacing: .02em; }
.arch-top span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}
.arch-layer {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.arch-layer:last-of-type { border-bottom: 0; padding-bottom: 6px; }
.arch-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--muted);
  padding-top: 7px;
  text-transform: uppercase;
}
.arch-nodes { display: flex; flex-wrap: wrap; gap: 7px; }
.node {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
}
.node.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.node.accent { background: var(--accent-soft); border-color: #e6c2b7; color: #7e2e1d; }
.node.green { background: var(--green-soft); border-color: #b9d2c7; color: #1c4a3f; }
.arch-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.arch-foot .chip {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-3);
}

/* =========================================================
   Method (dark)
   ========================================================= */
.method {
  position: relative;
  margin: 44px 0 0;
  padding: clamp(38px, 5vw, 68px);
  background: var(--ink);
  color: #f2eee5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.method::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -160px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 66, 42, .32), transparent 65%);
  pointer-events: none;
}
.method-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.method .section-num { color: #d98a76; }
.method .section-title { color: #f6f2e9; max-width: 560px; }
.method .section-lede { color: #a8a49a; max-width: 440px; }
.method-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 44px 0 0;
  border-top: 1px solid rgba(246, 242, 233, .16);
}
.step {
  padding: 26px 22px 6px 0;
  border-right: 1px solid rgba(246, 242, 233, .12);
}
.step:last-child { border-right: 0; }
.step .no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #d98a76;
  letter-spacing: .1em;
}
.step h4 {
  margin: 14px 0 8px;
  font-size: 17px;
  font-weight: 600;
}
.step p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: #a8a49a;
}
.method-tools {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(246, 242, 233, .16);
}
.method-tools span {
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(246, 242, 233, .2);
  color: #cfcabe;
}
.method-tools b {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: #d98a76;
  margin-right: 4px;
  align-self: center;
  text-transform: uppercase;
}

/* =========================================================
   Resume
   ========================================================= */
.resume-grid {
  display: grid;
  grid-template-columns: 306px 1fr;
  gap: clamp(36px, 5vw, 68px);
  padding-top: 44px;
}
.resume-side {
  position: sticky;
  top: calc(var(--nav-h) + 30px);
  align-self: start;
  padding: 26px;
  background: rgba(255, 253, 248, .7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.resume-side .label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.resume-side .intent {
  margin: 0 0 22px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}
.resume-side .intent span { color: var(--accent); }
.side-contact { display: grid; gap: 8px; margin-bottom: 24px; }
.side-contact a,
.side-contact span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-3);
  transition: color .2s;
  word-break: break-all;
}
.side-contact a:hover { color: var(--accent); }
.side-contact svg { width: 14px; height: 14px; flex: none; color: var(--muted); }
.side-skills { border-top: 1px solid var(--line); padding-top: 18px; }
.side-skills ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.side-skills li {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-3);
}
.side-download { margin-top: 22px; }
.side-download .btn { width: 100%; justify-content: center; height: 44px; font-size: 13px; }

.resume-main { min-width: 0; }
.resume-block { padding: 0 0 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.resume-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.block-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 21px;
  letter-spacing: -.01em;
}
.block-title .en {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 400;
}

.job { padding: 0 0 26px; }
.job:last-child { padding-bottom: 0; }
.job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.job-head h3 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.5;
}
.job-head .period {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--muted);
  padding-top: 4px;
  white-space: nowrap;
}
.job-role {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.job-org-note { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }
.job ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.job ul li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-3);
}
.job ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .8em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}
.job ul li strong { color: var(--ink); font-weight: 600; }

.mini-project {
  padding: 20px 0;
  border-top: 1px dashed var(--line);
}
.mini-project:first-of-type { border-top: 0; padding-top: 0; }
.mini-project h3 { margin: 0; font-size: 16px; }
.mini-project .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--muted);
}
.mini-project .meta .role { color: var(--accent); font-weight: 600; }
.mini-project ul { margin: 13px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.mini-project ul li {
  position: relative;
  padding-left: 15px;
  font-size: 13px;
  line-height: 1.78;
  color: var(--ink-3);
}
.mini-project ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .78em;
  width: 5px; height: 5px;
  border-radius: 1px;
  background: var(--accent);
  opacity: .6;
}
.mini-project ul li strong { color: var(--ink); font-weight: 600; }

.edu-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.edu-head h3 { margin: 0; font-size: 16px; }
.edu-head span { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.edu p { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.8; }

.skill-grid { display: grid; gap: 14px; }
.skill-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.skill-row:last-child { border-bottom: 0; padding-bottom: 0; }
.skill-row b { font-size: 12.5px; color: var(--ink); padding-top: 1px; }
.skill-row p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.8; }

.self-eval { display: grid; gap: 10px; }
.self-eval p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-3);
  padding-left: 16px;
  position: relative;
}
.self-eval p::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.self-eval strong { color: var(--ink); }

/* =========================================================
   Contact / footer
   ========================================================= */
.contact {
  position: relative;
  margin-top: 40px;
  padding: clamp(44px, 6vw, 84px);
  background: linear-gradient(140deg, #b8422a 0%, #a23420 55%, #8c2b19 100%);
  color: #fdf8ef;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  right: -80px; top: -120px;
  width: 380px; height: 380px;
  border: 1px solid rgba(253, 248, 239, .22);
  border-radius: 50%;
}
.contact::after {
  content: "";
  position: absolute;
  right: 60px; top: -40px;
  width: 220px; height: 220px;
  border: 1px solid rgba(253, 248, 239, .16);
  border-radius: 50%;
}
.contact .eyebrow { color: rgba(253, 248, 239, .7); }
.contact .eyebrow::before { background: rgba(253, 248, 239, .65); }
.contact h2 {
  position: relative;
  margin: 18px 0 0;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.16;
  letter-spacing: -.03em;
  max-width: 760px;
}
.contact h2 em { font-style: normal; color: #ffd9cd; }
.contact p {
  position: relative;
  margin: 20px 0 0;
  max-width: 660px;
  color: rgba(253, 248, 239, .78);
  font-size: 15px;
}
.contact-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.contact .btn-primary { background: #fdf8ef; color: #8c2b19; box-shadow: none; }
.contact .btn-primary:hover { background: #fff; }
.contact .btn-ghost { border-color: rgba(253, 248, 239, .4); color: #fdf8ef; background: transparent; }
.contact .btn-ghost:hover { background: rgba(253, 248, 239, .12); border-color: #fdf8ef; }
.contact-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(253, 248, 239, .22);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: rgba(253, 248, 239, .75);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0 44px;
  font-size: 12px;
  color: var(--muted);
}
.footer .f-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a:hover { color: var(--accent); }

/* =========================================================
   Reveal animation
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .nav, .strip, .footer { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
  .hero { min-height: 0 !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .hero-visual { max-width: 640px; }
  .hero { padding-top: calc(var(--nav-h) + 64px); }
  .hero-stats { max-width: 640px; }
  .hero-side-note { display: none; }
  .project { grid-template-columns: 1fr; gap: 36px; }
  .project:nth-child(even) .project-media { order: 0; }
  .project-media { max-width: 720px; }
  .method-steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3) { border-right: 0; }
  .step:nth-child(n+4) { border-top: 1px solid rgba(246, 242, 233, .12); }
  .resume-grid { grid-template-columns: 1fr; }
  .resume-side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .resume-side .side-download { grid-column: 1 / -1; }
  .resume-side .side-skills { border-top: 0; padding-top: 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-head .head-note { text-align: left; max-width: 520px; }
}

@media (max-width: 760px) {
  .container, .nav-inner { width: min(100% - 32px, var(--maxw)); }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 16px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
    box-shadow: 0 30px 40px -30px rgba(21, 24, 29, .35);
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; font-size: 15px; }
  .nav-links a.is-active::after { display: none; }
  .nav-links a.is-active { background: var(--paper-2); }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero { padding-top: calc(var(--nav-h) + 52px); padding-bottom: 56px; }
  .hero-title { font-size: clamp(52px, 17vw, 76px); }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .hero-visual { padding-bottom: 40px; }
  .float-card.balloon { width: 56%; left: -12px; bottom: -10px; }
  .float-card.badge { right: -6px; top: -16px; }

  .section-head { padding-top: 68px; }
  .project { padding: 54px 0; }
  .project-metrics { gap: 14px 22px; }
  .project-metrics div { flex: 1 1 40%; }

  .method { padding: 32px 24px; margin-inline: -4px; }
  .method-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .method .section-lede { max-width: 100%; }
  .method-steps { grid-template-columns: 1fr; margin-top: 28px; }
  .media-stack .small-shot { right: -4px; }
  .step { border-right: 0; border-top: 1px solid rgba(246, 242, 233, .12); padding: 20px 0 14px; }
  .step:first-child { border-top: 0; }

  .resume-side { grid-template-columns: 1fr; }
  .resume-side .side-skills { border-top: 1px solid var(--line); padding-top: 18px; }
  .job-head { flex-direction: column; gap: 2px; }
  .job-head .period { padding-top: 0; }
  .skill-row { grid-template-columns: 1fr; gap: 4px; }
  .edu-head { flex-direction: column; gap: 2px; }

  .contact { padding: 36px 24px; margin-inline: -4px; }
  .contact-meta { gap: 8px 20px; }
  .footer { padding-bottom: 34px; }
}

@media (max-width: 420px) {
  .btn { width: 100%; justify-content: center; }
  .hero-actions { gap: 10px; }
  .float-card.badge { display: none; }
}
