/* Qubba case studies. Same look as the marketing page: near black, ivory, champagne gold, Manrope.
   Written phone first. Kept calm: no glows, no looping effects. The proof screenshots are the loud part. */
@font-face { font-family: "Manrope"; src: url(fonts/manrope-latin.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  --bg: #08090b; --panel: #0d0f13; --panel-2: #12141a;
  --ivory: #f4f2ec; --soft: #b0b0b6; --muted: #7d7d85;
  --gold: #e4c25c; --gold-soft: #dcc57f; --gold-lt: #f1e2a0;
  --line: rgba(255, 255, 255, .09); --line-gold: rgba(228, 194, 92, .38);
  --g: clamp(20px, 5vw, 80px); --max: 1180px; --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ivory); font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.045em; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.wrap { max-width: calc(var(--max) + var(--g) * 2); margin-inline: auto; padding-inline: var(--g); }
.gold { color: var(--gold-soft); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(8, 9, 11, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.top img { width: 104px; }
.top nav { display: flex; align-items: center; gap: 18px; }
.top nav a:not(.btn) { display: none; font-size: .9375rem; font-weight: 500; color: var(--soft); text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; background: linear-gradient(120deg, #cfae4c, #f0dd94 48%, #d8ba60); color: #0b0b0c; transition: transform .4s var(--ease); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn--line { background: none; border: 1px solid rgba(255, 255, 255, .22); color: var(--ivory); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } .top nav a:not(.btn):hover { color: var(--ivory); } }

/* Head of a case study */
.head { padding-block: 44px 34px; }
.crumb { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: .875rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.crumb svg { transform: rotate(180deg); width: 16px; height: 16px; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 18px; font-size: .9375rem; font-weight: 600; color: var(--gold-soft); }
.who span { font-weight: 500; color: var(--muted); }
/* The client's own mark leads the page. Its width share (--w) is set per logo so wide and compact marks look the same size */
.who-logo { width: calc(var(--w, 60%) * .86); max-width: 100%; height: auto; }
.who:has(.who-logo) { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.head h1 { font-size: clamp(2.25rem, 10.4vw, 5.25rem); line-height: 1.02; }
.head h1 span { display: block; }
.sum { max-width: 62ch; margin-top: 20px; font-size: 1.0625rem; color: var(--soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-size: .8125rem; font-weight: 500; color: var(--soft); }

/* Key numbers */
.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 0; padding-block: 26px; border-block: 1px solid var(--line); }
.num { display: grid; gap: 6px; align-content: start; padding-inline: 4px 12px; }
.num b { font-size: min(11.5vw, 3.75rem); font-weight: 500; line-height: 1; letter-spacing: -.055em; color: var(--gold-soft); white-space: nowrap; }
.num b small { font-size: .5em; letter-spacing: 0; margin-left: .04em; vertical-align: .7em; }
.num span { font-size: .9375rem; font-weight: 500; line-height: 1.3; }
.num i { font-style: normal; font-size: .8125rem; line-height: 1.35; color: var(--muted); }

/* Proof pictures: real screenshots, shown whole */
.shot { margin-top: 30px; }
.shot a { display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-gold); background: #eef1f8; }
.shot--dark a { background: #000; }
.shot img { width: 100%; }
.shot figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: .8125rem; color: var(--muted); }
.shot figcaption b { font-weight: 600; color: var(--soft); }

section { padding-block: 44px; }
section + section { padding-top: 6px; }
.h { font-size: clamp(1.75rem, 7.4vw, 3rem); line-height: 1.06; margin-bottom: 22px; }
.two { display: grid; gap: 28px; }
.two h3 { margin-bottom: 8px; font-size: .9375rem; font-weight: 600; letter-spacing: 0; color: var(--gold-soft); }
.two p { color: var(--soft); max-width: 58ch; }

/* What we did */
.did { display: grid; gap: 12px; counter-reset: n; }
.did li { counter-increment: n; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.did li::before { content: "0" counter(n); grid-row: span 2; font-size: .8125rem; font-weight: 600; color: var(--gold-soft); padding-top: 3px; }
.did b { font-size: 1.125rem; font-weight: 500; letter-spacing: -.03em; }
.did span { grid-column: 2; font-size: .9375rem; line-height: 1.5; color: var(--soft); }
.did a { grid-column: 2; justify-self: start; max-width: 100%; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .9375rem; font-weight: 600; color: var(--gold-soft); text-decoration: none; }
.did a svg { width: 16px; height: 16px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Results */
.res { display: grid; }
.res li { display: grid; gap: 4px; padding-block: 18px; border-top: 1px solid var(--line); }
.res li:last-child { border-bottom: 1px solid var(--line); }
.res b { font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 500; line-height: 1.1; letter-spacing: -.045em; color: var(--gold-soft); white-space: nowrap; }
.res p { color: var(--ivory); }
.res i { font-style: normal; font-size: .8125rem; color: var(--muted); }
.pair { display: grid; gap: 18px; }
.pair .shot { margin-top: 0; }
/* Three phone screenshots side by side (stacked on a phone) */
.trio { display: grid; gap: 18px; margin-top: 30px; }
.trio .shot { margin-top: 0; }
.note { margin-top: 18px; max-width: 70ch; font-size: .9375rem; color: var(--soft); }

/* The website itself */
.site { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.site figure { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.site .ph { max-width: 240px; justify-self: center; border-radius: 28px; border: 6px solid #1b1d22; }

/* Timeline */
.time { display: grid; gap: 0; }
.time li { position: relative; display: grid; gap: 2px; padding: 0 0 22px 26px; border-left: 1px solid var(--line-gold); }
.time li:last-child { padding-bottom: 0; border-left-color: transparent; }
.time li::before { content: ""; position: absolute; left: -4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.time b { font-size: .9375rem; font-weight: 600; color: var(--gold-soft); }
.time span { color: var(--soft); }

/* Close */
.end { padding-block: 56px 72px; text-align: center; }
.end h2 { font-size: clamp(2rem, 8.6vw, 4rem); line-height: 1.04; margin-bottom: 14px; }
.end p { max-width: 52ch; margin: 0 auto 26px; color: var(--soft); }
.end .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.foot { padding-block: 22px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }

/* Overview page */
.list { display: grid; gap: 16px; padding-bottom: 20px; }
.case { display: grid; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: border-color .4s; }
/* The banner of a card is the client's logo on a quiet panel */
.case { min-width: 0; grid-template-rows: auto 1fr; }
.case > * { min-width: 0; }
.case-banner { display: grid; place-items: center; aspect-ratio: 2 / 1; padding: 6%; border-bottom: 1px solid var(--line); background: radial-gradient(90% 130% at 50% 0%, rgba(228, 194, 92, .07), transparent 62%), var(--panel-2); }
.case-logo { width: calc(var(--w, 60%) * 1.22); max-width: 100%; height: auto; }
.case-body { display: grid; gap: 8px; align-content: start; padding: 22px; }
.case-who { font-size: .875rem; font-weight: 600; color: var(--gold-soft); }
.case-who span { font-weight: 500; color: var(--muted); }
.case h2 { font-size: clamp(1.75rem, 7.4vw, 2.5rem); line-height: 1.06; }
.case p { color: var(--soft); font-size: .9375rem; }
.case-go { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-weight: 600; color: var(--gold-soft); }
.soon { display: grid; gap: 6px; padding: 22px; border-radius: 22px; border: 1px dashed var(--line); color: var(--soft); }
.soon b { color: var(--ivory); font-weight: 500; font-size: 1.125rem; letter-spacing: -.02em; }
@media (hover: hover) { .case:hover { border-color: var(--line-gold); } }

@media (min-width: 761px) {
  .top .wrap { min-height: 76px; }
  .top img { width: 118px; }
  .top nav a:not(.btn) { display: inline; }
  .head { padding-block: clamp(56px, 6vw, 92px) 44px; }
  .sum { font-size: 1.1875rem; }
  .who-logo { width: calc(var(--w, 60%) * .34); }
  .nums { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 34px; }
  .num { padding-inline: 22px; border-left: 1px solid var(--line); }
  .num:first-child { padding-left: 0; border-left: 0; }
  .num b { font-size: min(5vw, 4rem); }
  .shot { margin-top: 44px; }
  section { padding-block: clamp(52px, 5vw, 76px); }
  section + section { padding-top: 8px; }
  .h { margin-bottom: 32px; }
  .two { grid-template-columns: 1fr 1fr; gap: 48px; }
  .did { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .did li { padding: 26px; }
  .res li { grid-template-columns: minmax(180px, 26%) 1fr; gap: 8px 32px; align-items: baseline; padding-block: 22px; }
  .res i { grid-column: 2; }
  .pair { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
  .pair--one { grid-template-columns: minmax(0, 760px); }
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; align-items: start; }
  .site { grid-template-columns: minmax(0, 1fr) 220px; align-items: end; gap: 24px; }
  .site .ph { max-width: none; }
  .list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .case--wide { grid-column: 1 / -1; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto; }
  .case--wide .case-banner { aspect-ratio: auto; min-height: 280px; border-bottom: 0; border-right: 1px solid var(--line); }
  .case--wide .case-logo { width: calc(var(--w, 60%) * 1.05); }
  .case--wide .case-body { align-content: center; padding: 40px; }
  .case-body { padding: 28px; }
  .soon { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .list .case:not(.case--wide) h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
  .list .case:not(.case--wide) .case-body { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
