/* Layout: bright editorial pages with soft colour blobs, a live-rankings hero, deep navy gradient bands with glass cards, lavender sunburst as signature */
:root {
  --navy: #335280;
  --ink: #0F293C;
  --royal: #023584;
  --peri: #819AC2;
  --mist: #C0CDE0;
  --wash: #EEF2F9;
  --line: #D3DCEA;
  --lav: #B67FD3;
  --lav-deep: #7E3FA6;
  --coral: #FF6550;
  --paper: #FFFFFF;
  --bg: #F4F6FA;
  --text: #1B2F45;
  --muted: #34495F;
  --on-dark: #F3F6FB;
  --on-dark-soft: #DCE4F0;
  --display: "Jost", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step-0: 1.125rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem);
  --step-4: clamp(2.8rem, 1.2rem + 6vw, 6.4rem);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1200px;
  --grad-dark: radial-gradient(60% 80% at 85% 10%, rgba(182,127,211,.35), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(255,101,80,.18), transparent 60%), linear-gradient(140deg, #0F293C 0%, #1D3E6E 55%, #335280 100%);
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: var(--step-0); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
img, svg, canvas { max-width: 100%; }
a { color: var(--royal); text-underline-offset: 3px; }
a:hover { color: var(--lav-deep); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); font-weight: 600; }
h2 { font-size: var(--step-3); font-weight: 600; }
h3 { font-size: var(--step-2); font-weight: 500; line-height: 1.15; }
h4 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; max-width: 65ch; }
strong { color: var(--ink); }
.wrap { position: relative; max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.stack { display: grid; gap: 1.1rem; align-content: start; }
.stack-lg { display: grid; gap: 2.5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--royal); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--lav), var(--coral)); border-radius: 2px; }
.eyebrow:has(.pulse)::before { display: none; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255,101,80,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,101,80,.55); } 70% { box-shadow: 0 0 0 12px rgba(255,101,80,0); } 100% { box-shadow: 0 0 0 0 rgba(255,101,80,0); } }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 58ch; line-height: 1.6; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 16px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(244,246,250,.85); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(15,41,60,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 500; font-size: 1.45rem; }
.brand img { width: 48px; height: 48px; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.05); }
.nav { display: flex; align-items: center; gap: .3rem; background: #fff; border-radius: 999px; padding: .3rem; }
.nav a { font-size: .95rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: .45rem .95rem; border-radius: 999px; transition: background .25s, color .25s; }
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.8); }
.nav a[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: 0 2px 10px rgba(15,41,60,.08); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 600; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: .4rem 1rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: var(--gutter-r); top: calc(100% + 8px); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; display: grid; gap: .7rem; min-width: 230px; box-shadow: 0 24px 50px rgba(15,41,60,.18); }
.menu nav a { color: var(--ink); text-decoration: none; font-size: 1.05rem; font-weight: 600; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: .55rem; font-family: var(--body); font-weight: 600; font-size: 1rem; text-decoration: none; border-radius: 999px; padding: .85rem 1.5rem; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s, color .3s, background .3s; }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, var(--royal), var(--lav-deep)); transform: translateX(-101%); transition: transform .45s var(--ease); z-index: -1; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(2,53,132,.28); }
.btn:hover::before { transform: translateX(0); }
.btn b { transition: transform .3s var(--ease); }
.btn:hover b { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost::before { background: var(--wash); }
.btn-ghost:hover { color: var(--ink); box-shadow: none; }
.btn-light, .on-navy .btn:not(.btn-ghost) { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light::before, .on-navy .btn:not(.btn-ghost)::before { background: var(--mist); }
.btn-light:hover, .on-navy .btn:not(.btn-ghost):hover { color: var(--ink); }
.on-navy .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.on-navy .btn-ghost::before { background: rgba(255,255,255,.14); }
.on-navy .btn-ghost:hover { color: #fff; }
.btn-coral { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-coral::before { background: #E9452F; }
.row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* Colour blobs */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { width: 520px; height: 520px; background: #D9C2EA; right: -120px; top: -140px; }
.blobs i:nth-child(2) { width: 420px; height: 420px; background: #C9D7EE; left: -160px; bottom: -180px; animation-delay: -6s; }
.blobs i:nth-child(3) { width: 260px; height: 260px; background: #FFD3CB; right: 30%; bottom: -120px; animation-delay: -11s; opacity: .45; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.08); } 100% { transform: translate(-30px,25px) scale(.95); } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero .stack { gap: 1.6rem; }
.headline span { display: inline-block; }
.headline em { font-style: normal; background: linear-gradient(100deg, var(--royal) 0%, var(--lav-deep) 55%, var(--coral) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite alternate; }
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.js .headline span { opacity: 0; transform: translateY(40px) rotate(2deg); animation: rise .9s var(--ease) forwards; }
.js .headline span:nth-child(2) { animation-delay: .12s; }
.js .headline span:nth-child(3) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .95rem; font-weight: 600; color: var(--muted); }
.hero-meta span::before { content: "✓"; color: var(--lav-deep); margin-right: .4rem; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-visual .sunburst { position: absolute; width: 112%; max-width: 560px; aspect-ratio: 1; animation: spin 80s linear infinite; opacity: .9; }
@keyframes spin { to { transform: rotate(360deg); } }
.dash { position: relative; width: min(100%, 380px); background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.9); border-radius: 22px; box-shadow: 0 30px 60px rgba(15,41,60,.18), 0 2px 0 rgba(255,255,255,.9) inset; overflow: hidden; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(-.5deg); } }
.dash-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: var(--wash); border-bottom: 1px solid var(--line); }
.dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--mist); }
.dash-bar i:first-child { background: var(--coral); }
.dash-bar span { margin-left: auto; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dash-body { padding: 1.1rem 1.2rem 1.2rem; display: grid; gap: .8rem; }
.dash-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.dash-head small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dash-head strong { font-size: 1rem; }
.dash-head .pos strong { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--royal); }
.chart { width: 100%; height: 120px; display: block; }
.chart .line { stroke-dasharray: 420; stroke-dashoffset: 0; }
.js .chart .line { stroke-dashoffset: 420; animation: draw 2.2s .5s var(--ease) forwards; }
.js .chart .area { opacity: 0; animation: fadein 1s 1.6s forwards; }
.js .chart .dot { opacity: 0; animation: pop .5s 2.5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }
.chart .dot { transform-origin: 300px 8px; transform-box: view-box; }
.dash-foot { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); font-weight: 600; }
.dash-foot .up { color: #12805C; }
.chip { position: absolute; display: flex; align-items: center; gap: .5rem; background: #fff; border-radius: 999px; padding: .55rem 1rem; font-size: .9rem; font-weight: 600; color: var(--ink); box-shadow: 0 14px 30px rgba(15,41,60,.16); white-space: nowrap; }
.chip b { display: grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .35rem; border-radius: 999px; background: var(--lav); color: #fff; font-size: .8rem; }
.chip-a { top: 8%; left: -4%; animation: float 6s -2s ease-in-out infinite; }
.chip-b { bottom: 8%; right: -2%; animation: float 8s -4s ease-in-out infinite; }
.chip-b b { background: var(--coral); }
.page-hero .wrap { grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); }
.page-hero h1 { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.8rem); }
.page-hero .sunburst { width: 100%; aspect-ratio: 1; animation: spin 90s linear infinite; }
.crumbs { font-size: .92rem; color: var(--muted); font-weight: 600; }
.crumbs a { color: var(--muted); }

/* Marquee */
.marquee { overflow: hidden; background: var(--ink); color: #fff; padding-block: 1rem; transform: rotate(-1.2deg); margin-inline: -20px; margin-block: -.4rem 1rem; position: relative; z-index: 2; }
.track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.track span { font-family: var(--display); font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); font-weight: 500; padding-inline: 1.6rem; white-space: nowrap; }
.track span::after { content: "✦"; color: var(--lav); margin-left: 3.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Bands */
.band { position: relative; padding-block: clamp(3.5rem, 8vw, 7rem); }
.band-wash { background: #fff; }
.on-navy { background: var(--grad-dark); color: var(--on-dark); }
.on-navy h2, .on-navy h3, .on-navy h4, .on-navy strong { color: #fff; }
.on-navy .eyebrow { color: var(--on-dark-soft); }
.on-navy .lead, .on-navy p { color: var(--on-dark-soft); }
.on-navy a:not(.btn) { color: #fff; }
.band.on-navy { border-radius: clamp(24px, 4vw, 48px); margin-inline: clamp(0px, 1.2vw, 16px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.answer { font-size: var(--step-1); line-height: 1.6; color: var(--ink); padding: 1.3rem 1.5rem; background: linear-gradient(135deg, rgba(182,127,211,.14), rgba(192,205,224,.25)); border-radius: 18px; border-left: 4px solid var(--lav); }
.on-navy .answer { color: #fff; background: rgba(255,255,255,.08); }

/* Services bento */
.svc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.svc { position: relative; display: grid; gap: 1rem; align-content: start; padding: 1.8rem; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: inherit; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.svc::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(182,127,211,.35), transparent 70%); opacity: 0; transition: opacity .4s, transform .6s var(--ease); }
.svc:hover { transform: translateY(-6px); border-color: var(--lav); box-shadow: 0 24px 48px rgba(15,41,60,.12); }
.svc:hover::after { opacity: 1; transform: scale(1.2); }
.svc:nth-child(1) { grid-column: span 2; background: var(--grad-dark); border-color: transparent; color: var(--on-dark); }
.svc:nth-child(1) h3 { color: #fff; }
.svc:nth-child(1) p { color: var(--on-dark-soft); }
.svc:nth-child(1) .more { color: #fff; }
.svc:nth-child(1) .tag { background: rgba(255,255,255,.15); color: #fff; }
.svc:nth-child(6):last-child { grid-column: 1 / -1; background: linear-gradient(120deg, #F3EAF9, var(--wash)); border-color: transparent; }
.svc .tag { justify-self: start; font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .12em; color: var(--lav-deep); background: rgba(182,127,211,.16); padding: .35rem .8rem; border-radius: 999px; }
.svc > div { display: grid; gap: .5rem; }
.svc p { color: var(--muted); font-size: 1.02rem; }
.svc .more { margin-top: .4rem; font-weight: 600; color: var(--royal); font-size: .98rem; }
.svc .more::after { content: " →"; display: inline-block; transition: transform .3s var(--ease); }
.svc:hover .more::after { transform: translateX(5px); }

/* Results */
.results { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.result { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 22px; padding: 1.8rem; display: grid; gap: .7rem; align-content: start; backdrop-filter: blur(6px); transition: transform .4s var(--ease), background .4s; }
.result:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); }
.result .fig { font-family: var(--display); font-size: clamp(3rem, 2rem + 3vw, 4.6rem); font-weight: 600; line-height: .95; background: linear-gradient(120deg, #fff 30%, #E8D6F4); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.result .what { font-weight: 600; color: #fff; font-size: 1.1rem; }
.result p { font-size: 1rem; color: var(--on-dark-soft); }
.result .who { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: .85; }

/* Case studies */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; padding: 2.4rem; border-radius: 26px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 1.4rem; transition: box-shadow .4s, transform .4s var(--ease); }
.case:hover { box-shadow: 0 24px 50px rgba(15,41,60,.1); transform: translateY(-3px); }
.case p { color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .9rem; margin: 0; align-content: start; }
.metrics div { background: var(--wash); border-radius: 16px; padding: 1.1rem 1.2rem; }
.metrics dt { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.metrics dd { margin: .2rem 0 0; font-family: var(--display); font-size: 2.2rem; font-weight: 600; color: var(--royal); font-variant-numeric: tabular-nums; line-height: 1.1; }

/* Portfolio */
.pf-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.pf-chip { font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 999px; padding: .5rem 1.1rem; transition: background .25s, color .25s, transform .25s var(--ease); }
.pf-chip:hover { transform: translateY(-2px); }
.pf-chip.on { background: var(--ink); color: #fff; }
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.pf-card { display: grid; grid-template-rows: auto 1fr; border-radius: 24px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s, opacity .35s; }
.pf-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(15,41,60,.14); }
.pf-card[hidden] { display: none !important; }
.pf-thumb { position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center; overflow: hidden; }
.pf-thumb::before { content: ""; position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.14) 0 4deg, transparent 4deg 12deg); transition: transform 1.2s var(--ease); }
.pf-card:hover .pf-thumb::before { transform: rotate(25deg) scale(1.1); }
.pf-thumb span { position: relative; font-family: var(--display); font-weight: 600; font-size: 3.4rem; letter-spacing: .02em; color: #fff; transition: transform .5s var(--ease); }
.pf-card:hover .pf-thumb span { transform: scale(1.12); }
.t0 { background: linear-gradient(135deg, #0F293C, #335280); }
.t1 { background: linear-gradient(135deg, #7E3FA6, #B67FD3); }
.t2 { background: linear-gradient(135deg, #023584, #819AC2); }
.t3 { background: linear-gradient(135deg, #E9452F, #FF8A6E); }
.t4 { background: linear-gradient(135deg, #1D3E6E, #7E3FA6); }
.t5 { background: linear-gradient(135deg, #335280, #FF6550); }
.pf-body { padding: 1.5rem 1.6rem 1.7rem; display: grid; gap: .55rem; align-content: start; }
.pf-meta { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lav-deep); }
.pf-body h3 { font-size: 1.45rem; }
.pf-body p { color: var(--muted); font-size: 1rem; }
.pf-body .pf-result { color: var(--ink); font-weight: 600; background: rgba(182,127,211,.14); border-radius: 12px; padding: .5rem .8rem; justify-self: start; font-size: .95rem; }
.pf-link { justify-self: start; font-weight: 600; margin-top: .2rem; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1rem; counter-reset: s; position: relative; }
.steps li { counter-increment: s; padding: 1.5rem 1.3rem; border-radius: 22px; background: var(--wash); display: grid; gap: .5rem; align-content: start; transition: background .4s, transform .4s var(--ease); }
.steps li:hover { background: #E6DCF1; transform: translateY(-4px); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 600; font-size: 2.6rem; line-height: 1; background: linear-gradient(120deg, var(--royal), var(--lav)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 1.3rem; }
.steps p { font-size: 1rem; color: var(--muted); }

/* Author */
.author { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 1.8rem; align-items: start; }
.avatar { width: 110px; height: 110px; border-radius: 32px; background: var(--grad-dark); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 2.2rem; font-weight: 600; transform: rotate(-4deg); box-shadow: 0 18px 36px rgba(15,41,60,.25); }
.author blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); color: var(--ink); line-height: 1.4; }
.author p { color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.facts span { font-size: .9rem; font-weight: 600; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .9rem; color: var(--ink); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.quote { position: relative; margin: 0; display: grid; gap: 1.2rem; align-content: space-between; padding: 2rem; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.quote:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 24px 48px rgba(15,41,60,.12); }
.quote::before { content: "\201C"; position: absolute; top: -.2rem; right: 1.2rem; font-family: var(--display); font-size: 6rem; line-height: 1; color: var(--lav); opacity: .35; }
.quote p { font-family: var(--display); font-size: 1.3rem; line-height: 1.45; color: var(--ink); }
.quote footer { font-size: .98rem; color: var(--muted); display: flex; align-items: center; gap: .8rem; }
.quote footer::before { content: "★★★★★"; display: block; color: #F2A93B; letter-spacing: .1em; font-size: .9rem; position: absolute; top: 1.6rem; left: 2rem; }
.quote { padding-top: 3.4rem; }
.quote footer strong { color: var(--ink); display: block; }
.verify { font-size: .98rem; color: var(--muted); }

/* Credentials */
.creds { display: flex; flex-wrap: wrap; gap: .7rem; }
.cred { border: 1.5px solid var(--ink); border-radius: 999px; padding: .55rem 1.15rem; font-weight: 600; color: var(--ink); font-size: .95rem; background: var(--paper); transition: background .3s, color .3s; }
.cred:hover { background: var(--ink); color: #fff; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.4rem; }
.plan { border: 1px solid var(--line); border-radius: 28px; padding: 2.2rem; display: grid; gap: 1.1rem; align-content: start; background: var(--paper); transition: transform .4s var(--ease), box-shadow .4s; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(15,41,60,.12); }
.plan.featured { background: var(--grad-dark); border-color: transparent; color: var(--on-dark); }
.plan.featured h3, .plan.featured .price, .plan.featured strong { color: #fff; }
.plan.featured .price small, .plan.featured li { color: var(--on-dark-soft); }
.plan.featured .btn { background: #fff; color: var(--ink); border-color: #fff; }
.plan .price { font-family: var(--display); font-size: 3.4rem; font-weight: 600; color: var(--ink); line-height: 1; }
.plan .price small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.ticks li { padding-left: 1.8rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: .1em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--lav); color: #fff; font-size: .75rem; display: grid; place-items: center; font-weight: 700; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 1.8rem; display: grid; gap: .6rem; align-content: start; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.band-wash .panel { border-color: transparent; }
.panel:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(15,41,60,.1); border-color: var(--lav); }
.panel h3::before { content: ""; display: block; width: 36px; height: 36px; border-radius: 12px; margin-bottom: 1rem; background: linear-gradient(135deg, var(--lav), var(--coral)); }
.panel p { color: var(--muted); font-size: 1.02rem; }
.prose { display: grid; gap: 1.1rem; max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.4rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }

/* FAQ */
.faq { display: grid; gap: .7rem; }
.faq details { background: var(--wash); border-radius: 18px; padding: 1.1rem 1.4rem; transition: background .3s; }
.faq details[open] { background: #fff; box-shadow: 0 14px 34px rgba(15,41,60,.1); outline: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--display); font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1.3rem; line-height: 1; transition: transform .35s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--coral); }
.faq details > div { padding-top: .8rem; color: var(--muted); display: grid; gap: .6rem; animation: fadein .4s; }

/* Contact */
.form { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: .4rem; font-weight: 600; font-size: .95rem; color: var(--ink); }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--wash); color: var(--ink); width: 100%; transition: border-color .25s, box-shadow .25s, background .25s; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; background: #fff; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(182,127,211,.25); }
.form-status { font-weight: 600; color: var(--royal); }
.contact-card { border-radius: 28px; padding: 2.2rem; display: grid; gap: 1.4rem; align-content: start; }
.contact-lines { display: grid; gap: 1.1rem; }
.contact-lines div { display: grid; gap: .1rem; }
.contact-lines span { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-soft); }
.contact-lines a, .contact-lines strong { font-size: 1.2rem; color: #fff; font-weight: 600; text-decoration: none; }

/* CTA */
.cta { overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 380px; height: 380px; right: -100px; bottom: -160px; border-radius: 50%; border: 50px solid rgba(182,127,211,.25); animation: spin 30s linear infinite; }
.cta .wrap { z-index: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-soft); padding-block: 4rem 2rem; font-size: 1rem; margin-top: clamp(1rem, 3vw, 2rem); }
.site-footer .cols { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap: 2rem; }
.site-footer p { color: var(--on-dark-soft); }
.site-footer h2 { font-size: 1.1rem; color: #fff; margin-bottom: .9rem; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: .9rem; }
.legal { margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .9rem; }

.float-call { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30; box-shadow: 0 12px 28px rgba(255,101,80,.4); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------- Centred hero with scribble circle and floating bubbles ---------- */
.hero-c { text-align: center; }
.hero-c .wrap { display: grid; justify-items: center; gap: 1.6rem; grid-template-columns: minmax(0,1fr); padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 6vw, 4.5rem); }
.hero-c .lead { margin-inline: auto; }
.hero-c .row, .hero-c .hero-meta { justify-content: center; }
.hero-c h1 { font-size: clamp(3rem, 1.2rem + 6.6vw, 7rem); max-width: 14ch; line-height: 1; }
.circled { position: relative; display: inline-block; white-space: nowrap; color: var(--royal); }
.circled svg { position: absolute; left: -8%; top: -14%; width: 116%; height: 130%; overflow: visible; pointer-events: none; }
.circled path { fill: none; stroke: var(--lav); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 0; }
.js .circled path { stroke-dashoffset: 900; animation: drawline 1.4s .9s var(--ease) forwards; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bubble { position: absolute; width: clamp(84px, 9vw, 124px); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; color: #fff; box-shadow: 0 18px 40px rgba(15,41,60,.2); border: 4px solid #fff; will-change: transform; }
.bubble strong { color: #fff; font-family: var(--display); font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1; }
.bubble small { font-size: .72rem; font-weight: 600; letter-spacing: .04em; opacity: .9; }
.b1 { background: linear-gradient(135deg, #0F293C, #335280); left: 6%; top: 14%; }
.b2 { background: linear-gradient(135deg, #7E3FA6, #B67FD3); right: 7%; top: 10%; }
.b3 { background: linear-gradient(135deg, #E9452F, #FF8A6E); left: 9%; bottom: 10%; }
.b4 { background: linear-gradient(135deg, #023584, #819AC2); right: 9%; bottom: 14%; }
.js .bubble { animation: bubblein .9s var(--ease) both; }
.js .b2 { animation-delay: .15s; } .js .b3 { animation-delay: .3s; } .js .b4 { animation-delay: .45s; }
@keyframes bubblein { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }

/* ---------- Scroll-driven showcase rows ---------- */
.showcase { display: grid; gap: 1.4rem; padding-block: 1rem 2rem; overflow: hidden; }
.sc-row { overflow: visible; }
.sc-track { display: flex; gap: 1.4rem; width: max-content; will-change: transform; }
.sc-tile { position: relative; margin: 0; width: clamp(300px, 40vw, 600px); aspect-ratio: 2 / 1; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 20px 44px rgba(15,41,60,.14); flex: none; }
.sc-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.sc-tile:hover img { transform: scale(1.04); }
.sc-tile figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(15,41,60,.86); color: #fff; font-size: .85rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.sc-tile:hover figcaption { opacity: 1; transform: none; }

/* ---------- Scribble underline ---------- */
.scrib { position: relative; display: inline-block; white-space: nowrap; }
.scrib svg { position: absolute; left: -2%; bottom: -.32em; width: 104%; height: .45em; overflow: visible; }
.scrib path { fill: none; stroke: var(--lav); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.scrib path + path { stroke: var(--coral); stroke-width: 2.2; opacity: .8; }
.js .scrib path { stroke-dashoffset: 260; transition: stroke-dashoffset 1.1s var(--ease); }
.js .scrib path + path { transition-delay: .35s; }
.js .scrib.drawn path { stroke-dashoffset: 0; }
.nowrap { white-space: nowrap; }
.center-head { text-align: center; display: grid; justify-items: center; gap: 1rem; }
.center-head h2 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem); max-width: 18ch; }

/* ---------- Alternating feature rows ---------- */
.feat { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feat.rev .feat-media { order: 2; }
.feat + .feat { margin-top: clamp(1rem, 4vw, 3rem); }
.feat-text h3 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.8rem); font-weight: 600; }
.feat-text p { color: var(--muted); }
.feat-media { position: relative; }
.frame { border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px rgba(15,41,60,.18); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .8s var(--ease); }
.feat.rev .frame { transform: perspective(1400px) rotateY(6deg) rotateX(2deg); }
.feat-media:hover .frame { transform: none; }
.frame-bar { display: flex; align-items: center; gap: .4rem; padding: .65rem .9rem; background: #EEF1F6; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--mist); }
.frame-bar i:first-child { background: var(--coral); }
.frame-bar span { margin-left: .8rem; font-size: .78rem; color: var(--muted); background: #fff; border-radius: 999px; padding: .15rem .8rem; }
.frame img { display: block; width: 100%; height: auto; }
.tag-float { position: absolute; right: -10px; bottom: -18px; background: var(--coral); color: #fff; font-weight: 600; padding: .6rem 1.1rem; border-radius: 999px; box-shadow: 0 14px 30px rgba(255,101,80,.35); animation: float 6s ease-in-out infinite; }
.panel-art { position: relative; border-radius: 28px; padding: clamp(1.6rem, 4vw, 3rem); display: grid; place-items: center; min-height: 340px; overflow: hidden; }
.art-lav { background: radial-gradient(circle at 20% 20%, #fff 0, transparent 50%), linear-gradient(135deg, #E9DDF3, #CFDAEE); }
.art-navy { background: var(--grad-dark); }
.panel-art .dash { animation: none; }
.ai-card { width: min(100%, 400px); display: grid; gap: .8rem; }
.ai-q { justify-self: end; background: #fff; color: var(--ink); font-weight: 600; padding: .8rem 1.1rem; border-radius: 18px 18px 4px 18px; display: flex; gap: .6rem; align-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.ai-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.ai-a { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 18px 18px 18px 4px; padding: 1.1rem 1.2rem; display: grid; gap: .55rem; backdrop-filter: blur(6px); }
.ai-a .ai-label { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-soft); }
.ai-a i { display: block; height: 10px; border-radius: 6px; background: rgba(255,255,255,.35); }
.js .ai-a i { transform-origin: left; animation: grow 1.2s var(--ease) both; }
.js .ai-a i:nth-of-type(2) { animation-delay: .2s; } .js .ai-a i:nth-of-type(3) { animation-delay: .4s; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ai-src { justify-self: start; margin-top: .3rem; background: #fff; color: var(--ink); border-radius: 999px; padding: .35rem .9rem; font-size: .88rem; box-shadow: 0 0 0 4px rgba(182,127,211,.45); }
.ai-src b { color: var(--lav-deep); margin-right: .3rem; }
.ai-note { position: absolute; right: 16px; bottom: 12px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-soft); opacity: .7; }

/* Portfolio thumbs as real screenshots */
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .8s var(--ease); }
.pf-card:hover .pf-thumb img { transform: scale(1.05); }
.pf-thumb { aspect-ratio: 2 / 1; background: var(--wash); }

/* ---------- Word-by-word heading reveal ---------- */
.words .w { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(2deg); filter: blur(4px); transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.words.words-in .w { opacity: 1; transform: none; filter: none; }
.scrib .w { white-space: nowrap; }

/* ---------- Read-along answer ---------- */
.scrubbing .w { opacity: .3; transition: opacity .35s ease; }
.scrubbing .w.lit { opacity: 1; }

/* ---------- Mouse effects (fine pointers only) ---------- */
.cursor-ring { position: fixed; left: 0; top: 0; z-index: 60; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid var(--lav); pointer-events: none; opacity: 0; display: grid; place-items: center; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s, opacity .3s; }
.cursor-ring.on { opacity: .9; }
.cursor-ring span { font-size: .8rem; font-weight: 600; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor-ring.hot { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(182,127,211,.14); border-color: var(--lav-deep); }
.cursor-ring.view { width: 82px; height: 82px; margin: -41px 0 0 -41px; background: var(--ink); border-color: var(--ink); opacity: .92; }
.cursor-ring.view span { opacity: 1; }
.has-mouse .btn, .has-mouse .pf-chip, .has-mouse .header-call { transition: transform .3s var(--ease), box-shadow .3s, color .3s, background .3s, translate .35s var(--ease); }

.tilt { position: relative; --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; }
.js.has-mouse .tilt:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px); transition: transform .18s ease-out, box-shadow .4s, border-color .4s, background .4s; }
.tilt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(182,127,211,.18), transparent 45%); z-index: 1; }
.has-mouse .tilt:hover::before { opacity: 1; }
.on-navy .tilt::before, .svc:nth-child(1)::before, .plan.featured::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.14), transparent 45%); }
.quote.tilt::before { content: "\201C"; background: none; opacity: .35; inset: auto; }
.has-mouse .quote.tilt:hover::before { opacity: .35; }
.has-mouse .sc-tile, .has-mouse .pf-thumb, .has-mouse .frame { cursor: none; }

/* Scroll reveal: only hidden once JS has confirmed it can reveal them */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .header-call { display: none; }
  .hero .wrap, .page-hero .wrap, .split, .case, .cta .wrap { grid-template-columns: minmax(0,1fr); }
  .hero-visual { min-height: 380px; }
  .page-hero .sunburst { display: none; }
  .results, .quotes, .grid-3 { grid-template-columns: minmax(0,1fr); }
  .pf-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feat { grid-template-columns: minmax(0,1fr); }
  .feat.rev .feat-media { order: 0; }
  .bubble { width: 76px; }
  .b1 { left: 2%; top: 4%; } .b2 { right: 2%; top: 3%; } .b3 { left: 3%; bottom: 3%; } .b4 { right: 3%; bottom: 4%; }
  .svc-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site-footer .cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .svc-list, .plans, .grid-2, .form, .pf-grid { grid-template-columns: minmax(0,1fr); }
  .svc:nth-child(1) { grid-column: auto; }
  .steps { grid-template-columns: minmax(0,1fr); }
  .author { grid-template-columns: minmax(0,1fr); }
  .site-footer .cols { grid-template-columns: minmax(0,1fr); }
  .brand { font-size: 1.2rem; }
  .brand img { width: 40px; height: 40px; }
  .chip-a { left: 0; } .chip-b { right: 0; }
  .bubbles { display: none; }
  .tag-float { right: 8px; }
  .frame, .feat.rev .frame { transform: none; }
  .case, .plan, .quote { padding-inline: 1.4rem; }
  .quote footer::before { left: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .headline span, .js .chart .area, .js .chart .dot { opacity: 1; transform: none; }
  .js .chart .line { stroke-dashoffset: 0; }
  .js .circled path, .js .scrib path { stroke-dashoffset: 0; }
}
