:root {
  --bg: #070c14;
  --bg-alt: #0a1220;
  --surface: #0f1a2b;
  --surface-raised: #101d30;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.32);
  --text: #e8eef8;
  --text-soft: #c9d5e5;
  --muted: #9daec6;
  --muted-dim: #7f92aa;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --accent-ink: #05221d;
  --accent-soft: rgba(94, 234, 212, 0.1);
  --gradient: linear-gradient(110deg, #5eead4 8%, #a5b4fc 52%, #818cf8 96%);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;

  --container: 1120px;
  --header-h: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

::selection {
  background: rgba(94, 234, 212, 0.28);
  color: #fff;
}

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 14px 34px -16px rgba(94, 234, 212, 0.55);
}

.btn--accent:hover {
  background: #8bf6e7;
  color: var(--accent-ink);
  box-shadow: 0 18px 40px -16px rgba(94, 234, 212, 0.65);
}

.btn--outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn--small {
  padding: 0.58rem 1.05rem;
  font-size: 0.85rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 12, 20, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 650;
}

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

.brand__monogram {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(94, 234, 212, 0.16), rgba(129, 140, 248, 0.16));
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__text {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.brand__text span {
  color: var(--muted);
  font-weight: 450;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.9rem);
  margin-left: auto;
}

.nav__links a {
  position: relative;
  display: inline-block;
  padding-block: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

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

.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav__links a[aria-current="true"] {
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.75rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 28% 18%, #000 0%, transparent 74%);
  mask-image: radial-gradient(ellipse 75% 70% at 28% 18%, #000 0%, transparent 74%);
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__glow--one {
  top: -260px;
  right: -140px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.16) 0%, rgba(94, 234, 212, 0) 66%);
}

.hero__glow--two {
  bottom: -340px;
  left: -180px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.14) 0%, rgba(129, 140, 248, 0) 68%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.06);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.14);
}

.status-dot--pulse {
  animation: pulse 2.6s ease-out infinite;
}

.hero__title {
  max-width: 12ch;
  margin-top: 1.4rem;
  font-size: clamp(2.9rem, 6.4vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero__title-grad {
  display: inline-block;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--accent);
  -webkit-text-fill-color: transparent;
}

.hero__role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: clamp(0.74rem, 1.5vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.hero__text {
  max-width: 36rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.1rem;
}

.hero__meta {
  display: grid;
  gap: 0.65rem;
  margin-top: 2.2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero__meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}

.hero__meta svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--accent);
}

.hero__meta a {
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.hero__meta a:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

/* Avatar placeholder */
.hero__avatar {
  display: grid;
  justify-items: center;
  gap: 1.15rem;
}

.avatar-frame {
  position: relative;
  width: min(320px, 76vw);
  aspect-ratio: 1;
  padding: 2px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #5eead4, #818cf8 42%, #5eead4 78%, #a5b4fc 100%);
  box-shadow: 0 40px 100px -40px rgba(94, 234, 212, 0.4);
}

.avatar-frame__inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #16233a 0%, #0a1220 70%);
}

.avatar-frame__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 72%);
}

.avatar-frame__monogram {
  position: relative;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--accent);
  -webkit-text-fill-color: transparent;
  font-size: clamp(3.4rem, 8vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.avatar-frame__badge {
  position: absolute;
  bottom: 5%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(94, 234, 212, 0.4);
  border-radius: 999px;
  background: #0a1220;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.9);
}

.hero__avatar-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-dim);
  font-size: 0.78rem;
  text-align: center;
}

.hero__stack {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: 1.4rem 2.4rem;
  border-top: 1px solid var(--line);
}

.hero__stack-label {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero__stack-list li {
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.05);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section--alt {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
}

.section__head {
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section__kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section__kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.section__title {
  margin-top: 0.95rem;
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section__lead {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.05rem);
  line-height: 1.72;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about__text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}

.about__text p + p {
  margin-top: 1.15rem;
}

.about__text p:first-child {
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.4vw, 1.1rem);
}

.facts {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.facts::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
}

.facts__title {
  margin-bottom: 1.15rem;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.facts dl {
  display: grid;
  gap: 1rem;
}

.facts__row + .facts__row {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts dd {
  margin-top: 0.25rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.facts__muted {
  color: var(--muted-dim);
  font-size: 0.85rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.skill-card {
  padding: clamp(1.35rem, 2.4vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.38);
  background: var(--surface-raised);
}

.skill-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.skill-card__title {
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.skill-card__text {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.skill-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}

.skill-card__tags li {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.05);
  color: #a9bad0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
}

.project-grid > li {
  display: flex;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  padding: clamp(1.4rem, 2.6vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  transition: transform 0.22s ease, border-color 0.22s ease,
    background-color 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(94, 234, 212, 0.4);
  background: var(--surface-raised);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(94, 234, 212, 0.08);
}

.project-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-card__number {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.project-card__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover .project-card__arrow {
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(2px, -2px);
}

.project-card__title {
  margin-top: 1.15rem;
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.project-card__text {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.65;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.15rem;
}

.project-card__tags li {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.05);
  color: #a9bad0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card__link span {
  transition: transform 0.2s ease;
}

.project-card:hover .project-card__link span {
  transform: translateX(3px);
}

#contact {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.contact__card {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 6vw, 4rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 50% 0%, #12243a 0%, #0b1524 55%, #09111d 100%);
  text-align: center;
}

.contact__glow {
  position: absolute;
  top: -180px;
  left: 50%;
  width: 560px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.18) 0%, rgba(94, 234, 212, 0) 68%);
  transform: translateX(-50%);
  pointer-events: none;
}

.contact__card > :not(.contact__glow) {
  position: relative;
  z-index: 1;
}

.contact__kicker {
  display: inline-flex;
  justify-content: center;
}

.contact__title {
  margin-top: 1rem;
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.contact__text {
  max-width: 38rem;
  margin: 1.1rem auto 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.05rem);
  line-height: 1.75;
}

.contact__email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  max-width: 100%;
  margin-top: 2.1rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: clamp(0.82rem, 2.2vw, 1rem);
  font-weight: 650;
  box-shadow: 0 18px 44px -20px rgba(94, 234, 212, 0.65);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.contact__email:hover {
  background: #8bf6e7;
  color: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: 0 22px 50px -20px rgba(94, 234, 212, 0.75);
}

.contact__email svg {
  flex: 0 0 auto;
}

.contact__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2rem;
}

.contact__social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-soft);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease,
    transform 0.2s ease;
}

.contact__social a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-3px);
}

.contact__note {
  margin-top: 1.7rem;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: 1.8rem;
  color: var(--muted-dim);
  font-size: 0.82rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.site-footer a {
  color: #b9c8da;
}

.site-footer a:hover {
  color: var(--accent);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(94, 234, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0);
  }
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.75rem;
  }

  .hero__avatar {
    justify-items: start;
  }

  .avatar-frame {
    width: min(280px, 70vw);
  }

  .hero__avatar-note {
    justify-content: flex-start;
  }

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

  .facts {
    max-width: 34rem;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 68px;
  }

  .nav {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
    min-height: 0;
    padding-block: 0.7rem;
  }

  .brand {
    margin-right: auto;
  }

  .nav__links {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .nav__links a {
    font-size: 0.85rem;
  }

  .nav__cta {
    order: 2;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero__meta {
    font-size: 0.83rem;
  }

  .hero__stack {
    padding-bottom: 2rem;
  }

  .section {
    scroll-margin-top: 7.5rem;
  }

  .contact__note {
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 2rem, var(--container));
  }

  .brand__text {
    font-size: 0.9rem;
  }

  .nav__cta {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }

  .nav__links a {
    font-size: 0.82rem;
  }

  .hero__actions {
    gap: 0.65rem;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .hero__title {
    font-size: clamp(2.5rem, 13vw, 3.4rem);
  }

  .hero__role {
    gap: 0.45rem;
    letter-spacing: 0.12em;
  }

  .avatar-frame {
    width: min(228px, 64vw);
  }

  .avatar-frame__badge {
    font-size: 0.62rem;
    padding: 0.34rem 0.65rem;
  }

  .hero__avatar-note {
    font-size: 0.74rem;
  }

  .hero__stack {
    gap: 0.6rem;
  }

  .contact__card {
    border-radius: 20px;
    padding: 1.75rem 1.2rem;
  }

  .contact__email {
    width: 100%;
    padding: 0.9rem 0.9rem;
    font-size: 0.82rem;
    word-break: break-word;
  }

  .contact__social a {
    width: 44px;
    height: 44px;
  }

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

@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;
  }

  .btn:hover,
  .skill-card:hover,
  .project-card:hover,
  .contact__social a:hover,
  .contact__email:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .hero__grid-lines,
  .hero__glow,
  .contact__glow,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
