:root {
  color-scheme: light;
  --knoxville-light: #fdfbfb;
  --knoxville-muted: #ebedee;
  --knoxville-soft: #f5f6f7;
  --gradient-cloudy-knoxville: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
  --gradient-cloudy-knoxville-pale: linear-gradient(120deg, #ffffff 0%, #fdfbfb 100%);
  --gradient-cloudy-knoxville-soft: linear-gradient(120deg, #fdfbfb 0%, #f5f6f7 100%);
  --bg: var(--knoxville-light);
  --surface: var(--knoxville-muted);
  --surface-strong: #e2e5e7;
  --card: #ffffff;
  --ink: oklch(0.22 0.01 260);
  --muted: oklch(0.48 0.012 260);
  --primary: oklch(0.47 0.11 182);
  --primary-dark: oklch(0.34 0.09 182);
  --line: #dfe2e5;
  --white: #ffffff;
  --shadow: 0 20px 56px rgb(80 90 100 / 0.1);
  --radius: 16px;
  --header-height: 72px;
  --z-header: 20;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 24px);
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--gradient-cloudy-knoxville);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.shell {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: calc(var(--z-header) + 1);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  border-bottom: 1px solid rgb(235 237 238 / 0.92);
  background: rgb(253 251 251 / 0.84);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  color: var(--primary-dark);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--primary-dark);
}

.nav-links .nav-contact {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  padding-top: clamp(28px, 3.5vw, 44px);
  padding-bottom: clamp(28px, 3.5vw, 40px);
  gap: clamp(44px, 7vw, 100px);
}

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

.hero-label {
  margin-bottom: clamp(32px, 3.2vw, 48px);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin-bottom: clamp(20px, 2.4vw, 32px);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: clamp(72px, 9vw, 118px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-role {
  margin-bottom: clamp(48px, 5.5vw, 72px);
  color: var(--primary);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.35;
}

.hero-role span {
  color: var(--primary);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 160ms ease-out, opacity 160ms ease-out;
}

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

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

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

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

.text-link {
  padding: 10px 8px;
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.portrait-frame {
  position: relative;
  justify-self: end;
  align-self: center;
  width: min(100%, 440px);
  aspect-ratio: 3 / 4;
  max-height: min(680px, calc(100dvh - var(--header-height) - 96px));
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.portrait-frame::before {
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid oklch(1 0 0 / 0.66);
  border-radius: 10px;
  content: "";
  pointer-events: none;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.portrait-frame figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 2;
  padding: 14px 18px;
  border-radius: 12px;
  background: oklch(0.13 0.02 220 / 0.88);
  color: var(--white);
}

.portrait-frame figcaption strong {
  font-size: 18px;
}

.portrait-frame figcaption span {
  color: oklch(0.89 0.02 190);
  font-size: 13px;
  text-align: right;
}

.section {
  padding-block: clamp(80px, 10vw, 140px);
}

.module {
  padding-block: clamp(80px, 10vw, 140px);
}

.module--white {
  background: var(--gradient-cloudy-knoxville-pale);
}

.module--surface {
  background: var(--gradient-cloudy-knoxville);
}

.module--hero {
  padding-block: clamp(28px, 3.5vw, 44px) clamp(28px, 3.5vw, 40px);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 80px;
}

.about-layout .section-heading {
  margin: 0;
}

.section-heading {
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(36px, 4.8vw, 62px);
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.about-copy {
  max-width: 780px;
}

.about-copy p {
  margin-bottom: 22px;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.75;
}

.about-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.strength-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.strength-list li {
  min-height: 210px;
  padding: 38px 48px;
  border-bottom: 1px solid var(--line);
}

.strength-list li:nth-child(odd) {
  padding-left: 0;
  border-right: 1px solid var(--line);
}

.strength-list li:nth-child(even) {
  padding-right: 0;
}

.strength-list h3 {
  margin-bottom: 14px;
  font-size: 24px;
}

.strength-list p {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 128px;
  column-gap: 28px;
  row-gap: 0;
  padding-block: 38px;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  padding-top: 4px;
  color: var(--muted);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
  text-align: right;
}

.company-mark {
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}

.company-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.role-line {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-content: flex-start;
  gap: 4px;
  margin-bottom: 0;
}

.role-line h3 {
  margin: 0;
  font-size: 25px;
}

.role-line span {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.timeline-content p {
  grid-column: 2 / -1;
  grid-row: 2;
  max-width: 780px;
  margin-top: 14px;
  margin-bottom: 18px;
  color: var(--muted);
}

.timeline-content {
  display: contents;
}

.timeline-content .tag-list {
  grid-column: 2 / -1;
  grid-row: 3;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.projects-section {
  color: var(--ink);
}

.project-heading p {
  color: var(--muted);
}

.projects {
  display: grid;
  gap: 56px;
  padding-top: 8px;
}

.project {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(200px, 240px);
  column-gap: 28px;
  row-gap: 0;
  padding: 0;
}

.project-header {
  display: contents;
}

.project-brand,
.project-index {
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--primary-dark);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.project-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-title {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  padding-block: 4px;
}

.project-title h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700;
}

.project-title p,
.project-metric small {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.project-metric {
  display: flex;
  flex-direction: column;
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  width: auto;
  max-width: 240px;
  text-align: right;
}

.project-metric strong {
  color: var(--primary-dark);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.rolling-number {
  display: inline-flex;
  justify-content: flex-end;
  white-space: pre;
}

.rolling-digit {
  display: inline-block;
  height: 1.2em;
  overflow: hidden;
  vertical-align: top;
}

.rolling-digit-track {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  will-change: transform;
}

.rolling-digit-track > span {
  display: block;
  flex: 0 0 1.2em;
  height: 1.2em;
  line-height: 1.2;
}

.rolling-number.is-rolling .rolling-digit-track {
  transform: translateY(calc(var(--rolling-steps) * -1.2em));
  transition:
    transform 1.35s cubic-bezier(0.16, 1, 0.3, 1)
    var(--rolling-delay);
}

.project-results {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.project-detail {
  min-height: 0;
  padding: 22px 24px 24px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgb(80 90 100 / 0.06);
}

.project-detail h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  text-wrap: balance;
}

.project-detail p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.work-section {
  overflow: hidden;
  color: var(--ink);
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
  align-items: center;
  gap: clamp(64px, 8vw, 104px);
}

.work-label {
  margin-bottom: 18px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
}

.work-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(48px, 6vw, 78px);
  letter-spacing: -0.04em;
}

.work-copy > p:not(.work-label) {
  max-width: 610px;
  color: var(--muted);
  font-size: 17px;
}

.work-features {
  display: grid;
  gap: 10px;
  margin: 30px 0 34px;
  padding-left: 20px;
  color: var(--muted);
}

.button-light {
  background: var(--primary-dark);
  color: var(--white);
}

.work-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  align-self: center;
}

.phone-preview {
  position: relative;
  width: min(100%, 400px);
  height: 562px;
  overflow: hidden;
  border: 10px solid #000000;
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
  background: var(--card);
  box-shadow: var(--shadow);
}

.phone-preview-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 180ms ease-out;
}

.phone-preview iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--card);
}

.phone-preview-load {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgb(0 72 63 / 0.94);
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.18);
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
}

.phone-preview-load:disabled {
  cursor: wait;
  opacity: 0.78;
}

.phone-preview.is-interactive .phone-preview-poster {
  opacity: 0;
}

#experience,
#projects,
#work,
#skills,
#education,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.skills-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(44px, 6vw, 72px);
}

.skills-heading {
  margin-bottom: 0;
}

.skills-intro {
  margin-bottom: 0;
}

.skills-logo-wall {
  display: grid;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
  padding-block: 8px;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skills-marquee-track {
  display: flex;
  width: max-content;
  animation: skills-marquee 26s linear infinite;
}

.skills-marquee--reverse .skills-marquee-track {
  animation-direction: reverse;
  animation-duration: 30s;
}

.skills-logo-wall:hover .skills-marquee-track {
  animation-play-state: paused;
}

.skills-logo-list {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0 7px;
  list-style: none;
}

.skills-logo-list li {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 8px 22px rgb(80 90 100 / 0.08);
  animation: skills-logo-float 4.8s ease-in-out infinite;
}

.skills-logo-list li:nth-child(2n) {
  animation-delay: -1.2s;
}

.skills-logo-list li:nth-child(3n) {
  animation-delay: -2.4s;
}

.skills-logo-list img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@keyframes skills-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes skills-logo-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.skills-marquee {
  overflow: hidden;
}

.skill-item {
  min-height: 310px;
  padding: 38px 36px;
  border-right: 1px solid var(--line);
}

.skill-item:last-child {
  border-right: 0;
}

.skill-item h3 {
  margin: 0 0 20px;
  font-size: 25px;
}

.skill-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.education-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 4vw, 48px);
  align-items: center;
  padding: clamp(32px, 4vw, 44px) clamp(36px, 4.5vw, 48px);
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgb(80 90 100 / 0.06);
}

.education-logo {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

.education-logo img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.education-info h3 {
  margin: 0 0 22px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.education-meta {
  display: grid;
  gap: 14px;
  margin: 0;
}

.education-meta-row {
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  align-items: baseline;
}

.education-meta dt {
  flex: 0 0 4.5em;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.education-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}

.footer {
  padding-block: clamp(72px, 9vw, 110px) 28px;
  color: var(--ink);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(48px, 7vw, 88px);
  align-items: center;
  padding-bottom: 74px;
}

.footer-intro h2 {
  margin-bottom: 16px;
  font-size: clamp(42px, 6vw, 72px);
}

.footer-intro p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.contact-links {
  display: grid;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgb(80 90 100 / 0.06);
}

a.contact-item {
  transition: transform 160ms ease-out;
}

a.contact-item:hover,
a.contact-item:focus-visible {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.contact-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: oklch(0.47 0.11 182 / 0.12);
  color: var(--primary-dark);
}

.contact-icon svg,
.contact-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.contact-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.contact-copy strong {
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

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

@media (max-width: 960px) {
  :root {
    --header-height: 118px;
  }

  .site-header {
    height: auto;
    padding-top: env(safe-area-inset-top);
  }

  .nav {
    display: grid;
    grid-template-rows: 52px 56px;
    height: var(--header-height);
    padding-bottom: 10px;
  }

  .brand {
    align-self: center;
    justify-self: start;
  }

  .nav-links {
    width: calc(100% + 32px);
    margin-left: -16px;
    padding-inline: 16px;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .nav-links a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 44px;
    padding-inline: 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.58);
  }

  .nav-links .nav-contact {
    padding-inline: 16px;
    background: var(--card);
  }

  .hero,
  .about-layout,
  .work-layout,
  .footer-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    gap: 48px;
  }

  .portrait-frame {
    justify-self: center;
    width: min(100%, 520px);
    max-height: none;
  }

  .about-layout {
    gap: 28px;
  }

  .strength-list li {
    padding-inline: 32px;
  }

  .strength-list li:nth-child(odd) {
    padding-left: 0;
  }

  .strength-list li:nth-child(even) {
    padding-right: 0;
  }

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

  .work-layout {
    gap: 52px;
  }

  .work-visual {
    justify-content: center;
  }

  .phone-preview {
    width: min(100%, 420px);
    height: auto;
    aspect-ratio: 400 / 562;
  }

  .skills-shell {
    display: flex;
    flex-direction: column;
  }

  .skills-top {
    display: contents;
  }

  .skills-heading {
    order: 1;
    margin-bottom: 40px;
  }

  .skills-layout {
    order: 2;
  }

  .skills-logo-wall {
    order: 3;
    width: 100%;
    margin-top: clamp(44px, 6vw, 72px);
  }

  .skills-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .skill-item {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .skill-item:last-child {
    border-bottom: 0;
  }

  .footer-layout {
    align-items: start;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 112px;
  }

  body {
    background-attachment: scroll;
    font-size: 16px;
  }

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

  .nav {
    grid-template-rows: 48px 54px;
  }

  .brand {
    font-size: 19px;
  }

  .module,
  .section {
    padding-block: 64px;
  }

  .module--hero {
    padding-block: 32px 56px;
  }

  .hero {
    gap: 36px;
    padding-block: 0;
  }

  .hero-label {
    margin-bottom: 24px;
    font-size: 13px;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(60px, 19vw, 78px);
  }

  .hero-role {
    margin-bottom: 32px;
    font-size: clamp(22px, 6.4vw, 28px);
  }

  .hero-actions {
    width: 100%;
    gap: 10px;
  }

  .button {
    min-height: 48px;
    padding-inline: 18px;
  }

  .text-link {
    min-height: 44px;
    padding-inline: 6px;
  }

  .portrait-frame {
    width: 100%;
    height: clamp(260px, 72vw, 400px);
    aspect-ratio: auto;
  }

  .portrait-frame img {
    object-position: center 12%;
  }

  .portrait-frame::before {
    inset: 12px;
  }

  .portrait-frame figcaption {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 12px 14px;
  }

  .portrait-frame figcaption strong {
    font-size: 16px;
  }

  .portrait-frame figcaption span {
    font-size: 12px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2 {
    margin-bottom: 12px;
    font-size: clamp(34px, 10vw, 46px);
  }

  .section-heading p,
  .footer-intro p,
  .work-copy > p:not(.work-label) {
    font-size: 16px;
  }

  .about-layout {
    gap: 20px;
  }

  .about-copy p {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.8;
  }

  .strength-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .strength-list li,
  .strength-list li:nth-child(odd),
  .strength-list li:nth-child(even) {
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
  }

  .strength-list h3 {
    font-size: 22px;
  }

  .timeline-item {
    grid-template-columns: 52px minmax(0, 1fr) 64px;
    column-gap: 14px;
    row-gap: 0;
    padding-block: 30px;
  }

  .company-mark {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: 52px;
    height: 52px;
  }

  .timeline-date {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    padding-top: 0;
    font-size: 12px;
    text-align: right;
  }

  .timeline-content {
    display: contents;
  }

  .role-line {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-content: start;
    gap: 4px;
    margin-bottom: 0;
  }

  .role-line h3 {
    font-size: 23px;
  }

  .role-line span {
    white-space: nowrap;
  }

  .timeline-content p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 16px;
    line-height: 1.8;
  }

  .timeline-content .tag-list {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .project {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 14px;
  }

  .project-brand,
  .project-index {
    align-self: start;
    width: 48px;
    height: 48px;
    margin-top: 2px;
    border-radius: 12px;
  }

  .project-title {
    grid-column: 2;
    align-self: start;
    padding-block: 0;
  }

  .project-title h3 {
    margin-bottom: 5px;
    font-size: 25px;
  }

  .project-title p {
    font-size: 13px;
    line-height: 1.55;
  }

  .project:nth-child(1) .project-title p,
  .project:nth-child(3) .project-title p {
    max-width: 14em;
  }

  .project-metric {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    max-width: 96px;
    margin-top: 0;
    text-align: right;
  }

  .project-metric strong {
    font-size: clamp(23px, 6.8vw, 28px);
    white-space: nowrap;
  }

  .project-metric small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
  }

  .rolling-number {
    justify-content: flex-end;
  }

  .project-results {
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 18px;
  }

  .project-detail {
    padding: 20px;
  }

  .projects {
    gap: 48px;
  }

  .work-copy h2 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .work-features {
    margin-block: 26px 30px;
  }

  .phone-preview {
    border-width: 8px;
    border-bottom: 0;
    border-radius: 32px 32px 0 0;
  }

  .phone-preview-load {
    right: 14px;
    bottom: 14px;
    left: 14px;
    min-height: 48px;
  }

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

  .skills-logo-wall {
    margin-inline: -16px;
    margin-top: 40px;
    width: calc(100% + 32px);
  }

  .skills-logo-list li {
    width: 50px;
    height: 50px;
  }

  .skill-item {
    padding: 28px 0;
  }

  .skill-item h3 {
    margin-bottom: 12px;
    font-size: 22px;
  }

  .education-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 24px;
  }

  .education-logo {
    grid-row: 1;
    width: 80px;
    height: 80px;
  }

  .education-logo img {
    width: 62px;
    height: 62px;
  }

  .education-info {
    grid-row: 2;
  }

  .education-info h3 {
    margin-bottom: 18px;
    font-size: 27px;
  }

  .education-meta-row {
    align-items: start;
  }

  .education-meta dt {
    flex-basis: 4em;
  }

  .education-meta dd {
    flex: 1;
    min-width: 0;
    font-size: 16px;
  }

  .footer {
    padding-block: 64px max(24px, env(safe-area-inset-bottom));
  }

  .footer-layout {
    gap: 36px;
    padding-bottom: 48px;
  }

  .footer-intro h2 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .contact-item {
    gap: 14px;
    min-height: 82px;
    padding: 16px;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
  }

  .contact-copy strong {
    font-size: clamp(17px, 5.2vw, 22px);
  }

  .footer-bottom {
    gap: 20px;
  }
}

@media (max-width: 360px) {
  .shell {
    width: min(100% - 24px, 1200px);
  }

  .nav-links {
    width: calc(100% + 24px);
    margin-left: -12px;
    padding-inline: 12px;
  }

  .portrait-frame figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .portrait-frame figcaption span {
    text-align: left;
  }

  .timeline-item {
    grid-template-columns: 44px minmax(0, 1fr) 58px;
    column-gap: 10px;
  }

  .company-mark {
    width: 44px;
    height: 44px;
  }

  .role-line h3 {
    font-size: 20px;
  }

  .role-line span,
  .timeline-date {
    font-size: 11px;
  }

  .project {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    column-gap: 10px;
  }

  .project-brand,
  .project-index {
    width: 44px;
    height: 44px;
  }

  .project-title h3 {
    font-size: 23px;
  }

  .project-metric {
    max-width: 78px;
  }

  .project-metric strong {
    font-size: 22px;
  }

  .project-metric small {
    font-size: 11px;
  }
}

@media (hover: none) {
  .button:hover,
  a.contact-item:hover {
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .skills-marquee-track,
  .skills-logo-list li {
    animation: none !important;
  }
}
