/* =========================================================
   MREIR — site styles
   Structure mirrors the reference layout 1:1; palette is Mreir's.
   ========================================================= */

:root {
  --navy: #1F4591;
  --royal: #2B6AD0;
  --corn: #68A4F1;
  --dark: #061E47;

  --black: #000000;
  --card: #080808;
  --card-2: #101010;
  --border: #212121;
  --white: #FFFFFF;
  --w60: rgba(255, 255, 255, 0.6);
  --w50: rgba(255, 255, 255, 0.5);
  --w15: rgba(255, 255, 255, 0.15);
  --b60: rgba(0, 0, 0, 0.6);
  --b40: rgba(0, 0, 0, 0.4);
  --line-light: rgba(18, 18, 18, 0.08);
  --chip-bg: #F3F6F7;
  --glass: rgba(184, 184, 184, 0.2);

  --font: "Figtree", "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 1300px;
  --r-section: 24px;
  --r-card: 12px;
  --r-btn: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1024px) {
  :root { --r-section: 60px; --r-card: 16px; --r-btn: 10px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--royal); color: #fff; }

.container { position: relative; margin: 0 auto; max-width: var(--max); }
.px { padding-left: 20px; padding-right: 20px; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px; line-height: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--corn);
}
.eyebrow.on-light { color: var(--black); }
.display {
  font-size: 36px; line-height: 40px; letter-spacing: -0.5px; font-weight: 500;
}
.display-md { font-size: 36px; line-height: 40px; letter-spacing: -0.5px; font-weight: 500; }
.display-sm { font-size: 28px; line-height: 36px; letter-spacing: -0.5px; font-weight: 500; }
.lead { font-size: 14px; line-height: 20px; color: var(--w60); }
.lead.on-light { color: rgba(0, 0, 0, 0.6); }
.h3 { font-size: 20px; line-height: 28px; letter-spacing: -0.5px; font-weight: 500; }

@media (min-width: 1024px) {
  .eyebrow { font-size: 14px; line-height: 16px; }
  .display { font-size: 80px; line-height: 88px; letter-spacing: -2px; }
  .display-md { font-size: 52px; line-height: 64px; letter-spacing: -1px; }
  .display-sm { font-size: 52px; line-height: 60px; letter-spacing: -1px; }
  .lead { font-size: 18px; line-height: 24px; }
  .h3 { font-size: 32px; line-height: 40px; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; height: 44px; padding: 0 20px; border-radius: var(--r-btn);
  font-size: 14px; line-height: 18px; font-weight: 500; letter-spacing: -0.005em;
  color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, var(--royal) 0%, #3F7FE0 60%, var(--corn) 140%);
  box-shadow: 0 0 0 1px rgba(104, 164, 241, 0.25) inset, 0 8px 24px -10px rgba(43, 106, 208, 0.7);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%) skewX(-20deg); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(104,164,241,.4) inset, 0 12px 30px -10px rgba(43,106,208,.9); }
.btn > span { position: relative; z-index: 2; }
.btn.lg { height: 48px; padding: 0 24px; }
@media (min-width: 1024px) {
  .btn { height: 52px; padding: 0 28px; font-size: 16px; line-height: 20px; }
  .btn.lg { height: 56px; padding: 0 32px; }
}
.btn.glass {
  background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: none;
}
.btn.glass:hover { box-shadow: none; background: rgba(184,184,184,.28); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 10px 0;
}
.header .brand {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px;
  border-radius: 6px; background: var(--glass);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.header .brand svg { height: 18px; width: auto; }
.header .brand .wordmark { font-family: "Michroma", "Orbitron", "Arial", sans-serif; font-weight: 400; letter-spacing: 0.08em; font-size: 12px; line-height: 1; }
.header .nav-wrap { display: none; flex: 1; justify-content: center; }
.header nav {
  display: flex; align-items: center; gap: 32px; height: 52px; padding: 0 32px; border-radius: 10px;
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-link { position: relative; font-size: 16px; line-height: 20px; font-weight: 500; letter-spacing: -0.01em; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: #fff;
  transform: scaleX(0); transform-origin: 0; transition: transform .2s cubic-bezier(.25,.46,.45,.94);
}
.nav-link:hover::after { transform: scaleX(1); }
.header .cta { display: none; }
.header .burger {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 6px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.header .burger .lines { display: flex; flex-direction: column; gap: 5px; }
.header .burger span { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform .3s, opacity .3s; }
.header .burger.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.header .burger.burger.open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.header .fade { opacity: 0; transform: translateY(-20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.header.ready .fade { opacity: 1; transform: none; }
@media (min-width: 1024px) {
  .header { padding: 20px 20px 0; }
  .header .brand { height: 48px; padding: 0 20px; border-radius: 10px; gap: 12px; }
  .header .brand svg { height: 22px; }
  .header .brand .wordmark { font-size: 14px; }
  .header .nav-wrap { display: flex; }
  .header .cta { display: inline-flex; }
  .header .burger { display: none; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 40px 24px; background: rgba(0,0,0,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-size: 32px; font-weight: 500; letter-spacing: -0.5px; }
.mobile-menu .btn { align-self: flex-start; margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.08);
  transition: opacity 1.4s var(--ease), transform 1.6s var(--ease);
}
.hero.ready .hero-bg { opacity: 1; transform: scale(1); }
.hero-bg .glow {
  position: absolute; left: 50%; top: -30vw; width: 140vw; height: 110vw; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(104,164,241,.55) 0%, rgba(43,106,208,.42) 22%, rgba(31,69,145,.28) 42%, rgba(6,30,71,.12) 62%, rgba(0,0,0,0) 78%);
  filter: blur(20px);
}
.hero-bg .glow-2 {
  position: absolute; left: 50%; top: -12vw; width: 60vw; height: 40vw; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,255,255,.28), rgba(104,164,241,.2) 40%, transparent 75%);
  filter: blur(30px);
}
.hero-bg .fade-to-black { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.1) 40%, rgba(0,0,0,.7)); }
@media (min-width: 1024px) {
  .hero-bg .glow { top: -34vw; width: 110vw; height: 80vw; }
  .hero-bg .glow-2 { top: -14vw; width: 44vw; height: 26vw; }
}

.hero-main {
  position: relative; z-index: 10; margin: 0 auto; display: flex; flex-direction: column; align-items: center;
  max-width: 1024px; padding: 140px 20px 0; text-align: center;
}
.partners { display: flex; align-items: center; justify-content: center; }
.partners .p { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 6px; }
.partners .p svg { width: 14px; height: 14px; }
.partners .sep { width: 1.5px; height: 16px; margin: 0 12px; background: rgba(255,255,255,.15); }
.hero h1 { margin-top: 20px; }
.hero .lead { margin-top: 20px; }
.hero .btn { margin-top: 30px; }
@media (min-width: 1024px) {
  .hero-main { padding-top: 220px; }
  .partners .p { font-size: 14px; }
  .partners .p svg { width: 18px; height: 18px; }
  .partners .sep { height: 20px; margin: 0 20px; }
  .hero h1 { margin-top: 30px; }
  .hero .lead { max-width: 640px; }
}

/* reveal helpers */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.rv-scale { opacity: 0; transform: scale(.95); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.rv-scale.in { opacity: 1; transform: none; }

/* Logo marquee */
.marquee-wrap { position: relative; z-index: 10; margin: 80px auto 0; width: 100%; overflow: hidden; }
.marquee-wrap::before, .marquee-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: 96px; pointer-events: none;
}
.marquee-wrap::before { left: 0; background: linear-gradient(to right, #000, transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(to left, #000, transparent); }
.marquee { display: flex; align-items: center; width: max-content; animation: marquee 60s linear infinite; }
.marquee-group { display: flex; flex-shrink: 0; align-items: center; gap: 30px; padding-right: 30px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-25%); } }
@media (min-width: 1024px) {
  .marquee-wrap { margin-top: 140px; width: 90%; }
  .marquee-group { gap: 100px; padding-right: 100px; }
}

/* Wordmarks (demo client logos) */
.wm {
  white-space: nowrap; color: rgba(255,255,255,.85); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 15px; line-height: 1; display: inline-flex; align-items: center; gap: 8px; filter: brightness(1.25);
}
.wm i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: currentColor; opacity: .8; }
.wm.serif { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-weight: 400; letter-spacing: 0.06em; text-transform: none; font-size: 20px; }
.wm.wide { letter-spacing: 0.32em; font-size: 13px; }
.wm.heavy { font-weight: 800; letter-spacing: -0.02em; text-transform: none; font-size: 21px; }
.wm.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.02em; font-size: 15px; }
.wm.light { font-weight: 300; letter-spacing: 0.2em; }
.wm.box { border: 1.5px solid currentColor; padding: 6px 10px; border-radius: 4px; font-size: 12px; }
.wm.ital { font-style: italic; font-weight: 500; text-transform: none; font-size: 19px; letter-spacing: 0; }
.wm.round { border: 1.5px solid currentColor; border-radius: 999px; padding: 6px 14px; font-size: 12px; }
@media (min-width: 1024px) {
  .wm { font-size: 17px; }
  .wm.serif { font-size: 24px; } .wm.heavy { font-size: 24px; } .wm.ital { font-size: 22px; }
}

/* Masonry creatives */
.masonry-section {
  position: relative; z-index: 10; margin-top: 24px; margin-left: -75vw; width: calc(100% + 200vw); padding: 0 0 64px;
}
.masonry-inner { position: relative; overflow: hidden; }
.masonry { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.masonry .col { display: flex; flex-direction: column; gap: 12px; will-change: transform; }
.masonry .tile { opacity: 0; transform: translateY(120px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.masonry .tile.in { opacity: 1; transform: none; }
.masonry img { width: 100%; height: auto; border-radius: 8px; object-fit: cover; }
.masonry-fade { pointer-events: none; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(to bottom, transparent, rgba(0,0,0,.8), #000); }
@media (min-width: 1024px) {
  .masonry-section { margin-top: 48px; margin-left: -5vw; width: calc(100% + 10vw); }
  .masonry { gap: 18px; } .masonry .col { gap: 18px; }
}

/* ---------- Section: trusted logos ---------- */
.section-trusted { background: #000; padding: 32px 20px 60px; }
.section-trusted .intro { margin-bottom: 40px; text-align: center; font-size: 18px; line-height: 24px; color: var(--w60); }
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 12px; justify-items: center; }
.logo-grid .wm { font-size: 11px; }
.logo-grid .wm.serif, .logo-grid .wm.heavy, .logo-grid .wm.ital { font-size: 15px; }
.logo-grid-lg { display: none; }
.section-trusted .more { margin-top: 60px; text-align: center; font-size: 14px; line-height: 20px; }
.section-trusted .more span:last-child { color: var(--w60); }
@media (min-width: 1024px) {
  .section-trusted { padding: 80px 20px 160px; }
  .section-trusted .intro { margin-bottom: 64px; font-size: 16px; line-height: 22px; }
  .logo-grid { display: none; }
  .logo-grid-lg { display: flex; flex-wrap: wrap; justify-content: space-between; row-gap: 100px; }
  .logo-grid-lg > div { width: 12.5%; display: flex; align-items: center; justify-content: center; }
  .section-trusted .more { display: none; }
}

/* ---------- Section: services (white) ---------- */
.section-white { background: #fff; color: #000; border-radius: var(--r-section); }
.section-services { padding: 100px 20px 40px; }
.pill-wrap { display: flex; justify-content: center; }
.pill {
  display: flex; align-items: center; gap: 12px; padding: 4px 16px 4px 4px; border-radius: 40px; background: #fff; overflow: hidden;
  max-width: calc(100vw - 40px);
  box-shadow: 0 1.08px 1.08px -.54px rgba(26,26,26,.08), 0 2.17px 2.17px -1.08px rgba(26,26,26,.08), 0 4.34px 4.34px -2.17px rgba(26,26,26,.08), 0 8.7px 8.7px -4.34px rgba(26,26,26,.08), 0 0 0 1px rgba(26,26,26,.06);
}
.pill .avatar { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--navy), var(--corn)); }
.pill .track { overflow: hidden; }
.pill p { font-size: 12px; line-height: 12px; font-weight: 500; white-space: nowrap; animation: pill-marquee 14s linear infinite; }
.pill p .muted { color: rgba(0,0,0,.4); }
.pill p .gap { display: inline-block; width: 60px; }
@keyframes pill-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (min-width: 1024px) {
  .section-services { padding: 140px 20px 96px; }
  .pill .track { overflow: visible; }
  .pill p { font-size: 14px; line-height: 14px; animation: none; }
  .pill p .dup { display: none; }
}
.section-services h2 { margin-top: 24px; text-align: center; }
.services-grid { margin-top: 30px; display: grid; grid-template-columns: 1fr; border: 1px solid var(--line-light); border-radius: 16px; overflow: hidden; }
.service { padding: 40px 20px; border-bottom: 1px solid var(--line-light); }
.service:last-child { border-bottom: 0; }
.service .chips { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.service .chip {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--chip-bg);
  font-size: 12px; font-weight: 600; color: var(--dark); letter-spacing: 0.02em;
}
.service .chip.sq { width: 40px; padding: 0; }
.service .chip svg { width: 20px; height: 20px; }
.service .desc { margin-top: 24px; font-size: 14px; line-height: 20px; color: rgba(0,0,0,.6); }
.service ul { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.service li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 20px; color: rgba(0,0,0,.8); }
.service li .tick { flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--royal); display: flex; align-items: center; justify-content: center; }
.service li .tick svg { width: 9px; height: 9px; }
.service.model { background: var(--dark); color: #fff; border-color: transparent; }
.service.model .desc { color: var(--w60); }
.service.model li { color: rgba(255,255,255,.85); }
.service.model li .tick { background: var(--corn); }
.service.model .link { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--corn); }
.section-services .cta-row { margin-top: 24px; display: flex; justify-content: center; }
@media (min-width: 1024px) {
  .services-grid { margin-top: 64px; grid-template-columns: repeat(3, 1fr); }
  .service { padding: 60px 25px 60px 30px; border-bottom: 0; border-right: 1px solid var(--line-light); }
  .service:nth-child(3n) { border-right: 0; }
  .service:nth-child(-n+3) { border-bottom: 1px solid var(--line-light); }
  .service .desc { margin-top: 40px; font-size: 17px; line-height: 24px; }
  .service ul { margin-top: 40px; gap: 20px; }
  .service li { font-size: 16px; line-height: 22px; }
  .section-services .cta-row { margin-top: 64px; }
}

/* ---------- Section: the model (dark) ---------- */
.section-model { background: #000; padding: 100px 20px 60px; }
.section-model .head { text-align: center; }
.section-model h2 { margin-top: 24px; }
.section-model .lead { margin: 24px auto 0; max-width: 720px; }
.phases { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.phase { position: relative; border: 1px solid var(--border); background: var(--card); border-radius: var(--r-card); padding: 24px 20px; overflow: hidden; }
.phase::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--royal), var(--corn)); }
.phase .wk { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--corn); }
.phase h3 { margin-top: 12px; font-size: 24px; line-height: 30px; letter-spacing: -0.5px; font-weight: 500; }
.phase p { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--w60); }
.tiers { margin-top: 10px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.tier { border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px 20px; background: linear-gradient(180deg, rgba(31,69,145,.0), rgba(31,69,145,.0)); }
.tier.t1 { background: linear-gradient(160deg, rgba(31,69,145,.35), rgba(6,30,71,.2)); }
.tier.t2 { background: linear-gradient(160deg, rgba(43,106,208,.45), rgba(6,30,71,.25)); }
.tier.t3 { background: linear-gradient(160deg, rgba(104,164,241,.55), rgba(43,106,208,.3)); }
.tier .lbl { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.tier .big { margin-top: 10px; font-size: 32px; line-height: 36px; letter-spacing: -1px; font-weight: 500; }
.tier .sub { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--w60); }
.terms { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.term { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--border); background: var(--card); border-radius: var(--r-card); padding: 20px; }
.term .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: rgba(104,164,241,.12); display: flex; align-items: center; justify-content: center; }
.term .ic svg { width: 18px; height: 18px; }
.term h4 { margin: 0; font-size: 16px; line-height: 20px; font-weight: 500; }
.term p { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--w60); }
.section-model .note { margin-top: 20px; text-align: center; font-size: 12px; line-height: 18px; color: var(--w50); }
@media (min-width: 1024px) {
  .section-model { padding: 140px 20px 100px; }
  .phases { margin-top: 80px; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .phase { padding: 40px 30px; }
  .phase h3 { font-size: 32px; line-height: 40px; }
  .phase p { font-size: 17px; line-height: 24px; }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .tier { padding: 30px; }
  .tier .big { font-size: 40px; line-height: 44px; }
  .terms { margin-top: 60px; grid-template-columns: repeat(3, 1fr); }
  .term { padding: 24px; }
  .term p { font-size: 15px; line-height: 22px; }
}

/* ---------- Section: work (dark) ---------- */
.section-work { background: #000; padding: 100px 20px 60px; }
.work-head { display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.work-head h2 { margin-top: 24px; }
.work-head .right { max-width: 520px; padding-top: 16px; }
.work-head .right .btn { margin-top: 24px; }
.work-grid { margin-top: 40px; columns: 1; column-gap: 10px; }
.work-grid > .item { break-inside: avoid; margin-bottom: 10px; }
.work-card { border: 1px solid var(--border); background: var(--card); border-radius: var(--r-card); padding: 20px; }
.work-card h3 { font-weight: 500; font-size: 16px; line-height: 20px; }
.work-card h3 span { display: block; }
.work-card .img { margin-top: 18px; overflow: hidden; border-radius: var(--r-card); }
.work-card .img img { width: 100%; height: auto; }
.work-card .stats { margin-top: 30px; display: flex; gap: 24px; }
.work-card .stat { width: 50%; }
.work-card .num { display: flex; align-items: flex-start; gap: 6px; font-size: 24px; line-height: 30px; letter-spacing: -0.5px; font-weight: 500; }
.work-card .num svg { width: 12px; height: 12px; margin-top: 6px; flex-shrink: 0; }
.work-card .cap { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--w60); }
.work-card .tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { border-radius: 6px; padding: 6px 8px 4px; font-size: 12px; line-height: 12px; background: var(--corn); color: var(--dark); font-weight: 500; }
.work-grid .item.mobile-hidden { display: none; }
.work-grid .item.peek { position: relative; overflow: hidden; max-height: 280px; }
.peek .peek-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 0; }
.peek .peek-overlay::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #000, rgba(0,0,0,.8), transparent); }
.peek .peek-overlay .btn { position: relative; z-index: 1; width: 100%; height: 40px; }
.work-grid.expanded .item.mobile-hidden { display: block; }
.work-grid.expanded .item.peek { max-height: none; overflow: visible; }
.work-grid.expanded .peek-overlay { display: none; }
@media (min-width: 380px) { .work-card .num { font-size: 28px; line-height: 34px; } }
@media (min-width: 1024px) {
  .section-work { padding: 140px 20px 96px; }
  .work-head { flex-direction: row; align-items: flex-start; text-align: left; }
  .work-head .right { padding-top: 32px; }
  .work-grid { margin-top: 80px; columns: 3; }
  .work-card h3 { font-size: 24px; line-height: 32px; }
  .work-card .num { font-size: 40px; line-height: 48px; letter-spacing: -1px; }
  .work-card .num svg { width: 16px; height: 16px; margin-top: 10px; }
  .work-card .cap { font-size: 16px; line-height: 20px; }
  .tag { font-size: 14px; line-height: 14px; }
  .work-grid .item.mobile-hidden { display: block; }
  .work-grid .item.peek { max-height: none; overflow: visible; }
  .peek .peek-overlay { display: none; }
}

/* CTA box */
.cta-box {
  position: relative; margin-top: 60px; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; padding: 60px 20px;
  background: #050505;
}
.cta-box::before {
  content: ""; position: absolute; left: 50%; bottom: -60%; width: 120%; height: 160%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(104,164,241,.5), rgba(43,106,208,.35) 30%, rgba(31,69,145,.18) 55%, transparent 80%);
  filter: blur(30px); pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box .inner { display: flex; flex-direction: column; text-align: center; }
.cta-box h3 { margin-top: 24px; }
.cta-box p.lead { margin-top: 16px; max-width: 680px; }
.cta-box .btn { margin: 32px auto 0; }
@media (min-width: 1024px) {
  .cta-box { margin-top: 120px; padding: 60px; }
  .cta-box .inner { flex-direction: row; align-items: flex-end; justify-content: space-between; text-align: left; }
  .cta-box .btn { margin: 0; }
}

/* ---------- Section: mission (white) ---------- */
.section-mission { padding: 60px 20px 40px; }
.section-mission h2 { margin-top: 24px; text-align: left; }
.mission-grid { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 40px; }
.mission { display: flex; flex-direction: column; gap: 20px; }
.mission .icon {
  flex-shrink: 0; align-self: flex-start; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 10px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,61,61,.04), 0 1px 1px -.5px rgba(0,31,31,.08), 0 3px 3px -1.5px rgba(0,31,31,.08), 0 6px 6px -3px rgba(0,31,31,.08), 0 12px 12px -6px rgba(0,31,31,.08);
}
.mission .icon div { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 8px; background: #F7F7F7; font-size: 24px; }
.mission p { margin-top: 8px; font-size: 14px; line-height: 20px; color: rgba(0,0,0,.6); }
@media (min-width: 1024px) {
  .section-mission { padding: 140px 20px 200px; }
  .section-mission h2 { max-width: 1100px; line-height: 90px; }
  .mission-grid { margin-top: 80px; grid-template-columns: 1fr 1fr; gap: 60px 120px; }
  .mission { flex-direction: row; }
  .mission p { margin-top: 12px; font-size: 18px; line-height: 24px; }
}

/* ---------- Section: testimonials (dark) ---------- */
.section-testimonials { background: #000; padding: 80px 20px 60px; }
.section-testimonials .eyebrow, .section-testimonials h2 { text-align: center; }
.section-testimonials h2 { margin-top: 20px; }
.testi-grid { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.stats-card { border: 1px solid var(--border); background: var(--card); border-radius: var(--r-card); padding: 20px; }
.stats-card .intro { font-size: 14px; line-height: 20px; }
.stats-card .intro .muted { color: var(--w60); }
.stats-card .stat { margin-top: 40px; }
.stats-card .big { font-size: 60px; line-height: 60px; letter-spacing: -1px; font-weight: 500; }
.stats-card .cap { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--w60); }
.stats-card .social { margin-top: 40px; display: flex; align-items: center; gap: 16px; }
.avatars { display: flex; }
.avatars .av { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #000; margin-left: -12px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.avatars .av:first-child { margin-left: 0; }
.stars { display: flex; gap: 2px; }
.stars svg { width: 14px; height: 14px; }
.stats-card .social p { font-size: 12px; line-height: 20px; }
.stats-card .social p span:last-child { color: var(--w60); }
.stats-card .btn { margin-top: 30px; width: 100%; }
.testi-col { display: flex; flex-direction: column; gap: 20px; }
.testi-col.desktop { display: none; }
.testi { border: 1px solid var(--border); background: var(--card); border-radius: var(--r-card); padding: 36px 20px; }
.testi .brand-mark { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,.7); filter: brightness(1.25); }
.testi blockquote { margin: 20px 0 0; font-size: 15px; line-height: 22px; color: rgba(255,255,255,.9); }
.testi .who { margin-top: 32px; display: flex; align-items: center; gap: 12px; }
.testi .av { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.testi .who p { font-size: 12px; line-height: 18px; }
.testi .who p:last-child { color: var(--w60); }
.testi-col .item.mobile-hidden { display: none; }
.testi-col .item.peek { position: relative; overflow: hidden; max-height: 280px; }
.testi-col.expanded .item.mobile-hidden { display: block; }
.testi-col.expanded .item.peek { max-height: none; overflow: visible; }
.testi-col.expanded .peek-overlay { display: none; }
@media (min-width: 1024px) {
  .section-testimonials { padding: 140px 20px; }
  .section-testimonials h2 { margin-top: 24px; }
  .testi-grid { margin-top: 60px; grid-template-columns: 1.2fr 1fr 1fr; }
  .stats-card { padding: 30px; }
  .stats-card .intro { font-size: 16px; line-height: 24px; }
  .stats-card .stat { margin-top: 80px; }
  .stats-card .stat + .stat { margin-top: 40px; }
  .stats-card .big { font-size: 80px; line-height: 92px; letter-spacing: -2px; }
  .stats-card .cap { font-size: 18px; line-height: 24px; }
  .stats-card .social { margin-top: 60px; }
  .stats-card .social p { font-size: 16px; line-height: 24px; }
  .stats-card .btn { width: auto; }
  .testi-col.mobile { display: none; }
  .testi-col.desktop { display: flex; }
  .testi { padding: 30px; }
  .testi blockquote { margin-top: 24px; font-size: 16px; line-height: 24px; }
  .testi .who { margin-top: 48px; }
  .testi .who p { font-size: 15px; line-height: 21px; }
}

/* ---------- Section: clients (dark) ---------- */
.section-clients { background: #000; padding: 60px 20px; }
.section-clients .eyebrow { text-align: center; }
.section-clients h2 { margin-top: 20px; text-align: center; }
.section-clients .grid-wrap { margin-top: 40px; }
@media (min-width: 1024px) {
  .section-clients { padding: 100px 20px 180px; }
  .section-clients .eyebrow, .section-clients h2 { text-align: left; }
  .section-clients h2 { margin-top: 24px; max-width: 700px; }
  .section-clients .grid-wrap { margin-top: 80px; }
}

/* ---------- Section: final CTA ---------- */
.section-final { position: relative; overflow: hidden; border-radius: var(--r-section); padding: 60px 20px 20px; background: #05070f; }
.section-final .bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 78% 100%, rgba(104,164,241,.55), rgba(43,106,208,.35) 35%, rgba(31,69,145,.15) 60%, transparent 80%),
    radial-gradient(50% 40% at 10% 0%, rgba(31,69,145,.35), transparent 70%),
    linear-gradient(180deg, #05070f, #0a1330);
}
.section-final .container { position: relative; z-index: 10; }
.final-grid { display: flex; flex-direction: column; gap: 20px; }
.final-left { width: 100%; }
.final-left h2 { margin-top: 20px; text-align: left; }
.final-left .expect { margin-top: 40px; font-size: 14px; line-height: 20px; font-weight: 500; }
.final-left ul { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.final-left li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; color: var(--w60); }
.final-left li .tick { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--corn); display: flex; align-items: center; justify-content: center; }
.final-left li .tick svg { width: 10px; height: 10px; }
.rotator { margin-top: 40px; width: 100%; border: 1px solid rgba(33,33,33,.3); background: rgba(16,16,16,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: var(--r-card); padding: 20px; }
.rotator .stack { display: grid; }
.rotator .stack > div { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; pointer-events: none; transition: opacity .5s ease-in-out; }
.rotator .stack > div.active { opacity: 1; pointer-events: auto; }
.rotator blockquote { margin: 0; font-size: 14px; line-height: 20px; color: rgba(255,255,255,.9); }
.rotator .who { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.rotator .av { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }
.rotator .who p { font-size: 12px; line-height: 18px; }
.rotator .who p:last-child { color: var(--w60); }
.booking { width: 100%; border: 1px solid rgba(255,255,255,.12); background: rgba(8,8,8,.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: var(--r-card); padding: 24px 20px; }
.booking h3 { font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.3px; }
.booking .sub { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--w60); }
.booking form { margin-top: 20px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.booking label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.7); }
.booking input, .booking select, .booking textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #fff; font-family: inherit; font-size: 14px; outline: none;
  transition: border-color .2s, background .2s;
}
.booking textarea { height: 88px; padding: 12px 14px; resize: vertical; }
.booking select option { color: #000; }
.booking input:focus, .booking select:focus, .booking textarea:focus { border-color: var(--corn); background: rgba(104,164,241,.06); }
.booking .btn { width: 100%; margin-top: 4px; }
.booking .fine { margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--w50); text-align: center; }
.booking .fine a { color: var(--corn); }
@media (min-width: 640px) { .booking form { grid-template-columns: 1fr 1fr; } .booking .full { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .section-final { padding: 152px 0; }
  .section-final .container { padding: 0 20px; }
  .final-grid { flex-direction: row; justify-content: space-between; gap: 40px; }
  .final-left { width: 50%; }
  .final-left h2 { margin-top: 24px; font-size: 72px; line-height: 80px; letter-spacing: -2px; }
  .final-left .expect { font-size: 18px; line-height: 18px; }
  .final-left li { font-size: 18px; line-height: 24px; }
  .rotator { width: 75%; padding: 24px; }
  .rotator blockquote { font-size: 16px; line-height: 24px; }
  .rotator .who { margin-top: 24px; }
  .rotator .who p { font-size: 15px; line-height: 21px; }
  .booking { flex: 1; align-self: center; padding: 32px; }
  .booking h3 { font-size: 24px; line-height: 32px; }
}

/* ---------- Footer ---------- */
.footer { background: #000; padding: 40px 20px 20px; }
.footer .top p:first-child { font-size: 16px; line-height: 24px; }
.footer .tagline { margin-top: 24px; font-size: 14px; line-height: 22px; color: var(--w60); max-width: 520px; }
.footer .bottom { margin-top: 24px; display: flex; align-items: flex-end; justify-content: space-between; }
.footer .links { display: flex; flex-direction: column; gap: 12px; }
.footer .links a { font-size: 12px; line-height: 20px; color: rgba(255,255,255,.5); transition: color .2s; }
.footer .links a:hover { color: #fff; }
.footer .mark svg { height: 26px; width: auto; color: #fff; }
@media (min-width: 1024px) {
  .footer { padding: 100px 20px 40px; }
  .footer .top p:first-child { font-size: 18px; }
  .footer .tagline { margin-top: 32px; font-size: 18px; line-height: 26px; }
  .footer .bottom { margin-top: 32px; }
  .footer .links { flex-direction: row; gap: 20px; }
  .footer .links a { font-size: 14px; line-height: 22px; }
  .footer .mark svg { height: 36px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee, .pill p { animation: none; }
  .rv, .rv-scale, .masonry .tile, .hero-bg, .header .fade { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Header over light sections */
.header.on-light .brand, .header.on-light nav, .header.on-light .burger { background: rgba(0, 0, 0, 0.06); }
.header.on-light .brand .wordmark, .header.on-light .nav-link { color: #000; }
.header.on-light .nav-link::after, .header.on-light .burger span { background: #000; }
.header .brand, .header nav, .header .burger, .header .nav-link, .header .brand .wordmark { transition: background .3s, color .3s; }

/* Tighter wordmarks inside the 8-up logo grids so neighbours never touch */
@media (min-width: 1024px) {
  .logo-grid-lg .wm { font-size: 13px; letter-spacing: 0.1em; }
  .logo-grid-lg .wm.serif { font-size: 18px; }
  .logo-grid-lg .wm.heavy { font-size: 18px; }
  .logo-grid-lg .wm.ital { font-size: 16px; }
  .logo-grid-lg .wm.wide { font-size: 11px; letter-spacing: 0.28em; }
  .logo-grid-lg .wm.mono { font-size: 12px; }
  .logo-grid-lg .wm.light { font-size: 13px; letter-spacing: 0.16em; }
  .logo-grid-lg > div { padding: 0 8px; }
}

/* Generated imagery: fixed aspect for work cards so the masonry stays even */
.work-card .img { aspect-ratio: 16 / 10; }
.work-card .img img { width: 100%; height: 100%; object-fit: cover; }
.masonry img { display: block; }

/* Partner badges */
.partners { flex-wrap: wrap; gap: 10px 0; }
.partners .p { color: rgba(255,255,255,.85); text-transform: none; letter-spacing: 0; font-weight: 500; gap: 7px; }
.partners .glyph { width: 18px; height: 18px; }
.partners .name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.partners .wordmark-k { height: 15px; width: auto; }
.partners .wordmark-p { height: 18px; width: auto; }
.partners .lbl { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.5); padding-left: 6px; border-left: 1px solid rgba(255,255,255,.18); }
@media (min-width: 1024px) {
  .partners .glyph { width: 22px; height: 22px; }
  .partners .name { font-size: 17px; }
  .partners .wordmark-k { height: 18px; }
  .partners .wordmark-p { height: 22px; }
  .partners .lbl { font-size: 11px; }
}
.partners .p svg.glyph { width: 18px; height: 18px; }
.partners .p svg.wordmark-k { width: auto; height: 15px; }
.partners .p svg.wordmark-p { width: auto; height: 18px; }
@media (min-width: 1024px) {
  .partners .p svg.glyph { width: 22px; height: 22px; }
  .partners .p svg.wordmark-k { height: 19px; }
  .partners .p svg.wordmark-p { height: 22px; }
}

/* Partner marquee + standalone CTA section */
.partners-marquee .p { color: rgba(255,255,255,.9); display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.partners-marquee .p .glyph { width: 26px; height: 26px; }
.partners-marquee .p .name { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.partners-marquee .p svg.wordmark-k { height: 22px; width: auto; }
.partners-marquee .p svg.wordmark-p { height: 26px; width: auto; }
.partners-marquee .p .lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.5); padding-left: 8px; border-left: 1px solid rgba(255,255,255,.18); }
.partners-marquee .marquee-group { gap: 48px; padding-right: 48px; }
.section-cta { background: #000; padding: 60px 20px 20px; }
.section-cta .cta-box { margin-top: 0; }
@media (min-width: 1024px) {
  .partners-marquee .p .glyph { width: 30px; height: 30px; }
  .partners-marquee .p .name { font-size: 26px; }
  .partners-marquee .p svg.wordmark-k { height: 26px; }
  .partners-marquee .p svg.wordmark-p { height: 30px; }
  .partners-marquee .p .lbl { font-size: 12px; }
  .partners-marquee .marquee-group { gap: 90px; padding-right: 90px; }
  .section-cta { padding: 100px 20px 40px; }
}

/* Shopify Partners logo in marquee + Calendly card */
.partners-marquee .p.shopify img { height: 30px; width: auto; }
.booking.calendly-card { padding: 12px 12px 16px; overflow: hidden; }
.calendly-inline-widget { border-radius: 10px; overflow: hidden; }
@media (min-width: 1024px) {
  .partners-marquee .p.shopify img { height: 36px; }
  .booking.calendly-card { padding: 16px 16px 20px; }
}

/* 4-column client grid (8 portrait images) */
.masonry.masonry-4 { grid-template-columns: repeat(4, 1fr); }
.masonry-section.four { margin-left: -40vw; width: calc(100% + 80vw); }
.masonry.masonry-4 .col:nth-child(even) { padding-top: 60px; }
@media (min-width: 1024px) {
  .masonry-section.four { margin-left: -4vw; width: calc(100% + 8vw); }
  .masonry.masonry-4 .col:nth-child(even) { padding-top: 90px; }
}

/* Platform logo chips */
.service .chip.sq svg { width: 22px; height: 22px; }
.service .chip.wm-chip { padding: 0 14px; }
.service .chip.wm-chip.k svg { height: 16px; width: auto; }
.service .chip.wm-chip.p svg { height: 22px; width: auto; }
.service.model .chip { background: rgba(255,255,255,.1); color: #fff; }

/* Sunset hero */
.hero-bg .glow {
  left: 0; top: 0; width: 100%; height: 110vh; transform: none; filter: blur(34px);
  background:
    radial-gradient(60% 55% at 84% -8%, rgba(255,204,0,.95) 0%, rgba(255,150,0,.8) 28%, rgba(255,110,0,0) 66%),
    radial-gradient(52% 58% at 50% 2%, rgba(255,48,72,1) 0%, rgba(232,24,60,.8) 34%, rgba(200,0,60,0) 72%),
    radial-gradient(58% 55% at 10% -6%, rgba(236,72,40,.9) 0%, rgba(168,24,52,.65) 32%, rgba(120,0,40,0) 68%),
    radial-gradient(90% 60% at 50% 34%, rgba(196,24,66,.6) 0%, rgba(90,4,40,.25) 45%, rgba(0,0,0,0) 74%),
    linear-gradient(180deg, #3a0714 0%, #14020a 42%, #000 70%);
}
.hero-bg .glow-2 {
  left: 50%; top: -6vw; width: 70vw; height: 34vw; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,120,90,.45), rgba(255,80,80,.18) 45%, transparent 75%);
  filter: blur(40px);
}
.hero-bg .fade-to-black { background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.75) 78%, #000 100%); }
@media (min-width: 1024px) {
  .hero-bg .glow { height: 100vh; }
  .hero-bg .glow-2 { top: -8vw; width: 46vw; height: 24vw; }
}
