/* ==========================================================================
   AHMED — Video Editor Portfolio
   Shared design system. Every page links this one stylesheet.
   Layout concept: pitch-black stage, one orange→crimson gradient used for
   emphasis, heavy tight display type, quiet dark cards with hairline borders.
   ========================================================================== */

:root {
  /* Color */
  --bg: #050505;              /* page */
  --bg-2: #0b0b0c;            /* alternate section band */
  --card: #0f0f11;            /* cards / panels */
  --card-2: #141416;          /* raised / hover */
  --line: #1f1f23;            /* hairlines */
  --line-2: #2c2c31;
  --fg: #ffffff;
  --text: #d6d6da;            /* body copy */
  --muted: #8a8a92;
  /* Brand colors sampled from the WP Solutions logo */
  --orange: #5edfe3;          /* logo cyan (kept token name for compatibility) */
  --crimson: #3350ff;         /* logo royal blue, lifted slightly for dark bg */
  --pink: #5aa8ff;            /* in-between blue for small accents */
  --grad: linear-gradient(100deg, #5edfe3 0%, #3f8ef7 50%, #233cfe 100%);
  --grad-btn: linear-gradient(100deg, #22b8c6 0%, #2f74f0 50%, #233cfe 100%);
  --grad-soft: linear-gradient(135deg, rgba(var(--a1-rgb), .14), rgba(var(--a2-rgb), .16));
  --glow: rgba(var(--a2-rgb), .5);
  --a1-rgb: 94, 223, 227;
  --a2-rgb: 35, 60, 254;
  --a3-rgb: 90, 168, 255;
  --header-bg: rgba(5, 5, 5, .72);
  --header-bg-2: rgba(5, 5, 5, .9);
  --footer-bg: #080809;
  --well: var(--well);
  --green: #22c55e;

  /* Type */
  --font-display: "Bricolage Grotesque", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --step--1: .8rem;
  --step-0: clamp(.98rem, .95rem + .15vw, 1.05rem);
  --step-1: clamp(1.1rem, 1.05rem + .3vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.2rem + .9vw, 1.9rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.3rem);
  --step-4: clamp(2.9rem, 1.6rem + 5.6vw, 6.4rem);

  /* Space & shape */
  --gutter: clamp(16px, 5vw, 64px);
  --section: clamp(76px, 10vw, 128px);
  --max: 1240px;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--fg);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pink { color: var(--pink); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--grad-btn); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Ambient background: soft glows that drift and pulse ---------- */
.ambient { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: var(--bg); }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); will-change: transform, opacity; }
.orb--1 { width: 42vmax; height: 42vmax; background: var(--crimson); top: -20vmax; right: -12vmax; opacity: .16; animation: drift-a 28s ease-in-out infinite alternate, pulse 10s ease-in-out infinite; }
.orb--2 { width: 34vmax; height: 34vmax; background: var(--orange); bottom: -16vmax; left: -12vmax; opacity: .12; animation: drift-b 34s ease-in-out infinite alternate, pulse 12s ease-in-out infinite 3s; }
.orb--3 { width: 26vmax; height: 26vmax; background: var(--pink); top: 45vh; left: 35vw; opacity: .07; animation: drift-c 30s ease-in-out infinite alternate, pulse 14s ease-in-out infinite 5s; }
@keyframes drift-a { to { transform: translate3d(-8vw, 10vh, 0) scale(1.1); } }
@keyframes drift-b { to { transform: translate3d(10vw, -8vh, 0) scale(.9); } }
@keyframes drift-c { to { transform: translate3d(-10vw, -6vh, 0) scale(1.15); } }
@keyframes pulse { 50% { opacity: .22; } }
#particles { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Custom cursor (fine pointers only) ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 300; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor-dot { width: 6px; height: 6px; background: var(--pink); margin: -3px 0 0 -3px; }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(var(--a3-rgb), .7); transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.cursor-hover .cursor-ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(var(--a3-rgb), .08); }

/* ---------- Buttons, labels, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s, background-color .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--grad { background: var(--grad-btn); color: #fff; box-shadow: 0 12px 34px -12px var(--glow); }
.btn--grad:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -10px var(--glow); }
.btn--outline { border-color: rgba(var(--a3-rgb), .45); color: var(--fg); background: transparent; }
.btn--outline:hover { border-color: var(--pink); background: rgba(var(--a3-rgb), .08); transform: translateY(-2px); }
.btn--sm { padding: 11px 22px; font-size: .92rem; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--pink);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.kicker--center::after { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(var(--a3-rgb), .35); background: rgba(var(--a3-rgb), .06);
  color: var(--orange); font-size: .86rem; font-weight: 600;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

.tag {
  display: inline-flex; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--pink); font-size: .84rem; font-weight: 500;
  transition: border-color .3s, background-color .3s;
}
.tag:hover { border-color: rgba(var(--a3-rgb), .5); background: rgba(var(--a3-rgb), .06); }

.section { padding-block: var(--section); position: relative; }
.section--band { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }
.section-head { display: grid; justify-items: center; text-align: center; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: var(--step-3); max-width: 18ch; }
.section-head p { color: var(--muted); max-width: 54ch; }
.section-foot { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 56px); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background-color .4s;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--a2-rgb), .55), transparent);
}
.site-header.is-scrolled { background: var(--header-bg-2); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -.04em; color: var(--fg); }
.logo span { color: var(--pink); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .25s; padding-block: 6px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
  background: transparent; cursor: pointer; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--fg); border-radius: 2px; position: relative;
  transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; }

@media (max-width: 920px) {
  .nav-toggle { display: grid; }
  .nav .btn--nav { display: none; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--header-bg-2); opacity: 0; visibility: hidden; z-index: -1;
    transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav-links a { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--fg); letter-spacing: -.03em; }
  .nav-open .nav-links { opacity: 1; visibility: visible; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 72px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.hero-copy { display: grid; gap: 28px; justify-items: start; min-width: 0; position: relative; z-index: 2; }
.hero h1 { font-size: var(--step-4); line-height: .98; letter-spacing: -.05em; }
.hero h1 span { display: block; }
.hero h1 .l3 { color: var(--crimson); }
.hero-lede { color: var(--text); font-size: var(--step-1); max-width: 44ch; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 18px clamp(24px, 4vw, 48px); margin-top: 8px; }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.hero-stats span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy > *:nth-child(1) { animation-delay: .1s; }
.hero-copy > *:nth-child(2) { animation-delay: .2s; }
.hero-copy > *:nth-child(3) { animation-delay: .32s; }
.hero-copy > *:nth-child(4) { animation-delay: .44s; }
.hero-copy > *:nth-child(5) { animation-delay: .56s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

.hero-visual { position: relative; justify-self: center; width: min(100%, 500px); }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% 4% 12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--a2-rgb), .55), rgba(var(--a1-rgb), .18) 60%, transparent);
  filter: blur(40px); z-index: 0; animation: pulse-glow 7s ease-in-out infinite;
}
@keyframes pulse-glow { 50% { opacity: .65; transform: scale(1.06); } }
.hero-photo {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 5 / 6; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 62% 72% at 50% 46%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 72% at 50% 46%, #000 55%, transparent 100%);
  animation: reveal-photo 1.7s var(--ease) .2s both;
}
@keyframes reveal-photo {
  from { opacity: 0; transform: translateY(30px) scale(1.04); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.float-card {
  position: absolute; z-index: 3; display: grid; gap: 2px;
  padding: 14px 20px; border-radius: 16px;
  background: rgba(18, 18, 20, .82); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9);
  animation: rise 1s var(--ease) both, float 7s ease-in-out infinite;
}
.float-card b { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.float-card small { color: var(--muted); font-size: .8rem; }
.float-card--a { top: 2%; right: -2%; animation-delay: 1.1s, 1.5s; }
.float-card--b { bottom: 14%; left: -6%; animation-delay: 1.3s, 3s; }
@keyframes float { 50% { transform: translateY(-9px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: min(100%, 380px); }
  .float-card--b { left: 0; }
  .float-card--a { right: 0; }
}

/* ---------- Skills ticker ---------- */
.ticker {
  border-block: 1px solid var(--line); background: rgba(12, 12, 13, .75);
  overflow: hidden; padding-block: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 14px; padding-inline: 26px;
  font-size: .84rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.ticker-item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats row ---------- */
.stats { padding-block: clamp(48px, 6vw, 72px) 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat {
  position: relative; display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: clamp(26px, 3.4vw, 40px) 16px; border-right: 1px solid var(--line); min-width: 0;
  transition: background-color .4s;
}
.stat:last-child { border-right: 0; }
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad);
  transform: scaleX(0); transition: transform .5s var(--ease);
}
.stat:hover { background: var(--card-2); }
.stat:hover::before { transform: scaleX(1); }
.stat-num {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem);
  line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

/* ---------- About (Who I am) ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-visual { position: relative; padding: 70px 70px 0 0; max-width: 520px; width: 100%; }
.about-photo { border-radius: var(--radius); aspect-ratio: 9 / 11; width: 100%; object-fit: cover; border: 1px solid var(--line); }
.about-badge-icon {
  position: absolute; top: 0; right: 0; width: clamp(110px, 12vw, 150px); aspect-ratio: 1; border-radius: 22px;
  display: grid; place-items: center; background: var(--grad-btn); color: #fff;
  box-shadow: 0 24px 60px -20px var(--glow); animation: float 8s ease-in-out infinite;
}
.about-badge-icon svg { width: 42%; height: 42%; }
.about-caption {
  position: absolute; right: 50px; bottom: -18px; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 14px; background: rgba(18, 18, 20, .92); border: 1px solid var(--line-2);
  color: var(--fg); font-weight: 700; font-size: .92rem; backdrop-filter: blur(10px);
}
.about-caption .star { color: var(--pink); }
.about-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.about-copy h2 { font-size: var(--step-3); }
.about-copy p { max-width: 58ch; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { padding: 50px 50px 0 0; justify-self: center; }
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  position: relative; display: grid; gap: 14px; align-content: start; justify-items: start;
  padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .35s, background-color .35s, box-shadow .45s var(--ease);
  min-width: 0;
}
.service:hover {
  transform: translateY(-6px); border-color: rgba(var(--a3-rgb), .45);
  background: linear-gradient(160deg, rgba(var(--a1-rgb), .08), rgba(var(--a2-rgb), .04) 60%), var(--card);
  box-shadow: 0 26px 60px -30px var(--glow);
}
.service-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-btn); color: #fff; box-shadow: 0 10px 26px -10px var(--glow); }
.service-icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.service p { color: var(--muted); font-size: .96rem; }
.service .tag { font-size: .76rem; padding: 4px 12px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Featured work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card {
  display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); min-width: 0;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.work-card:hover { transform: translateY(-8px); border-color: rgba(var(--a3-rgb), .45); box-shadow: 0 30px 60px -30px var(--glow); }
.work-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.work-card:hover .work-thumb img { transform: scale(1.08); }
.work-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15, 15, 17, .8)); }
.work-dur {
  position: absolute; z-index: 1; right: 12px; bottom: 12px; padding: 3px 9px; border-radius: 6px;
  background: rgba(0, 0, 0, .7); color: var(--fg); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.work-play {
  position: absolute; z-index: 1; top: 50%; left: 50%; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad-btn); color: #fff;
  transform: translate(-50%, -50%) scale(.7); opacity: 0; transition: transform .45s var(--ease), opacity .35s;
  box-shadow: 0 0 40px var(--glow);
}
.work-play svg { width: 20px; height: 20px; margin-left: 3px; }
.work-card:hover .work-play, .work-card:focus-visible .work-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.work-body { display: grid; gap: 6px; padding: 20px 22px 22px; align-content: start; }
.work-cat { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--pink); }
.work-body h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.work-body p { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- Brands grid ---------- */
.brands-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.brand-tile {
  display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center;
  padding: 30px 12px; min-height: 140px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .4s;
}
.brand-tile:nth-child(5n) { border-right: 0; }
.brand-tile:nth-last-child(-n + 5) { border-bottom: 0; }
.brand-tile:hover { background: var(--grad-soft); }
.brand-tile svg { width: 30px; height: 30px; color: var(--text); transition: color .3s, transform .4s var(--ease); }
.brand-tile:hover svg { color: var(--pink); transform: translateY(-3px) scale(1.08); }
.brand-tile b { color: var(--fg); font-size: .95rem; font-weight: 700; }
.brand-tile small { color: var(--muted); font-size: .76rem; }
.brand-tile--more b { color: var(--pink); }
@media (max-width: 760px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-tile { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .brand-tile:nth-child(2n) { border-right: 0 !important; }
  .brand-tile:nth-last-child(-n + 2) { border-bottom: 0 !important; }
}

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  display: grid; gap: 14px; align-content: start; padding: 30px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); min-width: 0;
  transition: border-color .35s, transform .45s var(--ease);
}
.step:hover { border-color: rgba(var(--a3-rgb), .45); transform: translateY(-6px); }
.step-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); color: var(--pink); }
.step-icon svg { width: 22px; height: 22px; }
.step-no { font-size: .72rem; font-weight: 700; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  display: grid; gap: 22px; align-content: space-between; margin: 0; padding: 30px;
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); cursor: pointer; min-width: 0;
  transition: transform .6s var(--ease), border-color .5s, box-shadow .6s var(--ease), background-color .5s;
}
.quote.is-active {
  transform: translateY(-10px); border-color: rgba(var(--a3-rgb), .55);
  background: linear-gradient(170deg, rgba(var(--a2-rgb), .1), transparent 55%), var(--card);
  box-shadow: 0 30px 70px -30px var(--glow);
}
.quote .stars { color: var(--pink); letter-spacing: 3px; font-size: .95rem; }
.quote blockquote { margin: 0; font-style: italic; color: var(--text); line-height: 1.7; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-btn); color: #fff; font-weight: 800; font-size: .9rem; flex: none; }
.quote figcaption b { display: block; color: var(--fg); font-size: .95rem; }
.quote figcaption small { color: var(--muted); font-size: .8rem; }
.quote-dots { display: none; justify-content: center; gap: 8px; margin-top: 22px; }
.quote-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: var(--line-2); cursor: pointer; transition: width .45s var(--ease), background-color .3s; }
.quote-dots button[aria-selected="true"] { width: 30px; background: var(--grad); }
@media (max-width: 900px) {
  .quotes {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 2px 16px; scrollbar-width: none;
  }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { scroll-snap-align: center; }
  .quote.is-active { transform: none; }
  .quote-dots { display: flex; }
}

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 22px;
  padding: clamp(48px, 7vw, 90px) clamp(20px, 5vw, 60px); border-radius: 28px;
  background: var(--card); border: 1px solid var(--line);
}
.cta-panel::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -40%; width: 80%; height: 90%;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--a2-rgb), .35), rgba(var(--a1-rgb), .12) 60%, transparent);
  filter: blur(30px); animation: pulse-glow 8s ease-in-out infinite;
}
.cta-panel h2 { font-size: var(--step-3); max-width: 16ch; }
.cta-panel p { color: var(--muted); max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta-mail { font-size: .9rem; color: var(--muted); }
.cta-mail span { color: var(--fg); user-select: all; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--section); background: var(--footer-bg); border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 80px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid > * { min-width: 0; }
.footer-about { display: grid; gap: 16px; align-content: start; }
.footer-about p { color: var(--muted); font-size: .92rem; max-width: 30ch; }
.footer-col h4 { font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: .93rem; color: var(--text); transition: color .25s; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--pink); }
.footer-col svg { width: 15px; height: 15px; color: var(--pink); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted);
  transition: color .3s, border-color .3s, transform .3s var(--ease), background-color .3s;
}
.socials a:hover { color: #fff; border-color: transparent; background: var(--grad-btn); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; color: var(--muted); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

/* ---------- Floating widgets ---------- */
.avail {
  position: fixed; z-index: 90; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px;
  background: rgba(15, 15, 17, .9); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  font-size: .82rem; line-height: 1.3; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .9);
  animation: rise 1s var(--ease) 1.6s both;
}
.avail b { color: var(--fg); display: block; }
.avail small { color: var(--muted); }
.avail .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 2s ease-in-out infinite; }
.to-top {
  position: fixed; z-index: 90; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--grad-btn); color: #fff; box-shadow: 0 10px 30px -10px var(--glow);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s, transform .4s var(--ease);
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .avail small { display: none; } }

/* ---------- Scroll reveal (hidden only while JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  #particles, .cursor-dot, .cursor-ring { display: none; }
}

/* ==========================================================================
   About page
   ========================================================================== */
.page-hero { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.page-hero .about-copy h1 { font-size: var(--step-4); line-height: .98; letter-spacing: -.05em; }
.page-hero .about-copy > * { animation: rise 1s var(--ease) both; }
.page-hero .about-copy > *:nth-child(1) { animation-delay: .1s; }
.page-hero .about-copy > *:nth-child(2) { animation-delay: .2s; }
.page-hero .about-copy > *:nth-child(3) { animation-delay: .3s; }
.page-hero .about-copy > *:nth-child(4) { animation-delay: .4s; }
.page-hero .about-copy > *:nth-child(5) { animation-delay: .5s; }
.page-hero .about-copy > *:nth-child(6) { animation-delay: .6s; }
.page-hero .about-visual { animation: reveal-photo 1.6s var(--ease) .15s both; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Skill bars */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 30px clamp(32px, 5vw, 64px); }
.skill { display: grid; gap: 12px; min-width: 0; }
.skill-head { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; color: var(--fg); }
.skill-head span:last-child { color: var(--pink); font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--v); border-radius: inherit; background: var(--grad); box-shadow: 0 0 14px rgba(var(--a1-rgb), .35); }
.js .skill .bar i { width: 0; transition: width 1.6s var(--ease) calc(var(--d, 0s) + .2s); }
.js .skill.is-in .bar i { width: var(--v); }
@media (max-width: 760px) { .skills { grid-template-columns: 1fr; } }

/* Approach: copy on the left, highlight list on the right */
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.approach-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.approach-copy h2 { font-size: var(--step-3); }
.approach-copy p { max-width: 54ch; }
.highlights { display: grid; gap: 16px; min-width: 0; }
.highlight {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .35s, transform .45s var(--ease), box-shadow .45s var(--ease), background-color .35s;
}
.highlight:hover { border-color: rgba(var(--a3-rgb), .5); transform: translateX(-6px); box-shadow: 0 20px 50px -30px var(--glow); }
.highlight-icon { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); color: var(--orange); }
.highlight-icon svg { width: 22px; height: 22px; }
.highlight b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--fg); letter-spacing: -.02em; }
.highlight small { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .approach-grid { grid-template-columns: 1fr; } }

/* Directional reveals */
.js .reveal--left { transform: translateX(-48px); }
.js .reveal--right { transform: translateX(48px); }
.js .reveal--left.is-in, .js .reveal--right.is-in { transform: none; }

/* ==========================================================================
   Services page
   ========================================================================== */
.page-intro { padding-block: clamp(56px, 8vw, 110px) clamp(40px, 5vw, 64px); text-align: center; }
.page-intro .container { display: grid; justify-items: center; gap: 22px; }
.page-intro h1 { font-size: var(--step-4); line-height: .98; letter-spacing: -.05em; }
.page-intro h1 span { display: block; }
.page-intro p { color: var(--muted); max-width: 52ch; font-size: var(--step-1); }
.page-intro .container > * { animation: rise 1s var(--ease) both; }
.page-intro .container > *:nth-child(2) { animation-delay: .12s; }
.page-intro .container > *:nth-child(3) { animation-delay: .26s; }

.badge {
  display: inline-flex; padding: 5px 12px; border-radius: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); background: rgba(var(--a1-rgb), .08); border: 1px solid rgba(var(--a1-rgb), .25);
}

.offer-list { display: grid; gap: 22px; }
.offer {
  position: relative; display: grid; grid-template-columns: 1.55fr 1fr; overflow: hidden;
  border-radius: 24px; background: var(--card); border: 1px solid var(--line);
  transition: border-color .4s, box-shadow .5s var(--ease), background-color .4s;
}
.offer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.offer:hover { border-color: rgba(var(--a3-rgb), .35); box-shadow: 0 30px 70px -40px var(--glow); background: linear-gradient(120deg, rgba(var(--a2-rgb), .06), transparent 50%), var(--card); }
.offer:hover::before { transform: scaleX(1); }
.offer-main { display: grid; gap: 16px; align-content: center; justify-items: start; padding: clamp(28px, 4vw, 48px); min-width: 0; }
.offer-title { display: flex; align-items: center; gap: 16px; }
.offer-title .service-icon { width: 58px; height: 58px; border-radius: 16px; }
.offer-title h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.03em; transition: color .3s; }
.offer:hover .offer-title h2 { color: var(--orange); }
.offer-main > p { color: var(--text); max-width: 50ch; }
.features { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; font-size: .92rem; color: var(--muted); }
.features li { display: inline-flex; align-items: center; gap: 8px; }
.features li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.offer-prices { display: grid; border-left: 1px solid var(--line); background: rgba(255, 255, 255, .012); min-width: 0; }
.tier { display: grid; gap: 2px; align-content: center; padding: 20px clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--line); transition: background-color .3s; }
.tier:last-child { border-bottom: 0; }
.tier:hover { background: rgba(var(--a1-rgb), .04); }
.tier-name { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.tier-price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tier-note { font-size: .85rem; color: var(--muted); }
@media (max-width: 820px) {
  .offer { grid-template-columns: 1fr; }
  .offer-prices { border-left: 0; border-top: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); }
  .tier { border-bottom: 0; border-right: 1px solid var(--line); padding: 18px 16px; }
  .tier:last-child { border-right: 0; }
  .tier-price { font-size: 1.35rem; }
}
@media (max-width: 480px) {
  .offer-prices { grid-template-columns: 1fr; }
  .tier { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Retainer / packages panel */
.retainer {
  position: relative; overflow: hidden; display: grid; gap: 24px;
  padding: clamp(24px, 4vw, 44px); border-radius: 24px;
  background: linear-gradient(160deg, rgba(var(--a2-rgb), .1), transparent 45%), var(--card);
  border: 1px solid rgba(var(--a3-rgb), .3);
  box-shadow: 0 40px 90px -50px var(--glow);
}
.retainer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.retainer-head { display: flex; align-items: center; gap: 16px; }
.retainer-head .service-icon { width: 54px; height: 54px; border-radius: 15px; flex: none; }
.retainer-head h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.03em; }
.retainer-head p { color: var(--muted); font-size: .92rem; }
.retainer-head .kicker { font-size: .66rem; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(5, 5, 5, .4); }
.plan { display: grid; gap: 4px; align-content: start; padding: 22px 20px; border-right: 1px solid var(--line); min-width: 0; transition: background-color .3s; }
.plan:last-child { border-right: 0; }
.plan:hover { background: rgba(var(--a1-rgb), .05); }
.plan-cat { font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--pink); }
.plan b { color: var(--fg); font-size: 1rem; }
.plan small { color: var(--muted); font-size: .82rem; }
.plan .tier-price { font-size: 1.45rem; margin-top: 8px; }
.bundle {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  padding: 24px 26px; border-radius: 16px; border: 1px solid rgba(var(--a1-rgb), .28);
  background: linear-gradient(100deg, rgba(var(--a1-rgb), .09), rgba(var(--a2-rgb), .08));
}
.bundle > div { display: grid; gap: 4px; min-width: 0; }
.bundle b { color: var(--fg); font-size: 1.1rem; }
.bundle small { color: var(--muted); }
.bundle .tier-price { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); }
.rate-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.rate-note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--orange); }
@media (max-width: 860px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan:nth-child(2) { border-right: 0; }
  .plan:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

.custom { display: grid; justify-items: center; text-align: center; gap: 14px; padding-top: clamp(56px, 7vw, 90px); }
.custom h2 { font-size: var(--step-2); }
.custom p { color: var(--muted); margin-bottom: 8px; }

/* ==========================================================================
   Portfolio page
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); }
.filter {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card);
  color: var(--muted); font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: color .25s, border-color .25s, background-color .25s, box-shadow .3s;
}
.filter:hover { color: var(--fg); border-color: rgba(var(--a3-rgb), .5); }
.filter[aria-pressed="true"] { color: #fff; border-color: transparent; background: var(--grad-btn); box-shadow: 0 10px 26px -12px var(--glow); }

.masonry { columns: 3; column-gap: 20px; }
.pcard {
  break-inside: avoid; display: grid; margin: 0 0 20px; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%; padding: 0; font: inherit; color: inherit;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease), opacity .35s var(--ease), background-color .4s;
}
.pcard:hover { transform: translateY(-6px); border-color: rgba(var(--a3-rgb), .45); box-shadow: 0 30px 60px -32px var(--glow); background: linear-gradient(180deg, transparent 40%, rgba(var(--a2-rgb), .08)), var(--card); }
.pcard.is-hiding { opacity: 0; transform: scale(.96); }
.pcard-media { position: relative; overflow: hidden; display: grid; place-items: center; }
.pcard-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .9s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.07); }
.pcard-media--icon { height: var(--h, 190px); background: radial-gradient(120% 90% at 50% 20%, var(--tint, rgba(var(--a2-rgb), .25)), transparent 70%), var(--well); }
.pcard-media--icon svg { width: 54px; height: 54px; color: var(--fg); opacity: .92; transition: transform .6s var(--ease); filter: drop-shadow(0 8px 24px var(--glow)); }
.pcard:hover .pcard-media--icon svg { transform: scale(1.12) rotate(-4deg); }
.pcard-dur { position: absolute; right: 12px; bottom: 12px; padding: 3px 9px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: var(--fg); font-size: .74rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pcard-body { display: grid; gap: 8px; padding: 22px 24px 0; }
.pcard-body h3 { font-size: 1.18rem; letter-spacing: -.02em; }
.pcard-body p { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 24px 0; padding: 14px 0 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.pcard-foot span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.pcard-foot span:first-child svg { width: 14px; height: 14px; color: var(--orange); }
.pcard-go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--orange); transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease); }
.pcard-go svg { width: 15px; height: 15px; }
.pcard:hover .pcard-go { background: var(--grad-btn); color: #fff; border-color: transparent; transform: rotate(-45deg); }
.empty-note { text-align: center; color: var(--muted); padding: 40px 0; }
@media (max-width: 960px) { .masonry { columns: 2; } }
@media (max-width: 600px) { .masonry { columns: 1; } }

/* Project detail modal */
.pmodal { border: 0; padding: 0; background: transparent; color: var(--text); width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: visible; }
.pmodal::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px); }
.pmodal[open] .pmodal-inner { animation: modal-in .5s var(--ease) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.pmodal-inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; border-radius: 24px; overflow: hidden; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 50px 120px -40px var(--glow); max-height: calc(100vh - 48px); }
.pmodal-media { position: relative; background: var(--well); display: grid; place-items: center; min-height: 280px; }
.pmodal-media img { width: 100%; height: 100%; object-fit: cover; }
.pmodal-media .icon-wrap svg { width: 80px; height: 80px; color: var(--fg); }
.pmodal-media .play-big { position: absolute; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-btn); color: #fff; box-shadow: 0 0 50px var(--glow); }
.pmodal-media .play-big svg { width: 26px; height: 26px; margin-left: 4px; }
.pmodal-body { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3.5vw, 40px); overflow-y: auto; }
.pmodal-body h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.pmodal-body .muted { color: var(--muted); font-size: .88rem; }
.pmodal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10, 10, 12, .8); display: grid; place-items: center; cursor: pointer; transition: border-color .3s, transform .3s var(--ease); }
.pmodal-close:hover { border-color: var(--pink); transform: rotate(90deg); }
.pmodal-close svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .pmodal-inner { grid-template-columns: 1fr; overflow-y: auto; } .pmodal-media { min-height: 200px; } }

/* Case study panel */
.case {
  position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 20px;
  padding: clamp(44px, 6vw, 72px) clamp(20px, 5vw, 60px); border-radius: 26px; background: var(--card); border: 1px solid var(--line);
}
.case::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 2px; background: var(--grad); }
.case h2 { font-size: var(--step-3); max-width: 20ch; }
.case p { color: var(--text); max-width: 56ch; }
.case-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; margin-block: 6px 8px; }
.case-stats div { display: grid; gap: 2px; }
.case-stats b { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }
.case-stats span { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   Reviews page
   ========================================================================== */
.rating-panel {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: var(--card); border: 1px solid var(--line);
}
.score { display: grid; justify-items: center; gap: 6px; text-align: center; }
.score b { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 4vw, 6rem); font-weight: 800; line-height: .9; letter-spacing: -.05em; }
.score .stars { color: var(--orange); letter-spacing: 4px; font-size: 1.2rem; }
.score small { color: var(--muted); font-size: .85rem; }
.dist { display: grid; gap: 12px; min-width: 0; }
.dist-row { display: grid; grid-template-columns: 34px 1fr 42px; gap: 14px; align-items: center; font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dist-row span:first-child { color: var(--fg); font-weight: 600; }
.dist-row span:last-child { text-align: right; }
.dist .bar { height: 8px; }
.js .dist-row .bar i { width: 0; transition: width 1.6s var(--ease) .3s; }
.js .rating-panel.is-in .dist-row .bar i { width: var(--v); }
.mini-stats { display: grid; gap: 18px; padding-left: clamp(24px, 4vw, 48px); border-left: 1px solid var(--line); }
.mini-stats div { display: grid; gap: 0; }
.mini-stats b { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.mini-stats span { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) {
  .rating-panel { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(3, 1fr); padding-left: 0; border-left: 0; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }
}

/* Spotlight slider */
.spotlight { position: relative; border-radius: 26px; background: linear-gradient(150deg, rgba(var(--a2-rgb), .12), transparent 50%), var(--card); border: 1px solid rgba(var(--a3-rgb), .28); overflow: hidden; box-shadow: 0 40px 90px -50px var(--glow); }
.spotlight::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.spot-track { display: grid; }
.spot-slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(32px, 5vw, 64px); opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), visibility .8s;
}
.spot-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.spot-avatar { width: clamp(90px, 12vw, 140px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--grad-btn); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); box-shadow: 0 0 0 6px rgba(var(--a1-rgb), .08), 0 20px 50px -20px var(--glow); }
.spot-body { display: grid; gap: 18px; min-width: 0; }
.spot-body .quote-mark { font-family: var(--font-display); font-size: 4.5rem; line-height: .5; height: 28px; }
.spot-body blockquote { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); line-height: 1.3; letter-spacing: -.02em; color: var(--fg); text-wrap: pretty; }
.spot-who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.spot-who b { color: var(--fg); }
.spot-who small { color: var(--muted); }
.result-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(var(--a1-rgb), .08); border: 1px solid rgba(var(--a1-rgb), .28); color: var(--orange); font-size: .82rem; font-weight: 600; }
.spot-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(32px, 5vw, 64px) clamp(24px, 3vw, 36px); }
.spot-controls .quote-dots { display: flex; margin: 0; }
.arrows { display: flex; gap: 10px; }
.arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; cursor: pointer; transition: border-color .3s, background-color .3s, transform .3s var(--ease); }
.arrow:hover { border-color: transparent; background: var(--grad-btn); color: #fff; transform: translateY(-2px); }
.arrow svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .spot-slide { grid-template-columns: 1fr; } }

/* Review cards */
.rcard { break-inside: avoid; display: grid; gap: 18px; margin: 0 0 20px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease); }
.rcard:hover { transform: translateY(-6px); border-color: rgba(var(--a3-rgb), .45); box-shadow: 0 30px 60px -32px var(--glow); }
.rcard-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rcard .stars { color: var(--orange); letter-spacing: 3px; font-size: .95rem; }
.rcard .tag { font-size: .74rem; padding: 3px 10px; }
.rcard blockquote { margin: 0; color: var(--text); line-height: 1.7; }
.rcard figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.rcard figcaption b { display: block; color: var(--fg); font-size: .95rem; }
.rcard figcaption small { color: var(--muted); font-size: .8rem; }
.rcard .avatar { background: var(--grad-btn); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.platform {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); min-width: 0;
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease), background-color .35s;
}
.platform:hover { transform: translateY(-5px); border-color: rgba(var(--a3-rgb), .45); box-shadow: 0 24px 50px -30px var(--glow); background: linear-gradient(120deg, rgba(var(--a2-rgb), .08), transparent 60%), var(--card); }
.platform-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--c, var(--orange)); background: color-mix(in srgb, var(--c, #5edfe3) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c, #5edfe3) 30%, transparent); }
.platform-icon svg { width: 22px; height: 22px; }
.platform div { display: grid; min-width: 0; }
.platform b { color: var(--fg); font-size: 1rem; }
.platform small { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform .go { margin-left: auto; color: var(--muted); transition: transform .35s var(--ease), color .3s; }
.platform .go svg { width: 18px; height: 18px; }
.platform:hover .go { color: var(--orange); transform: translateX(4px); }
@media (max-width: 900px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .platforms { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-info { display: grid; gap: 22px; min-width: 0; }
.contact-info h2 { font-size: var(--step-3); }
.contact-info > p { color: var(--muted); max-width: 44ch; }
.info-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.info-list .platform-icon { width: 42px; height: 42px; border-radius: 12px; }
.info-list .platform-icon svg { width: 19px; height: 19px; }
.info-list small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.info-list span.v { color: var(--fg); font-weight: 600; word-break: break-word; }
.copy-btn { margin-left: auto; flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: .78rem; font-weight: 600; cursor: pointer; transition: color .25s, border-color .25s; }
.copy-btn:hover { color: var(--fg); border-color: var(--pink); }

.form-card {
  position: relative; overflow: hidden; display: grid; gap: 18px; padding: clamp(24px, 4vw, 44px); border-radius: 24px;
  background: linear-gradient(160deg, rgba(var(--a2-rgb), .1), transparent 45%), var(--card); border: 1px solid rgba(var(--a3-rgb), .28);
  box-shadow: 0 40px 90px -50px var(--glow);
}
.form-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: .82rem; font-weight: 600; color: var(--fg); }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 5, 5, .55);
  color: var(--fg); font: inherit; font-size: .95rem; transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field 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='%238a8a92' 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: 16px; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #5b5b63; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(var(--a3-rgb), .14); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #ff5d73; }
.field .err { color: #ff8a9a; font-size: .8rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-foot small { color: var(--muted); font-size: .82rem; }
.form-success { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 30px 10px; }
.form-success .check { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-btn); color: #fff; box-shadow: 0 0 50px var(--glow); animation: pop .6s var(--ease) both; }
.form-success .check svg { width: 30px; height: 30px; }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--muted); max-width: 40ch; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color .3s, background-color .3s; }
.faq details[open] { border-color: rgba(var(--a3-rgb), .4); background: linear-gradient(120deg, rgba(var(--a2-rgb), .06), transparent 60%), var(--card); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 700; color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--orange); font-size: 1.2rem; font-weight: 400; transition: transform .35s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: rgba(var(--a1-rgb), .08); }
.faq details p { padding: 0 24px 22px; color: var(--muted); max-width: 64ch; }
@media (max-width: 900px) {
  .js .reveal--left, .js .reveal--right { transform: translateY(40px); }
}
html { overflow-x: clip; }

/* ==========================================================================
   Color themes (switched from the Admin Panel)
   ========================================================================== */
:root[data-theme="orange"] {
  --bg: #111111; --bg-2: #171717; --card: #1a1a1c; --card-2: #212124; --line: #2a2a2e; --line-2: #36363b;
  --orange: #ffb347; --crimson: #ff6a1a; --pink: #ff8f4d;
  --grad: linear-gradient(100deg, #ffc15e 0%, #ff8a3d 50%, #f0521a 100%);
  --grad-btn: linear-gradient(100deg, #f59e0b 0%, #f97316 50%, #e8431a 100%);
  --a1-rgb: 255, 179, 71; --a2-rgb: 255, 106, 26; --a3-rgb: 255, 143, 77;
  --grad-soft: linear-gradient(135deg, rgba(255, 179, 71, .12), rgba(255, 106, 26, .14));
  --glow: rgba(255, 106, 26, .45);
  --header-bg: rgba(17, 17, 17, .75); --header-bg-2: rgba(17, 17, 17, .94); --footer-bg: #0c0c0c; --well: #151516;
}
:root[data-theme="purple"] {
  --bg: #0c0e15; --bg-2: #11141d; --card: #151824; --card-2: #1b1f2d; --line: #242839; --line-2: #313650;
  --orange: #c4b5fd; --crimson: #7c3aed; --pink: #a78bfa;
  --grad: linear-gradient(100deg, #d8ccff 0%, #a78bfa 50%, #7c3aed 100%);
  --grad-btn: linear-gradient(100deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
  --a1-rgb: 196, 181, 253; --a2-rgb: 124, 58, 237; --a3-rgb: 167, 139, 250;
  --grad-soft: linear-gradient(135deg, rgba(196, 181, 253, .12), rgba(124, 58, 237, .16));
  --glow: rgba(124, 58, 237, .5);
  --header-bg: rgba(12, 14, 21, .75); --header-bg-2: rgba(12, 14, 21, .94); --footer-bg: #090b11; --well: #10121a;
}
:root[data-theme="emerald"] {
  --bg: #040806; --bg-2: #08100c; --card: #0c1511; --card-2: #111d17; --line: #1a2a22; --line-2: #24392e;
  --orange: #6ee7b7; --crimson: #059669; --pink: #34d399;
  --grad: linear-gradient(100deg, #a7f3d0 0%, #34d399 50%, #059669 100%);
  --grad-btn: linear-gradient(100deg, #10b981 0%, #059669 50%, #047857 100%);
  --a1-rgb: 110, 231, 183; --a2-rgb: 5, 150, 105; --a3-rgb: 52, 211, 153;
  --grad-soft: linear-gradient(135deg, rgba(110, 231, 183, .12), rgba(5, 150, 105, .16));
  --glow: rgba(5, 150, 105, .5);
  --header-bg: rgba(4, 8, 6, .75); --header-bg-2: rgba(4, 8, 6, .94); --footer-bg: #030604; --well: #09110d;
}

/* ---------- Content-driven extras ---------- */
.logo--img img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.work-thumb-icon { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 25%, rgba(var(--a2-rgb), .3), transparent 70%), var(--well); }
.work-thumb-icon svg { width: 52px; height: 52px; color: var(--fg); }
.pcard-media--icon { background: radial-gradient(120% 90% at 50% 20%, rgba(var(--a2-rgb), .28), transparent 70%), var(--well); }
@media (max-width: 820px) { .offer-prices { grid-template-columns: repeat(var(--n, 3), 1fr); } }
@media (max-width: 480px) { .offer-prices { grid-template-columns: 1fr; } }
.form-error { color: #ff8a9a; font-size: .88rem; }

.awards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.award {
  position: relative; overflow: hidden; display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); min-width: 0;
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease), background-color .35s;
}
.award::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.award:hover { transform: translateY(-6px); border-color: rgba(var(--a3-rgb), .45); box-shadow: 0 26px 60px -32px var(--glow); background: linear-gradient(160deg, rgba(var(--a2-rgb), .08), transparent 60%), var(--card); }
.award:hover::before { transform: scaleX(1); }
.award-icon { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-btn); color: #fff; box-shadow: 0 12px 30px -12px var(--glow); }
.award-icon svg { width: 26px; height: 26px; }
.award > div { display: grid; gap: 4px; min-width: 0; }
.award-year { font-size: .7rem; font-weight: 700; letter-spacing: .18em; color: var(--pink); }
.award h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.award p { color: var(--muted); font-size: .92rem; }

/* page swap: hide stale fallback until live content arrives */
.content-loading #site { opacity: 0; }
#site { transition: opacity .35s ease; }
.pmodal-media iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }
