/* Direction: confident grotesk headlines, cool paper and ink, one cobalt accent.
   Everything lives on this one page as internal sections. Motion is CSS-driven
   and always on; JS only adds extra flourish on top, never gates visibility. */
:root {
  --paper: #F3F3EF;
  --paper-2: #E8E9E3;
  --white: #FFFFFF;
  --ink: #0E1321;
  --ink-2: #434A5A;
  --ink-3: #6E7485;
  --line: #D5D8D0;
  --cobalt: #43B3E6;
  --cobalt-2: #2A8FC2;
  --cobalt-tint: #DCF1FB;
  --sky: #7BCBED;
  --night: #0E1321;
  --night-2: #1A2134;
  --night-line: #2A3248;
  --display: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  overflow-x: hidden;
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
button { font-family: inherit; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: linear-gradient(90deg, var(--cobalt), var(--sky)); background-size: 200% 100%; animation: gradientShift 4s ease infinite; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 15px; border: none; cursor: pointer; transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease; }
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); background: var(--cobalt-2); box-shadow: 0 14px 30px -12px rgba(67,179,230,.7); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(127,130,145,.12); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

/* ---------- Scroll progress ---------- */
.scrollbar { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 3px; width: 100%; z-index: 70; background: transparent; }
.scrollbar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--cobalt), var(--sky)); }

/* ---------- Header ---------- */
.site-header { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; transition: background .4s ease; }
.site-header.scrolled { background: rgba(14,19,33,.9); backdrop-filter: blur(12px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-svg { height: 48px; width: auto; display: block; color: #F3F4F8; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.logo:hover .logo-svg { transform: scale(1.05); }
.nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: #DCE0EA; text-decoration: none; font-size: 15px; font-weight: 600; position: relative; padding-bottom: 4px; cursor: pointer; }
.nav ul a::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0; background: var(--sky); transition: width .35s cubic-bezier(.2,.7,.2,1); }
.nav ul a:hover::after, .nav ul a.active::after { width: 100%; }
.nav .btn { padding: 12px 18px; font-size: 14px; }

.nav ul li.has-sub { position: relative; }
.nav ul li.has-sub > a::after { content: "▾"; display: inline-block; margin-left: 5px; font-size: 10px; position: static; }
.nav ul li.has-sub > a:hover::after, .nav ul li.has-sub > a.active::after {}
.nav .sub-menu { position: absolute; top: 100%; left: 50%; transform: translate(-50%,8px); margin: 0; padding: 10px; list-style: none; min-width: 170px; background: var(--night-2); border-radius: 12px; box-shadow: 0 24px 48px -20px rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s; z-index: 60; }
.nav ul li.has-sub:hover .sub-menu, .nav ul li.has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%,2px); }
.nav .sub-menu li { list-style: none; }
.nav .sub-menu a { display: block; padding: 9px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav .sub-menu a::after { display: none; }
.nav .sub-menu a:hover { background: rgba(255,255,255,.08); }
.nav ul#mainNavList li:has(.mob-cta) { display: none; }

/* ---------- Mobile nav toggle ---------- */
html.nav-locked { overflow: hidden; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; padding: 0; position: relative; z-index: 61; flex-shrink: 0; }
.nav-toggle span { display: block; position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 2px; background: #F3F4F8; transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .3s ease; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  /* backdrop-filter on the header makes it the containing block for the fixed menu panel — disable on mobile */
  .site-header.scrolled, html.nav-locked .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(14,19,33,.97); }
  .nav-toggle { display: block; }
  .nav > .btn.magnetic { display: none; }
  .nav ul#mainNavList {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100vh; height: 100dvh;
    padding: 110px 28px 40px; margin: 0;
    background: rgba(10,13,22,.98); backdrop-filter: blur(14px);
    transform: translateX(100%); opacity: 0; visibility: hidden;
    transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .35s ease, visibility .4s;
    overflow-y: auto; z-index: 55;
  }
  .nav ul#mainNavList.open { transform: translateX(0); opacity: 1; visibility: visible; }
  .nav ul#mainNavList li { border-bottom: 1px solid rgba(255,255,255,.1); width: 100%; }
  .nav ul#mainNavList a { display: block; padding: 18px 2px; font-size: 19px; }
  .nav ul#mainNavList .mob-cta { display: block; margin-top: 28px; text-align: center; padding: 16px 2px; border-radius: 14px; background: var(--cobalt); color: #fff; font-weight: 700; }
  .nav ul#mainNavList li:has(.mob-cta) { display: block; border-bottom: none; }
  .nav ul#mainNavList .sub-menu li { border-bottom: none; }
  .nav ul li.has-sub .sub-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: transparent; box-shadow: none; padding: 0 0 0 14px;
    min-width: 0; max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav ul li.has-sub.open .sub-menu { max-height: 220px; padding-bottom: 10px; }
  .nav ul#mainNavList .sub-menu,
  .nav ul#mainNavList li.has-sub:hover .sub-menu,
  .nav ul#mainNavList li.has-sub:focus-within .sub-menu { display: block; width: 100%; transform: none; left: auto; top: auto; }
  .nav ul#mainNavList li.has-sub > a { display: flex; justify-content: space-between; align-items: center; }
  .nav ul#mainNavList li.has-sub > a::after { width: auto; height: auto; background: none; position: static; font-size: 14px; transition: transform .3s ease; }
  .nav ul li.has-sub.open > a::after { transform: rotate(180deg); }
  .nav .sub-menu a { padding: 12px 10px; font-size: 16px; color: #B8BECD; }
}

/* ---------- Page wipe ---------- */
.wipe { position: fixed; inset: 0; background: var(--cobalt); z-index: 90; transform: translateY(101%); pointer-events: none; }
.wipe.go { animation: wipeUp .7s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes wipeUp { 0% { transform: translateY(101%); } 45%,55% { transform: translateY(0%); } 100% { transform: translateY(-101%); } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--night); color: #F3F4F8; overflow: hidden; padding-top: 160px; padding-bottom: 90px; isolation: isolate; }
.hero .grid-bg { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); animation: pan 24s linear infinite; }
@keyframes pan { to { background-position: 64px 64px; } }
.hero .glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; right: -260px; top: -260px; z-index: -2; background: radial-gradient(circle, rgba(67,179,230,.55), transparent 70%); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.15); opacity: 1; } }
.hero .ring { position: absolute; width: 640px; height: 640px; border-radius: 50%; border: 1px solid rgba(123,203,237,.3); right: -180px; top: -140px; z-index: -1; animation: spin 36s linear infinite; }
.hero .ring::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--sky); top: 50%; left: -7px; margin-top: -7px; box-shadow: 0 0 0 6px rgba(123,203,237,.18); }
.hero .ring.r2 { width: 420px; height: 420px; right: -60px; top: 40px; border-color: rgba(123,203,237,.2); animation-duration: 22s; animation-direction: reverse; }
.hero .ring.r3 { width: 260px; height: 260px; right: 60px; top: 220px; border-color: rgba(123,203,237,.16); animation-duration: 14s; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-top { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6.2vw, 92px); line-height: .96; letter-spacing: -.03em; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(44px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero h1 em { font-style: normal; color: var(--sky); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero .eyebrow { color: var(--sky); opacity: 0; animation: fade .7s .1s forwards; }
.hero .lead { margin-top: 26px; max-width: 50ch; font-size: clamp(16px, 1.8vw, 19px); color: #B8BECD; opacity: 0; animation: fade .8s .75s forwards; }
.hero .ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fade .8s .9s forwards; }
@keyframes fade { to { opacity: 1; } }

/* Hero stack: a 3D rotating carousel of real client work, always in motion */
.hero-stack { position: relative; perspective: 1500px; width: 100%; max-width: 520px; aspect-ratio: 16 / 10; margin: 0 auto; }
.hs-glow { position: absolute; inset: -60px; z-index: -2; border-radius: 50%; background: conic-gradient(from 0deg, var(--cobalt), var(--sky), #8B6CF0, var(--cobalt)); filter: blur(70px); opacity: .45; animation: hsSpin 14s linear infinite, breathe 7s ease-in-out infinite; }
@keyframes hsSpin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,-8px); } }
.hs-ring { position: absolute; inset: -26px; z-index: -1; border-radius: 22px; border: 1px solid rgba(123,203,237,.35); animation: spin 40s linear infinite; }
.hs-card { position: absolute; inset: 0; display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 70px -28px rgba(0,0,0,.65); opacity: 0; animation: hsCycle 17.5s cubic-bezier(.65,0,.35,1) infinite; }
.hs-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hs-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(67,179,230,.38), transparent 55%), linear-gradient(0deg, rgba(14,19,33,.55), transparent 40%); mix-blend-mode: overlay; }
.hs-card.c1 { animation-delay: 0s; }
.hs-card.c2 { animation-delay: 3.5s; }
.hs-card.c3 { animation-delay: 7s; }
.hs-card.c4 { animation-delay: 10.5s; }
.hs-card.c5 { animation-delay: 14s; }
@keyframes hsCycle {
  0% { opacity: 0; transform: rotateY(55deg) translateX(60px) scale(.82); }
  4% { opacity: 1; transform: rotateY(0deg) translateX(0) scale(1); }
  20% { opacity: 1; transform: rotateY(0deg) translateX(0) scale(1); }
  24% { opacity: 0; transform: rotateY(-55deg) translateX(-60px) scale(.82); }
  100% { opacity: 0; }
}
.hs-badge { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); background: var(--white); color: var(--night); font-family: var(--display); font-weight: 800; font-size: 13px; padding: 10px 18px; border-radius: 999px; box-shadow: 0 16px 34px -14px rgba(0,0,0,.5); white-space: nowrap; z-index: 2; animation: fade .8s 1.2s both, floaty 5s ease-in-out 2s infinite; }
@media (max-width: 920px) { .hero-top { grid-template-columns: 1fr; } .hero-stack { max-width: 420px; margin-top: 20px; } }
@media (prefers-reduced-motion: reduce) {
  .hs-glow, .hs-ring { animation: none; }
  .hs-card { animation: none; opacity: 0; }
  .hs-card.c1 { opacity: 1; }
}

.hero .meta { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--night-line); }
.hero .meta > div { padding: 26px 26px 0 0; }
.hero .meta > div + div { padding-left: 26px; border-left: 1px solid var(--night-line); }
.hero .meta strong { display: block; font-family: var(--display); font-size: clamp(38px, 4.8vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--white); font-variant-numeric: tabular-nums; }
.hero .meta span { display: block; margin-top: 8px; font-size: 14px; color: #9AA2B6; }
@media (max-width: 680px) { .hero .meta { grid-template-columns: 1fr; } .hero .meta > div, .hero .meta > div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--night-line); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--white); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee .track { display: flex; gap: 52px; width: max-content; animation: slide 32s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 700; font-size: 25px; letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap; }
.marquee span::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 52px; border-radius: 50%; background: var(--cobalt); vertical-align: middle; animation: dotPulse 1.6s ease-in-out infinite; }
@keyframes dotPulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.4); } }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 68px); line-height: .98; letter-spacing: -.03em; margin-top: 16px; position: relative; }
.section-head h2 em { font-style: normal; background: linear-gradient(100deg, var(--cobalt), var(--sky), var(--cobalt)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradientShift 6s ease infinite; }
.section-head::before { content: ""; display: block; grid-column: 1 / -1; width: 64px; height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--cobalt), var(--sky), var(--cobalt)); background-size: 260% 100%; animation: gradientShift 5s ease infinite; }
.section-head p { color: var(--ink-2); font-size: 18px; max-width: 44ch; justify-self: end; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } .section-head p { justify-self: start; } }

/* Reveal: fully visible from the start (never relies on JS to appear);
   JS only layers a small, fast lift-and-fade on top when it's available. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { animation: settle .6s cubic-bezier(.2,.7,.2,1) both; animation-play-state: paused; }
html.js .reveal.in { animation-play-state: running; }
@keyframes settle { from { opacity: .4; transform: translateY(18px); } to { opacity: 1; transform: none; } }
html.js .reveal.d1 { animation-delay: .06s; }
html.js .reveal.d2 { animation-delay: .12s; }
html.js .reveal.d3 { animation-delay: .18s; }

/* ---------- Services ---------- */
.services { background: var(--paper); position: relative; overflow: hidden; }
.services .float-shape { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; animation: drift 10s ease-in-out infinite alternate; }
.services .float-shape.s1 { width: 18px; height: 18px; background: var(--cobalt); top: 10%; left: 6%; }
.services .float-shape.s2 { width: 12px; height: 12px; background: var(--sky); top: 70%; left: 92%; animation-duration: 8s; }
.services .float-shape.s3 { width: 24px; height: 24px; border: 2px solid var(--cobalt); background: none; top: 85%; left: 15%; animation-duration: 13s; }
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(18px,-26px); } }
.grid-services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); position: relative; }
.svc { position: relative; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 38px 32px 34px; min-height: 280px; display: flex; flex-direction: column; overflow: hidden; transition: background .5s ease, color .5s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
.svc::before { content: ""; position: absolute; left: 0; bottom: 0; height: 0; width: 100%; background: var(--cobalt); transition: height .5s cubic-bezier(.2,.7,.2,1); z-index: -1; }
.svc:hover::before { height: 100%; }
.svc:hover { color: var(--white); transform: translateY(-4px); }
.svc:hover p, .svc:hover li { color: #D9F0FB; }
.svc:hover li { background: rgba(255,255,255,.14); }
.svc .num { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--cobalt); transition: color .5s ease; font-variant-numeric: tabular-nums; }
.svc:hover .num { color: #CDEBF7; }
.svc .icon { position: absolute; top: 34px; right: 30px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(58,74,242,.08); color: var(--cobalt); transition: background .5s ease, color .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.svc .icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc:hover .icon { background: rgba(255,255,255,.14); color: #fff; transform: rotate(-6deg) scale(1.08); }
.svc h3 { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.05; letter-spacing: -.02em; margin: 44px 0 12px; }
.svc p { color: var(--ink-2); font-size: 15px; transition: color .5s ease; }
.svc ul { list-style: none; padding: 0; margin: auto 0 0; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc li { font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; transition: background .5s ease, color .5s ease; }
.svc:hover li { color: var(--white); border-color: transparent; }
@media (max-width: 960px) { .grid-services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-services { grid-template-columns: 1fr; } }

/* ---------- Portfolio ---------- */
.cases { background: var(--night); color: #F3F4F8; }
.cases .section-head p { color: #A9B0C2; }
.cases .section-head h2 em { color: var(--sky); }
.cases .eyebrow { color: var(--sky); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button { background: transparent; color: #A9B0C2; border: 1px solid var(--night-line); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .3s ease; }
.filters button:hover { border-color: var(--sky); color: #F3F4F8; }
.filters button.active { background: var(--sky); border-color: var(--sky); color: var(--night); }
.grid-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-cases, .grid-services, .af-live-grid, .ab-values-grid, .pt-grid, .grid-quotes, .cs-more-grid, .af-feature-grid { perspective: 1200px; }
.case, .svc, .af-live-card, .ab-value, .pt-card, .quote, .cs-more-card, .af-feature { transition: transform .12s ease-out, box-shadow .5s ease; }
.case { background: var(--night-2); border-radius: 18px; overflow: hidden; }
.case:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(67,179,230,.55); }
.case.hidden-filter { display: none; }
.case .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center; background: #10131F; }

/* ---------- Instagram strip ---------- */
.insta { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.insta-grid { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 44px; }
.insta-text h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); line-height: 1; letter-spacing: -.03em; margin-top: 14px; }
.insta-text p { margin-top: 16px; color: var(--ink-2); font-size: 16px; max-width: 36ch; }
.insta-text .btn { margin-top: 24px; }
.insta-strip { position: relative; border-radius: 18px; overflow: hidden; }
.insta-strip img { width: 100%; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.insta-strip:hover img { transform: scale(1.03); }
@media (max-width: 900px) { .insta-grid { grid-template-columns: 1fr; gap: 28px; } }
.case .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.case:hover .thumb img { transform: scale(1.05) translateY(-2%); }
.case .thumb .ph { position: absolute; inset: 0; background: var(--ph-grad); background-size: 250% 250%; animation: gradientShift 9s ease infinite; }
.case .thumb .ph::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.1) 0, transparent 45%); }
.case .thumb .orb { position: absolute; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.08); top: -20px; right: -20px; animation: drift 7s ease-in-out infinite alternate; }
.case .thumb .glyph { position: relative; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.92); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 9px 16px; border-radius: 999px; backdrop-filter: blur(4px); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.case:hover .glyph { transform: scale(1.08) translateY(-2px); }
.case .body { padding: 24px 26px 28px; }
.case .tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.case h3 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.05; letter-spacing: -.02em; margin: 10px 0 10px; color: var(--white); }
.case p { color: #A9B0C2; font-size: 14.5px; }
.case .result { display: flex; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--night-line); }
.case .result div strong { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--sky); font-variant-numeric: tabular-nums; }
.case .result div span { font-size: 12px; color: #7F8698; }
.cases-foot { margin-top: 36px; text-align: center; }
.cases-foot .hint { color: #7F8698; font-size: 14px; }
@media (max-width: 960px) { .grid-cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-cases { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { background: var(--paper); }
.grid-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { background: var(--white); border-radius: 18px; padding: 34px 30px; display: flex; flex-direction: column; gap: 26px; margin: 0; transition: transform .5s ease, box-shadow .5s ease; }
.quote:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(14,19,33,.35); }
.quote blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.32; letter-spacing: -.01em; color: var(--ink); }
.quote cite { font-style: normal; font-size: 14px; color: var(--ink-3); margin-top: auto; }
.quote cite b { display: block; color: var(--ink); font-size: 15px; }
@media (max-width: 960px) { .grid-quotes { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.step { position: relative; padding-right: 18px; cursor: default; }
.step .dot { width: 48px; height: 48px; border-radius: 14px; background: var(--white); border: 2px solid var(--cobalt); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--cobalt); position: relative; z-index: 1; transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .4s ease, color .4s ease; }
.step:hover .dot { transform: scale(1.15) rotate(-6deg); background: var(--cobalt); color: #fff; }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; margin: 22px 0 8px; }
.step p { color: var(--ink-2); font-size: 14px; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; gap: 36px 24px; } }

/* ---------- Local SEO ---------- */
.local { background: var(--cobalt); color: #F3F4FF; overflow: hidden; }
.local .eyebrow { color: #CDEBF7; }
.local .eyebrow::before { background: currentColor; }
.local-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; position: relative; z-index: 1; }
.local h2 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 64px); line-height: .98; letter-spacing: -.03em; margin-top: 16px; }
.local .lede { margin-top: 22px; color: #D2EEFA; font-size: 17px; max-width: 52ch; }
.areas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.areas span { background: rgba(255,255,255,.12); padding: 10px 17px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .3s ease, color .3s ease, transform .3s ease; display: inline-block; }
.areas span:hover { background: var(--white); color: var(--cobalt); transform: translateY(-3px); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { background: var(--cobalt-2); border-radius: 16px; padding: 20px 22px; transition: transform .4s ease, background .4s ease; }
.checklist li:hover { transform: translateX(8px); background: #2A8FC2; }
.checklist strong { display: block; font-family: var(--display); font-size: 18px; letter-spacing: -.01em; color: var(--white); margin-bottom: 4px; }
.checklist span { font-size: 14px; color: #CDEBF7; }
.local .orbit { position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.local .orbit.o1 { width: 420px; height: 420px; right: -160px; bottom: -200px; animation: spin 46s linear infinite; }
.local .orbit.o2 { width: 280px; height: 280px; right: -60px; bottom: -80px; animation: spin 32s linear infinite reverse; }
@media (max-width: 900px) { .local-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 46px; }
.contact-info h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 54px); line-height: .98; letter-spacing: -.03em; margin-top: 16px; }
.contact-info h2 em { font-style: normal; color: var(--cobalt); }
.contact-info p { margin-top: 18px; color: var(--ink-2); font-size: 17px; max-width: 42ch; }
.pricing-guide { margin-top: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.pricing-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); margin: 0 0 14px; }
.pricing-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pricing-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: 15px; }
.pricing-list li:last-child { border-bottom: none; padding-bottom: 0; }
.pricing-list span { color: var(--ink-2); }
.pricing-list strong { font-family: var(--display); font-weight: 800; color: var(--ink); white-space: nowrap; }
.pricing-note { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); }
.contact-field { margin-top: 28px; }
.contact-field label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.copy-row { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.copy-row span { font-size: 16px; font-weight: 600; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.copy-row button { background: var(--ink); color: var(--white); border: none; border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; flex-shrink: 0; transition: background .3s ease; }
.copy-row button:hover { background: var(--cobalt); }
.copy-row button.copied { background: #1F9D55; }
.social-row { margin-top: 24px; display: flex; gap: 12px; }
.social-row a { width: 46px; height: 46px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; transition: transform .3s ease, background .3s ease; }
.social-row a:hover { transform: translateY(-3px); background: var(--cobalt); }
.social-row a:hover svg { stroke: #fff; }
.social-row svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.7; transition: stroke .3s ease; }
.form-card { background: var(--white); border-radius: 22px; padding: clamp(28px, 4vw, 42px); position: relative; overflow: hidden; }
.form-card .field { margin-bottom: 18px; }
.form-card label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.form-card input, .form-card select, .form-card textarea { width: 100%; padding: 13px 15px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); font-family: inherit; font-size: 15px; color: var(--ink); transition: border-color .3s ease, background .3s ease; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--cobalt); background: var(--white); }
.form-card textarea { resize: vertical; min-height: 96px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { font-size: 13px; color: var(--ink-3); margin-top: 14px; text-align: center; }
.form-success { display: none; text-align: center; padding: 16px 0; }
.form-success.show { display: block; }
.form-success .tick { width: 54px; height: 54px; border-radius: 50%; background: #1F9D55; color: #fff; display: grid; place-items: center; margin: 0 auto 16px; font-size: 24px; animation: pop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.form-success h3 { font-family: var(--display); font-size: 23px; font-weight: 700; }
.form-success p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .form-row2 { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #9AA2B6; padding: 64px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .logo .word { color: #fff; }
.footer h4 { margin: 0 0 16px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #E4E8F2; }
.footer a.flink { display: block; color: #9AA2B6; text-decoration: none; margin-bottom: 10px; font-size: 15px; cursor: pointer; transition: color .3s ease, transform .3s ease; }
.footer a.flink:hover { color: var(--white); transform: translateX(4px); }
.footer .logo-svg { height: 52px; }
.footer-bottom { margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--night-line); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }

.magnetic { will-change: transform; }
.cursor-dot { position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--cobalt); pointer-events: none; z-index: 80; transform: translate(-50%,-50%); transition: width .25s ease, height .25s ease, background .25s ease, opacity .25s ease; opacity: 0; mix-blend-mode: difference; }
.cursor-dot.show { opacity: 1; }
.cursor-dot.big { width: 46px; height: 46px; background: var(--sky); }
@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero .glow, .hero .ring, .hero .grid-bg, .hs-badge,
  .services .float-shape, .case .thumb .ph, .case .thumb .orb, .local .orbit,
  .logo .mark, .marquee span::after { animation: none !important; }
}

/* ---------- Service card platform links + platforms strip ---------- */
.svc-links { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.svc-links a { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; background: var(--cobalt); color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; transition: transform .25s ease, background .25s ease; }
.svc-links a:hover { transform: translateY(-2px); background: var(--night); }
.platforms-strip { background: var(--paper); }
.plat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plat-card { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--night); background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 34px 32px; transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease; }
.plat-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(14,19,33,.35); border-color: var(--sky); }
.plat-card img { height: 64px; width: auto; max-width: 70%; object-fit: contain; margin-bottom: 24px; }
.plat-card h3 { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.plat-card p { color: var(--ink-2); margin-top: 8px; font-size: 15px; max-width: 44ch; }
.plat-card .plat-go { margin-top: 22px; color: var(--cobalt); font-weight: 700; font-size: 15px; }
@media (max-width: 720px) { .plat-grid { grid-template-columns: 1fr; } .plat-card { padding: 28px 24px; } .plat-card img { height: 54px; } }

/* ---------- Wide images inside cards: show in full over a blurred fill ---------- */
.thumb.has-wide::before { content: ""; position: absolute; inset: -24px; background: var(--thumb-bg) center / cover no-repeat; filter: blur(18px) saturate(1.1); transform: scale(1.08); z-index: 0; }
.thumb img.is-wide { position: relative; z-index: 1; object-fit: contain !important; object-position: center !important; }
.cs-more-card img.is-wide { object-fit: contain; object-position: center; background: var(--night); }
.thumb.has-wide { position: relative; overflow: hidden; }

/* ================= Homepage hero: 3D work wall + 3D mark ================= */
.hero-3d { padding-bottom: 80px; }
.hero-3d .work-wall { position: absolute; inset: -10% -20% -10% 18%; z-index: -3; perspective: 1400px; pointer-events: none; }
.hero-3d .ww-plane { --wx: 0deg; --wy: 0deg; position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; transform-style: preserve-3d; transform: rotateX(calc(26deg + var(--wy))) rotateY(var(--wx)) rotateZ(-16deg) scale(1.08); transform-origin: 50% 40%; }
.hero-3d .ww-col { overflow: hidden; height: 100%; }
.hero-3d .ww-track { display: flex; flex-direction: column; gap: 18px; animation: wwUp 46s linear infinite; will-change: transform; }
.hero-3d .ww-col.rev .ww-track { animation-name: wwDown; animation-duration: 54s; }
.hero-3d .ww-col:nth-child(3) .ww-track { animation-duration: 40s; }
.hero-3d .ww-track img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; opacity: .62; box-shadow: 0 24px 40px -22px rgba(0,0,0,.8); filter: saturate(.9); }
@keyframes wwUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 9px)); } }
@keyframes wwDown { from { transform: translateY(calc(-50% - 9px)); } to { transform: translateY(0); } }
.hero-3d.hero-off .ww-track { animation-play-state: paused; }
.hero-3d .hero-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, var(--night) 0%, var(--night) 30%, rgba(14,19,33,.82) 48%, rgba(14,19,33,.35) 72%, rgba(14,19,33,.55) 100%),
    linear-gradient(0deg, var(--night) 0%, rgba(14,19,33,0) 30%),
    linear-gradient(180deg, rgba(14,19,33,.85) 0%, rgba(14,19,33,0) 22%); }
.hero-3d .glow { z-index: -2; right: -120px; top: -120px; opacity: .7; }
.hero-3d .hero-top { grid-template-columns: 1.1fr .9fr; min-height: 520px; }
.hero-mark { position: relative; width: 100%; aspect-ratio: 5 / 3.4; max-width: 620px; margin: 0 auto; }
.hero-mark canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1s ease; }
.hero-mark.gl-ready canvas { opacity: 1; }
.hero-mark.gl-ready .mark-fallback { opacity: 0; transition: none; }
.hero-mark::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(67,179,230,.45), rgba(67,179,230,0) 68%); filter: blur(30px); z-index: -1; animation: breathe 7s ease-in-out infinite; }
/* CSS fallback mark, shown until (or instead of) the 3D version */
.mark-fallback { position: absolute; inset: 0; transition: opacity .8s ease; }
.mf-ball { position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #ffffff 0%, #bfe6f8 8%, #43B3E6 34%, #1f6f9c 72%, #0d3550 100%); box-shadow: inset -18px -24px 50px rgba(5,20,40,.55), 0 40px 80px -30px rgba(67,179,230,.6); animation: mfFloat 6s ease-in-out infinite; }
.mf-ring { position: absolute; inset: 16%; border-radius: 50%; border: 2px solid rgba(223,243,252,.55); transform: rotateZ(-14deg) scaleY(.34); }
.mf-ring.r2 { inset: 6%; border-width: 1px; border-color: rgba(223,243,252,.3); transform: rotateZ(18deg) scaleY(.26); }
@keyframes mfFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 920px) {
  .hero-3d .hero-top { grid-template-columns: 1fr; min-height: 0; }
  .hero-3d .hero-mark { order: -1; max-width: 300px; margin: -40px auto -10px; }
  .hero-3d .work-wall { inset: -5% -60% 0 -20%; }
  .hero-3d .ww-plane { grid-template-columns: repeat(4, 1fr); }
  .hero-3d .ww-col:nth-child(5) { display: none; }
  .hero-3d .hero-shade { background: linear-gradient(180deg, rgba(14,19,33,.55) 0%, rgba(14,19,33,.78) 34%, var(--night) 62%); }
}
@media (max-width: 560px) { .hero-3d .hero-mark { max-width: 240px; margin-top: -60px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-3d .ww-track, .mf-ball, .mf-ring, .hero-mark::before { animation: none; }
}

/* ---------- Header: client login + CTA ---------- */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-login { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); color: #DCE0EA; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .25s ease, background .25s ease, color .25s ease; }
.nav-login:hover { border-color: var(--sky); background: rgba(67,179,230,.12); color: #fff; }
.nav-login svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.nav ul#mainNavList li.mob-login { display: none; }
@media (max-width: 1180px) { .nav-login span { display: none; } .nav-login { padding: 10px; } }
@media (max-width: 880px) {
  .nav .nav-actions { display: none; }
  .nav ul#mainNavList li.mob-login { display: block; }
}

.mark-fallback { display: grid; place-items: center; }
.mf-logo { width: 84%; height: auto; color: #F3F5FB; filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)) drop-shadow(0 0 30px rgba(67,179,230,.35)); animation: mfFloat 6s ease-in-out infinite; }
@media (max-width: 920px) { .hero-3d .hero-mark { max-width: 460px; margin: -20px auto 6px; } }
@media (max-width: 560px) { .hero-3d .hero-mark { max-width: 340px; margin: -40px auto 0; } }
@media (prefers-reduced-motion: reduce) { .mf-logo { animation: none; } }

/* ================= Mega menu (Services) ================= */
.nav { position: relative; }
.nav ul li.mega-li { position: static; }
.nav .sub-menu.mega { left: 0; right: 0; top: calc(100% - 6px); transform: translateY(10px); min-width: 0; padding: 26px; display: grid; grid-template-columns: 1.15fr 1fr .9fr 1fr; gap: 10px 22px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(19,25,42,.98); backdrop-filter: blur(12px); }
.nav ul li.mega-li:hover .sub-menu.mega, .nav ul li.mega-li:focus-within .sub-menu.mega { transform: translateY(0); }
.nav ul li.mega-li::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 0; } /* hover bridge handled by top offset */
.mega .mm-col { display: flex; flex-direction: column; gap: 2px; }
.mega .mm-h { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); margin: 2px 10px 8px; }
.nav .mega a[data-key] { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 12px; white-space: normal; font-size: 14px; }
.nav .mega a[data-key]:hover, .nav .mega a[data-key].current { background: rgba(255,255,255,.06); }
.mega .mm-ic { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(67,179,230,.14); color: var(--sky); }
.mega .mm-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mega b { display: block; color: #fff; font-weight: 700; font-size: 14.5px; }
.mega small { display: block; color: #9AA2B6; font-size: 12.5px; font-weight: 500; margin-top: 2px; line-height: 1.35; }
.mega .mm-cta { background: linear-gradient(150deg, rgba(67,179,230,.22), rgba(67,179,230,.05)); border: 1px solid rgba(123,203,237,.25); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.mega .mm-cta .mm-h { margin: 0; }
.mega .mm-cta p:not(.mm-h) { color: #C9CFDC; font-size: 13.5px; line-height: 1.45; }
.nav .mega .mm-cta .btn { align-self: flex-start; padding: 11px 16px; font-size: 13.5px; color: #fff; }
.nav .mega .mm-all { color: var(--sky); font-size: 13px; font-weight: 700; padding: 0; }
.nav .mega a::after { display: none; }
@media (max-width: 1180px) and (min-width: 881px) { .nav .sub-menu.mega { grid-template-columns: 1fr 1fr 1fr; } .mega .mm-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; } .mega .mm-cta p:not(.mm-h) { flex: 1 1 260px; } }
@media (max-width: 880px) {
  .nav ul#mainNavList li.mega-li .sub-menu.mega { display: block; position: static; padding: 0 0 0 4px; border: 0; background: transparent; backdrop-filter: none; box-shadow: none; max-height: 0; overflow: hidden; transform: none; }
  .nav ul#mainNavList li.mega-li.open .sub-menu.mega { max-height: 1200px; padding-bottom: 14px; }
  .mega .mm-col { margin-bottom: 8px; }
  .mega .mm-h { margin: 10px 6px 4px; }
  .nav ul#mainNavList .mega a[data-key] { display: flex; align-items: center; gap: 12px; padding: 9px 6px; font-size: 15px; }
  .mega .mm-ic { flex: 0 0 30px; width: 30px; height: 30px; }
  .mega small { display: none; }
  .mega .mm-cta { display: none; }
}
.nav .sub-menu.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -40px; height: 40px; }

/* Portfolio mega menu extras */
.nav .mega .mm-plain { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: #fff; white-space: nowrap; }
.nav .mega .mm-plain span { font-size: 12px; color: #9AA2B6; font-weight: 600; }
.nav .mega .mm-plain:hover { background: rgba(255,255,255,.06); }
.nav .mega .mm-feat { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; white-space: normal; }
.nav .mega .mm-feat:hover { background: rgba(255,255,255,.06); }
.nav .mega .mm-feat img { width: 84px; height: 52px; object-fit: cover; object-position: top; border-radius: 8px; flex: 0 0 84px; }
.nav .mega .mm-feat b { font-size: 14px; }
@media (max-width: 880px) {
  .nav ul#mainNavList .mega .mm-plain { padding: 9px 6px; font-size: 15px; display: flex; }
  .nav ul#mainNavList .mega .mm-feats { display: none; }
  .nav ul#mainNavList .mega a.mm-plain span { display: inline; }
}
/* Active dropdown parents: keep the arrow beside the label; underline drawn separately */
@media (min-width: 881px) {
  .nav ul li.has-sub > a.active::after { position: static; width: auto; height: auto; background: none; display: inline-block; }
  .nav ul li.has-sub > a.active { box-shadow: inset 0 -2px 0 var(--sky); }
}

/* Archived (no longer live) projects */
.case .thumb .arch-badge { position: absolute; top: 12px; left: 12px; z-index: 3; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #E6E9F2; background: rgba(14,19,33,.78); border: 1px solid rgba(255,255,255,.18); padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
