:root {
  --canvas: #f4f4ee;
  --surface: #ffffff;
  --surface-soft: #e8ece6;
  --ink: #17201e;
  --ink-soft: #4e5b57;
  --muted: #74807c;
  --line: #d6ddd7;
  --accent: #087b70;
  --accent-deep: #075d56;
  --accent-soft: #d7ece7;
  --signal: #e5a93b;
  --signal-soft: #f8e8c7;
  --night: #12211f;
  --night-soft: #1b2e2b;
  --white: #f8faf7;
  --shadow: 0 22px 60px rgba(23, 32, 30, 0.09);
  --header-height: 78px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --shell: min(1180px, calc(100vw - 48px));
}

html[data-theme="dark"] {
  --canvas: #111816;
  --surface: #17211f;
  --surface-soft: #1c2926;
  --ink: #eff6f2;
  --ink-soft: #c0ccc7;
  --muted: #8fa09a;
  --line: #2d3b37;
  --accent: #72c8bc;
  --accent-deep: #9edbd2;
  --accent-soft: #1d3b36;
  --signal: #f0bd5b;
  --signal-soft: #42361f;
  --night: #0b1210;
  --night-soft: #14211e;
  --white: #f8faf7;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 240ms ease, color 240ms ease;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

i[data-lucide] {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

svg {
  stroke-width: 1.8;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  background: color-mix(in srgb, var(--canvas) 94%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(23, 32, 30, 0.04);
  backdrop-filter: blur(16px);
}

.header-shell {
  width: var(--shell);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: var(--canvas);
  border-radius: 50%;
  font-family: "Avenir Next", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 800;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  background: var(--surface);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-height) + 72px) 0 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 36vw;
  height: 100%;
  background: var(--surface-soft);
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
}

.hero-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-lines::before,
.hero-lines::after {
  content: "";
  position: absolute;
  background: var(--line);
  opacity: 0.65;
}

.hero-lines::before {
  top: 0;
  left: 11%;
  width: 1px;
  height: 100%;
}

.hero-lines::after {
  top: 42%;
  left: 0;
  width: 100%;
  height: 1px;
}

.hero-shell {
  width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 32px;
  padding: 7px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.availability-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.availability-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.55);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #91d7cd;
}

.hero h1 {
  margin: 0;
  font-size: clamp(74px, 10vw, 142px);
  font-weight: 850;
  line-height: 0.85;
  letter-spacing: 0.01em;
}

.hero-role {
  margin: 24px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.25;
}

.hero-intro {
  max-width: 610px;
  margin: 23px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 750;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--ink);
  color: var(--canvas);
}

.button-primary:hover {
  background: var(--accent);
  color: var(--white);
}

.button-secondary {
  background: transparent;
  border-color: var(--line);
}

.button-secondary:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  transition: color 180ms ease;
}

.hero-contact a:hover {
  color: var(--accent);
}

.portrait-stage {
  position: relative;
  width: min(100%, 470px);
  margin-left: auto;
  padding: 28px 0 0 28px;
}

.portrait-stage::before {
  content: "";
  position: absolute;
  top: 0;
  right: -22px;
  width: 72%;
  height: 78%;
  background: var(--accent);
}

.portrait-stage::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 52px;
  z-index: 3;
  width: 84px;
  height: 8px;
  background: var(--signal);
}

.portrait-frame {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: #d9ded8;
  box-shadow: var(--shadow);
}

.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 780 / 1134;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.portrait-year {
  position: absolute;
  top: 42%;
  left: -56px;
  z-index: 1;
  color: var(--accent-soft);
  font-size: clamp(84px, 9vw, 136px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

.portrait-year span {
  color: var(--signal);
  font-size: 0.42em;
}

.portrait-caption {
  position: relative;
  z-index: 4;
  display: flex;
  width: calc(100% - 34px);
  min-height: 88px;
  margin: -34px 0 0 auto;
  padding: 19px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--night);
  color: var(--white);
}

.portrait-caption span {
  color: #aac0ba;
  font-size: 12px;
}

.portrait-caption strong {
  font-size: 15px;
  text-align: right;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  transform: translateX(-50%) rotate(90deg);
  transform-origin: center;
}

.scroll-line {
  width: 44px;
  height: 1px;
  background: var(--line);
}

.section {
  padding: clamp(90px, 11vw, 150px) 0;
}

.section-tinted {
  background: var(--surface-soft);
}

.section-dark {
  background: var(--night);
  color: var(--white);
}

.section-shell,
.contact-shell,
.snapshot .section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 34px;
  color: var(--muted);
}

.section-kicker::after {
  content: "";
  width: 68px;
  height: 1px;
  background: var(--line);
}

.section-kicker span {
  color: var(--accent);
  font-family: "Avenir Next", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.section-kicker p {
  margin: 0;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.section-kicker-light {
  color: #88a09a;
}

.section-kicker-light::after {
  background: #314540;
}

.section-heading {
  max-width: 740px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 760;
  line-height: 1.13;
}

.section-heading-row {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: 56px;
  margin-bottom: 64px;
}

.section-heading-row > p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.section-dark .section-heading-row > p {
  color: #a9bdb7;
}

.snapshot {
  position: relative;
  padding: 76px 0;
  background: var(--night);
  color: var(--white);
  overflow: hidden;
}

.snapshot::after {
  content: "RESULTS";
  position: absolute;
  top: -40px;
  right: -20px;
  color: rgba(255, 255, 255, 0.03);
  font-size: clamp(100px, 18vw, 260px);
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.snapshot .section-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 64px;
}

.snapshot-heading h2 {
  max-width: 350px;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.22;
}

.snapshot-grid {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.snapshot-item {
  padding: 12px 22px;
  border-left: 1px solid #344641;
}

.snapshot-item dt {
  color: #f7d38d;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
}

.snapshot-item dt span {
  margin-left: 3px;
  font-size: 0.48em;
}

.snapshot-item dd {
  margin: 9px 0 0;
  color: #acc0ba;
  font-size: 13px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(56px, 9vw, 132px);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.9;
}

.principles {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.principles li {
  min-height: 196px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.principles li > i {
  width: 24px;
  height: 24px;
  margin-bottom: 32px;
  color: var(--accent);
}

.principles strong {
  display: block;
  font-size: 17px;
}

.principles span {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 176px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 50px;
  padding: 0 0 68px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 4px;
  padding-right: 18px;
  text-align: right;
}

.timeline-meta::after {
  content: "";
  position: absolute;
  top: 13px;
  right: -6px;
  z-index: 2;
  width: 12px;
  height: 12px;
  background: var(--canvas);
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.section-tinted .timeline-meta::after {
  background: var(--surface-soft);
}

.timeline-meta span {
  font-size: 14px;
  font-weight: 760;
}

.timeline-meta small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.timeline-content {
  min-width: 0;
}

.timeline-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.timeline-title h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
}

.timeline-title p {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.role-tag {
  flex: 0 0 auto;
  padding: 5px 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.section-dark .role-tag {
  color: var(--accent-deep);
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.detail-list li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--signal);
  border-radius: 50%;
}

.project-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -28px 0 38px;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--canvas);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 520px;
  padding: 34px;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, opacity 180ms ease;
}

.project-card:first-child {
  grid-column: 1 / -1;
  min-height: 0;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.project-card.is-hidden {
  display: none;
}

.project-index {
  position: absolute;
  top: 24px;
  right: 28px;
  color: var(--line);
  font-size: 42px;
  font-weight: 850;
  line-height: 1;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-right: 52px;
}

.project-header > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.project-type {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.project-header h3 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.25;
}

.project-summary {
  max-width: 880px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  line-height: 1.9;
}

.project-highlights {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.project-highlights p {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.project-highlights span {
  color: var(--ink);
  font-weight: 750;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 28px;
}

.tech-list span {
  padding: 5px 9px;
  background: var(--surface-soft);
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}

.section-dark .tech-list span {
  background: var(--night-soft);
  color: #b6c8c3;
}

.filter-empty {
  padding: 30px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #344641;
  border-left: 1px solid #344641;
}

.skill-card {
  min-height: 272px;
  padding: 30px;
  border-right: 1px solid #344641;
  border-bottom: 1px solid #344641;
  transition: background-color 200ms ease;
}

.skill-card:hover {
  background: var(--night-soft);
}

.skill-card > i {
  width: 26px;
  height: 26px;
  color: #8fd7cc;
}

.skill-card p {
  margin: 44px 0 9px;
  color: #89a59e;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.skill-card h3 {
  margin: 0;
  color: var(--white);
  font-size: 20px;
  line-height: 1.5;
}

.skill-card span {
  display: block;
  margin-top: 17px;
  color: #a7bbb5;
  font-size: 13px;
  line-height: 1.8;
}

.education-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1fr);
  gap: 56px 100px;
}

.education-layout .section-heading {
  grid-row: span 2;
}

.education-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.education-item {
  display: flex;
  min-height: 130px;
  padding: 25px 26px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
}

.education-item span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}

.education-item h3 {
  margin: 6px 0 0;
  font-size: 21px;
}

.education-item p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.education-item > i {
  width: 32px;
  height: 32px;
  color: var(--muted);
}

.facts-panel {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.facts-panel > div {
  padding: 21px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts-panel dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.facts-panel dd {
  margin: 7px 0 0;
  font-size: 16px;
  font-weight: 750;
}

.contact-section {
  position: relative;
  padding: clamp(90px, 10vw, 136px) 0;
  background: var(--accent-deep);
  color: var(--white);
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 100%;
  background: rgba(0, 0, 0, 0.08);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
}

.contact-shell {
  position: relative;
  z-index: 1;
}

.contact-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: 64px;
}

.contact-title-row h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.12;
}

.contact-title-row > p {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-actions {
  display: grid;
  margin-top: 60px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-link {
  display: grid;
  min-height: 126px;
  padding: 24px;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 15px;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  cursor: pointer;
  text-align: left;
  transition: background-color 180ms ease;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.contact-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.contact-link small {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-link strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.contact-footer {
  display: flex;
  margin-top: 74px;
  padding-top: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.contact-footer p {
  margin: 0;
}

.contact-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1), transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  :root {
    --shell: min(100% - 40px, 980px);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 60px);
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
    gap: 44px;
  }

  .hero h1 {
    font-size: clamp(72px, 10vw, 110px);
  }

  .portrait-stage {
    max-width: 390px;
  }

  .portrait-year {
    left: -34px;
  }

  .snapshot .section-shell {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .snapshot-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .about-layout {
    gap: 56px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principles li {
    min-height: 0;
  }

  .principles li > i {
    margin-bottom: 18px;
  }

  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .contact-link {
    min-height: 104px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
    --shell: calc(100% - 32px);
  }

  .brand-copy {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    display: flex;
    width: 100%;
    max-height: 0;
    padding: 0 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--canvas);
    border-bottom: 1px solid transparent;
    opacity: 0;
    transition: max-height 260ms ease, padding 260ms ease, opacity 180ms ease, border-color 180ms ease;
  }

  body.nav-open .main-nav {
    max-height: calc(100svh - var(--header-height));
    padding-top: 14px;
    padding-bottom: 28px;
    border-bottom-color: var(--line);
    opacity: 1;
  }

  .main-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    padding-bottom: 88px;
  }

  .hero::before {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 43%;
    clip-path: none;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(70px, 23vw, 110px);
  }

  .hero-role {
    margin-top: 18px;
  }

  .portrait-stage {
    width: min(86vw, 430px);
    margin: 0 auto;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading-row,
  .about-layout,
  .contact-title-row {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-heading-row {
    margin-bottom: 44px;
  }

  .timeline::before {
    left: 6px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 0 56px 30px;
  }

  .timeline-meta {
    padding-right: 0;
    text-align: left;
  }

  .timeline-meta::after {
    top: 11px;
    right: auto;
    left: -30px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card:first-child {
    grid-column: auto;
    min-height: 0;
    padding: 28px 24px;
  }

  .project-index {
    top: 18px;
    right: 20px;
    font-size: 34px;
  }

  .project-header {
    padding-right: 36px;
  }

  .education-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .education-layout .section-heading {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .availability {
    margin-bottom: 24px;
    font-size: 12px;
  }

  .hero-intro {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-contact {
    display: grid;
    gap: 12px;
  }

  .portrait-stage {
    width: calc(100% - 20px);
    padding-left: 16px;
  }

  .portrait-stage::before {
    right: -8px;
  }

  .portrait-year {
    left: -22px;
    font-size: 80px;
  }

  .portrait-caption {
    width: calc(100% - 20px);
    flex-direction: column;
    align-items: flex-start;
  }

  .portrait-caption strong {
    text-align: left;
  }

  .snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 0;
    overflow: visible;
    background: #344641;
  }

  .snapshot-item {
    min-height: 118px;
    padding: 22px;
    background: var(--night);
    border: 0;
  }

  .snapshot-item:nth-child(odd) {
    border-right: 1px solid #344641;
  }

  .principles {
    gap: 10px;
  }

  .timeline-title {
    flex-direction: column;
    gap: 13px;
  }

  .project-toolbar {
    margin-top: -12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .project-header {
    flex-direction: column;
    gap: 13px;
  }

  .project-highlights p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: 220px;
  }

  .education-item {
    align-items: flex-start;
  }

  .facts-panel {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  html {
    --canvas: #ffffff;
    --surface: #ffffff;
    --surface-soft: #ffffff;
    --ink: #111111;
    --ink-soft: #333333;
    --muted: #666666;
    --line: #cccccc;
    --accent: #087b70;
    --accent-deep: #075d56;
    --accent-soft: #e5f2ef;
    color-scheme: light;
  }

  html.js-ready .reveal {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .site-header,
  .hero-actions,
  .scroll-cue,
  .contact-actions,
  .toast,
  .project-toolbar {
    display: none !important;
  }

  body {
    transition: none !important;
    background: #ffffff;
    color: #111111;
  }

  .hero,
  .section,
  .snapshot,
  .contact-section {
    min-height: 0;
    padding: 28px 0;
    background: #ffffff;
    color: #111111;
  }

  .hero-shell,
  .section-shell,
  .contact-shell {
    width: 100%;
  }

  .hero-shell,
  .about-layout,
  .education-layout,
  .contact-title-row {
    display: block;
  }

  .portrait-stage {
    display: none;
  }

  .project-card,
  .skill-card,
  .principles li,
  .education-item {
    break-inside: avoid;
  }

  .skill-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
