:root {
  --bg: #080d18;
  --bg-2: #0b1222;
  --card: #111827;
  --primary: #38bdf8;
  --secondary: #60a5fa;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(56, 189, 248, 0.35);
  --glow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 18px 50px -18px rgba(56, 189, 248, 0.45);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--primary); color: var(--bg); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; position: relative; z-index: 1; }
.accent { color: var(--primary); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.label::before { content: ""; width: 22px; height: 1px; background: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #04111d; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(56, 189, 248, 0.7); background: #5ccafa; }
.btn--ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); }
.btn--ghost:hover { border-color: var(--line-strong); box-shadow: var(--glow); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--lg { padding: 18px 32px; font-size: 1.05rem; }
.btn__icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .btn__icon { transform: translate(2px, -2px); }

.glass {
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 13, 24, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav__logo { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.08em; }
.nav__logo span, .footer__logo span { color: var(--primary); }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(56, 189, 248, 0.08); }
.nav__links a.is-active { color: var(--primary); }
.nav__toggle { display: none; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero__glow {
  position: absolute;
  width: 900px; height: 900px;
  right: -200px; top: -250px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), rgba(96, 165, 250, 0.06) 40%, transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15); }
.hero__title {
  font-size: clamp(5rem, 15vw, 11rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.9;
  background: linear-gradient(180deg, #ffffff 30%, rgba(248, 250, 252, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: -0.04em;
}
.hero__roles {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 6px 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--primary);
}
.hero__roles i { color: rgba(148, 163, 184, 0.4); font-style: normal; }
.hero__lead { margin-top: 28px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 600px; }
.hero__sub { margin-top: 16px; color: var(--muted); max-width: 580px; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__socials { margin-top: 36px; display: flex; gap: 10px; }
.hero__socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.hero__socials a:hover { color: var(--primary); border-color: var(--line-strong); box-shadow: var(--glow); transform: translateY(-2px); }
.hero__socials svg { width: 17px; height: 17px; }

.hero__visual { position: relative; justify-self: center; width: min(440px, 100%); }
.portrait {
  position: relative;
  aspect-ratio: 1;
  border-radius: 32px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(56, 189, 248, 0.7), rgba(96, 165, 250, 0.05) 45%, rgba(56, 189, 248, 0.35));
  box-shadow: 0 40px 100px -30px rgba(56, 189, 248, 0.35);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; }
.chip {
  position: absolute;
  padding: 14px 18px;
  border-radius: 16px;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  animation: float 7s ease-in-out infinite;
}
.chip strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--primary); line-height: 1.2; }
.chip span { font-size: 0.8rem; color: var(--muted); }
.chip--a { left: -40px; bottom: 56px; }
.chip--b { right: -28px; top: 40px; animation-delay: -3.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--primary), transparent); }

/* Sections */
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 90px 0; }
.section__head { margin-bottom: 56px; max-width: 760px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section__head--row > .muted { max-width: 340px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
.about .section__head { position: sticky; top: 120px; margin-bottom: 0; }
.about__body { display: grid; gap: 20px; color: var(--muted); }
.about__intro { color: var(--text); font-size: 1.25rem; line-height: 1.55; }
.about blockquote {
  margin: 16px 0 0;
  padding: 28px 30px;
  border-left: 2px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.08), transparent);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 40px 34px; transition: background 0.35s; position: relative; }
.stat:hover { background: var(--bg-2); }
.stat::after {
  content: ""; position: absolute; left: 34px; right: 34px; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.stat:hover::after { transform: scaleX(1); }
.stat__label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stat__value {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 4vw, 3.3rem); line-height: 1.1; margin: 16px 0 12px;
  background: linear-gradient(120deg, var(--text), var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__desc { color: var(--muted); font-size: 0.95rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service {
  position: relative;
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: transparent; }
.service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 56px; }
.service__num { font-family: var(--font-display); font-size: 3.5rem; font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(56, 189, 248, 0.6); }
.service__tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.service h3 { font-size: 1.6rem; margin-bottom: 22px; }
.service ul { display: flex; flex-wrap: wrap; gap: 8px; }
.service li { font-size: 0.88rem; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: #cbd5e1; }
/* four distinct treatments */
.service--community { grid-row: span 2; background: linear-gradient(160deg, rgba(56, 189, 248, 0.16), var(--card) 55%); border-color: rgba(56, 189, 248, 0.25); }
.service--community h3 { font-size: 2.2rem; }
.service--community::before {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.25); box-shadow: 0 0 0 40px rgba(56, 189, 248, 0.04), 0 0 0 80px rgba(56, 189, 248, 0.025);
}
.service--social { background: linear-gradient(200deg, rgba(96, 165, 250, 0.12), var(--card) 60%); }
.service--design { background-image: radial-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px); background-size: 16px 16px; background-color: var(--card); }
.service--video { background: var(--card); }
.service--video::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--primary) 0 18px, transparent 18px 30px); opacity: 0.6;
}
.service--social .service__top, .service--design .service__top, .service--video .service__top { margin-bottom: 28px; }

/* Experience */
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.02); }
.filter {
  font: inherit; font-size: 0.88rem; color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--primary); color: #04111d; font-weight: 600; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
  color: var(--muted); font-size: 0.95rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s, opacity 0.35s;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: transparent; }
.project.is-hidden { display: none; }
.project--feature { grid-column: span 1; background: linear-gradient(170deg, rgba(56, 189, 248, 0.1), var(--card) 50%); }
.project__head { display: flex; gap: 14px; align-items: center; }
.project__head h3 { color: var(--text); font-size: 1.2rem; }
.project__mark {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--primary); background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.2);
}
.project__role { font-size: 0.82rem; color: var(--primary); margin-top: 4px; line-height: 1.4; }
.project__metric { margin-top: auto; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(8, 13, 24, 0.6); border: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.project__metric strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--text); }
.project__metric span { font-size: 0.85rem; }
.project__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.project__tags li { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); }

/* Approach */
.approach-wrap { background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.6) 30%, rgba(17, 24, 39, 0.6) 70%, transparent); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px;
  background: linear-gradient(90deg, var(--primary), rgba(96, 165, 250, 0.4), rgba(56, 189, 248, 0.1));
}
.step { position: relative; padding-right: 12px; }
.step__num {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600;
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--primary);
  margin-bottom: 28px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.step:hover .step__num { background: var(--primary); color: #04111d; box-shadow: 0 0 30px rgba(56, 189, 248, 0.5); }
.step h3 { font-size: 1.5rem; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* Work */
.work__note { margin: -28px 0 36px; max-width: 620px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 18px; }
.tile {
  position: relative;
  border-radius: var(--radius);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.05), transparent 60%),
    repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.03) 0 10px, transparent 10px 20px),
    var(--card);
  padding: 24px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease);
}
.tile:hover { border-color: var(--line-strong); border-style: solid; box-shadow: var(--glow); transform: translateY(-3px); }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile__type { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); }
.tile__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.tile__soon { position: absolute; top: 20px; right: 20px; font-size: 0.75rem; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(8, 13, 24, 0.6); }

/* Skills */
.skills { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.skills .section__head { margin-bottom: 0; }
.skills__groups { display: grid; gap: 30px; }
.skill-group__title { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  padding: 10px 18px; border-radius: 999px; font-size: 0.93rem;
  border: 1px solid var(--line); background: rgba(17, 24, 39, 0.7);
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.tags li:hover { border-color: var(--line-strong); color: var(--primary); box-shadow: 0 0 24px -6px rgba(56, 189, 248, 0.45); }

/* Why */
.why { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.why__item { padding: 40px 40px 44px 0; border-bottom: 1px solid var(--line); }
.why__item:nth-child(odd) { border-right: 1px solid var(--line); }
.why__item:nth-child(even) { padding-left: 40px; padding-right: 0; }
.why__item h3 { font-size: 1.55rem; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.why__item h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--primary); box-shadow: 0 0 16px var(--primary); flex: none; }
.why__item p { color: var(--muted); max-width: 480px; }

/* Contact */
.contact__card {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 88px);
  border-radius: 32px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: linear-gradient(160deg, #0f1b30, var(--card) 55%);
  text-align: center;
}
.contact__card .label { justify-content: center; }
.contact__glow { position: absolute; width: 700px; height: 400px; left: 50%; top: -200px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(56, 189, 248, 0.25), transparent 65%); pointer-events: none; }
.contact__title { position: relative; font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 700; }
.contact__lead { position: relative; margin: 24px auto 0; max-width: 560px; color: var(--muted); font-size: 1.15rem; }
.contact__lead strong { color: var(--text); }
.contact__links { position: relative; margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: left; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(8, 13, 24, 0.55);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
  min-width: 0;
}
.contact-link:hover { border-color: transparent; box-shadow: var(--glow); transform: translateY(-3px); }
.contact-link svg { width: 22px; height: 22px; color: var(--primary); flex: none; }
.contact-link span { display: flex; flex-direction: column; font-weight: 600; font-size: 0.95rem; min-width: 0; overflow-wrap: anywhere; }
.contact-link small { font-family: var(--font-mono); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 44px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
.footer__logo { font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: 0.08em; }
.footer__roles { color: var(--primary); font-size: 0.92rem; margin: 6px 0 4px; }
.footer__side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.footer__side .hero__socials { margin: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .nav__cta { display: none; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .contact__links { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tile--tall { grid-row: span 1; }
}
@media (max-width: 900px) {
  .nav__toggle {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(17, 24, 39, 0.6); cursor: pointer;
  }
  .nav__toggle span { width: 18px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 16px 24px 24px;
    background: rgba(8, 13, 24, 0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav.menu-open { background: rgba(8, 13, 24, 0.96); }

  .hero { min-height: auto; padding-top: 110px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { width: min(320px, 80%); order: -1; justify-self: start; }
  .chip--a { left: auto; right: -30%; bottom: 20px; }
  .chip--b { right: -30%; top: 30px; }
  .hero__scroll { display: none; }

  .about, .skills { grid-template-columns: 1fr; gap: 40px; }
  .about .section__head { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr; }
  .service--community { grid-row: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
  .why { grid-template-columns: 1fr; }
  .why__item, .why__item:nth-child(even) { padding: 32px 0; border-right: 0; }
  .section { padding: 90px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 36px); }
  .hero__visual { width: 62%; }
  .chip { padding: 10px 14px; }
  .chip strong { font-size: 1.05rem; }
  .chip--a, .chip--b { right: -52%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 32px 26px; }
  .projects { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .tile--wide { grid-column: auto; }
  .contact__links { grid-template-columns: 1fr; }
  .service { padding: 28px; }
  .service--community h3 { font-size: 1.8rem; }
  .filters { border-radius: 16px; }
  .footer__side { align-items: flex-start; }
  .section__head--row .btn--lg { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
