:root {
  color-scheme: dark;
  --black: #020203;
  --ink: #070809;
  --panel: rgba(17, 19, 21, 0.58);
  --panel-strong: rgba(24, 27, 30, 0.78);
  --line: rgba(225, 232, 238, 0.18);
  --line-bright: rgba(245, 248, 250, 0.46);
  --text: #f4f0e8;
  --muted: rgba(244, 240, 232, 0.64);
  --faint: rgba(244, 240, 232, 0.34);
  --cyan: #9bddea;
  --gold: #e1bc64;
  --amber: #f5c04d;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
  --radius: 8px;
  font-family: "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(170deg, transparent 30%, rgba(129, 206, 220, 0.12) 54%, transparent 74%),
    linear-gradient(180deg, #020203 0%, #070808 50%, #020203 100%);
}

body::after {
  z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 160px),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.04) 52%, transparent 54%);
  opacity: 0.32;
  mix-blend-mode: screen;
}

button,
a {
  font: inherit;
}

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

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

.site-shell {
  position: relative;
  overflow: hidden;
}

.topline {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 clamp(18px, 3.5vw, 58px);
  pointer-events: none;
}

.brand {
  position: absolute;
  left: clamp(18px, 3.5vw, 58px);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  pointer-events: auto;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-left: 2px solid var(--gold);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  font-weight: 650;
}

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

.glass-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(930px, calc(100vw - 640px));
  min-width: 760px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.12), rgba(12, 13, 15, 0.56));
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px);
  pointer-events: auto;
}

.glass-nav a,
.filters button {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.glass-nav a {
  min-width: auto;
  padding: 10px 13px;
  border-radius: 999px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.glass-nav a:hover,
.glass-nav a.is-active,
.filters button:hover,
.filters button.is-active {
  color: var(--text);
}

.glass-nav a.is-active,
.filters button.is-active {
  background: rgba(225, 188, 100, 0.12);
  box-shadow: inset 0 -1px 0 rgba(225, 188, 100, 0.72), 0 12px 36px rgba(225, 188, 100, 0.18);
}

.availability {
  position: absolute;
  right: clamp(18px, 3.5vw, 58px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  pointer-events: auto;
}

.availability span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(245, 192, 77, 0.86);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  padding: 60px clamp(18px, 3.6vw, 62px) 18px;
  grid-template-columns: clamp(310px, 27vw, 380px) minmax(0, 1fr);
  grid-template-rows: minmax(340px, 1fr) auto;
  gap: 18px 28px;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 188, 100, 0.76), transparent);
  box-shadow: 0 0 28px rgba(225, 188, 100, 0.35);
}

.hero-copy {
  grid-column: 1 / 2;
  align-self: start;
  padding-top: 36px;
  position: relative;
  z-index: 4;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2px;
  height: 22px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(225, 188, 100, 0.78);
}

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

.key-number {
  color: var(--gold);
  font-weight: 780;
  text-shadow: 0 0 18px rgba(225, 188, 100, 0.22);
}

h1 {
  width: max-content;
  margin-bottom: 8px;
  font-size: clamp(64px, 6.6vw, 112px);
  line-height: 0.78;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, #fffaf1 0%, #999a9d 48%, #24282b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 28px 80px rgba(255, 255, 255, 0.1);
}

.name-lockup {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 4px 0 18px;
}

.name-lockup strong {
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 760;
}

.name-lockup em {
  color: var(--gold);
  font-family: "Times New Roman", serif;
  font-size: clamp(19px, 1.8vw, 28px);
}

.hero-summary {
  width: min(100%, 45ch);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.identity-panel,
.showcase-card,
.about-stat,
.work-card,
.capability-grid article,
.work-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(10, 11, 12, 0.64));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.identity-panel {
  grid-column: 1 / 2;
  align-self: end;
  display: grid;
  grid-template-columns: 52% minmax(0, 1fr);
  min-height: 244px;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.identity-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  background: linear-gradient(180deg, rgba(245, 245, 245, 0.1), rgba(0, 0, 0, 0.34));
  filter: saturate(0.72) contrast(1.05);
}

.identity-copy {
  padding: 20px 22px;
}

.identity-copy p,
.identity-copy strong,
.identity-copy dt,
.identity-copy dd,
.about-stat dt,
.about-stat dd {
  margin: 0;
}

.identity-copy p {
  color: var(--muted);
  font-size: 12px;
}

.identity-copy strong {
  display: block;
  margin: 6px 0 17px;
  font-size: 13px;
}

dl {
  margin: 0;
}

.identity-copy dl {
  display: grid;
  gap: 7px;
}

.identity-copy dl div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 10.5px;
}

.identity-copy dt {
  color: var(--gold);
}

.identity-copy dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.identity-copy dl div:nth-child(n + 3) {
  grid-template-columns: 1fr;
  gap: 4px;
}

.soft-button {
  display: inline-flex;
  justify-content: center;
  margin-top: 17px;
  min-width: 126px;
  padding: 10px 18px;
  border: 1px solid rgba(225, 188, 100, 0.42);
  border-radius: 999px;
  color: var(--text);
  background: rgba(225, 188, 100, 0.08);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.soft-button:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 188, 100, 0.74);
  background: rgba(225, 188, 100, 0.16);
}

.gallery-wall {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: start;
  display: grid;
  grid-template-columns: minmax(360px, 1.35fr) minmax(180px, 0.48fr) minmax(180px, 0.48fr) minmax(160px, 0.43fr);
  gap: 8px;
  min-height: 390px;
  perspective: 1600px;
  position: relative;
  z-index: 2;
}

.showcase-card,
.about-stat {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  transform: skewY(-1.4deg);
  transition: transform 360ms ease, border-color 360ms ease, box-shadow 360ms ease;
}

.showcase-card:hover,
.about-stat:hover,
.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 248, 250, 0.38);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.78), 0 0 34px rgba(155, 221, 234, 0.12);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.main-work img {
  filter: saturate(1.02) contrast(1.08) brightness(1.18);
}

.showcase-card::after,
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.42) 56%, rgba(0, 0, 0, 0.8));
  pointer-events: none;
}

.main-work::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.42));
}

.showcase-card div {
  position: absolute;
  left: 24px;
  right: 20px;
  top: 24px;
  z-index: 2;
}

.showcase-card span,
.work-card span,
.about-stat span,
.capability-grid span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  text-transform: uppercase;
}

.showcase-card h2 {
  margin: 8px 0 0;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.25;
}

.main-work {
  min-height: 405px;
}

.tall h2 {
  font-size: clamp(16px, 1.5vw, 22px);
}

.warm {
  border-color: rgba(225, 188, 100, 0.32);
}

.about-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 22px;
  transform: skewY(1.2deg);
}

.about-stat p {
  margin: 18px 0;
  color: rgba(244, 240, 232, 0.82);
  font-size: 13px;
  line-height: 1.7;
}

.about-stat dl {
  display: grid;
  gap: 14px;
}

.about-stat dt {
  font-size: clamp(28px, 2.7vw, 42px);
  line-height: 1;
  color: var(--text);
}

.about-stat dd {
  color: rgba(244, 240, 232, 0.72);
  font-size: 13px;
}

.timeline {
  grid-column: 2 / 3;
  grid-row: 2;
  align-self: end;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  color: rgba(244, 240, 232, 0.72);
}

.timeline > span {
  color: rgba(244, 240, 232, 0.52);
  font-size: 13px;
  text-transform: uppercase;
}

.timeline ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-top: 13px;
  font-size: 12px;
  text-align: center;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.56);
}

.timeline strong,
.timeline small {
  display: block;
}

.timeline strong {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
  text-align: center;
}

.timeline small {
  color: rgba(244, 240, 232, 0.72);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.works-section,
.resume-depth,
.internship-section,
.project-section,
.education-section,
.awards,
.contact {
  padding: 76px clamp(18px, 3.6vw, 62px);
  scroll-margin-top: 122px;
}

.works-section {
  position: relative;
  padding-top: 22px;
  padding-bottom: 34px;
  scroll-margin-top: 142px;
  background: linear-gradient(180deg, rgba(225, 188, 100, 0.018), rgba(0, 0, 0, 0.06) 44%, transparent);
}

.works-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(18px, 3.6vw, 62px);
  right: clamp(18px, 3.6vw, 62px);
  height: 1px;
  background: linear-gradient(90deg, rgba(225, 188, 100, 0.72), rgba(255, 255, 255, 0.14), transparent);
  box-shadow: 0 0 18px rgba(225, 188, 100, 0.28);
}

@media (min-width: 1181px) {
  .hero {
    display: block;
    min-height: 760px;
    padding: 0 clamp(52px, 3.6vw, 62px);
  }

  .hero::before {
    top: 73%;
  }

  .hero-copy {
    position: absolute;
    left: clamp(52px, 3.6vw, 62px);
    top: 122px;
    width: clamp(320px, 24vw, 430px);
    padding-top: 0;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  h1 {
    font-size: clamp(62px, 5.4vw, 96px);
  }

  .name-lockup {
    margin: 2px 0 12px;
  }

  .name-lockup strong {
    font-size: clamp(26px, 2.4vw, 42px);
  }

  .name-lockup em {
    font-size: clamp(18px, 1.45vw, 25px);
  }

  .hero-summary {
    display: none;
  }

  .identity-panel {
    position: absolute;
    left: clamp(52px, 3.6vw, 62px);
    top: 370px;
    width: clamp(284px, 18.6vw, 340px);
    min-height: 314px;
    max-height: 322px;
    grid-template-columns: 52% minmax(0, 1fr);
  }

  .identity-copy {
    padding: 18px 18px;
  }

  .identity-copy strong {
    margin-bottom: 14px;
  }

  .identity-copy dl {
    gap: 7px;
  }

  .soft-button {
    margin-top: 14px;
    min-width: 116px;
    padding: 9px 16px;
    font-size: 12px;
  }

  .gallery-wall {
    position: absolute;
    left: clamp(368px, 24vw, 492px);
    right: clamp(52px, 3.6vw, 62px);
    top: 218px;
    height: 420px;
    min-height: 0;
    grid-template-columns: minmax(460px, 1.45fr) minmax(160px, 0.46fr) minmax(160px, 0.46fr) minmax(138px, 0.38fr);
  }

  .showcase-card,
  .about-stat {
    min-height: 0;
    height: 100%;
  }

  .main-work {
    min-height: 0;
  }

  .showcase-card div {
    left: 20px;
    right: 18px;
    top: 20px;
  }

  .showcase-card span,
  .work-card span,
  .about-stat span,
  .capability-grid span {
    font-size: 10px;
  }

  .showcase-card h2 {
    font-size: clamp(16px, 1.5vw, 24px);
  }

  .tall h2 {
    font-size: clamp(14px, 1.18vw, 19px);
  }

  .about-stat {
    padding: 20px 18px;
  }

  .about-stat p {
    margin: 14px 0;
    color: rgba(244, 240, 232, 0.82);
    font-size: 12px;
    line-height: 1.65;
  }

  .about-stat dl {
    gap: 10px;
  }

  .about-stat dt {
    font-size: clamp(24px, 2.2vw, 36px);
  }

  .about-stat dd {
    color: rgba(244, 240, 232, 0.72);
    font-size: 11px;
  }

  .timeline {
    position: absolute;
    left: clamp(368px, 24vw, 492px);
    right: clamp(52px, 3.6vw, 62px);
    top: 662px;
    width: auto;
    grid-template-columns: 96px 1fr;
    gap: 18px;
    padding: 10px 0 0 0;
  }

  .timeline ol {
    gap: 8px;
  }

  .timeline li {
    font-size: 12px;
  }

  .timeline strong {
    margin-bottom: 5px;
    font-size: 14px;
  }

  .timeline small {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .works-section {
    padding-top: 22px;
    padding-bottom: 32px;
  }

  .works-section .section-head {
    align-items: center;
    margin-bottom: 14px;
    padding-top: 0;
  }

  .works-section .section-head h2 {
    font-size: 18px;
  }

  .works-section .section-head .eyebrow {
    margin-bottom: 0;
  }

  .works-section .section-head .eyebrow::before {
    height: 18px;
  }

  .works-section .work-card {
    min-height: 0;
  }
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.section-head h2,
.awards h2,
.contact h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 58px);
  letter-spacing: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filters button {
  min-height: 36px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
}

.filters button.is-active {
  border-color: rgba(225, 188, 100, 0.32);
}

.filters button:disabled {
  opacity: 0.38;
  cursor: default;
}

.works-section .section-head {
  margin-bottom: 14px;
  border-top: 0;
  padding-top: 0;
}

.works-section .section-head > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.works-section .section-head h2 {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(18px, 1.35vw, 24px);
  font-weight: 760;
}

.works-section .section-head h2::before {
  content: "";
  width: 2px;
  height: 20px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(225, 188, 100, 0.68);
}

.works-section .section-head .eyebrow {
  order: 2;
  margin: 0;
  gap: 0;
  color: var(--faint);
  font-size: 10px;
}

.works-section .section-head .eyebrow::before {
  display: none;
}

.works-section .filters {
  align-items: center;
  gap: clamp(10px, 1.7vw, 30px);
}

.works-section .filters button {
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  color: rgba(244, 240, 232, 0.76);
  font-size: 11px;
  font-weight: 520;
}

.works-section .filters button.is-active {
  color: var(--text);
  border-color: rgba(225, 188, 100, 0.48);
  background: rgba(225, 188, 100, 0.1);
  box-shadow: 0 0 18px rgba(225, 188, 100, 0.18), inset 0 0 0 1px rgba(225, 188, 100, 0.08);
}

.work-grid {
  display: block;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 0;
  scrollbar-width: none;
}

.work-grid::-webkit-scrollbar {
  display: none;
}

.work-track {
  display: flex;
  width: max-content;
  gap: 10px;
  will-change: transform;
}

.work-grid.is-auto-scrolling .work-track {
  animation: portfolio-marquee 620s linear infinite;
}

.work-grid.is-manual .work-track {
  animation: none;
}

.work-grid.is-auto-scrolling:hover .work-track,
.work-grid.is-auto-scrolling:focus-within .work-track {
  animation-play-state: paused;
}

.work-card {
  position: relative;
  flex: 0 0 clamp(204px, 14.75vw, 278px);
  height: clamp(132px, 9.6vw, 178px);
  min-height: 0;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08), transparent 58%),
    linear-gradient(145deg, rgba(16, 20, 21, 0.96), rgba(2, 3, 3, 0.98));
  transition: transform 300ms ease, opacity 240ms ease, border-color 300ms ease, box-shadow 300ms ease;
  scroll-snap-align: start;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.12);
}

.work-card img {
  cursor: zoom-in;
}

.work-card:nth-child(1),
.work-card:nth-child(4) {
  grid-column: span 5;
}

.work-card:nth-child(3),
.work-card:nth-child(7) {
  grid-column: span 3;
}

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

.work-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.88) contrast(1.04) brightness(0.82);
}

.work-card div {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.work-card h3 {
  margin: 5px 0 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.works-section .work-card:nth-child(2) {
  order: 1;
}

.works-section .work-card:nth-child(3) {
  order: 2;
}

.works-section .work-card:nth-child(4) {
  order: 3;
}

.works-section .work-card:nth-child(5) {
  order: 4;
}

.works-section .work-card:nth-child(7) {
  order: 5;
}

.works-section .work-card:nth-child(1) {
  order: 6;
}

.works-section .work-card:nth-child(6) {
  order: 7;
}

.works-section .work-card:nth-child(8) {
  order: 8;
}

.works-section .work-card:nth-child(9) {
  order: 9;
}

.work-grid[data-auto-gallery="true"] .work-card {
  order: 0;
}

.work-grid[data-auto-gallery="true"] .work-card[data-clone="true"] {
  pointer-events: auto;
}

.works-section .work-card::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.04) 58%, rgba(0, 0, 0, 0.46));
  opacity: 0.55;
}

.works-section .work-card:hover,
.works-section .work-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(225, 188, 100, 0.48);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.58), 0 0 22px rgba(225, 188, 100, 0.08), inset 0 1px rgba(255, 255, 255, 0.14);
}

.works-section .work-card:hover div,
.works-section .work-card:focus-visible div {
  opacity: 1;
  transform: translateY(0);
}

.works-section .work-card:hover img,
.works-section .work-card:focus-visible img {
  filter: saturate(0.96) contrast(1.07) brightness(0.95);
}

.works-section .work-card:hover img,
.works-section .work-card:focus-visible img {
  transform: none;
}

.gallery-controls,
.award-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.gallery-slider-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: clamp(180px, 18vw, 300px);
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(225, 232, 238, 0.12);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(13, 14, 15, 0.62));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
}

.gallery-slider-wrap span {
  color: var(--faint);
  font-size: 10px;
  text-transform: uppercase;
}

.gallery-slider,
.award-slider {
  --progress: 0%;
  flex: 1;
  min-width: 0;
  height: 16px;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.gallery-slider::-webkit-slider-runnable-track,
.award-slider::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(225, 188, 100, 0.86) 0 var(--progress), rgba(244, 240, 232, 0.18) var(--progress) 100%);
}

.gallery-slider::-webkit-slider-thumb,
.award-slider::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -6px;
  border: 1px solid rgba(255, 246, 220, 0.72);
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 18px rgba(225, 188, 100, 0.42);
  appearance: none;
}

.gallery-slider::-moz-range-track,
.award-slider::-moz-range-track {
  height: 2px;
  border-radius: 999px;
  background: rgba(244, 240, 232, 0.18);
}

.gallery-slider::-moz-range-progress,
.award-slider::-moz-range-progress {
  height: 2px;
  border-radius: 999px;
  background: rgba(225, 188, 100, 0.86);
}

.gallery-slider::-moz-range-thumb,
.award-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 246, 220, 0.72);
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 18px rgba(225, 188, 100, 0.42);
}

.gallery-control,
.award-control {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(225, 188, 100, 0.38);
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(13, 14, 15, 0.72));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.gallery-control:hover,
.gallery-control:focus-visible,
.award-control:hover,
.award-control:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(225, 188, 100, 0.72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.52), 0 0 18px rgba(225, 188, 100, 0.18);
  outline: 0;
}

@keyframes portfolio-marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes awards-marquee {
  to {
    transform: translateX(-50%);
  }
}

.resume-depth {
  padding-top: 42px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.capability-grid article {
  min-height: 242px;
  padding: 24px;
}

.capability-grid span {
  color: var(--gold);
}

.capability-grid h3 {
  margin: 42px 0 16px;
  font-size: 22px;
}

.capability-grid p {
  margin: 0;
  color: rgba(244, 240, 232, 0.82);
  font-size: 14px;
  line-height: 1.75;
}

.tool-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 12px;
  margin-top: 12px;
}

.tool-group {
  min-height: 118px;
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(7, 8, 9, 0.7));
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.1);
}

.tool-stack span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.tool-stack ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(62px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-group:nth-child(2) ul {
  grid-template-columns: repeat(4, minmax(74px, 1fr));
}

.tool-stack li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.tool-stack strong {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.tool-stack strong img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-stack strong[data-tool="figma"],
.tool-stack strong[data-tool="midjourney"],
.tool-stack strong[data-tool="chatgpt"] {
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #f4f1e8;
}

.tool-stack strong[data-tool="figma"] {
  background: #17191c;
}

.tool-stack strong[data-tool="comfyui"] {
  padding: 7px;
  border: 1px solid rgba(242, 255, 89, 0.34);
  background: #17191c;
}

.tool-stack small {
  color: rgba(244, 240, 232, 0.86);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.18;
  text-align: center;
  white-space: nowrap;
}

.internship-section {
  padding-top: 42px;
  padding-bottom: 48px;
}

.project-section,
.education-section {
  padding-top: 42px;
  padding-bottom: 48px;
}

.internship-panel {
  display: grid;
  grid-template-columns: minmax(270px, 0.34fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 42px);
  border-top: 1px solid var(--line);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(7, 8, 9, 0.72));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.internship-meta {
  display: grid;
  align-content: center;
  min-height: 260px;
  padding-right: clamp(18px, 2.4vw, 36px);
  border-right: 1px solid rgba(225, 232, 238, 0.14);
}

.internship-meta span,
.internship-detail strong {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
}

.internship-meta h3 {
  margin: 28px 0 12px;
  font-size: clamp(28px, 2.9vw, 48px);
  line-height: 1.25;
}

.internship-meta p,
.internship-detail span {
  margin: 0;
  color: rgba(244, 240, 232, 0.82);
}

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

.internship-detail ol {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.internship-detail li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(132px, 0.24fr) minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 18px 20px;
  border-bottom: 1px solid rgba(225, 232, 238, 0.1);
}

.internship-detail li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.internship-detail li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(225, 188, 100, 0.62);
}

.internship-detail strong {
  line-height: 1.6;
}

.internship-detail span {
  font-size: 14px;
  line-height: 1.82;
}

.project-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.36fr) minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 52px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(115deg, rgba(225, 188, 100, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(7, 8, 9, 0.76));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.project-copy {
  display: grid;
  align-content: center;
  min-height: 230px;
  padding-right: clamp(18px, 2.6vw, 38px);
  border-right: 1px solid rgba(225, 232, 238, 0.14);
}

.project-copy span,
.education-grid article > span {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
}

.project-copy h3 {
  margin: 24px 0 14px;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.22;
}

.project-copy p,
.project-points p,
.education-grid p,
.education-grid li {
  color: rgba(244, 240, 232, 0.82);
  line-height: 1.78;
}

.project-points {
  display: grid;
  align-content: center;
  gap: 18px;
}

.project-points p {
  margin: 0;
  font-size: 14px;
}

.project-points strong {
  color: var(--text);
  margin-right: 10px;
}

.project-points dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.project-points dl div {
  padding: 14px 16px;
  border: 1px solid rgba(225, 232, 238, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.project-points dt,
.project-points dd {
  margin: 0;
}

.project-points dt {
  color: var(--text);
  font-size: clamp(24px, 2.2vw, 38px);
  line-height: 1;
}

.project-points dd {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

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

.education-grid article {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(9, 10, 11, 0.74));
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.46), inset 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.education-grid h3 {
  margin: 34px 0 10px;
  font-size: clamp(22px, 2vw, 32px);
}

.education-grid p {
  margin: 0 0 18px;
  color: var(--text);
  font-weight: 650;
}

.education-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.education-grid li {
  font-size: 13px;
}

.awards {
  display: block;
  padding-top: 48px;
}

.awards-copy {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.awards-summary {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.awards-summary p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.08vw, 17px);
  line-height: 1.82;
}

.award-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: rgba(244, 240, 232, 0.82);
  font-size: 13px;
  line-height: 1.65;
}

.awards-summary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.awards-summary div {
  min-width: 0;
}

.awards-summary dt,
.awards-summary dd {
  margin: 0;
}

.awards-summary dt {
  color: var(--text);
  font-size: clamp(28px, 2.7vw, 46px);
  line-height: 1;
}

.awards-summary dd {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.award-gallery {
  grid-column: 1 / -1;
  display: block;
  overflow: hidden;
  margin-top: 28px;
  scrollbar-width: none;
}

.award-gallery::-webkit-scrollbar {
  display: none;
}

.award-track {
  display: flex;
  width: max-content;
  gap: 8px;
  will-change: transform;
  transition: transform 260ms ease;
}

.award-gallery.is-auto-scrolling .award-track {
  animation: awards-marquee 260s linear infinite;
}

.award-gallery.is-manual .award-track {
  animation: none;
}

.award-gallery.is-auto-scrolling:hover .award-track,
.award-gallery.is-auto-scrolling:focus-within .award-track {
  animation-play-state: paused;
}

.award-card {
  position: relative;
  flex: 0 0 max(86px, calc((100vw - clamp(36px, 7.2vw, 124px) - 72px) / 10));
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(225, 232, 238, 0.16);
  border-radius: 6px;
  aspect-ratio: 1410 / 2000;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(8, 9, 10, 0.72));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.award-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(247, 239, 224, 0.96);
}

.award-card figcaption {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 2;
  color: rgba(244, 240, 232, 0.72);
  font-size: 9px;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.award-card:hover,
.award-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(225, 188, 100, 0.46);
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.56), 0 0 20px rgba(225, 188, 100, 0.1);
  outline: 0;
}

.work-dialog.is-award img {
  object-fit: contain;
  background: rgba(247, 239, 224, 0.96);
}

.contact {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(225, 188, 100, 0.05));
}

.contact address {
  display: grid;
  align-content: center;
  gap: 12px;
  color: var(--muted);
  font-style: normal;
}

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

.work-dialog {
  width: min(1360px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  color: var(--text);
}

.work-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
}

.work-dialog[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
}

.work-dialog img {
  width: 100%;
  height: min(88vh, 820px);
  object-fit: contain;
  object-position: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(145deg, rgba(15, 18, 20, 0.98), rgba(0, 0, 0, 0.98));
  cursor: zoom-out;
}

.work-dialog.is-image-zoomed {
  width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
}

.work-dialog.is-image-zoomed[open] {
  grid-template-columns: 1fr;
}

.work-dialog.is-image-zoomed img {
  height: calc(100vh - 24px);
}

.work-dialog.is-image-zoomed > div {
  display: none;
}

.work-dialog > div {
  padding: 32px 30px;
  align-self: end;
}

.work-dialog span {
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
}

.work-dialog h2 {
  margin: 14px 0 18px;
  font-size: clamp(28px, 4vw, 54px);
}

.work-dialog p {
  color: var(--muted);
  line-height: 1.8;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

@media (max-width: 1180px) {
  .topline {
    padding: 0 16px;
  }

  .glass-nav {
    flex: 1;
    width: auto;
    min-width: 0;
    max-width: 620px;
    margin: 0 auto;
  }

  .availability {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 150px;
  }

  .hero-copy,
  .identity-panel,
  .gallery-wall,
  .timeline {
    grid-column: 1;
  }

  .gallery-wall {
    grid-row: auto;
    grid-template-columns: 1.1fr 0.6fr 0.6fr;
  }

  .about-stat {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .timeline {
    grid-row: auto;
  }

  .award-card {
    flex-basis: max(92px, calc((100vw - 72px) / 6));
  }
}

@media (max-width: 820px) {
  .topline {
    top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    pointer-events: auto;
  }

  .brand {
    position: relative;
    left: auto;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--text);
    background: rgba(15, 16, 18, 0.72);
  }

  .glass-nav {
    display: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    border-radius: 8px;
    flex-direction: column;
    align-items: stretch;
  }

  .glass-nav.is-open {
    display: flex;
  }

  .glass-nav a {
    width: 100%;
  }

  .availability {
    order: 4;
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
    gap: 16px;
  }

  .identity-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .identity-panel img {
    width: 100%;
    height: min(58vh, 430px);
    max-height: none;
    object-fit: contain;
    background: linear-gradient(180deg, rgba(245, 245, 245, 0.12), rgba(0, 0, 0, 0.46));
  }

  .identity-copy {
    padding: 18px;
  }

  .gallery-wall {
    display: flex;
    gap: 10px;
    min-height: 0;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery-wall::-webkit-scrollbar {
    display: none;
  }

  .showcase-card,
  .main-work,
  .about-stat {
    flex: 0 0 min(82vw, 360px);
    min-height: 310px;
    transform: none;
    scroll-snap-align: start;
  }

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

  .timeline ol {
    grid-template-columns: 1fr;
  }

  .section-head,
  .contact {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
  }

  .works-section .section-head > div:first-child {
    display: flex;
  }

  .works-section .filters {
    gap: 8px;
  }

  .work-grid {
    display: block;
    overflow: hidden;
    padding-bottom: 0;
  }

  .work-track {
    display: flex;
    width: max-content;
    gap: 10px;
    animation: none !important;
    will-change: transform;
  }

  .work-card,
  .work-card:nth-child(1),
  .work-card:nth-child(3),
  .work-card:nth-child(4),
  .work-card:nth-child(7) {
    grid-column: auto;
    flex: 0 0 min(78vw, 340px);
    height: auto;
    min-height: 280px;
    order: 0;
  }

  .work-card img {
    min-height: 280px;
  }

  .work-card div {
    opacity: 1;
    transform: none;
  }

  .work-card h3 {
    font-size: 20px;
    white-space: normal;
  }

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

  .internship-panel,
  .project-panel,
  .awards-copy {
    grid-template-columns: 1fr;
  }

  .internship-panel,
  .project-panel {
    padding: 22px;
  }

  .internship-meta,
  .project-copy {
    min-height: 0;
    padding-right: 0;
    padding-bottom: 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(225, 232, 238, 0.14);
  }

  .internship-detail li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .project-points dl,
  .education-grid,
  .tool-stack {
    grid-template-columns: 1fr;
  }

  .awards-summary dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-controls,
  .award-controls {
    display: flex;
    justify-content: flex-start;
    overflow: hidden;
  }

  .award-card {
    flex-basis: min(42vw, 150px);
  }

  .work-dialog[open] {
    grid-template-columns: 1fr;
  }

  .work-dialog img {
    height: 300px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .showcase-card img,
  .work-card img {
    transition: transform 700ms ease, filter 700ms ease;
  }

  .showcase-card:hover img,
  .work-card:hover img {
    transform: scale(1.035);
    filter: saturate(1.02) contrast(1.08);
  }

  .hero-copy,
  .identity-panel,
  .gallery-wall,
  .timeline {
    animation: settle 900ms ease both;
  }

  .identity-panel {
    animation-delay: 90ms;
  }

  .gallery-wall {
    animation-delay: 150ms;
  }

  .timeline {
    animation-delay: 240ms;
  }
}

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