/* =========================================================
   Ans Qazzafi — Portfolio
   Brand: deep teal-black + electric cyan
   ========================================================= */
:root {
  --bg: #f4f6f6;
  --bg-alt: #eaf9fa;
  --surface: #ffffff;
  --surface-2: #e2f8fa;
  --line: rgba(1, 16, 18, 0.09);
  --line-strong: rgba(0, 170, 190, 0.38);
  --cyan: #1fd5e3;
  --cyan-hi: #12c6d6;
  --cyan-ink: #00818f;
  --cyan-soft: #87ecf2;
  --cyan-deep: #00a9b8;
  --ink: #010f12;
  --text: #0a1416;
  --muted: #4c6265;
  --radius: 18px;
  --shadow: 0 20px 50px -22px rgba(1, 50, 56, 0.25);
  --glow: 0 0 0 1px var(--line-strong), 0 20px 44px -14px rgba(0, 170, 190, 0.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.accent { color: var(--cyan-hi); }

.eyebrow {
  color: var(--cyan-ink);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--cyan); color: var(--ink); box-shadow: 0 10px 26px -10px rgba(0, 170, 190, 0.7); }
.btn--primary:hover { box-shadow: 0 14px 32px -8px rgba(0, 170, 190, 0.8); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--cyan-ink); color: var(--cyan-ink); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; }
.logo__mark { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--cyan), 0 6px 16px -6px rgba(0, 170, 190, 0.6); }
.logo__text span { color: var(--cyan-ink); }

.nav__links { display: flex; align-items: center; gap: 30px; font-weight: 500; font-size: 0.97rem; }
.nav__links a:not(.btn) { color: var(--muted); transition: color 0.2s; position: relative; }
.nav__links a:not(.btn):hover,
.nav__links a.active { color: var(--cyan-ink); }
.nav__cta { padding: 11px 22px; }

.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Light streaks (brand motif) ---------- */
.streaks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.streaks path { fill: none; stroke: var(--cyan); stroke-width: 1.4; opacity: 0.5; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 130px 0 90px;
  background:
    radial-gradient(900px 620px at 80% 40%, rgba(31, 213, 227, 0.32), transparent 62%),
    radial-gradient(700px 520px at 0% 100%, rgba(135, 236, 242, 0.45), transparent 62%),
    linear-gradient(180deg, #ffffff, var(--bg));
  overflow: hidden;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 60px; }
.hero__text .eyebrow { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 8px; }
.hero__name { font-size: clamp(3rem, 7.2vw, 5.6rem); font-weight: 800; letter-spacing: -0.035em; }
.hero__role { font-size: clamp(1.2rem, 2.2vw, 1.65rem); font-weight: 600; margin: 18px 0 20px; }
.hero__lead { color: var(--muted); font-size: 1.12rem; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }

.socials { display: flex; gap: 12px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--text); transition: all 0.2s;
}
.socials a:hover { background: var(--cyan); color: var(--ink); border-color: var(--cyan-ink); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

.hero__visual { position: relative; justify-self: center; width: min(460px, 100%); }
.portrait { position: relative; aspect-ratio: 1; }
.portrait img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 58% 42% 50% 50% / 50% 55% 45% 50%;
  box-shadow: var(--shadow);
  animation: morph 12s ease-in-out infinite;
}
.portrait__ring {
  position: absolute; inset: -16px;
  border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 40px rgba(31, 213, 227, 0.35);
  animation: morph 12s ease-in-out infinite reverse;
}
@keyframes morph {
  0%, 100% { border-radius: 58% 42% 50% 50% / 50% 55% 45% 50%; }
  50% { border-radius: 45% 55% 42% 58% / 56% 44% 56% 44%; }
}

.chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  font-weight: 600; font-size: 0.92rem;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.chip__icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--cyan); color: var(--ink);
  font-weight: 800; font-size: 0.82rem;
}
.chip__icon--figma, .tool__badge--figma {
  background:
    radial-gradient(circle at 70% 50%, #1abcfe 0 22%, transparent 23%),
    conic-gradient(from 0deg at 50% 50%, #a259ff 0 25%, #f24e1e 0 50%, #ff7262 0 75%, #0acf83 0);
}
.chip--a { top: 6%; left: -12%; }
.chip--b { top: 40%; right: -14%; animation-delay: -1.6s; }
.chip--c { bottom: 6%; left: -4%; animation-delay: -3.2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 2px solid var(--muted); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--cyan); border-radius: 2px; animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Trust strip ---------- */
.trust { background: var(--cyan); color: var(--ink); }
.trust__inner { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 22px 0; flex-wrap: wrap; }
.trust__label { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: rgba(1, 15, 18, 0.7); }
.trust__list { display: flex; flex-wrap: wrap; gap: 14px 34px; list-style: none; margin: 0; padding: 0; font-weight: 600; }
.trust__list li { position: relative; }
.trust__list li + li::before { content: ""; position: absolute; left: -18px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); transform: translateY(-50%); }
.trust__list strong { color: var(--ink); font-weight: 800; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__head h2, .about__text h2, .skills__text h2, .book__text h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.section__head p:not(.eyebrow) { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature { text-align: center; padding: 20px 14px; }
.feature__icon {
  width: 104px; height: 104px; margin: 0 auto 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(31, 213, 227, 0.22), rgba(255,255,255,0.6) 70%);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 24px rgba(31, 213, 227, 0.18);
}
.feature__icon svg, .service__icon svg { width: 40px; height: 40px; fill: none; stroke: var(--cyan-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.35rem; margin-bottom: 12px; }
.feature p { color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__visual { position: relative; padding: 30px; }
.about__frame {
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  overflow: hidden; aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  box-shadow: var(--glow);
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.stat {
  position: absolute;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.stat__num { font-size: 2.3rem; font-weight: 800; color: var(--cyan-ink); letter-spacing: -0.03em; }
.stat__label { font-size: 0.92rem; font-weight: 500; line-height: 1.3; }
.stat--a { top: 14%; left: -10px; }
.stat__star { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--cyan); }
.stat__star svg { width: 24px; height: 24px; fill: var(--ink); }
.stat__label strong { font-size: 1.2rem; font-weight: 800; color: var(--cyan-ink); letter-spacing: -0.01em; }
.stat--b { bottom: 8%; right: -10px; }
.about__text p:not(.eyebrow) { color: var(--muted); margin-top: 20px; font-size: 1.05rem; }
.about__text .btn { margin-top: 32px; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; }
.filters button {
  background: none; border: 1px solid transparent; color: var(--muted);
  font: inherit; font-weight: 500; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  transition: all 0.2s;
}
.filters button:hover { color: var(--text); }
.filters button.active { color: var(--cyan-ink); border-color: var(--line-strong); background: rgba(31, 213, 227, 0.12); }

.grid-work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work {
  position: relative; display: flex; flex-direction: column; width: 100%;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; padding: 0; color: inherit; font: inherit; text-align: left;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.work:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--glow); }
.work__img { aspect-ratio: 3 / 2; overflow: hidden; background: #e6f7f8; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.work:hover .work__img img { transform: scale(1.06); }
.work__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; }
.work__meta h4 { font-size: 1.15rem; margin-bottom: 2px; }
.work__meta span { color: var(--muted); font-size: 0.88rem; }
.work__arrow {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--cyan-ink); transition: all 0.25s;
}
.work__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.work:hover .work__arrow { background: var(--cyan); color: var(--ink); transform: rotate(45deg); }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.skills__text p:not(.eyebrow) { color: var(--muted); margin-top: 18px; }
.bars { margin-top: 40px; display: grid; gap: 26px; }
.bar__top { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 10px; }
.bar__top span:last-child { color: var(--cyan-ink); }
.bar__track { height: 7px; background: rgba(1, 16, 18, 0.08); border-radius: 99px; overflow: hidden; }
.bar__fill {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
  
  transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}
.skills__tools { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tool {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s;
}
.tool:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tool__badge {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(31, 213, 227, 0.16); border: 1px solid var(--line-strong);
  color: var(--cyan-ink); font-weight: 800; font-size: 0.8rem;
}
.tool__badge.tool__badge--figma {
  border: 0;
  background:
    radial-gradient(circle at 70% 50%, #1abcfe 0 22%, transparent 23%),
    conic-gradient(from 0deg at 50% 50%, #a259ff 0 25%, #f24e1e 0 50%, #ff7262 0 75%, #0acf83 0);
}
.tool h4 { font-size: 1.02rem; margin-bottom: 4px; }
.tool p { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  position: relative; padding: 38px 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.service::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 213, 227, 0.25), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.service:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--glow); }
.service:hover::after { opacity: 1; }
.service__icon {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(31, 213, 227, 0.16); margin-bottom: 24px;
}
.service__icon svg { width: 32px; height: 32px; }
.service h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service p { color: var(--muted); }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process li { position: relative; padding: 30px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.process li span { display: inline-block; font-size: 2.4rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1.4px var(--cyan-ink); margin-bottom: 14px; }
.process h3 { font-size: 1.18rem; margin-bottom: 10px; }
.process p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Testimonials ---------- */
.reviews__summary { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin: -24px 0 46px; color: var(--muted); }
.reviews__summary strong { color: var(--text); }
.stars { color: #ffb648; letter-spacing: 3px; font-size: 1.05rem; }
.reviews { columns: 3 300px; column-gap: 24px; }
.review {
  break-inside: avoid; margin: 0 0 24px; position: relative;
  padding: 30px 28px 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s;
}
.review:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.review::before {
  content: "\201C"; position: absolute; top: 6px; right: 22px;
  font-size: 5.5rem; line-height: 1; font-weight: 800; color: rgba(31, 213, 227, 0.3);
}
.review__top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.review__top b { font-size: 0.92rem; }
.review__project { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--cyan-ink); background: rgba(31, 213, 227, 0.14); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.review blockquote { margin: 0; font-size: 1.04rem; line-height: 1.7; color: var(--text); }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.review__avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep)); color: var(--ink); font-weight: 800; font-size: 0.95rem;
}
.review__avatar img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.review figcaption strong { display: block; font-size: 0.98rem; }
.review figcaption span { color: var(--muted); font-size: 0.85rem; }
.review__verified { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--cyan-ink); white-space: nowrap; }
.review__verified svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Book a call ---------- */
.book {
  overflow: hidden;
  background:
    radial-gradient(800px 500px at 85% 20%, rgba(31, 213, 227, 0.28), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(135, 236, 242, 0.4), transparent 60%),
    #ffffff;
}
.book__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.book__text p:not(.eyebrow) { color: var(--muted); margin-top: 18px; font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23021316' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.book__widget {
  border-radius: 22px; overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--glow), var(--shadow);
  min-height: 680px;
}
.book__widget .calendly-inline-widget { min-width: 300px; height: 700px; }
.book__placeholder {
  height: 100%; min-height: 680px; display: grid; place-items: center; text-align: center; padding: 40px;
  background: linear-gradient(160deg, var(--surface-2), var(--bg)); color: var(--muted);
}
.book__placeholder h3 { color: var(--text); font-size: 1.4rem; margin-bottom: 10px; }
.book__placeholder .btn { margin-top: 24px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.contact__info { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact__info li { display: flex; align-items: center; gap: 20px; }
.contact__info .ci-icon {
  flex: none; width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(31, 213, 227, 0.16); border: 1px solid var(--line);
}
.contact__info svg { width: 24px; height: 24px; fill: none; stroke: var(--cyan-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__info h4 { font-size: 1.25rem; margin-bottom: 4px; }
.contact__info a, .contact__info p { color: var(--muted); }
.contact__info a:hover { color: var(--cyan-ink); }

.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; }
.form label span { font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; color: var(--text);
  padding: 15px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300eaff' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--cyan-ink); box-shadow: 0 0 0 3px rgba(31, 213, 227, 0.3); }
.form .invalid { border-color: #ff6b81; }
.form .btn { justify-self: start; }
.form__status { font-size: 0.95rem; min-height: 1.4em; color: var(--cyan-ink); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.95rem; }
.footer__top:hover { color: var(--cyan-ink); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(1, 16, 18, 0.55); backdrop-filter: blur(6px); }
.lightbox__panel {
  position: relative; width: min(1000px, 100%); max-height: 90vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px;
  animation: pop 0.3s ease;
}
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }
.lightbox__media img { width: 100%; }
.lightbox__body { padding: 28px 32px 34px; }
.lightbox__body h3 { font-size: 1.6rem; margin-bottom: 12px; }
.lightbox__body p:not(.eyebrow) { color: var(--muted); margin-bottom: 22px; }
.lightbox__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services, .grid-work { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .about, .skills { gap: 50px; }
}

@media (max-width: 880px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 68px 16px auto 16px;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; border-radius: 16px;
    background: rgba(255, 255, 255, 0.98); border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.25s;
  }
  .nav__links.open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a:not(.btn) { padding: 12px 10px; }
  .nav__cta { justify-content: center; margin-top: 6px; }

  .hero { padding-top: 110px; text-align: center; }
  .hero__grid, .about, .skills, .book__grid, .contact { grid-template-columns: 1fr; }
  .hero__visual { order: -1; width: min(320px, 78%); }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .socials { justify-content: center; }
  .chip { font-size: 0.8rem; padding: 7px 12px 7px 7px; }
  .chip__icon { width: 28px; height: 28px; }
  .chip--a { left: -8%; }
  .chip--b { right: -10%; }
  .scroll-cue { display: none; }

  .features { grid-template-columns: 1fr; }
  .about__visual { max-width: 460px; margin: 0 auto; }
  .section { padding: 80px 0; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .services, .process, .skills__tools, .form__row, .grid-work { grid-template-columns: 1fr; }
  .trust__list { justify-content: center; }
  .trust__list li + li::before { display: none; }
  .stat { padding: 12px 16px; }
  .stat__num { font-size: 1.7rem; }
  .stat__star { width: 38px; height: 38px; }
  .stat--a { left: 0; }
  .stat--b { right: 0; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .book__widget, .book__placeholder { min-height: 560px; }
  .contact__info .ci-icon { width: 58px; height: 58px; }
  .lightbox__body { padding: 22px; }
}
