/* ===== Tokens ===== */
:root {
  /* BuildQuick logo colours */
  --blue: #353cf8;
  --violet: #7029f6;
  --magenta: #b514f5;
  --accent: #8b5cff;          /* lighter logo violet for small text on black */
  --grad: linear-gradient(90deg, #353cf8 0%, #7029f6 50%, #b514f5 100%);
  --black: #000;
  --card: #0e0e0e;
  --card-2: #151515;
  --line: #292929;
  --white: #fff;
  --dim: #8a8a8a;
  /* BuildQuick fonts: Satoshi (headings), Manrope (body), Roboto Mono (labels) */
  --display: "Satoshi", "Manrope", Arial, sans-serif;
  --sans: "Manrope", Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(16px, 3vw, 40px);
  --radius: 24px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::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(--sans); font-size: 16px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* no sideways scrolling on phones; clip (unlike hidden) keeps position: sticky working */
html, body { overflow-x: clip; max-width: 100%; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, blockquote { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.container.big { max-width: 1440px; }
.green { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .25px; text-transform: uppercase; }

/* ===== Type ===== */
.title-xl { font-family: var(--display); font-size: clamp(38px, 4.4vw, 56px); line-height: 1.15; font-weight: 500; letter-spacing: -.02em; }
.title-l  { font-family: var(--display); font-size: clamp(30px, 3.6vw, 48px); line-height: 1.15; font-weight: 500; letter-spacing: -.02em; }
.title-m  { font-family: var(--display); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; font-weight: 500; }
.title-mono { font-family: var(--mono); font-size: clamp(14px, 1.2vw, 18px); font-weight: 400; color: var(--white); text-transform: uppercase; letter-spacing: .25px; }
.lead { font-size: 18px; color: var(--dim); max-width: 60ch; }
.card-stat .green, .card-stat.green { -webkit-box-decoration-break: clone; }
.card-stat { font-family: var(--display); font-size: clamp(48px, 5vw, 64px); line-height: 1.2; font-weight: 500; letter-spacing: -.03em; }

/* ===== Tag ===== */
.tag {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  font-family: var(--mono); font-size: 12px; letter-spacing: .25px; text-transform: uppercase;
  padding: 8px 14px; border-radius: 100px; background: #ffffff14; border: 1px solid #ffffff1f; color: var(--white);
}
.tag.nobg { background: none; border: 0; padding: 0; color: var(--accent); }
.tag.nobg::before { content: ""; width: 6px; height: 6px; background: var(--grad); }
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px var(--magenta); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 100px;
  font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .25px; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s, transform .3s var(--ease);
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 12px; }
.btn-primary { background: var(--grad); background-size: 200% 100%; color: #fff; box-shadow: 0 8px 30px -10px #7029f6aa; }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 10px 40px -8px #b514f5bb; }
.btn-secondary { border: 1px solid #ffffff40; color: #fff; background: #ffffff0a; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #fff; color: #000; }
.arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.link { color: var(--dim); transition: color .2s; }
.link:hover { color: var(--accent); }

/* ===== Nav ===== */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding: 16px 0; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: #000000b3; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1440px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.brand img { height: 34px; width: auto; }
.nav-clock { color: var(--dim); }
.nav-clock span:last-child { color: var(--white); font-variant-numeric: tabular-nums; }
.nav-actions { display: flex; justify-content: flex-end; gap: 8px; }
.menu-toggle { gap: 12px; }
.menu-icon { display: grid; gap: 4px; }
.menu-icon i { display: block; width: 14px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.menu-open .menu-icon i:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-open .menu-icon i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: #000; padding: 110px 0 40px; overflow: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease);
}
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; max-width: 1440px; }
.menu-links a {
  display: flex; align-items: baseline; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 500; font-size: clamp(36px, 6vw, 72px); line-height: 1.1; letter-spacing: -.03em; transition: color .25s, padding .35s var(--ease);
}
.menu-links .mono { color: var(--dim); }
.menu-links a:hover { color: var(--accent); padding-left: 12px; }
.menu-side { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding-top: 12px; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 80px; }
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  background: radial-gradient(60% 60% at 75% 45%, #7029f640, transparent 70%), #000; /* fallback */
}
.hero-fade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #000 0%, #000c 30%, #0000 70%), linear-gradient(0deg, #000 0%, #0000 30%); }
.hero-inner { position: relative; z-index: 2; max-width: 1440px; }
.hero-3d {
  position: absolute; z-index: 1; top: 0; bottom: 0; right: 2vw; width: 46vw; height: 100%;
  pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease);
  filter: drop-shadow(0 30px 80px #7029f666);
}
.hero-3d.is-ready { opacity: 1; }
.hero-copy { width: min(60%, 760px); display: flex; flex-direction: column; gap: 24px; }
.hero-p { color: #ffffffb3; max-width: 52ch; font-size: 17px; }
.buttons { margin-top: 8px; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%); color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ===== Sections ===== */
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); max-width: 900px; }
.head.center { align-items: center; text-align: center; margin: 0 auto; }

/* App cards */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.app-card {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 440px; transition: border-color .4s, transform .5s var(--ease);
}
.app-card:hover { border-color: #7029f699; transform: translateY(-4px); }
.app-art { flex: 1; display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 45%, #7029f61f, transparent 70%); border-bottom: 1px solid var(--line); }
.app-art img { width: 96px; height: 96px; filter: grayscale(1) brightness(1.6); transition: filter .5s, transform .6s var(--ease); }
.app-card:hover .app-art img { filter: none; transform: scale(1.08) rotate(-4deg); }
.card-copy { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card-head { font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .25px; color: var(--accent); }
.card-copy p:last-child { color: var(--dim); font-size: 15px; }

/* Sticky steps */
.sticky-wrap { height: 300vh; position: relative; }
.sticky-box {
  position: sticky; top: 110px; min-height: calc(100svh - 160px);
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center;
  border-top: 1px solid var(--line); padding-top: 40px;
}
.step-tabs { display: grid; gap: 4px; align-self: start; }
.step-tabs li { font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .25px; color: #ffffff40; padding: 10px 0 10px 18px; border-left: 2px solid var(--line); transition: color .4s, border-color .4s; }
.step-tabs li.is-active { color: var(--accent); border-color: var(--accent); }
.step-stage { position: relative; min-height: 340px; }
.step { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 20px; justify-content: center; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.step.is-active { opacity: 1; transform: none; }
.step-num { font-family: var(--display); font-size: clamp(96px, 14vw, 192px); line-height: .85; font-weight: 500; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; padding-bottom: .05em; letter-spacing: -.04em; }
.step .title-m { font-size: clamp(32px, 3.6vw, 48px); }
.step p:last-child { color: #ffffffb3; font-size: clamp(17px, 1.5vw, 20px); max-width: 44ch; }
.step-progress { grid-column: 1 / -1; height: 2px; background: var(--line); align-self: end; }
.step-progress span { display: block; height: 100%; width: 0; background: var(--grad); }

/* Results */
.results-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: minmax(320px, auto); gap: 16px; }
.r-card { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; position: relative; }
.r-card.r-big { grid-row: span 1; }
.r-marquee { grid-column: 2 / -1; }
.growth { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; }
.growth-line { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.2s var(--ease); }
.growth-area { opacity: 0; transition: opacity 1.2s .8s; }
.in .growth-line { stroke-dashoffset: 0; }
.in .growth-area { opacity: 1; }
.avatars { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.avatars img { width: 100%; height: 56px; object-fit: contain; padding: 12px; background: var(--card-2); border-radius: 12px; filter: grayscale(1) brightness(2.2); opacity: .7; }
.years { margin-top: auto; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; align-items: end; height: 90px; }
.years span { background: var(--card-2); border-radius: 4px; height: 0; transition: height 1s var(--ease), background .6s; }
.in .years span { background: linear-gradient(0deg, var(--blue), var(--violet) 60%, var(--magenta)); }
.in .years span:nth-child(1) { height: 10%; } .in .years span:nth-child(2) { height: 18%; transition-delay: .05s; }
.in .years span:nth-child(3) { height: 26%; transition-delay: .1s; } .in .years span:nth-child(4) { height: 34%; transition-delay: .15s; }
.in .years span:nth-child(5) { height: 44%; transition-delay: .2s; } .in .years span:nth-child(6) { height: 54%; transition-delay: .25s; }
.in .years span:nth-child(7) { height: 64%; transition-delay: .3s; } .in .years span:nth-child(8) { height: 76%; transition-delay: .35s; }
.in .years span:nth-child(9) { height: 88%; transition-delay: .4s; } .in .years span:nth-child(10) { height: 100%; transition-delay: .45s; }
.r-head { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.marquee { margin: auto -28px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track img { height: 34px; width: auto; filter: grayscale(1) brightness(2.4); opacity: .6; }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* Portfolio list */
.portfolio { border-top: 1px solid var(--line); }
.work {
  display: grid; grid-template-columns: 1fr 2fr 1.2fr; gap: 32px; align-items: center;
  padding: 32px 0; border-bottom: 1px solid var(--line); position: relative;
}
.work::before { content: ""; position: absolute; inset: 0 -16px; background: var(--card); border-radius: 16px; opacity: 0; transition: opacity .4s; z-index: -1; }
.work:hover::before { opacity: 1; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; align-self: start; padding-top: 10px; }
.work-tags span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .25px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 100px; color: var(--dim); }
.work-main { display: flex; flex-direction: column; gap: 14px; }
.work-title { transition: color .3s, transform .5s var(--ease); }
.work:hover .work-title { color: var(--accent); transform: translateX(8px); }
.work-desc { color: var(--dim); max-width: 56ch; }
.work-img { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--card-2); display: grid; place-items: center; border: 1px solid var(--line); }
.work-img.light { background: #f4f1ec; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-img .logo-img { width: 60%; height: auto; object-fit: contain; filter: grayscale(1) brightness(2.4); opacity: .8; }
.work:hover .work-img img { transform: scale(1.05); }
.work-word { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4vw, 56px); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Services */
.services { display: flex; flex-direction: column; gap: 16px; }
.service {
  display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 40px; align-items: center;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  position: sticky; top: 100px;
}
.service:nth-child(2) { top: 120px; }
.service:nth-child(3) { top: 140px; }
.service-copy { display: flex; flex-direction: column; gap: 16px; }
.service-copy .card-stat { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; font-size: clamp(40px, 4vw, 56px); }
.service-art { width: min(160px, 100%); justify-self: center; }
.service-list { display: grid; }
.service-list li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; transition: color .25s, padding .35s var(--ease); }
.service-list li:first-child { border-top: 1px solid var(--line); }
.service-list li .mono { color: var(--accent); }
.service-list li:hover { color: var(--accent); padding-left: 8px; }

/* Testimonials */
.t-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.t-card { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.t-card blockquote { color: #ffffffd9; font-size: 16px; line-height: 1.6; }
.t-feature { grid-column: span 2; grid-row: span 2; padding: 0; overflow: hidden; gap: 0; }
.t-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.t-body { padding: 28px; display: flex; flex-direction: column; gap: 24px; flex: 1; justify-content: space-between; }
.t-feature blockquote { font-size: clamp(18px, 1.6vw, 22px); color: #fff; }
.t-stat { justify-content: space-between; gap: 12px; }
.t-stat p:last-child { color: #ffffffb3; font-size: 15px; }
.t-grid > .t-card:nth-child(n+4) { grid-column: span 4 / span 4; }
.t-who { display: flex; flex-direction: column; gap: 4px; }
.t-who strong { font-family: var(--display); font-weight: 700; }
@media (min-width: 1000px) {
  /* feature: left half, rows 1-2 · stats + one quote fill the right half · two quotes below */
  .t-feature { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .t-grid > .t-card:nth-child(4) { grid-column: 3 / span 2; grid-row: 2; }
  .t-grid > .t-card:nth-child(5) { grid-column: 1 / span 2; }
  .t-grid > .t-card:nth-child(6) { grid-column: 3 / span 2; }
}

/* CTA */
.cta { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(50% 70% at 50% 100%, #7029f62e, transparent 70%); }
.cta .buttons { justify-content: center; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; max-width: 1440px; }
.faq-grid .head { position: sticky; top: 120px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: clamp(17px, 1.5vw, 20px); transition: color .25s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .3s, border-color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.faq details[open] summary { color: var(--accent); }
.faq details[open] summary i { background: var(--grad); border-color: transparent; color: #fff; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { color: var(--dim); padding: 0 52px 24px 0; }
.faq details a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.footer { background: linear-gradient(120deg, #353cf8 0%, #7029f6 50%, #b514f5 100%); color: #fff; padding-top: 64px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-col .mono { opacity: .7; margin-bottom: 6px; }
.footer-col a { transition: opacity .2s; }
.footer-col a:hover { opacity: .6; }
.footer-cta { align-items: flex-end; justify-content: flex-start; }
.footer { transition: background .6s var(--ease), color .6s var(--ease); }
.footer-logo {
  font-family: var(--display); font-size: 13.5vw; line-height: 1; letter-spacing: -.05em; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: .06em;
  margin: 40px 0 -1.2vw; white-space: nowrap;
}

/* Wordmark switch — sits between "Build" and "Quick", sized off the wordmark */
.switch-wrap { position: relative; display: inline-flex; font-size: 1em; }
.switch {
  width: 1.32em; height: .6em; padding: .06em; border-radius: 999px;
  background: #000; display: flex; align-items: center;
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
  box-shadow: inset 0 0 0 .012em #ffffff33;
}
.switch-dot {
  height: 100%; aspect-ratio: 1; border-radius: 50%; background: #fff;
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), background .5s var(--ease);
}
.switch:hover .switch-dot { transform: translateX(.06em) scale(1.04); }
.switch[aria-checked="true"] { background: #fff; }
.switch[aria-checked="true"] .switch-dot { transform: translateX(.72em); background: var(--grad); }
.switch[aria-checked="true"]:hover .switch-dot { transform: translateX(.66em) scale(1.04); }
.switch:focus-visible { outline: .02em solid #fff; outline-offset: .04em; }

.switch-tip {
  position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translate(-50%, 8px);
  font-size: 12px; letter-spacing: .25px; white-space: nowrap; line-height: 1;
  background: #000; color: #fff; padding: 9px 12px; border-radius: 100px;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.switch-tip::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #000; }
.switch-wrap.show-tip .switch-tip { opacity: 1; transform: translate(-50%, 0); animation: tip-bob 1.6s ease-in-out infinite .4s; }
@keyframes tip-bob { 50% { transform: translate(-50%, -5px); } }

/* Footer "dark" state, flipped by the switch */
.footer.is-dark { background: #000; }
.footer.is-dark .footer-logo > span[aria-hidden] { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer.is-dark .btn-dark { background: var(--grad); }
.footer.is-dark .footer-base { border-color: var(--line); }
.footer.is-dark .switch-tip { background: #fff; color: #000; }
.footer.is-dark .switch-tip::after { border-top-color: #fff; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 16px; padding-bottom: 20px; border-top: 1px solid #ffffff40; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .app-card { min-height: 360px; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .r-big:first-child { grid-column: 1 / -1; }
  .r-marquee { grid-column: 1 / -1; }
  .service { grid-template-columns: 1fr 1fr; }
  .service-art { display: none; }
  .t-grid { grid-template-columns: 1fr 1fr; }
  .t-grid > .t-card:nth-child(n+4) { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .nav-clock { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .hero-copy { width: 100%; }
  .hero-fade { background: linear-gradient(0deg, #000 10%, #000a 60%, #0005 100%); }
  /* phones: the B gets its own space above the copy instead of sitting behind it */
  .hero { align-items: flex-end; padding-top: calc(72px + 34svh); padding-bottom: 72px; }
  .hero-3d { top: 72px; bottom: auto; left: 0; right: 0; width: 100%; height: 36svh; filter: drop-shadow(0 16px 40px #7029f680); }
  .menu-inner, .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .head { position: static; }
  .sticky-wrap { height: auto; }
  .sticky-box { position: static; grid-template-columns: 1fr; min-height: 0; gap: 24px; }
  .step-tabs, .step-progress { display: none; }
  .step-stage { min-height: 0; display: grid; gap: 48px; }
  .step { position: static; opacity: 1; transform: none; }
  .step-num { font-size: 80px; }
  .work { grid-template-columns: 1fr; gap: 16px; }
  .work-tags { order: 2; padding-top: 0; }
  .work-main { order: 1; }
  .work-img { order: 3; }
  .service { grid-template-columns: 1fr; position: static; gap: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .cards-grid, .results-grid, .t-grid { grid-template-columns: 1fr; }
  .t-feature { grid-column: auto; }
  .r-card { min-height: 280px; }
  .faq details p { padding-right: 0; }
}

@media (max-width: 560px) {
  .switch-tip { font-size: 10px; padding: 6px 9px; bottom: calc(100% + 8px); }
}


/* ===== Fixes: hero chips, featured work + tiles, client brand panel ===== */
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hero-chips li { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .25px; color: #ffffffb3; padding: 6px 12px; border: 1px solid #ffffff26; border-radius: 100px; background: #0000004d; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.work-tags:empty { display: none; }
.portfolio .work { grid-template-columns: 1fr 1.6fr 1.6fr; padding: 40px 0; }
.portfolio .work-img { aspect-ratio: 16 / 11; }
.more-work { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.mini-work { display: flex; flex-direction: column; gap: 16px; }
.mini-art {
  aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  display: grid; place-items: center; position: relative;
  background: radial-gradient(80% 80% at 30% 20%, #7029f62e, transparent 70%), var(--card);
  transition: border-color .4s, transform .5s var(--ease);
}
.mini-art::after { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; mix-blend-mode: soft-light; transition: opacity .5s; }
.mini-work:hover .mini-art { border-color: #7029f699; transform: translateY(-4px); }
.mini-work:hover .mini-art::after { opacity: .6; }
.mini-art img { width: 58%; max-height: 46%; object-fit: contain; filter: brightness(0) invert(1); opacity: .85; transition: filter .5s, opacity .5s, transform .6s var(--ease); }
.mini-work:hover .mini-art img { filter: none; opacity: 1; transform: scale(1.04); }
.mini-art .work-word { font-size: clamp(28px, 3vw, 44px); }
.work-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 48px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius);
  background: radial-gradient(80% 140% at 100% 50%, #b514f540, transparent 60%), radial-gradient(60% 120% at 0% 0%, #353cf833, transparent 60%), var(--card);
  border: 1px solid #7029f666;
}
.work-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 60%, #353cf8 72%, #7029f6 84%, #b514f5 94%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin-ang 5s linear infinite;
}
.work-cta-copy { display: flex; flex-direction: column; gap: 10px; }
.work-cta-copy .tag { margin: 0; }
.work-cta-title { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -.02em; color: #fff; }

.t-brand {
  aspect-ratio: 21 / 9; display: grid; place-items: center;
  background: linear-gradient(120deg, #353cf8 0%, #7029f6 50%, #b514f5 100%);
}
.t-brand img { width: 44%; filter: brightness(0) invert(1); }

@media (max-width: 1100px) { .more-work { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) { .portfolio .work { grid-template-columns: 1fr; padding: 24px 0; } }


/* =====================================================================
   Motion layer: intro, smooth scroll, cursor, grain, ambient, reveals
   ===================================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Intro — logo mark builds from pixel blocks, then wipes up */
.intro {
  position: fixed; inset: 0; z-index: 1000; background: #000;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  clip-path: inset(0 0 0 0); transition: clip-path .9s cubic-bezier(.76, 0, .24, 1);
}
.intro-mark { width: 64px; height: auto; overflow: visible; }
.intro-mark rect { opacity: 0; transform: scale(.1); transform-box: fill-box; transform-origin: center; animation: block-in .4s var(--ease) forwards; animation-delay: calc(var(--i) * 24ms); }
@keyframes block-in { to { opacity: 1; transform: none; } }
.intro-word { color: var(--dim); opacity: 0; letter-spacing: .3em; animation: intro-word .6s .55s var(--ease) forwards; }
@keyframes intro-word { from { letter-spacing: .8em; } to { opacity: 1; letter-spacing: .3em; } }
.intro-bar { width: 140px; height: 2px; border-radius: 2px; background: #ffffff1a; overflow: hidden; opacity: 0; animation: intro-word-fade .4s .6s forwards; }
.intro-bar i { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; animation: intro-fill 1.4s .6s linear forwards; }
@keyframes intro-word-fade { to { opacity: 1; } }
@keyframes intro-fill { to { transform: none; } }
.intro.is-done { clip-path: inset(0 0 100% 0); }
.intro.is-gone, html.no-intro .intro, html:not(.js) .intro { display: none; }

/* Ambient colour that drifts blue → violet → magenta as you scroll */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.ambient span { position: absolute; inset: 0; opacity: 0; transition: opacity .3s linear; }
.amb-blue    { background: radial-gradient(45% 50% at 85% 20%, #353cf82e, transparent 70%); opacity: 1; }
.amb-violet  { background: radial-gradient(45% 50% at 15% 50%, #7029f62e, transparent 70%); }
.amb-magenta { background: radial-gradient(45% 50% at 80% 80%, #b514f529, transparent 70%); }

/* Film grain */
.grain-overlay {
  position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(5) infinite;
}
@keyframes grain { /* shift the tile, not the layer, so nothing extends past the screen */
  0% { background-position: 0 0; } 20% { background-position: -37px 23px; } 40% { background-position: 29px -41px; }
  60% { background-position: -17px -11px; } 80% { background-position: 43px 31px; } 100% { background-position: 0 0; }
}

/* Scroll progress */
.scroll-progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* Custom cursor */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 950; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center; opacity: 0;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), opacity .3s, background .3s, box-shadow .3s;
  will-change: transform;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: transparent; box-shadow: inset 0 0 0 1.5px #b514f5; }
.cursor.is-label { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--grad); box-shadow: 0 10px 40px -8px #7029f6aa; }
.cursor-label { font-family: var(--mono); font-size: 11px; letter-spacing: .25px; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Split-word headline reveals */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em 0; margin-bottom: -.12em; }
.split .wi { display: inline-block; transform: translateY(115%) rotate(4deg); transform-origin: left bottom; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 32ms); }
.in .split .wi, .split.in .wi { transform: none; }

/* Hero entrance (after intro) */
.js .hero-copy > :not(h1) { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero.is-in .hero-copy > :not(h1) { opacity: 1; transform: none; }
.hero.is-in .hero-copy > :nth-child(2) { transition-delay: .5s; }
.hero.is-in .hero-copy > :nth-child(3) { transition-delay: .6s; }
.hero.is-in .hero-copy > :nth-child(4) { transition-delay: .7s; }
.hero.is-in .hero-copy > :nth-child(5) { transition-delay: .8s; }
.hero.is-in .hero-copy > :nth-child(6) { transition-delay: .9s; }
.js .hero-copy > :first-child { transition-delay: .1s; }
.hero-inner { perspective: 1400px; }
.hero-copy { transform-style: preserve-3d; transition: transform .8s var(--ease); will-change: transform; }

/* Magnetic buttons + gradient sweep */
.btn { will-change: transform; }
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, #ffffff66 50%, transparent 75%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }

/* Cursor-following border glow on cards */
.t-card { position: relative; }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; padding: 1px;
  background: radial-gradient(280px circle at var(--mx, -500px) var(--my, -500px), #b514f5, #7029f6 35%, #353cf8 55%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s var(--ease);
}
.glow:hover::before { opacity: 1; }

/* Marquee driven by JS (speeds up with scroll, pauses on hover) */
.marquee-track.js-driven { animation: none; will-change: transform; }

/* Menu: blurred backdrop + staggered links */
.menu { background: #000000b3; backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3); }
.menu-links li { overflow: hidden; }
.menu-links a { transform: translateY(105%); transition: transform .8s var(--ease) var(--d, 0s), color .25s, padding .35s var(--ease); }
.menu-open .menu-links a { transform: none; }
.menu-links li:nth-child(1) a { --d: .12s; } .menu-links li:nth-child(2) a { --d: .17s; } .menu-links li:nth-child(3) a { --d: .22s; }
.menu-links li:nth-child(4) a { --d: .27s; } .menu-links li:nth-child(5) a { --d: .32s; } .menu-links li:nth-child(6) a { --d: .37s; }
.menu-side { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease) .4s, transform .6s var(--ease) .4s; }
.menu-open .menu-side { opacity: 1; transform: none; }


/* =====================================================================
   Touch & phone motion (no mouse needed)
   ===================================================================== */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-ang { to { --ang: 360deg; } }
@keyframes shine { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }

/* Card that's centred on screen gets a rotating gradient border */
.touch .glow::before {
  background: conic-gradient(from var(--ang), transparent 0 55%, #353cf8 68%, #7029f6 80%, #b514f5 92%, transparent 100%);
  animation: spin-ang 3.5s linear infinite;
}
.touch .glow.is-center::before { opacity: 1; }
.touch .glow { transition: border-color .5s var(--ease), box-shadow .6s var(--ease); }
.touch .glow.is-center { box-shadow: 0 20px 60px -30px #7029f6aa; }

/* Automatic shine on gradient buttons + tap feedback */
.touch .btn-primary::after { animation: shine 3.8s var(--ease) infinite 1.5s; }
.touch .btn:active, .touch .round-btn:active, .touch .switch:active { transform: scale(.95); }
.touch .faq summary:active { opacity: .7; }

/* Hero parallax as you scroll away (all devices) */
.hero-inner, .hero-canvas { will-change: transform; }

@media (max-width: 800px) {
  .brand { font-size: 19px; gap: 10px; }
  .brand img { height: 30px; }

  /* Why Us: keep the pinned, scroll-driven steps on phones */
  .sticky-wrap { height: 260vh; }
  .sticky-box {
    position: sticky; top: 76px; min-height: calc(100svh - 110px);
    grid-template-columns: 1fr; gap: 24px; align-content: center; padding-top: 24px;
  }
  .step-tabs { display: flex; gap: 8px; }
  .step-tabs li { border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px; font-size: 12px; }
  .step-tabs li.is-active { border-color: var(--violet); background: #7029f622; color: #fff; }
  .step-stage { display: block; min-height: 300px; }
  .step { position: absolute; opacity: 0; transform: translateY(30px); }
  .step.is-active { opacity: 1; transform: none; }
  .step-num { font-size: 104px; }
  .step-progress { display: block; }

  /* Services: stacking cards on phones too */
  .service { position: sticky; top: 76px; gap: 20px; }
  .service:nth-child(2) { top: 92px; }
  .service:nth-child(3) { top: 108px; }

  /* Other projects: 2x2 logo grid on phones */
  .more-work { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .mini-art img { width: 66%; }

  /* Mission cards: compact rows (icon + text) instead of a carousel */
  .cards-grid { grid-template-columns: 1fr; gap: 10px; }
  .app-card { flex-direction: row; align-items: center; min-height: 0; }
  .app-art { flex: 0 0 96px; align-self: stretch; border-bottom: 0; border-right: 1px solid var(--line); }
  .app-art img { width: 52px; height: 52px; filter: none; }
  .card-copy { padding: 18px 18px 18px 20px; gap: 6px; }
  .card-copy p:last-child { font-size: 14px; line-height: 1.55; }

  /* Hero chips scroll as a strip */
  .hero-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); }
  .hero-chips::-webkit-scrollbar { display: none; }
  .hero-chips li { flex: none; }
}



/* ===== Contact popup ===== */
.contact-modal { position: fixed; inset: 0; z-index: 940; display: grid; place-items: center; padding: 16px; }
.contact-modal[hidden] { display: none; }
[hidden] { display: none !important; } /* component display rules must never override the hidden attribute */
.contact-scrim { position: absolute; inset: 0; background: #000000a6; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .5s var(--ease); }
.contact-panel {
  position: relative; width: min(860px, 100%); max-height: calc(100svh - 32px); overflow: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; padding: clamp(24px, 4vw, 44px);
  overflow-x: hidden;
  background: #0b0b0b; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 40px 120px -30px #7029f680;
  opacity: 0; transform: translateY(40px) scale(.96); transition: opacity .55s var(--ease), transform .7s var(--ease);
}
.contact-panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 55%, #353cf8 68%, #7029f6 80%, #b514f5 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin-ang 4s linear infinite;
}
.contact-modal.is-open .contact-scrim { opacity: 1; }
.contact-modal.is-open .contact-panel { opacity: 1; transform: none; }
.contact-intro { display: flex; flex-direction: column; gap: 18px; align-self: start; padding-top: 8px; }
.contact-intro .title-l { font-size: clamp(28px, 3vw, 40px); }
.contact-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; z-index: 2; transition: background .3s, transform .4s var(--ease); }
.contact-close:hover { background: #ffffff14; transform: rotate(90deg); }
.contact-close i { position: absolute; width: 14px; height: 1.5px; background: #fff; transform: rotate(45deg); }
.contact-close i + i { transform: rotate(-45deg); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-family: var(--mono); font-size: 11px; letter-spacing: .25px; text-transform: uppercase; color: var(--dim); padding: 0; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: #fff; background: #ffffff0a; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; outline: none; transition: border-color .3s, background .3s, box-shadow .3s; resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--violet); background-color: #7029f60f; box-shadow: 0 0 0 4px #7029f622; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff5d7a; }
.service-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.service-chips label { cursor: pointer; }
.service-chips input { position: absolute; opacity: 0; pointer-events: none; }
.service-chips span { display: inline-block; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line); font-size: 14px; color: #ffffffcc; transition: background .3s, border-color .3s, color .3s, transform .2s; }
.service-chips label:hover span { border-color: #7029f699; }
.service-chips input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.service-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.service-chips label:active span { transform: scale(.95); }
.contact-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.contact-actions .btn[disabled] { opacity: .6; pointer-events: none; }
.form-status { color: #ff8da1; min-height: 1em; }
.contact-done { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; justify-content: center; }
.contact-done a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; animation: pop .6s cubic-bezier(.34, 1.56, .64, 1); }
.done-mark svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .25s var(--ease) forwards; }
@keyframes pop { from { transform: scale(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 800px) {
  .contact-modal { place-items: end center; padding: 0; }
  .contact-panel {
    grid-template-columns: 1fr; gap: 24px; width: 100%; max-height: 92svh;
    border-radius: 24px 24px 0 0; padding: 28px var(--pad) calc(24px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .contact-panel::after { content: ""; position: absolute; top: 10px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #ffffff33; }
  .contact-intro .title-l { font-size: 28px; padding-right: 44px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .intro, .cursor, .grain-overlay { display: none !important; }
  .split .wi, .menu-links a, .menu-side, .js .hero-copy > :not(h1) { transform: none !important; opacity: 1 !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .growth-line { stroke-dashoffset: 0; }
}

/* ===== Inline contact form (Let's Talk) ===== */
.contact-inline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-inline .contact-intro { position: sticky; top: 110px; gap: 20px; }
.contact-inline .contact-intro .title-xl { font-size: clamp(38px, 4.4vw, 56px); }
.contact-card {
  position: relative; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius);
  background: #0b0b0b; border: 1px solid var(--line); box-shadow: 0 40px 120px -40px #7029f666;
}
.contact-card .contact-done { min-height: 360px; }
@media (max-width: 900px) {
  .contact-inline { grid-template-columns: 1fr; }
  .contact-inline .contact-intro { position: static; }
}
@media (max-width: 800px) {
  .work-cta .btn { width: 100%; justify-content: center; }
}
.contact-inline .buttons { justify-content: flex-start; }

/* ===== Legal / 404 pages ===== */
.doc-page { min-height: 100svh; display: flex; flex-direction: column; }
.doc-nav { border-bottom: 1px solid var(--line); padding: 16px 0; }
.doc-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.doc { flex: 1; max-width: 760px; padding-top: 72px; padding-bottom: 96px; }
.doc > .tag { margin-bottom: 16px; }
.doc > .mono.dim { margin: 12px 0 40px; }
.doc h2 { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -.01em; margin: 40px 0 12px; }
.doc p, .doc li { color: #ffffffcc; line-height: 1.7; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; display: grid; gap: 8px; margin-top: 12px; list-style: disc; }
.doc a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: #fff; }
.doc-404 { min-height: 60svh; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.doc-404 .buttons { margin-top: 8px; }
.doc-404 a { text-decoration: none; }
.doc-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--line); color: var(--dim); }
.doc-foot a:hover { color: #fff; }

/* Budget / timeline selects */
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, #ffffff99 50%), linear-gradient(-45deg, transparent 50%, #ffffff99 50%);
  background-position: right 18px center, right 13px center; background-size: 5px 5px; background-repeat: no-repeat;
}
.field select:invalid, .field select option[value=""] { color: var(--dim); }
.field select option { background: #0b0b0b; color: #fff; }

/* ===== Process ===== */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.p-step {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 32px;
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.p-step .mono { color: var(--accent); }
.p-step p { color: #ffffffb3; font-size: 15px; line-height: 1.6; }
.p-step::after { /* connector line to the next step */
  content: ""; position: absolute; top: 38px; right: -17px; width: 18px; height: 1px; background: var(--grad);
}
.p-step:last-child::after { display: none; }
@media (max-width: 1100px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-step:last-child { grid-column: 1 / -1; }
  .p-step::after { display: none; }
}
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* Footer legal links */
.footer-legal { display: inline-flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a:hover { opacity: .6; }

/* ===== Floating WhatsApp (phones) ===== */
.wa-float { display: none; }
@media (max-width: 800px) {
  .wa-float {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80;
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: #25d366; color: #fff; box-shadow: 0 10px 30px -6px #25d36699, 0 0 0 1px #ffffff1f;
    opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
    transition: opacity .4s var(--ease), transform .5s cubic-bezier(.34, 1.56, .64, 1);
  }
  .wa-float svg { width: 28px; height: 28px; fill: currentColor; }
  .wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .wa-float:active { transform: scale(.92); }
}

/* Popup: compact enough to fit a laptop screen without scrolling; scrollbar hidden if a tiny screen still needs it */
.contact-panel { scrollbar-width: none; padding: 32px 36px; gap: 36px; align-items: start; }
.contact-panel::-webkit-scrollbar { display: none; }
.contact-panel .contact-form { gap: 10px; }
.contact-panel .field { gap: 4px; }
.contact-panel .field > span, .contact-panel .field legend { margin-bottom: 2px; font-size: 10.5px; }
.contact-panel .field input, .contact-panel .field select { padding: 9px 12px; font-size: 15px; border-radius: 10px; }
.contact-panel .field textarea { padding: 9px 12px; font-size: 15px; border-radius: 10px; height: 76px; min-height: 60px; }
.contact-panel .field-row { gap: 10px; }
.contact-panel .service-chips { gap: 6px; }
.contact-panel .service-chips span { padding: 6px 11px; font-size: 13px; }
.contact-panel .contact-actions { margin-top: 2px; }
.contact-panel .form-status:empty { display: none; }
@media (max-width: 800px) {
  .contact-panel { padding: 28px var(--pad) calc(20px + env(safe-area-inset-bottom)); gap: 20px; }
}

/* ===== Generated SEO pages (services, insights, about, work, location) ===== */
.sub-page { background: radial-gradient(60% 40% at 80% 0%, #7029f62a, transparent 70%), var(--black); }
.sub-nav { position: sticky; top: 0; z-index: 100; background: #000000c4; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.sub-nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.sub-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.sub-links a { color: #ffffffcc; transition: color .2s; }
.sub-links a:hover { color: var(--accent); }
.sub-cta { padding: 10px 18px; font-size: 13px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--dim); margin-bottom: 28px; text-transform: uppercase; letter-spacing: .25px; }
.crumbs a:hover { color: #fff; }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs span { color: #ffffffb3; }
.sub-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 64px); }
.sub-hero .tag { margin-bottom: 18px; }
.sub-hero h1 { max-width: 20ch; }
.sub-hero-article h1 { max-width: 28ch; }
.sub-lead { margin-top: 24px; max-width: 64ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: #ffffffcc; }
.sub-hero .buttons { margin-top: 32px; }
.sub-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.sub-facts li { padding: 20px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.sub-facts strong { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.4vw, 34px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.sub-facts span { color: var(--dim); font-size: 14px; }
.sub-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sub-sec.section { padding: clamp(56px, 7vw, 100px) 0; border-top: 1px solid var(--line); }
.sub-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; max-width: 760px; }
.sub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sub-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.sub-card p { color: #ffffffb3; font-size: 15px; line-height: 1.6; }
.sub-card p a, .prose a, .faq details p a, .sub-address a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sub-card > .mono { color: var(--accent); }
.sub-link-card:hover, a.sub-project:hover { border-color: #7029f699; transform: translateY(-4px); }
.sub-link-card img { width: 48px; height: 48px; }
.sub-more { margin-top: auto; padding-top: 8px; color: var(--accent); font-size: 13px; }
.sub-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.sub-split .sub-head { margin-bottom: 0; }
.sub-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sub-list li { padding: 16px 18px 16px 44px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); position: relative; color: #ffffffd9; }
.sub-list li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }
.sub-chips { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.sub-chips li { padding: 10px 16px; border-radius: 100px; border: 1px solid var(--line); background: #ffffff08; color: #ffffffd9; font-size: 15px; }
.sub-why { display: grid; gap: 12px; margin-top: 8px; color: #ffffffb3; }
.sub-why strong { color: #fff; }
.sub-quote { margin: 0; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: radial-gradient(80% 120% at 100% 0%, #7029f633, transparent 60%), var(--card); border: 1px solid #7029f655; display: flex; flex-direction: column; gap: 20px; }
.sub-quote blockquote { margin: 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: #fff; }
.sub-quote figcaption { display: flex; flex-direction: column; gap: 4px; }
.sub-quote figcaption strong { font-family: var(--display); }
.sub-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sub-project-logo { aspect-ratio: 16 / 7; border-radius: 16px; background: radial-gradient(80% 80% at 30% 20%, #7029f62e, transparent 70%), #0a0a0a; border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 8px; }
.sub-project-logo img { width: 56%; max-height: 52%; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }
.sub-address address { font-style: normal; color: #ffffffcc; line-height: 1.7; }
.sub-cta-sec { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.sub-cta-sec .work-cta { margin-top: 0; }
.sub-cta-sec .work-cta .dim { margin-top: 2px; }
/* Articles */
.sub-meta { margin-top: 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .25px; }
.sub-answer { margin-top: 32px; padding: 24px 28px; border-radius: 20px; background: #7029f614; border: 1px solid #7029f666; max-width: 72ch; }
.sub-answer .mono { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .25px; margin-bottom: 8px; }
.sub-answer p:last-child { font-size: 18px; line-height: 1.65; color: #fff; }
.prose { max-width: 760px; padding-bottom: clamp(48px, 6vw, 80px); }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.01em; margin: 48px 0 14px; line-height: 1.25; }
.prose p, .prose li { color: #ffffffcc; font-size: 17px; line-height: 1.75; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { display: grid; gap: 8px; margin: 14px 0; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose strong { color: #fff; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: #ffffffcc; }
.prose th { color: #fff; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .25px; font-weight: 500; }
/* Footer */
.sub-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, #7029f614); padding-top: 64px; }
.sub-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.sub-footer-grid > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sub-footer-grid .mono { color: var(--dim); margin-bottom: 6px; font-size: 12px; text-transform: uppercase; }
.sub-footer-grid a { color: #ffffffcc; }
.sub-footer-grid a:hover { color: var(--accent); }
.sub-footer-brand p, .sub-footer-brand address { color: var(--dim); font-style: normal; font-size: 14px; line-height: 1.6; margin-top: 8px; }
.sub-footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.sub-footer-base a:hover { color: #fff; }
@media (max-width: 1000px) {
  .sub-grid { grid-template-columns: 1fr 1fr; }
  .sub-split, .sub-quotes { grid-template-columns: 1fr; }
  .sub-footer-grid { grid-template-columns: 1fr 1fr; }
  .sub-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .sub-nav-inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 10px; gap: 10px 16px; }
  .sub-cta { margin-left: auto; }
  .sub-links { order: 3; width: 100%; margin: 0; gap: 22px; overflow-x: auto; scrollbar-width: none; font-size: 14px; }
  .sub-grid, .sub-list { grid-template-columns: 1fr; }
  .sub-facts { grid-template-columns: 1fr 1fr; }
  .sub-results { grid-template-columns: 1fr 1fr; }
  .sub-hero .buttons .btn { flex: 1 1 auto; justify-content: center; }
  .sub-cta-sec .work-cta .buttons { width: 100%; }
}
