/* ===========================================================
   RiseMedia — shared design system
   Brand: logo teal-blue (#0c3c54) + near-black, white text
   =========================================================== */

:root {
  /* Brand palette derived from logo */
  --ink:        #f4f8fb;        /* primary text on dark */
  --muted:      #9fb2bf;        /* secondary text */
  --bg:         #06090d;        /* page background */
  --bg-2:       #0a1118;        /* alt section */
  --surface:    #0f1a24;        /* cards */
  --surface-2:  #14222f;        /* card hover / borders base */
  --line:       rgba(255,255,255,.08);

  --brand-deep: #0c3c54;        /* exact logo blue */
  --brand:      #1b8fc4;        /* brighter accent for CTAs */
  --brand-2:    #3fc1ec;        /* highlight / glow */
  --brand-grad: linear-gradient(135deg, #1b8fc4 0%, #3fc1ec 100%);

  --radius:   18px;
  --radius-sm:12px;
  --maxw:     1180px;
  --ease:     cubic-bezier(.22,.61,.36,1);

  --shadow:   0 24px 60px -20px rgba(0,0,0,.7);
  --glow:     0 0 0 1px rgba(63,193,236,.25), 0 18px 50px -12px rgba(27,143,196,.45);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html, body { max-width: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* ---------- ambient background ---------- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(27,143,196,.18), transparent 60%),
    radial-gradient(50% 45% at 0% 10%, rgba(12,60,84,.35), transparent 60%);
  pointer-events: none;
}

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 14px;
}
h1,h2,h3,h4 { line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 60ch; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px,5vw,64px); }
.section-head.center { text-align: center; }
.section-head .lead { margin-inline: auto; }

.text-grad {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  --pad: 15px 26px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad);
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand-grad); color: #02141d; box-shadow: var(--glow); }
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(63,193,236,.4), 0 22px 60px -10px rgba(27,143,196,.6); }
.btn--ghost { background: rgba(255,255,255,.04); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-2); color: var(--brand-2); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6,9,13,.55);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.scrolled { background: rgba(6,9,13,.9); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 98px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.01em; }
.brand img { height: 38px; width: auto; }
.brand span b { color: var(--brand-2); }
/* header: logo only, larger */
.nav .brand img { height: 82px; }
.nav .brand span { display: none; }
/* footer: logo only (hide wordmark text) */
.footer-brand .brand span { display: none; }
.footer-brand .brand img { height: 56px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content:""; display:block; height:2px; border-radius:2px; margin-top:4px; background: var(--brand-grad); }
.nav-cta { margin-left: 10px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 42px; cursor: pointer; padding: 0; color: var(--ink);
}
.nav-toggle span { display:block; width:20px; height:2px; background: currentColor; margin: 4px auto; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(72px,11vw,150px) 0 clamp(56px,8vw,110px); }
.hero .badge {
  display:inline-flex; align-items:center; gap:8px;
  font-size:.82rem; font-weight:600; color:var(--brand-2);
  background: rgba(63,193,236,.08); border:1px solid rgba(63,193,236,.25);
  padding:7px 14px; border-radius:999px; margin-bottom: 26px;
}
.hero .badge i { width:7px;height:7px;border-radius:50%;background:var(--brand-2); box-shadow:0 0 12px var(--brand-2); }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 22px; font-size: clamp(1.05rem,1.8vw,1.3rem); }
.hero .btn-row { margin-top: 34px; }
.hero-art {
  position:absolute; inset:auto -10% -30% auto; width:520px; height:520px;
  background: var(--brand-grad); filter: blur(120px); opacity:.22; border-radius:50%;
  pointer-events:none; z-index:-1;
}

/* ---------- stats ---------- */
.stats { display:grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.stat {
  background: var(--surface); border:1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align:center;
}
.stat .num { font-size: clamp(2rem,4.5vw,3.1rem); font-weight:800; letter-spacing:-.03em; }
.stat .label { color: var(--muted); font-size:.92rem; margin-top:6px; }

/* ---------- card grids ---------- */
.grid { display:grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.grid--4 { grid-template-columns: repeat(4,1fr); }
.grid--2 { grid-template-columns: repeat(2,1fr); }

.card {
  background: var(--surface); border:1px solid var(--line); border-radius: var(--radius);
  padding: 30px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(63,193,236,.35); box-shadow: var(--shadow); }
.card .ico {
  width:52px; height:52px; border-radius:14px; display:grid; place-items:center; margin-bottom:18px;
  background: rgba(27,143,196,.12); color: var(--brand-2); border:1px solid rgba(63,193,236,.22);
}
.card .ico svg { width:24px; height:24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size:.98rem; }
.card .step-no {
  position:absolute; top:18px; right:22px; font-size:3.4rem; font-weight:800;
  color: rgba(255,255,255,.05); line-height:1; letter-spacing:-.04em;
}

/* ---------- why-choose list ---------- */
.why-grid { display:grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px,5vw,70px); align-items:center; }
.why-list { display:grid; gap: 16px; }
.why-item { display:flex; gap:16px; padding:18px 20px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); }
.why-item .tick { flex:0 0 auto; width:26px;height:26px;border-radius:50%; display:grid;place-items:center; background:var(--brand-grad); color:#02141d; font-weight:900; font-size:.8rem; }
.why-item p { color: var(--muted); font-size:.97rem; }
.why-item b { color: var(--ink); font-weight:700; }

/* ---------- case studies ---------- */
.case {
  display:grid; grid-template-columns: 1fr 1fr; gap: 0; overflow:hidden;
  background: var(--surface); border:1px solid var(--line); border-radius: var(--radius);
}
.case:nth-child(even) .case-media { order: 2; }
.case-media {
  min-height: 280px; background: var(--brand-grad); position: relative;
  display:grid; place-items:center; padding:40px;
}
.case-media .tag { font-weight:800; font-size:clamp(1.4rem,3vw,2.2rem); color:#02141d; text-align:center; letter-spacing:-.02em; }
.case-body { padding: clamp(28px,4vw,48px); }
.case-body .client { font-size:.82rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--brand-2); }
.case-body h3 { font-size:clamp(1.3rem,2.4vw,1.8rem); margin:10px 0 14px; }
.case-body p { color: var(--muted); }
.case-body .quote { border-left:3px solid var(--brand); padding-left:16px; margin-top:18px; font-style:italic; color:var(--ink); }
.case-body .link { display:inline-flex; align-items:center; gap:8px; margin-top:22px; font-weight:700; color:var(--brand-2); }
.case-body .link:hover { gap:12px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--brand-grad); color:#02141d; border-radius: clamp(20px,3vw,32px);
  padding: clamp(40px,6vw,72px); text-align:center; position:relative; overflow:hidden;
}
.cta-band h2 { color:#02141d; }
.cta-band p { color: rgba(2,20,29,.8); margin: 14px auto 28px; max-width: 50ch; font-weight:500; }
.cta-band .btn--dark { background:#06090d; color:var(--ink); }
.cta-band .btn--dark:hover { background:#000; }

/* ---------- testimonial ---------- */
.quote-card { background: var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding: clamp(28px,4vw,44px); }
.quote-card .big { font-size: clamp(1.2rem,2.4vw,1.7rem); font-weight:600; line-height:1.4; }
.quote-card .who { margin-top:18px; color:var(--brand-2); font-weight:700; }

/* ---------- reviews ---------- */
.rating-badge {
  display:inline-flex; align-items:center; gap:12px; margin: 6px auto 0;
  background:var(--surface); border:1px solid var(--line); border-radius:999px; padding:10px 18px;
  transition: border-color .2s, transform .2s;
}
.rating-badge:hover { border-color: var(--brand-2); transform: translateY(-2px); }
.rating-badge .fb {
  width:30px;height:30px;border-radius:8px;display:grid;place-items:center;
  background:#1877f2; color:#fff; flex:0 0 auto;
}
.rating-badge .fb svg { width:18px;height:18px; }
.rating-badge .stars { color:#ffc107; letter-spacing:2px; font-size:1rem; }
.rating-badge .score { font-weight:700; color:var(--ink); font-size:.95rem; }
.rating-badge .score small { color:var(--muted); font-weight:500; }

.reviews-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.review {
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px; display:flex; flex-direction:column; gap:14px;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.review:hover { transform: translateY(-6px); border-color: rgba(63,193,236,.35); box-shadow: var(--shadow); }
.review .stars { color:#ffc107; letter-spacing:2px; font-size:1.05rem; }
.review p { color: var(--ink); font-size:1rem; line-height:1.6; flex:1; }
.review .reviewer { display:flex; align-items:center; gap:12px; margin-top:4px; }
.review .avatar {
  width:42px;height:42px;border-radius:50%; flex:0 0 auto; display:grid; place-items:center;
  background:var(--brand-grad); color:#02141d; font-weight:800; font-size:1rem;
}
.review .reviewer b { display:block; font-size:.95rem; }
.review .reviewer span { color:var(--muted); font-size:.82rem; display:inline-flex; align-items:center; gap:5px; }
.review .reviewer span svg { width:13px;height:13px; color:#1877f2; }

@media (max-width: 980px){ .reviews-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 760px){ .reviews-grid{ grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px,4vw,56px); }
.info-list { display:grid; gap:16px; margin-top: 8px; }
.info-item { display:flex; gap:16px; align-items:flex-start; padding:18px 20px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); }
.info-item .ico { width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:rgba(27,143,196,.12);color:var(--brand-2);border:1px solid rgba(63,193,236,.22); flex:0 0 auto; }
.info-item .ico svg{width:20px;height:20px;}
.info-item h4 { font-size:1rem; }
.info-item a, .info-item span { color: var(--muted); }
.info-item a:hover { color: var(--brand-2); }

.form { background: var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding: clamp(26px,4vw,40px); display:grid; gap:16px; }
.field { display:grid; gap:8px; }
.field label { font-size:.85rem; font-weight:600; color:var(--muted); }
.field input, .field textarea {
  width:100%; padding:14px 16px; border-radius:12px; background:var(--bg-2);
  border:1px solid var(--line); color:var(--ink); font:inherit; font-size:.95rem; resize:vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(27,143,196,.2); }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-note { font-size:.85rem; color:var(--muted); }

/* ---------- socials ---------- */
.socials { display:flex; gap:12px; flex-wrap:wrap; }
.socials a {
  display:grid; place-items:center; width:46px;height:46px;border-radius:12px;
  background:var(--surface); border:1px solid var(--line); color:var(--muted);
  transition: color .2s, border-color .2s, transform .2s;
}
.socials a:hover { color:var(--brand-2); border-color:var(--brand-2); transform: translateY(-3px); }
.socials a svg { width:20px; height:20px; }

/* ---------- footer ---------- */
.site-footer { border-top:1px solid var(--line); background: var(--bg-2); padding: clamp(48px,6vw,72px) 0 30px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; }
.footer-grid h4 { font-size:.8rem; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); margin-bottom:18px; }
.footer-links { display:grid; gap:10px; }
.footer-links a { color: var(--muted); font-size:.96rem; }
.footer-links a:hover { color: var(--brand-2); }
.footer-brand p { color: var(--muted); margin-top:16px; max-width:34ch; font-size:.96rem; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; color:var(--muted); font-size:.88rem; }

/* ---------- scroll reveal ---------- */
.reveal { opacity:0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity:1; transform:none; }
.reveal.d1{transition-delay:.08s}.reveal.d2{transition-delay:.16s}.reveal.d3{transition-delay:.24s}.reveal.d4{transition-delay:.32s}

/* reveal "outro" — fade/scale slightly as the block leaves the viewport */
.reveal.out { opacity:0; transform: translateY(-18px) scale(.99); }

@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1;transform:none;transition:none;}
  .reveal.out{opacity:1;transform:none;}
  html{scroll-behavior:auto;}
}

/* ===========================================================
   MOTION — page intro loader + page transition (intro/outro)
   =========================================================== */
.page-intro {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.page-intro.done { opacity: 0; visibility: hidden; }
.page-intro .intro-logo {
  display: grid; place-items: center; gap: 16px; text-align: center;
}
.page-intro .intro-logo img {
  height: 84px; width: auto;
  animation: introPop .9s var(--ease) both;
}
.page-intro .intro-bar {
  width: 120px; height: 3px; border-radius: 3px; overflow: hidden;
  background: rgba(255,255,255,.1);
}
.page-intro .intro-bar i {
  display:block; height:100%; width:0; background: var(--brand-grad);
  animation: introLoad 1s var(--ease) forwards;
}
@keyframes introPop { 0%{opacity:0;transform:translateY(14px) scale(.9)} 60%{opacity:1} 100%{opacity:1;transform:none} }
@keyframes introLoad { to { width:100%; } }

/* page transition curtain used on internal nav clicks (the "outro") */
.page-curtain {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  transform: translateY(100%);
  transition: transform .55s var(--ease);
  pointer-events: none;
}
.page-curtain.show { transform: translateY(0); }

/* gentle entrance for the whole page after intro */
body.booting { overflow: hidden; }

/* ===========================================================
   HERO with video background
   =========================================================== */
.hero--video { padding-top: clamp(96px,14vw,200px); padding-bottom: clamp(72px,10vw,150px); }
.hero-video-wrap {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  /* branded backdrop shown when the video isn't loaded (e.g. on mobile) */
  background:
    radial-gradient(120% 90% at 72% 0%, rgba(27,143,196,.20), transparent 55%),
    radial-gradient(90% 80% at 0% 20%, rgba(12,60,84,.45), transparent 60%),
    var(--bg);
}
.hero-video-wrap video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.hero-video-wrap video.off { display: none; }
.hero-video-wrap::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,9,13,.20) 0%, rgba(6,9,13,.40) 55%, rgba(6,9,13,.92) 96%, var(--bg) 100%),
    linear-gradient(90deg, rgba(6,9,13,.55), rgba(6,9,13,0) 60%);
}
.hero--video .hero-art { opacity:.35; }
.hero .reel-controls {
  display:inline-flex; gap:10px; align-items:center; margin-top:26px;
}
.reel-toggle {
  display:inline-flex; align-items:center; gap:9px;
  background: rgba(255,255,255,.06); border:1px solid var(--line);
  color: var(--ink); border-radius:999px; padding:9px 16px; cursor:pointer;
  font: inherit; font-size:.85rem; font-weight:600; transition: border-color .2s, color .2s;
}
.reel-toggle:hover { border-color: var(--brand-2); color: var(--brand-2); }
.reel-toggle svg { width:16px; height:16px; }

/* ===========================================================
   WEB DESIGN spotlight section
   =========================================================== */
.webdesign { position: relative; overflow: hidden; }
.web-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px,5vw,64px); align-items:center; }
.web-mock {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border:1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow);
}
.web-mock .bar { display:flex; gap:7px; padding:14px 16px; border-bottom:1px solid var(--line); background:var(--bg-2); }
.web-mock .bar span { width:11px;height:11px;border-radius:50%; background:#2a3b48; }
.web-mock .bar span:nth-child(1){ background:#ff5f57; } .web-mock .bar span:nth-child(2){ background:#febc2e; } .web-mock .bar span:nth-child(3){ background:#28c840; }
.web-mock .screen { padding:26px; display:grid; gap:14px; }
.web-mock .screen .hh { height:14px; width:55%; border-radius:6px; background:var(--brand-grad); }
.web-mock .screen .ll { height:9px; border-radius:6px; background:rgba(255,255,255,.08); }
.web-mock .screen .ll.s { width:80%; } .web-mock .screen .ll.m { width:65%; }
.web-mock .screen .row { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:8px; }
.web-mock .screen .tile { height:62px; border-radius:10px; background:rgba(63,193,236,.1); border:1px solid rgba(63,193,236,.18); }
.web-mock .screen .btn-fake { height:34px; width:130px; border-radius:999px; background:var(--brand-grad); margin-top:6px; }
/* web design device-mockup image */
.web-shot { position: relative; display: grid; place-items: center; }
.web-shot::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: var(--brand-grad); filter: blur(90px); opacity: .28; z-index: 0;
}
.web-shot img,
.web-shot .web-video {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px; height: auto; display: block;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.55));
}

.niche-tags { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.niche-tags span {
  font-size:.85rem; font-weight:600; color:var(--brand-2);
  background:rgba(63,193,236,.08); border:1px solid rgba(63,193,236,.22);
  padding:7px 14px; border-radius:999px;
}
.web-feats { display:grid; gap:14px; margin-top:22px; }
.web-feats .web-feat { display:flex; gap:14px; }
.web-feats .web-feat .tick { flex:0 0 auto; width:24px;height:24px;border-radius:50%; display:grid;place-items:center; background:var(--brand-grad); color:#02141d; font-weight:900; font-size:.75rem; }
.web-feats .web-feat p { color:var(--muted); font-size:.97rem; }
.web-feats .web-feat b { color:var(--ink); }

@media (max-width: 980px){
  .web-grid{ grid-template-columns:1fr; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .grid--4{grid-template-columns:repeat(2,1fr);}
  .grid--3{grid-template-columns:repeat(2,1fr);}
  .why-grid{grid-template-columns:1fr;}
  .contact-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .case, .case:nth-child(even) .case-media{grid-template-columns:1fr;}
  .case:nth-child(even) .case-media{order:0;}
}
@media (max-width: 760px){
  .nav-toggle{display:block;}
  .nav-links{
    position:absolute; top:98px; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:4px;
    background:rgba(6,9,13,.97); backdrop-filter:blur(14px);
    border-bottom:1px solid var(--line); padding:14px 22px 22px;
    transform: translateY(-12px); opacity:0; pointer-events:none; transition:.25s var(--ease);
  }
  .nav-links.open{ transform:none; opacity:1; pointer-events:auto; }
  .nav-links a{ padding:13px 14px; }
  .nav-links a.active::after{display:none;}
  .nav-cta{margin-left:0;}
  .stats{grid-template-columns:1fr;}
  .grid--4,.grid--3,.grid--2{grid-template-columns:1fr;}
  .field-row{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
}

/* ===========================================================
   MOBILE PERFORMANCE — lighter effects for smooth scrolling
   =========================================================== */
@media (max-width: 760px){
  /* expensive blur blobs are toned down so phones don't stutter */
  .hero-art{ filter: blur(60px); opacity:.16; width:300px; height:300px; inset:auto -20% -25% auto; }
  .site-header{ backdrop-filter: blur(8px); }
  .nav-links{ backdrop-filter: blur(8px); }
  /* skip the scroll-out animation on phones — keeps scrolling buttery */
  .reveal.out{ opacity:1 !important; transform:none !important; }
  /* a touch less vertical padding so pages feel snappier */
  .hero--video{ padding-top: clamp(72px,20vw,110px); padding-bottom: clamp(40px,10vw,70px); }
  .section{ padding: clamp(48px,12vw,80px) 0; }
  /* 16px inputs stop iOS Safari from auto-zooming on focus */
  .field input, .field textarea{ font-size: 16px; }
}

/* very small / low-power devices */
@media (max-width: 480px){
  .hero-art{ display:none; }
  body::before{ background:
    radial-gradient(70% 50% at 85% -5%, rgba(27,143,196,.14), transparent 60%); }
}

/* honour data-saver: never show the heavy ambient gradients */
@media (prefers-reduced-data: reduce){
  .hero-art{ display:none; }
}

/* ===========================================================
   PORTFOLIO — masonry video grid + lightbox
   =========================================================== */
.pf-grid { columns: 3; column-gap: 18px; }
.pf-item { break-inside: avoid; margin: 0 0 18px; }
.pf-card {
  position: relative; display: block; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); cursor: pointer; padding: 0;
}
.pf-card img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.pf-card:hover img { transform: scale(1.05); }
.pf-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, transparent 38%, rgba(0,0,0,.65) 100%); }
.pf-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(6,9,13,.5); border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(4px); z-index: 2; transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.pf-card:hover .pf-play { transform: translate(-50%,-50%) scale(1.12); background: var(--brand); border-color: transparent; }
.pf-play svg { width: 24px; height: 24px; color: #fff; margin-left: 3px; }
.pf-title { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; font-weight: 700; font-size: 1rem; text-align: left; }
.pf-title small { display: block; font-weight: 500; color: rgba(244,248,251,.7); font-size: .8rem; margin-top: 2px; }

.lightbox {
  position: fixed; inset: 0; z-index: 1100; display: none; place-items: center;
  padding: 24px; background: rgba(3,6,9,.92); backdrop-filter: blur(8px);
}
.lightbox.open { display: grid; }
.lightbox video {
  max-width: min(92vw, 1000px); max-height: 86vh; width: auto; height: auto;
  border-radius: 14px; box-shadow: var(--shadow); background: #000;
}
.lightbox .lb-close {
  position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid var(--line); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
.lightbox .lb-close:hover { background: var(--brand); }

@media (max-width: 980px){ .pf-grid { columns: 2; } }
@media (max-width: 600px){ .pf-grid { columns: 1; } }

/* ===========================================================
   PRICING — web design packages + custom band
   =========================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; display: flex; flex-direction: column; gap: 16px; position: relative;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(63,193,236,.35); box-shadow: var(--shadow); }
.price-card.featured { border-color: rgba(63,193,236,.5); box-shadow: var(--glow); }
.price-card .badge-pop {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand-grad); color: #02141d; font-weight: 700; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 1.3rem; }
.price-card .price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.price-card .price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-card .price small { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.price-card .pdesc { color: var(--muted); font-size: .95rem; }
.price-feats { display: grid; gap: 11px; margin: 2px 0 6px; }
.price-feats li { display: flex; gap: 10px; color: var(--ink); font-size: .94rem; align-items: flex-start; }
.price-feats li svg { width: 18px; height: 18px; color: var(--brand-2); flex: 0 0 auto; margin-top: 2px; }
.price-card .btn { margin-top: auto; justify-content: center; }

.custom-band {
  margin-top: 22px; border: 1px solid rgba(63,193,236,.28); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(12,60,84,.55), rgba(15,26,36,.7));
  padding: clamp(28px,4vw,46px); display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center;
}
.custom-band h3 { font-size: clamp(1.4rem,2.6vw,2rem); }
.custom-band p { color: var(--muted); margin-top: 12px; }
.custom-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.custom-chips span { font-size: .85rem; font-weight: 600; color: var(--brand-2); background: rgba(63,193,236,.08); border: 1px solid rgba(63,193,236,.22); padding: 7px 13px; border-radius: 999px; }
.custom-band .cb-cta { display: grid; gap: 12px; justify-items: start; }

@media (max-width: 980px){ .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
@media (max-width: 760px){ .custom-band { grid-template-columns: 1fr; } }

/* web design page — hero showcase video */
.wd-hero-media { position: relative; display: grid; place-items: center; }
.wd-hero-media::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: var(--brand-grad); filter: blur(95px); opacity: .26; z-index: 0;
}
.wd-hero-media video {
  position: relative; z-index: 1; width: 100%; max-width: 460px; height: auto; display: block;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.55));
}
@media (max-width: 980px){ .wd-hero-media { margin-top: 8px; } .wd-hero-media video { max-width: 380px; } }

/* ===========================================================
   BRAND SIGNATURE MARK — used subtly across the site
   =========================================================== */
.footer-bottom .sig { display: inline-flex; align-items: center; gap: 10px; }
.footer-bottom .sig img { height: 26px; width: auto; opacity: .92; border-radius: 4px; }

/* faint watermark in the footer corner (every page) */
.site-footer { position: relative; overflow: hidden; }
.site-footer::after {
  content: ""; position: absolute; right: -30px; bottom: -30px;
  width: 200px; height: 200px; background: url("../img/mark.png") no-repeat center/contain;
  opacity: .05; pointer-events: none; z-index: 0;
}
.site-footer .container { position: relative; z-index: 1; }

/* faint watermark accent in the home hero (top-right, away from text) */
.hero--video::after {
  content: ""; position: absolute; top: clamp(10px,4vw,40px); right: clamp(-20px,1vw,30px);
  width: clamp(150px,22vw,300px); height: clamp(150px,22vw,300px);
  background: url("../img/mark.png") no-repeat center/contain;
  opacity: .08; pointer-events: none; z-index: 0;
}
@media (max-width: 760px){ .hero--video::after { opacity: .06; width: 130px; height: 130px; } }

/* ===========================================================
   INSTAGRAM REELS — horizontal scroller
   =========================================================== */
.reels-scroll {
  display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden;
  padding: 6px 4px 22px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent;
}
.reels-scroll::-webkit-scrollbar { height: 8px; }
.reels-scroll::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; }
.reels-scroll::-webkit-scrollbar-track { background: transparent; }
.reels-scroll > .reel-card {
  scroll-snap-align: start; flex: 0 0 auto;
  width: clamp(290px, 84vw, 340px);
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.reels-scroll .instagram-media {
  margin: 0 !important; min-width: 0 !important; width: 100% !important; border: 0 !important; box-shadow: none !important;
}
.reels-hint { color: var(--muted); font-size: .85rem; text-align: center; margin-top: 4px; }

/* ===========================================================
   CLIENT LOGO WALL (marquee)
   =========================================================== */
.logo-wall { overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; gap: clamp(36px,6vw,64px); width: max-content; animation: marquee 34s linear infinite; }
.logo-wall:hover .logo-track { animation-play-state: paused; }
.logo-track span {
  white-space: nowrap; text-transform: uppercase; letter-spacing: .04em;
  font-weight: 800; font-size: clamp(1.05rem,2.2vw,1.5rem); color: var(--muted); opacity: .72;
  transition: color .2s, opacity .2s;
}
.logo-track span:hover { color: var(--brand-2); opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 24px 40px; }
}

/* ===========================================================
   RESULTS / IMPACT
   =========================================================== */
.impact-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.result-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.result-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.result-card:hover { transform: translateY(-6px); border-color: rgba(63,193,236,.35); box-shadow: var(--shadow); }
.result-card .client { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-2); }
.result-card .big { font-size: clamp(1.9rem,3.4vw,2.6rem); font-weight: 800; letter-spacing: -.02em; margin: 10px 0 4px; line-height: 1.05; }
.result-card .big span { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.result-card p { color: var(--muted); font-size: .96rem; margin-top: 8px; }

@media (max-width: 980px){ .impact-grid { grid-template-columns: repeat(2,1fr); } .result-cards { grid-template-columns: 1fr; } }
@media (max-width: 600px){ .impact-grid { grid-template-columns: 1fr; } }

/* ===========================================================
   PROMO BAR — site-wide free mockup offer
   =========================================================== */
.promo-bar {
  background: var(--brand-grad); color: #02141d; text-align: center;
  font-weight: 700; font-size: .9rem; letter-spacing: .01em;
  padding: 9px 40px; position: relative; z-index: 60;
}
.promo-bar a { text-decoration: underline; text-underline-offset: 2px; font-weight: 800; }
.promo-bar a:hover { opacity: .8; }
.promo-bar .promo-x {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #02141d; cursor: pointer; font-size: 1.2rem; line-height: 1;
  opacity: .65; padding: 4px;
}
.promo-bar .promo-x:hover { opacity: 1; }
@media (max-width: 600px){ .promo-bar { font-size: .78rem; padding: 8px 34px 8px 12px; } }

/* ===========================================================
   WEBSITE DESIGNS showcase (live demo previews)
   =========================================================== */
.web-portfolio { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.site-card { display:block; border-radius:16px; overflow:hidden; border:1px solid var(--line); background:var(--surface);
  transition:transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.site-card:hover { transform:translateY(-6px); border-color:rgba(63,193,236,.4); box-shadow:var(--shadow); }
.site-card .bar { display:flex; align-items:center; gap:6px; padding:10px 12px; background:var(--bg-2); border-bottom:1px solid var(--line); }
.site-card .bar i { width:10px; height:10px; border-radius:50%; background:#2a3b48; display:block; flex:0 0 auto; }
.site-card .bar i:nth-child(1){ background:#ff5f57; } .site-card .bar i:nth-child(2){ background:#febc2e; } .site-card .bar i:nth-child(3){ background:#28c840; }
.site-card .bar span { margin-left:8px; font-size:.72rem; color:var(--muted); background:var(--bg); padding:3px 10px; border-radius:6px; flex:1; text-align:center; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.site-thumb { position:relative; width:100%; overflow:hidden; background:#0b0d10; height:240px; }
.site-thumb iframe { position:absolute; top:0; left:0; border:0; transform-origin:top left; pointer-events:none; }
.site-meta { display:flex; align-items:center; justify-content:space-between; padding:15px 18px; }
.site-meta h3 { font-size:1.02rem; }
.site-meta span { font-size:.82rem; color:var(--brand-2); font-weight:700; }
@media (max-width:980px){ .web-portfolio{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .web-portfolio{ grid-template-columns:1fr; } }
