/* ============================================================
   FLUTTER PORTFOLIO — styles
   Dark, technological, cyan/blue accent
   Fonts: Unbounded (display) + Manrope (body)
   ============================================================ */

:root {
  /* palette */
  --bg-0: #060914;
  --bg-1: #0a0f1f;
  --bg-2: #0f1629;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.16);

  --text: #eaf1ff;
  --text-dim: #9fb0cc;
  --text-faint: #61708c;

  --cyan: #22d3ee;
  --blue: #3b82f6;
  --indigo: #6366f1;
  --accent-grad: linear-gradient(120deg, #22d3ee 0%, #3b82f6 55%, #6366f1 100%);

  /* type */
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* spacing rhythm */
  --container: 1200px;
  --radius: 22px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- ambient background ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(900px 600px at 5% 10%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(800px 800px at 50% 120%, rgba(99, 102, 241, 0.16), transparent 60%),
    var(--bg-0);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 30%, transparent 80%);
}
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.orb--1 { width: 420px; height: 420px; background: #1e6fff; top: -80px; right: -60px; }
.orb--2 { width: 360px; height: 360px; background: #18c5e0; bottom: 10%; left: -120px; opacity: 0.35; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
section { position: relative; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 12, 24, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--stroke);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.3);
  position: relative;
  overflow: hidden;
}
.brand__mark svg { width: 18px; height: 18px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s ease;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
  transition: width .25s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent-grad);
  color: #04111f;
  box-shadow: 0 10px 30px rgba(34, 132, 238, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(34, 132, 238, 0.5); }
.btn--ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--stroke-strong);
}
.btn--ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }

.nav__burger {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  width: 44px; height: 44px;
  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: .25s; }

/* ---------- hero ---------- */
.hero {
  padding: 168px 0 90px;
  position: relative;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
.stats {
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 7px;
  font-weight: 500;
}

/* hero phone cluster */
.hero__visual {
  position: relative;
  height: 560px;
  display: grid;
  place-items: center;
}
.phone-float {
  position: absolute;
  will-change: transform;
}
.phone-float--main { transform: translateZ(0); z-index: 3; }
.phone-float--left { left: -2%; top: 64px; transform: scale(.78) rotate(-8deg); z-index: 2; opacity: .92; }
.phone-float--right { right: -4%; top: 36px; transform: scale(.72) rotate(9deg); z-index: 1; opacity: .85; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scroll-cue .mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--stroke-strong);
  border-radius: 14px;
  position: relative;
}
.scroll-cue .mouse::after {
  content: "";
  position: absolute;
  left: 50%; top: 7px;
  width: 4px; height: 7px;
  background: var(--cyan);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: wheel 1.6s infinite;
}
@keyframes wheel { 0%{opacity:0; transform:translate(-50%,0)} 30%{opacity:1} 100%{opacity:0; transform:translate(-50%,12px)} }

/* ---------- section heading ---------- */
.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
  display: inline-block;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-head p {
  color: var(--text-dim);
  font-size: 17px;
}

/* ---------- apps ---------- */
.apps { padding: 110px 0; }
.app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 130px;
}
.app-row:last-child { margin-bottom: 0; }
.app-row--reverse .app-row__media { order: 2; }

.app-row__media {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 540px;
}
.app-glow {
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  z-index: 0;
}

.app-row__body { position: relative; }
.app-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.app-index::after { content: ""; flex: 1; height: 1px; background: var(--stroke); max-width: 60px; }
.app-row h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.app-kicker {
  font-size: 15px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 20px;
}
.app-row p.app-desc {
  color: var(--text-dim);
  font-size: 16.5px;
  margin-bottom: 22px;
  max-width: 520px;
}
.app-for {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  max-width: 520px;
}
.app-for__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--cyan);
}
.app-for__icon svg { width: 20px; height: 20px; }
.app-for__txt b { display: block; font-size: 13px; color: var(--text-faint); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.app-for__txt span { font-size: 15px; color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.chip {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  color: var(--text-dim);
}
.app-links { display: flex; gap: 14px; flex-wrap: wrap; }
.app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  background: var(--surface);
  transition: .2s;
}
.app-link:hover { background: var(--surface-2); transform: translateY(-2px); }
.app-link svg { width: 16px; height: 16px; }

/* ---------- phone frame ---------- */
.phone {
  width: 280px;
  height: 574px;
  border-radius: 44px;
  background: linear-gradient(160deg, #1a2236, #0c1322);
  padding: 11px;
  box-shadow:
    0 40px 90px -20px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,255,255,.06),
    inset 0 0 0 2px rgba(255,255,255,.04);
  position: relative;
  z-index: 2;
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background: #0b1020;
  display: flex;
  flex-direction: column;
}
.phone__notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 26px;
  background: #05070f;
  border-radius: 16px;
  z-index: 20;
}
.phone__statusbar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  z-index: 10;
}
.phone__statusbar .sb-icons { display: flex; gap: 5px; align-items: center; }
.phone__statusbar .sb-icons svg { width: 15px; height: 15px; opacity: .9; }

/* screenshot slot version */
.phone__shot { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone__shot-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  text-align: center;
  color: var(--text-faint);
  padding: 30px;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.02), rgba(255,255,255,.02) 12px, transparent 12px, transparent 24px);
}
.phone__shot-fallback svg { width: 38px; height: 38px; margin-bottom: 12px; opacity: .5; }
.phone__shot-fallback small { font-size: 12px; line-height: 1.5; }

/* ---------- project grid (secondary apps) ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 30px;
}
.pcard {
  display: grid;
  grid-template-columns: 178px 1fr;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), border-color .35s ease, background .35s ease;
}
.pcard::before {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .32;
  top: -120px; left: -80px;
  background: var(--pc-accent, var(--blue));
  transition: opacity .35s ease;
  pointer-events: none;
}
.pcard:hover { transform: translateY(-6px); border-color: var(--stroke-strong); background: var(--surface-2); }
.pcard:hover::before { opacity: .5; }

/* phone stage inside card */
.pc-stage {
  position: relative;
  align-self: center;
}
.phone--sm {
  width: 178px;
  height: 366px;
  border-radius: 30px;
  padding: 7px;
}
.phone--sm .phone__screen { border-radius: 24px; }
.pc-stage .phone { position: relative; }
.pc-shot {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}
.pc-shot.active { opacity: 1; }
.pc-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 12px;
}
.pc-dots i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--stroke-strong);
}

.pc-body { position: relative; align-self: center; }
.pc-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pc-accent, var(--cyan));
  margin-bottom: 8px;
}
.pcard h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.pc-kicker { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.pcard p { color: var(--text-dim); font-size: 14px; margin-bottom: 14px; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pc-chips .chip { font-size: 11.5px; padding: 5px 11px; }

/* teaser card */
.teaser {
  margin-top: 26px;
  border: 1px dashed var(--stroke-strong);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.teaser h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.teaser h3 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.teaser p { color: var(--text-dim); font-size: 16px; max-width: 560px; margin: 0 auto 22px; }
.teaser__row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.teaser__pill {
  font-size: 13px; font-weight: 600;
  padding: 8px 15px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--stroke);
  color: var(--text-dim);
}

/* divider label between feature rows and grid */
.apps-subhead {
  display: flex; align-items: center; gap: 18px;
  margin: 8px 0 4px;
}
.apps-subhead span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--text);
  white-space: nowrap;
}
.apps-subhead::after { content: ""; flex: 1; height: 1px; background: var(--stroke); }

/* ---------- skills ---------- */
.skills { padding: 110px 0; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(380px 200px at var(--mx,50%) var(--my,0%), rgba(34,211,238,.1), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
}
.skill-card:hover { transform: translateY(-5px); border-color: var(--stroke-strong); background: var(--surface-2); }
.skill-card:hover::before { opacity: 1; }
.skill-card__icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--cyan);
  margin-bottom: 18px;
  border: 1px solid var(--stroke);
}
.skill-card__icon svg { width: 26px; height: 26px; }
.skill-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.skill-card p { color: var(--text-dim); font-size: 14.5px; }

.stack-marquee {
  margin-top: 56px;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding: 26px 0;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.stack-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.stack-track span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--text-faint);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- timeline ---------- */
.timeline { padding: 110px 0; }
.tl {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 36px;
}
.tl::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--cyan), var(--indigo), transparent);
}
.tl-item { position: relative; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -36px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 3px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(34,211,238,.12);
}
.tl-date { font-size: 13px; font-weight: 700; color: var(--cyan); letter-spacing: .08em; margin-bottom: 6px; }
.tl-item h4 { font-family: var(--font-display); font-weight: 500; font-size: 21px; margin-bottom: 4px; letter-spacing: -0.01em; }
.tl-item .tl-org { color: var(--text-faint); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.tl-item p { color: var(--text-dim); font-size: 15px; }

/* ---------- contact ---------- */
.contact { padding: 120px 0 90px; }
.contact-card {
  background: linear-gradient(160deg, rgba(34,211,238,.08), rgba(99,102,241,.08));
  border: 1px solid var(--stroke-strong);
  border-radius: 32px;
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.18), transparent 60%);
  top: -300px; left: 50%;
  transform: translateX(-50%);
}
.contact-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 54px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}
.contact-card p { color: var(--text-dim); font-size: 18px; max-width: 480px; margin: 0 auto 36px; position: relative; }
.contact-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--stroke);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer p { color: var(--text-faint); font-size: 14px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: .2s;
}
.footer__social a:hover { color: var(--text); background: var(--surface-2); transform: translateY(-2px); }
.footer__social svg { width: 19px; height: 19px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .stack-track, .orb { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .hero__visual { height: 480px; }
  .app-row { grid-template-columns: 1fr; gap: 40px; }
  .app-row--reverse .app-row__media { order: 0; }
  .app-row__media { min-height: 540px; order: -1; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .container { padding: 0 18px; }
  .nav__links, .nav .btn--primary.nav-cta { display: none; }
  .nav__burger { display: flex; }
  .hero { padding: 130px 0 70px; }
  .stats { gap: 26px; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 48px 24px; }
  .phone { width: 240px; height: 492px; }
  .pcard { grid-template-columns: 1fr; gap: 18px; justify-items: center; text-align: left; }
  .pc-body { width: 100%; }

  /* feature/hero phone clusters → single centered phone on small screens */
  .hero__visual, .app-row__media {
    min-height: 0; height: auto;
    display: flex; justify-content: center; align-items: center;
    padding: 10px 0;
  }
  .phone-float--left, .phone-float--right { display: none; }
  .phone-float--main { position: static; transform: none !important; opacity: 1; }
  .scroll-cue { display: none; }

  /* mobile menu open */
  .nav__links.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8,12,24,.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--stroke);
    padding: 8px 0;
  }
  .nav__links.open li { width: 100%; }
  .nav__links.open a { display: block; padding: 14px 24px; }
  .nav__links.open a::after { display: none; }
}
