/* ============================================================
   Developer Ahmed — Portfolio
   Dark / crimson theme
   ============================================================ */

:root {
  --bg:            #080506;
  --bg-2:          #0f0a0c;
  --surface:       #150e11;
  --surface-2:     #1c1216;
  --line:          #2a1a1f;

  --red:           #e11d2e;
  --red-bright:    #ff3049;
  --red-deep:      #8c0f1c;
  --red-glow:      rgba(225, 29, 46, .45);

  --text:          #f4eef0;
  --muted:         #a89298;
  --dim:           #6f5c62;

  --grad: linear-gradient(135deg, var(--red-bright) 0%, var(--red) 45%, var(--red-deep) 100%);
  --grad-text: linear-gradient(120deg, #fff 0%, #ffb3bc 40%, var(--red-bright) 100%);

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .85);
  --shadow-red: 0 18px 50px -14px var(--red-glow);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--red), var(--red-deep));
  border-radius: 10px;
  border: 2px solid var(--bg);
}

/* ---------- layout helpers ---------- */
.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.h-sec {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.h-sec em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { color: var(--muted); max-width: 62ch; font-size: 1.03rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- background atmosphere ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  animation: drift 22s ease-in-out infinite;
}
.orb--1 { width: 520px; height: 520px; top: -150px; left: -120px; background: radial-gradient(circle, rgba(225,29,46,.55), transparent 68%); }
.orb--2 { width: 620px; height: 620px; top: 45%; right: -220px; background: radial-gradient(circle, rgba(140,15,28,.6), transparent 68%); animation-delay: -7s; }
.orb--3 { width: 460px; height: 460px; bottom: -180px; left: 30%; background: radial-gradient(circle, rgba(255,48,73,.35), transparent 68%); animation-delay: -14s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(70px, -50px) scale(1.12); }
  66%      { transform: translate(-50px, 60px) scale(.92); }
}

.grid-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(225, 29, 46, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 29, 46, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--grad);
  box-shadow: 0 0 14px var(--red-glow);
  z-index: 200;
  transition: width .08s linear;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background .35s var(--ease), border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8, 5, 6, .82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(1180px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -.02em;
}
.logo__mark {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
/* the logo file is already black-backed, so "lighten" drops the black and
   leaves the eagle standing on whatever is behind it */
.logo__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.28);
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 10px rgba(225, 29, 46, .45));
  transition: transform .45s var(--ease), filter .35s;
}
.logo:hover .logo__mark img {
  transform: scale(1.36);
  filter: drop-shadow(0 0 16px rgba(225, 29, 46, .7));
}
.logo span { white-space: nowrap; }
.logo span em { font-style: normal; color: var(--red-bright); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav__links a {
  position: relative;
  padding: 9px 15px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 9px;
  transition: color .25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 3px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

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

/* the in-menu CTA is for the mobile drawer only */
.nav__links .nav__mobile-cta { display: none; }
.nav__links .btn--primary { color: #fff; }
.nav__links .btn--primary::after { display: none; }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: .93rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .3s, background .3s, border-color .3s, color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease);
}
.btn--primary:hover::before { transform: translateX(130%); }
.btn--primary:hover { box-shadow: 0 22px 60px -12px var(--red-glow); }

.btn--ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--red); background: rgba(225, 29, 46, .09); }

.btn--sm { padding: 10px 18px; font-size: .86rem; }
.btn--full { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 9px;
  border: 1px solid var(--line);
  background: rgba(225, 29, 46, .07);
  border-radius: 100px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 26px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #29d17c;
  box-shadow: 0 0 0 0 rgba(41, 209, 124, .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(41, 209, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(41, 209, 124, 0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.typed { color: var(--red-bright); }
.caret {
  display: inline-block;
  width: 3px;
  height: .95em;
  background: var(--red-bright);
  margin-left: 4px;
  vertical-align: -.1em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__text { color: var(--muted); font-size: 1.07rem; max-width: 54ch; margin-bottom: 34px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 52px); }
.stat__num {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat__label { font-size: .82rem; color: var(--dim); letter-spacing: .04em; }

/* ---------- hero card ---------- */
.hero__visual { perspective: 1200px; }
.code-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .4s var(--ease);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.code-card__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .3);
}
.code-card__bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-card__bar i:nth-child(1) { background: #ff5f57; }
.code-card__bar i:nth-child(2) { background: #febc2e; }
.code-card__bar i:nth-child(3) { background: #28c840; }
.code-card__bar b {
  margin-left: 8px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--dim);
}
.code-card pre {
  padding: 22px 20px;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: .82rem;
  line-height: 1.85;
  overflow-x: auto;
  color: var(--muted);
}
.c-key { color: #ff6b7e; }
.c-fn  { color: #ffc46b; }
.c-str { color: #7fd1a3; }
.c-num { color: #c48bff; }
.c-com { color: var(--dim); font-style: italic; }

/* ---------- hero profile photo ---------- */
.hero__visual::before {
  content: "";
  position: absolute;
  inset: -12% -6% 4%;
  background: radial-gradient(circle at 50% 45%, rgba(225, 29, 46, .32), transparent 66%);
  filter: blur(46px);
  z-index: -1;
  pointer-events: none;
}

/* The photo has its background removed, so it needs no frame — it stands
   straight on the page. "lighten" drops the remaining black pixels, and the
   mask fades the bottom of the suit into the section below. */
.photo-cut {
  position: relative;
  max-width: 430px;
  margin-inline: auto;
  transform-style: preserve-3d;
  transition: transform .4s var(--ease);
  animation: float 6s ease-in-out infinite;
}
.photo-cut img {
  display: block;
  width: 100%;
  margin-inline: auto;
  mix-blend-mode: lighten;
  filter: contrast(1.06);
  -webkit-mask-image: linear-gradient(180deg, #000 76%, rgba(0, 0, 0, .35) 92%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 76%, rgba(0, 0, 0, .35) 92%, transparent 100%);
}

/* profile.js card inside the What I Do section */
.code-band { margin-top: 46px; display: flex; justify-content: center; }
.code-band .code-card {
  width: min(620px, 100%);
  animation: none;
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  background: rgba(21, 14, 17, .9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .83rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.float-chip svg { color: var(--red-bright); }
.float-chip--a { top: 16%; left: -14px; animation-delay: -1.5s; }
.float-chip--b { bottom: 18%; right: -14px; animation-delay: -3s; }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(15, 10, 12, .6);
  padding: 20px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll-x 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.marquee__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--dim);
  white-space: nowrap;
  transition: color .25s;
}
.marquee__item:hover { color: var(--red-bright); }
.marquee__item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* ============================================================
   SERVICES / WHAT I DO
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 54px;
}
.card {
  position: relative;
  padding: 32px 28px;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .35s, box-shadow .4s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(225, 29, 46, .13), transparent 62%);
  pointer-events: none;
}
.card:hover { transform: translateY(-7px); border-color: rgba(225, 29, 46, .45); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

.card__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(225, 29, 46, .12);
  border: 1px solid rgba(225, 29, 46, .3);
  color: var(--red-bright);
  margin-bottom: 20px;
  transition: transform .4s var(--ease), background .3s;
}
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); background: rgba(225, 29, 46, .22); }
.card h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .94rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag {
  font-size: .74rem;
  padding: 4px 11px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: var(--dim);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}
.about__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 50% 30%, rgba(225, 29, 46, .28), transparent 62%),
    linear-gradient(165deg, var(--surface-2), var(--bg));
  display: grid;
  place-items: center;
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(.92) contrast(1.04);
  transition: transform .8s var(--ease), filter .5s;
}
.about__photo:hover img { transform: scale(1.05); filter: saturate(1) contrast(1.06); }

.about__initials {
  font-size: clamp(4rem, 11vw, 7rem);
  font-weight: 800;
  letter-spacing: -.05em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .9;
}
.about__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 5, 6, .9));
}
.about__badge {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 2;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(21, 14, 17, .82);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
}
.about__badge strong { display: block; font-size: .98rem; }
.about__badge span { font-size: .8rem; color: var(--muted); }

.about p + p { margin-top: 15px; }
.about p { color: var(--muted); }

.timeline { margin-top: 34px; position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--red), transparent);
}
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -26px; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--red);
  box-shadow: 0 0 0 4px rgba(225, 29, 46, .12);
}
.tl-item time { font-size: .78rem; color: var(--red-bright); font-weight: 700; letter-spacing: .06em; }
.tl-item h4 { font-size: 1.02rem; font-weight: 700; margin: 3px 0 5px; }
.tl-item p { font-size: .9rem; color: var(--muted); }

.skills { margin-top: 36px; display: grid; gap: 17px; }
.skill__top { display: flex; justify-content: space-between; font-size: .87rem; margin-bottom: 8px; }
.skill__top span:last-child { color: var(--red-bright); font-weight: 700; }
.skill__bar { height: 7px; background: var(--surface-2); border-radius: 100px; overflow: hidden; border: 1px solid var(--line); }
.skill__fill {
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: var(--grad);
  box-shadow: 0 0 14px var(--red-glow);
  transition: width 1.4s var(--ease);
}

/* ============================================================
   PACKAGES
   ============================================================ */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 20px;
  margin-top: 56px;
  align-items: stretch;
}
.plan {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .35s, box-shadow .4s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan:hover { transform: translateY(-8px); border-color: rgba(225, 29, 46, .4); box-shadow: var(--shadow); }

.plan--featured {
  border-color: rgba(225, 29, 46, .55);
  background:
    radial-gradient(600px circle at 50% -10%, rgba(225, 29, 46, .18), transparent 60%),
    linear-gradient(170deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-red);
}
.plan--featured::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .75;
  pointer-events: none;
}
.plan__ribbon {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  border-radius: 100px;
  background: var(--grad);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: var(--shadow-red);
  white-space: nowrap;
}
/* the recurring plan — set apart from the three one-off builds */
.plan--monthly {
  border-style: dashed;
  border-color: rgba(225, 29, 46, .3);
}
.plan--monthly:hover { border-style: solid; }
.plan__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(225, 29, 46, .4);
  background: rgba(225, 29, 46, .1);
  color: var(--red-bright);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.plan__name { font-size: 1.28rem; font-weight: 700; letter-spacing: -.02em; }
.plan__for { color: var(--dim); font-size: .87rem; margin-top: 4px; }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 22px 0 6px;
}
.plan__price b {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.plan__price i { font-style: normal; font-size: 1.5rem; font-weight: 700; color: var(--muted); }
.plan__price small { color: var(--dim); font-size: .85rem; }
.plan__note { font-size: .82rem; color: var(--dim); padding-bottom: 22px; border-bottom: 1px solid var(--line); }

.plan__list { list-style: none; margin: 22px 0 28px; display: grid; gap: 12px; flex: 1; }
.plan__list li { display: flex; gap: 11px; font-size: .92rem; color: var(--muted); align-items: flex-start; }
.plan__list svg { flex-shrink: 0; margin-top: 3px; color: var(--red-bright); }
.plan__list li.off { opacity: .38; }
.plan__list li.off svg { color: var(--dim); }

/* ============================================================
   PROCESS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 54px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .3s, transform .35s var(--ease);
}
.step:hover { border-color: rgba(225, 29, 46, .4); transform: translateY(-5px); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(225, 29, 46, .5);
  display: block;
  margin-bottom: 12px;
}
.step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--muted); }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 7vw, 78px) clamp(26px, 5vw, 66px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(225, 29, 46, .35);
  background:
    radial-gradient(700px circle at 20% 0%, rgba(225, 29, 46, .25), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--bg));
  text-align: center;
}
.cta h2 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); letter-spacing: -.03em; margin-bottom: 14px; }
.cta p { color: var(--muted); max-width: 52ch; margin: 0 auto 30px; }
.cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.page-head { padding: calc(var(--nav-h) + clamp(48px, 8vw, 92px)) 0 clamp(30px, 5vw, 48px); text-align: center; }
.page-head h1 {
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.page-head h1 em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(26px, 4vw, 46px);
  align-items: start;
}

.info-card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
}
.info-list { list-style: none; display: grid; gap: 6px; }
.info-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 15px 12px;
  border-radius: 13px;
  transition: background .28s, transform .28s var(--ease);
}
.info-item:hover { background: rgba(225, 29, 46, .07); transform: translateX(4px); }
.info-item__ico {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(225, 29, 46, .12);
  border: 1px solid rgba(225, 29, 46, .28);
  color: var(--red-bright);
}
.info-item small { display: block; font-size: .76rem; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.info-item strong { font-weight: 600; font-size: .97rem; word-break: break-word; }

.socials { display: flex; gap: 10px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.social {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  transition: all .3s var(--ease);
}
.social:hover { color: #fff; background: var(--grad); border-color: transparent; transform: translateY(-3px); box-shadow: var(--shadow-red); }

/* ---------- form ---------- */
.form-card {
  padding: clamp(26px, 3.4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; position: relative; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: .02em;
}
.field label i { color: var(--red-bright); font-style: normal; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: rgba(0, 0, 0, .32);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .94rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
  outline: none;
}
.field textarea { resize: vertical; min-height: 132px; }
.field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a89298' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.field select option { background: var(--surface); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
  background: rgba(225, 29, 46, .05);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, .16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #ff5f6d; box-shadow: 0 0 0 3px rgba(255, 95, 109, .14); }
.err { display: none; font-size: .78rem; color: #ff8892; margin-top: 6px; }
.field.has-error .err { display: block; }

.form-note { font-size: .8rem; color: var(--dim); margin-top: 14px; text-align: center; }

.form-ok {
  display: none;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: rgba(41, 209, 124, .1);
  border: 1px solid rgba(41, 209, 124, .35);
  color: #7ce8b2;
  font-size: .91rem;
}
.form-ok.show { display: flex; animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 48px auto 0; display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color .3s;
}
.faq__item.open { border-color: rgba(225, 29, 46, .45); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 22px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  transition: color .25s;
}
.faq__q:hover { color: var(--red-bright); }
.faq__q svg { flex-shrink: 0; color: var(--red-bright); transition: transform .35s var(--ease); }
.faq__item.open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding: 0 22px 20px; color: var(--muted); font-size: .93rem; }

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.toolbar-public { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-bottom: 34px; }
.toolbar-public:empty { margin-bottom: 0; }
.chip-public {
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: .86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .24s var(--ease);
}
.chip-public:hover { color: var(--text); border-color: rgba(225, 29, 46, .45); }
.chip-public.is-active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--shadow-red); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.work-loading { grid-column: 1/-1; text-align: center; color: var(--dim); padding: 50px 0; }

.work {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(168deg, var(--surface-2), var(--surface));
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .32s, box-shadow .4s;
}
.work:hover { transform: translateY(-7px); border-color: rgba(225, 29, 46, .45); box-shadow: var(--shadow); }

.work__shot {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 40%, rgba(225, 29, 46, .2), transparent 65%),
    linear-gradient(150deg, var(--surface-2), var(--bg));
  overflow: hidden;
}
.work__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work:hover .work__shot img { transform: scale(1.06); }
.work__letter {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -.05em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .75;
}
.work__star {
  position: absolute;
  top: 13px; right: 13px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--grad);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-red);
}

.work__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.work__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.work__top h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -.01em; }
.work__client { font-size: .82rem; color: var(--dim); margin-top: 4px; }
.work__body p { color: var(--muted); font-size: .92rem; margin-top: 12px; flex: 1; }
.work__link { margin-top: 20px; align-self: flex-start; }

.work-empty {
  grid-column: 1/-1;
  padding: 70px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--dim);
}
.work-empty svg { color: var(--line); margin-bottom: 16px; }
.work-empty strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 7px; }
.work-empty span { display: block; font-size: .92rem; margin-bottom: 22px; }
.work-empty code {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: .86rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(225, 29, 46, .1);
  color: var(--red-bright);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 5, 6, .7);
  padding: 54px 0 28px;
  margin-top: 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.footer__grid p { color: var(--muted); font-size: .92rem; margin-top: 15px; max-width: 40ch; }
.footer h5 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 15px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a { font-size: .92rem; color: var(--muted); transition: color .25s, padding-left .25s; }
.footer ul a:hover { color: var(--red-bright); padding-left: 5px; }
.footer__bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--dim);
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .35s var(--ease);
  z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .09s; }
.reveal[data-d="2"] { transition-delay: .18s; }
.reveal[data-d="3"] { transition-delay: .27s; }
.reveal[data-d="4"] { transition-delay: .36s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* On a desktop the whole hero has to fit inside one screen, so the photo
   is capped to the space left under the top bar instead of overflowing. */
@media (min-width: 981px) {
  .hero { padding-block: var(--nav-h) 40px; }
  .photo-cut img {
    width: auto;
    max-width: 100%;
    max-height: calc(100svh - var(--nav-h) - 96px);
  }
}

/* Short laptop screens (1366x768 and friends): tighten the hero so it
   still lands inside one screen instead of spilling past the fold. */
@media (min-width: 981px) and (max-height: 800px) {
  .hero { padding-block: var(--nav-h) 24px; }
  .hero h1 { font-size: clamp(2.1rem, 3.3vw, 3rem); margin-bottom: 16px; }
  .hero__text { font-size: .98rem; margin-bottom: 24px; }
  .hero__btns { margin-bottom: 26px; }
  .badge { margin-bottom: 18px; }
  .stat__num { font-size: 1.75rem; }
  .photo-cut img { max-height: calc(100svh - var(--nav-h) - 60px); }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 46px; }
  .hero__visual { max-width: 540px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 380px; aspect-ratio: 1 / 1; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .burger { display: block; }
  .nav__cta .btn { display: none; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 18px 5vw 26px;
    background: rgba(8, 5, 6, .97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: all .32s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 14px 12px; font-size: 1rem; }
  .nav__links a::after { display: none; }
  .nav__links .nav__mobile-cta { display: block; margin-top: 12px; }
  .nav__links .btn { padding: 14px 22px; }

  .float-chip--a { left: -8px; }
  .float-chip--b { right: -4px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__btns .btn { flex: 1; }
}

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