/* ============================================================
   AX3 MEDIA — "Lagos Signal" design system (v2)
   Concrete white · ink · ultramarine · danfo yellow
   Bricolage Grotesque / Archivo / Space Mono
   ============================================================ */

:root {
  --bg: #F3F4F2;
  --bg-2: #E9ECE8;
  --paper: #FFFFFF;
  --ink: #0B0F14;
  --ink-2: #161B22;
  --ink-soft: #3C434B;
  --muted: #79828B;
  --accent: #2430E8;
  --accent-2: #161B22;
  --highlight: #F7C600;
  --line: rgba(11, 15, 20, 0.10);
  --line-strong: rgba(11, 15, 20, 0.24);

  --display: 'Bricolage Grotesque', 'Archivo', system-ui, sans-serif;
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;

  --r: 4px;
  --r-lg: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; width: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

/* Faint blueprint grid instead of paper noise */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,15,20,0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,15,20,0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

::selection { background: var(--highlight); color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) { .container { padding: 0 20px; } }
@media (max-width: 380px) { .container { padding: 0 16px; } }

/* Signature: danfo-yellow marker sweep on emphasized display words */
:root .page-title em, :root .section-title em, :root .hero h1 .it,
:root .next-page-link em, :root .showcase h2 em, :root .case-grid h2 em,
:root .project-nav-item .nav-title em, :root .mobile-menu ul a em,
:root .hero h1 em {
  font-style: normal;
  font-weight: inherit;
  color: var(--ink);
  background-image: linear-gradient(120deg, var(--highlight) 0%, var(--highlight) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.42em;
  background-position: 0 78%;
  padding: 0 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50; padding: 16px 32px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(243, 244, 242, 0.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) { nav { padding: 13px 20px; } }

.logo {
  font-family: var(--display); font-size: 23px; font-weight: 700;
  letter-spacing: -0.02em; display: flex; align-items: center; gap: 3px;
  color: var(--ink); text-decoration: none;
  z-index: 60;
}
.logo .x {
  color: var(--ink); font-style: normal; font-weight: 800;
  background: var(--highlight);
  padding: 0 3px; margin: 0 1px;
  border-radius: 2px;
  line-height: 1.1;
}
.logo .three {
  font-family: var(--mono); font-size: 12px; vertical-align: super;
  color: var(--accent); margin-left: 2px; font-weight: 700;
}

.nav-links {
  display: flex; gap: 34px; list-style: none;
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.nav-links a {
  color: var(--ink-soft); text-decoration: none;
  position: relative; transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -5px; left: 0;
  width: 0; height: 3px; background: var(--highlight);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 11px 18px; background: var(--ink); color: var(--bg);
  text-decoration: none; border-radius: var(--r);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  font-weight: 700;
}
.nav-cta:hover { background: var(--highlight); color: var(--ink); transform: translateY(-1px); }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; position: relative; z-index: 60; padding: 0;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); margin: 5px auto;
  transition: all 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  transform-origin: center;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 55;
  padding: 100px 20px 40px;
  flex-direction: column; justify-content: space-between;
  opacity: 0; transform: translateY(-16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.mobile-menu.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mobile-menu ul a {
  display: block; font-family: var(--display);
  font-size: 42px; font-weight: 600; color: var(--ink);
  text-decoration: none; padding: 12px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.02em; transition: color 0.25s;
}
.mobile-menu ul a:hover, .mobile-menu ul a:active, .mobile-menu ul a.active { color: var(--accent); }
.mobile-menu-footer { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; }
.mobile-menu-footer .label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
}
.mobile-menu-footer a {
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-size: 21px; font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu { display: flex; }
  body.menu-open { overflow: hidden; }
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 168px 0 84px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
@media (max-width: 640px) { .page-header { padding: 124px 0 60px; } }

.breadcrumb {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted); margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.25s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--line-strong); }
.breadcrumb .current { color: var(--accent); }

.page-title {
  font-family: var(--display);
  font-size: clamp(46px, 8.5vw, 128px);
  font-weight: 700; line-height: 0.96;
  letter-spacing: -0.035em; color: var(--ink);
  overflow-wrap: break-word; max-width: 100%;
}
.page-title .alt { color: var(--muted); font-weight: 500; }

@media (max-width: 768px) { .page-title { font-size: 60px; line-height: 0.98; } }
@media (max-width: 540px) { .page-title { font-size: 46px; line-height: 1.02; letter-spacing: -0.025em; } }
@media (max-width: 400px) { .page-title { font-size: 38px; } }

.page-intro {
  font-family: var(--sans);
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 400; line-height: 1.55;
  color: var(--ink-soft); max-width: 720px;
  margin-top: 36px;
  overflow-wrap: break-word;
}
.page-intro em { font-style: normal; color: var(--accent); font-weight: 600; }
@media (max-width: 540px) { .page-intro { font-size: 17px; margin-top: 28px; } }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 26px; background: var(--ink); color: var(--bg);
  text-decoration: none; font-family: var(--mono); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: var(--r); transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  font-weight: 700; border: 1px solid var(--ink);
  min-height: 48px;
}
.btn-primary:hover, .btn-primary:active {
  background: var(--highlight); color: var(--ink); border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-primary svg { transition: transform 0.3s ease; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 0; color: var(--ink-soft); text-decoration: none;
  font-family: var(--mono); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 2px solid var(--line-strong);
  width: 100%; max-width: 320px;
  justify-content: space-between; transition: color 0.25s ease, border-color 0.25s ease;
  min-height: 48px; font-weight: 700;
}
.btn-ghost:hover, .btn-ghost:active { color: var(--ink); border-color: var(--highlight); }

@media (max-width: 480px) {
  .btn-primary { padding: 15px 22px; font-size: 12px; }
  .btn-ghost { font-size: 12px; }
}

/* ===== SECTIONS ===== */
section { padding: 100px 0; position: relative; }
@media (max-width: 900px) { section { padding: 70px 0; } }
@media (max-width: 480px) { section { padding: 56px 0; } }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent); margin-bottom: 28px; font-weight: 700;
}
.section-label::before {
  content: ''; width: 14px; height: 14px;
  background: var(--highlight);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.section-title {
  font-family: var(--display); font-size: clamp(34px, 5.5vw, 72px);
  font-weight: 700; line-height: 1;
  letter-spacing: -0.03em; margin-bottom: 32px; color: var(--ink);
  overflow-wrap: break-word;
}

/* ===== NEXT PAGE CTA ===== */
.next-page {
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.next-page-inner {
  padding: 100px 0; display: grid;
  grid-template-columns: 1fr auto; gap: 40px;
  align-items: end;
}
@media (max-width: 768px) {
  .next-page-inner { grid-template-columns: 1fr; gap: 24px; padding: 70px 0; align-items: start; }
}
.next-page-label {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: rgba(243,244,242,0.55); margin-bottom: 14px; display: block;
}
.next-page-link {
  font-family: var(--display);
  font-size: clamp(38px, 6.5vw, 88px);
  font-weight: 700; line-height: 0.96;
  letter-spacing: -0.03em; color: var(--bg);
  text-decoration: none; display: inline-block;
  transition: color 0.25s;
}
.next-page-link:hover { color: var(--highlight); }
.next-page .next-page-link em,
:root .next-page .next-page-link em {
  color: var(--ink);
  background-size: 100% 88%;
  background-position: 0 60%;
  padding: 0 0.08em;
}
.next-page-arrow {
  font-family: var(--display); font-size: clamp(38px, 6.5vw, 88px);
  color: var(--highlight); transition: transform 0.35s;
  font-weight: 500;
}
.next-page-link:hover ~ .next-page-arrow,
.next-page:hover .next-page-arrow { transform: translateX(10px); }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 32px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand .logo { font-size: 30px; margin-bottom: 16px; }
.footer-brand p {
  font-family: var(--sans);
  font-size: 15px; line-height: 1.55;
  color: var(--ink-soft);
  max-width: 320px;
}
.footer-col-title {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--muted); margin-bottom: 18px; font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 14px; transition: color 0.25s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.04em;
}
.footer-bottom a { color: var(--ink-soft); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ===== REVEALS ===== */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== PROJECT DETAIL PAGES ===== */
.project-hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
@media (max-width: 768px) {
  .project-hero-meta { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 400px) {
  .project-hero-meta { grid-template-columns: 1fr; gap: 20px; }
}
.project-hero-meta .meta-label {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--muted); margin-bottom: 8px;
}
.project-hero-meta .meta-value {
  font-family: var(--display); font-weight: 600;
  font-size: 17px; color: var(--ink);
  line-height: 1.3;
}

.showcase {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 100px 0;
}
@media (max-width: 640px) { .showcase { padding: 64px 0; } }
.showcase-label {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent); margin-bottom: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.showcase-label::before {
  content: ''; width: 14px; height: 14px;
  background: var(--highlight);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.showcase h2 {
  font-family: var(--display);
  font-size: clamp(27px, 3.6vw, 42px);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.02em; margin-bottom: 12px;
  color: var(--ink);
}
.showcase-desc {
  font-size: 16px; color: var(--ink-soft);
  max-width: 640px; line-height: 1.6;
  margin-bottom: 48px;
}

.mockup-frame {
  display: flex; justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 6px 6px 0 rgba(11,15,20,0.06);
  overflow: hidden;
  position: relative;
}
.mockup-frame svg { max-width: 100%; height: auto; display: block; }
@media (max-width: 640px) {
  .mockup-frame { padding: 24px 12px; border-radius: 8px; }
}

.mockup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 900px) {
  .mockup-row { grid-template-columns: 1fr; gap: 20px; }
}
.mockup-row .mockup-frame { min-height: 320px; }

.mockup-caption {
  margin-top: 18px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--muted); text-align: center;
}

.case-section { padding: 90px 0; }
@media (max-width: 640px) { .case-section { padding: 60px 0; } }
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; gap: 24px; } }

.case-label {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent); font-weight: 700;
}
.case-grid h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700; line-height: 1;
  letter-spacing: -0.025em; color: var(--ink);
  margin-bottom: 24px;
  overflow-wrap: break-word;
}
.case-body {
  font-size: 17px; line-height: 1.7;
  color: var(--ink-soft);
}
.case-body p + p { margin-top: 18px; }
.case-body strong { color: var(--ink); font-weight: 600; }

.feature-list {
  list-style: none; display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px; margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; gap: 20px; } }
.feature-list li {
  display: flex; gap: 14px; align-items: flex-start;
}
.feature-list .icon {
  font-family: var(--mono);
  font-style: normal; color: var(--accent);
  font-size: 15px; font-weight: 700; line-height: 1.4;
  flex-shrink: 0; padding-top: 2px;
}
.feature-list .feat-title {
  font-family: var(--display); font-weight: 600; font-size: 16px;
  color: var(--ink); margin-bottom: 4px;
  line-height: 1.3;
}
.feature-list .feat-desc {
  font-size: 14px; color: var(--ink-soft); line-height: 1.55;
}

.project-nav {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 60px 0;
}
.project-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 640px) {
  .project-nav-grid { grid-template-columns: 1fr; gap: 32px; }
}
.project-nav-item {
  text-decoration: none; color: inherit;
  display: block;
}
.project-nav-item.next { text-align: right; }
.project-nav-item .nav-label {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--muted); margin-bottom: 12px;
  display: block;
}
.project-nav-item .nav-title {
  font-family: var(--display);
  font-size: clamp(23px, 3.2vw, 38px);
  font-weight: 700; line-height: 1;
  color: var(--ink); letter-spacing: -0.02em;
  transition: color 0.25s;
}
.project-nav-item:hover .nav-title { color: var(--accent); }

/* ===== SCROLL PLAYHEAD (v3) ===== */
.playhead {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  z-index: 70; pointer-events: none;
  background: transparent;
}
.playhead .ph-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  transition: width 0.08s linear;
}

/* LIVE badge for shipped products */
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: #0B7A3E; background: rgba(11,122,62,0.08);
  border: 1px solid rgba(11,122,62,0.25);
  padding: 3px 8px; border-radius: 100px;
  vertical-align: middle;
}
.live-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #0FA958;
  animation: livepulse 1.6s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(15,169,88,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(15,169,88,0); }
}

/* ===== v4: TECH & MEDIA EFFECTS, SITE-WIDE ===== */

/* Smooth cross-page transitions (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.22s ease both; }
::view-transition-new(root) { animation: vt-in 0.3s ease both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Live product links: signal underline + lift */
.live-link {
  color: var(--ink); text-decoration: none; font-weight: 700;
  position: relative; white-space: nowrap;
  background-image: linear-gradient(90deg, var(--accent), var(--highlight));
  background-repeat: no-repeat; background-size: 100% 2px;
  background-position: 0 100%; padding-bottom: 2px;
  transition: color 0.25s;
}
.live-link::after {
  content: ' ↗'; font-family: var(--mono); font-size: 0.85em;
  color: var(--accent);
  display: inline-block; transition: transform 0.25s;
}
.live-link:hover { color: var(--accent); }
.live-link:hover::after { transform: translate(2px, -2px); }

/* Work cards (work.html): full-card sweep + arrow charge */
.project-card { transition: transform 0.35s ease; }
.project-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--highlight);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.project-card:hover::before { transform: scaleY(1); }
.project-card:hover { transform: translateX(10px); }
.project-card:hover h2 { color: var(--accent); }
.project-card h2 { transition: color 0.3s; }
.project-link { transition: letter-spacing 0.3s, color 0.3s; }
.project-card:hover .project-link { letter-spacing: 0.06em; color: var(--accent); }

/* Mockup frames come alive on hover */
.mockup-frame { transition: transform 0.35s ease, box-shadow 0.35s ease; }
.mockup-frame:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--highlight);
}

/* Buttons: pressed states feel mechanical */
.btn-primary:active, .nav-cta:active { transform: translateY(1px) scale(0.99); }

/* Click ripple (injected by scripts.js) */
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(247,198,0,0.55);
  transform: scale(0); animation: rippleAnim 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(3); opacity: 0; } }
.btn-primary, .nav-cta { position: relative; overflow: hidden; }

/* Feature list items: tick in on hover */
.feature-list li { transition: transform 0.3s ease; }
.feature-list li:hover { transform: translateX(6px); }
.feature-list li:hover .icon { color: var(--ink); }
.feature-list .icon { transition: color 0.3s; }

/* Footer links: yellow swipe */
.footer-col a, .footer-bottom a {
  background-image: linear-gradient(120deg, var(--highlight), var(--highlight));
  background-repeat: no-repeat; background-size: 0 40%;
  background-position: 0 80%;
  transition: background-size 0.3s ease, color 0.25s;
}
.footer-col a:hover, .footer-bottom a:hover { background-size: 100% 40%; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ===== v5: REAL SCREENSHOT MOCKUPS ===== */
.mockup-frame { padding: 0; background: var(--ink); }
.mockup-shot {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-lg);
}
/* Browser chrome bar above each shot */
.shot-wrap {
  width: 100%; border-radius: var(--r-lg); overflow: hidden;
  background: #1b2330;
}
.shot-chrome {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: #11161f;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.shot-chrome .dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.shot-chrome .r { background: #ff5f56; } .shot-chrome .y { background: #ffbd2e; } .shot-chrome .g { background: #27c93f; }
.shot-chrome .bar {
  margin-left: 12px; flex: 1; height: 22px; border-radius: 6px;
  background: #222c3a; display: flex; align-items: center;
  padding: 0 12px; font-family: var(--mono); font-size: 10px; color: #79828B;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.mockup-frame:hover .mockup-shot { /* keep crisp; lift handled by frame */ }
/* portrait shots (mobile) sit on a stage rather than stretch */
.mockup-shot.portrait {
  max-width: 300px; margin: 0 auto;
  border-radius: 0;
}
.shot-wrap.phone {
  background: var(--ink); padding: 24px 0;
  display: flex; justify-content: center;
}

/* ===== v6: PROOF, METRICS, ESTIMATE ===== */

/* Metrics band — real, verifiable numbers */
.metrics-band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 820px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .metrics-grid { grid-template-columns: 1fr; } }
.metric {
  padding: 44px 28px; border-right: 1px solid var(--line);
  position: relative;
}
.metric:last-child { border-right: none; }
@media (max-width: 820px) {
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .metric { border-right: none; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: none; }
}
.metric .m-num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(38px, 5.5vw, 60px); line-height: 1;
  letter-spacing: -0.03em; color: var(--ink);
}
.metric .m-num .u { color: var(--accent); }
.metric .m-label {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-top: 12px; line-height: 1.4;
}

/* Trusted by — fact-based proof, no fabricated quotes */
.trust-section { border-top: 1px solid var(--line); background: var(--bg-2); }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 8px;
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
}
.trust-card .quote-mark {
  font-family: var(--display); font-weight: 800; font-size: 64px;
  line-height: 0.6; color: var(--highlight); height: 30px;
}
.trust-card p {
  font-family: var(--display); font-weight: 500;
  font-size: 19px; line-height: 1.4; color: var(--ink);
  letter-spacing: -0.01em; flex: 1;
}
.trust-card .t-by {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 14px;
}
.trust-card .t-logo {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  background: var(--ink); color: var(--highlight);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 17px;
}
.trust-card .t-meta .t-name {
  font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--ink);
}
.trust-card .t-meta .t-role {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.04em;
}
.trust-note {
  margin-top: 28px; font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.04em; text-align: center;
}

/* Outcomes — case-study results */
.outcomes-section { border-top: 1px solid var(--line); }
.outcome-rows { border-top: 2px solid var(--ink); margin-top: 8px; }
.outcome {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 32px;
  align-items: center; padding: 28px 8px;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none; color: inherit; position: relative;
  transition: background 0.3s, padding-left 0.3s;
}
.outcome:hover { background: var(--bg-2); padding-left: 18px; }
.outcome .o-project {
  font-family: var(--display); font-weight: 700; font-size: 19px;
  letter-spacing: -0.01em; color: var(--ink);
}
.outcome .o-result {
  font-size: 15px; line-height: 1.5; color: var(--ink-soft);
}
.outcome .o-result strong { color: var(--ink); font-weight: 700; }
.outcome .o-go {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .outcome { grid-template-columns: 1fr; gap: 8px; }
  .outcome .o-go { display: none; }
}

/* Free estimate band */
.estimate-band { background: var(--accent); color: #fff; }
.estimate-inner {
  padding: 110px 0; display: grid;
  grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center;
}
@media (max-width: 860px) { .estimate-inner { grid-template-columns: 1fr; gap: 36px; padding: 72px 0; } }
.estimate-band .e-eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.7); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.estimate-band .e-eyebrow::before { content:''; width:14px; height:14px; background:var(--highlight); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.estimate-band h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 5.5vw, 72px); line-height: 0.98;
  letter-spacing: -0.035em; margin-bottom: 20px;
}
.estimate-band h2 em {
  font-style: normal; color: var(--ink);
  background: var(--highlight); padding: 0 0.08em; border-radius: 4px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.estimate-band p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.85); max-width: 520px; }
.estimate-points { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.estimate-points li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 16px; line-height: 1.5;
}
.estimate-points .tick {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--highlight); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; margin-top: 1px;
}
.estimate-band .btn-primary {
  background: var(--ink); color: #fff; border-color: var(--ink); margin-top: 8px;
}
.estimate-band .btn-primary:hover { background: var(--highlight); color: var(--ink); border-color: var(--highlight); }

/* ===== v7: MOBILE OPTIMIZATION ===== */
@media (max-width: 640px) {
  /* Give content breathing room above the floating chat launcher */
  footer { padding-bottom: 96px; }

  /* Section rhythm: a touch tighter on phones */
  .work-index { padding-top: 80px; }

  /* Work rows: arrow stays visible, name wraps gracefully */
  .work-row { gap: 14px; }
  .work-row .w-name { font-size: 26px; }

  /* Outcomes read as stacked cards with clear separation */
  .outcome { padding: 22px 4px; }
  .outcome .o-project {
    font-family: var(--mono); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent);
  }
  .outcome .o-result { font-size: 16px; }

  /* Metrics: bigger numbers, comfortable padding */
  .metric { padding: 32px 22px; }

  /* Estimate band points wrap nicely */
  .estimate-points li { font-size: 15px; }

  /* Trust quote text size */
  .trust-card p { font-size: 17px; }

  /* Marquee a little smaller so it doesn't dominate */
  .marquee-track span { font-size: 12px; }
}

/* Ensure all interactive targets meet ~44px on touch */
@media (max-width: 880px) and (pointer: coarse) {
  .nav-links a, .footer-col a, .preview-link, .live-link { padding-top: 4px; padding-bottom: 4px; }
}

/* Larger tap area for case-study links and chips on phones */
@media (max-width: 640px) {
  .verify-links a, .stack-chip { padding: 10px 16px; }
  .feature-list li { padding: 4px 0; }
}

/* Stop the signal canvas from causing any paint cost off-screen */
@media (max-width: 640px) {
  #signal { opacity: 0.7; }
}

/* v7b: trim marker padding on phones so emphasized words never kiss the edge */
@media (max-width: 430px) {
  :root .hero h1 .it, :root .page-title em, :root .section-title em {
    padding: 0 0.02em; background-size: 100% 0.36em;
  }
}
