:root {
  --ink: #181817;
  --paper: #f3f1eb;
  --surface: #fffdf8;
  --soft: #e7e3da;
  --sage: #d6ddd4;
  --muted: #6b6962;
  --coral: #d78391;
  --blue: #637b70;
  --yellow: #e8c85f;
  --green: #8fa27f;
  --purple: #9e443f;
  --line: 3px solid var(--ink);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

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

:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.header-shell {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0;
  color: var(--surface);
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 253, 248, 0.18);
  pointer-events: auto;
}

.nav {
  display: grid;
  width: min(calc(100% - 48px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.nav__identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav__brand {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--coral);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 950;
}

.nav__name {
  color: var(--surface);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
}

.nav__links a {
  position: relative;
  font-size: 14px;
  font-weight: 800;
}

.nav__links a::after {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}

.nav__contact {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.nav__contact span:first-child {
  color: var(--ink);
  font-size: 18px;
}

.nav__menu {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  width: min(calc(100% - 48px), var(--max));
  height: 92svh;
  min-height: 730px;
  max-height: 900px;
  margin: 0 auto;
  padding: 148px 0 70px;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  align-items: center;
  gap: 36px;
  overflow: visible;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: 64px;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero__role {
  display: block;
  margin-top: 12px;
  font-size: 48px;
  line-height: 1.24;
}

.highlight {
  display: inline;
  padding: 0 10px 4px;
  color: var(--surface);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.highlight--coral {
  background: var(--coral);
}

.highlight--blue {
  background: var(--blue);
}

.hero__intro {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.hero__slogans {
  display: grid;
  max-width: 760px;
  margin-top: 26px;
  gap: 13px;
}

.hero__slogans p {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
}

.hero__slogans span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--soft);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 10px;
}

.hero__actions,
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-width: 160px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 10px 18px;
  border: 3px solid var(--ink);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 5px 0 var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  box-shadow: 1px 2px 0 var(--ink);
  transform: translate(3px, 3px);
}

.button--black {
  color: var(--surface);
  background: var(--ink);
  box-shadow: 4px 5px 0 var(--coral);
}

.button--outline,
.button--white {
  color: var(--ink);
  background: var(--paper);
}

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

.portrait {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  margin: 0;
  align-items: flex-end;
  justify-content: center;
}

.portrait__backdrop {
  position: absolute;
  bottom: 42px;
  width: min(100%, 490px);
  aspect-ratio: 1;
  background: var(--yellow);
  border: 4px solid var(--ink);
  border-radius: 50%;
  box-shadow: 8px 9px 0 var(--ink);
  transform: translate(14px, 14px);
  animation: ring-in 850ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.portrait img {
  position: absolute;
  z-index: 1;
  bottom: 60px;
  width: min(92%, 450px);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 42%;
  background: var(--surface);
  border: 4px solid var(--ink);
  border-radius: 50%;
  animation: portrait-in 900ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.portrait:hover img {
  animation: portrait-wave 620ms ease-in-out;
}

.portrait figcaption {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 950;
  animation: label-in 650ms 500ms ease both;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--green);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.hero__accent {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  border: 3px solid var(--ink);
  font-size: 11px;
  font-weight: 950;
  pointer-events: none;
}

.hero__accent--blue {
  top: 92px;
  right: -2px;
  width: 112px;
  height: 38px;
  background: var(--blue);
  transform: rotate(7deg);
  animation: accent-float 7s 1.1s ease-in-out infinite;
}

.hero__accent--coral {
  right: auto;
  bottom: 44px;
  left: 0;
  width: 58px;
  height: 58px;
  background: var(--coral);
  border-radius: 50%;
  transform: rotate(-8deg);
  animation: accent-float-small 6s 1.35s ease-in-out infinite;
}

.hero__content > * {
  animation: text-in 680ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__content > .eyebrow { animation-delay: 80ms; }
.hero__content > h1 { animation-delay: 160ms; }
.hero__content > .hero__intro { animation-delay: 260ms; }
.hero__content > .hero__slogans { animation-delay: 360ms; }
.hero__content > .hero__actions { animation-delay: 460ms; }

@keyframes text-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ring-in {
  from { opacity: 0; transform: translate(14px, 14px) scale(0.9); }
  to { opacity: 1; transform: translate(14px, 14px) scale(1); }
}

@keyframes portrait-in {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes portrait-wave {
  0%, 100% { transform: rotate(0deg) translate(0, 0); }
  18% { transform: rotate(-1.3deg) translate(-4px, 2px); }
  36% { transform: rotate(1.3deg) translate(4px, -1px); }
  54% { transform: rotate(-0.8deg) translate(-3px, 1px); }
  72% { transform: rotate(0.7deg) translate(2px, 0); }
}

@keyframes label-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes accent-float {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(-7px); }
}

@keyframes accent-float-small {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(6px); }
}

.ticker {
  display: flex;
  min-height: 108px;
  padding: 20px max(24px, calc((100vw - var(--max)) / 2));
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  color: var(--surface);
  background: var(--ink);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
}

.ticker__title {
  flex: 0 0 auto;
  color: var(--yellow);
  font-size: 20px;
  white-space: nowrap;
}

.ticker__skills {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ticker__skills span {
  padding: 10px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--surface);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.ticker__skills span:nth-of-type(1) {
  color: var(--ink);
  background: var(--coral);
  border-color: var(--coral);
}

.ticker__skills span:nth-of-type(2) {
  color: var(--surface);
  background: var(--blue);
  border-color: var(--blue);
}

.ticker__skills span:nth-of-type(3) {
  background: var(--yellow);
  border-color: var(--yellow);
}

.ticker__skills span:nth-of-type(4) {
  color: var(--surface);
  background: var(--purple);
  border-color: var(--purple);
}

.ticker__skills span:nth-of-type(5) {
  color: var(--ink);
  background: var(--sage);
  border-color: var(--sage);
}

.ticker__skills i {
  color: var(--coral);
  font-style: normal;
  font-size: 10px;
}

.section {
  padding: 110px max(24px, calc((100vw - var(--max)) / 2));
  scroll-margin-top: 100px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 50px;
}

.section-heading--row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.section-heading h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading--row > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.about {
  background: var(--sage);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 74px;
}

.identity-card {
  overflow: hidden;
  background: var(--surface);
  border: var(--line);
  border-radius: 8px;
  box-shadow: 10px 12px 0 var(--ink);
}

.identity-card__top {
  display: flex;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  background: var(--coral);
  border-bottom: 3px solid var(--ink);
  font-size: 11px;
  font-weight: 950;
}

.identity-card dl {
  margin: 0;
  padding: 8px 22px;
}

.identity-card dl > div {
  display: grid;
  min-height: 58px;
  grid-template-columns: 88px 1fr;
  align-items: center;
  border-bottom: 2px solid var(--ink);
}

.identity-card dl > div:last-child {
  border-bottom: 0;
}

.identity-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.identity-card dd {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.identity-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 16px 20px;
  background: var(--yellow);
  border-top: 3px solid var(--ink);
}

.identity-card__footer strong {
  margin-right: 4px;
  font-size: 11px;
  font-weight: 950;
}

.identity-card__footer span,
.project-card__tags span,
.status {
  padding: 4px 8px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
}

.about__copy h3 {
  margin: 0 0 28px;
  font-size: 42px;
  line-height: 1.35;
  letter-spacing: 0;
}

.about__copy > p {
  max-width: 700px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
}

.about__stats {
  display: grid;
  margin: 38px 0 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 3px solid var(--ink);
}

.about__stats div {
  padding: 22px 18px 0 0;
  border-right: 2px solid var(--ink);
}

.about__stats div:not(:first-child) {
  padding-left: 18px;
}

.about__stats div:last-child {
  border-right: 0;
}

.about__stats dt {
  font-size: 25px;
  font-weight: 950;
}

.about__stats dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.now {
  background: var(--paper);
}

.now__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.now-card {
  position: relative;
  display: flex;
  min-height: 310px;
  padding: 28px;
  overflow: hidden;
  border: var(--line);
  border-radius: 8px;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 7px 8px 0 var(--ink);
}

.now-card--coral {
  background: var(--coral);
}

.now-card--blue {
  color: var(--surface);
  background: var(--blue);
}

.now-card--yellow {
  background: var(--yellow);
}

.now-card__number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 70px;
  font-weight: 950;
  line-height: 1;
  opacity: 0.16;
}

.now-card p {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 900;
}

.now-card h3 {
  margin: 0;
  font-size: 27px;
  line-height: 1.3;
}

.now-card__meta {
  margin-top: 20px;
  padding-top: 13px;
  border-top: 2px solid currentColor;
  font-size: 10px;
  font-weight: 800;
}

.timeline {
  color: var(--surface);
  background: var(--ink);
  overflow-x: clip;
}

.timeline .eyebrow {
  color: var(--yellow);
}

.timeline .section-heading--row > p {
  color: #b9b9b9;
}

.timeline__track {
  position: relative;
  --timeline-progress: 0%;
}

.timeline__track::before {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 218px;
  width: 3px;
  background: #4b4b4b;
  content: "";
}

.timeline__flow {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 218px;
  width: 3px;
  height: var(--timeline-progress);
  background: linear-gradient(180deg, var(--green), var(--yellow) 48%, var(--coral));
  background-size: 100% 150px;
  box-shadow: 0 0 18px rgba(232, 200, 95, 0.65);
  animation: timeline-stream 2.4s linear infinite;
  transition: height 120ms linear;
}

.timeline__runner {
  position: absolute;
  z-index: 4;
  top: var(--timeline-progress);
  left: 219.5px;
  width: 14px;
  height: 14px;
  background: var(--coral);
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(215, 131, 145, 0.18), 0 0 22px rgba(215, 131, 145, 0.75);
  opacity: 0.3;
  transform: translate(-50%, -50%);
  transition: top 120ms linear, opacity 180ms ease;
}

.timeline__track.is-in-view .timeline__runner {
  opacity: 1;
}

.timeline__list {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline__list li {
  position: relative;
  display: grid;
  min-height: 132px;
  padding: 18px 0;
  grid-template-columns: 190px 58px 1fr;
  align-items: center;
  border-top: 1px solid #4b4b4b;
  transition: opacity 440ms ease, transform 440ms ease, background-color 180ms ease;
}

.timeline__current {
  background: linear-gradient(90deg, rgba(99, 123, 112, 0.17), transparent 72%);
}

.timeline__current::after {
  position: absolute;
  top: 18px;
  right: 0;
  padding: 5px 9px 4px;
  color: var(--ink);
  background: var(--green);
  border: 2px solid var(--surface);
  content: "NOW";
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
}

.js .timeline__list li {
  opacity: 0.28;
  transform: translateX(28px);
}

.js .timeline__list li.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline__list li:hover {
  background: rgba(255, 253, 248, 0.035);
}

.timeline__list li:hover h3 {
  color: var(--yellow);
}

.timeline__list time {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.timeline__dot {
  position: relative;
  z-index: 1;
  width: 17px;
  height: 17px;
  justify-self: center;
  background: var(--coral);
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(215, 131, 145, 0.4);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.timeline__list li:hover .timeline__dot,
.timeline__list li.is-visible .timeline__dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 7px rgba(215, 131, 145, 0.14);
}

.timeline__list p {
  margin: 0 0 3px;
  color: var(--coral);
  font-size: 10px;
  font-weight: 950;
}

.timeline__list h3 {
  margin: 0;
  font-size: 21px;
}

.timeline__list div > span {
  color: #aeaeae;
  font-size: 13px;
}

.timeline__current .timeline__dot {
  background: var(--green);
  animation: current-pulse 2.2s ease-in-out infinite;
}

.timeline__current p {
  color: var(--green);
}

.timeline__current time {
  color: var(--green);
}

@keyframes current-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(143, 162, 127, 0.14); }
  50% { box-shadow: 0 0 0 11px rgba(143, 162, 127, 0.04), 0 0 20px rgba(143, 162, 127, 0.45); }
}

@keyframes timeline-stream {
  to { background-position-y: 150px; }
}

.projects {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  background: var(--paper);
}

.projects::before {
  position: absolute;
  top: 0;
  right: max(24px, calc((100vw - var(--max)) / 2));
  left: max(24px, calc((100vw - var(--max)) / 2));
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0 33%, var(--yellow) 33% 66%, var(--coral) 66%);
  content: "";
  opacity: 0.9;
}

.projects__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.projects__grid::before {
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  content: "";
  opacity: 0.5;
}

/* Projects continue the timeline as compact, scan-friendly milestones. */
.project-card {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  overflow: hidden;
  min-height: 0;
  padding-bottom: 22px;
  background: transparent;
  border: 0;
  border-top: 3px solid var(--project-accent);
  border-radius: 0;
  grid-template-columns: 72px 1fr;
  box-shadow: none;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease;
  animation: project-settle 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform: none;
}

.project-card--coral { --project-accent: var(--coral); }
.project-card--blue { --project-accent: var(--blue); }
.project-card--yellow { --project-accent: #c19f26; }
.project-card--green { --project-accent: var(--green); }
.project-card--purple { --project-accent: var(--purple); }

.project-card:nth-child(2) { animation-delay: 80ms; }
.project-card:nth-child(3) { animation-delay: 150ms; }
.project-card:nth-child(4) { animation-delay: 220ms; }
.project-card:nth-child(5) { animation-delay: 290ms; }

@keyframes project-settle {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.project-card::before {
  position: absolute;
  z-index: 0;
  inset: 8px -12px -1px;
  border: 0;
  border-left: 3px solid var(--project-accent);
  background: var(--surface);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.project-card:hover {
  box-shadow: none;
  transform: translateY(-5px);
}

.project-card:hover::before {
  opacity: 0.72;
  transform: translateY(0);
}

.project-card--feature {
  grid-column: auto;
}

.project-card__visual {
  position: relative;
  display: flex;
  z-index: 1;
  min-height: 0;
  padding: 20px 0 0;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  background: color-mix(in srgb, var(--project-accent) 18%, var(--surface));
  border-right: 0;
}

.project-card__visual::before {
  position: absolute;
  right: -36px;
  bottom: -66px;
  width: 150px;
  height: 150px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-color: var(--project-accent);
  content: "";
  opacity: 0.22;
  transition: transform 400ms ease;
}

.project-card__visual::after {
  position: absolute;
  top: 0;
  right: 5px;
  width: 2px;
  height: 86%;
  background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 15px);
  color: var(--project-accent);
  content: "";
  opacity: 0.2;
}

.project-card__visual span {
  color: var(--project-accent);
  font-size: 16px;
  font-weight: 950;
}

.project-card__visual strong {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  color: var(--project-accent);
  font-size: 58px;
  line-height: 0.8;
  opacity: 0.28;
  transition: transform 300ms ease, opacity 300ms ease;
}

.project-card:hover .project-card__visual::before {
  transform: scale(1.12) rotate(12deg);
}

.project-card:hover .project-card__visual strong {
  opacity: 0.36;
  transform: translate(-8px, -5px) scale(1.06);
}

.project-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  padding: 20px 0 0 18px;
  flex-direction: column;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-card__body h3 {
  margin: 14px 0 10px;
  font-size: 24px;
  line-height: 1.3;
}

.project-card__body > p {
  min-height: 0;
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.project-card__impact {
  display: flex;
  min-height: 0;
  margin-top: 16px;
  padding-top: 12px;
  align-items: baseline;
  gap: 10px;
  border-top: 1px solid var(--ink);
}

.project-card__impact strong {
  color: var(--project-accent);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.project-card__impact span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.project-card__results {
  display: grid;
  margin-top: 18px;
  padding-top: 14px;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.project-card__results div {
  padding: 0 12px;
  border-right: 2px solid var(--ink);
}

.project-card__results div:first-child {
  padding-left: 0;
}

.project-card__results div:last-child {
  border-right: 0;
}

.project-card__results dt {
  color: var(--project-accent);
  font-size: 20px;
  font-weight: 950;
}

.project-card__results dd {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.projects__handoff {
  position: absolute;
  z-index: 5;
  top: 0;
  left: calc(max(24px, calc((100vw - var(--max)) / 2)) + 218px);
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.projects__handoff-core,
.projects__handoff i {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  opacity: 0;
}

.projects__handoff-core {
  background: var(--yellow);
  box-shadow: 0 0 0 7px rgba(232, 200, 95, 0.16), 0 0 24px rgba(232, 200, 95, 0.9);
}

.projects__handoff.is-fired .projects__handoff-core {
  animation: project-flight 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.projects__handoff i {
  width: 7px;
  height: 7px;
  background: var(--coral);
  transform: translate3d(-205px, 128px, 0);
}

.projects__handoff i:nth-of-type(2n) { background: var(--yellow); }
.projects__handoff i:nth-of-type(3n) { background: var(--green); }
.projects__handoff i:nth-of-type(4n) { background: var(--blue); }

.projects__handoff.is-fired i {
  animation: project-burst 620ms 700ms ease-out both;
}

.projects__handoff i:nth-of-type(1) { --spark-x: -44px; --spark-y: -28px; }
.projects__handoff i:nth-of-type(2) { --spark-x: -16px; --spark-y: -48px; }
.projects__handoff i:nth-of-type(3) { --spark-x: 24px; --spark-y: -40px; }
.projects__handoff i:nth-of-type(4) { --spark-x: 48px; --spark-y: -8px; }
.projects__handoff i:nth-of-type(5) { --spark-x: 36px; --spark-y: 30px; }
.projects__handoff i:nth-of-type(6) { --spark-x: 4px; --spark-y: 48px; }
.projects__handoff i:nth-of-type(7) { --spark-x: -32px; --spark-y: 36px; }
.projects__handoff i:nth-of-type(8) { --spark-x: -56px; --spark-y: 8px; }

@keyframes project-flight {
  0% { opacity: 0; transform: translate3d(0, -90px, 0) scale(0.45); }
  18% { opacity: 1; }
  68% { opacity: 1; transform: translate3d(-152px, 62px, 0) scale(1.25); }
  100% { opacity: 0; transform: translate3d(-205px, 128px, 0) scale(0.2); }
}

@keyframes project-burst {
  0% { opacity: 1; transform: translate3d(-205px, 128px, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(calc(-205px + var(--spark-x)), calc(128px + var(--spark-y)), 0) scale(0.15); }
}

.ai-work {
  background: var(--soft);
}

@keyframes ai-skill-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(60 178 109 / 45%); }
  50% { box-shadow: 0 0 0 9px rgb(60 178 109 / 0%); }
}

.ai-milestones {
  position: relative;
  margin-top: 30px;
}

.ai-milestones::before {
  position: absolute;
  top: 18px;
  bottom: 24px;
  left: 7px;
  width: 3px;
  background: var(--ink);
  content: "";
  opacity: 0.9;
}

.ai-milestone {
  position: relative;
  display: grid;
  padding-bottom: 42px;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
}

.ai-milestone:last-child {
  padding-bottom: 0;
}

.ai-milestone__event {
  position: relative;
  padding: 12px 0 0 34px;
}

.ai-milestone__dot {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 0;
  width: 17px;
  height: 17px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.ai-milestone--ppt .ai-milestone__dot { background: var(--coral); }
.ai-milestone--site .ai-milestone__dot { background: var(--blue); }
.ai-milestone--deploy .ai-milestone__dot { background: var(--green); }

.ai-milestone.is-current .ai-milestone__dot {
  animation: ai-skill-pulse 1.8s ease-in-out infinite;
}

.ai-milestone__index {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ai-milestone__event time {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.ai-milestone__event h3,
.ai-milestone__case h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.ai-milestone__event p,
.ai-milestone__case p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.ai-milestone__case {
  display: grid;
  min-width: 0;
  padding: 24px;
  background: var(--surface);
  border: var(--line);
  border-radius: 8px;
  box-shadow: 8px 9px 0 var(--ink);
  grid-template-columns: minmax(280px, 1.05fr) minmax(220px, 0.75fr);
  gap: 24px;
}

.ai-milestone--prototype .ai-milestone__case {
  background: var(--surface);
  background: color-mix(in srgb, var(--blue) 16%, var(--surface));
}

.ai-milestone--ppt .ai-milestone__case {
  background: var(--surface);
  background: color-mix(in srgb, var(--yellow) 38%, var(--surface));
}

.ai-milestone__media {
  min-width: 0;
}

.ai-milestone__media .ai-case {
  width: 100%;
}

.ai-milestone__media .ai-case img {
  max-height: 290px;
}

.ai-milestone__details {
  align-self: center;
  min-width: 0;
}

.ai-milestone__details ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ai-milestone__details li {
  padding: 9px 0;
  border-bottom: 1px solid rgb(24 24 23 / 35%);
  font-size: 13px;
  font-weight: 800;
}

.ai-milestone__case--note {
  display: block;
  padding: 30px 32px;
}

.ai-milestone__case--note h3 {
  margin-top: 20px;
}

.status--coral {
  background: var(--coral);
}

.status--green {
  color: var(--surface);
  background: var(--green);
}

.ai-case {
  width: min(100%, 620px);
  margin: 0;
  position: relative;
}

.ai-case > span {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-case img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: top center;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 10px 11px 0 var(--ink);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.ai-case:hover img {
  transform: translate(-4px, -4px) rotate(-0.5deg);
  box-shadow: 14px 15px 0 var(--ink);
}

.ai-case figcaption {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 900;
}

.status {
  display: inline-block;
  background: var(--yellow);
}

.status--blue {
  color: var(--surface);
  background: var(--blue);
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.case-link:hover {
  color: var(--blue);
}

.contact {
  padding: 110px 24px;
  color: var(--surface);
  text-align: center;
  background: var(--purple);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.contact h2 {
  margin: 0;
  font-size: 50px;
  line-height: 1.25;
  letter-spacing: 0;
}

.contact__actions {
  justify-content: center;
}

.contact__phone {
  display: inline-block;
  margin: 28px 0 0;
  color: var(--surface);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.contact__phone span {
  margin-left: 10px;
  padding-left: 10px;
  color: var(--yellow);
  border-left: 2px solid currentColor;
}

.contact__phone:hover {
  color: var(--yellow);
}

.footer {
  display: flex;
  min-height: 76px;
  padding: 16px max(24px, calc((100vw - var(--max)) / 2));
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  font-size: 11px;
  font-weight: 900;
}

.toast {
  position: fixed;
  z-index: 70;
  right: 22px;
  bottom: 22px;
  padding: 12px 16px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 5px 6px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

.phone-dialog {
  width: min(calc(100% - 40px), 470px);
  padding: 34px;
  color: var(--ink);
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 11px 0 var(--ink);
}

.phone-dialog::backdrop {
  background: rgba(24, 24, 23, 0.58);
}

.phone-dialog__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.phone-dialog .eyebrow {
  margin-bottom: 8px;
  color: var(--purple);
}

.phone-dialog h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
}

.phone-dialog__hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.phone-dialog__number {
  display: block;
  margin: 26px 0 0;
  padding: 15px 16px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 5px;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: 1px;
  text-align: center;
}

.phone-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.phone-dialog__actions .button {
  min-width: 0;
  flex: 1;
}

.phone-dialog__wechat {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero__role {
    font-size: 38px;
  }

  .about__grid {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 44px;
  }

  .about__copy h3 {
    font-size: 34px;
  }

  .project-card {
    grid-template-columns: 64px 1fr;
  }
}

@media (max-width: 760px) {
  .header-shell {
    top: 0;
    padding: 0;
  }

  .nav {
    width: calc(100% - 32px);
    min-height: 62px;
    padding: 10px 0;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .nav__brand,
  .nav__menu {
    width: 40px;
    height: 40px;
  }

  .nav__name {
    display: none;
  }

  .nav__menu {
    display: grid;
    justify-self: end;
    place-items: center;
    color: var(--surface);
    background: transparent;
    border-color: var(--surface);
  }

  .nav__links {
    position: fixed;
    top: 78px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 20px;
    color: var(--ink);
    background: var(--surface);
    border: var(--line);
    border-radius: 8px;
    box-shadow: 7px 8px 0 var(--ink);
    flex-direction: column;
    gap: 0;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    padding: 14px 4px;
    border-bottom: 2px solid var(--ink);
  }

  .nav__links a:last-child {
    border-bottom: 0;
  }

  .nav__contact {
    min-height: 40px;
    padding: 6px 12px;
    border-radius: 4px;
  }

  .nav__contact span:last-child {
    display: none;
  }

  .phone-dialog {
    padding: 28px 22px;
  }

  .phone-dialog__actions {
    flex-direction: column;
  }

  .phone-dialog__actions .button {
    width: 100%;
  }

  .hero {
    width: min(calc(100% - 32px), var(--max));
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 116px 0 50px;
    grid-template-columns: 1fr;
    gap: 40px;
    overflow: visible;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero__role {
    margin-top: 10px;
    font-size: 31px;
  }

  .hero__intro {
    font-size: 15px;
  }

  .hero__slogans p {
    align-items: flex-start;
    font-size: 14px;
  }

  .hero__actions .button {
    min-width: calc(50% - 6px);
  }

  .portrait {
    min-height: 470px;
  }

  .portrait__backdrop {
    bottom: 34px;
    width: min(100%, 400px);
    transform: translate(10px, 10px);
  }

  .portrait img {
    bottom: 48px;
    width: min(92%, 368px);
  }

  .portrait figcaption {
    right: 4px;
    bottom: 24px;
  }

  .hero__accent--blue {
    top: 4px;
    right: 4px;
    bottom: auto;
  }

  .hero__accent--coral {
    right: auto;
    bottom: 18px;
    left: 4px;
  }

  .ticker {
    display: block;
    min-height: 126px;
    padding: 18px 20px;
    overflow: hidden;
  }

  .ticker__title {
    display: block;
    margin-bottom: 12px;
    font-size: 17px;
  }

  .ticker__skills {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .section {
    padding: 82px 20px;
  }

  .section-heading,
  .section-heading--row {
    display: block;
    margin-bottom: 36px;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .section-heading--row > p {
    margin-top: 12px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .identity-card {
    box-shadow: 7px 8px 0 var(--ink);
  }

  .about__copy h3 {
    font-size: 31px;
  }

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

  .about__stats div,
  .about__stats div:not(:first-child) {
    display: grid;
    padding: 14px 0;
    grid-template-columns: 120px 1fr;
    align-items: center;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .now__grid,
  .projects__grid {
    grid-template-columns: 1fr;
  }

  .now-card {
    min-height: 250px;
  }

  .timeline__track::before,
  .timeline__flow {
    left: 18px;
  }

  .timeline__runner {
    left: 19.5px;
  }

  .timeline__list li {
    min-height: 150px;
    padding: 24px 0;
    grid-template-columns: 38px 1fr;
    align-items: start;
  }

  .timeline__list time {
    grid-column: 2;
    margin-bottom: 8px;
  }

  .timeline__dot {
    grid-row: 1 / 3;
    grid-column: 1;
    margin-top: 2px;
  }

  .timeline__list div {
    grid-column: 2;
  }

  .timeline__current::after {
    top: 22px;
    right: 0;
  }

  .project-card,
  .project-card--feature {
    grid-column: auto;
    grid-template-columns: 56px 1fr;
  }

  .project-card__visual {
    min-height: 0;
    padding-top: 18px;
    border-right: 0;
    border-bottom: 0;
  }

  .project-card__visual strong {
    font-size: 48px;
  }

  .project-card__body > p {
    min-height: 0;
  }

  .project-card__results {
    grid-template-columns: 1fr;
  }

  .project-card__results div,
  .project-card__results div:first-child {
    display: grid;
    padding: 12px 0;
    grid-template-columns: 120px 1fr;
    align-items: center;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .ai-milestones {
    margin-top: 24px;
  }

  .ai-milestones::before {
    top: 16px;
    bottom: 20px;
    left: 7px;
  }

  .ai-milestone {
    display: block;
    padding-bottom: 34px;
  }

  .ai-milestone__event {
    min-height: 112px;
    padding: 8px 0 18px 34px;
  }

  .ai-milestone__dot {
    top: 9px;
  }

  .ai-milestone__case {
    display: block;
    margin-left: 34px;
    padding: 18px;
    box-shadow: 6px 7px 0 var(--ink);
  }

  .ai-milestone__details {
    margin-top: 22px;
  }

  .ai-milestone__case--note {
    padding: 22px;
  }

  .contact h2 {
    font-size: 37px;
  }

  .contact__actions .button {
    min-width: 220px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 38px;
  }

  .hero__role {
    font-size: 28px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .portrait {
    min-height: 420px;
  }

  .identity-card dl > div {
    grid-template-columns: 74px 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation: none !important;
  }

  .js .timeline__list li {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .timeline__runner {
    transition: none;
  }
}
