/* =========================================================
   Deniz Dursun — Premium Personal Hub
   Design system + components
   ========================================================= */

:root {
  /* Palette */
  --bg:            #08080b;
  --bg-2:          #0c0c11;
  --surface:       rgba(255, 255, 255, 0.035);
  --surface-2:     rgba(255, 255, 255, 0.06);
  --line:          rgba(255, 255, 255, 0.09);
  --line-strong:   rgba(255, 255, 255, 0.16);

  --text:          #f2f2f5;
  --muted:         #9a9aa6;
  --muted-2:       #6e6e7a;

  /* Accents */
  --violet:        #8b5cf6;
  --indigo:        #6366f1;
  --cyan:          #22d3ee;
  --gold:          #e9c46a;
  --grad: linear-gradient(120deg, #a78bfa 0%, #6366f1 38%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(167,139,250,.18), rgba(34,211,238,.12));

  /* Type */
  --font-sans: 'Sora', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1180px;
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
em { font-style: italic; font-family: var(--font-serif); font-weight: 400; }

::selection { background: rgba(139, 92, 246, .4); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* =========================================================
   Preloader
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: grid; place-content: center; gap: 26px;
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark {
  font-family: var(--font-sans); font-weight: 800; font-size: 42px;
  letter-spacing: .12em; display: flex; gap: 4px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.preloader__mark span { animation: pulse 1.4s var(--ease) infinite; }
.preloader__mark span:last-child { animation-delay: .2s; }
@keyframes pulse { 0%,100% { opacity:.35; transform: translateY(0) } 50% { opacity:1; transform: translateY(-4px) } }
.preloader__bar {
  width: 180px; height: 2px; border-radius: 2px;
  background: rgba(255,255,255,.08); overflow: hidden; margin-inline: auto;
}
.preloader__bar i {
  display: block; height: 100%; width: 40%;
  background: var(--grad); border-radius: 2px;
  animation: load 1.2s var(--ease) infinite;
}
@keyframes load { 0% { transform: translateX(-120%) } 100% { transform: translateX(360%) } }

/* =========================================================
   Custom cursor
   ========================================================= */
.cursor { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  transform: translate(-50%, -50%); will-change: transform;
}
.cursor__dot { width: 7px; height: 7px; background: #fff; }
.cursor__ring {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.6);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s, border-color .25s;
}
.cursor.is-hover .cursor__ring { width: 60px; height: 60px; background: rgba(255,255,255,.12); border-color: transparent; }
.cursor.is-hover .cursor__dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =========================================================
   Animated background
   ========================================================= */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bg__orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  will-change: transform;
}
.bg__orb--1 { width: 50vw; height: 50vw; left: -12vw; top: -16vw;
  background: radial-gradient(circle, rgba(139,92,246,.55), transparent 65%);
  animation: float1 22s ease-in-out infinite; }
.bg__orb--2 { width: 46vw; height: 46vw; right: -14vw; top: 8vw;
  background: radial-gradient(circle, rgba(34,211,238,.4), transparent 65%);
  animation: float2 26s ease-in-out infinite; }
.bg__orb--3 { width: 42vw; height: 42vw; left: 30vw; bottom: -22vw;
  background: radial-gradient(circle, rgba(99,102,241,.42), transparent 65%);
  animation: float3 30s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1) } 50% { transform: translate(8vw,6vw) scale(1.15) } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1) } 50% { transform: translate(-7vw,5vw) scale(1.1) } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1) } 50% { transform: translate(4vw,-7vw) scale(1.18) } }

.bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.bg__grain {
  position: absolute; inset: 0; opacity: .04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 500; font-size: 15px;
  padding: 14px 24px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, border-color .35s;
  white-space: nowrap;
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--grad); color: #0a0a0f; font-weight: 600;
  box-shadow: 0 8px 30px rgba(99,102,241,.35); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .7s var(--ease);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(99,102,241,.5); }
.btn--primary:hover::after { transform: translateX(130%); }

.btn--line { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.btn--line:hover { border-color: var(--text); transform: translateY(-3px); background: var(--surface-2); }

.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--text); font-size: 14px; padding: 11px 20px; }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--line-strong); }

.btn--lg { font-size: clamp(16px, 2.4vw, 21px); padding: 18px 34px; font-family: var(--font-mono); font-weight: 500; }

/* =========================================================
   Navbar
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 20px 0; transition: padding .4s var(--ease);
}
.nav.is-scrolled { padding: 10px 0; }
.nav__inner {
  width: calc(100% - 32px); max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 12px 20px; border-radius: 100px;
  border: 1px solid transparent; transition: all .4s var(--ease);
}
.nav.is-scrolled .nav__inner {
  background: rgba(12,12,17,.72); backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: var(--line); box-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.nav__mark {
  display: grid; place-content: center; width: 38px; height: 38px;
  border-radius: 11px; font-weight: 800; font-size: 15px; letter-spacing: .04em;
  background: var(--grad); color: #0a0a0f;
  box-shadow: 0 6px 18px rgba(99,102,241,.4);
}
.nav__name { font-size: 15.5px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  font-size: 14.5px; color: var(--muted); padding: 8px 16px; border-radius: 100px;
  transition: color .25s, background .25s; position: relative;
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__burger { display: none; width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav__burger.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  min-height: 100svh; display: grid;
  grid-template-columns: 1fr auto; align-items: center; gap: 40px;
  max-width: var(--container); margin-inline: auto; padding: 130px 24px 60px;
}
.hero__inner { max-width: 740px; min-width: 0; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--muted); padding: 8px 16px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 28px;
  font-family: var(--font-mono);
}
.hero__status { width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6) } 70%,100% { box-shadow: 0 0 0 8px rgba(74,222,128,0) } }

.hero__title { display: flex; flex-direction: column; gap: 4px; margin-bottom: 22px; }
.hero__hi { font-size: clamp(15px, 2vw, 19px); color: var(--muted); font-weight: 400; letter-spacing: 0; }
.hero__name {
  font-size: clamp(46px, 8vw, 104px); line-height: .92; font-weight: 700;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #fff 30%, #b9b9c6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__roles { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  font-size: clamp(20px, 3.5vw, 34px); font-weight: 600; margin-bottom: 26px; }
.hero__rolelabel { color: var(--muted-2); font-weight: 300; font-size: .62em; }
.rotator { position: relative; display: inline-grid; }
.rotator__word {
  grid-area: 1 / 1; opacity: 0; transform: translateY(14px); filter: blur(6px);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .55s var(--ease), transform .55s var(--ease), filter .55s var(--ease);
  pointer-events: none;
}
.rotator__word.is-active { opacity: 1; transform: translateY(0); filter: blur(0); pointer-events: auto; }

.hero__lead { font-size: clamp(15.5px, 1.6vw, 18px); color: var(--muted); max-width: 540px; margin-bottom: 34px; }

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

.hero__scroll { display: inline-flex; align-items: center; gap: 12px; color: var(--muted-2);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.hero__mouse { width: 22px; height: 34px; border: 1.5px solid var(--line-strong); border-radius: 12px; position: relative; }
.hero__mouse::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 3px; background: var(--text); animation: scroll 1.6s var(--ease) infinite; }
@keyframes scroll { 0% { opacity: 0; top: 6px } 40% { opacity: 1 } 80%,100% { opacity: 0; top: 16px } }

/* Hero side card */
.hero__sidecard {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 32px; border-radius: 28px; border: 1px solid var(--line);
  background: var(--surface); backdrop-filter: blur(8px);
  transform-style: preserve-3d;
}
.avatar { position: relative; width: 200px; height: 200px; display: grid; place-content: center; }
.avatar__glow { position: absolute; inset: -12px; border-radius: 50%; background: var(--grad);
  filter: blur(30px); opacity: .55; animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: .4; transform: scale(.96) } 50% { opacity: .65; transform: scale(1.04) } }
.avatar__ring { position: absolute; inset: 0; border-radius: 50%; padding: 3px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.avatar__mono { position: relative; width: 176px; height: 176px; border-radius: 50%;
  display: grid; place-content: center; font-weight: 800; font-size: 60px; letter-spacing: .05em;
  background: radial-gradient(circle at 30% 25%, #1b1b24, #0c0c11);
  color: #fff; border: 1px solid var(--line); }
.avatar img { width: 176px; height: 176px; border-radius: 50%; object-fit: cover; position: relative; }
.hero__sidemeta { text-align: center; }
.hero__sidename { font-weight: 600; font-size: 18px; }
.hero__sideloc { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(139,92,246,.05), rgba(34,211,238,.05));
  padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: inline-flex; align-items: center; gap: 36px; white-space: nowrap;
  animation: marquee 32s linear infinite; padding-right: 36px; }
.marquee__track span { font-size: clamp(18px, 2.6vw, 26px); font-weight: 600; color: var(--muted); letter-spacing: -0.02em; }
.marquee__track .dot { color: var(--violet); font-size: 16px; }
@keyframes marquee { to { transform: translateX(-50%) } }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--violet); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.eyebrow span { color: var(--muted-2); }
.eyebrow--center { justify-content: center; }
.h2 { font-size: clamp(34px, 6vw, 68px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }

.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px;
  margin-bottom: 60px; flex-wrap: wrap; }
.section__sub { color: var(--muted); max-width: 420px; font-size: 16px; }

/* ===== About ===== */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; margin-bottom: 80px; }
.about__lead { font-size: clamp(19px, 2.4vw, 26px); line-height: 1.45; color: var(--text); font-weight: 400; margin-bottom: 22px; letter-spacing: -0.02em; }
.about__text { color: var(--muted); font-size: 16.5px; margin-bottom: 28px; }
.about__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.about__chips span { font-size: 13.5px; padding: 9px 16px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-2); padding: 38px 28px; text-align: center; }
.stat__num { font-size: clamp(38px, 5vw, 60px); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__num i { font-style: normal; }
.stat__label { color: var(--muted); font-size: 14px; margin-top: 10px; letter-spacing: -0.01em; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; overflow: hidden; min-height: 230px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); transform-style: preserve-3d;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card__spot { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx,50%) var(--my,50%), rgba(139,92,246,.16), transparent 60%); }
.card:hover .card__spot { opacity: 1; }
.card--feature { grid-column: span 2; min-height: 230px;
  background: linear-gradient(135deg, rgba(139,92,246,.12), rgba(34,211,238,.06)); }

.card__top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.card__icon { font-size: 34px; line-height: 1;
  filter: drop-shadow(0 4px 14px rgba(139,92,246,.4)); }
.card__arrow { display: grid; place-content: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted); transition: .4s var(--ease); }
.card:hover .card__arrow { background: var(--grad); color: #0a0a0f; border-color: transparent; transform: rotate(0deg) scale(1.05); }
.card:hover .card__arrow svg { transform: translate(2px,-2px); }
.card__body { position: relative; z-index: 1; margin-top: 24px; }
.card__title { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.card__desc { color: var(--muted); font-size: 15px; max-width: 38ch; }
.card__url { position: relative; z-index: 1; margin-top: 20px; font-family: var(--font-mono);
  font-size: 13px; color: var(--muted-2); }
.card:hover .card__url { color: var(--cyan); }

/* ===== Skills ===== */
.skillgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill { padding: 32px 28px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .4s, background .4s; }
.skill:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--surface-2); }
.skill__ico { font-size: 30px; display: inline-grid; place-content: center; width: 60px; height: 60px;
  border-radius: 16px; background: var(--grad-soft); border: 1px solid var(--line); margin-bottom: 20px; }
.skill h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.skill p { color: var(--muted); font-size: 15px; }

/* ===== Contact ===== */
.contact__card { position: relative; overflow: hidden; text-align: center;
  padding: clamp(48px, 8vw, 100px) clamp(24px, 6vw, 80px); border-radius: clamp(28px, 4vw, 40px);
  border: 1px solid var(--line); background: var(--bg-2); }
.contact__glow { position: absolute; left: 50%; top: -40%; width: 70%; height: 100%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(99,102,241,.4), transparent 60%); filter: blur(40px); pointer-events: none; }
.contact__title { position: relative; font-size: clamp(36px, 7vw, 80px); line-height: 1.02; font-weight: 700;
  letter-spacing: -0.04em; margin-bottom: 22px; }
.contact__sub { position: relative; color: var(--muted); max-width: 460px; margin: 0 auto 38px; font-size: 17px; }
.contact__card .btn { position: relative; }
.contact__socials { position: relative; display: flex; justify-content: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.contact__socials a { font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  padding: 8px 18px; border-radius: 100px; border: 1px solid var(--line); transition: .3s; }
.contact__socials a:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface); }

/* =========================================================
   Footer
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.footer__brand .nav__mark { width: 34px; height: 34px; font-size: 13px; border-radius: 9px; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--muted); font-size: 14.5px; transition: color .25s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { color: var(--muted-2); font-size: 13.5px; }

/* =========================================================
   Reveal animations
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(34px); filter: blur(4px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; filter: blur(0); }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .40s; }
[data-reveal][data-delay="6"] { transition-delay: .48s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; gap: 50px; }
  .hero__sidecard { order: -1; align-self: start; max-width: 320px; }
  .about__grid { grid-template-columns: 1fr; gap: 30px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card--feature { grid-column: span 2; }
  .skillgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__links { position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column;
    background: rgba(10,10,14,.96); backdrop-filter: blur(20px); padding: 100px 28px 40px;
    gap: 6px; transform: translateY(-100%); transition: transform .45s var(--ease); height: 100svh; justify-content: flex-start; }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { font-size: 22px; padding: 16px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .card--feature { grid-column: span 1; }
  .skillgrid { grid-template-columns: 1fr; }
  .section__head { margin-bottom: 44px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; justify-content: center; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .bg__orb { animation: none; }
}
