:root {
  --bg: #07090d;
  --panel: rgba(255,255,255,.055);
  --panel-strong: rgba(255,255,255,.09);
  --line: rgba(255,255,255,.13);
  --text: #f4f7fb;
  --muted: #8d98a8;
  --accent: #78f7d4;
  --accent-2: #8aa8ff;
  --shadow: 0 30px 90px rgba(0,0,0,.35);
  --radius: 24px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(120,247,212,.08), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(138,168,255,.08), transparent 30%),
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -.02em;
}

::selection {
  color: #07110e;
  background: var(--accent);
}

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

button {
  font: inherit;
}

canvas#motion-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

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

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 92%);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 2px;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 24px var(--accent);
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.4);
  transition: width .25s var(--ease), height .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
}

body.cursor-active .cursor-ring {
  width: 58px;
  height: 58px;
  border-color: rgba(120,247,212,.55);
  background: rgba(120,247,212,.08);
}

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  padding: 12px 14px 12px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(7,9,13,.66);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(120,247,212,.85);
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: color .25s, background .25s, transform .25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,.07);
}

main {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

section {
  min-height: 100vh;
  padding: 130px 0 90px;
  display: grid;
  align-items: center;
  scroll-margin-top: 100px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

h1 {
  max-width: 1000px;
  font-size: clamp(58px, 11vw, 150px);
  line-height: 1.04;
  letter-spacing: -.075em;
}

h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.55);
}


.hero-layout {
  display: block;
}

.hero-main {
  width: 100%;
  min-width: 0;
}

.hero-main h1 {
  max-width: 790px;
  font-size: clamp(58px, 8.4vw, 122px);
}


.work-image {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  opacity: .88;
  filter: saturate(.9) contrast(1.03);
  transition: transform .8s var(--ease), opacity .45s, filter .45s;
}

.work-card:hover .work-image {
  transform: none;
  opacity: 1;
  filter: saturate(1) contrast(1.05);
}

.profile-static-photo {
  position: absolute;
  inset: 110px 10% 70px;
  z-index: 3;
  width: 80%;
  height: calc(100% - 180px);
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50% 50% 18% 18%;
  opacity: .88;
  filter: saturate(.9) contrast(1.03);
}

.hero-copy {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 40px;
  align-items: end;
  margin-top: 54px;
}

.hero-copy p {
  max-width: 690px;
  color: #bac2cf;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.5;
  letter-spacing: -.035em;
}

.hero-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 52px;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  transition: border-color .35s, background .35s, transform .35s var(--ease);
  backdrop-filter: blur(12px);
}

.button.primary {
  color: #07110e;
  border-color: transparent;
  background: var(--accent);
  font-weight: 700;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.26), transparent);
  transition: transform .65s var(--ease);
}

.button:hover::before {
  transform: translateX(110%);
}

.button:hover {
  transform: translateY(-3px);
  border-color: rgba(120,247,212,.4);
}

.scroll-cue {
  position: absolute;
  right: 0;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 74px;
  background: linear-gradient(var(--accent), transparent);
  animation: scan 1.8s linear infinite;
}

@keyframes scan {
  from { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  to { transform: scaleY(0); transform-origin: bottom; }
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 52px;
}

.section-heading h2 {
  font-size: clamp(44px, 7vw, 92px);
  line-height: .96;
  letter-spacing: -.06em;
}

.section-heading p {
  max-width: 530px;
  justify-self: end;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.work-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.work-card {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,.12), transparent 34%),
    rgba(255,255,255,.035);
  box-shadow: var(--shadow);
  isolation: isolate;
  transform-style: preserve-3d;
  transition: border-color .4s, transform .2s linear;
}

.work-visual {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: rgba(255,255,255,.025);
}

.work-visual::before,
.work-visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 12%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  transition: transform .7s var(--ease), border-radius .7s var(--ease);
}

.work-visual::after {
  inset: 24%;
  border-color: rgba(120,247,212,.35);
  transform: rotate(45deg);
}

.work-card:hover .work-visual::before {
  transform: rotate(90deg) scale(.92);
  border-radius: 18%;
}

.work-card:hover .work-visual::after {
  transform: rotate(135deg) scale(1.25);
  border-radius: 18%;
}

.work-card[data-art="2"] .work-visual {
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(138,168,255,.22) 42% 58%, transparent 58%),
    linear-gradient(45deg, rgba(255,255,255,.04), transparent);
}

.work-card[data-art="3"] .work-visual {
  background:
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(120,247,212,.08) 30px 31px),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(255,255,255,.05) 30px 31px);
}

.work-card[data-art="4"] .work-visual {
  background:
    radial-gradient(circle at 65% 35%, rgba(120,247,212,.26), transparent 18%),
    radial-gradient(circle at 35% 68%, rgba(138,168,255,.24), transparent 22%);
}

.work-card .line-sweep {
  position: absolute;
  z-index: 1;
  inset: -30%;
  pointer-events: none;
  transform: rotate(-18deg) translateX(-60%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  animation: sweep 5s linear infinite;
}

@keyframes sweep {
  to { transform: rotate(-18deg) translateX(120%); }
}

.work-info {
  position: absolute;
  inset: auto 24px 24px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(7,9,13,.58);
  backdrop-filter: blur(18px);
  transform: translateZ(28px);
}

.work-info small {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.work-info h3 {
  font-size: 24px;
  letter-spacing: -.04em;
}

.work-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  transition: transform .35s var(--ease), background .35s;
}

.work-card:hover .work-arrow {
  transform: rotate(45deg);
  color: #07110e;
  background: var(--accent);
}

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 20px;
  align-items: stretch;
}

.profile-panel,
.skills-panel {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.profile-panel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  padding: 34px;
}

.portrait {
  position: absolute;
  inset: 110px 10% 70px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50% 50% 18% 18%;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.13), transparent 18%),
    linear-gradient(145deg, rgba(120,247,212,.18), rgba(138,168,255,.04) 55%, rgba(255,255,255,.02));
  box-shadow: inset 0 0 80px rgba(255,255,255,.04);
}

.portrait::before,
.portrait::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(120,247,212,.28);
  border-radius: inherit;
  animation: orbitFrame 7s linear infinite;
}

.portrait::after {
  inset: 24%;
  border-color: rgba(138,168,255,.28);
  animation-direction: reverse;
  animation-duration: 10s;
}

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

.profile-top,
.profile-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.profile-bottom {
  position: absolute;
  right: 34px;
  bottom: 30px;
  left: 34px;
}

.skills-panel {
  padding: 34px;
}

.statement {
  margin-bottom: 44px;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.statement span {
  color: var(--muted);
}

.skill-list {
  border-top: 1px solid rgba(255,255,255,.1);
}

.skill-item {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.skill-item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform .55s var(--ease);
}

.skill-item:hover::after {
  transform: scaleX(1);
}

.skill-item .index {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.skill-item strong {
  font-size: 20px;
  letter-spacing: -.03em;
}

.skill-item span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.contact-wrap {
  position: relative;
  overflow: hidden;
  padding: 70px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(120,247,212,.08), transparent 45%),
    rgba(255,255,255,.035);
  box-shadow: var(--shadow);
}

.contact-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(255,255,255,.04) 70px 71px),
    repeating-linear-gradient(0deg, transparent 0 70px, rgba(255,255,255,.04) 70px 71px);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}

.contact-wrap > * {
  position: relative;
  z-index: 1;
}

.contact-wrap h2 {
  max-width: 900px;
  font-size: clamp(48px, 8.5vw, 118px);
  line-height: .75;
  letter-spacing: -.07em;
}

.contact-wrap h2 span {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent);
}

.contact-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.contact-foot p {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.7;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 46px;
  color: var(--muted);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

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

@media (max-width: 900px) {

  .hero-main h1 {
    max-width: 900px;
    font-size: clamp(58px, 13vw, 112px);
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .nav-links a {
    padding: 9px 10px;
  }

  .hero-copy,
  .section-heading,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .section-heading p {
    justify-self: start;
  }

  .works {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .work-column {
    display: contents;
  }

  .work-card[data-art="1"] { order: 1; }
  .work-card[data-art="2"] { order: 2; }
  .work-card[data-art="3"] { order: 3; }
  .work-card[data-art="4"] { order: 4; }
  .work-card[data-art="5"] { order: 5; }
  .work-card[data-art="6"] { order: 6; }

  .contact-wrap {
    padding: 42px 28px;
  }

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

@media (max-width: 620px) {
  .nav {
    top: 10px;
    width: calc(100% - 20px);
    padding: 8px 8px 8px 14px;
    gap: 8px;
  }

  .brand {
    flex: 0 0 auto;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap;
  }

  .brand-mark {
    width: 8px;
    height: 8px;
  }

  .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    gap: 0;
  }

  .nav-links a {
    display: block !important;
    flex: 0 1 auto;
    padding: 8px 9px;
    font-size: 13px;
    white-space: nowrap;
  }

  
  main {
    width: min(100% - 24px, 1180px);
  }

  section {
    min-height: auto;
    padding: 120px 0 70px;
  }

  #hero {
    min-height: 100vh;
  }

  .hero-copy {
    margin-top: 36px;
  }

  .scroll-cue {
    display: none;
  }

  .work-card {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .work-info {
    inset: auto 14px 14px;
    padding: 16px;
  }

  .profile-panel {
    min-height: 460px;
  }

  .skills-panel,
  .profile-panel {
    padding: 24px;
  }

  .contact-wrap {
    border-radius: 26px;
  }

  footer {
    width: calc(100% - 24px);
    flex-direction: column;
  }
}




@media (max-width: 370px) {
  .nav {
    width: calc(100% - 12px);
    padding-left: 10px;
    gap: 4px;
  }

  .brand {
    gap: 0;
  }

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

  .nav-links a {
    padding: 8px 7px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
