:root {
  --bg: #0f1115;
  --panel: #15191f;
  --ink: #ffffff;
  --muted: #848b98;
  --line: rgba(255, 255, 255, 0.09);
  --blue: #77d8ff;
  --blue-deep: #09283a;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg);
  background-size: 245px 245px, 245px 245px, auto;
  font-family: "Segoe UI", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.72) 55%, rgba(0,0,0,0.48) 100%);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(100% - 48px, var(--max));
  height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transform: translateX(-50%);
  mix-blend-mode: normal;
}

.brand {
  font-family: "Arial Black", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.35rem, 2.3vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav a,
.email-link,
.footer a {
  transition: color 180ms ease;
}

.nav a:hover,
.email-link:hover,
.footer a:hover {
  color: var(--ink);
}

.email-link {
  justify-self: end;
  color: #6f7786;
  font-size: 0.95rem;
  font-weight: 600;
}

.section-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 72px);
}

.hero {
  min-height: 826px;
  padding-top: 96px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(340px, 470px) minmax(220px, 1fr);
  gap: clamp(28px, 4vw, 80px);
  align-items: center;
}

.hero-side {
  display: grid;
  gap: clamp(54px, 8vh, 76px);
}

.hero-left {
  text-align: right;
}

.hero-right {
  text-align: left;
}

.meta-block span {
  display: block;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.meta-block p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  font-weight: 500;
  letter-spacing: 0;
}

.hero-title-block h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.15rem);
  line-height: 1.1;
}

.portrait-shell {
  position: relative;
  display: grid;
  place-items: center;
}

.portrait-ring {
  width: min(100%, 466px);
  aspect-ratio: 0.66;
  padding: 60px 8px 36px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.20), rgba(12,17,22,0.88) 28%, rgba(7,24,32,0.92)),
    radial-gradient(circle at 50% 0%, rgba(119,216,255,0.32), transparent 44%);
  border: 1px solid rgba(129, 229, 255, 0.24);
  box-shadow: inset 0 22px 32px rgba(255,255,255,0.08), inset 0 -26px 44px rgba(6, 73, 104, 0.36);
  overflow: hidden;
}

.portrait-ring img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  object-position: 50% 45%;
}

.section-heading {
  text-align: center;
  margin-bottom: 52px;
}

.section-heading p {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.section-heading h2,
.footer h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.05;
}

.skills {
  min-height: 650px;
  padding-block: 86px 150px;
}

.skill-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(20px, 3vw, 46px);
}

.skill-card {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 42px;
  text-align: center;
}

.skill-pill {
  width: min(100%, 164px);
  aspect-ratio: 0.72;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(15,17,21,0.92) 42%, rgba(7,24,32,0.94)),
    radial-gradient(circle at 50% 4%, color-mix(in srgb, var(--accent), transparent 58%), transparent 46%);
  border: 1px solid color-mix(in srgb, var(--accent), transparent 52%);
  box-shadow: inset 0 18px 24px rgba(255,255,255,0.07), inset 0 -24px 36px rgba(15, 105, 142, 0.34), 0 8px 24px rgba(0,0,0,0.22);
}

.app-icon {
  width: 86px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #050505;
  color: #bdbdbd;
  font-size: clamp(2.1rem, 3.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
}

.app-icon.capcut {
  color: #fff;
  font-family: "Arial Black", "Segoe UI", Arial, sans-serif;
}

.skill-pill strong {
  font-size: clamp(1.55rem, 2.7vw, 2.15rem);
  line-height: 1;
}

.skill-card p {
  margin: 0;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  font-weight: 500;
}

.about {
  min-height: 820px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(42px, 8vw, 120px);
  align-items: center;
  padding-block: 78px 110px;
}

.about-visual {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  justify-items: center;
}

.vertical-name {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 94%;
  margin: 0;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left top;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 800;
  white-space: nowrap;
}

.about-arch {
  width: min(100%, 560px);
  height: 720px;
  padding: 0 22px;
  display: grid;
  align-items: end;
  border-radius: 280px 280px 0 0;
  background:
    linear-gradient(180deg, rgba(115,216,255,0.22), rgba(15,17,21,0.7) 18%, rgba(15,17,21,0.52)),
    radial-gradient(circle at 50% 12%, rgba(126,217,255,0.24), transparent 50%);
  border: 1px solid rgba(117, 217, 255, 0.28);
  box-shadow: inset 0 18px 24px rgba(255,255,255,0.07), inset 0 -28px 44px rgba(6, 72, 103, 0.32);
  overflow: hidden;
}

.about-arch img {
  width: 112%;
  max-width: none;
  margin-left: -7%;
  object-fit: contain;
}

.about-copy {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.38rem);
  font-weight: 700;
  line-height: 1.55;
}

.experience-orb {
  width: min(65vw, 390px);
  aspect-ratio: 1;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(8,15,20,0.95) 45%, rgba(7,24,32,0.98)),
    radial-gradient(circle at 50% 2%, rgba(119,216,255,0.34), transparent 48%);
  border: 1px solid rgba(119,216,255,0.24);
  box-shadow: inset 0 18px 28px rgba(255,255,255,0.07), inset 0 -28px 44px rgba(8, 89, 124, 0.36);
}

.experience-orb strong {
  color: var(--ink);
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 0.9;
}

.experience-orb span {
  color: var(--ink);
  font-size: clamp(0.95rem, 1.3vw, 1.22rem);
  text-transform: uppercase;
}

.about-copy h2 {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

.about-copy p {
  margin: 6px 0;
  max-width: 580px;
}

.button-link {
  margin-top: 34px;
  padding: 0 0 8px;
  color: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.38);
  font-size: 1rem;
  font-weight: 700;
}

.work {
  padding-block: 72px 128px;
}

.video-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  margin-bottom: 52px;
}

.video-feature video {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  background: #050607;
  border: 1px solid rgba(255,255,255,0.09);
}

.video-feature h3 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 3.1rem);
  line-height: 1.05;
}

.video-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
}

.work-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: #07090c;
}

.work-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.work-card span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.55);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer {
  min-height: 640px;
  display: grid;
  align-content: space-between;
  padding-block: 92px 56px;
}

.footer h2 {
  justify-self: center;
  margin-top: 0;
}

.social-line {
  display: grid;
  grid-template-columns: auto minmax(120px, 340px) repeat(3, 40px);
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.social-line span {
  color: #6f7786;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.social-line i {
  height: 1px;
  background: rgba(255,255,255,0.28);
}

.social {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-weight: 800;
}

.instagram {
  background: #ef3d8f;
}

.linkedin {
  background: #1f73ff;
}

.mail {
  background: #303030;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: end;
}

.footer-bottom nav {
  display: flex;
  gap: 28px;
  color: #5f6877;
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-brand {
  font-size: 1.55rem;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 0 8px rgba(255,255,255,0.42);
}

.footer-bottom p {
  justify-self: end;
  margin: 0;
  font-weight: 700;
}

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

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

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

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

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

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 120px;
    text-align: center;
  }

  .hero-left,
  .hero-right {
    text-align: center;
  }

  .hero-left {
    order: 2;
  }

  .portrait-shell {
    order: 1;
  }

  .hero-right {
    order: 3;
  }

  .hero-side {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

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

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

  .about-visual {
    min-height: 660px;
  }

  .video-feature {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-bottom p {
    justify-self: center;
  }
}

@media (max-width: 720px) {
  body {
    background-size: 120px 120px, 120px 120px, auto;
  }

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

  .email-link {
    display: none;
  }

  .hero {
    padding-top: 92px;
  }

  .portrait-ring {
    width: min(100%, 330px);
    padding-top: 38px;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .meta-block span {
    font-size: 1.25rem;
  }

  .skills {
    padding-block: 70px 96px;
  }

  .skill-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 18px;
  }

  .skill-card {
    gap: 22px;
  }

  .skill-pill {
    width: min(100%, 130px);
    gap: 22px;
  }

  .app-icon {
    width: 62px;
    height: 60px;
    border-radius: 12px;
  }

  .about-visual {
    min-height: 520px;
  }

  .about-arch {
    height: 520px;
  }

  .vertical-name {
    left: 5px;
    top: 90%;
    font-size: 1.55rem;
  }

  .work-strip {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 460px;
  }

  .social-line {
    grid-template-columns: repeat(3, 40px);
  }

  .social-line span,
  .social-line i {
    display: none;
  }

  .footer-bottom nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }
}
