@charset "UTF-8";

:root {
  --bg: #f5f3ed;
  --surface: #fffefa;
  --surface-2: #ebe8de;
  --surface-3: #e2e6dc;
  --ink: #17231c;
  --muted: #6d756f;
  --line: rgba(23, 35, 28, 0.13);
  --accent: #d66b42;
  --accent-soft: #f0d3c3;
  --green: #274638;
  --green-bright: #8eae91;
  --brand-bg: #274638;
  --brand-text: #f7f5ef;
  --blue: #6c8b9a;
  --shadow: 0 24px 65px rgba(27, 37, 30, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --serif: "Songti SC", "STSong", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --max: 1180px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #111713;
  --surface: #18201a;
  --surface-2: #222b24;
  --surface-3: #273329;
  --ink: #f1f1e9;
  --muted: #a3aaa3;
  --line: rgba(241, 241, 233, 0.13);
  --accent: #ed8a65;
  --accent-soft: #493126;
  --green: #b5cbb7;
  --green-bright: #9bb89f;
  --brand-bg: #17281f;
  --brand-text: #f3f4ed;
  --blue: #8eaab7;
  --shadow: 0 24px 65px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
.section-shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section-block { padding-top: 112px; }
.section { padding-top: 118px; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); transform: translateY(-180%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
.page-noise { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; border-bottom: 1px solid transparent; transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease; }
.site-header.scrolled { border-color: var(--line); background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(18px); }
.nav-shell { width: min(calc(100% - 48px), var(--max)); height: 82px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 11px; background: var(--ink); color: var(--bg); font-family: var(--serif); font-size: 20px; font-style: italic; }
.brand-copy strong, .brand-copy small { display: block; line-height: 1.15; }
.brand-copy strong { font-family: var(--serif); font-size: 17px; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.main-nav { position: absolute; left: 50%; display: flex; gap: 28px; transform: translateX(-50%); }
.nav-link { position: relative; padding: 8px 0; color: var(--muted); font-size: 13px; transition: color .18s ease; }
.nav-link::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: translateX(-50%); transition: width .18s ease; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { width: 16px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .menu-toggle { display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: background-color .18s ease, transform .18s ease; }
.theme-toggle:hover, .menu-toggle:hover { background: var(--surface-2); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun-icon, html[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
html[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
.nav-cta { display: inline-flex; height: 40px; align-items: center; gap: 8px; padding: 0 17px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; }
.nav-cta span { color: var(--accent); }
.menu-toggle { display: none; }
.menu-toggle span { grid-area: 1 / 1; width: 18px; height: 1.5px; background: currentColor; transition: transform .18s ease; }
.menu-toggle span:first-child { transform: translateY(-3px); }
.menu-toggle span:last-child { transform: translateY(3px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.hero { min-height: 840px; display: grid; grid-template-columns: 1.16fr .84fr; align-items: center; gap: 76px; padding-top: 122px; }
.hero-simple { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .7fr); align-items: center; gap: 64px; min-height: 760px; padding-top: 180px; padding-bottom: 100px; }
.hero-simple .hero-copy { max-width: none; }
.hero-simple .hero-kicker { margin-bottom: 22px; }

.blog-author-card { position: relative; overflow: hidden; padding: 29px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.blog-author-card::before { content: ""; position: absolute; right: -80px; top: -90px; width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 38px color-mix(in srgb, var(--surface-2) 48%, transparent); }
.author-card-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.author-profile { position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; margin: 34px 0 22px; }
.author-avatar { display: grid; width: 64px; height: 64px; flex: 0 0 auto; place-items: center; border-radius: 20px; background: linear-gradient(145deg, var(--green-bright), var(--brand-bg)); color: #fff; font-family: var(--serif); font-size: 32px; font-style: italic; }
.author-profile strong, .author-profile small { display: block; }
.author-profile strong { font-family: var(--serif); font-size: 25px; font-weight: 500; }
.author-profile small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.author-bio { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.author-topics { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.author-topics span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); font-size: 9px; }
.author-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.author-stats div { text-align: center; }
.author-stats div + div { border-left: 1px solid var(--line); }
.author-stats strong, .author-stats span { display: block; }
.author-stats strong { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.author-stats span { color: var(--muted); font-size: 9px; }

.hero-copy { max-width: 720px; }
.availability { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 28px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 100px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--muted); font-size: 11px; }
.availability i, .panel-status i { width: 7px; height: 7px; border-radius: 50%; background: #57a56a; box-shadow: 0 0 0 4px rgba(87,165,106,.12); }
.hero-kicker, .eyebrow { margin-bottom: 18px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.hero-kicker span { color: var(--accent); }
.hero h1 { margin-bottom: 24px; font-family: var(--serif); font-size: clamp(48px, 5.4vw, 76px); font-weight: 500; line-height: 1.19; letter-spacing: -.045em; }
.hero h1 span { color: var(--accent); }
.hero-role { margin-bottom: 12px; color: var(--ink); font-family: var(--serif); font-size: 20px; }
.hero-summary { max-width: 650px; margin-bottom: 34px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; gap: 13px; }
.button { display: inline-flex; min-height: 51px; align-items: center; justify-content: center; gap: 13px; padding: 0 23px; border: 1px solid transparent; border-radius: 13px; font-size: 13px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--brand-bg); color: var(--brand-text); box-shadow: 0 15px 34px rgba(39,70,56,.17); }
.button-secondary { border-color: var(--line); background: var(--surface); }
.button span { color: var(--accent); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 36px; color: var(--muted); font-size: 11px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.hero-panel { position: relative; overflow: hidden; padding: 29px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); }
.hero-panel::before { content: ""; position: absolute; right: -90px; top: -90px; width: 230px; height: 230px; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 38px color-mix(in srgb, var(--surface-2) 50%, transparent); }
.panel-top { position: relative; z-index: 1; display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.panel-status { display: flex; align-items: center; gap: 8px; color: #548562; }
.profile-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; margin: 40px 0 35px; }
.profile-avatar { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 20px; background: linear-gradient(145deg, var(--green-bright), var(--brand-bg)); color: #fff; font-family: var(--serif); font-size: 34px; font-style: italic; }
.profile-head strong, .profile-head small { display: block; }
.profile-head strong { font-family: var(--serif); font-size: 25px; font-weight: 500; }
.profile-head small { color: var(--muted); font-size: 12px; }
.panel-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.panel-metrics div { padding: 20px 0; text-align: center; }
.panel-metrics div + div { border-left: 1px solid var(--line); }
.panel-metrics strong, .panel-metrics span { display: block; }
.panel-metrics strong { font-family: var(--serif); font-size: 25px; font-weight: 500; }
.panel-metrics span { color: var(--muted); font-size: 9px; }
.panel-summary { position: relative; z-index: 1; padding: 27px 0 23px; }
.panel-summary p { margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.panel-summary strong { font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.65; }
.panel-contact { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.panel-contact a { color: var(--accent); font-size: 12px; font-weight: 700; }
.panel-contact span { color: var(--muted); font-size: 9px; text-align: right; }

.capability-strip { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.strip-track { display: flex; width: max-content; align-items: center; gap: 28px; animation: marquee 36s linear infinite; }
.strip-track span { font-family: var(--serif); font-size: 16px; }
.strip-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 420px); align-items: end; gap: 55px; margin-bottom: 45px; }
.section-heading .eyebrow { margin-bottom: 13px; }
.section-heading h2 { margin-bottom: 0; font-family: var(--serif); font-size: clamp(36px, 4.2vw, 52px); font-weight: 500; line-height: 1.25; letter-spacing: -.035em; }
.section-intro { margin-bottom: 3px; color: var(--muted); font-size: 13px; line-height: 1.8; }

.featured-project { display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); box-shadow: 0 18px 55px rgba(27,37,30,.07); }
.project-visual { position: relative; min-height: 570px; overflow: hidden; background: #20352b; }
.visual-toolbar { display: flex; height: 44px; align-items: center; gap: 6px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.44); font-size: 9px; }
.visual-toolbar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.22); }
.visual-toolbar span { margin-left: 10px; }
.visual-dashboard { position: absolute; inset: 74px 0 -30px 0; display: grid; grid-template-columns: 72px 1fr; border-top: 1px solid rgba(255,255,255,.08); background: #edf0e9; transform: rotate(-1.5deg) scale(1.03); transform-origin: center top; }
.visual-sidebar { display: flex; flex-direction: column; gap: 15px; padding: 26px 17px; background: #dde3da; }
.visual-sidebar span { height: 6px; border-radius: 6px; background: #b8c5ba; }
.visual-sidebar span:nth-child(2) { width: 75%; background: #7d977f; }
.visual-content { padding: 24px; }
.visual-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.visual-head span { width: 145px; height: 12px; border-radius: 10px; background: #b9c5ba; }
.visual-head strong { width: 64px; height: 24px; border-radius: 7px; background: #d66b42; }
.visual-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.visual-cards i { height: 74px; border-radius: 11px; background: #fff; box-shadow: 0 6px 16px rgba(38,55,44,.06); }
.visual-cards i:nth-child(2) { background: #dfe7db; }
.visual-cards i:nth-child(3) { background: #f0d8cb; }
.visual-chart { display: flex; height: 190px; align-items: end; gap: 15px; margin-top: 16px; padding: 24px; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px rgba(38,55,44,.06); }
.visual-chart span { width: 100%; border-radius: 7px 7px 2px 2px; background: #79917d; }
.visual-chart span:nth-child(1) { height: 32%; }
.visual-chart span:nth-child(2) { height: 52%; }
.visual-chart span:nth-child(3) { height: 42%; }
.visual-chart span:nth-child(4) { height: 76%; background: #d66b42; }
.visual-chart span:nth-child(5) { height: 61%; }
.visual-chart span:nth-child(6) { height: 88%; }
.visual-chart span:nth-child(7) { height: 73%; }
.visual-note { position: absolute; right: 20px; top: 64px; z-index: 2; padding: 9px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 100px; background: rgba(25,40,31,.58); color: rgba(255,255,255,.78); font-size: 9px; backdrop-filter: blur(8px); }
.featured-copy { padding: 43px 42px; }
.project-topline, .project-card-top, .note-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.project-role { margin: 27px 0 8px; color: var(--accent); font-size: 11px; font-weight: 700; }
.featured-copy h3, .project-card h3, .note-card h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; }
.featured-copy h3 { margin-bottom: 16px; font-size: 31px; line-height: 1.35; }
.featured-copy > p:not(.project-role) { color: var(--muted); font-size: 13px; line-height: 1.85; }
.project-facts { display: grid; gap: 0; margin: 25px 0; border-block: 1px solid var(--line); }
.project-facts div { display: grid; grid-template-columns: 70px 1fr; gap: 13px; padding: 13px 0; }
.project-facts div + div { border-top: 1px solid var(--line); }
.project-facts span, .project-mini-block span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.project-facts strong { font-size: 11px; font-weight: 600; line-height: 1.65; }
.stack-row { display: flex; flex-wrap: wrap; gap: 7px; }
.stack-row span, .skill-tags span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); font-size: 9px; }
.detail-button, .text-button { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 11px; font-weight: 800; cursor: pointer; }
.detail-button { margin-top: 25px; }
.detail-button span, .text-button span { transition: transform .18s ease; }
.detail-button:hover span, .text-button:hover span { transform: translateX(4px); }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 24px; }
.project-card { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); transition: transform .22s ease, box-shadow .22s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-card-top strong { color: var(--accent); font-family: var(--serif); font-size: 20px; font-style: italic; }
.project-card .project-role { margin: 24px 0 8px; }
.project-card h3 { margin-bottom: 13px; font-size: 25px; line-height: 1.42; }
.project-card > p:not(.project-role) { min-height: 66px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.project-mini-block { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.project-mini-block p { margin: 6px 0 0; font-size: 11px; line-height: 1.65; }
.project-card .stack-row { margin: 18px 0; }
.project-card .text-button { margin-top: 3px; }

.experience-section { margin-top: 118px; padding: 100px 0; background: var(--surface-2); }
.experience-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: 55px; align-items: start; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 24px; }
.timeline-item + .timeline-item { margin-top: 32px; }
.timeline-dot { position: relative; z-index: 1; display: grid; width: 56px; height: 56px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.timeline-dot span { color: var(--accent); font-family: var(--serif); font-size: 13px; font-style: italic; }
.timeline-card { padding: 28px 30px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); }
.timeline-card > p:first-child { margin-bottom: 13px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.timeline-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.timeline-title h3 { margin-bottom: 0; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.timeline-title span { flex: 0 0 auto; padding: 6px 10px; border-radius: 100px; background: var(--surface-2); color: var(--muted); font-size: 9px; }
.timeline-summary { margin: 14px 0; color: var(--muted); font-size: 12px; }
.timeline-card ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.timeline-card li { position: relative; padding-left: 17px; font-size: 12px; }
.timeline-card li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.recruiter-card { position: sticky; top: 110px; padding: 30px; border-radius: 24px; background: var(--brand-bg); color: var(--brand-text); box-shadow: 0 20px 50px rgba(28,48,37,.18); }
.recruiter-label { color: rgba(255,255,255,.55); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.recruiter-card h3 { margin: 18px 0; font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.45; }
.recruiter-card ul { display: grid; gap: 13px; margin: 0 0 24px; padding: 0; list-style: none; }
.recruiter-card li { position: relative; padding-left: 18px; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.7; }
.recruiter-card li::before { content: "↗"; position: absolute; left: 0; color: #e9a68a; }
.recruiter-card a { display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.25); font-size: 11px; font-weight: 700; }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.skill-card { padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); transition: transform .22s ease, border-color .22s ease; }
.skill-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.skill-icon { display: grid; width: 48px; height: 48px; margin-bottom: 24px; place-items: center; border-radius: 15px; background: var(--surface-2); color: var(--accent); font-family: var(--serif); font-size: 17px; font-style: italic; }
.skill-card h3 { margin-bottom: 10px; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.skill-card p { color: var(--muted); font-size: 12px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }

.notes-section { margin-top: 118px; padding: 100px 0 110px; background: var(--surface-2); }
.note-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.note-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { padding: 8px 15px; border: 1px solid var(--line); border-radius: 100px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.filter-chip:hover, .filter-chip.active { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.search-box { display: flex; width: 300px; height: 44px; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.search-box svg { width: 17px; height: 17px; color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.notes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.note-card { display: grid; grid-template-columns: 150px 1fr; min-height: 290px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); animation: cardIn .35s both; transition: transform .22s ease, box-shadow .22s ease; }
.note-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.note-cover { position: relative; overflow: hidden; background: linear-gradient(145deg, #395648, #759080); }
.note-cover::before { content: ""; position: absolute; right: -55px; top: -50px; width: 170px; height: 170px; border: 25px solid rgba(255,255,255,.12); border-radius: 50%; }
.note-cover::after { content: ""; position: absolute; left: -25px; bottom: 20px; width: 90px; height: 90px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
.note-cover span { position: absolute; left: 18px; top: 18px; z-index: 1; color: rgba(255,255,255,.86); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.note-cover strong { position: absolute; left: 18px; bottom: 12px; z-index: 1; color: rgba(255,255,255,.86); font-family: var(--serif); font-size: 54px; font-style: italic; font-weight: 400; }
.note-cover.has-image { background-position: center; background-size: cover; }
.note-cover.has-image::before { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; background: linear-gradient(180deg, rgba(18,27,21,.15), rgba(18,27,21,.72)); box-shadow: none; }
.note-cover.has-image::after { display: none; }
.cover-2 { background: linear-gradient(145deg, #7a4c3d, #c37b5d); }
.cover-3 { background: linear-gradient(145deg, #4a6070, #7e9cab); }
.cover-4 { background: linear-gradient(145deg, #6d6536, #a99556); }
.note-body { display: flex; flex-direction: column; padding: 25px; }
.note-card h3 { margin: 18px 0 10px; font-size: 21px; line-height: 1.5; }
.note-card p { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.note-body .text-button { margin-top: auto; }
.empty-state { padding: 60px; border: 1px dashed var(--line); border-radius: 20px; text-align: center; }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.empty-state span { color: var(--muted); font-size: 11px; }

.strength-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strength-card { padding: 27px 24px; border-top: 2px solid var(--ink); }
.strength-card > span { color: var(--accent); font-family: var(--serif); font-size: 12px; font-style: italic; }
.strength-card h3 { margin: 24px 0 12px; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.5; }
.strength-card p { margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.85; }

.contact-section { margin-top: 100px; padding: 100px 0; background: var(--brand-bg); color: var(--brand-text); }
.contact-inner { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 75px; }
.eyebrow.light { color: rgba(255,255,255,.5); }
.contact-inner h2 { margin-bottom: 20px; font-family: var(--serif); font-size: clamp(38px, 4.6vw, 59px); font-weight: 500; line-height: 1.3; letter-spacing: -.04em; }
.contact-inner > div:first-child > p:last-child { max-width: 650px; margin-bottom: 0; color: rgba(255,255,255,.62); font-size: 13px; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; }
.contact-primary { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.25); font-family: var(--serif); font-size: 20px; }
.contact-primary span { color: #eea384; }
.contact-secondary { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 20px 0 25px; color: rgba(255,255,255,.68); font-size: 10px; }
.contact-secondary a, .contact-secondary span { border-bottom: 1px solid rgba(255,255,255,.18); }
.contact-actions small { color: rgba(255,255,255,.4); font-size: 9px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 140px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner > div { display: flex; align-items: center; gap: 13px; }
.footer-inner strong { font-family: var(--serif); font-size: 15px; font-weight: 500; }
.footer-inner p, .footer-inner > a { color: var(--muted); font-size: 10px; }
.footer-inner p { margin: 0; }

.modal { position: fixed; inset: 0; z-index: 500; display: grid; padding: 24px; place-items: center; visibility: hidden; opacity: 0; transition: opacity .22s ease, visibility .22s ease; }
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,15,12,.72); backdrop-filter: blur(6px); }
.modal-panel { position: relative; width: min(780px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.3); transform: translateY(18px) scale(.985); transition: transform .25s ease; }
.modal-panel.markdown-mode { width: min(980px, 100%); }
.modal.open .modal-panel { transform: translateY(0) scale(1); }
.modal-close { position: sticky; top: 16px; z-index: 4; float: right; width: 40px; height: 40px; margin: 16px 16px -56px auto; padding: 0; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(19,28,22,.45); color: #fff; font-size: 23px; cursor: pointer; backdrop-filter: blur(10px); }
.modal-hero { position: relative; height: 190px; overflow: hidden; background: linear-gradient(145deg, #29473a, #7b9c83); }
.modal-hero::before { content: ""; position: absolute; right: -50px; top: -60px; width: 260px; height: 260px; border: 40px solid rgba(255,255,255,.12); border-radius: 50%; }
.modal-hero span { position: absolute; left: 35px; top: 30px; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.modal-hero strong { position: absolute; left: 34px; bottom: 10px; color: rgba(255,255,255,.8); font-family: var(--serif); font-size: 70px; font-style: italic; font-weight: 400; }
.modal-content { padding: 40px 58px 55px; }
.modal-meta { margin-bottom: 12px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.modal-content h2 { margin-bottom: 18px; font-family: var(--serif); font-size: clamp(32px, 4.7vw, 45px); font-weight: 500; line-height: 1.3; letter-spacing: -.035em; }
.modal-lead { margin-bottom: 35px; color: var(--muted); font-family: var(--serif); font-size: 17px; line-height: 1.9; }
.modal-sections { display: grid; gap: 31px; }
.modal-sections section { padding-top: 25px; border-top: 1px solid var(--line); }
.modal-sections h3 { margin-bottom: 13px; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.modal-sections p, .modal-sections li { color: var(--muted); font-size: 13px; line-height: 1.95; }
.modal-sections ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.modal-sections li { position: relative; padding-left: 17px; }
.modal-sections li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.project-markdown { color: var(--ink); }
.project-markdown h1 { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(34px, 5vw, 50px); font-weight: 500; line-height: 1.25; letter-spacing: -.035em; }
.project-markdown h2 { margin: 46px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.4; }
.project-markdown h3 { margin: 32px 0 12px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.project-markdown h4 { margin: 24px 0 10px; font-size: 15px; }
.project-markdown p,
.project-markdown li { color: var(--muted); font-size: 13px; line-height: 1.95; }
.project-markdown ul,
.project-markdown ol { display: grid; gap: 8px; margin: 12px 0 22px; padding-left: 22px; }
.project-markdown li::marker { color: var(--accent); }
.project-markdown blockquote { margin: 22px 0; padding: 16px 20px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--surface-2); }
.project-markdown blockquote p { margin: 0; color: var(--ink); }
.project-markdown figure { margin: 26px 0; }
.project-markdown img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.project-markdown video { display: block; width: 100%; max-height: 620px; margin: 26px 0; border: 1px solid var(--line); border-radius: 16px; background: #0d130f; object-fit: contain; }
.project-markdown code { padding: 2px 5px; border-radius: 5px; background: var(--surface-2); color: var(--accent); font-size: .9em; }
.project-markdown pre { overflow-x: auto; margin: 18px 0 24px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #17231c; color: #edf1e9; }
.project-markdown pre code { padding: 0; background: transparent; color: inherit; font-size: 12px; line-height: 1.7; }
.project-markdown hr { margin: 36px 0; border: 0; border-top: 1px solid var(--line); }
.project-markdown a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.markdown-table-wrap { overflow-x: auto; margin: 18px 0 26px; border: 1px solid var(--line); border-radius: 14px; }
.project-markdown table { width: 100%; border-collapse: collapse; font-size: 12px; }
.project-markdown th,
.project-markdown td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.project-markdown th { background: var(--surface-2); color: var(--ink); font-weight: 700; }
.project-markdown tr:last-child td { border-bottom: 0; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 700; padding: 11px 17px; border-radius: 11px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); font-size: 11px; pointer-events: none; opacity: 0; transform: translate(-50%, 18px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .62s ease, transform .62s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 150px; padding-bottom: 85px; }
  .hero-copy { max-width: 780px; }
  .hero-panel, .blog-author-card { max-width: 620px; }
  .featured-project { grid-template-columns: 1fr; }
  .project-visual { min-height: 470px; }
  .experience-layout, .contact-inner { grid-template-columns: 1fr; }
  .recruiter-card { position: static; max-width: 620px; }
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .section-shell, .nav-shell { width: min(calc(100% - 32px), var(--max)); }
  .section, .section-block { padding-top: 82px; }
  .nav-shell { height: 72px; }
  .main-nav { position: fixed; left: 16px; right: 16px; top: 82px; display: grid; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity .18s ease, transform .18s ease; }
  .main-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-link { padding: 12px 14px; border-radius: 10px; }
  .nav-link::after { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: grid; }
  .hero { padding-top: 120px; padding-bottom: 55px; gap: 50px; }
  .hero h1 { font-size: clamp(43px, 12.7vw, 63px); }
  .hero-summary { font-size: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-panel, .blog-author-card { padding: 23px; border-radius: 24px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 30px; }
  .featured-project { border-radius: 23px; }
  .project-visual { min-height: 380px; }
  .visual-dashboard { inset: 66px -40px -30px 0; }
  .featured-copy { padding: 30px 25px; }
  .featured-copy h3 { font-size: 27px; }
  .project-grid, .skills-grid, .notes-grid { grid-template-columns: 1fr; }
  .experience-section, .notes-section { margin-top: 82px; padding: 76px 0; }
  .timeline-item { grid-template-columns: 42px 1fr; gap: 14px; }
  .timeline::before { left: 20px; }
  .timeline-dot { width: 42px; height: 42px; }
  .timeline-card { padding: 23px 21px; }
  .timeline-title { align-items: flex-start; flex-direction: column; gap: 8px; }
  .note-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .note-card { grid-template-columns: 112px 1fr; min-height: 300px; }
  .strength-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 78px 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 30px 0; }
  .footer-inner p { margin: 0; }
  .modal { padding: 12px; }
  .modal-panel { max-height: calc(100vh - 24px); border-radius: 22px; }
  .modal-close { top: 11px; margin: 11px 11px -51px auto; }
  .modal-content { padding: 30px 23px 42px; }
  .modal-hero { height: 165px; }
}

@media (max-width: 440px) {
  .brand-copy { display: none; }
  .availability { margin-bottom: 22px; }
  .hero h1 { font-size: 43px; }
  .hero-meta { gap: 8px 13px; }
  .hero-panel { margin-inline: -4px; }
  .panel-metrics strong { font-size: 21px; }
  .profile-head { margin: 28px 0; }
  .project-facts div { grid-template-columns: 1fr; gap: 4px; }
  .note-card { grid-template-columns: 1fr; }
  .note-cover { min-height: 105px; }
  .note-cover strong { font-size: 42px; bottom: -4px; }
  .note-body { min-height: 260px; }
}

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