/* SJC Designs – site styles
   Dark, purple-accented, motion-rich. Animations respect prefers-reduced-motion. */

@view-transition { navigation: auto; }

:root {
  --bg: #0b0912;
  --bg-2: #100d18;
  --surface: #16121f;
  --surface-2: #1e1829;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #f4f1fa;
  --ink-2: #cbc5d8;
  --muted: #8f89a0;
  --purple: #8127ff;
  --purple-2: #a66bff;
  --purple-3: #c9a8ff;
  --pink: #ff4fd8;
  --accent: var(--purple);
  --grad: linear-gradient(100deg, #a66bff 0%, #8127ff 45%, #ff4fd8 100%);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p a, .prose a, .muted a { color: var(--purple-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
p a:hover, .prose a:hover { color: #fff; }
::selection { background: var(--purple); color: #fff; }
:focus-visible { outline: 2px solid var(--purple-2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; line-height: 1.05; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Subtle glow that follows the pointer across the whole page */
.cursor-glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, -20%), rgba(129, 39, 255, .09), transparent 60%); }
main, .site-footer { position: relative; z-index: 1; }

/* ── Type helpers ─────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--purple-3); margin: 0 0 18px; }
.eyebrow .icon { width: 16px; height: 16px; }
.section-title { font-size: clamp(34px, 5.2vw, 68px); max-width: 16ch; }
.lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.55; color: var(--ink); }
.prose { color: var(--ink-2); max-width: 68ch; }
.prose h2 { color: var(--ink); font-size: clamp(26px, 3vw, 34px); margin-top: 1.6em; }
.prose strong { color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: rgba(129, 39, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a8ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.dot { display: inline-block; width: .22em; height: .22em; border-radius: 50%; background: var(--purple); margin-left: .05em; box-shadow: 0 0 24px var(--purple); }

/* Words split by JS for the rising headline effect */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--wi) * 55ms + var(--split-delay, 0ms)); }
[data-split].is-in .w > span { transform: none; }

/* Scroll reveals */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Buttons ──────────────────────────────────── */
.btn { --bh: 52px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--bh); padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .25s, border-color .25s, color .25s, box-shadow .3s, transform .3s var(--ease-out); }
.btn .icon { transition: transform .3s var(--ease-out); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--primary { background: var(--purple); color: #fff; box-shadow: 0 10px 30px -10px rgba(129, 39, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .25); overflow: hidden; isolation: isolate; }
.btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .35s; }
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(255, 79, 216, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--ink); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--purple-2); background: rgba(129, 39, 255, .12); }
.btn--sm { --bh: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { --bh: 60px; padding: 0 32px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Header ───────────────────────────────────── */
/* The frosted background sits on ::before, not the header itself: a backdrop-filter or transform on the
   header would trap the full-screen mobile menu (position: fixed) inside the header's box. */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h); transition: top .45s var(--ease-out); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -2; border-bottom: 1px solid transparent; transition: background .4s, border-color .4s; }
.site-header.is-scrolled::before { background: rgba(11, 9, 18, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.site-header.is-hidden { top: calc(var(--header-h) * -1 - 2px); }
.nav-open .site-header::before { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand img { width: 150px; height: auto; }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav__link { position: relative; display: block; padding: 10px 16px; font-weight: 500; font-size: 15px; color: var(--ink-2); text-decoration: none; border-radius: 999px; transition: color .2s, background .2s; }
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav__link.is-active { color: #fff; }
.nav__link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.nav__num, .nav__extra { display: none; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); cursor: pointer; position: relative; }
.nav-burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.nav-burger span:first-child { top: 18px; }
.nav-burger span:last-child { top: 26px; }
.nav-open .nav-burger span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-burger span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .brand img { width: 128px; }
  .header__cta { display: none; }
  .nav-burger { display: block; }
  .header__actions { margin-left: auto; }
  .nav { position: fixed; inset: 0; z-index: -1; margin: 0; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; background: rgba(11, 9, 18, .97); backdrop-filter: blur(20px); display: flex; flex-direction: column; justify-content: space-between; clip-path: circle(0 at calc(100% - 46px) 33px); transition: clip-path .7s var(--ease-out); visibility: hidden; }
  .nav-open .nav { clip-path: circle(150% at calc(100% - 46px) 33px); visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease-out); transition-delay: calc(var(--i) * 60ms + 120ms); }
  .nav-open .nav__list li { opacity: 1; transform: none; }
  .nav__link { font: 600 clamp(40px, 11vw, 64px)/1.1 var(--display); letter-spacing: -.03em; color: #fff; padding: 10px 0; border-radius: 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 14px; }
  .nav__link.is-active::after { display: none; }
  .nav__link.is-active { color: var(--purple-3); }
  .nav__num { display: inline; font: 500 13px var(--body); letter-spacing: .1em; color: var(--muted); }
  .nav__extra { display: grid; gap: 10px; }
  .nav__extra a { display: flex; align-items: center; gap: 10px; color: var(--ink-2); text-decoration: none; }
}

/* ── Hero (home) ──────────────────────────────── */
.hero { position: relative; min-height: 100svh; min-height: max(640px, 100svh); display: flex; align-items: center; overflow: hidden; background: radial-gradient(1200px 700px at 70% 45%, rgba(129, 39, 255, .14), transparent 60%), var(--bg); isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; cursor: crosshair; }
.hero__fallback { position: absolute; inset: 0; z-index: -2; display: none; place-items: center end; padding-right: 8vw; opacity: .9; }
.hero__fallback img { width: min(560px, 40vw); filter: drop-shadow(0 0 40px rgba(129, 39, 255, .45)); }
.hero.no-webgl .hero__fallback { display: grid; }
.hero.no-webgl .hero__canvas { display: none; }
.hero__grain { position: absolute; 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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
/* The purple dot from the logo – it pulses, then bursts into the particles */
.hero__dot { position: absolute; left: var(--dot-x, 68%); top: var(--dot-y, 50%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 30px 6px rgba(129, 39, 255, .7), 0 0 120px 30px rgba(129, 39, 255, .35); z-index: 0; pointer-events: none; opacity: 0; transform: scale(.2); }
.js .hero.is-intro .hero__dot { animation: dot-in 1.1s var(--ease-out) forwards; }
.js .hero.is-burst .hero__dot { animation: dot-burst .55s var(--ease-out) forwards; }
@keyframes dot-in { 0% { opacity: 0; transform: scale(.2); } 45% { opacity: 1; transform: scale(1.25); } 70% { transform: scale(.85); } 100% { opacity: 1; transform: scale(1); } }
@keyframes dot-burst { 0% { opacity: 1; transform: scale(1); } 30% { transform: scale(1.8); } 100% { opacity: 0; transform: scale(6); } }

.hero__content { position: relative; padding-top: calc(var(--header-h) + 30px); padding-bottom: 165px; pointer-events: none; }
.hero__content > * { pointer-events: auto; max-width: 620px; }
.hero__eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: #3df59a; box-shadow: 0 0 0 0 rgba(61, 245, 154, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 245, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 245, 154, 0); } }
.hero__title { font-size: clamp(44px, 4.9vw, 80px); line-height: .98; letter-spacing: -.04em; font-weight: 700; margin-bottom: 26px; }
.hero__content > .hero__title { max-width: min(640px, 46vw); }
@media (max-width: 899px) { .hero__content > .hero__title { max-width: none; } }
.hero__title em, .page-hero__title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 520px !important; margin-bottom: 34px; }
.js .hero__eyebrow, .js .hero__lead, .js .hero__actions, .js .hero__forms, .js .hero__caption, .js .hero__hint, .js .hero__scroll { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .hero.is-ready .hero__eyebrow { opacity: 1; transform: none; }
.js .hero.is-ready .hero__lead { opacity: 1; transform: none; transition-delay: .45s; }
.js .hero.is-ready .hero__actions { opacity: 1; transform: none; transition-delay: .6s; }
.js .hero.is-ready .hero__forms { opacity: 1; transform: none; transition-delay: .8s; }
.js .hero.is-ready .hero__caption, .js .hero.is-ready .hero__scroll { opacity: 1; transform: none; transition-delay: 1s; }
.js .hero.is-ready .hero__hint { opacity: .6; transform: none; transition-delay: 1.2s; }
.hero .hero__title { --split-delay: 150ms; }

.hero__dock { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 16px; pointer-events: none; }
.hero__dock > * { pointer-events: auto; }
.hero__forms { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(22, 18, 31, .6); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.hero__forms::-webkit-scrollbar { display: none; }
.hero__forms button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--ink-2); font: 500 14px var(--body); padding: 10px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .3s, color .3s; position: relative; }
.hero__forms button .icon { width: 16px; height: 16px; }
.hero__forms button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.hero__forms button[aria-pressed="true"] { background: var(--purple); color: #fff; box-shadow: 0 6px 20px -6px rgba(129, 39, 255, .9); }
.hero__caption { margin: 0; font-size: 14px; line-height: 1.45; text-align: center; max-width: 640px; min-height: 2.9em; }
.hero__caption a { color: var(--ink-2); text-decoration: none; }
.hero__caption a .icon { display: inline-block; vertical-align: -.2em; margin-left: 4px; }
.hero__caption a:hover { color: #fff; }
.hero__caption [data-caption] { transition: opacity .3s; }
.hero__caption.is-swapping [data-caption] { opacity: 0; }
.hero__hint { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 16px); margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-touch { display: inline; } .hint-desktop { display: none; } }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 34px; width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scroll-cue 1.8s var(--ease) infinite; }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 899px) {
  .hero { align-items: flex-end; }
  .hero__content { padding-top: max(300px, 44svh); padding-bottom: 26px; }
  .hero__title { font-size: clamp(40px, 10.5vw, 64px); }
  .hero__fallback { place-items: start center; padding: 18svh 0 0; }
  .hero__fallback img { width: 70vw; }
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .hero__dock { position: relative; bottom: auto; padding: 0 var(--gutter) 22px; align-items: stretch; }
  .hero__forms { align-self: flex-start; }
  .hero__caption { text-align: left; min-height: 4.4em; }
  .hero__hint, .hero__scroll { display: none; }
}

/* ── Logo marquee ─────────────────────────────── */
.marquee { position: relative; border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 26px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee var(--dur, 60s) linear infinite; will-change: transform; backface-visibility: hidden; transform: translate3d(0, 0, 0); }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex: none; align-items: center; gap: 64px; padding: 0 32px; margin: 0; list-style: none; }
.marquee__list li { flex: none; }
.marquee__list img { height: 64px; object-fit: contain; opacity: .55; transition: opacity .3s, transform .3s var(--ease-out); }
.marquee__list a:hover img, .marquee__list li:hover img { opacity: 1; transform: scale(1.06); }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ── Sections ─────────────────────────────────── */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vw, 90px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .section-title { margin: 0; }

.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro__text { color: var(--ink-2); font-size: 18px; padding-top: 34px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 0; }
.stat { border-top: 1px solid var(--line-2); padding-top: 16px; }
.stat dt { font: 650 clamp(40px, 5vw, 60px)/1 var(--display); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.stat dd { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 800px) { .intro__grid { grid-template-columns: 1fr; } .intro__text { padding-top: 0; } }

/* ── Project cards ────────────────────────────── */
.work__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.work__grid > .pcard { grid-column: span 4; }
.work__grid > .pcard--large { grid-column: span 6; }
.work__grid--all > .pcard { grid-column: span 4; }
@media (max-width: 1100px) { .work__grid > .pcard, .work__grid--all > .pcard { grid-column: span 6; } .work__grid > .pcard--large { grid-column: span 12; } }
@media (max-width: 680px) { .work__grid > .pcard, .work__grid--all > .pcard, .work__grid > .pcard--large { grid-column: 1 / -1; } }

[data-spotlight] { position: relative; isolation: isolate; }
[data-spotlight]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%); }
[data-spotlight]:hover::before { opacity: 1; }

.pcard { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .4s, transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.pcard:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--accent) 80%, transparent); }
.pcard__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; border-radius: inherit; }
.pcard__media { position: relative; padding: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px) 0; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); }
.browser { border-radius: 12px 12px 0 0; overflow: hidden; background: #0e0c14; border: 1px solid var(--line-2); border-bottom: 0; box-shadow: 0 -10px 40px -20px rgba(0, 0, 0, .8); transform: translateY(8px); transition: transform .7s var(--ease-out); }
.pcard:hover .browser { transform: translateY(0); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #1b1724; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3348; }
.browser__bar i:nth-child(1) { background: #ff5f57; } .browser__bar i:nth-child(2) { background: #febc2e; } .browser__bar i:nth-child(3) { background: #28c840; }
.browser__bar span { margin: 0 auto; padding: 2px 14px; font-size: 11px; color: var(--muted); background: rgba(255, 255, 255, .05); border-radius: 6px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transform: translateX(-20px); }
.browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: size; background: #0e0c14; }
.pcard__shot { width: 100%; height: auto; transition: transform 6s cubic-bezier(.45, 0, .2, 1); will-change: transform; }
.pcard:hover .pcard__shot { transform: translateY(calc(-100% + 100cqh)); transition-duration: 8s; }
.pcard__placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 10%; text-align: center; font: 650 clamp(22px, 2.4vw, 32px)/1.1 var(--display); letter-spacing: -.03em; color: var(--ink-2); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%), #0e0c14; }
.pcard__logo { position: absolute; inset: 0; display: grid; place-items: center; padding: 14%; }
.pcard__logo img { max-height: 100%; width: auto; }
.pcard__phone { position: absolute; right: 6%; bottom: -14%; width: 22%; aspect-ratio: 390 / 844; border-radius: 18px; padding: 5px; background: #0b0a10; border: 1px solid var(--line-2); box-shadow: -20px 0 50px -10px rgba(0, 0, 0, .7); transform: translateY(14px) rotate(4deg); transition: transform .8s var(--ease-out); }
.pcard:hover .pcard__phone { transform: translateY(-6%) rotate(0); }
.pcard__phone-screen { width: 100%; height: 100%; border-radius: 13px; overflow: hidden; container-type: size; }
.pcard__phone-screen img { width: 100%; transition: transform 7s cubic-bezier(.45, 0, .2, 1); }
.pcard:hover .pcard__phone-screen img { transform: translateY(calc(-100% + 100cqh)); }
.pcard__body { position: relative; padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px solid var(--line); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); z-index: 1; }
.pcard__meta { font-size: 13px; color: var(--muted); }
.pcard__title { font-size: clamp(22px, 2.2vw, 28px); margin: 0; padding-right: 50px; }
.pcard--large .pcard__title { font-size: clamp(26px, 3vw, 38px); }
.pcard__summary { color: var(--ink-2); font-size: 15px; margin: 4px 0 6px; }
.pcard__go { position: absolute; right: 22px; top: 22px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background .3s, border-color .3s, transform .5s var(--ease-out); }
.pcard:hover .pcard__go { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
.tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); text-decoration: none; }
.tag .icon { width: 13px; height: 13px; color: var(--purple-3); }
a.tag:hover { border-color: var(--purple-2); color: #fff; }
.tags--lg .tag { font-size: 14px; padding: 8px 14px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--ink-2); font: 500 15px var(--body); padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: all .25s; }
.filters button sup { font-size: 11px; color: var(--muted); }
.filters button:hover { color: #fff; border-color: var(--purple-2); }
.filters button[aria-pressed="true"] { background: #fff; color: var(--bg); border-color: #fff; }
.filters button[aria-pressed="true"] sup { color: var(--purple); }
.pcard.is-hidden { display: none; }
.pcard.is-filtered-in { animation: card-in .6s var(--ease-out) both; animation-delay: var(--fi, 0ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* Logo grid */
.logo-grid { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.logo-tile { --accent: var(--purple); border-radius: var(--radius-sm); background: var(--tile, var(--surface)); position: relative; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; display: grid; }
.logo-tile > a { display: grid; color: inherit; text-decoration: none; }
.logo-tile img { grid-area: 1 / 1; width: 78%; height: 78%; object-fit: contain; place-self: center; transition: transform .6s var(--ease-out); }
.logo-tile { transition: background-color .45s; }
.logo-tile__colour { opacity: 0; }
.logo-tile.has-colour:hover, .logo-tile.has-colour:focus-within, .logo-tile.has-colour.is-lit { background: #fff; }
.logo-tile.has-colour .logo-tile__white, .logo-tile.has-colour .logo-tile__colour { transition: opacity .45s, transform .6s var(--ease-out); }
.logo-tile.has-colour:hover .logo-tile__white, .logo-tile.has-colour:focus-within .logo-tile__white, .logo-tile.has-colour.is-lit .logo-tile__white { opacity: 0; }
.logo-tile.has-colour:hover .logo-tile__colour, .logo-tile.has-colour:focus-within .logo-tile__colour, .logo-tile.has-colour.is-lit .logo-tile__colour { opacity: 1; }
.logo-tile.has-colour:hover::before, .logo-tile.has-colour:focus-within::before, .logo-tile.has-colour.is-lit::before { opacity: 0; }
.logo-tile.has-colour:hover img, .logo-tile.has-colour:focus-within img, .logo-tile.has-colour.is-lit img { transform: translateY(-9%) scale(.86); }
.logo-tile.has-colour:hover span, .logo-tile.has-colour:focus-within span, .logo-tile.has-colour.is-lit span { background: none; color: #16121f; }
.logo-tile.has-colour:hover span small, .logo-tile.has-colour:focus-within span small, .logo-tile.has-colour.is-lit span small { color: #6b6578; }
.logo-tile > a > img { grid-area: 1 / 1; }
.logo-tile:hover img { transform: scale(1.06); }
.logo-tile span { grid-area: 1 / 1; align-self: end; padding: 12px 14px; font-size: 13px; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); opacity: 0; transform: translateY(8px); transition: all .35s var(--ease-out); }
.logo-tile span small { display: block; font-weight: 400; color: var(--ink-2); }
.logo-tile:hover span, .logo-tile:focus-within span, .logo-tile.is-lit span { opacity: 1; transform: none; }

/* ── Services ─────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; min-height: 290px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .4s, transform .6s var(--ease-out), background .4s; }
.svc:hover { border-color: rgba(166, 107, 255, .5); transform: translateY(-6px); }
.svc__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(129, 39, 255, .15); color: var(--purple-3); margin-bottom: auto; transition: background .4s, color .4s, transform .6s var(--ease-out); }
.svc__icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.svc:hover .svc__icon { background: var(--purple); color: #fff; transform: rotate(-8deg) scale(1.05); }
.svc__num { position: absolute; top: 26px; right: 24px; font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.svc h3 { font-size: 24px; margin: 18px 0 0; }
.svc p { color: var(--ink-2); font-size: 15px; margin: 0; }
.svc__more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--purple-3); margin-top: 8px; }
@media (max-width: 1150px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr 1fr; } .svc { min-height: 0; } }
@media (max-width: 480px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-rows { display: grid; gap: 18px; }
.svc-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(20px, 4vw, 56px); padding: clamp(24px, 3.5vw, 44px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); align-items: start; position: relative; }
.svc-row__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.svc-row__head .svc__icon { margin: 0; }
.svc-row__head .svc__num { top: clamp(24px, 3.5vw, 44px); right: clamp(24px, 3.5vw, 44px); }
.svc-row h2 { font-size: clamp(28px, 3vw, 40px); margin: 8px 0 0; }
.svc-row h2 a { text-decoration: none; }
.svc-row__head p { color: var(--ink-2); margin: 0 0 6px; }
.svc-row__list { margin: 0; color: var(--ink-2); padding-top: 70px; }
.svc-row__work { display: grid; gap: 10px; padding-top: 70px; }
.mini { position: relative; display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: border-color .3s; font-weight: 600; font-size: 15px; }
.mini:hover { border-color: var(--purple-2); }
.mini img { width: 72px; height: 46px; object-fit: cover; object-position: top; border-radius: 7px; flex: none; }
.mini img.mini__logo { object-fit: contain; background: var(--tile, var(--surface)); padding: 6px; }
@media (max-width: 960px) { .svc-row { grid-template-columns: 1fr; } .svc-row__list, .svc-row__work { padding-top: 0; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature__num { font: 600 13px var(--body); color: var(--purple-3); letter-spacing: .12em; }
.feature h2 { font-size: 22px; margin: 18px 0 10px; letter-spacing: -.015em; }
.feature p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.other-svcs { display: flex; flex-wrap: wrap; gap: 10px; }
.other-svc { --accent: var(--purple); display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-weight: 600; transition: border-color .3s, background .3s; }
.other-svc:hover { border-color: var(--purple-2); }
.other-svc .icon:first-child { color: var(--purple-3); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s; }
.faq__item[open] { border-color: rgba(166, 107, 255, .4); }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; font-weight: 600; font-size: 17px; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: absolute; right: 20px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: rgba(129, 39, 255, .18); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 7px; right: 7px; top: 11px; height: 2px; background: var(--purple-3); transition: transform .3s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__a { padding: 0 22px 18px; color: var(--ink-2); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* Process */
.steps { list-style: none; margin: 56px 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: linear-gradient(90deg, var(--purple), var(--pink)); transform-origin: left; transform: scaleX(var(--progress, 0)); transition: transform .2s linear; }
.steps::after { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: var(--line); z-index: -1; }
.step__num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 2px solid var(--purple); font: 650 20px var(--display); margin-bottom: 22px; position: relative; box-shadow: 0 0 0 8px var(--bg); }
.step h3 { font-size: 24px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 6px; }
  .steps::before, .steps::after { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .steps::before { transform: scaleY(var(--progress, 0)); transform-origin: top; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
  .step__num { grid-row: span 2; }
}
.waas { --accent: var(--pink); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); border: 1px solid rgba(166, 107, 255, .3); background: linear-gradient(120deg, rgba(129, 39, 255, .18), rgba(255, 79, 216, .07) 60%, transparent), var(--surface); }
.waas h3 { font-size: clamp(26px, 3vw, 36px); }
.waas p { color: var(--ink-2); max-width: 680px; margin: 0; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.quote { --accent: var(--purple); margin: 0; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote__mark { width: 34px; height: 34px; fill: var(--purple); stroke: none; opacity: .9; margin-bottom: 18px; }
.quote blockquote { margin: 0 0 22px; font: 500 clamp(19px, 1.8vw, 22px)/1.4 var(--display); letter-spacing: -.01em; }
.quote blockquote p { margin: 0; }
.quote figcaption { margin-top: auto; color: var(--muted); font-size: 14px; font-weight: 600; }
.quote figcaption a { color: var(--purple-3); text-decoration: none; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ── Inner page hero ──────────────────────────── */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(50px, 8vw, 110px)) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.page-hero__glow { position: absolute; z-index: -1; width: 900px; height: 600px; right: -200px; top: -200px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 35%, transparent), transparent); filter: blur(30px); opacity: .8; animation: glow-drift 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glow-drift { to { transform: translate(-120px, 80px) scale(1.15); } }
.page-hero__title { font-size: clamp(42px, 7vw, 104px); letter-spacing: -.045em; font-weight: 700; max-width: 15ch; line-height: .98; }
.page-hero__lead { font-size: clamp(18px, 1.8vw, 22px); color: var(--ink-2); max-width: 720px; margin-bottom: 30px; }
.page-hero--center { min-height: 80svh; display: flex; align-items: center; text-align: center; }
.page-hero--center .page-hero__inner > * { margin-left: auto; margin-right: auto; }
.page-hero--center .btn-row { justify-content: center; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 28px; font-size: 13px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { text-decoration: none; color: var(--ink-2); }
.breadcrumbs a:hover { color: #fff; }

/* ── Project page ─────────────────────────────── */
.project-hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 6vw, 90px)) 0 clamp(30px, 4vw, 50px); overflow: hidden; }
.project-hero__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: end; }
.project-hero__title { font-size: clamp(46px, 8vw, 120px); letter-spacing: -.05em; line-height: .95; font-weight: 700; margin-bottom: 20px; }
.project-hero__tagline { font: 500 clamp(20px, 2.2vw, 28px)/1.3 var(--display); color: var(--ink-2); max-width: 30ch; margin: 0; }
.project-hero__side { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.draft-note { display: inline-block; background: #3a2a05; color: #ffd27a; padding: 6px 12px; border-radius: 8px; font-size: 14px; }
@media (max-width: 860px) { .project-hero__grid { grid-template-columns: 1fr; } }

.stage { position: relative; padding: clamp(20px, 3vw, 40px) 0 clamp(40px, 6vw, 80px); }
.stage::before { content: ""; position: absolute; inset: 20% 0 0; background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); pointer-events: none; z-index: -1; }
.devices { position: relative; padding-bottom: 6%; }
.laptop { width: 84%; position: relative; }
.laptop__lid { background: linear-gradient(#2a2633, #17141d); border-radius: 22px 22px 6px 6px; padding: 1.4% 1.4% 2.4%; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(0, 0, 0, .6); position: relative; }
.laptop__lid::before { content: ""; position: absolute; top: .55%; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #0b0a0f; box-shadow: inset 0 0 0 1px #2d2a35; }
.laptop__screen { border-radius: 8px; overflow: hidden; background: #000; }
.laptop__screen .browser__bar span { transform: none; }
.laptop__base { position: relative; height: 0; padding-bottom: 3.2%; margin: 0 -7%; background: linear-gradient(#cfcbd8, #8d8899 60%, #5f5b69); border-radius: 2px 2px 18px 18px / 2px 2px 100% 100%; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.laptop__base span { position: absolute; left: 50%; top: 0; width: 15%; height: 45%; margin-left: -7.5%; background: linear-gradient(#9d99a8, #b8b4c2); border-radius: 0 0 12px 12px; }
.viewport { position: relative; width: 100%; overflow: hidden; background: #fff; }
.laptop .viewport, .laptop .shot { aspect-ratio: 1440 / 900; }
.viewport iframe { position: absolute; left: 0; top: 0; border: 0; max-width: none; transform-origin: 0 0; transform: scale(var(--s, .5)); background: #fff; }
.shot { position: relative; overflow-y: auto; overscroll-behavior: contain; background: #0e0c14; scrollbar-width: thin; scrollbar-color: rgba(129, 39, 255, .7) transparent; }
.shot img { width: 100%; }
.shot::-webkit-scrollbar { width: 6px; }
.shot::-webkit-scrollbar-thumb { background: rgba(129, 39, 255, .7); border-radius: 6px; }
.shot--empty { display: grid; place-items: center; font: 650 28px var(--display); color: var(--muted); background: radial-gradient(circle, var(--surface-2), #0e0c14); }
.phone { position: absolute; right: 0; bottom: 0; width: 22%; z-index: 2; }
.phone__frame { position: relative; border-radius: 15% / 7%; padding: 4.2%; background: linear-gradient(145deg, #3a3542, #121016); border: 1px solid rgba(255, 255, 255, .14); box-shadow: -30px 30px 90px -20px rgba(0, 0, 0, .9), inset 0 0 0 2px #050407; }
.phone__island { position: absolute; z-index: 3; top: 5.4%; left: 50%; width: 30%; height: 3.4%; margin-left: -15%; background: #000; border-radius: 999px; pointer-events: none; }
.phone__screen { position: relative; border-radius: 11% / 5.2%; overflow: hidden; background: #000; padding-top: 11%; }
.phone__screen::before { content: "9:41"; position: absolute; left: 10%; top: 3.2%; font: 600 clamp(8px, 1vw, 12px) var(--body); color: #fff; }
.phone .viewport, .phone .shot { aspect-ratio: 390 / 800; }
.phone .shot { scrollbar-width: none; }
.phone .shot::-webkit-scrollbar { display: none; }
.devices__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 50px); width: 76%; }
.devices__hint { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: 14px; }
.devices__hint .icon { color: var(--purple-3); animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-4px); } 80% { transform: translateY(2px); } }
.devices__open { display: flex; gap: 8px; flex-wrap: wrap; }
.devices--live .laptop__screen, .devices--live .phone__screen { box-shadow: 0 0 0 1px rgba(255, 255, 255, .04); }
@media (max-width: 760px) {
  .devices { padding-bottom: 0; display: flex; flex-direction: column; align-items: center; }
  .laptop { width: 100%; }
  .laptop__base { margin: 0 -4%; }
  .phone { position: relative; width: min(70%, 300px); margin-top: 40px; }
  .devices__bar { width: 100%; justify-content: center; text-align: center; }
}

.project-body__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.project-facts { position: sticky; top: calc(var(--header-h) + 24px); padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.project-facts h2 { font-size: 22px; }
.project-facts .ticks { font-size: 15.5px; color: var(--ink-2); }
.project-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; }
.project-facts dt { color: var(--muted); }
.project-facts dd { margin: 0; }
.project-facts dd a { color: var(--purple-3); text-decoration: none; }
@media (max-width: 860px) { .project-body__grid { grid-template-columns: 1fr; } .project-facts { position: static; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; align-items: start; }
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); position: relative; }
.gallery__item img { width: 100%; height: auto; transition: transform .8s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; font-size: 13px; border-radius: 999px; background: rgba(11, 9, 18, .7); backdrop-filter: blur(8px); }
.gallery__item--logo { background: var(--tile, var(--surface)); display: grid; place-items: center; aspect-ratio: 4 / 3; grid-column: span 2; align-self: stretch; }
.gallery__item--logo img { width: 70%; height: 70%; object-fit: contain; aspect-ratio: auto; }
@media (max-width: 700px) { .gallery__item--logo { grid-column: auto; } }
.gallery__item--logo:only-child { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
.gallery__item--logo:only-child img { width: auto; max-width: 60%; height: 60%; }

.bigquote { margin: 0 auto; max-width: 980px; text-align: center; }
.bigquote .quote__mark { margin: 0 auto 24px; width: 48px; height: 48px; fill: var(--accent); stroke: none; }
.bigquote blockquote { margin: 0 0 20px; font: 500 clamp(26px, 3.6vw, 46px)/1.25 var(--display); letter-spacing: -.02em; }
.bigquote figcaption { color: var(--muted); font-weight: 600; }

.next-project { border-top: 1px solid var(--line); }
.next-project__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: clamp(40px, 6vw, 70px); padding-bottom: clamp(40px, 6vw, 70px); }
.next-project a { text-decoration: none; }
.next-project__prev { display: inline-flex; align-items: center; gap: 14px; color: var(--ink-2); }
.next-project__prev small, .next-project__next small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.next-project__next { text-align: right; display: grid; justify-items: end; gap: 4px; }
.next-project__next strong { font: 700 clamp(34px, 6vw, 84px)/1 var(--display); letter-spacing: -.045em; background: linear-gradient(90deg, var(--ink) 50%, var(--purple-2) 50%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position .8s var(--ease-out); }
.next-project__next:hover strong { background-position: -100% 0; }
.next-project__arrow { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--purple); transition: transform .5s var(--ease-out); }
.next-project__next:hover .next-project__arrow { transform: translateX(8px) rotate(-45deg); }
@media (max-width: 600px) { .next-project__prev { display: none; } .next-project__inner { justify-content: flex-end; } }

/* ── About ────────────────────────────────────── */
.about__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.about__card { --accent: var(--purple); position: sticky; top: calc(var(--header-h) + 24px); padding: 34px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(129, 39, 255, .22), transparent 60%), var(--surface); border: 1px solid var(--line-2); }
.about__card img { width: 200px; margin-bottom: 28px; }
.about__card dl { display: grid; gap: 18px; margin: 0 0 20px; }
.about__card dt { font: 650 40px/1 var(--display); letter-spacing: -.04em; }
.about__card dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } .about__card { position: static; } }

/* ── Contact & forms ──────────────────────────── */
.contact__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: start; }
.contact__form { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact__side { display: grid; gap: 12px; position: sticky; top: calc(var(--header-h) + 24px); }
.contact-card { --accent: var(--purple); display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .3s; }
.contact-card:hover { border-color: var(--purple-2); }
.contact-card > .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(129, 39, 255, .16); color: var(--purple-3); }
.contact-card small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-card span { font-weight: 600; word-break: break-word; }
.contact__social { display: flex; gap: 8px; padding-top: 6px; }
.contact__social a, .footer-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background .3s, border-color .3s; }
.contact__social a:hover, .footer-social a:hover { background: var(--purple); border-color: var(--purple); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } .contact__side { position: static; } }

.enquiry { display: grid; gap: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact__grid > *, .enquiry > * { min-width: 0; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; transition: border-color .25s, box-shadow .25s; }
.field select { appearance: none; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a8ff' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple-2); box-shadow: 0 0 0 4px rgba(129, 39, 255, .2); }
.field [aria-invalid="true"] { border-color: #ff5d8a; }
.field__error { color: #ff8aab; font-size: 14px; }
.form-alert { margin: 0; padding: 14px 16px; border-radius: 12px; background: rgba(255, 93, 138, .12); border: 1px solid rgba(255, 93, 138, .35); color: #ffc2d3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font-size: 15px; transition: all .2s; user-select: none; }
.chip span .icon { width: 16px; height: 16px; color: var(--purple-3); }
.chip:hover span { border-color: var(--purple-2); }
.chip input:checked + span { background: var(--purple); border-color: var(--purple); color: #fff; }
.chip input:checked + span .icon { color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--purple-2); outline-offset: 2px; }
.enquiry__send { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.enquiry__send p { margin: 0; font-size: 14px; max-width: 360px; }

.article { max-width: 860px; }

/* ── Footer ───────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.footer-cta { padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 100px); border-bottom: 1px solid var(--line); position: relative; }
.footer-cta::before { content: ""; position: absolute; left: 50%; top: 30%; width: 900px; height: 500px; translate: -50% 0; background: radial-gradient(closest-side, rgba(129, 39, 255, .28), transparent); filter: blur(40px); pointer-events: none; }
.footer-cta__big { position: relative; display: block; width: fit-content; text-decoration: none; font: 700 clamp(52px, 11vw, 180px)/.92 var(--display); letter-spacing: -.055em; margin: 10px 0 50px; }
.footer-cta__line { display: block; }
.footer-cta__big em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-cta__big .dot { width: .16em; height: .16em; }
.footer-cta__arrow { display: inline-grid; place-items: center; vertical-align: .08em; width: .5em; height: .5em; margin-left: .22em; border-radius: 50%; background: var(--purple); transform: rotate(-45deg); transition: transform .6s var(--ease-out), background .3s; }
.footer-cta__arrow .icon { width: 50%; height: 50%; stroke-width: 2.4; }
.footer-cta__big:hover .footer-cta__arrow { transform: rotate(0) translateX(.08em); background: var(--pink); }
.footer-cta__contact { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-cta__contact a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; color: var(--ink-2); }
.footer-cta__contact a:hover { color: #fff; }
@media (max-width: 700px) { .footer-cta__arrow { display: none; } }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-top: 70px; padding-bottom: 50px; }
.footer-col--brand p { color: var(--muted); font-size: 15px; max-width: 320px; margin: 20px 0; }
.footer-logo img { width: 170px; }
.footer-social { display: flex; gap: 8px; }
.footer-col__title { font: 600 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.nap { font-style: normal; color: var(--ink-2); font-size: 15px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; font-size: 13px; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-col--brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(5, 4, 9, .9); backdrop-filter: blur(6px); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 12px; }
.lightbox button { position: fixed; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: #fff; cursor: pointer; font-size: 22px; }

/* View transitions between project cards and project pages */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__list[aria-hidden] { display: none; }
  .marquee__list { flex-wrap: wrap; justify-content: center; row-gap: 24px; }
  .js .reveal, [data-split] .w > span { opacity: 1; transform: none; }
  .pcard:hover .pcard__shot, .pcard:hover .pcard__phone-screen img { transform: none; }
}

/* ── Pay monthly ──────────────────────────────── */
.hero__offer { display: inline-flex; align-items: center; gap: 10px; margin: -14px 0 30px; padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid rgba(166, 107, 255, .4); background: rgba(129, 39, 255, .12); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; transition: border-color .3s, background .3s; }
.hero__offer:hover { border-color: var(--purple-2); background: rgba(129, 39, 255, .22); }
.hero__offer-text { min-width: 0; }
.hero__offer .icon { flex: none; }
.hero__offer-tag { flex: none; padding: 5px 11px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hero__offer .icon { transition: transform .3s var(--ease-out); }
.hero__offer:hover .icon { transform: translateX(3px); }
.js .hero__offer { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), border-color .3s, background .3s; }
.js .hero.is-ready .hero__offer { opacity: 1; transform: none; transition-delay: .52s; }
@media (max-width: 899px) { .hero__offer { margin-top: -10px; border-radius: 18px; font-size: 14px; line-height: 1.35; padding-right: 12px; } }

.pay { background: radial-gradient(900px 500px at 85% 30%, rgba(129, 39, 255, .16), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.pay__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.pay__text { color: var(--ink-2); }
.pay__includes { grid-template-columns: 1fr 1fr; color: var(--ink); }
.pay .btn-row { margin-top: 26px; }
.pay__plans .plans { grid-template-columns: 1fr; gap: 12px; }
.pay__plans .plan { display: grid; grid-template-columns: 1fr 1.25fr; grid-template-areas: "label chart" "price chart" "then axis" "note note"; column-gap: 24px; padding: 22px 24px; }
.pay__plans .plan__label { grid-area: label; }
.pay__plans .plan__price { grid-area: price; }
.pay__plans .plan__then { grid-area: then; }
.pay__plans .plan__chart { grid-area: chart; align-self: end; height: 90px; margin: 0; }
.pay__plans .plan__axis { grid-area: axis; }
.pay__plans .plan__note { grid-area: note; }
@media (max-width: 1000px) { .pay__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .pay__includes { grid-template-columns: 1fr; }
  .pay__plans .plan { grid-template-columns: 1fr; grid-template-areas: "label" "price" "then" "chart" "axis" "note"; }
  .pay__plans .plan__chart { margin-top: 14px; }
}

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { --accent: var(--purple); padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.plan__label { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-3); }
.plan__price { margin: 0; color: var(--ink-2); font-size: 16px; }
.plan__price span { font: 700 clamp(40px, 4.4vw, 54px)/1 var(--display); letter-spacing: -.04em; color: var(--ink); margin-right: 4px; }
.plan__then { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.plan__then strong { color: var(--ink); }
.plan__chart { display: flex; align-items: flex-end; gap: 4px; height: 110px; margin: 24px 0 8px; }
.plan__bar { flex: 1; height: calc(var(--h) * 100%); border-radius: 4px 4px 2px 2px; background: rgba(255, 255, 255, .14); transform-origin: bottom; }
.plan__bar.is-build { background: linear-gradient(180deg, var(--pink), var(--purple)); box-shadow: 0 0 18px -4px rgba(129, 39, 255, .7); }
.js .plan .plan__bar { transform: scaleY(0); transition: transform .7s var(--ease-out); transition-delay: calc(var(--m) * 45ms + 200ms); }
.js .plan.is-in .plan__bar { transform: none; }
.plan__axis { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.plan__note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.plans__small { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.phases { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.phase { --accent: var(--purple); padding: clamp(26px, 3.5vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.phase--base { border-color: rgba(166, 107, 255, .35); background: linear-gradient(160deg, rgba(129, 39, 255, .18), transparent 60%), var(--surface); }
.phase__num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--purple); font: 650 20px var(--display); margin-bottom: 20px; }
.phase h2 { font-size: clamp(26px, 3vw, 34px); }
.phase p { color: var(--ink-2); }
.phase .ticks { margin: 0; }
.phases__arrow { display: grid; place-items: center; color: var(--purple-3); }
.phases__arrow .icon { width: 34px; height: 34px; }
@media (max-width: 800px) { .phases { grid-template-columns: 1fr; } .phases__arrow .icon { transform: rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .js .plan .plan__bar { transform: none; } }

.base-plan { --accent: var(--purple); margin: 4px 0 18px; padding: 20px 22px; border-radius: var(--radius-sm); border: 1px solid rgba(166, 107, 255, .35); background: linear-gradient(140deg, rgba(129, 39, 255, .16), transparent 70%), var(--surface); }
.base-plan__price { margin: 0 0 10px; color: var(--ink-2); }
.base-plan__price span { font: 700 40px/1 var(--display); letter-spacing: -.04em; color: var(--ink); margin-right: 4px; }
.base-plan__inc { margin: 0 0 12px; color: var(--ink); }
.base-plan__add { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.base-plan__extras { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.base-plan__extras li { font-size: 14px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.phase .base-plan { margin-bottom: 0; }

/* WhatsApp: the logo stands in for the word (and the number isn't shown) */
.icon--fill { fill: currentColor; stroke: none; }
.wa-btn { display: inline-flex !important; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.wa-btn__logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 8px 24px -10px rgba(37, 211, 102, .8); transition: transform .3s var(--ease-out); flex: none; }
.wa-btn__logo .icon { width: 20px; height: 20px; }
.wa-btn:hover { color: #fff; }
.wa-btn:hover .wa-btn__logo { transform: scale(1.08); }
.footer-cta__contact { align-items: center; }
.contact-card--wa > .icon { background: #25d366; color: #fff; padding: 10px; }

/* Project page logo tile: same colour swap on hover (images stacked in one grid cell) */
.gallery__item--logo.has-colour { transition: background-color .45s; }
.gallery__item--logo.has-colour img { grid-area: 1 / 1; transition: opacity .45s, transform .8s var(--ease-out); }
.gallery__item--logo .logo-tile__colour { opacity: 0; }
.gallery__item--logo.has-colour:hover, .gallery__item--logo.has-colour.is-lit { background: #fff; }
.gallery__item--logo.has-colour:hover::before, .gallery__item--logo.has-colour.is-lit::before { opacity: 0; }
.gallery__item--logo.has-colour:hover .logo-tile__white, .gallery__item--logo.has-colour.is-lit .logo-tile__white { opacity: 0; }
.gallery__item--logo.has-colour:hover .logo-tile__colour, .gallery__item--logo.has-colour.is-lit .logo-tile__colour { opacity: 1; }
