/* ============================================================
   Muhammad Ahsan — Personal Brand
   Light + Dark themes · Space Grotesk + Inter · blue→cyan
   (styled after thedarkbytes.com, adapted for a creator brand)
   ============================================================ */

:root {
  /* shared tokens */
  --maxw: 1200px;
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wa: #25d366;

  /* ---------- LIGHT theme (default) ---------- */
  --bg: #ffffff;
  --bg-2: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f3f5fb;
  --line: rgba(12, 16, 28, 0.10);
  --line-2: rgba(12, 16, 28, 0.16);

  --text: #0d1018;
  --muted: #565d6e;
  --muted-2: #899; /* fallback */
  --muted-2: #8a90a0;

  --accent: #2f6bff;
  --accent-2: #0b96b3;
  --accent-soft: rgba(47, 107, 255, 0.10);
  --glow: rgba(47, 107, 255, 0.22);
  --grad: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);

  --chip-bg: rgba(12, 16, 28, 0.04);
  --nav-bg: rgba(255, 255, 255, 0.80);
  --nav-bg-solid: rgba(255, 255, 255, 0.98);
  --glass: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(12, 16, 28, 0.10);
  --grid-line: rgba(12, 16, 28, 0.055);
  --shadow: 0 30px 70px -34px rgba(20, 30, 60, 0.30);
  --shadow-sm: 0 14px 34px -16px rgba(20, 30, 60, 0.22);
}

:root[data-theme="dark"] {
  --bg: #07070a;
  --bg-2: #0b0c11;
  --surface: #101218;
  --surface-2: #161922;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --text: #eaecf2;
  --muted: #9aa1b1;
  --muted-2: #6a7080;

  --accent: #4d7cfe;
  --accent-2: #22d3ee;
  --accent-soft: rgba(77, 124, 254, 0.16);
  --glow: rgba(77, 124, 254, 0.35);
  --grad: linear-gradient(135deg, #4d7cfe 0%, #22d3ee 100%);

  --chip-bg: rgba(255, 255, 255, 0.03);
  --nav-bg: rgba(7, 7, 10, 0.78);
  --nav-bg-solid: rgba(7, 7, 10, 0.98);
  --glass: rgba(16, 18, 24, 0.92);
  --glass-border: rgba(255, 255, 255, 0.14);
  --grid-line: rgba(255, 255, 255, 0.08);
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  --shadow-sm: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* smooth crossfade only while toggling theme */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    color 0.4s var(--ease), fill 0.4s var(--ease), box-shadow 0.4s var(--ease) !important;
}

/* ---------- shared ---------- */
.kicker { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; margin-bottom: 1rem; }
.grad {
  background: linear-gradient(110deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.section__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; }
.section__head { max-width: 660px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; max-width: 100%; flex-wrap: wrap; }
.section__sub { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.5rem; border-radius: 999px; font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.88rem; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #05080f; box-shadow: 0 10px 30px -10px var(--glow); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -12px var(--glow); }
.btn--ghost { background: var(--chip-bg); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn--whatsapp { background: var(--wa); color: #04130a; }
.btn--whatsapp:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -14px rgba(37, 211, 102, 0.5); }

/* ============================================================ NAV */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; border-bottom: 1px solid transparent; transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s; }
.nav.is-scrolled { background: var(--nav-bg); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 600; }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: #05080f; background: var(--grad); box-shadow: 0 6px 18px -6px var(--glow); }
.brand__name { font-family: var(--font-display); font-size: 0.98rem; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a { font-size: 0.92rem; color: var(--muted); transition: color 0.25s; }
.nav__links a:hover { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 1.1rem; }
.nav__social { display: flex; align-items: center; gap: 0.7rem; }
.nav__social a { color: var(--muted); transition: color 0.25s, transform 0.25s; }
.nav__social a svg { width: 18px; height: 18px; display: block; }
.nav__social a:hover { color: var(--accent-2); transform: translateY(-2px); }

.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--chip-bg); border: 1px solid var(--line-2); color: var(--text); cursor: pointer;
  margin-left: auto; transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================ HERO */
.hero { position: relative; padding: clamp(120px, 17vh, 180px) 0 80px; overflow: hidden; }
.hero__grid-bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.9;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero__glow { position: absolute; top: -20%; left: 60%; transform: translateX(-50%); width: 760px; height: 760px; z-index: 0; pointer-events: none; background: radial-gradient(circle, var(--accent-soft) 0%, transparent 62%); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--muted); font-weight: 500; padding: 0.4rem 0.85rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--chip-bg); margin-bottom: 1.5rem; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; }
.hero__lead { margin-top: 1.6rem; max-width: 520px; font-size: clamp(1rem, 1.8vw, 1.14rem); color: var(--muted); }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero__socials { display: flex; gap: 1.1rem; margin-top: 2.4rem; }
.hero__socials a { color: var(--muted); transition: color 0.25s, transform 0.25s; }
.hero__socials a svg { width: 22px; height: 22px; }
.hero__socials a:hover { color: var(--accent-2); transform: translateY(-3px); }

.hero__media { position: relative; }
.photo { position: relative; border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 60%), linear-gradient(160deg, var(--surface-2), var(--bg-2)); border: 1px solid var(--line-2); display: grid; place-items: center; }
.photo--hero { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.photo--about { aspect-ratio: 1 / 1; max-width: 420px; box-shadow: var(--shadow-sm); }
.photo__fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 10vw, 7rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.85; }
.photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; z-index: 2; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: 14px; padding: 0.8rem 1.1rem; box-shadow: var(--shadow-sm); }
.float-card--tl { top: 18px; left: -22px; }
.float-card--br { bottom: 18px; right: -22px; }
.float-card__k { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--accent-2); line-height: 1; }
.float-card__v { font-size: 0.78rem; color: var(--muted); }

.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.scroll-cue svg { width: 18px; height: 18px; animation: bob 1.8s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ============================================================ MARQUEE */
.marquee { border-block: 1px solid var(--line); padding: 1.1rem 0; overflow: hidden; background: var(--bg-2); }
.marquee--soft { background: transparent; border-color: var(--line); }
.marquee__track { display: flex; align-items: center; gap: 1.6rem; width: max-content; animation: scroll 34s linear infinite; }
.marquee__track--rev { animation-direction: reverse; animation-duration: 40s; }
.marquee__track span { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--text); white-space: nowrap; }
.marquee--soft .marquee__track span { color: var(--muted); font-weight: 500; }
.marquee__track i { color: var(--accent); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============================================================ ABOUT */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.about__media { display: flex; justify-content: center; }
.about__body p { color: var(--muted); margin-top: 1.1rem; font-size: 1.04rem; }
.about__body strong { color: var(--text); font-weight: 600; }
.about__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* ============================================================ STATS */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 2rem 1.6rem; }
.stat__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.stat:nth-child(odd) .stat__num { color: var(--accent); }
.stat:nth-child(even) .stat__num { color: var(--accent-2); }
.stat__label { display: block; margin-top: 0.6rem; font-size: 0.86rem; color: var(--muted); }

/* ============================================================ SERVICES */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.svc { position: relative; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s; overflow: hidden; }
.svc::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.svc:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.svc:hover::after { opacity: 1; }
.svc__num { font-family: var(--font-display); font-size: 0.8rem; color: var(--muted-2); letter-spacing: 0.1em; }
.svc__icon { width: 50px; height: 50px; margin: 0.7rem 0 1.1rem; border-radius: 13px; display: grid; place-items: center; color: var(--accent-2); background: var(--accent-soft); border: 1px solid var(--line-2); }
.svc__icon svg { width: 24px; height: 24px; }
.svc h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-bottom: 0.55rem; letter-spacing: -0.01em; }
.svc p { color: var(--muted); font-size: 0.96rem; }

/* ============================================================ PROCESS */
.process { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.step { position: relative; padding: 1.6rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s; }
.step:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.step__no { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; margin: 0.7rem 0 0.5rem; }
.step p { color: var(--muted); font-size: 0.9rem; }
.process__cta { margin-top: 2.6rem; display: flex; justify-content: center; }

/* ============================================================ WORK */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.proj { position: relative; padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--surface); transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s; }
.proj::before { content: ""; position: absolute; inset: 0; opacity: 0.9; z-index: 0; }
.proj--a::before { background: radial-gradient(120% 120% at 0% 0%, rgba(77, 124, 254, 0.22), transparent 55%); }
.proj--b::before { background: radial-gradient(120% 120% at 100% 0%, rgba(34, 211, 238, 0.20), transparent 55%); }
.proj--c::before { background: radial-gradient(120% 120% at 0% 100%, rgba(124, 92, 255, 0.20), transparent 55%); }
.proj--d::before { background: radial-gradient(120% 120% at 100% 100%, rgba(47, 107, 255, 0.18), transparent 55%); }
.proj:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.proj > * { position: relative; z-index: 1; }
.proj__tags { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.proj__tags span { font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); background: var(--chip-bg); border: 1px solid var(--line-2); padding: 0.25rem 0.65rem; border-radius: 999px; }
.proj h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.proj p { color: var(--muted); font-size: 0.96rem; max-width: 46ch; }

/* ============================================================ VIDEOS */
.vid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.vid { display: block; border-radius: var(--radius-sm); overflow: hidden; transition: transform 0.35s var(--ease); }
.vid:hover { transform: translateY(-5px); }
.vid__thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.vid__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.vid:hover .vid__thumb img { transform: scale(1.06); }
.vid__time { position: absolute; bottom: 8px; right: 8px; font-size: 0.72rem; font-weight: 600; color: #fff; background: rgba(0, 0, 0, 0.8); padding: 0.15rem 0.45rem; border-radius: 6px; }
.vid__play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 0.3s; }
.vid__play::after { content: ""; width: 0; height: 0; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; margin-left: 4px; z-index: 1; }
.vid__play::before { content: ""; position: absolute; width: 56px; height: 56px; border-radius: 50%; background: var(--grad); }
.vid:hover .vid__play { opacity: 1; }
.vid h3 { font-family: var(--font-display); font-weight: 500; font-size: 0.98rem; margin: 0.8rem 0 0.3rem; line-height: 1.35; color: var(--text); }
.vid__meta { font-size: 0.82rem; color: var(--muted-2); }

/* ============================================================ CREDENTIALS */
.creds-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.cred { padding: 1.8rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s; }
.cred:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.cred__tag { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }
.cred h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin: 0.8rem 0 0.4rem; }
.cred p { color: var(--muted); font-size: 0.88rem; }

/* ============================================================ CTA BAND */
.cta-band { text-align: center; }
.cta-band__inner { position: relative; padding: clamp(3rem, 6vw, 5rem) 1.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: radial-gradient(120% 140% at 50% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.cta-band__inner h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
.cta-band__inner p { color: var(--muted); margin: 1rem auto 0; max-width: 480px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* ============================================================ CONTACT */
.contact { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact__copy > p { color: var(--muted); margin-top: 1rem; max-width: 400px; }
.contact__list { list-style: none; margin-top: 2rem; display: grid; gap: 1rem; }
.contact__list li { display: flex; align-items: center; gap: 0.9rem; }
.contact__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); border: 1px solid var(--line-2); color: var(--accent-2); flex: 0 0 42px; }
.contact__ic svg { width: 20px; height: 20px; }
.contact__list a { color: var(--text); transition: color 0.25s; }
.contact__list a:hover { color: var(--accent-2); }
.contact__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); display: grid; gap: 1rem; box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.84rem; color: var(--muted); font-weight: 500; }
.field input, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0.85rem 1rem; color: var(--text); font-family: inherit; font-size: 0.95rem; resize: vertical; transition: border-color 0.3s, box-shadow 0.3s; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form__note { font-size: 0.85rem; color: var(--accent-2); text-align: center; }

/* ============================================================ FOOTER */
.footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 80px); background: var(--bg-2); }
.footer__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(36px, 5vw, 72px); padding-bottom: 3rem; }
.footer__brand .brand { margin-bottom: 1.1rem; }
.footer__brand p { color: var(--muted); font-size: 0.92rem; max-width: 360px; }
.footer__social { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-2); color: var(--muted); transition: color 0.25s, border-color 0.25s, transform 0.25s; }
.footer__social a svg { width: 18px; height: 18px; }
.footer__social a:hover { color: var(--accent-2); border-color: var(--accent); transform: translateY(-3px); }
.footer__cols { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 4vw, 56px); }
.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col h4, .footer__newsletter h4 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 0.5rem; }
.footer__col a { font-size: 0.9rem; color: var(--muted); transition: color 0.25s; }
.footer__col a:hover { color: var(--text); }
.footer__newsletter p { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.news { display: flex; gap: 0.6rem; }
.news input { flex: 1; background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; padding: 0.7rem 1.1rem; color: var(--text); font-family: inherit; font-size: 0.9rem; }
.news input:focus { outline: none; border-color: var(--accent); }
.news__note { font-size: 0.85rem; color: var(--accent-2); margin-top: 0.7rem; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 0 2.4rem; border-top: 1px solid var(--line); margin-top: 1rem; }
.footer__bottom p { font-size: 0.82rem; color: var(--muted-2); }
.footer__sig { font-family: var(--font-display); font-style: italic; }

/* ============================================================ REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .scroll-cue svg, .pill__dot, .grad { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1000px) {
  .svc-grid, .vid-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .creds-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__links { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--nav-bg-solid); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding: 0.8rem 24px 1.4rem; transform: translateY(-130%); transition: transform 0.45s var(--ease); }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { width: 100%; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav__toggle { display: flex; }
  .nav__right { display: none; }
  .theme-toggle { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 420px; margin: 0 auto; order: -1; }
  .about__grid, .contact__inner, .footer__top { grid-template-columns: 1fr; }
  .about__media { order: -1; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .svc-grid, .vid-grid, .work-grid, .steps, .creds-grid { grid-template-columns: 1fr; }
  .section__head--row { align-items: flex-start; }
  .float-card--tl { left: 8px; }
  .float-card--br { right: 8px; }
  .brand__name { font-size: 0.92rem; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
