/* Two Mixologists Innovations: shared design system (dark-first).
   Used by the homepage and the company legal pages. The Hey Bartender pages keep
   their own product stylesheet on purpose: they belong to the app, not the company. */

/* Self-hosted so the site makes no third-party font requests (privacy, and the
   planned German version must not load Google Fonts). Variable weight 300–800,
   latin subset, ~29 KB. License: assets/fonts/OFL.txt */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fonts/geist-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;

  /* Surfaces: three clearly separated levels */
  --bg: #090D16;
  --bg-2: #111827;
  --surface: #172033;
  --surface-hi: #1D2840;

  /* Lines. --line is decorative only; --line-strong is used where a border
     identifies a control, so it clears 3:1 against every surface. */
  --line: #263248;
  --line-mid: #334155;
  --line-strong: #64748B;

  /* Text (all ≥ 4.5:1 on --surface, checked in the PR) */
  --text: #F8FAFC;
  --text-2: #CBD5E1;
  --muted: #94A3B8;

  /* Brand */
  --action: #2563EB;
  --action-hover: #1D4ED8;
  --action-press: #1E40AF;
  --accent: #60A5FA;
  --highlight: #38BDF8;
  --ok: #4ADE80;
  --warn: #FBBF24;

  --font: 'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1200px;
  --gutter: 24px;
  --header-h: 70px;

  /* The site's original motion curve, kept so every existing interaction feels the same */
  --ease: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-curve: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-md: 0 12px 32px -14px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 32px 64px -28px rgba(0, 0, 0, 0.75);
  --glow: 0 0 0 1px rgba(96, 165, 250, 0.35), 0 10px 40px -12px rgba(37, 99, 235, 0.55);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
main[id], section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3, h4 { color: var(--text); font-weight: 650; line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 0.5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--action); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Visible on every surface, never colour/glow alone */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }

/* ============ Buttons (same lift / press behaviour as v1) ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px; border-radius: 12px;
  font: 600 15px/1.2 var(--font); letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--action); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 24px -10px rgba(37, 99, 235, 0.7); }
.btn-primary:hover { background: var(--action-hover); transform: translateY(-1px); box-shadow: var(--glow); }
.btn-primary:active { background: var(--action-press); }
.btn-ghost { background: rgba(23, 32, 51, 0.6); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-1px); }
.btn-ghost:active { background: var(--bg-2); }
/* Pressed state: the only feedback touch devices get, since they never hover */
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn .arrow { transition: transform var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.case-link { align-self: center; font-size: 14.5px; }
.text-link { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { color: #93C5FD; text-decoration: underline; text-underline-offset: 3px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 13, 22, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), background var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(9, 13, 22, 0.88); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.brand-name { font-weight: 650; font-size: 15px; color: var(--text); line-height: 1.2; letter-spacing: -0.01em; }
.brand-name small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 550; color: var(--text-2); transition: color var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav .btn { min-height: 40px; padding: 9px 18px; font-size: 14.5px; }
.nav-links .nav-cta { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 12px; cursor: pointer; color: var(--text);
  transition: border-color var(--ease), background var(--ease);
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle:active { background: var(--bg-2); }
.nav-toggle .bars { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 5px; }
.nav-toggle .bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ============ Sections ============ */
section { padding: 112px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2, .section-title { font-size: clamp(32px, 4.4vw, 52px); }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden; padding: 120px 0 112px;
  background:
    radial-gradient(60% 55% at 82% 0%, rgba(37, 99, 235, 0.28), transparent 62%),
    radial-gradient(40% 40% at 8% 20%, rgba(56, 189, 248, 0.10), transparent 60%),
    var(--bg);
}
/* Faint engineering grid, faded out toward the edges */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(70% 70% at 60% 30%, #000 30%, transparent 80%);
}
.hero-inner { position: relative; max-width: 940px; }
/* ============ Logo ============
   Interlocking mark (branding/logo-mark.svg in company-brain): white and blue
   halves for the two founders. Header/footer: static, halves part slightly on
   hover. Hero: the halves slide together once on load, then the wordmark fades
   in; static under reduced motion (see kill switch below). */
.brand .brand-mark { width: 36px; height: 34px; flex: none; overflow: visible; }
.tm-l, .tm-r { transform-box: fill-box; transform-origin: center; }
.brand:hover .tm-l { animation: tm-nudge-l 520ms var(--ease-curve); }
.brand:hover .tm-r { animation: tm-nudge-r 520ms var(--ease-curve); }
@keyframes tm-nudge-l { 50% { transform: translateX(-12px); } }
@keyframes tm-nudge-r { 50% { transform: translateX(12px); } }

.hero-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.hero-logo .tm-mark { width: 67px; height: 64px; flex: none; overflow: visible; }
.hero-logo-word { display: flex; flex-direction: column; gap: 6px; line-height: 1; }
.hl-name { font-size: 19px; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text); }
.hl-sub { font-size: 11.5px; font-weight: 500; letter-spacing: 0.45em; text-transform: uppercase; color: var(--muted); }

/* Timing adapted from the brain's 4s loop study (pieces in 10–35%, words
   27–45%), played once and shortened so the hero settles in about a second. */
.tm-anim .tm-l { animation: tm-left 720ms cubic-bezier(0.34, 1.4, 0.64, 1) 120ms both; }
.tm-anim .tm-r { animation: tm-right 720ms cubic-bezier(0.34, 1.4, 0.64, 1) 120ms both; }
.hero-logo-word { animation: tm-word 560ms var(--ease-curve) 640ms both; }
@keyframes tm-left { from { opacity: 0; transform: translateX(-68px); } }
@keyframes tm-right { from { opacity: 0; transform: translateX(68px); } }
@keyframes tm-word { from { opacity: 0; transform: translateY(7px); } }

.hero h1 { font-size: clamp(42px, 7.2vw, 88px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 26px; }
.hero h1 .accent {
  color: var(--highlight);
  background: linear-gradient(100deg, #60A5FA 0%, #38BDF8 60%, #7DD3FC 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* Split letters carry their own colour; a clipped gradient doesn't survive the split */
.hero h1 .accent .l { -webkit-text-fill-color: var(--highlight); }
.hero .lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--text-2); max-width: 640px; margin-bottom: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-cta .btn { min-height: 52px; padding: 14px 26px; font-size: 16px; }
/* Hero illustration: isometric "</>" plates over a perspective grid. A background
   layer on wide screens; on narrow screens it sits under the buttons. Inline SVG,
   so it costs no request and stays sharp. */
.hero-art { position: absolute; z-index: -1; top: 160px; right: -285px; width: min(600px, 44vw); pointer-events: none; }
.hero-inner { isolation: isolate; }
.hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.ha-top { animation: ha-float 7s ease-in-out infinite; }
.ha-nodes circle { animation: ha-pulse 3.5s ease-in-out infinite; }
.ha-nodes circle:nth-child(2) { animation-delay: .9s; }
.ha-nodes circle:nth-child(3) { animation-delay: 1.8s; }
.ha-nodes circle:nth-child(4) { animation-delay: 2.7s; }
@keyframes ha-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ha-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 52px; font-size: 14px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta strong { color: var(--text-2); font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }

/* Hero letter scatter (scroll-driven; only active when JS adds .is-scatter).
   overflow: clip, not hidden: hidden makes a scroll container and breaks sticky. */
.hero.is-scatter { overflow: clip; }
/* Phones: letters scatter in normal flow; clip keeps them from widening the page */
.hero.is-scatter-flow { overflow: clip; }
.hero.is-scatter .hero-inner { position: sticky; top: var(--scatter-top, 162px); }
/* Scroll track: a sticky box only travels inside its parent's content box, so the
   distance is a spacer. Its height is the scatter's scroll length. */
.hero.is-scatter::after { content: ''; display: block; height: 60vh; }
/* The scattered hero is empty space; the next section slides up over it. */
.hero.is-scatter { margin-bottom: calc(-1 * var(--overlap, 0px)); }
.hero.is-scatter + section { position: relative; z-index: 1; background: var(--bg); }
.hero h1 .w { display: inline-block; white-space: nowrap; }
.hero h1 .l { display: inline-block; will-change: transform, opacity; }
.hero .scatter-fade { will-change: transform, opacity; }

/* ============ Spotlight (pointer-following light on cards) ============ */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(96, 165, 250, 0.13), transparent 60%);
  opacity: 0; transition: opacity 300ms var(--ease-curve);
}
.spot:hover::before { opacity: 1; }

/* ============ Pricing ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pricing-grid .tile { grid-column: auto; }
.price-card h3 { font-size: 20px; margin-bottom: 10px; }
.price-card .price {
  margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--text);
}
.price-card .price .from { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-bottom: 2px; }
.price-card > p:not(.price) { margin-bottom: 22px; }
.pricing-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; }
.pricing-foot p { margin: 0; max-width: 640px; font-size: 14.5px; color: var(--muted); }
.pricing-foot .btn { flex: none; }

/* ============ Service pages (/services/) ============ */
.page-hero { padding: 72px 0 64px; position: relative; }
.page-hero + section { padding-top: 32px; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; margin: 14px 0 22px; max-width: 900px; }
.page-hero .lead { max-width: 760px; }
.crumbs ol { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--text-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--text); }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.svc-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.svc-list li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 16px; }
.svc-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.svc-note { color: var(--muted); font-size: 15px; }
.svc-sub { margin-top: 64px; }
.svc-narrow { max-width: 860px; }
.work-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.work-link { display: block; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: inherit; transition: border-color var(--ease), transform var(--ease); }
.work-link:hover { border-color: var(--line-mid); transform: translateY(-3px); }
.work-link h3 { font-size: 20px; margin-bottom: 8px; }
.work-link p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14.5px; }
.more .arrow { width: 14px; height: 14px; }
.faq { display: grid; gap: 12px; margin-top: 24px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq-item summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; list-style-position: outside; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq-item p { color: var(--text-2); margin: 0 0 20px; }
.related { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-block; padding: 10px 16px; border: 1px solid var(--line-mid); border-radius: 999px; color: var(--text); font-size: 15px; }
.related a:hover { border-color: var(--accent); }
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-cards .tile { grid-column: auto; color: inherit; }
.svc-card h2 { font-size: 22px; margin-bottom: 10px; }
.svc-cards .svc-card p { margin-bottom: 22px; }
.svc-card .more { margin-top: auto; }
.svc-also { margin-top: 24px; }
.tile-link { color: inherit; }
.tile-link:hover { color: var(--accent); }
.text-link { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.svc-also .h3 { font-size: 19px; margin-bottom: 8px; }
.svc-also a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* Case studies (/work/) */
.case-status { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: var(--text); background: rgba(74, 222, 128, 0.10); border: 1px solid rgba(74, 222, 128, 0.35); border-radius: 999px; padding: 5px 12px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; align-items: start; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line-mid); background: var(--surface); }
/* Client sites: full-width desktop shot, then desktop + phone side by side */
.shots:has(.shot-wide) { grid-template-columns: 2fr 1fr; }
.shots .shot-wide:first-child { grid-column: 1 / -1; }
.shot-phone img { max-height: 520px; object-fit: cover; object-position: top; }
.panel .h3 { font-size: 19px; margin-bottom: 14px; }
.stack-dl { margin: 0; display: grid; gap: 14px; }
.stack-dl dt { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.stack-dl dd { margin: 2px 0 0; color: var(--text-2); font-size: 15px; }
.milestones { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 0; border-left: 1px solid var(--line-mid); }
.milestones li { position: relative; padding: 0 0 22px 24px; display: grid; gap: 2px; }
.milestones li::before { content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--highlight); }
.milestones time { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.milestones span { color: var(--text-2); }
.kind-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
/* Project inquiry form (#contact) */
.contact-alt { color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.inquiry { display: grid; gap: 16px; align-content: start; }
.inquiry h3 { font-size: 20px; margin: 0; }
.inquiry .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--text); }
.field .req, .field .opt { font-weight: 500; font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: #F87171; }
.field .hint { margin: 0; font-size: 13.5px; color: var(--muted); }
.field .err { margin: 0; font-size: 13.5px; color: #FCA5A5; font-weight: 600; }
.form-errors { border: 1px solid #F87171; background: rgba(248, 113, 113, 0.08); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; }
.form-errors p { margin: 0 0 6px; font-weight: 600; }
.form-errors ul { margin: 0; padding-left: 18px; }
.form-errors a { color: #FCA5A5; text-decoration: underline; }
.form-privacy { margin: 0; font-size: 13.5px; color: var(--muted); }
.form-privacy a, .form-result a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.inquiry button[type="submit"] { justify-self: start; }
.inquiry button[disabled] { opacity: 0.6; cursor: progress; }
.form-result:empty { display: none; }
.form-result { border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.form-result.is-ok { border: 1px solid rgba(74, 222, 128, 0.5); background: rgba(74, 222, 128, 0.08); }
.form-result.is-error { border: 1px solid #F87171; background: rgba(248, 113, 113, 0.08); }

.cta-band { padding-top: 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; align-content: center; }

/* ============ Services bento ============ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 2;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: var(--line-mid); box-shadow: var(--shadow-md); }
.tile.span-4 { grid-column: span 4; }
.tile.span-3 { grid-column: span 3; }
.tile .ic-box {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 22px;
  display: grid; place-items: center; color: var(--accent);
  background: rgba(37, 99, 235, 0.12); border: 1px solid rgba(96, 165, 250, 0.25);
}
.tile .ic-box svg { width: 22px; height: 22px; }
.tile h3 { font-size: 21px; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 15.5px; margin: 0; }
.tile .proof { margin-top: auto; padding-top: 22px; font-size: 13.5px; color: var(--text-2); }
.tile .proof b { color: var(--accent); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  font-family: var(--mono); font-size: 12px; color: var(--text-2);
  border: 1px solid var(--line-mid); background: rgba(9, 13, 22, 0.5);
  border-radius: 8px; padding: 5px 10px;
}
.tile-lead h3 { font-size: clamp(24px, 2.6vw, 30px); }
.tile-lead p { font-size: 16.5px; max-width: 540px; }
.tile-cta {
  background: radial-gradient(120% 90% at 100% 0%, rgba(37, 99, 235, 0.35), transparent 60%), var(--surface);
  border-color: rgba(96, 165, 250, 0.35); justify-content: space-between;
}
.tile-cta h3 { font-size: 22px; }
.tile-cta .btn { margin-top: 22px; align-self: flex-start; }

/* ============ Products ============ */
.products { display: grid; gap: 20px; }
.product {
  --p-accent: var(--accent);
  --p-glow: rgba(37, 99, 235, 0.25);
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.product:hover { border-color: var(--line-mid); box-shadow: var(--shadow-lg); }
.product-body { padding: 44px; display: flex; flex-direction: column; }
.product-id { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.product-id img { width: 52px; height: 52px; border-radius: 13px; border: 1px solid var(--line-mid); }
.product-id h3 { font-size: 26px; margin: 0; }
.product-id .kind { font-size: 13.5px; color: var(--muted); }
.status {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 13px; font-weight: 600; color: var(--text);
  background: rgba(74, 222, 128, 0.10); border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px; padding: 5px 12px; margin-bottom: 18px;
}
.product-body .tagline { font-size: 20px; color: var(--text); font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; margin-bottom: 12px; }
.product-body p { color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; font-size: 15px; color: var(--text-2); }
.feature-list li::before {
  content: ''; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%;
  background: var(--p-accent); box-shadow: 0 0 10px var(--p-accent);
}
.built-with { margin-top: 24px; font-size: 13px; color: var(--muted); }
.built-with .chips { margin-top: 10px; }
.product-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 30px; }
.store-btn { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.product-media {
  position: relative; min-height: 420px;
  background: radial-gradient(80% 70% at 50% 100%, var(--p-glow), transparent 70%), var(--bg-2);
  border-left: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: center; gap: 18px;
  padding: 40px 32px 0; overflow: hidden;
}
.product-media img {
  width: min(46%, 250px); border-radius: 22px 22px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 0;
  box-shadow: 0 -10px 50px -20px rgba(0, 0, 0, 0.8);
  aspect-ratio: 600 / 1000; object-fit: cover; object-position: top;
  transition: transform 500ms var(--ease-curve);
}
.product-media img + img { transform: translateY(32px); }
.product:hover .product-media img { transform: translateY(-6px); }
.product:hover .product-media img + img { transform: translateY(24px); }
.product-media .wide {
  width: 100%; max-width: 460px; aspect-ratio: 600 / 277; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12); align-self: center; object-fit: cover;
}

/* Each product keeps its own colour inside the company system */
.product--bausaur { --p-accent: #FB923C; --p-glow: rgba(249, 115, 22, 0.28); }
.product--bartender { --p-accent: #F472B6; --p-glow: rgba(236, 72, 153, 0.28); }
.product--bausaur:hover { border-color: rgba(251, 146, 60, 0.45); }
.product--bartender:hover { border-color: rgba(244, 114, 182, 0.45); }
.product--bartender .product-media { align-items: center; padding-bottom: 40px; }
/* Second product mirrors the flagship (media left) so the two full-width
   cards don't read as one repeated block */
@media (min-width: 961px) {
  .product--bartender { grid-template-columns: 0.95fr 1.05fr; }
  .product--bartender .product-media { border-left: 0; border-right: 1px solid var(--line); }
}
/* Client work: desktop screenshot with the phone view in front of it */
.work-sub { margin: 96px 0 40px; }
.work-sub .section-title { font-size: clamp(26px, 3.2vw, 38px); margin: 0; }
.product--client { --p-accent: #F0A3B1; --p-glow: rgba(190, 90, 110, 0.26); }
.product--client:hover { border-color: rgba(240, 163, 177, 0.45); }
.product--client .product-media { align-items: center; padding: 40px 32px; }
.product--client .product-media .site-desktop {
  width: 100%; max-width: 520px; aspect-ratio: 1200 / 750; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.product--client .product-media .site-phone {
  position: absolute; right: 28px; bottom: 28px; width: min(26%, 130px);
  aspect-ratio: 600 / 1000; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.2);
  transform: none;
}
.product--client:hover .product-media .site-phone { transform: translateY(-6px); }
/* The flagship has one tall screenshot; give it the room the panel offers */
.product--bausaur .product-media img { width: min(64%, 330px); }


/* ============ Process ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; list-style: none; margin: 0; padding: 0; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px 30px;
  transition: border-color var(--ease), transform var(--ease);
}
.step:hover { border-color: var(--line-mid); transform: translateY(-3px); }
.step .n {
  display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 22px;
  border-radius: 10px; font-family: var(--mono); font-size: 14px; color: var(--highlight);
  background: rgba(56, 189, 248, 0.10); border: 1px solid rgba(56, 189, 248, 0.3);
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.step .out { display: block; margin-top: 16px; font-size: 13px; color: var(--text-2); font-family: var(--mono); }
/* Connector line between steps on wide screens */
.steps::before {
  content: ''; position: absolute; top: 47px; left: 26px; right: 26px; height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.35) 12%, rgba(56, 189, 248, 0.35) 88%, transparent);
}
.step { z-index: 1; }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.about-grid .lead-text { font-size: 19px; color: var(--text-2); }
.about-grid p { color: var(--muted); }
.principles { display: grid; gap: 14px; margin-top: 36px; }
.principle { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(23, 32, 51, 0.5); }
.principle .num { flex: none; font-family: var(--mono); color: var(--accent); font-size: 14px; width: 26px; padding-top: 2px; }
.principle h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -0.01em; }
.principle p { margin: 0; font-size: 15px; }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.founder { display: flex; gap: 18px; align-items: flex-start; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.founder-mark {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 700; font-size: 17px; letter-spacing: 0.02em; color: var(--text);
  background: linear-gradient(140deg, #1E3A5F, var(--action)); border: 1px solid var(--line-mid);
}
.founder h4 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.founder-role { margin: 4px 0 0; color: var(--accent); font-size: 14px; font-weight: 600; }
.founder-loc { margin: 2px 0 12px; font-size: 13.5px; color: var(--muted); }
.founder p:not(.founder-role):not(.founder-loc) { font-size: 15px; color: var(--text-2); }
.founder a { display: inline-block; margin-top: 4px; font-size: 14px; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.founder a:hover { color: #93C5FD; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.panel h3 { font-size: 18px; margin-bottom: 6px; }
.panel > p { font-size: 14.5px; }
.stack-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.stack-list li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.stack-list li span:first-child { color: var(--text); font-weight: 550; }
.stack-list li span:last-child { color: var(--muted); text-align: right; }

/* ============ Contact ============ */
.contact-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(37, 99, 235, 0.22), transparent 60%),
    var(--surface);
  border: 1px solid rgba(96, 165, 250, 0.3); border-radius: 28px; padding: 56px;
}
.contact-card h2 { font-size: clamp(32px, 4.4vw, 50px); }
.contact-card .lead { font-size: 18px; color: var(--text-2); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-lines { margin-top: 28px; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
.contact-lines a { color: var(--accent); }
.contact-lines a:hover, .footer-bottom a:hover { color: #93C5FD; }
.brief { background: rgba(9, 13, 22, 0.55); border: 1px solid var(--line-mid); border-radius: var(--radius); padding: 26px 28px; }
.brief h3 { font-size: 16px; margin-bottom: 14px; }
.brief ol { margin: 0; padding: 0; list-style: none; counter-reset: b; display: grid; gap: 12px; }
.brief li { counter-increment: b; display: flex; gap: 12px; font-size: 15px; color: var(--text-2); }
.brief li::before { content: counter(b, decimal-leading-zero); font-family: var(--mono); font-size: 12.5px; color: var(--accent); padding-top: 3px; }
.copy-status { font-size: 13.5px; color: var(--ok); min-height: 1.4em; margin-top: 10px; }

/* ============ Footer ============ */
.site-footer { padding: 72px 0 40px; background: var(--bg); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--muted); margin-top: 16px; max-width: 340px; }
.footer-col h2 { font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--text-2); transition: color var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* ============ Scroll reveal ============
   Content is hidden only when JS has confirmed it can reveal it again
   (html.can-reveal), so without JS, or with reduced motion, everything is visible. */
.can-reveal [data-reveal] { opacity: 0; transform: translateY(24px); }
.can-reveal [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 700ms var(--ease-curve), transform 700ms var(--ease-curve);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ============ Legal pages ============ */
.doc { padding: 72px 0 96px; }
.doc .container { max-width: 800px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.035em; margin-bottom: 10px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 21px; margin: 42px 0 12px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--text-2); font-size: 16px; line-height: 1.75; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
/* Links inside running text are underlined: colour alone isn't enough (WCAG 1.4.1) */
.doc a, .contact-lines a, .footer-bottom a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.doc .card { background: var(--surface); border: 1px solid var(--line-mid); border-left: 3px solid var(--action); border-radius: 14px; padding: 20px 22px; margin-top: 24px; }
.doc .card p { margin: 0; color: var(--text); font-size: 15px; }
.back { font-size: 14px; font-weight: 600; color: var(--text-2); }
.back:hover { color: var(--text); }
.legal-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 13px; color: var(--muted); }
.legal-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.legal-footer a { color: var(--text-2); }
.legal-footer a:hover { color: var(--text); }

/* ============ Responsive (390 / 820 / 1024 / 1440) ============ */
@media (max-width: 1080px) {
  .bento, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.span-3 { grid-column: span 1; }
  .tile.span-4 { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav > .btn-primary { display: none; }
  /* Nav becomes a drop-down panel under the header, opened by .nav-toggle */
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px var(--gutter) 22px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line-mid);
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .nav-links { display: flex; }
  .nav-links a { padding: 15px 2px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links a:nth-last-child(2) { border-bottom: none; }
  .nav-links .nav-cta { display: inline-flex; width: 100%; margin-top: 14px; padding: 14px 20px; font-size: 16px; color: #fff; border: 1px solid transparent; }
  .hero-art { position: relative; z-index: 0; top: auto; right: auto; width: 100%; max-width: 520px; margin: 44px auto 0; }
  /* The hero is taller here (illustration under the buttons), so a shorter track
     keeps the hand-over to the next section from leaving a blank screen. */
  .hero.is-scatter::after { height: 35vh; }
  .product { grid-template-columns: 1fr; }
  .product-media { border-left: 0; border-top: 1px solid var(--line); min-height: 340px; order: -1; }
  .about-grid, .contact-card, .founders, .svc-grid, .work-links { grid-template-columns: 1fr; }
  .svc-cards { grid-template-columns: 1fr 1fr; }
  .pricing-foot { flex-direction: column; align-items: flex-start; }
  .contact-card { padding: 40px; gap: 32px; }
}
@media (max-width: 640px) {
  .svc-cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .shots, .shots:has(.shot-wide) { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 48px 0 64px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .founder { flex-direction: column; gap: 14px; padding: 24px; }
  .founder a { font-size: 13.5px; }
  /* Opaque header: Safari on recent iOS draws page content under its glass toolbar
     unless a solid header touches the top edge, which it then extends into the bar. */
  .site-header, .site-header.is-scrolled { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root { --gutter: 20px; }
  section { padding: 80px 0; }
  .hero { padding: 72px 0 72px; }
  .section-head { margin-bottom: 40px; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.span-3, .tile.span-4 { grid-column: span 1; }
  .tile { padding: 26px; }
  .steps { grid-template-columns: 1fr; }
  .product-body { padding: 28px 24px; }
  .product-media { min-height: 300px; padding: 28px 20px 0; }
  .product--bausaur .product-media img { width: min(58%, 230px); }
  .contact-card { padding: 30px 22px; border-radius: 22px; }
  .hero-cta .btn, .contact-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .brand-name small { display: none; }
}

/* Respect reduced motion: no transitions, no lifts, nothing hidden for reveal */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .tile:hover, .step:hover, .product:hover .product-media img { transform: none !important; }
  .can-reveal [data-reveal] { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  .btn, .tile, .product, .step, .panel, .contact-card { border: 1px solid CanvasText; }
  .hero h1 .accent { -webkit-text-fill-color: currentColor; background: none; }
}
