/* =========================================================
   Ibrohim Rahmonov — Personal Site
   Design: minimal · 3D · color-harmony (indigo → cyan aurora)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #08080b;
  --bg-2:      #0c0c12;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:      #f3f3f7;
  --text-dim:  #a2a2b2;
  --text-mut:  #6a6a7a;

  --accent:    #7c6cff;   /* periwinkle indigo */
  --accent-2:  #22d3ee;   /* cyan              */
  --accent-3:  #b388ff;   /* soft violet       */
  --accent-rgb: 124, 108, 255;

  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-3) 45%, var(--accent-2) 100%);

  --shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.7);
  --glow:   0 0 40px -8px rgba(var(--accent-rgb), 0.55);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1180px;
}

[data-theme="light"] {
  --bg:        #f4f4f7;
  --bg-2:      #ececef;
  --surface:   rgba(10, 10, 20, 0.03);
  --surface-2: rgba(10, 10, 20, 0.055);
  --border:    rgba(10, 10, 25, 0.10);
  --border-2:  rgba(10, 10, 25, 0.16);

  --text:      #121218;
  --text-dim:  #4a4a57;
  --text-mut:  #8a8a97;

  --accent:    #5b46f0;
  --accent-2:  #0891b2;
  --accent-3:  #7c4dff;
  --accent-rgb: 91, 70, 240;

  --shadow: 0 24px 60px -22px rgba(40, 40, 90, 0.28);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(var(--accent-rgb), 0.35); color: #fff; }

/* ---------- Layout helpers ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 160px) clamp(20px, 5vw, 40px);
  position: relative;
  z-index: 2;
}

.section__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 4px 12px;
  display: inline-flex;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* =========================================================
   Preloader
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.preloader__logo {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 700; letter-spacing: 0.05em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pulse 1.6s var(--ease) infinite;
}
.preloader__bar {
  width: 180px; height: 2px; background: var(--border); border-radius: 100px; overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 0%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.9);
  transition: width 0.3s ease;
}
.preloader__pct {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-mut);
}
@keyframes pulse { 0%,100%{opacity:.55; transform:scale(.97)} 50%{opacity:1; transform:scale(1.03)} }

/* =========================================================
   Scroll progress
   ========================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--grad); z-index: 200;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.8);
}

/* =========================================================
   3D scene canvas
   ========================================================= */
#scene {
  position: fixed; inset: 0; z-index: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
}
.scene-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, transparent 0%, var(--bg) 78%),
    linear-gradient(to bottom, transparent 40%, var(--bg) 92%);
  transition: background 0.6s var(--ease);
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 44px);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, border-color 0.4s, padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border-bottom: 1px solid var(--border);
  padding: 12px clamp(20px, 5vw, 44px);
}
.nav__logo { display: flex; align-items: center; gap: 6px; position: relative; }
.nav__logo-mark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.04em;
}
.nav__logo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: var(--glow); }

.nav__links { display: flex; gap: 34px; }
.nav__link {
  font-size: 0.92rem; color: var(--text-dim); position: relative; padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--grad); transition: width 0.35s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 0.78rem;
  border: 1px solid var(--border-2); border-radius: 100px; padding: 6px 12px;
  color: var(--text-mut); transition: border-color 0.3s;
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-toggle__opt.is-active { color: var(--accent); }
.lang-toggle__sep { opacity: 0.4; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-2); display: grid; place-items: center;
  color: var(--text-dim); transition: border-color 0.3s, color 0.3s, transform 0.4s var(--ease);
  position: relative;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--text); transform: rotate(18deg); }
.theme-toggle__icon { position: absolute; transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
[data-theme="dark"]  .theme-toggle__sun  { opacity: 0; transform: scale(0.3) rotate(-90deg); }
[data-theme="dark"]  .theme-toggle__moon { opacity: 1; transform: scale(1); }
[data-theme="light"] .theme-toggle__sun  { opacity: 1; transform: scale(1); }
[data-theme="light"] .theme-toggle__moon { opacity: 0; transform: scale(0.3) rotate(90deg); }

.nav__burger { display: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-2); position: relative; }
.nav__burger span { position: absolute; left: 10px; width: 18px; height: 1.6px; background: var(--text); transition: transform 0.35s var(--ease), opacity 0.3s; }
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.95rem; font-weight: 500;
  padding: 13px 24px; border-radius: 100px;
  transition: transform 0.3s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(var(--accent-rgb), 0.6);
}
.btn--primary:hover { box-shadow: 0 16px 44px -8px rgba(var(--accent-rgb), 0.8); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost {
  border: 1px solid var(--border-2); color: var(--text); background: var(--surface);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--accent); background: var(--surface-2); }
.btn--ghost:hover svg { transform: translateY(3px); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}
.hero__content { max-width: 780px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 100px; padding: 7px 15px;
  background: var(--surface); backdrop-filter: blur(8px);
  margin-bottom: 28px;
}
.hero__ping { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 var(--accent-2); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0%{box-shadow:0 0 0 0 rgba(34,211,238,.55)} 70%{box-shadow:0 0 0 10px rgba(34,211,238,0)} 100%{box-shadow:0 0 0 0 rgba(34,211,238,0)} }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 7.5rem);
  font-weight: 700; line-height: 0.94; letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero__title-line { display: block; }
.hero__title-line--accent {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.hero__role {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-display); font-size: clamp(1.1rem, 3vw, 1.7rem); font-weight: 500;
  margin-bottom: 26px;
}
.hero__role-static { color: var(--text-dim); }
.hero__role-typed { color: var(--accent); }
.hero__caret { width: 3px; height: 1.3em; background: var(--accent-2); border-radius: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__desc {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: var(--text-dim); max-width: 640px; margin-bottom: 38px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero__socials { display: flex; gap: 12px; }
.hero__socials a {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border-2); display: grid; place-items: center;
  color: var(--text-dim); background: var(--surface); backdrop-filter: blur(8px);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.hero__socials a:hover { color: var(--text); border-color: var(--accent); transform: translateY(-4px); background: var(--surface-2); }

.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-mut);
}
.hero__scroll-line { width: 1px; height: 44px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--accent-2); animation: scrolldown 1.8s var(--ease) infinite; }
@keyframes scrolldown { 0%{top:-50%} 100%{top:100%} }

/* =========================================================
   About
   ========================================================= */
.about__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.about__text p { color: var(--text-dim); margin-bottom: 18px; font-size: 1.02rem; }
.about__lead { font-size: clamp(1.15rem, 2.6vw, 1.5rem) !important; color: var(--text) !important; font-family: var(--font-display); font-weight: 500; line-height: 1.35; margin-bottom: 24px !important; }

.about__stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 38px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: 0.85rem; color: var(--text-mut); }

.about__card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 22px;
  padding: 30px; background: var(--surface-2);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}
.about__card-glow { position: absolute; top: -40%; right: -30%; width: 260px; height: 260px; background: radial-gradient(circle, rgba(var(--accent-rgb),0.35), transparent 70%); filter: blur(20px); pointer-events: none; }
.about__card-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--border); position: relative; }
.about__card-row:last-child { border-bottom: none; }
.about__card-key { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-mut); text-transform: uppercase; letter-spacing: 0.05em; }
.about__card-val { font-size: 0.96rem; font-weight: 500; text-align: right; }
.about__card-val--live { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping2 1.8s infinite; }
@keyframes ping2 { 0%{box-shadow:0 0 0 0 rgba(34,211,238,.5)} 70%{box-shadow:0 0 0 7px rgba(34,211,238,0)} 100%{box-shadow:0 0 0 0 rgba(34,211,238,0)} }

/* =========================================================
   Skills
   ========================================================= */
.skills__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.skill-cat {
  position: relative;
  border: 1px solid var(--border); border-radius: 20px; padding: 28px;
  background: var(--surface-2);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
  transform-style: preserve-3d;
}
.skill-cat:hover { border-color: var(--border-2); background: var(--surface-2); }
.skill-cat__icon { font-size: 1.8rem; margin-bottom: 14px; filter: drop-shadow(0 4px 10px rgba(var(--accent-rgb),0.4)); }
.skill-cat__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 16px; }
.skill-cat__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-cat__tags span {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px;
  background: var(--bg-2); transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.skill-cat__tags span:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* =========================================================
   Projects
   ========================================================= */
.projects__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.project {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 24px;
  padding: 32px; background: var(--surface-2);
  display: flex; flex-direction: column; gap: 16px; min-height: 340px;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
  transform-style: preserve-3d;
}
.project:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.project__glow { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none; background: radial-gradient(500px circle at var(--mx,50%) var(--my,0%), rgba(var(--accent-rgb),0.14), transparent 40%); }
.project:hover .project__glow { opacity: 1; }

.project__top { display: flex; align-items: center; justify-content: space-between; }
.project__index { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-mut); }
.project__badge {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  border: 1px solid var(--border-2); border-radius: 100px; padding: 5px 12px;
  display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim);
}
.project__badge--live { color: var(--accent-2); border-color: rgba(34,211,238,0.3); }

.project__title { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: -0.01em; }
.project__desc { color: var(--text-dim); font-size: 0.98rem; flex-grow: 1; }
.project__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.project__tags span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-mut); border: 1px solid var(--border); border-radius: 7px; padding: 4px 9px; }
.project__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--border); }
.project__year { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-mut); }

.projects__more {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 40px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  border: 1px solid var(--border-2); border-radius: 100px; padding: 13px 26px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.projects__more:hover { border-color: var(--accent); background: var(--surface); }
.projects__more:hover svg { transform: translate(3px, -3px); }
.projects__more svg { transition: transform 0.35s var(--ease); }

/* =========================================================
   Journey / timeline
   ========================================================= */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--accent), var(--accent-2), transparent); }
.timeline__item { position: relative; padding-bottom: 46px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: -34px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb),0.7); }
.timeline__dot--now { background: var(--grad); border-color: transparent; animation: pulse 1.8s var(--ease) infinite; }
.timeline__date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-2); }
.timeline__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin: 6px 0 8px; }
.timeline__text { color: var(--text-dim); font-size: 0.98rem; }

/* =========================================================
   Contact
   ========================================================= */
.contact { text-align: center; }
.contact__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.contact .section__num { margin-bottom: 24px; }
.contact__title { font-family: var(--font-display); font-size: clamp(2.2rem, 7vw, 4.6rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 24px; }
.contact__title span { display: block; }
.contact__title--accent { background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
.contact__desc { color: var(--text-dim); font-size: 1.1rem; max-width: 500px; margin-bottom: 36px; }
.contact__mail {
  font-family: var(--font-display); font-size: clamp(1.1rem, 3.5vw, 1.9rem); font-weight: 500;
  position: relative; padding-bottom: 6px; margin-bottom: 40px;
}
.contact__mail::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform: scaleX(0.15); transform-origin: left; transition: transform 0.5s var(--ease); }
.contact__mail:hover::after { transform: scaleX(1); }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact__link {
  font-size: 0.92rem; color: var(--text-dim);
  border: 1px solid var(--border-2); border-radius: 100px; padding: 10px 20px;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.contact__link:hover { color: var(--text); border-color: var(--accent); background: var(--surface); transform: translateY(-3px); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: 32px clamp(20px, 5vw, 40px);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-mut);
}
.footer__name { font-family: var(--font-display); font-weight: 600; color: var(--text-dim); }

/* =========================================================
   Back to top
   ========================================================= */
.to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(var(--accent-rgb), 0.7);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.9);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { transform: translateY(-4px) scale(1.05); }

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 880px) {
  .about__grid { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 30px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; z-index: 90; }
  .nav__link { font-size: 1.4rem; font-family: var(--font-display); }
  .nav__burger { display: block; }
}
@media (max-width: 560px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .nav__links .nav__link { font-size: 1.25rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
