:root {
  --canvas: #090909;
  --surface-1: #141414;
  --surface-2: #1c1c1c;
  --ink: #ffffff;
  --ink-muted: #999999;
  --hairline: #262626;
  --hairline-soft: #1a1a1a;
  --accent-blue: #0099ff;
  --gradient-violet: #6a4cf5;
  --gradient-magenta: #d44df0;
  --gradient-orange: #ff7a3d;
  --gradient-coral: #ff5577;
  --scroll-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #3a3a3a var(--canvas);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv01", "cv05", "cv09", "cv11", "ss03";
  line-height: 1.3;
}

body::before {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: calc(var(--scroll-progress) * 100%);
  height: 2px;
  background: var(--accent-blue);
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--accent-blue);
  color: var(--ink);
}

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

a,
button {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  z-index: 101;
  top: -80px;
  left: 20px;
  padding: 10px 15px;
  border-radius: 100px;
  background: var(--ink);
  color: #000;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  width: min(1199px, calc(100% - 60px));
  min-height: 70px;
  margin: 0 auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--hairline-soft);
  background: rgba(9, 9, 9, 0.82);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #000;
  font-size: 0.85rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

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

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

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.header-cta {
  min-height: 40px;
  padding: 0 16px;
  justify-self: end;
  background: var(--ink);
  color: #000;
}

.header-cta span {
  margin-left: 8px;
}

.header-cta:hover,
.button:hover {
  transform: scale(1.035);
}

.header-cta:active,
.button:active {
  transform: scale(0.97);
}

.section,
footer {
  width: min(1199px, calc(100% - 60px));
  margin-inline: auto;
}

.hero {
  display: grid;
  min-height: calc(100svh - 70px);
  padding: 90px 0 100px;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
}

.eyebrow::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent-blue);
  content: "";
}

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

h1,
h2,
h3 {
  font-weight: 500;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(5.5rem, 13vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.hero-role {
  max-width: 700px;
  margin-bottom: 30px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-intro {
  max-width: 570px;
  margin-bottom: 34px;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 48px;
  padding: 0 20px;
}

.button-primary {
  background: var(--ink);
  color: #000;
}

.button-secondary {
  background: var(--surface-1);
  color: var(--ink);
}

.portrait-wrap {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  isolation: isolate;
}

.portrait-wrap::before {
  position: absolute;
  z-index: -2;
  width: 115%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 72%, rgba(255, 85, 119, 0.9), transparent 36%),
    radial-gradient(circle at 70% 25%, rgba(106, 76, 245, 0.95), transparent 39%),
    radial-gradient(circle at 62% 75%, rgba(0, 153, 255, 0.62), transparent 42%);
  filter: blur(24px);
  content: "";
  animation: atmosphere 9s ease-in-out infinite alternate;
}

.portrait-placeholder {
  position: relative;
  display: grid;
  width: min(345px, 75vw);
  aspect-ratio: 0.82;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: rgba(20, 20, 20, 0.7);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  transform: rotate(2.5deg);
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portrait-wrap:hover .portrait-placeholder {
  transform: rotate(0deg) scale(1.02);
}

.portrait-placeholder::before,
.portrait-placeholder::after {
  position: absolute;
  content: "";
}

.portrait-placeholder::before {
  top: 17px;
  left: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-coral);
  box-shadow: 14px 0 var(--gradient-orange), 28px 0 #22c55e;
}

.portrait-placeholder::after {
  inset: auto -15% -32% 5%;
  height: 66%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(115deg, var(--gradient-violet), var(--gradient-magenta));
  opacity: 0.9;
}

.portrait-placeholder span {
  position: relative;
  z-index: 1;
  font-size: clamp(8rem, 15vw, 11rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.1em;
}

.portrait-placeholder img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-placeholder.has-photo::before,
.portrait-placeholder.has-photo::after {
  display: none;
}

.orbit {
  display: none;
}

.available-badge {
  position: absolute;
  z-index: 3;
  right: -10px;
  bottom: 38px;
  margin: 0;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  background: rgba(28, 28, 28, 0.86);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 0.72rem;
  font-weight: 500;
  backdrop-filter: blur(15px);
}

.available-badge span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.ticker {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 26px;
  padding: 24px 0;
  animation: ticker 22s linear infinite;
}

.ticker-track span {
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.ticker-track i {
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-style: normal;
}

.about,
.skills,
.projects {
  padding-block: 110px;
}

.about,
.projects {
  border-bottom: 1px solid var(--hairline-soft);
}

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

.section-heading h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(45px, 9vw, 120px);
}

.about-lead {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.about-detail > p {
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.quick-facts {
  margin: 38px 0 0;
  border-top: 1px solid var(--hairline);
}

.quick-facts div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.88rem;
}

.quick-facts dt {
  color: var(--ink-muted);
}

.quick-facts dd {
  margin: 0;
  text-align: right;
}

.skills {
  border-bottom: 1px solid var(--hairline-soft);
}

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

.skill-card {
  min-height: 330px;
  padding: 24px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: var(--surface-1);
  transition: transform 250ms ease, background 250ms ease, border-color 250ms ease;
}

.skill-card:hover {
  border-color: var(--hairline);
  background: var(--surface-2);
  transform: translateY(-6px);
}

.skill-card span {
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.skill-card h3 {
  margin: 135px 0 15px;
  font-size: 1.4rem;
  letter-spacing: -0.045em;
}

.skill-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.project-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.project-heading > p {
  max-width: 330px;
  margin-bottom: 5px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 55px 15px;
}

.project-card:first-child {
  grid-column: span 2;
}

.project-visual {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  padding: 24px;
  border-radius: 20px;
  isolation: isolate;
}

.project-card:first-child .project-visual {
  min-height: 530px;
  border-radius: 30px;
}

.project-visual::before {
  position: absolute;
  z-index: -1;
  inset: -25%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.34), transparent 28%),
    radial-gradient(circle at 80% 75%, rgba(0, 0, 0, 0.32), transparent 38%);
  content: "";
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .project-visual::before {
  transform: translate3d(3%, -3%, 0) scale(1.08);
}

.project-visual.magenta {
  background: linear-gradient(135deg, #5423aa 0%, var(--gradient-magenta) 55%, var(--gradient-coral) 100%);
}

.project-visual.violet {
  background: linear-gradient(140deg, #2420a8 0%, var(--gradient-violet) 50%, #9b4dff 100%);
}

.project-visual.orange {
  background: linear-gradient(135deg, #d64a27 0%, var(--gradient-orange) 56%, #ffbd5c 100%);
}

.project-visual > span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  background: rgba(20, 20, 20, 0.25);
  font-size: 0.72rem;
  font-weight: 500;
  backdrop-filter: blur(14px);
}

.mockup {
  position: absolute;
  right: -4%;
  bottom: -8%;
  width: 78%;
  height: 74%;
  padding: 26px;
  border: 8px solid #111;
  border-radius: 20px 20px 0 0;
  background: #f2f2f2;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(-3deg);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .mockup {
  transform: rotate(-1deg) translateY(-10px);
}

.mockup::before {
  display: block;
  width: 42%;
  height: 16px;
  margin: 25px 0 35px;
  border-radius: 100px;
  background: #171717;
  content: "";
}

.mockup i {
  display: block;
  width: 85%;
  height: 9px;
  margin: 13px 0;
  border-radius: 100px;
  background: #c7c7c7;
}

.mockup i:nth-child(2) {
  width: 64%;
}

.mockup i:nth-child(3) {
  width: 74%;
}

.project-copy {
  padding: 20px 5px 0;
}

.project-copy > p:first-child {
  margin-bottom: 8px;
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.project-copy h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
  letter-spacing: -0.045em;
}

.project-copy h3 + p {
  max-width: 580px;
  margin-bottom: 18px;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.project-copy a {
  color: var(--accent-blue);
  font-size: 0.84rem;
  font-weight: 500;
}

.contact {
  position: relative;
  overflow: hidden;
  margin-block: 110px;
  padding: clamp(45px, 8vw, 90px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 22%, rgba(212, 77, 240, 0.95), transparent 27%),
    radial-gradient(circle at 15% 90%, rgba(255, 122, 61, 0.9), transparent 38%),
    linear-gradient(135deg, #3820a8, #8b3ee6 50%, #df4f85);
  isolation: isolate;
}

.contact::after {
  position: absolute;
  z-index: -1;
  right: -15%;
  bottom: -70%;
  width: 65%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.04), 0 0 0 120px rgba(255, 255, 255, 0.025);
  content: "";
}

.contact .eyebrow,
.contact > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.contact .eyebrow::before {
  background: var(--ink);
}

.contact > p:not(.eyebrow) {
  max-width: 560px;
  margin: 28px 0;
  font-size: 1rem;
  line-height: 1.5;
}

.button-light {
  background: var(--ink);
  color: #000;
}

.button-light span {
  margin-left: 9px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 55px;
}

.social-links a {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  background: rgba(20, 20, 20, 0.18);
  font-size: 0.78rem;
  backdrop-filter: blur(10px);
  transition: background 180ms ease;
}

.social-links a:hover {
  background: rgba(20, 20, 20, 0.36);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--hairline-soft);
  color: var(--ink-muted);
  font-size: 0.72rem;
}

footer p {
  margin: 0;
}

footer a:hover {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes atmosphere {
  from {
    transform: rotate(-4deg) scale(0.94);
  }
  to {
    transform: rotate(5deg) scale(1.06);
  }
}

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

@media (max-width: 810px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 75px 0 90px;
  }

  .portrait-wrap {
    min-height: 470px;
  }

  .portrait-wrap::before {
    width: min(520px, 110vw);
  }

  .about-grid,
  .skill-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 45px;
  }

  .skill-card {
    min-height: 270px;
  }

  .skill-card h3 {
    margin-top: 85px;
  }

  .project-card:first-child {
    grid-column: span 1;
  }

  .project-card:first-child .project-visual,
  .project-visual {
    min-height: 380px;
    border-radius: 20px;
  }

  .project-heading {
    display: block;
  }

  .project-heading > p {
    margin-top: 24px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .section,
  footer {
    width: min(100% - 30px, 1199px);
  }

  .site-header {
    min-height: 64px;
  }

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

  .header-cta {
    min-height: 36px;
    padding: 0 13px;
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(5rem, 24vw, 7rem);
  }

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

  .portrait-wrap {
    min-height: 390px;
  }

  .portrait-placeholder {
    width: 270px;
  }

  .available-badge {
    right: 0;
    bottom: 22px;
  }

  .about,
  .skills,
  .projects {
    padding-block: 85px;
  }

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

  .section-heading h2,
  .contact h2 {
    font-size: clamp(3.3rem, 18vw, 5rem);
  }

  .project-card:first-child .project-visual,
  .project-visual {
    min-height: 290px;
  }

  .mockup {
    width: 84%;
    padding: 18px;
  }

  .contact {
    width: calc(100% - 30px);
    margin-block: 70px;
    padding: 45px 24px;
  }

  footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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