:root {
  --ink: #030303;
  --paper: #f4f3ee;
  --muted: #86847c;
  --line: rgba(244, 243, 238, 0.14);
  --accent: #ffffff;
  --accent-dim: rgba(244, 243, 238, 0.55);
  --glow-soft: 0 0 24px rgba(255, 255, 255, 0.25);
  --glow-strong: 0 0 60px rgba(255, 255, 255, 0.3);
  --mono: "Space Mono", monospace;
  --sans: "Sora", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --serif-vi: "Lora", Georgia, serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
}
a {
  color: inherit;
  text-decoration: none;
}

.scroll-progress {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(244, 243, 238, 0.35), #ffffff);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
  transition: width 0.08s linear;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 440px;
  height: 440px;
  margin-top: -220px;
  margin-left: -220px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 45%,
    transparent 72%
  );
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.glow-orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: orb-pulse 10s ease-in-out infinite;
}
.glow-orb-a {
  top: -60px;
  right: 8%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  animation-delay: 0s;
}
.glow-orb-b {
  top: 220px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  animation-delay: -5s;
}

@keyframes orb-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow-orb {
    animation: none;
  }
}

.shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(244, 243, 238, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 243, 238, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
}
.shell::before {
  position: absolute;
  top: -160px;
  right: -100px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(244, 243, 238, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(244, 243, 238, 0.03),
    0 0 0 70px rgba(244, 243, 238, 0.018);
  content: "";
  pointer-events: none;
  transform: translateY(var(--scroll-offset, 0));
  transition: transform 0.2s ease-out;
}
nav,
main,
footer {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}
nav {
  position: sticky;
  top: 18px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 16px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(3, 3, 3, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 20px 50px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
nav:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 20px 50px rgba(0, 0, 0, 0.5),
    var(--glow-soft);
}
.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand span,
.eyebrow,
.label {
  color: var(--muted);
}
.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
}
.nav-links a {
  position: relative;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.nav-links a:hover,
.socials a:hover {
  color: var(--accent);
  text-shadow: var(--glow-soft);
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 140px 0 120px;
  text-align: center;
}
.hero > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow,
.label {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}
.hero-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 36px;
  width: 100%;
  max-width: 920px;
  padding-top: 8px;
}
.hero-aside .identity-card {
  margin-bottom: 0;
}
.hero-aside .label {
  text-align: left;
}
.hero-aside .hero-stats {
  flex: 1 1 260px;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 32px;
}
.socials a {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
}
h1 {
  max-width: 820px;
  margin: 22px 0 28px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(50px, 8.6vw, 118px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
h1 em {
  color: var(--paper);
  font-style: italic;
  font-weight: 400;
  text-shadow: var(--glow-strong);
}
.intro {
  max-width: 400px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
.identity-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(244, 243, 238, 0.04);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}
.identity-card:hover {
  border-color: var(--accent-dim);
  background: rgba(244, 243, 238, 0.09);
  transform: translateY(-3px);
  box-shadow: var(--glow-soft);
}
.identity-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.identity-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--paper);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.04em;
}
.identity-info {
  display: grid;
  gap: 5px;
}
.identity-info strong {
  font-size: 16px;
  font-weight: 600;
}
.identity-info span,
.hero-stats span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.identity-arrow {
  align-self: start;
  color: var(--muted);
  font-size: 20px;
}
.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
}
.status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
  content: "";
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.hero-stats div {
  display: grid;
  gap: 6px;
}
.hero-stats strong {
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  font-weight: 400;
  text-shadow: var(--glow-soft);
}
.arrow-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--paper);
  font-family: var(--mono);
  font-size: 15px;
  transition: text-shadow 0.3s ease, border-color 0.3s ease;
}
.arrow-link:hover {
  border-color: var(--accent);
  text-shadow: var(--glow-soft);
}
.arrow-link span,
.project-arrow {
  color: var(--paper);
  font-size: 22px;
}

section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 30px;
}
h2 {
  margin: 0;
  font-family: var(--serif-vi);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.01em;
}
.index {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}
.projects {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.project {
  position: relative;
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(244, 243, 238, 0.02);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.35s ease;
}
.project:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dim);
  box-shadow: var(--glow-strong);
}
.project:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.project:nth-child(2) {
  background: var(--paper);
  color: var(--ink);
}
.project:nth-child(2) .project-meta {
  color: rgba(5, 5, 5, 0.65);
}
.project:nth-child(2) .project-arrow {
  color: var(--ink);
}
.project-art {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.project:hover .project-art {
  transform: scale(1.04);
}
.project-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 32px 28px;
}
.project-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.project h3 {
  max-width: 460px;
  margin: 14px 0 0;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.02em;
}
.project-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.project-bottom p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.project:nth-child(2) .project-bottom p {
  color: rgba(5, 5, 5, 0.7);
}
.project-arrow {
  font-size: 34px;
  flex-shrink: 0;
  transition: text-shadow 0.3s ease;
}
.project:hover .project-arrow {
  text-shadow: var(--glow-soft);
}

.art-coffee {
  background: #0b0b0b;
}
.art-coffee::before {
  position: absolute;
  right: 16%;
  bottom: -75px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(244, 243, 238, 0.4);
  border-radius: 50%;
  content: "";
}
.art-word {
  position: absolute;
  top: 25px;
  left: 28px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 60px;
  letter-spacing: 0.12em;
}
.art-stamp {
  position: absolute;
  right: 28px;
  top: 31px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.art-cup {
  position: absolute;
  right: 26%;
  bottom: 22px;
  width: 72px;
  height: 62px;
  border: 1px solid var(--paper);
  border-top: 0;
  border-radius: 0 0 35px 35px;
}
.art-cup::before {
  position: absolute;
  top: -8px;
  left: -7px;
  width: 84px;
  height: 15px;
  border: 1px solid var(--paper);
  border-radius: 50%;
  content: "";
}
.art-cup::after {
  position: absolute;
  top: 8px;
  right: -22px;
  width: 22px;
  height: 24px;
  border: 1px solid var(--paper);
  border-left: 0;
  border-radius: 0 20px 20px 0;
  content: "";
}

.art-notes {
  background: #eeece5;
}
.note-line {
  position: absolute;
  left: 12%;
  width: 48%;
  height: 1px;
  background: rgba(5, 5, 5, 0.4);
  transform: rotate(-13deg);
}
.line-one {
  top: 48px;
}
.line-two {
  top: 92px;
  width: 62%;
}
.line-three {
  top: 137px;
  width: 35%;
}
.note-orb {
  position: absolute;
  right: 18%;
  top: 34px;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(5, 5, 5, 0.65);
  border-radius: 50%;
  box-shadow:
    18px 18px 0 -17px #eeece5,
    18px 18px 0 -16px rgba(5, 5, 5, 0.65);
}
.note-label,
.data-label {
  position: absolute;
  right: 28px;
  bottom: 26px;
  color: rgba(5, 5, 5, 0.65);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
}

.art-data {
  background: #0e0e0e;
}
.data-axis {
  position: absolute;
  background: rgba(244, 243, 238, 0.28);
}
.axis-x {
  right: 12%;
  bottom: 35px;
  left: 12%;
  height: 1px;
}
.axis-y {
  top: 30px;
  bottom: 35px;
  left: 18%;
  width: 1px;
}
.data-line {
  position: absolute;
  height: 1px;
  background: var(--paper);
  transform-origin: left center;
}
.data-line-one {
  width: 90px;
  left: 19%;
  top: 126px;
  transform: rotate(-30deg);
}
.data-line-two {
  width: 82px;
  left: 44%;
  top: 74px;
  transform: rotate(47deg);
}
.data-line-three {
  width: 100px;
  left: 64%;
  top: 134px;
  transform: rotate(-52deg);
}
.data-line::after {
  position: absolute;
  right: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: #0e0e0e;
  content: "";
}
.data-label {
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.about-copy {
  max-width: 500px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}
.about-copy strong {
  color: var(--paper);
  font-weight: 500;
}
.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.skills-heading {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  margin-bottom: 8px;
}
.skills-title {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
}
.skills-note {
  color: var(--muted);
  font-family: var(--serif-vi);
  font-size: 20px;
  font-style: italic;
}
.skill-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(244, 243, 238, 0.02);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}
.skill-row:hover {
  border-color: var(--accent-dim);
  background: rgba(244, 243, 238, 0.06);
  transform: translateY(-3px);
  box-shadow: var(--glow-soft);
}
.skill-logo {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.04em;
  overflow: hidden;
  background: rgba(244, 243, 238, 0.04);
}
.skill-logo img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
.skill-logo-python,
.skill-logo-html,
.skill-logo-css,
.skill-logo-js,
.skill-logo-cpp,
.skill-logo-csharp {
  color: var(--paper);
}
.skill-name,
.skill-percent {
  font-family: var(--mono);
  font-size: 12px;
}
.skill-percent {
  color: var(--paper);
}
.skill-track {
  grid-column: 1 / -1;
  height: 4px;
  background: rgba(244, 243, 238, 0.1);
}
.skill-level {
  height: 100%;
  background: var(--paper);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
}
.achievements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.achievement {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.achievement-number {
  display: block;
  margin-bottom: 24px;
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 54px;
  line-height: 1;
  text-shadow: var(--glow-soft);
}
.achievement h3 {
  margin: 0 0 10px;
  font-size: 19px;
}
.achievement p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.contact {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  min-height: 360px;
  margin-top: 28px;
  padding: 72px 48px 84px;
  border: 1px solid var(--line);
  background: linear-gradient(
    125deg,
    rgba(244, 243, 238, 0.06),
    rgba(244, 243, 238, 0.012) 55%,
    transparent
  );
  border-bottom: 1px solid var(--line);
}
.contact::before {
  position: absolute;
  right: -140px;
  bottom: -240px;
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  mix-blend-mode: screen;
  content: "";
  pointer-events: none;
}
.contact::after {
  position: absolute;
  right: 38px;
  top: 36px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.55);
  content: "";
}
.contact-number {
  position: absolute;
  top: 30px;
  right: 58px;
  color: rgba(244, 243, 238, 0.3);
  font-family: var(--serif);
  font-size: 99px;
  line-height: 1;
}
.contact-copy h2 {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}
.contact-copy p {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.contact h2 {
  max-width: 650px;
}
.contact h2 span {
  color: var(--paper);
  font-style: italic;
  text-shadow: var(--glow-soft);
}
.contact-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--paper);
  color: var(--paper);
  font-family: var(--mono);
  font-size: clamp(14px, 1.6vw, 18px);
  transition: text-shadow 0.3s ease;
}
.contact-link:hover {
  text-shadow: var(--glow-strong);
}
.contact-link span {
  font-size: 22px;
}
.contact-actions {
  position: relative;
  z-index: 1;
  min-width: 280px;
}
.contact-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact .socials {
  margin-top: 26px;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

@media (max-width: 720px) {
  nav,
  main,
  footer {
    width: min(100% - 32px, 560px);
  }
  .nav-links {
    gap: 14px;
  }
  .hero {
    padding: 90px 0 80px;
    gap: 34px;
  }
  .hero-aside {
    flex-direction: column;
  }
  .about-grid,
  .achievements,
  .contact {
    grid-template-columns: 1fr;
  }
  .project {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .project-art {
    height: 200px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .about-grid {
    gap: 35px;
  }
  .contact-link {
    align-self: start;
  }
  .contact {
    min-height: 0;
    margin-top: 12px;
    padding: 70px 24px 64px;
    gap: 20px;
  }
  .contact-actions {
    min-width: 0;
    margin-top: 34px;
  }
  .contact-number {
    top: 24px;
    right: 24px;
    font-size: 72px;
  }
  .contact::after {
    right: 25px;
    top: 25px;
  }
  .modal-panel {
    padding: 38px 24px 28px;
  }
  .modal-details {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 430px) {
  .skills {
    grid-template-columns: 1fr;
  }
}

.detail-page {
  min-height: 100vh;
}
.detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.back-link {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.back-link:hover {
  color: var(--accent);
}
.detail-hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  padding: 100px 0 70px;
}
.detail-hero:has(> :nth-child(2)) {
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.detail-hero h1 {
  max-width: 100%;
  margin: 20px 0 0;
  font-family: var(--serif-vi);
  font-size: clamp(52px, 6.5vw, 88px);
  line-height: 1.12;
  white-space: normal;
}
.detail-hero h1 em {
  font-family: var(--serif-vi);
}
.detail-summary {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}
.detail-art {
  min-height: 430px;
  margin-bottom: 70px;
  border: 1px solid var(--line);
}
.detail-art .art-word {
  font-size: clamp(70px, 12vw, 150px);
}
.detail-art .art-cup {
  transform: scale(1.7);
  transform-origin: bottom right;
}
.detail-art .note-orb {
  transform: scale(1.8);
  transform-origin: center;
}
.detail-art .data-line-one {
  width: 210px;
}
.detail-art .data-line-two {
  width: 190px;
}
.detail-art .data-line-three {
  width: 230px;
}
.detail-info {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding: 50px 0 100px;
  border-top: 1px solid var(--line);
}
.detail-info h2 {
  font-size: 45px;
}
.detail-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}
.detail-meta {
  display: grid;
  gap: 18px;
  align-content: start;
}
.detail-meta div {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.detail-meta span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}
.detail-meta strong {
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
}
.detail-cta {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
}
.detail-cta span {
  font-size: 20px;
}

@media (max-width: 720px) {
  .detail-hero,
  .detail-info {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .detail-hero {
    padding: 72px 0 50px;
  }
  .detail-art {
    min-height: 300px;
    margin-bottom: 45px;
  }
  .detail-info {
    padding: 35px 0 70px;
  }
}

/* ============================================================
   MOBILE FIX PATCH — responsive hardening cho điện thoại
   (bổ sung, không sửa rule gốc, chỉ ghi đè ở breakpoint nhỏ)
   ============================================================ */

/* ---- Tablet / điện thoại ngang: 600px ---- */
@media (max-width: 600px) {
  nav {
    padding: 13px 18px;
    border-radius: 24px;
  }
  .brand {
    font-size: 19px;
  }
  .nav-links {
    gap: 16px;
    font-size: 13px;
  }
  .hero {
    padding: 100px 0 70px;
    gap: 30px;
  }
  h1 {
    margin: 16px 0 20px;
    font-size: clamp(38px, 11vw, 64px);
    line-height: 1.04;
  }
  .intro {
    font-size: 16px;
  }
  .hero-aside {
    gap: 16px;
  }
  .identity-card {
    width: 100%;
    grid-template-columns: 46px 1fr auto;
    padding: 12px;
  }
  .identity-mark {
    width: 46px;
    height: 46px;
    font-size: 21px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 30px;
    padding-top: 14px;
  }
  .hero-stats strong {
    font-size: 25px;
  }
  .socials {
    gap: 8px 14px;
    margin-top: 22px;
  }
  .about-copy {
    font-size: 17px;
  }
  .skills-note {
    font-size: 17px;
  }
  .skill-row {
    grid-template-columns: 28px 1fr auto;
    padding: 11px;
    gap: 8px;
  }
  .skill-logo {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }
  .skill-name {
    font-size: 12px;
  }
  .skill-percent {
    font-size: 12px;
  }
  .contact-number {
    font-size: 54px;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 20px 0;
    font-size: 11px;
  }
}

/* ---- Điện thoại nhỏ: 400px (iPhone SE, Mini, Android nhỏ) ---- */
@media (max-width: 400px) {
  nav,
  main,
  footer {
    width: min(100% - 24px, 560px);
  }
  nav {
    padding: 11px 14px;
  }
  .brand {
    font-size: 18px;
  }
  .nav-links {
    gap: 12px;
    font-size: 12px;
  }
  .hero {
    padding: 84px 0 56px;
    gap: 24px;
  }
  h1 {
    font-size: clamp(32px, 12vw, 48px);
  }
  .eyebrow,
  .label {
    font-size: 15px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
  }
  .hero-stats strong {
    font-size: 21px;
  }
  .identity-card {
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    padding: 10px;
  }
  .identity-mark {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .identity-info strong {
    font-size: 15px;
  }
  .status {
    font-size: 12px;
  }
  .about-grid {
    gap: 26px;
  }
  .skill-row {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }
  .skill-logo {
    display: none;
  }
  .skill-track {
    grid-column: 1 / -1;
  }
  .contact {
    padding: 56px 18px 48px !important;
  }
  .contact-number {
    font-size: 40px;
    top: 18px;
    right: 18px;
  }
  .contact-copy h2 {
    font-size: 31px;
  }
}

/* ---- Hạ cỡ chữ heading contact ở mobile nói chung (720px đã set 1 cột nhưng
   chưa chỉnh font-size, h2 trong .contact-copy dễ tràn khung trên máy hẹp) ---- */
@media (max-width: 720px) {
  .contact-copy h2 {
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.12;
  }
  .detail-hero h1 {
    font-size: clamp(34px, 10vw, 60px);
  }
}

/* ---- Chặn tràn ngang toàn trang trên mọi kích thước điện thoại ---- */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
img, svg {
  max-width: 100%;
  height: auto;
}

/* ---- Vùng chạm tối thiểu 40px cho link/nav trên màn cảm ứng ---- */
@media (max-width: 600px) {
  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }
}
