:root {
  color-scheme: dark;
  --bg: #050607;
  --bg-2: #0a0f12;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f4f8fa;
  --muted: #9ba8af;
  --subtle: #657178;
  --blue: #38d8ff;
  --green: #9cff6a;
  --teal: #1ef0c7;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 4%, rgba(56, 216, 255, 0.16), transparent 31rem),
    radial-gradient(circle at 18% 18%, rgba(156, 255, 106, 0.08), transparent 27rem),
    linear-gradient(180deg, #050607 0%, #071013 42%, #050607 100%);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

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

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

code {
  color: var(--green);
  font-size: 0.95em;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(56, 216, 255, 0.5);
  border-radius: 50%;
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.14em;
  box-shadow: 0 0 28px rgba(56, 216, 255, 0.18);
}

.nav {
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--text);
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  gap: 48px;
  min-height: calc(100dvh - 72px);
  padding-top: 72px;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.hero-role,
.section-index {
  margin: 0 0 18px;
  color: var(--teal);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.project-hero h1 {
  margin: 0;
  color: var(--text);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 7vw, 94px);
}

.hero-summary {
  max-width: 560px;
  margin: 26px 0 0;
  color: #d6e0e4;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
}

.hero-actions,
.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

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

.button-primary {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #061011;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.button-ghost {
  border: 1px solid rgba(56, 216, 255, 0.36);
  color: var(--blue);
}

.hero-visual {
  position: relative;
  min-height: 510px;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.55;
}

.orb-a {
  right: 11%;
  top: 8%;
  width: 220px;
  height: 220px;
  background: rgba(56, 216, 255, 0.22);
}

.orb-b {
  left: 3%;
  bottom: 12%;
  width: 180px;
  height: 180px;
  background: rgba(156, 255, 106, 0.15);
}

.hero-frame,
.media-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: #0a0d10;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.hero-frame img,
.media-frame img,
.project-media img,
.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-frame-main {
  position: absolute;
  right: 0;
  top: 42px;
  width: 86%;
  aspect-ratio: 1.9 / 1;
  transform: rotate(1.8deg);
}

.hero-frame-float {
  position: absolute;
  left: 0;
  bottom: 32px;
  width: 56%;
  aspect-ratio: 1.5 / 1;
  transform: rotate(-4deg);
}

.hero-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -26px;
}

.hero-tags span,
.tag,
.capability,
.project-chip {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #cbd7db;
  font-size: 13px;
}

.hero-tags span,
.tag,
.project-chip {
  padding: 8px 12px;
}

.intro-strip {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-strip h2,
.section h2 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 64px);
}

.intro-strip p:not(.section-index),
.section-head p:not(.section-index),
.resume-panel p,
.contact-note {
  color: var(--muted);
  font-size: 17px;
}

.section-head {
  margin-bottom: 46px;
}

.project-list {
  display: grid;
  gap: 26px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 30px;
  align-items: stretch;
  min-height: 430px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    background 260ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 216, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(56, 216, 255, 0.08), rgba(156, 255, 106, 0.035)),
    rgba(255, 255, 255, 0.045);
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}

.project-number {
  color: var(--blue);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size: 13px;
}

.project-info h3 {
  margin: 18px 0 16px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.project-info p {
  margin: 0;
  color: #c9d4d9;
}

.project-meta {
  margin-top: 20px;
  color: var(--subtle);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.project-media {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 24px;
  background: #06090b;
}

.project-media img {
  transition: transform 500ms ease;
}

.project-card:hover .project-media img {
  transform: scale(1.035);
}

.project-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 26px;
  color: var(--green);
  font-weight: 700;
}

.capabilities-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
}

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

.capability {
  min-height: 92px;
  padding: 18px;
  border-radius: 18px;
  color: var(--text);
}

.process-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 70px;
  border-top: 1px solid var(--line);
}

.process-timeline {
  display: grid;
  gap: 0;
}

.process-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.process-no {
  color: var(--green);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}

.process-item h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

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

.visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.visual-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.visual-card span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: var(--text);
  font-size: 12px;
  backdrop-filter: blur(12px);
}

.resume-section,
.contact-section {
  padding-top: 80px;
}

.resume-panel,
.contact-card {
  border: 1px solid rgba(56, 216, 255, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 84% 16%, rgba(56, 216, 255, 0.14), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.resume-panel {
  padding: clamp(28px, 6vw, 70px);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.contact-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.contact-card a {
  color: var(--green);
  font-size: 21px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.footer {
  display: flex;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.project-page {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 46px;
  min-height: calc(100dvh - 72px);
  padding: 72px 0 90px;
  align-items: center;
}

.project-hero h1 {
  font-size: clamp(42px, 5.8vw, 78px);
}

.project-category {
  margin: 18px 0 0;
  color: var(--blue);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size: 13px;
}

.project-intro {
  margin: 26px 0 0;
  color: #d6e0e4;
  font-size: 20px;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 44px;
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.detail-aside {
  display: grid;
  gap: 24px;
  align-content: start;
}

.detail-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.detail-block h2,
.story-block h2 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.detail-block p,
.story-block p,
.focus-list li {
  color: var(--muted);
}

.focus-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 19px;
}

.story {
  display: grid;
  gap: 28px;
}

.story-block {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.gallery {
  display: grid;
  gap: 18px;
  padding: 0 0 100px;
}

.gallery .media-frame {
  border-radius: 22px;
}

.back-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 70px 0 100px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    width: min(var(--max), calc(100% - 28px));
  }

  .nav {
    gap: 14px;
    font-size: 13px;
  }

  .section,
  .project-page,
  .footer {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero,
  .project-hero,
  .intro-strip,
  .project-card,
  .capabilities-section,
  .process-section,
  .contact-section,
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

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

  .hero-frame-main {
    width: 92%;
  }

  .hero-frame-float {
    width: 58%;
  }

  .project-card {
    min-height: 0;
  }

  .project-media {
    min-height: 280px;
    order: -1;
  }

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

  .contact-section {
    gap: 22px;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: auto;
    min-height: 70px;
    align-items: flex-start;
    padding-top: 16px;
  }

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

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 270px;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-summary {
    font-size: 17px;
  }

  .hero-actions,
  .resume-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

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

  .hero-tags {
    margin-top: 0;
  }

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

  .process-item {
    grid-template-columns: 46px 1fr;
  }

  .project-hero {
    min-height: auto;
    padding-top: 56px;
  }

  .back-row,
  .footer {
    flex-direction: column;
  }
}

/* Monochrome portfolio direction based on the supplied references. */
:root {
  --bg: #020207;
  --bg-2: #09090d;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.105);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f6f7;
  --muted: #a7a7ad;
  --subtle: #707078;
  --blue: #ffffff;
  --green: #ffffff;
  --teal: #ffffff;
  --radius: 22px;
  --radius-lg: 42px;
  --max: 1320px;
}

body {
  background:
    radial-gradient(circle at 7% 0%, rgba(255, 255, 255, 0.07), transparent 23rem),
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.08), transparent 30rem),
    linear-gradient(180deg, #020207 0%, #030307 46%, #020207 100%);
}

body::before {
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 96px 96px;
}

code {
  color: var(--text);
}

.site-header {
  height: 86px;
  width: min(var(--max), calc(100% - 72px));
  background: transparent;
  backdrop-filter: none;
}

.brand {
  font-size: 20px;
}

.brand-mark {
  display: none;
}

.nav {
  gap: clamp(28px, 5vw, 86px);
  color: #f2f2f4;
  font-size: 18px;
  font-weight: 800;
}

.nav a:hover {
  color: #ffffff;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.36);
}

.section {
  width: min(var(--max), calc(100% - 72px));
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(340px, 0.9fr) minmax(280px, 0.92fr);
  gap: 34px;
  min-height: calc(100dvh - 86px);
  padding-top: 30px;
  padding-bottom: 70px;
  align-items: center;
}

.hero::after {
  position: absolute;
  right: 11%;
  bottom: 10%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  content: "";
  background: #fff;
  box-shadow: 0 0 36px rgba(255, 255, 255, 0.62);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: none;
}

.hero-copy-left {
  align-self: center;
  padding-left: 42px;
}

.hero-copy-right {
  align-self: center;
  padding-top: 56px;
}

.hero-role,
.section-index {
  margin-bottom: 10px;
  color: #d5d5da;
  font-family: inherit;
  font-size: clamp(20px, 2.1vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: none;
}

.section-index {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
}

.hero h1 {
  max-width: 510px;
  font-size: clamp(60px, 7.2vw, 116px);
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.hero-copy-right h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 5.7vw, 92px);
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 0.86;
}

.hero-summary,
.hero-copy-right p:not(.hero-role) {
  max-width: 360px;
  color: #b8b8be;
  font-size: 16px;
  line-height: 1.7;
}

.hero-copy-right p:not(.hero-role) {
  margin: 26px 0 0;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 690px;
  align-self: end;
}

.portrait-halo {
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: min(44vw, 620px);
  height: min(44vw, 620px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045) 45%, transparent 72%);
  transform: translateX(-50%);
  filter: blur(2px);
}

.hero-portrait img {
  position: relative;
  width: min(34vw, 430px);
  max-height: 76dvh;
  border-radius: 42% 42% 8px 8px;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(1) contrast(1.05);
  mix-blend-mode: screen;
  mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
}

.hero-social {
  display: grid;
  gap: 22px;
  margin-top: 110px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.hero-social a {
  width: fit-content;
  opacity: 0.82;
}

.hero-social a:hover {
  opacity: 1;
}

.hero-resume-link {
  position: absolute;
  right: 7%;
  bottom: 8%;
  color: #8d8d96;
  font-size: 20px;
  font-weight: 700;
}

.hero-tags,
.hero-visual,
.orb,
.hero-frame {
  display: none;
}

.button {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
}

.button-primary {
  border: 1px solid #ffffff;
  background: #ffffff;
  color: #050507;
}

.button-secondary,
.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.intro-strip {
  margin-top: 0;
  border-color: rgba(255, 255, 255, 0.1);
}

.intro-strip h2,
.section h2 {
  letter-spacing: -0.055em;
}

.work-section {
  overflow: hidden;
  scroll-margin-top: 104px;
}

.work-section .section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 34px;
}

.work-section .section-head h2 {
  max-width: 700px;
  font-size: clamp(38px, 5.2vw, 66px);
}

.project-list {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-auto-columns: minmax(360px, 31.5%);
  grid-auto-flow: column;
  gap: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 0 28px;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  overscroll-behavior-x: contain;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 570px;
  padding: 34px;
  border: 0;
  border-radius: 48px;
  background:
    radial-gradient(circle at 78% 100%, rgba(255, 255, 255, 0.2), transparent 33%),
    linear-gradient(180deg, #111113 0%, #101013 54%, #17171b 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  scroll-snap-align: start;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  background:
    radial-gradient(circle at 78% 100%, rgba(255, 255, 255, 0.26), transparent 35%),
    linear-gradient(180deg, #151517 0%, #101012 54%, #1b1b20 100%);
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.project-number {
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(52px, 5vw, 78px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1;
}

.project-type {
  color: #ffffff;
  font-size: 22px;
  font-weight: 850;
}

.project-info {
  display: block;
  flex: 1;
  padding: 42px 0 24px;
}

.project-info h3 {
  max-width: 380px;
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.project-stack-title {
  margin: 0 0 6px !important;
  color: #d6d6dc !important;
  font-size: 20px;
  font-weight: 850;
}

.project-info p {
  max-width: 390px;
  color: #a9a9b1;
  font-size: 15px;
  line-height: 1.55;
}

.tag-row {
  margin-top: 18px;
}

.hero-tags span,
.tag,
.capability,
.project-chip {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  color: #d8d8dc;
}

.project-media {
  min-height: 184px;
  aspect-ratio: 1.78 / 1;
  border-radius: 30px;
  background: #f3f3f4;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.project-link {
  margin-top: 24px;
  color: #ffffff;
  font-weight: 850;
}

.capability {
  border-radius: 12px;
}

.process-no,
.contact-card a {
  color: #ffffff;
}

.resume-panel,
.contact-card {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, 0.09), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
}

#about,
#resume,
#contact {
  scroll-margin-top: 104px;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr 0.85fr;
  }

  .hero-copy-left {
    padding-left: 0;
  }

  .hero-portrait {
    grid-row: span 2;
    min-height: 560px;
  }

  .hero-copy-right {
    grid-column: 1 / 2;
    grid-row: 2;
    padding-top: 0;
  }

  .project-list {
    grid-auto-columns: minmax(330px, 48%);
  }
}

@media (max-width: 760px) {
  .site-header,
  .section,
  .footer {
    width: min(var(--max), calc(100% - 28px));
  }

  .site-header {
    height: 76px;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: auto;
    padding-top: 32px;
    padding-bottom: 62px;
    align-items: stretch;
  }

  .hero h1 {
    font-size: clamp(56px, 18vw, 78px);
  }

  .hero-copy-right h2 {
    font-size: clamp(44px, 14vw, 66px);
    line-height: 0.92;
  }

  .hero-portrait {
    min-height: 480px;
    order: 2;
  }

  .hero-portrait img {
    width: min(78vw, 330px);
    max-height: none;
  }

  .portrait-halo {
    width: 92vw;
    height: 92vw;
  }

  .hero-copy-right {
    order: 3;
  }

  .hero-social {
    margin-top: 32px;
    grid-template-columns: repeat(3, max-content);
  }

  .hero-resume-link {
    position: static;
    order: 4;
    margin-top: 10px;
  }

  .work-section .section-head {
    display: block;
  }

  .project-list {
    grid-auto-columns: minmax(288px, 86%);
    gap: 18px;
  }

  .project-card {
    min-height: 520px;
    padding: 26px;
    border-radius: 34px;
  }

  .project-number {
    font-size: 58px;
  }

  .project-type {
    font-size: 18px;
  }

  .project-media {
    min-height: 160px;
    border-radius: 22px;
  }
}

/* Requested refinements: transparent character, mouse-follow light, aligned work title, refined exploration. */
.hero {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --light-x: 55%;
  --light-y: 44%;
}

.hero::before {
  position: absolute;
  inset: 2% -7% 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at var(--light-x) var(--light-y), rgba(255, 255, 255, 0.18), transparent 18rem),
    radial-gradient(circle at 50% 65%, rgba(255, 255, 255, 0.09), transparent 27rem),
    conic-gradient(from 180deg at 50% 56%, transparent, rgba(255, 255, 255, 0.07), transparent 38%);
  filter: blur(10px);
}

.hero-copy,
.hero-portrait {
  position: relative;
  z-index: 1;
}

.hero-portrait {
  perspective: 1200px;
}

.portrait-halo {
  bottom: 0;
  width: min(46vw, 660px);
  height: min(46vw, 660px);
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.052) 44%, transparent 72%);
  filter: blur(4px);
}

.hero-portrait img {
  width: min(38vw, 500px);
  max-height: 78dvh;
  border-radius: 0;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 34px 80px rgba(0, 0, 0, 0.62)) grayscale(0.04) contrast(1.02);
  mix-blend-mode: normal;
  mask-image: none;
  transform: translateY(-96px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-origin: 50% 58%;
  transition: transform 160ms ease-out, filter 220ms ease;
  will-change: transform;
}

.work-section .section-head {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.work-section .section-head .section-index {
  margin: 0;
}

.work-section .section-head h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(34px, 4.2vw, 56px);
  white-space: nowrap;
}

.project-list {
  will-change: scroll-position;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-auto-rows: 164px;
  gap: 16px;
}

.visual-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(140px, 0.85fr);
  gap: 18px;
  align-items: center;
  min-height: 0;
  padding: 18px 18px 18px 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.09), transparent 12rem),
    rgba(255, 255, 255, 0.045);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.visual-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.14), transparent 12rem),
    rgba(255, 255, 255, 0.065);
}

.visual-card-feature {
  grid-row: span 2;
  min-height: 344px;
  grid-template-columns: 1fr;
  align-content: end;
}

.visual-card-copy {
  position: relative;
  z-index: 2;
}

.visual-card-copy span {
  position: static;
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.18em;
  backdrop-filter: none;
}

.visual-card h3 {
  margin: 12px 0 0;
  color: #ffffff;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.visual-card-media {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  height: 100%;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.visual-card-feature .visual-card-media {
  min-height: 218px;
  order: -1;
}

.visual-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.06);
  transform: scale(1.03);
}

@media (max-width: 760px) {
  .hero-portrait img {
    width: min(82vw, 350px);
    max-height: none;
    transform: translateY(-18px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  }

  .work-section .section-head {
    display: block;
  }

  .work-section .section-head h2 {
    white-space: normal;
  }

  .visual-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .visual-card,
  .visual-card-feature {
    min-height: 210px;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .visual-card-media,
  .visual-card-feature .visual-card-media {
    min-height: 160px;
    order: -1;
  }
}

/* React Bits inspired interaction layer for the static portfolio. */
body {
  position: relative;
  isolation: isolate;
  max-width: 100vw;
  overflow-x: clip;
  background: #020207;
}

body::before {
  z-index: 0;
  opacity: 1;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.13), transparent 34rem),
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.055), transparent 28rem),
    linear-gradient(180deg, rgba(2, 2, 7, 0.1), rgba(2, 2, 7, 0.76));
  mask-image: none;
}

.light-rays {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.92;
  mix-blend-mode: screen;
}

.noise {
  z-index: 0;
  opacity: 0.08;
  mix-blend-mode: soft-light;
}

.site-header,
main,
.footer {
  position: relative;
  z-index: 2;
  max-width: 100vw;
}

.brand-mark {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.12);
}

.gooey-nav {
  position: relative;
  isolation: isolate;
  gap: 12px;
  padding: 4px;
}

.gooey-nav a {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.gooey-nav a:hover,
.gooey-nav a.is-active {
  color: #050505;
  background: #fff;
  transform: translateY(-1px);
}

.gooey-particle {
  position: absolute;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: gooeyParticle 720ms ease-out forwards;
}

@keyframes gooeyParticle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }

  34% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0);
  }
}

.split-text {
  display: inline-block;
  overflow: hidden;
}

.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(42px) rotate(2deg);
  animation: splitTextIn 720ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 45ms);
  will-change: transform, opacity;
}

.hero-copy-left h1 .split-char {
  animation-duration: 860ms;
  animation-delay: calc(90ms + var(--i) * 58ms);
}

@keyframes splitTextIn {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

.pressure-text {
  display: block;
  user-select: none;
}

.pressure-char {
  display: inline-block;
  transform-origin: 50% 70%;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    font-variation-settings 180ms ease;
  will-change: transform;
}

.scroll-float {
  overflow: hidden;
}

.scroll-float-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(118%) scaleY(2.1) scaleX(0.72);
  transform-origin: 50% 0%;
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i) * 18ms);
  will-change: transform, opacity;
}

.scroll-float-visible .scroll-float-char {
  opacity: 1;
  transform: translateY(0) scaleY(1) scaleX(1);
}

.capability-grid.circular-gallery-lite,
.visual-grid.circular-gallery-lite {
  display: flex;
  gap: 18px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding: 22px 4px 34px;
  perspective: 900px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.capability-grid.circular-gallery-lite::-webkit-scrollbar,
.visual-grid.circular-gallery-lite::-webkit-scrollbar {
  display: none;
}

.capability-grid.circular-gallery-lite .circular-gallery-item,
.visual-grid.circular-gallery-lite .circular-gallery-item {
  flex: 0 0 min(280px, 72vw);
  scroll-snap-align: center;
  transform:
    translateY(0)
    rotateY(calc((var(--gallery-shift, 0) * -18deg)));
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    background 240ms ease;
}

.capability-grid.circular-gallery-lite .capability {
  display: grid;
  place-items: center start;
  min-height: 156px;
  padding: 26px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 74% 34%, rgba(255, 255, 255, 0.12), transparent 9rem),
    rgba(255, 255, 255, 0.05);
  font-size: 22px;
  font-weight: 850;
}

.visual-grid.circular-gallery-lite .visual-card {
  min-height: 320px;
}

.visual-grid.circular-gallery-lite .visual-card-feature {
  flex-basis: min(420px, 82vw);
  min-height: 320px;
}

.circular-gallery-lite .circular-gallery-item:hover {
  transform: translateY(-8px) rotateY(calc((var(--gallery-shift, 0) * -18deg)));
  border-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 760px) {
  .brand {
    font-size: 18px;
  }

  .brand span:last-child {
    display: inline;
  }

  .gooey-nav {
    justify-content: flex-end;
    gap: 6px 10px;
  }

  .gooey-nav a {
    min-height: 34px;
    padding: 0 9px;
  }

  .capability-grid.circular-gallery-lite,
  .visual-grid.circular-gallery-lite {
    margin-right: calc((100vw - 100%) / -2);
    padding-right: 22px;
  }
}

/* Plain black page background. */
html,
body {
  background: #000 !important;
}

body::before,
.light-rays,
.noise,
.hero::before,
.portrait-halo {
  display: none !important;
}

/* Fixed navigation and hero-only Ferrofluid background. */
html {
  scroll-padding-top: 104px;
}

.site-header {
  position: fixed !important;
  top: 0;
  left: 50%;
  z-index: 80;
  width: min(var(--max), calc(100% - 72px));
  transform: translateX(-50%);
  background: #000;
  box-shadow: 0 0 0 100vmax #000;
  clip-path: inset(0 -100vmax);
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero.section {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding-inline: max(36px, calc((100vw - var(--max)) / 2));
  box-sizing: border-box;
}

.hero-ferrofluid {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.34;
  mix-blend-mode: screen;
}

.hero-copy,
.hero-portrait,
.hero-resume-link {
  position: relative;
  z-index: 1;
}

.split-text .split-char {
  animation: none;
  opacity: 0;
  transform: translateY(42px) rotate(2deg);
}

.split-text.split-text-visible .split-char {
  animation: splitTextIn 720ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 45ms);
}

.hero-copy-left h1.split-text-visible .split-char {
  animation-duration: 860ms;
  animation-delay: calc(90ms + var(--i) * 58ms);
}

.auto-loop-scroller {
  scroll-behavior: auto;
  scroll-snap-type: none !important;
  scrollbar-width: none;
}

.auto-loop-scroller::-webkit-scrollbar {
  display: none;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 84px;
  }

  .site-header {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero.section {
    padding-inline: 20px;
  }
}
