:root {
  --bg: #f5efe8;
  --shell: #f9f5f1;
  --sidebar: #1f2a37;
  --sidebar-soft: rgba(255, 255, 255, 0.08);
  --panel: rgba(255, 255, 255, 0.66);
  --line: rgba(31, 42, 55, 0.1);
  --ink: #1a2332;
  --muted: #73809a;
  --accent: #c67957;
  --accent-soft: #e7c4af;
  --shadow: 0 28px 60px rgba(18, 26, 35, 0.12);
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 20px;
  background:
    radial-gradient(circle at top left, rgba(198, 121, 87, 0.18), transparent 30%),
    linear-gradient(135deg, #f8f2eb 0%, #efe8df 100%);
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", sans-serif;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-shell {
  width: min(1200px, 100%);
}

.resume-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar {
  background: linear-gradient(180deg, var(--sidebar) 0%, #182331 100%);
  color: white;
  padding: 28px 22px 30px;
}

.profile-wrap {
  margin-bottom: 22px;
}

.avatar-frame {
  width: 124px;
  height: 124px;
  margin: 0 auto;
  border-radius: 32px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.24);
}

.side-block {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 20px;
}

.side-block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.side-block h3 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.info-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.info-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.info-list strong {
  font-size: 0.82rem;
  color: white;
  font-weight: 600;
}

.skills {
  display: grid;
  gap: 14px;
}

.skill-item {
  display: grid;
  gap: 8px;
}

.skill-item label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.meter {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.meter span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #fab28c 0%, #e7b492 100%);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.tag-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--sidebar-soft);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.content {
  padding: 34px 30px 36px;
  background: rgba(255, 255, 255, 0.38);
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3rem, 4vw, 5rem);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.availability {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(198, 121, 87, 0.12);
  border: 1px solid rgba(198, 121, 87, 0.2);
}

.summary {
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(247, 239, 232, 0.7));
  border: 1px solid rgba(26, 35, 50, 0.06);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.8;
}

.main-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  margin-top: 28px;
}

.panel {
  padding: 20px 18px 16px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid rgba(31, 42, 55, 0.06);
}

.panel-header {
  margin-bottom: 18px;
}

.panel-header h2 {
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

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

.time-tag {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.8;
}

.content-box h3,
.edu-box h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--ink);
}

.company,
.edu-box p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.content-box ul,
.award-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.content-box li,
.award-list li {
  position: relative;
  padding-left: 14px;
  line-height: 1.7;
  color: var(--ink);
  font-size: 0.95rem;
}

.content-box li::before,
.award-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.secondary-header {
  margin-top: 22px;
}

.edu-box {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(204, 148, 122, 0.08);
  border: 1px solid rgba(198, 121, 87, 0.12);
}

.degree-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.degree {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(198, 121, 87, 0.12);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.award-list {
  padding-top: 10px;
}

@media (max-width: 900px) {
  body {
    padding: 20px 14px;
  }

  .resume-card {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 24px 18px 20px;
  }

  .content {
    padding: 22px 18px 24px;
  }

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

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  h1 {
    font-size: 2.6rem;
  }

  .summary {
    padding: 16px 18px;
    font-size: 0.94rem;
  }
}

/* Personal site layout */
:root {
  --paper: #f2eee7;
  --ink: #1b1b19;
  --muted: #77736b;
  --line: rgba(27, 27, 25, 0.2);
  --coral: #e2654d;
  --blue: #b9d5d0;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 82px;
}

body {
  display: block;
  min-height: 100vh;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", "PingFang SC", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.26;
  pointer-events: none;
  content: "";
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 4vw;
  border-bottom: 1px solid transparent;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.site-nav.is-scrolled {
  padding-top: 17px;
  padding-bottom: 17px;
  border-color: var(--line);
  background: rgba(242, 238, 231, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 700;
}

.site-nav nav {
  display: flex;
  gap: 28px;
}

.site-nav nav a,
.text-link,
.contact-email {
  transition: color 0.2s ease;
}

.site-nav nav a:hover,
.text-link:hover,
.contact-email:hover {
  color: var(--coral);
}

.nav-note,
.kicker {
  color: var(--muted);
}

.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

h1 {
  margin: 22px 0 28px;
  font-size: clamp(4rem, 8vw, 8.8rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
}

em {
  color: var(--coral);
  font-style: italic;
}

.hero-section {
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8vw;
  align-items: center;
  padding: 7vh 12vw 12vh 13vw;
  overflow: hidden;
}

.hero-section::after {
  position: absolute;
  right: 7vw;
  top: 16%;
  width: 22vw;
  height: 22vw;
  max-width: 260px;
  max-height: 260px;
  border: 1px solid rgba(226, 101, 77, 0.42);
  border-radius: 50%;
  content: "";
  animation: drift 9s ease-in-out infinite;
}

.hero-section::before {
  position: absolute;
  bottom: 9vh;
  left: 4vw;
  color: var(--muted);
  content: "SCROLL TO EXPLORE";
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-intro {
  max-width: 360px;
  color: #4e4b45;
  font-size: 1rem;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  gap: 16px;
  margin-top: 38px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 7px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.hero-portrait {
  position: relative;
  max-width: 350px;
  justify-self: end;
}

.portrait-image {
  width: min(32vw, 350px);
  height: min(44vw, 470px);
  background: var(--blue);
  overflow: hidden;
}

.portrait-caption {
  position: absolute;
  right: -72px;
  bottom: 34px;
  color: var(--muted);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.05;
  transform: rotate(-8deg);
}

.work-section {
  position: relative;
  padding: 10vw 9vw 13vw;
  background: #d6e3df;
  overflow: hidden;
}

.work-section::before {
  position: absolute;
  top: 8vw;
  right: -4vw;
  color: rgba(27, 27, 25, 0.08);
  content: "WORK";
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 18vw;
  line-height: 0.7;
  pointer-events: none;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr 1fr;
  align-items: end;
  gap: 4vw;
  margin-bottom: 70px;
}

.section-heading h2 {
  font-size: clamp(3rem, 5vw, 5.8rem);
  line-height: 0.85;
}

.section-heading>p:last-child {
  max-width: 220px;
  color: #52605d;
  font-size: 0.9rem;
  line-height: 1.6;
}

.draw-panel {
  justify-self: end;
  max-width: 220px;
}

.draw-panel p {
  color: #52605d;
  font-size: 0.78rem;
  line-height: 1.5;
}

.draw-button {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  margin: 12px 0 8px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.draw-button::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
  animation: breathing 1.8s ease-in-out infinite;
}

.draw-button span {
  transition: transform 0.3s ease;
}

.draw-button:hover span {
  transform: translate(4px, -4px);
}

.draw-button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 5px;
}

.draw-button,
.back-to-top,
.project-links a {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(231, 95, 72, 0.24), transparent 38%), transparent;
}

.back-to-top {
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(231, 95, 72, 0.24), transparent 38%), var(--paper);
}

.draw-button::after,
.back-to-top::after,
.project-links a::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(231, 95, 72, 0.35);
  content: "";
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.draw-button:hover::after,
.back-to-top:hover::after,
.project-links a:hover::after {
  opacity: 1;
}

.draw-result {
  min-height: 38px;
  color: #52605d !important;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.15rem !important;
}

.draw-result:not(:empty) {
  color: var(--coral) !important;
}

.project.is-drawn .project-image {
  box-shadow: 0 0 0 5px var(--coral);
  animation: card-draw 0.7s ease both;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.project-image {
  position: relative;
  aspect-ratio: 0.82;
  overflow: hidden;
  background: #ccc;
  box-shadow: 10px 10px 0 rgba(27, 27, 25, 0.1);
}

.project-image::before {
  position: absolute;
  inset: 10px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.48);
  content: "";
  pointer-events: none;
}

.project-image::after {
  position: absolute;
  inset: 0;
  content: "↗";
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 3rem;
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(226, 101, 77, 0.5), rgba(27, 27, 25, 0.22) 32%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-image img {
  transition: transform 0.6s ease;
}

.project:hover .project-image img {
  transform: scale(1.06);
}

.project:hover .project-image::after {
  opacity: 1;
}

.project-offset {
  margin-top: 100px;
}

.project-third {
  margin-top: 30px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project h3 {
  margin-top: 9px;
  font-size: 1.7rem;
}

.about-section {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 8vw;
  padding: 13vw;
}

.about-label {
  display: flex;
  justify-content: space-between;
  align-items: start;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-content {
  max-width: 800px;
}

.about-content h2 {
  max-width: 700px;
  font-size: clamp(3rem, 6vw, 7rem);
  line-height: 0.9;
}

.about-content p {
  max-width: 510px;
  margin-top: 34px;
  color: #5f5b53;
  font-size: 1rem;
  line-height: 1.8;
}

.about-facts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-facts span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.contact-section {
  position: relative;
  min-height: 78vh;
  padding: 12vw 13vw 30px;
  background: var(--coral);
  color: #261b18;
  overflow: hidden;
  isolation: isolate;
}

.contact-section::after {
  position: absolute;
  right: -8vw;
  bottom: -12vw;
  z-index: -1;
  width: 38vw;
  height: 38vw;
  border: 1px solid rgba(247, 230, 199, 0.42);
  border-radius: 50%;
  content: "";
  animation: contact-breathe 6s ease-in-out infinite;
}

.contact-section::before {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 8vw;
  background: rgba(38, 27, 24, 0.28);
  content: "";
}

.contact-section .kicker {
  color: rgba(38, 27, 24, 0.62);
}

.contact-section h2 {
  position: relative;
  margin: 38px 0 48px;
  font-size: clamp(4rem, 10vw, 11rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.contact-section h2 em {
  color: #f7e6c7;
}

.contact-email {
  display: inline-flex;
  gap: 26px;
  border-bottom: 1px solid currentColor;
  padding: 0 0 10px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 3rem);
  transition: color 0.25s ease, transform 0.25s ease;
}

.contact-email span {
  transition: transform 0.25s ease;
}

.contact-email:hover {
  transform: translateX(7px);
}

.contact-email:hover span {
  transform: translate(5px, -5px);
}

.contact-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 18vw;
  padding-top: 18px;
  border-top: 1px solid rgba(38, 27, 24, 0.28);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-section>.kicker,
.contact-section>h2,
.contact-section>.contact-email,
.contact-section>.contact-footer {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-order {
  display: inline-block;
  min-width: 2.2em;
  margin-right: 9px;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}

.contact-section.is-visible>.kicker {
  opacity: 1;
  transform: none;
}

.contact-section.is-visible>h2 {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}

.contact-section.is-visible>.contact-email {
  opacity: 1;
  transform: none;
  transition-delay: 0.24s;
}

.contact-section.is-visible>.contact-footer {
  opacity: 1;
  transform: none;
  transition-delay: 0.4s;
}

.hero-copy,
.project,
.about-content {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-copy.is-visible,
.project.is-visible,
.about-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project:nth-child(2) {
  transition-delay: 0.12s;
}

.project:nth-child(3) {
  transition-delay: 0.22s;
}

.text-link:focus-visible,
.site-nav a:focus-visible,
.contact-email:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 5px;
}

@keyframes drift {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(-18px, 20px) rotate(12deg);
  }
}

@keyframes breathing {

  0%,
  100% {
    transform: scale(0.86);
    opacity: 0.65;
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes card-draw {
  0% {
    transform: translateY(16px) rotate(-2deg);
    opacity: 0.3;
  }

  60% {
    transform: translateY(-7px) rotate(1deg);
  }

  100% {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }
}

@keyframes contact-breathe {

  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.42;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {

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

  .hero-copy,
  .project,
  .about-content,
  .contact-section>.kicker,
  .contact-section>h2,
  .contact-section>.contact-email,
  .contact-section>.contact-footer,
  .scroll-reveal-item {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .site-nav {
    padding: 22px 6vw;
  }

  .site-nav nav {
    gap: 14px;
  }

  .nav-note {
    display: none;
  }

  .hero-section {
    display: block;
    min-height: auto;
    padding: 10vh 9vw 16vh;
  }

  h1 {
    font-size: clamp(4rem, 19vw, 7rem);
  }

  .hero-portrait {
    margin: 70px 8vw 0 auto;
  }

  .portrait-image {
    width: 64vw;
    height: 88vw;
  }

  .portrait-caption {
    right: -24px;
  }

  .work-section,
  .about-section,
  .contact-section {
    padding-left: 9vw;
    padding-right: 9vw;
  }

  .section-heading,
  .about-section {
    display: block;
  }

  .section-heading h2 {
    margin: 25px 0;
  }

  .draw-panel {
    margin-bottom: 34px;
  }

  .loading-top,
  .loading-bottom {
    left: 7vw;
    right: 7vw;
  }

  .loading-bottom span:first-child {
    max-width: 150px;
    line-height: 1.5;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .project-large {
    grid-column: 1 / -1;
  }

  .project-offset,
  .project-third {
    margin-top: 20px;
  }

  .about-label {
    margin-bottom: 50px;
  }

  .contact-footer {
    flex-direction: column;
    gap: 12px;
    margin-top: 30vw;
  }
}

/* Cursor-following light for final interactive controls */
.draw-button,
.text-link,
.project-links a,
.back-to-top {
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(231, 95, 72, 0.28), transparent 42%), transparent;
}

.back-to-top {
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(231, 95, 72, 0.28), transparent 42%), var(--paper);
}

.back-to-top:hover {
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(242, 199, 91, 0.3), transparent 42%), var(--ink);
}

/* Technical skills: ordered and restrained */
.skills-section {
  grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.32fr);
  gap: 7vw;
  padding-top: 11vw;
  padding-bottom: 11vw;
  background: linear-gradient(135deg, #edf3ec 0%, #e5eee8 100%);
}

.skills-heading h2 {
  margin-top: 28px;
  margin-bottom: 30px;
  font-size: clamp(4rem, 6.5vw, 7.6rem);
}

.skills-heading>p:last-child {
  max-width: 300px;
  color: #5f6c67;
  font-size: 0.88rem;
  line-height: 1.85;
}

.skills-heading::after {
  width: 48px;
  height: 3px;
  margin-top: 42px;
}

.skills-list {
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.skill-group,
.skill-group:nth-child(odd),
.skill-group:nth-child(even) {
  min-height: 0;
  height: 100%;
  padding: 30px 32px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.skill-group:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.48);
  transform: none;
}

.skill-index {
  display: block;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(23, 37, 50, 0.12);
  color: var(--coral);
  font-size: 0.62rem;
}

.skill-group h3 {
  margin: 24px 0 22px;
  font-size: clamp(1.7rem, 2.3vw, 2.25rem);
  line-height: 1;
}

.skill-group ul {
  align-content: start;
  gap: 10px 18px;
}

.skill-group li {
  font-size: 0.78rem;
}

.skill-group li::before {
  width: 13px;
  margin-right: 4px;
  font-size: 0.7rem;
}

.skills-section.is-visible .skills-heading h2 {
  animation: skills-heading-in 0.75s ease both;
}

.skills-section.is-visible .skills-heading>p:last-child {
  animation: skills-copy-in 0.7s 0.12s ease both;
}

.skills-section.is-visible .skill-group {
  animation: skills-group-in 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.skills-section.is-visible .skill-group:nth-child(2) {
  animation-delay: 0.1s;
}

.skills-section.is-visible .skill-group:nth-child(3) {
  animation-delay: 0.2s;
}

.skills-section.is-visible .skill-group:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes skills-heading-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes skills-copy-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes skills-group-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .skills-section.is-visible .skills-heading h2,
  .skills-section.is-visible .skills-heading>p:last-child,
  .skills-section.is-visible .skill-group {
    animation: none;
  }
}

@media (max-width: 760px) {
  .skills-section {
    padding-top: 18vw;
    padding-bottom: 18vw;
  }

  .skills-heading h2 {
    margin-top: 24px;
  }

  .skills-list {
    border-left: 0;
  }

  .skill-group,
  .skill-group:nth-child(odd),
  .skill-group:nth-child(even) {
    height: auto;
    padding: 25px 0;
    border-right: 0;
  }
}

/* Refined technical skills layout */
.skills-section {
  position: relative;
  grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
  min-height: 760px;
  background: linear-gradient(135deg, #f7e9bf 0%, #f2d69d 62%, #e9c889 100%);
}

.skills-section::before {
  position: absolute;
  right: 6vw;
  bottom: -3vw;
  color: rgba(23, 37, 50, 0.07);
  content: "04";
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(12rem, 23vw, 22rem);
  line-height: 0.7;
  pointer-events: none;
}

.skills-heading {
  position: sticky;
  top: 120px;
  z-index: 1;
}

.skills-heading::after {
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 56px;
  background: var(--coral);
  content: "";
}

.skills-heading h2 {
  margin-bottom: 30px;
}

.skills-list {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 26px;
  border-top: 0;
}

.skill-group,
.skill-group:nth-child(odd),
.skill-group:nth-child(even) {
  position: relative;
  min-height: 270px;
  padding: 28px 28px 30px;
  border: 1px solid rgba(23, 37, 50, 0.22);
  background: rgba(255, 249, 229, 0.42);
  box-shadow: 7px 7px 0 rgba(23, 37, 50, 0.08);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.skill-group::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  border-top: 1px solid var(--coral);
  border-left: 1px solid var(--coral);
  content: "";
  opacity: 0.55;
  transition: width 0.35s ease, height 0.35s ease;
}

.skill-group:hover {
  border-color: rgba(231, 95, 72, 0.68);
  background: rgba(255, 250, 233, 0.78);
  box-shadow: 11px 11px 0 rgba(23, 37, 50, 0.1);
  transform: translate(-3px, -3px);
}

.skill-group:hover::after {
  width: 48px;
  height: 48px;
}

.skill-group h3 {
  margin: 36px 0 24px;
  font-size: 2.05rem;
}

.skill-group ul {
  gap: 12px 18px;
}

.skill-group li::before {
  transition: transform 0.3s ease;
}

.skill-group li:hover::before {
  transform: translate(3px, -3px);
}

.skills-section.is-visible .skill-group {
  animation: skill-card-in 0.7s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.skills-section.is-visible .skill-group:nth-child(2) {
  animation-delay: 0.1s;
}

.skills-section.is-visible .skill-group:nth-child(3) {
  animation-delay: 0.2s;
}

.skills-section.is-visible .skill-group:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes skill-card-in {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(1deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skills-section.is-visible .skill-group {
    animation: none;
  }
}

@media (max-width: 760px) {
  .skills-section {
    min-height: auto;
  }

  .skills-section::before {
    right: 7vw;
    bottom: -2vw;
    font-size: 42vw;
  }

  .skills-heading {
    position: relative;
    top: auto;
  }

  .skills-heading::after {
    margin-top: 38px;
  }

  .skills-list {
    gap: 16px;
  }

  .skill-group,
  .skill-group:nth-child(odd),
  .skill-group:nth-child(even) {
    padding: 24px 20px 26px;
  }
}

/* Structured skills pass */
.skills-section {
  min-height: 0;
  background: linear-gradient(135deg, #edf2e9 0%, #e6eee8 100%);
}

.skills-section::before {
  color: rgba(23, 37, 50, 0.055);
}

.skills-heading::after {
  height: 3px;
  margin-top: 48px;
}

.skills-list {
  gap: 0;
  border-top: 1px solid var(--line);
}

.skill-group,
.skill-group:nth-child(odd),
.skill-group:nth-child(even) {
  min-height: 27.25rem;
  padding: 28px 30px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}

.skill-group:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.skill-group::after {
  display: none;
}

.skill-group:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: none;
  transform: none;
}

.skill-group h3 {
  margin: 34px 0 26px;
  font-size: 2rem;
}

.skills-section.is-visible .skill-group {
  animation-name: skill-card-in-clean;
  animation-duration: 0.6s;
}

@keyframes skill-card-in-clean {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .skills-section::before {
    bottom: -2vw;
  }

  .skills-list {
    border-top: 1px solid var(--line);
  }

  .skill-group,
  .skill-group:nth-child(odd),
  .skill-group:nth-child(even) {
    min-height: auto;
    padding: 25px 0;
    border-right: 0;
  }
}

@keyframes destination-pulse {

  0%,
  100% {
    outline-color: transparent;
  }

  35% {
    outline-color: rgba(231, 95, 72, 0.8);
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-section::before,
  .work-section::before {
    transform: none !important;
  }
}

/* Unified personal-site system */
:root {
  --paper: #f7f1e7;
  --ink: #172532;
  --muted: #6f7778;
  --line: rgba(23, 37, 50, 0.18);
  --coral: #e75f48;
  --sage: #c5ddd5;
  --yellow: #f2c75b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: block;
  min-height: 100vh;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", "PingFang SC", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  opacity: 0.16;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 3px;
  background: rgba(23, 37, 50, 0.1);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral);
  transition: width 0.1s linear;
}

.back-to-top {
  position: fixed;
  right: 4vw;
  bottom: 28px;
  z-index: 12;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.35rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-4px);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

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

button {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px 5vw;
  border-bottom: 1px solid transparent;
  background: rgba(244, 240, 232, 0.78);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(15px);
}

.brand {
  font-weight: 700;
}

.site-nav nav {
  display: flex;
  gap: 30px;
}

.site-nav nav a {
  position: relative;
}

.site-nav nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.site-nav nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav nav a.is-active {
  color: var(--coral);
}

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

.nav-note {
  justify-self: end;
  color: var(--muted);
}

.hero-section {
  position: relative;
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 8vw;
  align-items: center;
  padding: 8vh 13vw 12vh;
  overflow: hidden;
}

.hero-section::before {
  position: absolute;
  right: 11vw;
  top: 8vh;
  width: 24vw;
  height: 24vw;
  max-width: 330px;
  max-height: 330px;
  border: 1px solid rgba(237, 103, 79, 0.55);
  border-radius: 50%;
  content: "";
  animation: drift 9s ease-in-out infinite;
}

.hero-section::before {
  transform: translateY(var(--hero-parallax, 0px));
}

.hero-section::after {
  position: absolute;
  right: 19vw;
  top: 21vh;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 10px rgba(237, 103, 79, 0.14), 0 0 0 20px rgba(237, 103, 79, 0.08);
  content: "";
}

.kicker {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 28px 0 32px;
  font-size: clamp(4.4rem, 8.5vw, 9rem);
  line-height: 0.78;
  letter-spacing: -0.045em;
}

em {
  color: var(--coral);
  font-style: italic;
}

.hero-intro {
  max-width: 350px;
  color: #53564f;
  font-size: 0.95rem;
  line-height: 1.8;
}

.personal-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
  max-width: 470px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.personal-details div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: baseline;
  min-width: 0;
}

.personal-details dt {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.personal-details dd {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.45;
}

.personal-details a {
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.personal-details a:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.hero-signature {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-signature span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.text-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin-top: 38px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  transition: gap 0.3s ease, color 0.3s ease;
}

.text-link:hover {
  gap: 26px;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  justify-self: end;
}

.portrait-image {
  width: min(28vw, 360px);
  height: min(42vw, 510px);
  border-radius: 180px 180px 0 0;
  background: var(--sage);
  overflow: hidden;
  box-shadow: 18px 18px 0 var(--yellow);
}

.portrait-image img {
  filter: saturate(0.84);
  transition: transform 0.8s ease;
}

.portrait-image:hover img {
  transform: scale(1.05);
}

.portrait-caption {
  position: absolute;
  right: -54px;
  bottom: 38px;
  color: var(--muted);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.05;
  transform: rotate(-8deg);
}

.work-section {
  position: relative;
  padding: 11vw 9vw 14vw;
  background: linear-gradient(135deg, #c5ddd5 0%, #d8e6dc 100%);
  overflow: hidden;
}

.work-section::before {
  position: absolute;
  right: -3vw;
  top: 7vw;
  color: rgba(32, 35, 31, 0.075);
  content: "WORK";
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 18vw;
  line-height: 0.7;
  pointer-events: none;
}

.work-section::before {
  transform: translateY(var(--work-parallax, 0px));
}

.section-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.8fr;
  align-items: end;
  gap: 4vw;
  margin-bottom: 70px;
}

.section-heading h2 {
  font-size: clamp(3.3rem, 5.8vw, 6.5rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
}

.draw-panel {
  justify-self: end;
  max-width: 220px;
}

.draw-panel p {
  color: #56635d;
  font-size: 0.76rem;
  line-height: 1.55;
}

.draw-button {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin: 13px 0 8px;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.draw-button::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
  animation: breathing 1.8s ease-in-out infinite;
}

.draw-button span {
  transition: transform 0.3s ease;
}

.draw-button:hover span {
  transform: translate(5px, -5px);
}

.draw-button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 5px;
}

.draw-button.is-drawing {
  opacity: 0.6;
  pointer-events: none;
}

.draw-result {
  min-height: 38px;
  color: var(--coral) !important;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.1rem !important;
}

.project-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 30px;
  align-items: start;
}

.project {
  cursor: default;
}

.project-image {
  position: relative;
  aspect-ratio: 0.78;
  border: 1px solid rgba(32, 35, 31, 0.22);
  overflow: hidden;
  box-shadow: 12px 12px 0 rgba(32, 35, 31, 0.1);
}

.project-image::before {
  position: absolute;
  inset: 11px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.6);
  content: "";
  pointer-events: none;
}

.project-image::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  content: "↗";
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 3rem;
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(237, 103, 79, 0.55), rgba(32, 35, 31, 0.2) 34%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-image img {
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project:hover .project-image img {
  transform: scale(1.07);
}

.project:hover .project-image::after {
  opacity: 1;
}

.project-offset {
  margin-top: 110px;
}

.project-third {
  margin-top: 36px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 17px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project h3 {
  margin-top: 10px;
  font-size: 1.7rem;
}

.project-card-description {
  margin-top: 12px;
  color: #58645f;
  font-size: 0.82rem;
  line-height: 1.65;
}

.project.is-drawn .project-image {
  box-shadow: 0 0 0 5px var(--coral), 14px 14px 0 rgba(32, 35, 31, 0.1);
  animation: card-draw 0.7s ease both;
}

.projects-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 8vw;
  padding: 13vw;
  background: radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.7), transparent 23%), linear-gradient(135deg, #e5eef1 0%, #d4e3e7 100%);
  overflow: hidden;
}

.projects-section::before {
  position: absolute;
  right: 5vw;
  bottom: 5vw;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(23, 37, 50, 0.14);
  border-radius: 50%;
  content: "";
}

.projects-intro h2 {
  margin: 34px 0 38px;
  font-size: clamp(4rem, 7vw, 8rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
}

.projects-intro>p:last-child {
  max-width: 270px;
  color: #68675f;
  font-size: 0.92rem;
  line-height: 1.8;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease, background 0.3s ease;
}

.project-row:hover {
  padding-right: 15px;
  padding-left: 15px;
  background: rgba(198, 217, 206, 0.35);
}

.is-highlighted {
  animation: destination-pulse 0.9s ease;
}

.project-code,
.project-status {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-row h3 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.project-row p {
  max-width: 480px;
  color: #68675f;
  font-size: 0.9rem;
  line-height: 1.7;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}

.project-stack span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
}

.project-row-featured {
  background: rgba(237, 103, 79, 0.06);
}

.project-row-featured h3 {
  font-size: 2.35rem;
}

.project-video-link,
.modal-video-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--coral);
  color: var(--coral);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  transition: gap 0.25s ease, color 0.25s ease;
}

.project-video-link:hover,
.modal-video-link:hover {
  gap: 18px;
  color: var(--ink);
}

.project-detail {
  margin-top: 12px;
}

.project-detail strong {
  color: var(--ink);
  font-weight: 600;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}

.project-links a {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--coral);
  color: var(--coral);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.project-links a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.scroll-reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal-item.is-visible {
  opacity: 1;
  transform: none;
}

.scroll-reveal-item:nth-child(2) {
  transition-delay: 0.1s;
}

.scroll-reveal-item:nth-child(3) {
  transition-delay: 0.18s;
}

.scroll-reveal-item:nth-child(4) {
  transition-delay: 0.26s;
}

.projects-section>.projects-intro,
.projects-section>.project-list {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.projects-section.is-visible>.projects-intro,
.projects-section.is-visible>.project-list {
  opacity: 1;
  transform: none;
}

.projects-section.is-visible>.project-list {
  transition-delay: 0.16s;
}

.skills-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 8vw;
  padding: 12vw 13vw;
  background: linear-gradient(135deg, #f4e7bf 0%, #f6d99f 100%);
  overflow: hidden;
}

.skills-heading {
  position: relative;
}

.skills-heading h2 {
  margin: 34px 0 38px;
  font-size: clamp(4rem, 7vw, 8rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
}

.skills-heading>p:last-child {
  max-width: 270px;
  color: #71634e;
  font-size: 0.92rem;
  line-height: 1.8;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(23, 37, 50, 0.24);
}

.skill-group {
  min-height: 260px;
  padding: 26px 24px 28px 0;
  border-bottom: 1px solid rgba(23, 37, 50, 0.24);
}

.skill-group:nth-child(odd) {
  padding-right: 38px;
  border-right: 1px solid rgba(23, 37, 50, 0.24);
}

.skill-group:nth-child(even) {
  padding-left: 38px;
}

.skill-index {
  color: var(--coral);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.skill-group h3 {
  margin: 40px 0 22px;
  font-size: 2.15rem;
}

.skill-group ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 14px;
  list-style: none;
  color: #625949;
  font-size: 0.8rem;
  line-height: 1.45;
}

.skill-group li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease, color 0.25s ease;
}

.skill-group li::before {
  display: inline-block;
  width: 15px;
  margin-right: 3px;
  color: var(--coral);
  content: "↗";
}

.skill-group li:hover {
  color: var(--coral);
}

.skills-section.is-visible .skill-group li {
  opacity: 1;
  transform: none;
}

.skills-section.is-visible .skill-group li:nth-child(2) {
  transition-delay: 0.06s;
}

.skills-section.is-visible .skill-group li:nth-child(3) {
  transition-delay: 0.12s;
}

.skills-section.is-visible .skill-group li:nth-child(4) {
  transition-delay: 0.18s;
}

.skills-section.is-visible .skill-group li:nth-child(5) {
  transition-delay: 0.24s;
}

.skills-section.is-visible .skill-group li:nth-child(6) {
  transition-delay: 0.3s;
}

.skills-section.is-visible .skill-group li:nth-child(7) {
  transition-delay: 0.36s;
}

.skills-section.is-visible .skill-group li:nth-child(8) {
  transition-delay: 0.42s;
}

.skills-section.is-visible .skill-group li:nth-child(9) {
  transition-delay: 0.48s;
}

.skills-section>.skills-heading,
.skills-section>.skills-list {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.skills-section.is-visible>.skills-heading,
.skills-section.is-visible>.skills-list {
  opacity: 1;
  transform: none;
}

.skills-section.is-visible>.skills-list {
  transition-delay: 0.16s;
}

.project:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 8px;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 5vw;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.project-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 35, 31, 0.7);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1fr;
  width: min(850px, 100%);
  max-height: 90vh;
  background: var(--paper);
  box-shadow: 18px 18px 0 var(--yellow);
  transform: translateY(22px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-modal.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-image {
  min-height: 360px;
  background: var(--sage);
}

.modal-content {
  align-self: center;
  padding: 7%;
}

.modal-close {
  position: absolute;
  top: 17px;
  right: 20px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}

.modal-close:hover {
  background: var(--yellow);
  transform: rotate(90deg);
}

.modal-close:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

.modal-content h2 {
  margin: 22px 0 24px;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.82;
}

.modal-description {
  max-width: 340px;
  color: #62635c;
  font-size: 0.95rem;
  line-height: 1.8;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.modal-tags span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}

.about-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 8vw;
  padding: 14vw 13vw;
  background: radial-gradient(circle at 12% 70%, rgba(255, 255, 255, 0.65), transparent 25%), linear-gradient(135deg, #f7e7d2 0%, #f1d5c3 100%);
  overflow: hidden;
}

.about-section::after {
  position: absolute;
  top: 10vw;
  right: 9vw;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 14px rgba(231, 95, 72, 0.12), 0 0 0 28px rgba(231, 95, 72, 0.06);
  content: "";
}

.about-label {
  display: flex;
  justify-content: space-between;
  align-items: start;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-content {
  max-width: 800px;
}

.about-content h2 {
  max-width: 720px;
  font-size: clamp(3.3rem, 6.5vw, 7.4rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
}

.about-content p {
  max-width: 500px;
  margin-top: 34px;
  color: #62635c;
  font-size: 0.95rem;
  line-height: 1.9;
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 45px;
}

.about-facts span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.63rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.education-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 8vw;
  padding: 12vw 13vw;
  background: #eef2e7;
}

.education-heading h2 {
  margin-top: 34px;
  font-size: clamp(4rem, 7vw, 8rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
}

.education-list {
  border-top: 1px solid var(--line);
}

.education-item {
  display: grid;
  grid-template-columns: 125px 1fr 35px;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease, background 0.3s ease;
}

.education-item:hover {
  padding-right: 14px;
  padding-left: 14px;
  background: rgba(197, 221, 213, 0.38);
}

.education-date,
.education-index {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.education-index {
  color: var(--coral);
  text-align: right;
}

.education-school {
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.education-main h3 {
  margin-bottom: 16px;
  font-size: 2.15rem;
}

.education-main>p:not(.education-school) {
  max-width: 500px;
  margin-top: 9px;
  color: #68675f;
  font-size: 0.88rem;
  line-height: 1.7;
}

.education-section>.education-heading,
.education-section>.education-list {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.education-section.is-visible>.education-heading,
.education-section.is-visible>.education-list {
  opacity: 1;
  transform: none;
}

.education-section.is-visible>.education-list {
  transition-delay: 0.16s;
}

.awards-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  padding: 10vw 13vw 13vw;
  background: #e5dfd2;
}

.awards-heading h2 {
  margin-top: 34px;
  font-size: clamp(4rem, 7vw, 8rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
}

.awards-list {
  border-top: 1px solid var(--line);
}

.award-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease, color 0.3s ease;
}

.award-item:hover {
  padding-right: 12px;
  padding-left: 12px;
  color: var(--coral);
}

.award-number,
.award-year {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.award-item h3 {
  margin-bottom: 9px;
  font-size: 1.75rem;
  color: var(--ink);
}

.award-item p {
  max-width: 430px;
  color: #68675f;
  font-size: 0.9rem;
  line-height: 1.7;
}

.awards-gallery {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.gallery-label {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.awards-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.awards-gallery figure {
  margin: 0;
}

.awards-gallery img {
  aspect-ratio: 1.2;
  filter: saturate(0.7);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.awards-gallery figure:hover img {
  filter: saturate(1);
  transform: translateY(-5px);
}

.awards-gallery figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
}

.internship-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  padding: 12vw 13vw;
  background: var(--ink);
  color: var(--paper);
}

.internship-heading {
  position: relative;
}

.internship-heading .kicker {
  color: rgba(244, 240, 232, 0.52);
}

.internship-heading h2 {
  margin-top: 35px;
  font-size: clamp(4rem, 7vw, 8rem);
  line-height: 0.77;
  letter-spacing: -0.04em;
}

.internship-heading h2 em {
  color: var(--yellow);
}

.internship-mark {
  position: absolute;
  right: 0;
  bottom: 0;
  color: var(--coral);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 4rem;
}

.internship-content {
  align-self: center;
}

.internship-card {
  padding: 34px;
  border: 1px solid rgba(244, 240, 232, 0.26);
  background: rgba(244, 240, 232, 0.06);
  transition: background 0.35s ease, transform 0.35s ease;
}

.internship-card:hover {
  background: rgba(244, 240, 232, 0.1);
  transform: translateY(-6px);
}

.internship-card-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--yellow);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.internship-card h3 {
  max-width: 610px;
  margin: 42px 0 20px;
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  line-height: 0.95;
}

.internship-card p {
  max-width: 560px;
  color: rgba(244, 240, 232, 0.68);
  font-size: 0.92rem;
  line-height: 1.85;
}

.internship-project {
  margin-top: 25px;
}

.internship-project strong {
  color: var(--paper);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.internship-points {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-left: 18px;
  color: rgba(244, 240, 232, 0.68);
  font-size: 0.86rem;
  line-height: 1.75;
}

.internship-points li::marker {
  color: var(--coral);
}

.internship-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 34px;
}

.internship-tools span {
  padding: 8px 11px;
  border: 1px solid rgba(244, 240, 232, 0.25);
  border-radius: 999px;
  color: rgba(244, 240, 232, 0.72);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.internship-notes {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 20px;
  color: rgba(244, 240, 232, 0.46);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.internship-notes p {
  max-width: 330px;
  line-height: 1.6;
}

.internship-section>.internship-heading,
.internship-section>.internship-content {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.internship-section.is-visible>.internship-heading,
.internship-section.is-visible>.internship-content {
  opacity: 1;
  transform: none;
}

.internship-section.is-visible>.internship-content {
  transition-delay: 0.16s;
}

.contact-section {
  position: relative;
  min-height: 86vh;
  padding: 12vw 13vw 30px;
  background: linear-gradient(135deg, #e75f48 0%, #d94f50 100%);
  overflow: hidden;
  isolation: isolate;
}

.contact-section::before {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 8vw;
  background: rgba(32, 35, 31, 0.3);
  content: "";
}

.contact-section::after {
  position: absolute;
  right: -10vw;
  bottom: -14vw;
  z-index: -1;
  width: 46vw;
  height: 46vw;
  border: 1px solid rgba(247, 230, 199, 0.58);
  border-radius: 50%;
  content: "";
  animation: contact-breathe 6s ease-in-out infinite;
}

.contact-section h2 {
  margin: 38px 0 52px;
  font-size: clamp(4.2rem, 10vw, 11rem);
  line-height: 0.77;
  letter-spacing: -0.045em;
}

.contact-section h2 em {
  color: #f7e6c7;
}

.contact-email {
  display: inline-flex;
  gap: 26px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 10px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 3rem);
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-email:hover {
  color: #f7e6c7;
  transform: translateX(8px);
}

.contact-email span {
  transition: transform 0.3s ease;
}

.contact-email:hover span {
  transform: translate(6px, -6px);
}

.contact-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 18vw;
  padding-top: 18px;
  border-top: 1px solid rgba(32, 35, 31, 0.3);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-section>.kicker,
.contact-section>h2,
.contact-section>.contact-email,
.contact-section>.contact-footer {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-section.is-visible>.kicker {
  opacity: 1;
  transform: none;
}

.contact-section.is-visible>h2 {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}

.contact-section.is-visible>.contact-email {
  opacity: 1;
  transform: none;
  transition-delay: 0.24s;
}

.contact-section.is-visible>.contact-footer {
  opacity: 1;
  transform: none;
  transition-delay: 0.4s;
}

@keyframes contact-breathe {

  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.42;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {

  .internship-section>.internship-heading,
  .internship-section>.internship-content {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .internship-section>.internship-heading,
  .internship-section>.internship-content {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .projects-section>.projects-intro,
  .projects-section>.project-list {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .education-section>.education-heading,
  .education-section>.education-list {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .skills-section>.skills-heading,
  .skills-section>.skills-list,
  .skill-group li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 760px) {
  .site-nav {
    grid-template-columns: 1fr auto;
    padding: 21px 7vw;
  }

  .site-nav nav {
    max-width: 48vw;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .site-nav nav::-webkit-scrollbar {
    display: none;
  }

  .back-to-top {
    right: 7vw;
    bottom: 20px;
  }

  .nav-note {
    display: none;
  }

  .hero-section {
    display: block;
    min-height: auto;
    padding: 11vh 9vw 18vh;
  }

  h1 {
    font-size: clamp(4.2rem, 19vw, 7rem);
  }

  .hero-section::before {
    right: 5vw;
    top: 28vh;
    width: 48vw;
    height: 48vw;
  }

  .hero-portrait {
    margin: 78px 6vw 0 auto;
  }

  .portrait-image {
    width: 65vw;
    height: 92vw;
  }

  .portrait-caption {
    right: -18px;
  }

  .personal-details {
    grid-template-columns: 1fr;
    gap: 11px;
    max-width: 100%;
  }

  .work-section,
  .projects-section,
  .skills-section,
  .about-section,
  .education-section,
  .awards-section,
  .internship-section,
  .contact-section {
    padding-right: 9vw;
    padding-left: 9vw;
  }

  .section-heading,
  .projects-section,
  .skills-section,
  .about-section,
  .education-section,
  .awards-section,
  .internship-section {
    display: block;
  }

  .section-heading h2 {
    margin: 26px 0 34px;
  }

  .draw-panel {
    margin-bottom: 45px;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .project-large {
    grid-column: 1 / -1;
  }

  .project-offset,
  .project-third {
    margin-top: 22px;
  }

  .projects-intro {
    margin-bottom: 55px;
  }

  .skills-heading {
    margin-bottom: 55px;
  }

  .skills-list {
    grid-template-columns: 1fr;
  }

  .skill-group,
  .skill-group:nth-child(odd),
  .skill-group:nth-child(even) {
    min-height: auto;
    padding: 24px 0;
    border-right: 0;
  }

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

  .skill-group h3 {
    margin-top: 28px;
  }

  .project-row {
    grid-template-columns: 34px 1fr;
    gap: 14px;
  }

  .project-status {
    grid-column: 2;
  }

  .modal-card {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow: auto;
  }

  .modal-image {
    min-height: 260px;
    max-height: 42vh;
  }

  .modal-content {
    padding: 30px 8vw 8vw;
  }

  .about-label {
    margin-bottom: 55px;
  }

  .about-content p {
    margin-top: 25px;
  }

  .education-heading {
    margin-bottom: 55px;
  }

  .education-item {
    grid-template-columns: 1fr 28px;
    gap: 14px;
  }

  .education-date {
    grid-column: 1 / -1;
  }

  .education-index {
    grid-column: 2;
    grid-row: 2;
  }

  .photos-heading {
    margin-bottom: 55px;
  }

  .awards-heading {
    margin-bottom: 55px;
  }

  .award-item {
    grid-template-columns: 28px 1fr;
    gap: 14px;
  }

  .award-year {
    grid-column: 2;
  }

  .awards-gallery-grid {
    gap: 8px;
  }

  .internship-heading {
    margin-bottom: 55px;
  }

  .internship-mark {
    right: 0;
    bottom: -35px;
  }

  .internship-card {
    padding: 25px 20px;
  }

  .internship-card-top {
    flex-direction: column;
    gap: 8px;
  }

  .internship-card h3 {
    margin-top: 34px;
  }

  .internship-notes {
    display: block;
  }

  .internship-notes p {
    margin-top: 12px;
  }

  .contact-section h2 {
    margin-top: 34px;
  }

  .contact-footer {
    flex-direction: column;
    gap: 13px;
    margin-top: 30vw;
  }
}

/* Final interaction layer */
.draw-button,
.text-link,
.project-links a,
.back-to-top {
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(231, 95, 72, 0.28), transparent 42%), transparent;
}

.back-to-top {
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(231, 95, 72, 0.28), transparent 42%), var(--paper);
}

.back-to-top:hover {
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(242, 199, 91, 0.3), transparent 42%), var(--ink);
}