:root {
  --desk: #b8ad9f;
  --paper: #f4efe4;
  --paper-light: #fbf7ed;
  --ink: #24211e;
  --muted: #716a62;
  --quiet: #9b9288;
  --line: rgba(36, 33, 30, 0.12);
  --line-strong: rgba(36, 33, 30, 0.24);
  --pink: #e984b5;
  --pink-soft: #f7d8e6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 66px;
  color: var(--ink);
  background: var(--desk);
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(rgba(36, 33, 30, 0.28) 0.7px, transparent 0.7px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 17px 17px, 96px 96px;
}

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

img {
  max-width: 100%;
}

body > * {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  gap: 24px;
  min-height: 66px;
  padding: 0 clamp(18px, 4vw, 58px);
  background: rgba(184, 173, 159, 0.92);
  border-bottom: 1px solid rgba(36, 33, 30, 0.12);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(244, 239, 228, 0.96);
  border-color: var(--line-strong);
}

.brand {
  white-space: nowrap;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(16px, 3vw, 34px);
  color: rgba(36, 33, 30, 0.68);
  font-size: 13px;
}

.nav a {
  padding: 22px 0 20px;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav a:hover {
  color: var(--ink);
  border-color: currentColor;
}

main {
  overflow: hidden;
}

.section {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0;
}

.hero,
#work,
.split-section,
.capability-section,
.resume-section,
.contact-section {
  background: var(--paper);
  border: 1px solid rgba(36, 33, 30, 0.08);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 98px));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  margin-top: 28px;
  padding: clamp(34px, 5vw, 58px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: radial-gradient(rgba(36, 33, 30, 0.18) 0.55px, transparent 0.55px);
  background-size: 10px 10px;
  mix-blend-mode: multiply;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 10px;
}

.hand-note {
  max-width: 520px;
  margin: 0 0 12px;
  font-family: "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive;
  color: #25211d;
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.2;
  transform: rotate(-2.5deg);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: 100%;
  margin-bottom: 22px;
  white-space: nowrap;
  color: var(--ink);
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 560;
  line-height: 1.28;
}

.hero-script {
  position: absolute;
  z-index: 1;
  left: clamp(-18px, -2vw, -8px);
  top: 48%;
  width: min-content;
  color: var(--pink);
  font-family: "Snell Roundhand", "Brush Script MT", "Bradley Hand", cursive;
  font-size: clamp(64px, 12vw, 160px);
  font-weight: 700;
  line-height: 0.72;
  letter-spacing: 0;
  opacity: 0.92;
  transform: translateY(-50%) rotate(-4deg);
  pointer-events: none;
}

.hero-lead {
  position: relative;
  z-index: 2;
  max-width: 610px;
  margin-bottom: 0;
  color: #3f3933;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.75;
}

.hero-actions,
.about-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-stats {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(251, 247, 237, 0.72);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
}

.hero-stats strong {
  color: var(--ink);
  font-weight: 560;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 520;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button.secondary {
  color: var(--ink);
  background: rgba(251, 247, 237, 0.52);
}

.button:hover {
  background: var(--pink-soft);
}

.button.primary:hover {
  color: #fff;
  background: #37312d;
}

.button:active {
  transform: scale(0.98);
}

.hero-visual {
  position: relative;
  z-index: 3;
  margin: 0;
  min-height: 560px;
}

.collage-main {
  position: absolute;
  display: block;
  object-fit: cover;
  background: var(--paper-light);
  border: 1px solid rgba(36, 33, 30, 0.16);
  filter: grayscale(0.18) saturate(0.78) contrast(1.04);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-main {
  width: min(420px, 72%);
  right: 6%;
  top: 6px;
  aspect-ratio: 3 / 4;
  object-position: 52% 48%;
}

.collage:hover .collage-main {
  filter: grayscale(0.08) saturate(0.9) contrast(1.04);
  transform: translate3d(0, -5px, 0);
}

.hero-visual figcaption {
  position: absolute;
  right: 7%;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(420px, 72%);
  padding-top: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.hero-visual figcaption strong {
  color: var(--ink);
  font-weight: 520;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.58fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

#work,
.split-section,
.capability-section,
.resume-section,
.contact-section {
  margin-top: 28px;
  padding: clamp(26px, 4vw, 42px);
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

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

.work-card {
  position: relative;
  min-height: 370px;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition:
    color 180ms ease,
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:first-child {
  grid-row: span 2;
}

.work-card:hover {
  transform: translateY(-8px);
}

.work-card:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 8px;
}

.card-index {
  margin-bottom: 10px;
  color: var(--pink);
  font-size: 20px;
  font-family: "Snell Roundhand", "Brush Script MT", "Bradley Hand", cursive;
  font-weight: 700;
}

.work-preview {
  display: block;
  height: 230px;
  margin-bottom: 18px;
  overflow: hidden;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 0;
  transition:
    border-color 360ms ease,
    box-shadow 520ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:first-child .work-preview {
  height: 500px;
}

.work-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(0.12) saturate(0.8) contrast(1.03);
  transform: scale(1.01);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-preview img {
  filter: grayscale(0.02) saturate(0.92) contrast(1.04);
  transform: scale(1.065);
}

.work-card:hover .work-preview {
  border-color: rgba(36, 33, 30, 0.28);
  box-shadow: 0 12px 28px rgba(36, 33, 30, 0.1);
  transform: translateY(-2px);
}

.work-card:hover h3 {
  color: #9f2f65;
}

.work-card p,
.capability-item p,
.timeline-body p,
.contact-card p {
  color: var(--muted);
}

.work-card p {
  margin-bottom: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 16px;
}

.tags span {
  padding: 5px 8px;
  color: #594d47;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
}

.work-link {
  width: fit-content;
  color: var(--ink);
  font-size: 13px;
  font-weight: 520;
  border-bottom: 1px solid rgba(36, 33, 30, 0.4);
  transition: color 160ms ease, border-color 160ms ease;
}

.work-card:hover .work-link {
  color: #9f2f65;
  border-color: currentColor;
}

.split-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 6vw, 86px);
  overflow: hidden;
}

.about-section::before {
  content: "about";
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: 10px;
  color: var(--pink);
  font-family: "Snell Roundhand", "Brush Script MT", "Bradley Hand", cursive;
  font-size: clamp(72px, 13vw, 170px);
  font-weight: 700;
  line-height: 0.8;
  opacity: 0.18;
  transform: rotate(-4deg);
  pointer-events: none;
}

.split-section .section-heading {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.text-block {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #3d3833;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.82;
}

.text-block p {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.text-block p:first-child {
  padding-top: 0;
}

.text-block p:last-of-type {
  margin-bottom: 0;
}

.about-actions {
  margin-top: 22px;
}

.capability-section {
  position: relative;
  overflow: hidden;
}

.capability-section::before {
  content: "skills";
  position: absolute;
  right: clamp(22px, 5vw, 54px);
  top: 18px;
  color: var(--pink);
  font-family: "Snell Roundhand", "Brush Script MT", "Bradley Hand", cursive;
  font-size: clamp(70px, 12vw, 150px);
  font-weight: 700;
  line-height: 1;
  opacity: 0.16;
  transform: rotate(3deg);
  pointer-events: none;
}

.capability-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  overflow: hidden;
  background: transparent;
  border: 0;
  counter-reset: capability;
}

.capability-item {
  counter-increment: capability;
  position: relative;
  min-height: 190px;
  padding: 22px 22px 24px 76px;
  background: rgba(251, 247, 237, 0.62);
  border: 1px solid var(--line);
  transition: background 220ms ease, border-color 220ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.capability-item::before {
  content: counter(capability, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 22px;
  color: var(--pink);
  font-family: "Snell Roundhand", "Brush Script MT", "Bradley Hand", cursive;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.capability-item h3 {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.capability-item:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  counter-reset: resume;
}

.resume-section {
  position: relative;
  overflow: hidden;
}

.resume-section::before {
  content: "timeline";
  position: absolute;
  right: clamp(24px, 5vw, 58px);
  top: 18px;
  color: var(--pink);
  font-family: "Snell Roundhand", "Brush Script MT", "Bradley Hand", cursive;
  font-size: clamp(64px, 11vw, 140px);
  font-weight: 700;
  line-height: 1;
  opacity: 0.18;
  transform: rotate(-3deg);
  pointer-events: none;
}

.timeline-item {
  counter-increment: resume;
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(180px, 0.58fr) minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item::before {
  content: counter(resume, decimal-leading-zero);
  color: var(--pink);
  font-family: "Snell Roundhand", "Brush Script MT", "Bradley Hand", cursive;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.timeline-item.muted {
  color: var(--muted);
}

.timeline-meta {
  padding-top: 2px;
}

.timeline-meta span {
  display: block;
  margin-bottom: 6px;
  color: #9f2f65;
  font-size: 12px;
  font-weight: 520;
}

.timeline-meta strong {
  font-size: 15px;
  font-weight: 560;
}

.timeline-body ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #514a43;
}

.timeline-body li + li {
  margin-top: 7px;
}

.contact-section {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  align-items: end;
  gap: clamp(28px, 6vw, 76px);
  min-height: 360px;
}

.contact-section::before {
  content: "hello";
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: 6px;
  color: var(--pink);
  font-family: "Snell Roundhand", "Brush Script MT", "Bradley Hand", cursive;
  font-size: clamp(96px, 18vw, 220px);
  font-weight: 700;
  line-height: 0.72;
  opacity: 0.26;
  transform: rotate(-5deg);
  pointer-events: none;
}

.contact-note {
  position: relative;
  z-index: 1;
  max-width: 340px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-card {
  position: relative;
  z-index: 1;
  padding: 0;
  background: rgba(251, 247, 237, 0.58);
  border: 1px solid var(--line);
  border-radius: 0;
}

.contact-card p {
  margin: 0;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.contact-list {
  display: grid;
  gap: 0;
  margin-top: 0;
  color: #36312d;
  font-weight: 520;
}

.contact-list span {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
}

.contact-list span:last-child {
  border-bottom: 0;
}

.contact-list b {
  color: #9f2f65;
  font-weight: 520;
}

.site-footer {
  width: min(1080px, calc(100% - 36px));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 28px auto 0;
  padding: 28px 0 44px;
  color: rgba(36, 33, 30, 0.68);
  border-top: 1px solid rgba(36, 33, 30, 0.16);
  font-size: 13px;
}

.reveal {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(16px) rotate(0.2deg);
}

html.reveal-ready .reveal.in-view {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.work-card,
.capability-item,
.timeline-item {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1),
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view,
.in-view .work-card,
.in-view .capability-item,
.in-view .timeline-item {
  opacity: 1;
  transform: translateY(0);
}

html.reveal-ready .work-card,
html.reveal-ready .capability-item,
html.reveal-ready .timeline-item {
  opacity: 0;
  transform: translateY(12px);
}

html.reveal-ready .in-view .work-card,
html.reveal-ready .in-view .capability-item,
html.reveal-ready .in-view .timeline-item {
  opacity: 1;
  transform: translateY(0);
}

.in-view .work-card:hover {
  transform: translateY(-8px);
}

.in-view .capability-item:hover {
  transform: translateY(-3px);
}

.in-view .work-card:nth-child(2),
.in-view .capability-item:nth-child(2),
.in-view .timeline-item:nth-child(2) {
  transition-delay: 80ms;
}

.in-view .work-card:nth-child(3),
.in-view .capability-item:nth-child(3),
.in-view .timeline-item:nth-child(3) {
  transition-delay: 160ms;
}

.in-view .capability-item:nth-child(4),
.in-view .timeline-item:nth-child(4) {
  transition-delay: 240ms;
}

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

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

@media (max-width: 960px) {
  .hero,
  .split-section,
  .timeline-item,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    gap: 10px;
  }

  .timeline-item::before {
    font-size: 26px;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 520px;
  }

  h1 {
    font-size: clamp(38px, 9vw, 62px);
  }

  .hero-script {
    font-size: clamp(72px, 19vw, 132px);
    top: 42%;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .work-grid,
  .capability-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-card:first-child {
    grid-row: auto;
  }

  .work-card:first-child .work-preview {
    height: 260px;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 102px;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px 18px 0;
  }

  .brand {
    font-size: 14px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .nav a {
    padding: 12px 0 13px;
  }

  .section {
    width: min(100% - 24px, 1080px);
    padding: 12px 0;
  }

  .hero,
  #work,
  .split-section,
  .capability-section,
  .resume-section,
  .contact-section {
    margin-top: 18px;
    padding: 22px;
  }

  .hero {
    gap: 28px;
  }

  .hand-note {
    font-size: 19px;
  }

  h1 {
    font-size: clamp(33px, 8.7vw, 44px);
  }

  h2 {
    font-size: clamp(24px, 8.5vw, 34px);
  }

  .hero-script {
    left: 0;
    top: 35%;
    opacity: 0.68;
    font-size: clamp(58px, 22vw, 96px);
  }

  .hero-stats,
  .hero-actions,
  .about-actions {
    gap: 8px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .collage-main {
    width: 72%;
    right: 0;
    top: 18px;
  }

  .hero-visual figcaption {
    right: 0;
    bottom: 24px;
    width: 72%;
    display: grid;
    gap: 4px;
  }

  .work-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .about-section::before,
  .capability-section::before {
    right: 18px;
    left: auto;
    top: 18px;
    bottom: auto;
    font-size: 72px;
    opacity: 0.12;
  }

  .capability-item {
    min-height: auto;
    padding: 20px 20px 22px 64px;
  }

  .capability-item::before {
    left: 20px;
    top: 20px;
    font-size: 24px;
  }

  .work-preview,
  .work-card:first-child .work-preview {
    height: 210px;
  }

  .timeline-item {
    gap: 14px;
  }

  .resume-section::before {
    right: 18px;
    top: 18px;
    font-size: 72px;
  }

  .timeline-item {
    padding: 22px 0;
  }

  .contact-section {
    min-height: auto;
  }

  .contact-section::before {
    left: 20px;
    bottom: 18px;
    font-size: 96px;
    opacity: 0.18;
  }

  .contact-list span {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 18px;
  }

  .contact-card p {
    padding: 18px;
  }

  .site-footer {
    flex-direction: column;
  }
}
