/* ==========================================================
   simplr. — shared stylesheet
   Design: dark minimalist, editorial, modal-driven services
   ========================================================== */

:root {
  /* ===== colour tokens — locked three-color palette =====
     #000000  page bg      (true black)
     #030303  surface       (cards / sections — barely lifted)
     #FFBF00  accent        (amber gold — only colour besides bw)
     Plus white-tone text scale. No violet, no warm-grey ramps,
     no surface gradients. Borders are the only contrast device. */
  --bg: #000000;
  --bg-soft: #030303;
  --bg-card: #030303;
  --bg-elevated: #030303;
  --border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --text-mute: #a0a0a4;
  --text-subtle: #6a6a6e;
  --accent: #ffbf00;
  --accent-2: #ffbf00; /* alias — violet retired, all gradients collapse to amber */
  --accent-soft: rgba(255, 191, 0, 0.10);

  /* ===== layout tokens ===== */
  --max: 1400px;
  --pad: clamp(20px, 4vw, 48px);

  /* ===== motion design tokens ===== */
  /* durations — keep within 0.25–0.8s for the editorial feel */
  --dur-instant: 0.12s;
  --dur-fast:    0.25s;
  --dur-base:    0.4s;
  --dur-slow:    0.6s;
  --dur-glide:   0.8s;
  /* easings */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);   /* primary — decisive, smooth */
  --ease-emph:   cubic-bezier(0.16, 1, 0.3, 1);    /* emphasis exit */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);   /* symmetric */
  --ease-spring: cubic-bezier(0.34, 1.16, 0.64, 1); /* very subtle overshoot */

  /* radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* shadows */
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.32);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 191, 0, 0.06) inset;
  --shadow-cta: 0 10px 30px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(255, 191, 0, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-instant: 0s; --dur-fast: 0s; --dur-base: 0s;
    --dur-slow: 0s;    --dur-glide: 0s;
  }
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.font-display { font-family: 'Barlow Condensed', 'IBM Plex Sans', sans-serif; letter-spacing: -0.03em; }
.font-mono { font-family: 'IBM Plex Mono', 'SF Mono', monospace; }

/* =========== TYPOGRAPHY =========== */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.eyebrow .dot { color: var(--accent); margin-right: 8px; }

.display-xl {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: clamp(48px, 9vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
}
.display-lg {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
}
.display-md {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}
.display-sm {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.italic-soft { color: var(--text-mute); font-weight: 400; }

.accent-text {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========== LAYOUT =========== */
.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: clamp(80px, 10vw, 160px); }
.section-tight { padding-block: clamp(48px, 6vw, 96px); }

.rule {
  border-top: 1px solid var(--border);
  margin: 0;
}

/* =========== HEADER =========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 24px; height: 24px; flex-shrink: 0;
}
.nav-logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  padding: 0; margin: 0;
  font-size: 14px;
  color: var(--text-mute);
}
.nav-links a {
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav-cta .arrow { transition: transform 0.2s; }
.nav-cta:hover .arrow { transform: translate(2px, -2px); }

.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 0;
  border: 1px solid var(--border);
}
.mobile-toggle svg { margin-inline: auto; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 49;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
  display: flex; flex-direction: column;
  padding-top: 72px;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer ul {
  list-style: none; padding: 40px var(--pad); margin: 0;
  display: flex; flex-direction: column; gap: 28px;
}
.mobile-drawer a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* =========== BUTTONS =========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(255, 191, 0, 0.5);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =========== HERO =========== */
.hero {
  padding-top: clamp(64px, 9vw, 128px);
  padding-bottom: clamp(56px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.hero-label .pulse {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.meta-item .num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.meta-item .lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Hero decoration */
.hero-deco {
  position: absolute;
  top: 20%; right: -100px;
  width: 500px; height: 500px;
  pointer-events: none;
  opacity: 0.4;
}
.hero-deco .orbit {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.hero-deco .orbit:nth-child(1) { animation: spin 40s linear infinite; }
.hero-deco .orbit:nth-child(2) { inset: 15%; animation: spin 60s linear infinite reverse; border-style: dashed; }
.hero-deco .orbit:nth-child(3) { inset: 30%; animation: spin 30s linear infinite; }
.hero-deco .core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100px; height: 100px;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.6;
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero-deco { display: none; }
}

/* =========== SECTION HEADER =========== */
.section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 800px) {
  .section-header { grid-template-columns: 1fr; gap: 24px; }
}

/* =========== SERVICES (grid, opens modals) =========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}
.service-card {
  padding: 48px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  background: transparent;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card:hover { background: var(--bg-soft); }
.service-card:last-child { border-right: none; }
@media (max-width: 800px) {
  .service-card { border-right: none; }
}
.service-card .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.service-card .title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 16px 0 24px;
}
.service-card .meta {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-card .meta .arrow-circle {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.service-card:hover .arrow-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: rotate(-45deg);
}
.service-card:hover .title { color: var(--accent); }

/* =========== MODAL =========== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
  position: fixed;
  top: 0; right: 0;
  width: min(720px, 100%);
  height: 100vh;
  max-height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal.open { transform: translateX(0); }

.modal-inner { padding: 32px clamp(24px, 4vw, 56px) 64px; }
.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 16px;
  position: sticky; top: 0;
  background: var(--bg);
  z-index: 2;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.modal-close {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }

.modal-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}
.modal-body p { color: var(--text-mute); margin: 0 0 16px; }
.modal-body ul { padding-left: 20px; color: var(--text-mute); }
.modal-body ul li { margin-bottom: 8px; }
.modal-body .price-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 28px;
  margin-top: 40px;
}
.modal-body .price-block .amount {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* =========== PROCESS / TIMELINE =========== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-step {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  position: relative;
}
.process-step:last-child { border-right: none; }
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--border); }
  .process-step:last-child { border-bottom: none; }
}
.process-step .num-lg {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 64px;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
}

/* =========== TESTIMONIALS =========== */
.testimonial {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.testimonial:last-child { border-bottom: none; }
@media (max-width: 800px) {
  .testimonial { grid-template-columns: 1fr; gap: 24px; }
}
.testimonial .who {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.testimonial .who strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 4px;
  text-transform: none;
}
.testimonial blockquote {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* =========== PRICING =========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
.plan.featured { border-color: var(--accent); position: relative; }
.plan.featured::before {
  content: 'Most chosen';
  position: absolute;
  top: -12px; left: 40px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.plan-head { border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 24px; }
.plan .price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 16px 0 8px;
}
.plan ul { list-style: none; padding: 0; margin: 0 0 32px; flex: 1; }
.plan ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-mute);
}
.plan ul li::before {
  content: '';
  width: 16px; height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffbf00' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center/contain;
  margin-top: 4px;
}

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}
.compare th, .compare td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.compare th {
  font-weight: 500;
  color: var(--text-mute);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.compare td:not(:first-child) { text-align: center; }
.compare td.yes { color: var(--accent); font-weight: 600; }
.compare td.no { color: var(--text-subtle); }

/* =========== BLOG =========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}
.blog-card {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  transition: background 0.3s ease;
}
.blog-card:hover { background: var(--bg-soft); }
.blog-card:hover h3 { color: var(--accent); }
.blog-card:last-child { border-right: none; }
@media (max-width: 800px) { .blog-card { border-right: none; } }
.blog-card .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 20px 0;
  transition: color 0.3s;
}
.blog-card p {
  color: var(--text-mute);
  font-size: 14px;
  margin: 0 0 auto;
}
.blog-card .meta {
  margin-top: 32px;
  font-size: 12px;
  color: var(--text-subtle);
  display: flex;
  justify-content: space-between;
}

/* Blog post article */
.post-hero { padding-top: 140px; padding-bottom: 80px; }
.post-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 32px;
}
.post-meta .tag { color: var(--accent); }
.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding-inline: var(--pad);
  font-size: 17px;
  line-height: 1.75;
  color: #d0d0d4;
}
.post-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 56px 0 20px;
  color: var(--text);
}
.post-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 40px 0 16px;
  color: var(--text);
}
.post-content p { margin-bottom: 24px; }
.post-content ul { padding-left: 24px; margin-bottom: 24px; }
.post-content li { margin-bottom: 10px; }
.post-content blockquote {
  border-left: 2px solid var(--accent);
  padding: 12px 24px;
  margin: 32px 0;
  color: var(--text);
  background: var(--accent-soft);
}
.post-content code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9em;
  background: var(--bg-card);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 0;
}

/* =========== FAQ =========== */
.faq-list { border-top: 1px solid var(--border); }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  letter-spacing: -0.015em;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item .icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s;
  position: relative;
}
.faq-item .icon::before,
.faq-item .icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.3s;
}
.faq-item .icon::before { width: 14px; height: 1px; }
.faq-item .icon::after { height: 14px; width: 1px; }
.faq-item[open] .icon::after { transform: scaleY(0); }
.faq-item[open] .icon { border-color: var(--accent); color: var(--accent); }
.faq-item .answer {
  padding: 0 64px 32px 0;
  color: var(--text-mute);
  font-size: 16px;
  line-height: 1.7;
  max-width: 720px;
}

/* =========== CONTACT FORM =========== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form .field { margin-bottom: 16px; }
.form label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 191, 0, 0.15);
}
.form textarea { resize: vertical; min-height: 140px; }
.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-group label {
  flex: 1;
  min-width: 100px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-family: inherit;
  font-size: 13px;
}
.radio-group label:hover { border-color: var(--accent); }
.radio-group input[type="radio"] { accent-color: var(--accent); }

.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 0;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #bbf7d0;
  font-size: 14px;
  display: none;
}
.form-status.show { display: block; }

/* =========== CTA BLOCK =========== */
.cta-block {
  /* unified container treatment: no fill, no border box, 1px rule top + bottom */
  padding: clamp(40px, 5vw, 72px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta-block::before { content: none; }
.cta-block > * { position: relative; }

/* =========== FOOTER =========== */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 80px 40px;
  background: var(--bg);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { margin-bottom: 20px; }
.footer-tag {
  color: var(--text-mute);
  max-width: 320px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-mute);
  font-size: 12px;
}
.socials { display: flex; gap: 20px; }
.socials a:hover { color: var(--accent); }

/* =========== 404 =========== */
.notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
}
.notfound .big {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(120px, 24vw, 280px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========== UTIL / MOTION =========== */
/* hide reveal targets only when JS is present (html.js-anim); JS off -> visible */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.shown {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2e; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3e; }

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

/* Print */
@media print {
  .site-header, .site-footer, .modal-backdrop, .modal { display: none; }
}

/* =========== 2-WEEK PILOT BLOCK =========== */
.pilot-block {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: clamp(40px, 5vw, 72px);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.pilot-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}
.pilot-head { max-width: 760px; }

.pilot-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 56px;
  position: relative;
}
.pilot-timeline::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 75%, var(--text-subtle) 75%, var(--text-subtle) 100%);
}
.pt-step {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  position: relative;
}
.pt-step:last-child { border-right: none; }
.pt-step::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 24px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg-card);
}
.pt-step.pt-step-final::before {
  background: var(--text);
}
.pt-day {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.pt-step h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--text);
}
.pt-step p {
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 800px) {
  .pilot-timeline {
    grid-template-columns: 1fr;
    border-top: none;
  }
  .pilot-timeline::before { display: none; }
  .pt-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-left: 32px;
  }
  .pt-step::before { left: 0; top: 38px; }
  .pt-step:last-child { border-bottom: none; }
}

.pilot-guarantees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.pg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 28px 24px;
}
.pg-icon {
  width: 40px; height: 40px;
  border-radius: 0;
  background: rgba(255, 191, 0, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pg-card .eyebrow { margin-bottom: 8px; }
.pg-card h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--text);
}
.pg-card p {
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.pilot-terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

/* =========== ANCHOR JUMPS (sticky-header offset) =========== */
section[id],
[id="services"],
[id="reviews"],
[id="philosophy-title"] {
  scroll-margin-top: 96px;
}

/* =========== REVIEWS — featured + grid =========== */
.review-featured {
  position: relative;
  margin-top: 56px;
  margin-bottom: 56px;
  /* unified container treatment: no fill, no border box, 1px rule top + bottom */
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.review-featured::before { content: none; }
.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 191, 0, 0.1);
  border: 1px solid rgba(255, 191, 0, 0.3);
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.review-featured blockquote {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 32px;
  max-width: 920px;
}
.review-featured blockquote strong {
  color: var(--accent);
  font-weight: 500;
}
.review-who {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.review-who > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review-who strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.review-who span {
  font-size: 13px;
  color: var(--text-mute);
}
.review-tag {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute) !important;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  white-space: nowrap;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 32px;                          /* rule per card supplies the vertical rhythm */
  margin-top: 32px;
  border-bottom: 1px solid var(--border);  /* closes the ruled group */
}
.reviews-note {
  color: var(--text-subtle);
  font-size: 12px;
  text-align: center;
  margin-top: 32px;
}
.review {
  /* unified container treatment: no fill, no border box, 1px rule top (group closes with a bottom rule) */
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--border);
}
.review blockquote {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  flex: 1;
}
.review blockquote strong {
  color: var(--accent);
  font-weight: 500;
}
.review .review-who {
  padding-top: 16px;
  margin-top: auto;
}
.review .review-who strong { font-size: 14px; }
.review .review-who span { font-size: 12px; }

@media (max-width: 720px) {
  .review-featured { padding: 36px 24px; }
  .review-who { flex-direction: column; align-items: flex-start; }
}

/* =========== CURRENCY SWITCHER (dropdown) =========== */
.currency-switcher {
  position: relative;
  display: inline-flex;
  margin-right: 12px;
}
.currency-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--text);
  padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s ease;
  min-width: 96px;
  justify-content: space-between;
}
.currency-toggle:hover { border-color: var(--border); color: var(--text); }
.currency-toggle .currency-current { display: inline-flex; align-items: center; gap: 6px; }
.currency-toggle .currency-flag {
  display: inline-block;
  width: 14px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
}
.currency-toggle svg.chev {
  width: 10px; height: 10px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.currency-switcher.open .currency-toggle svg.chev { transform: rotate(180deg); }
.currency-switcher.open .currency-toggle {
  border-color: var(--accent);
  color: var(--accent);
}

.currency-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  min-width: 200px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  display: none;
  z-index: 200;
}
.currency-switcher.open .currency-menu { display: block; }
.currency-menu li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 0;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  color: var(--text);
  transition: background 0.15s ease;
}
.currency-menu li:hover { background: rgba(255,255,255,0.04); }
.currency-menu li.active {
  background: rgba(255, 191, 0, 0.08);
  color: var(--accent);
}
.currency-menu .currency-symbol {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  width: 32px;
  text-align: left;
}
.currency-menu .currency-name { flex: 1; color: var(--text-mute); font-size: 12px; }
.currency-menu li.active .currency-name { color: var(--text); }
.currency-menu .currency-check {
  width: 14px; height: 14px;
  opacity: 0;
  color: var(--accent);
}
.currency-menu li.active .currency-check { opacity: 1; }

/* Mobile drawer copy of switcher */
.mobile-drawer .currency-switcher {
  display: inline-flex;
  margin: 24px 0 0;
}
.mobile-drawer .currency-menu {
  right: auto;
  left: 0;
}

/* =========== SELECTED WORK / PORTFOLIO =========== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
}
.work-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.work-thumb svg { width: 100%; height: 100%; display: block; }
.work-thumb-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  z-index: 2;
}
.work-meta {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.work-meta h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}
.work-meta p {
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.work-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
}
.work-tag.live { color: var(--accent); border-color: rgba(255, 191, 0,0.3); }
.work-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 8px;
}
.work-card:hover .work-arrow { color: var(--accent); }

.work-nda-note {
  margin-top: 48px;
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.6;
  max-width: 720px;
}
.work-nda-note a { color: var(--accent); text-decoration: underline; }

/* =========== WORK · MINIMAL CATEGORY GRID =========== */
.work-cat {
  margin-top: 56px;
}
.work-cat-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.work-cat-header .cat-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.work-cat-header h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}
.work-cat-header .cat-meta {
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.work-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.work-mini-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  min-height: 230px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.work-mini-card:hover {
  background: var(--bg-soft);
  border-color: var(--border);
  transform: translateY(-2px);
}
.work-mini-card:hover h4 { color: var(--accent); }
.work-mini-card .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.work-mini-card h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 14px 0 10px;
  color: var(--text);
  transition: color 0.25s;
}
.work-mini-card p {
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 auto;
}
.work-mini-card .meta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.work-mini-card .status-live { color: var(--accent); }
.work-mini-card .status-wip {
  color: var(--text-subtle);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.work-mini-card .status-wip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b88a2a;
  box-shadow: 0 0 0 3px rgba(184,138,42,0.18);
}
.work-mini-card .status-live::before {
  content: '●';
  color: var(--accent);
  margin-right: 4px;
}

/* =========== WORK · PROJECT PAGE (single project) =========== */
.project-hero { padding-top: 140px; padding-bottom: 56px; }
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 28px;
}
.project-meta .tag { color: var(--accent); }
.project-banner {
  margin: 32px auto 0;
  max-width: 1100px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}
.project-banner svg { width: 100%; height: 100%; display: block; }
.project-content {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: var(--pad);
  font-size: 17px;
  line-height: 1.75;
  color: #d0d0d4;
}
.project-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 56px 0 16px;
}
.project-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 40px 0 12px;
}
.project-content p { margin: 0 0 18px; }
.project-content ul { padding-left: 22px; margin: 0 0 18px; }
.project-content li { margin: 6px 0; }
.project-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 40px 0 16px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.project-facts dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 8px;
}
.project-facts dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}
.project-wip-banner {
  margin: 24px 0 8px;
  padding: 18px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid #d6a834;
  border-radius: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-mute);
}
.project-wip-banner strong {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d6a834;
}

/* =========== WORK · MULTI-TAG CHIPS (cards) =========== */
.work-mini-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.work-mini-card .chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  white-space: nowrap;
}
.work-mini-card .chip.live {
  color: var(--accent);
  border-color: rgba(255, 191, 0,0.3);
}
.work-mini-card .chip.live::before {
  content: '\25CF';
  margin-right: 4px;
}
.work-mini-card .chip.wip {
  color: #d6a834;
  border-color: rgba(214,168,52,0.28);
}
.work-mini-card .chip.wip::before {
  content: '\25CB';
  margin-right: 4px;
}
.work-mini-card .chip.case {
  color: var(--text);
  border-color: var(--border);
}
.work-mini-card .chip.sector {
  color: var(--text-subtle);
}

/* =========== PROJECT · USE-CASE STRUCTURE =========== */
.usecase-section {
  margin: 56px 0 0;
}
.usecase-section .eyebrow {
  margin-bottom: 8px;
}
.usecase-section h2 {
  margin-top: 0;
}
.usecase-pull {
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  background: var(--bg-soft);
  margin: 28px 0;
  border-radius: 0 10px 10px 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}
.usecase-pull em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.usecase-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-card);
}
.usecase-metrics > div {
  padding: 22px 20px;
  border-right: 1px solid var(--border);
}
.usecase-metrics > div:last-child { border-right: none; }
@media (max-width: 700px) {
  .usecase-metrics > div { border-right: none; border-bottom: 1px solid var(--border); }
  .usecase-metrics > div:last-child { border-bottom: none; }
}
.usecase-metrics dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0 0 8px;
}
.usecase-metrics dd {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--accent);
  line-height: 1.1;
}
.usecase-metrics dd small {
  display: block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-mute);
  margin-top: 4px;
}

/* =========== PROJECT · IMAGE GALLERY =========== */
.project-gallery {
  max-width: 1100px;
  margin: 64px auto 0;
  padding-inline: var(--pad);
}
.project-gallery .eyebrow {
  margin-bottom: 24px;
}
.project-figures {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.project-figures.cols-2 {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 800px) {
  .project-figures.cols-2 { grid-template-columns: 1fr; }
}
.project-figure {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  isolation: isolate;
}
.project-figure .placeholder-svg {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
}
.project-figure img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}
.project-figure img:not([src]),
.project-figure img[src=""] { display: none; }
.project-figure figcaption {
  /* static label below the poster (was an absolute on-panel overlay) —
     theme-aware muted ink so it reads on the page bg in both themes */
  margin-top: 12px;
  padding: 0 0 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ==================== CREDIBILITY BAND ==================== */
.credibility-band {
  margin: -8px auto 0;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.credibility-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 18px;
}
.credibility-eyebrow .dot { color: var(--accent); font-size: 8px; }
.credibility-logos,
.credibility-sectors {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.credibility-logos {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 14px;
  row-gap: 6px;
}
.credibility-logos li {
  position: relative;
  padding: 0 18px;
}
.credibility-logos li:first-child { padding-left: 0; }
.credibility-logos li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.credibility-sectors {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  gap: 0;
  row-gap: 4px;
}
.credibility-sectors li { padding: 0 14px; }
.credibility-sectors li:first-child { padding-left: 0; }
.credibility-sectors li + li::before {
  content: '·';
  display: inline-block;
  margin-right: 14px;
  margin-left: -14px;
  color: var(--text-subtle);
  opacity: 0.5;
}
@media (max-width: 720px) {
  .credibility-logos { font-size: 16px; }
  .credibility-logos li { padding: 0 12px; }
  .credibility-sectors li { padding: 0 10px; }
  .credibility-sectors li + li::before { margin-right: 10px; margin-left: -10px; }
}

/* ==================== GUARANTEE STRIP (pricing.html) ==================== */
.guarantee-strip {
  position: relative;
  margin: 32px 0 48px;
  padding: 40px 44px 36px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: var(--bg-card);
  max-width: 900px;
}
.guarantee-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin: 18px 0 20px;
}
.guarantee-body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 680px;
  margin: 0 0 22px;
}
.guarantee-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
@media (max-width: 720px) {
  .guarantee-strip { padding: 28px 24px 24px; }
  .guarantee-body { font-size: 16px; }
}

/* ==================== CREDIBILITY METRICS (additive) ==================== */
.credibility-band { padding: 36px 0 44px; }
.credibility-metrics {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.credibility-metrics li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px;
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}
.credibility-metrics .metric-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.credibility-metrics .metric-num .pct {
  color: var(--accent);
  font-weight: 500;
}
.credibility-metrics .metric-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-mute);
}
.credibility-metrics .metric-label small {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-top: 4px;
}
.credibility-sublabel {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0 0 12px;
}
@media (max-width: 720px) {
  .credibility-metrics {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 0;
  }
  .credibility-metrics li { padding-left: 14px; }
}

/* ==================== LAYOUT FIXES (additive) ==================== */

/* Pricing tier card: keep "From CHF 29,500" on a single line, scale price down */
.tier-card .price,
.price-card .price,
.price[data-price] {
  white-space: nowrap;
  letter-spacing: -0.02em;
}
@media (max-width: 1100px) {
  .tier-card .price,
  .price-card .price,
  .price[data-price] {
    font-size: clamp(28px, 4.2vw, 40px);
  }
}

/* Currency toggle: avoid "CHF CHF" duplicate when symbol equals code */
.currency-toggle .currency-current[data-collapse="true"] .currency-symbol-current { display: none; }
.currency-toggle .currency-current { white-space: nowrap; }

/* Currency menu items: stop "Swiss Franc" / "British Pound" wrapping */
.currency-menu li {
  white-space: nowrap;
}
.currency-menu li .currency-name {
  white-space: nowrap;
}
.currency-menu {
  min-width: 240px;
}

/* Contact form budget radios: keep labels on one line */
.radio-group label {
  white-space: nowrap;
  min-width: 0;
  padding: 12px 14px;
  font-size: 14px;
}
@media (max-width: 720px) {
  .radio-group { gap: 6px; }
  .radio-group label {
    flex: 1 1 calc(50% - 6px);
    padding: 10px 8px;
    font-size: 13px;
  }
}

/* ==================== WHATSAPP FLOAT BUTTON ==================== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 2px 6px rgba(37,211,102,0.4);
  overflow: hidden;
  transition: width 0.25s ease, padding 0.25s ease, box-shadow 0.2s ease, transform 0.2s ease;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}
.wa-float:hover {
  width: 188px;
  padding: 0 18px 0 0;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 3px 10px rgba(37,211,102,0.5);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.wa-float:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.wa-float .wa-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wa-float .wa-icon svg { width: 28px; height: 28px; fill: #fff; }
.wa-float .wa-label {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease 0.05s, transform 0.2s ease 0.05s;
}
.wa-float:hover .wa-label,
.wa-float:focus-visible .wa-label {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 720px) {
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .wa-float .wa-icon { width: 52px; height: 52px; }
  .wa-float:hover { width: 52px; padding: 0; } /* on touch, no expand */
}
@media (prefers-reduced-motion: reduce) {
  .wa-float,
  .wa-float .wa-label { transition: none; }
}

/* ==================== HERO CTA AMPLIFICATION ==================== */
.hero-cta-block {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* ==================== HERO CONTEXT BLOCK ==================== */
.hero-context {
  max-width: 760px;
  margin-top: 22px;
}
.hero-lede {
  font-size: 17px;
  color: var(--text-mute);
  line-height: 1.6;
  margin: 0 0 14px;
  font-weight: 400;
}
.hero-lede strong {
  color: var(--text);
  font-weight: 500;
}
.hero-sub {
  font-size: 22px;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
}
.hero-sub .accent-text-soft {
  color: var(--accent);
  font-weight: 600;
}
@media (max-width: 720px) {
  .hero-lede { font-size: 15px; }
  .hero-sub  { font-size: 19px; }
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.btn.btn-xl {
  padding: 18px 32px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(255, 191, 0, 0.12);
}
.btn.btn-lg {
  padding: 16px 26px;
  font-size: 15px;
}
.cta-microcopy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0;
  padding-left: 4px;
}
@media (max-width: 720px) {
  .btn.btn-xl { padding: 16px 26px; font-size: 16px; width: 100%; justify-content: center; }
  .btn.btn-lg { padding: 14px 22px; font-size: 14px; width: 100%; justify-content: center; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .cta-microcopy { padding-left: 0; text-align: center; width: 100%; }
}

/* ==================== RISK-REVERSAL STRIP ==================== */
/* risk-strip — absolute reset: only one solid background, no lines anywhere */
.risk-strip {
  margin: 56px auto 0;
  padding: 24px 32px;
  border: 0 !important;
  border-radius: 0;
  background: rgba(255, 191, 0, 0.05);
  background-image: none !important;
  box-shadow: none !important;
  outline: 0 !important;
  text-decoration: none !important;
}
.risk-strip *,
.risk-strip *::before,
.risk-strip *::after {
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}
.risk-strip ul,
.risk-strip li {
  list-style: none !important;
  background: transparent !important;
}
/* keep the accent yellow check-dot solid */
.risk-strip .risk-check {
  background: var(--accent) !important;
}
.risk-strip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.risk-strip-list li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.risk-strip-list .risk-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #000000;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .risk-strip {
    margin-top: 36px;
    padding: 18px 20px;
    border-radius: 0;
  }
  .risk-strip-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
  }
}

/* ==================== CREDIBILITY BAND — BREATHING ROOM ==================== */
.credibility-band { padding: 64px 0 80px; }
.credibility-block {
  padding: 32px 0;
}
.credibility-block + .credibility-block {
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.credibility-block--metrics { padding-top: 24px; padding-bottom: 40px; }
.credibility-block--logos   { padding: 36px 0; }
.credibility-block--sectors { padding-top: 36px; padding-bottom: 12px; }
/* Override the earlier border-top/bottom on metrics list — block borders now do that work */
.credibility-block--metrics .credibility-metrics {
  border-top: none;
  border-bottom: none;
  padding: 0;
  margin: 0;
}
.credibility-block .credibility-sublabel { margin-bottom: 18px; }

@media (max-width: 720px) {
  .credibility-band { padding: 44px 0 56px; }
  .credibility-block { padding: 24px 0; }
  .credibility-block--metrics { padding-bottom: 32px; }
}

/* ==================== AWARDS & RECOGNITION ==================== */
.credibility-block--awards { padding-top: 36px; padding-bottom: 12px; }
.awards-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}
.awards-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.awards-list strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 4px;
}
.awards-list span {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-mute);
}
@media (max-width: 720px) {
  .awards-list { grid-template-columns: 1fr; gap: 12px; }
  .awards-list li { padding: 14px 0; gap: 12px; }
}

/* ==================== TECH STACK PILLS ==================== */
.tech-stack {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tech-stack li {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: rgba(255,255,255,0.02);
}

/* ==================== CASE-STUDY RESULTS ==================== */
.results-section { margin-top: 32px; }
.result-metrics {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.result-metrics li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}
.result-metrics .result-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}
.result-metrics .result-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1.5;
}
@media (max-width: 720px) {
  .result-metrics { grid-template-columns: 1fr; gap: 18px; padding: 22px 0; }
  .result-metrics li { padding-left: 14px; }
}

/* ==================== WORK MINI-CARD THUMBNAILS ==================== */
.work-mini-card { position: relative; overflow: hidden; }
.work-mini-card .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: -1px -1px 18px;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: 0;
  position: relative;
}
/* If the Unsplash image fails, .thumb's gradient is the fallback. Add a subtle texture. */
.work-mini-card .thumb[data-fail="1"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 191, 0,0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04), transparent 40%);
}
.work-mini-card .thumb[data-fail="1"]::after {
  content: attr(data-fail-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.work-mini-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
  filter: saturate(0.85) brightness(0.92);
}
.work-mini-card:hover .thumb img {
  transform: scale(1.08);
  filter: saturate(1) brightness(1);
}
.work-mini-card { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, background 0.3s ease; }
.work-mini-card:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: var(--border);
}
.work-mini-card .chip {
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.work-mini-card:hover .chip {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(255, 191, 0, 0.18);
}

/* ==================== CUSTOM CURSOR ==================== */
.cursor-ring,
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  mix-blend-mode: difference;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform, opacity, width, height;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid #ffffff;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  opacity: 0;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #ffffff;
  opacity: 0;
}
.cursor-ring.is-active { opacity: 1; }
.cursor-dot.is-active { opacity: 1; }
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  background: rgba(255, 191, 0, 0.18);
  border-color: rgba(255, 191, 0, 0.6);
}
.cursor-ring.is-pressing {
  width: 28px; height: 28px;
}
@media (hover: none), (pointer: coarse) {
  .cursor-ring, .cursor-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-ring, .cursor-dot { display: none; }
}

/* ==================== BREATHING CIRCLES ==================== */
.breath {
  animation: breath 6s ease-in-out infinite;
}
@keyframes breath {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.06); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .breath { animation: none; }
}

/* ==================== HERO MOUSE PARALLAX ==================== */
.hero {
  --cx: 0;
  --cy: 0;
}
.hero-deco {
  transform: translate(calc(var(--cx) * 24px), calc(var(--cy) * 24px));
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-glow { display: none !important; }
.hero > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-deco, .hero-glow { transform: none; transition: none; }
}

/* ==================== LOADER BAR ==================== */
.loader-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 100000;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(255, 191, 0, 0.6);
}
@media (prefers-reduced-motion: reduce) {
  .loader-bar { display: none; }
}

/* ==================== HERO TITLE CHAR SPLIT ==================== */
.hero-char-line { display: block; overflow: hidden; }
.hero-char {
  display: inline-block;
  will-change: transform, opacity;
}

/* ==================== LINKEDIN VERIFY BADGE ==================== */
.linkedin-verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(14, 118, 168, 0.12);
  border: 1px solid rgba(14, 118, 168, 0.35);
  /* own block-level row, pinned to the card bottom so it aligns across the grid */
  align-self: flex-start;
  margin-top: auto;
}
.linkedin-verify svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ==================== PROJECT BANNER IMAGE OVERLAY ==================== */
.project-banner {
  position: relative;
  border-radius: 0;
  overflow: hidden;
}
.project-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.project-banner-img + svg { position: relative; z-index: 2; mix-blend-mode: multiply; opacity: 0.7; }

/* ====================================================================
   ============== PREMIUM MOTION SYSTEM (additive, last) ===============
   These rules use the new motion tokens and refine existing components.
   ==================================================================== */

/* ---------- Scroll progress indicator ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), rgba(255, 191, 0, 0.6));
  z-index: 99998;
  pointer-events: none;
  transition: width var(--dur-instant) linear;
  will-change: width;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { transition: none; }
}

/* ---------- Sticky CTA bar (appears after hero) ---------- */
.sticky-cta {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9990;
  transform: translateY(-100%);
  transition: transform var(--dur-base) var(--ease-out);
  pointer-events: none;
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.sticky-cta.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.sticky-cta-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-cta-meta .accent { color: var(--accent); }
.sticky-cta .btn {
  padding: 10px 18px;
  font-size: 13px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .sticky-cta .container { padding: 10px 16px; }
  .sticky-cta-meta { font-size: 10px; }
  .sticky-cta .btn { padding: 8px 14px; font-size: 12px; }
}

/* ---------- Magnetic CTA wrapper (set by JS) ---------- */
[data-magnetic] {
  display: inline-flex;
  transition: transform var(--dur-base) var(--ease-spring);
  will-change: transform;
}
[data-magnetic] .btn {
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  [data-magnetic] { transform: none !important; }
}

/* ---------- Refined nav micro-interaction ---------- */
.nav-links a {
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ---------- Refined work-mini-card hover (overrides earlier) ---------- */
.work-mini-card {
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.work-mini-card:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  box-shadow: var(--shadow-card-hover);
}
.work-mini-card .thumb img {
  transition: transform var(--dur-glide) var(--ease-out),
              filter var(--dur-base) var(--ease-out);
}
.work-mini-card:hover .thumb img {
  transform: scale(1.06);
  filter: saturate(1) brightness(1);
}
.work-mini-card h4 {
  transition: color var(--dur-fast) var(--ease-out);
}
.work-mini-card:hover h4 { color: var(--accent); }

/* CTA arrow on case-card (slides in on hover) */
.work-mini-card::after {
  content: "View case study";
  position: absolute;
  right: 18px; bottom: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.work-mini-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 720px) {
  .work-mini-card::after { display: none; }
}

/* ---------- Refined pricing-card hover ---------- */
.tier-card,
.price-card,
.pricing-tier {
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.tier-card:hover,
.price-card:hover,
.pricing-tier:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 191, 0, 0.18) inset;
}

/* ---------- Refined CTA buttons ---------- */
.btn { transition: background var(--dur-fast) var(--ease-out),
                  color var(--dur-fast) var(--ease-out),
                  border-color var(--dur-fast) var(--ease-out),
                  box-shadow var(--dur-fast) var(--ease-out),
                  transform var(--dur-fast) var(--ease-out); }
.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(255, 191, 0, 0.22),
              0 4px 14px rgba(0, 0, 0, 0.3);
}
.btn-primary:active { transform: scale(0.98); }
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 191, 0, 0.04);
}
.btn-ghost:active { transform: scale(0.98); }

/* ---------- Testimonial horizontal scroll ---------- */
.reviews-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 24px;
  padding: 4px 24px 24px;
  margin: 0 -24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reviews-scroll::-webkit-scrollbar { display: none; }
.reviews-scroll > .review {
  flex: 0 0 380px;
  scroll-snap-align: start;
  margin: 0;
}
@media (max-width: 720px) {
  .reviews-scroll > .review { flex: 0 0 86%; }
}
.reviews-scroll-controls {
  display: inline-flex;
  gap: 8px;
  margin-top: 24px;
}
.reviews-scroll-controls button {
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.reviews-scroll-controls button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.reviews-scroll-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: var(--border);
}
.reviews-scroll-controls svg { width: 16px; height: 16px; }

/* Reveal sections — defaults to visible. JS sets opacity:0 inline if it loads,
 * then IO reveals on scroll. If JS never runs, content stays visible. */

/* ---------- Touch states (mobile press feedback) ---------- */
@media (hover: none), (pointer: coarse) {
  .work-mini-card:active { transform: scale(0.99); }
  .btn:active { transform: scale(0.98); }
  .nav-cta:active { transform: scale(0.98); }
  .currency-toggle:active { transform: scale(0.98); }
  .review:active { transform: scale(0.99); }
}

/* ---------- Section dividers — soft horizon line ---------- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 64px 0;
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: center;
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-glide) var(--ease-out);
}
.section-divider.is-visible {
  opacity: 1;
  transform: scaleX(1);
}

/* ---------- "Process step" — used for Day 1/2/3 if rendered ---------- */
.step {
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.step:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* ====================================================================
   ============== CONSTRAINED-SCOPE CHANGES (additive, last) ===========
   - Limit work-mini-grid to 3 visible cards per category (DOM intact)
   - "More" CTA row styles
   - Larger thumbnails for fewer-card layout
   - Refined hero mark replacing orbit animation
   - Case study modal
   ==================================================================== */

/* ---------- Limit visible work-mini-cards to 3 per category — HOME ONLY ---------- */
/* On the /work/ archive page (#work-grid-title parent), show all cards. Cap only on the home #work section. */
#work .work-cat .work-mini-grid > .work-mini-card:nth-child(n+4) {
  display: none;
}
#work .work-cat.is-expanded .work-mini-grid > .work-mini-card:nth-child(n+4) {
  display: flex;
}

/* breathing room above the CTA row + centred placement under the grid */
.work-mini-cta-row {
  margin-top: 28px;
  display: flex;
  justify-content: flex-start;
}

/* button variant of the CTA — same look as the anchor */
button.work-mini-cta {
  font-family: 'IBM Plex Mono', monospace;
  background: transparent;
  cursor: pointer;
}
button.work-mini-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Larger cards because the section is now 3-up max */
.work-mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1100px) {
  .work-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 720px) {
  .work-mini-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Larger thumbs for fewer-card layout */
.work-mini-card .thumb { aspect-ratio: 16 / 10; }

/* "More" CTA row */
.work-mini-cta-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
.work-mini-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.work-mini-cta:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 191, 0, 0.04);
}

/* ---------- Luminous-glow hero banner — FULL VIEWPORT WIDTH ---------- */
/* The .hero element is constrained by .container max-width. To make the banner
 * span the full viewport, we break it out with 100vw + left:50% + translateX(-50%).
 * This avoids the crop without clipping anything inside the composition. */
.hero-glow-banner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  /* Subtle fade-in so the hero feels like it composes itself on first paint */
  opacity: 0;
  animation: hg-banner-in 1.4s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 0.1s forwards;
}
@keyframes hg-banner-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow-banner { opacity: 1; animation: none; }
}
/* Halos retired — three-color palette has no atmospheric glow */
.hg-halo,
.hg-halo--core,
.hg-halo--mid,
.hg-halo--outer { display: none !important; }
/* A single thin, slow-rotating orbit ring */
.hg-orbit {
  position: absolute;
  top: calc(22% + 80px); right: calc(14% - 60px);
  width: 440px; height: 440px;
  border: 1px solid rgba(255, 191, 0, 0.18);
  border-radius: 50%;
  transform: rotate(-22deg);
  /* dashed edge for editorial texture */
  border-style: dashed;
  border-color: rgba(255, 191, 0, 0.14);
  animation: hg-rotate 60s linear infinite;
}
/* A subtle vertical light streak — gives the composition vertical structure */
.hg-streak {
  position: absolute;
  top: 8%;
  right: 7%;
  width: 1px;
  height: 84%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 191, 0, 0.42) 40%,
    rgba(255, 191, 0, 0.18) 70%,
    transparent 100%);
  animation: hg-streak-pulse 8s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes hg-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%      { transform: scale(1.08); opacity: 1;    }
}
@keyframes hg-breath {
  0%, 100% { transform: scale(1)    translate(0, 0); }
  50%      { transform: scale(1.04) translate(-12px, 8px); }
}
@keyframes hg-rotate {
  from { transform: rotate(-22deg); }
  to   { transform: rotate(338deg); }
}
@keyframes hg-streak-pulse {
  0%, 100% { transform: scaleY(0.9); opacity: 0.55; }
  50%      { transform: scaleY(1);   opacity: 1;    }
}
@media (max-width: 900px) {
  .hg-halo--core  { width: 220px; height: 220px; right: 8%;  }
  .hg-halo--mid   { width: 380px; height: 380px; right: 0%;  }
  .hg-halo--outer { width: 560px; height: 560px; right: -20%; }
  .hg-orbit       { display: none; }
  .hg-streak      { display: none; }
}
@media (max-width: 640px) {
  .hg-halo--core  { right: -10%; opacity: 0.8; }
  .hg-halo--mid   { right: -20%; opacity: 0.7; }
  .hg-halo--outer { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hg-halo, .hg-orbit, .hg-streak { animation: none; }
}

/* ---------- (legacy) hero-mesh — kept for compatibility ---------- */
.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.hero-mesh-orb--a {
  width: 720px; height: 720px;
  top: -120px; right: -120px;
  background: radial-gradient(circle, rgba(255, 191, 0, 0.34) 0%, rgba(255, 191, 0, 0) 70%);
  animation: mesh-drift-a 22s ease-in-out infinite alternate;
}
.hero-mesh-orb--b {
  width: 560px; height: 560px;
  bottom: -160px; right: 18%;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.20) 0%, rgba(123, 97, 255, 0) 70%);
  animation: mesh-drift-b 28s ease-in-out infinite alternate;
}
.hero-mesh-orb--c {
  width: 380px; height: 380px;
  top: 28%; right: 36%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
  animation: mesh-drift-c 32s ease-in-out infinite alternate;
}
/* Subtle structural accent — an extra thin yellow line on the right edge */
.hero-mesh::after {
  content: "";
  position: absolute;
  top: 12%;
  right: 8%;
  width: 1px;
  height: 76%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 191, 0, 0.45) 35%,
    rgba(255, 191, 0, 0.25) 65%,
    transparent 100%);
  transform-origin: top center;
  animation: hero-stroke 8s ease-in-out infinite;
}
@keyframes hero-stroke {
  0%, 100% { transform: scaleY(0.92); opacity: 0.5; }
  50%      { transform: scaleY(1);    opacity: 1;   }
}
@keyframes mesh-drift-a {
  0%   { transform: translate(0, 0)        scale(1); }
  100% { transform: translate(-50px, 30px) scale(1.04); }
}
@keyframes mesh-drift-b {
  0%   { transform: translate(0, 0)        scale(1); }
  100% { transform: translate(60px, -40px) scale(0.96); }
}
@keyframes mesh-drift-c {
  0%   { transform: translate(0, 0)        scale(1); }
  100% { transform: translate(-30px, -30px) scale(1.06); }
}
@media (max-width: 900px) {
  .hero-mesh-orb { filter: blur(60px); }
  .hero-mesh-orb--a { width: 480px; height: 480px; top: -80px; right: -80px; }
  .hero-mesh-orb--b { width: 340px; height: 340px; }
  .hero-mesh-orb--c { display: none; }
  .hero-mesh::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mesh-orb,
  .hero-mesh::after { animation: none; }
}

/* ---------- (legacy) hero-mark — preserved for any other pages ---------- */
.hero-mark {
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
}
.hero-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-mark .hm-pulse {
  transform-origin: 160px 160px;
  animation: hm-pulse 3.6s var(--ease-in-out) infinite;
}
.hero-mark .hm-dots circle {
  animation: hm-dotfade 4.8s var(--ease-in-out) infinite;
}
.hero-mark .hm-dots circle:nth-child(2) { animation-delay: 0.6s; }
.hero-mark .hm-dots circle:nth-child(3) { animation-delay: 1.2s; }
.hero-mark .hm-dots circle:nth-child(4) { animation-delay: 1.8s; }
.hero-mark .hm-dots circle:nth-child(5) { animation-delay: 0.3s; }
.hero-mark .hm-dots circle:nth-child(6) { animation-delay: 0.9s; }
.hero-mark .hm-dots circle:nth-child(7) { animation-delay: 1.5s; }
.hero-mark .hm-dots circle:nth-child(8) { animation-delay: 2.1s; }

@keyframes hm-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.95; }
  50%      { transform: scale(1.4); opacity: 0.55; }
}
@keyframes hm-dotfade {
  0%, 100% { opacity: 0.18; }
  50%      { opacity: 0.55; }
}

@media (max-width: 900px) {
  .hero-mark { width: 280px; height: 280px; right: -60px; opacity: 0.5; }
}
@media (max-width: 640px) {
  .hero-mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark .hm-pulse,
  .hero-mark .hm-dots circle { animation: none; }
}

/* ---------- Case study modal — RIGHT-SIDE PANEL ---------- */
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 99996;
  display: none;
  background: rgba(10, 10, 11, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.case-modal.is-open {
  display: block;
  animation: cm-fade-in var(--dur-base) var(--ease-out);
}
@keyframes cm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.case-modal-dialog {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(640px, 92vw);
  max-height: 100vh;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-soft);
  border-left: 1px solid var(--border);
  border-radius: 0;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
  animation: cm-slide-in var(--dur-slow) var(--ease-out);
  -webkit-overflow-scrolling: touch;
}
@keyframes cm-slide-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.case-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.case-modal-close:hover { border-color: var(--accent); color: var(--accent); }
.case-modal-close svg { width: 16px; height: 16px; }

.case-modal-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--bg-card);
  border-radius: 0;
}

/* Modal — context sections (Overview / Challenge / Process / Solution / Results) */
.case-modal-context { margin-top: 22px; }
.case-modal-section { padding: 14px 0 18px; border-top: 1px solid var(--border); }
.case-modal-section:first-child { border-top: 0; padding-top: 0; }
.case-modal-section-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
  font-weight: 500;
}
.case-modal-section-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
.case-modal-results { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.case-modal-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.case-modal-metrics li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
.case-modal-metric-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.case-modal-metric-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1.4;
}
@media (max-width: 720px) {
  .case-modal-metrics { grid-template-columns: 1fr; gap: 12px; }
  .case-modal-section-body { font-size: 14px; }
}

/* Modal gallery — thumbnail row beneath the hero image */
.case-modal-gallery {
  display: flex;
  gap: 8px;
  padding: 12px 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.case-modal-gallery::-webkit-scrollbar { display: none; }
.case-modal-gallery:empty { display: none; }
.case-modal-thumb {
  flex: 0 0 96px;
  height: 64px;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background: #0e0e10;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.case-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-modal-thumb:hover  { border-color: var(--border); }
.case-modal-thumb.is-active { border-color: var(--accent); }
@media (max-width: 640px) {
  .case-modal-gallery { padding: 12px 16px 0; }
  .case-modal-thumb { flex: 0 0 80px; height: 56px; }
}
.case-modal-body {
  padding: 28px 32px 32px;
}
.case-modal-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.case-modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 14px;
  color: var(--text);
}
.case-modal-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-mute);
  margin: 0 0 22px;
  max-width: 640px;
}
.case-modal-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.case-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}
.case-modal-nav {
  position: absolute;
  top: 14px;
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.case-modal-nav:hover { border-color: var(--accent); color: var(--accent); }
.case-modal-nav.prev { right: 100px; }
.case-modal-nav.next { right: 58px; }
.case-modal-nav svg { width: 16px; height: 16px; }
@media (max-width: 720px) {
  .case-modal-dialog { width: 100%; max-height: 100vh; border-radius: 0; }
  .case-modal-img { aspect-ratio: 16 / 10; }
  .case-modal-body { padding: 22px; }
  .case-modal-nav.prev { right: 92px; }
  .case-modal-nav.next { right: 52px; }
}
body.modal-open { overflow: hidden; }

/* ====================================================================
   ============== HERO VIDEO BLEED + SQUARE WORK CARDS =================
   Final overrides — appended last so they win specificity.
   ==================================================================== */

/* Hero — full viewport width, breaks out of .container max-width */
.hero.hero-bleed {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
  min-height: 100svh;
  min-height: 100vh; /* fallback for older browsers */
  display: flex;
  align-items: center;
  background: #000000;
}

/* Video sits behind everything */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Slight desaturation + dim to keep palette monochrome and editorial */
  filter: grayscale(40%) brightness(0.7) contrast(1.05);
  pointer-events: none;
}

/* Dark gradient overlay — readability + premium mood, no colored glow */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(10, 10, 11, 0.55) 0%,
      rgba(10, 10, 11, 0.65) 50%,
      rgba(10, 10, 11, 0.85) 100%),
    linear-gradient(90deg,
      rgba(10, 10, 11, 0.35) 0%,
      rgba(10, 10, 11, 0)   45%,
      rgba(10, 10, 11, 0)   60%,
      rgba(10, 10, 11, 0.20) 100%);
}

/* Hero inner — keep content max-width and existing rhythm */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-block: clamp(64px, 9vw, 128px);
  padding-inline: var(--pad);
}
.hero.hero-bleed .hero-content,
.hero.hero-bleed > .eyebrow,
.hero.hero-bleed > h1,
.hero.hero-bleed > .hero-context,
.hero.hero-bleed > .hero-cta-block,
.hero.hero-bleed > .hero-meta { position: relative; z-index: 2; }

/* Mobile — keep the hero readable, slightly stronger overlay */
@media (max-width: 720px) {
  .hero.hero-bleed { min-height: 88svh; min-height: 88vh; }
  .hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(10, 10, 11, 0.65) 0%,
        rgba(10, 10, 11, 0.78) 60%,
        rgba(10, 10, 11, 0.92) 100%);
  }
}

/* Reduced motion — pause video and rely on the poster */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero.hero-bleed { background: var(--bg) center/cover no-repeat; }
}

/* ==================== SELECTED WORK CARDS — SQUARE EDGES ==================== */
/* Override every previous border-radius rule for the work cards section. */
.work-mini-card,
.work-mini-card .thumb,
.work-mini-card .thumb img,
.work-mini-card .chips .chip,
.work-mini-card::before,
.work-mini-card::after,
.work-mini-grid > a,
.work-mini-grid > a > * {
  border-radius: 0 !important;
}

/* ====================================================================
   ============== EDITORIAL HERO + SHARP-EDGE WORK CARDS ===============
   Final overrides — appended last so they win specificity.
   ==================================================================== */

:root {
  --hero-height: 100svh;
  --hero-min-height: 820px;
  --hero-max-height: 1200px;
  --hero-overlay-top: rgba(0, 0, 0, 0.22);
  --hero-overlay-mid: rgba(0, 0, 0, 0.48);
  --hero-overlay-bottom: rgba(0, 0, 0, 0.72);
  --hero-text-max: 28ch;
  --hero-copy-max: 34rem;
  --hero-inner-max: 1440px;
  --hero-pad-x: clamp(20px, 4vw, 56px);
  --hero-pad-y: clamp(24px, 3vw, 40px);
  --hero-eyebrow-size: 11px;
  --hero-title-size: clamp(2.6rem, 5.6vw, 6.4rem);
  --hero-copy-size: clamp(1rem, 1.2vw, 1.2rem);
  --hero-meta-size: 12px;
  --hero-rule: rgba(255, 255, 255, 0.14);
  --hero-text: #ffffff;
  --hero-text-soft: rgba(255, 255, 255, 0.76);
  --hero-text-faint: rgba(255, 255, 255, 0.52);
}

.hero-editorial {
  position: relative;
  width: 100vw;
  min-height: max(var(--hero-height), var(--hero-min-height));
  max-height: var(--hero-max-height);
  left: 50%;
  margin-left: -50vw;
  overflow: clip;
  background: #000 url('/assets/hero-poster.jpg') center/cover no-repeat;
  color: var(--hero-text);
  isolation: isolate;
  border-radius: 0 !important;
}
.hero-editorial__media,
.hero-editorial__media video,
.hero-editorial__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-editorial__media { z-index: 0; }
.hero-editorial__video,
.hero-editorial__poster {
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%) contrast(1.02) brightness(0.72);
  transform: scale(1.02);
  border-radius: 0 !important;
}
.hero-editorial__poster { z-index: 0; }
.hero-editorial__video  { z-index: 1; }
.hero-editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    var(--hero-overlay-top) 0%,
    var(--hero-overlay-mid) 42%,
    var(--hero-overlay-bottom) 100%
  );
}
.hero-editorial::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.14) 42%,
    rgba(0, 0, 0, 0.04) 100%
  );
  pointer-events: none;
}
.hero-editorial__inner {
  position: relative;
  z-index: 3;
  min-height: inherit;
  max-width: var(--hero-inner-max);
  margin: 0 auto;
  padding: var(--hero-pad-y) var(--hero-pad-x);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(24px, 3vw, 48px);
}
.hero-editorial__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 4px;
}
.hero-editorial__eyebrow,
.hero-editorial__status,
.hero-editorial__meta-label {
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
}
.hero-editorial__eyebrow {
  font-size: var(--hero-eyebrow-size);
  letter-spacing: 0.18em;
  color: var(--hero-text-soft);
  margin: 0;
}
.hero-editorial__status {
  font-size: var(--hero-eyebrow-size);
  letter-spacing: 0.16em;
  color: var(--hero-text-faint);
  text-align: right;
  margin: 0;
}
.hero-editorial__body {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: clamp(28px, 5vw, 96px);
  align-items: end;
  padding-bottom: clamp(28px, 4vw, 64px);
}
.hero-editorial__headline { max-width: var(--hero-text-max); }
.hero-editorial__title {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--hero-title-size);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  /* `balance` was forcing one-word-per-line at narrow hero widths.
     `pretty` keeps phrasing intact without aggressive rebalancing. */
  text-wrap: pretty;
  color: var(--hero-text);
}
/* Each <span> inside the title is a phrase ("Speed is cheap.") and
   MUST stay on one line — never break a phrase word-by-word. */
.hero-editorial__title span {
  display: block;
  white-space: nowrap;
}
@media (max-width: 540px) {
  /* On true mobile widths, allow phrases to wrap naturally rather
     than overflow the viewport. */
  .hero-editorial__title span { white-space: normal; }
}
.hero-editorial__title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.hero-editorial__side {
  align-self: end;
  max-width: var(--hero-copy-max);
}
.hero-editorial__copy {
  margin: 0 0 28px 0;
  font-size: var(--hero-copy-size);
  line-height: 1.55;
  font-weight: 400;
  color: var(--hero-text-soft);
}
.hero-editorial__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-editorial .btn,
.hero-editorial .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}
.hero-editorial .btn {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}
.hero-editorial .btn:hover { transform: translateY(-1px); background: #f2f2f2; }
.hero-editorial .btn-ghost {
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.hero-editorial .btn-ghost:hover { transform: translateY(-1px); border-color: #fff; }
.hero-editorial__footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--hero-rule);
}
.hero-editorial__meta { display: grid; gap: 6px; }
.hero-editorial__meta-label {
  font-size: var(--hero-meta-size);
  letter-spacing: 0.16em;
  color: var(--hero-text-faint);
}
.hero-editorial__meta-value {
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  line-height: 1.35;
  color: var(--hero-text-soft);
}
@media (max-width: 980px) {
  .hero-editorial__body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 28px;
  }
  .hero-editorial__footer {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero-editorial__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-editorial__status { text-align: left; }
}
@media (max-width: 640px) {
  .hero-editorial { min-height: 92svh; }
  .hero-editorial__inner {
    padding-inline: 18px;
    padding-block: 18px 24px;
  }
  .hero-editorial__title {
    font-size: clamp(2.8rem, 14vw, 4.8rem);
    line-height: 0.92;
  }
  .hero-editorial .btn,
  .hero-editorial .btn-ghost { width: 100%; }
}

/* JS-only progressive entrance — visible by default if JS fails */
.js-hero .hero-editorial [data-hero-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}
.js-hero .hero-editorial.is-ready [data-hero-reveal] {
  opacity: 1;
  transform: translateY(0);
}
.js-hero .hero-editorial.is-ready [data-hero-reveal="1"] { transition-delay: 60ms; }
.js-hero .hero-editorial.is-ready [data-hero-reveal="2"] { transition-delay: 180ms; }
.js-hero .hero-editorial.is-ready [data-hero-reveal="3"] { transition-delay: 320ms; }
.js-hero .hero-editorial.is-ready [data-hero-reveal="4"] { transition-delay: 460ms; }
@media (prefers-reduced-motion: reduce) {
  .js-hero .hero-editorial [data-hero-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Selected work cards: sharp editorial edges */
.selected-work-card,
.selected-work-card *,
.work-card,
.work-card *,
.feat-tile,
.feat-tile *,
.mini-card,
.mini-card *,
.mini-thumb,
.mini-thumb img,
.feat-visual,
.feat-visual img,
.case-banner,
.case-banner img,
.work-mini-card,
.work-mini-card *,
.work-mini-card .thumb,
.work-mini-card .thumb img {
  border-radius: 0 !important;
}
.selected-work-card,
.work-card,
.feat-tile,
.mini-card,
.work-mini-card {
  box-shadow: none;
}
.selected-work-card:hover,
.work-card:hover,
.feat-tile:hover,
.mini-card:hover,
.work-mini-card:hover {
  transform: translateY(-2px);
}

/* ====================================================================
   ============= HERO COMPOSITION CORRECTION (final pass) ==============
   - title split into 3 spans, hard line breaks
   - lower max font-size so it fits 1280x720 / 1440x900 / 1536x864
   - body centred so descenders never clip the fold
   ==================================================================== */
.hero-editorial { min-height: 100svh; overflow: hidden; }
.hero-editorial__inner {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.hero-editorial__body {
  align-self: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: clamp(24px, 4vw, 72px);
  padding-bottom: clamp(16px, 2vw, 32px);
}
.hero-editorial__title {
  font-size: clamp(3rem, 6.8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  max-width: 8ch;
}
.hero-editorial__title span {
  display: block;
}
.hero-editorial__title em {
  display: inline-block;
  line-height: 0.88;
}
@media (max-height: 820px) {
  .hero-editorial__title {
    font-size: clamp(2.8rem, 6vw, 6rem);
  }
  .hero-editorial__body { align-self: end; }
}
@media (max-width: 980px) {
  .hero-editorial__body {
    grid-template-columns: 1fr;
    align-self: end;
  }
  .hero-editorial__title {
    max-width: 9ch;
    font-size: clamp(2.8rem, 12vw, 5.2rem);
  }
}

/* ====================================================================
   ============= HERO STABILISATION (image-only, final) ================
   Simplified stack: poster · dark overlay · content. No video.
   ==================================================================== */
.hero-editorial {
  position: relative;
  width: 100vw;
  min-height: 100svh;
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
  background: #000;
  color: #fff;
  border-radius: 0 !important;
}
.hero-editorial__media,
.hero-editorial__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-editorial__media { z-index: 0; }
.hero-editorial__poster {
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%) contrast(1.02) brightness(0.72);
  border-radius: 0 !important;
}
.hero-editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.20) 0%,
    rgba(0,0,0,0.42) 42%,
    rgba(0,0,0,0.72) 100%
  );
  z-index: 1;
}
/* Drop the previous horizontal overlay — keep stack to one overlay only */
.hero-editorial::after { content: none !important; background: none !important; }

.hero-editorial__inner {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(24px, 3vw, 48px);
}

/* Refine title — slightly more breathable, still fits 1280×720 */
.hero-editorial__title {
  font-size: clamp(2.8rem, 6.4vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 9ch;
}
.hero-editorial__title span { display: block; }
.hero-editorial__title span + span { margin-top: 0.04em; }
.hero-editorial__title em {
  display: inline-block;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
@media (max-height: 820px) {
  .hero-editorial__title { font-size: clamp(2.6rem, 5.6vw, 5.4rem); }
}
@media (max-width: 980px) {
  .hero-editorial__title {
    max-width: 10ch;
    font-size: clamp(2.6rem, 11vw, 4.8rem);
  }
}

/* ====================================================================
   ============= HERO VIDEO RESTORE — final correction =================
   - bring back smoke video on top of poster
   - remove Instrument Serif (was never requested) — italic stays via <em>
   ==================================================================== */

/* Video sits ON TOP of the poster image when it loads.
   If video fails, browser doesn't render it and the poster shows alone.
   Both layers are inside .hero-editorial__media so they share positioning. */
.hero-editorial__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  filter: grayscale(100%) contrast(1.04) brightness(0.7);
  pointer-events: none;
  border-radius: 0 !important;
}

/* Override: the title italic must use the site's existing font stack,
   not Instrument Serif. Use Barlow Condensed italic to keep the editorial feel
   without introducing a new font family. */
.hero-editorial__title em {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-style: italic;
  font-weight: 400;
}

/* ====================================================================
   ============= HERO ITALIC — INSTRUMENT SERIF · YELLOW ===============
   Bring back the editorial italic + yellow accent on "Done in three days."
   ==================================================================== */
.hero-editorial__title em {
  font-family: "Instrument Serif", serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: var(--accent) !important;
  letter-spacing: -0.02em;
  /* slight optical lift so the serif sits flush with the sans grotesk above */
  display: inline-block;
  line-height: 0.92;
  padding-right: 0.04em;
}

/* ====================================================================
   ============= SITE-WIDE TRANSITION TONE — SMOOTH PASS ===============
   - unify cubic-bezier across hover/focus/active
   - smoother page-to-page fade
   - longer subtle ease on links and buttons site-wide
   ==================================================================== */
:root {
  --t-fast:  220ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-base:  360ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-slow:  640ms cubic-bezier(0.22, 1, 0.36, 1);
}

a, button, .btn, .btn-ghost, .nav-cta, .nav-links a,
.work-mini-card, .work-mini-card .thumb img,
.case-modal-thumb, .reviews-scroll-controls button,
.currency-toggle, .currency-menu li,
.case-modal-nav, .case-modal-close, .work-mini-cta {
  transition:
    color var(--t-fast),
    background-color var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-fast),
    box-shadow var(--t-base),
    opacity var(--t-fast),
    filter var(--t-base) !important;
}

/* Smooth text colour micro-shift on hover for accent links */
.nav-links a:hover,
.work-mini-card:hover h4,
.case-modal-cta:hover,
.work-mini-cta:hover,
.review-tag:hover {
  color: var(--accent);
}

/* Smooth scrolling everywhere except for hash jumps when reduced-motion */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Soft page-load fade on every page's main */
main { animation: page-fade-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
}

/* ====================================================================
   ============= UNMOTH-STYLE WORD REVEAL =============================
   Words rise + fade in with a per-word stagger. Italic accent rides
   slightly longer with a softer ease. No overflow-mask: keeps the
   layout safe at any viewport, no clipping, fast steady-state.
   ==================================================================== */
.split-word {
  display: inline-block;
  vertical-align: baseline;
  line-height: inherit;
}
.split-word__inner {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.45em, 0);
  transition:
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity   600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.split-word.is-in .split-word__inner {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
/* italic accent rides a bit longer + lifts from a baseline origin */
.split-word--italic .split-word__inner {
  transition:
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity   800ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: 0 100%;
}
/* hero title — slightly more dramatic ride */
.hero-editorial__title .split-word__inner {
  transform: translate3d(0, 0.55em, 0);
  transition-duration: 800ms;
}
/* small eyebrow caps come in tight + quick */
.hero-editorial__eyebrow .split-word__inner,
.eyebrow .split-word__inner,
.section-eyebrow .split-word__inner {
  transform: translate3d(0, 0.35em, 0);
  transition-duration: 500ms;
}
/* body copy reads softer */
.hero-editorial__copy .split-word__inner {
  transform: translate3d(0, 0.35em, 0);
  transition-duration: 600ms;
}
@media (prefers-reduced-motion: reduce) {
  .split-word__inner {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ====================================================================
   ============= SPRINT CURVE — ANIMATED TIMELINE DIAGRAM ==============
   The curve draws stroke-by-stroke, axis fades in, ticks rise from
   below, and each node (dot + label + caption) pops in sequentially
   as the curve passes its x-position.
   Activated when `.sprint-curve.is-running` is set by IO.
   ==================================================================== */
.sprint-curve { overflow: visible; }
.sprint-curve__axis {
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sprint-curve__ticks text {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sprint-curve__ticks text:nth-of-type(1) { transition-delay: 100ms; }
.sprint-curve__ticks text:nth-of-type(2) { transition-delay: 220ms; }
.sprint-curve__ticks text:nth-of-type(3) { transition-delay: 340ms; }
.sprint-curve__ticks text:nth-of-type(4) { transition-delay: 460ms; }

.sprint-curve__path {
  /* set via JS once getTotalLength() is known */
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  transition: stroke-dashoffset 2200ms cubic-bezier(0.65, 0, 0.35, 1);
  filter: drop-shadow(0 0 10px rgba(255, 191, 0, 0.15));
}
.sprint-curve__node {
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.34, 1.4, 0.64, 1);
}
.sprint-curve__node circle {
  /* gentle pulse on entry */
  transform-origin: center;
}
/* node staggered timing: each node pops in as the curve reaches it.
   curve duration ~2.2s; node 0 at ~0.2s, node 3 at ~2.0s. */
.sprint-curve__node[style*="--i:0"] { transition-delay: 200ms; }
.sprint-curve__node[style*="--i:1"] { transition-delay: 800ms; }
.sprint-curve__node[style*="--i:2"] { transition-delay: 1400ms; }
.sprint-curve__node[style*="--i:3"] { transition-delay: 2000ms; }

.sprint-curve.is-running .sprint-curve__axis { opacity: 1; }
.sprint-curve.is-running .sprint-curve__ticks text {
  opacity: 1;
  transform: translateY(0);
}
.sprint-curve.is-running .sprint-curve__path { stroke-dashoffset: 0; }
.sprint-curve.is-running .sprint-curve__node {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .sprint-curve__path,
  .sprint-curve__axis,
  .sprint-curve__node,
  .sprint-curve__ticks text {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }
}

/* ====================================================================
   ============= LIGHT THEME — Swiss-strict palette inversion ==========
   Activated by [data-theme="light"] on <html>. Palette stays minimal:
   white surfaces, black text, the same #FFBF00 amber. No grays beyond
   what's needed for hierarchy. Borders bear the lift, fills don't.
   ==================================================================== */
html[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-card: #fafafa;
  --bg-elevated: #f3f3f3;
  --border: rgba(17, 17, 17, 0.12);
  --text: #000000;
  --text-mute: #4a4a4e;
  --text-subtle: #8a8a8e;
  --accent: #ffbf00;
  --accent-2: #ffbf00;
  --accent-soft: rgba(255, 191, 0, 0.10);
  /* Hero video is dark in BOTH themes — keep hero text white-readable */
  --hero-text: #ffffff;
  --hero-text-soft: rgba(255, 255, 255, 0.78);
  --hero-text-faint: rgba(255, 255, 255, 0.55);
  --hero-rule: rgba(255, 255, 255, 0.20);
}
html[data-theme="light"] body { background: #ffffff; color: #000000; }
html[data-theme="light"] ::selection { background: #ffbf00; color: #000000; }

/* In light mode the editorial hero overlay must darken the video less */
/* Light theme keeps the hero dark so white text remains readable.
   Only the page surfaces flip — the hero is always editorial-dark. */

/* Buttons in light mode flip to black-on-white */
html[data-theme="light"] .hero-editorial .btn {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}
html[data-theme="light"] .hero-editorial .btn:hover { background: #1a1a1a; }
html[data-theme="light"] .hero-editorial .btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.32);
}
html[data-theme="light"] .hero-editorial .btn-ghost:hover { border-color: #000000; }

html[data-theme="light"] .nav-cta {
  background: #000000;
  color: #ffffff;
}
html[data-theme="light"] .nav-cta:hover { background: var(--accent); color: #000000; }

/* Light-mode sprint curve — keep amber, soften axis */
html[data-theme="light"] .sprint-curve__axis { stroke: rgba(0, 0, 0, 0.16); }
html[data-theme="light"] .sprint-curve__ticks text { fill: #4a4a4e; }
html[data-theme="light"] .sprint-curve__node text { fill: #000000; }
html[data-theme="light"] .sprint-curve__node text:nth-of-type(2) { fill: #4a4a4e; }

/* ============================================================
   THEME TOGGLE — sun/moon switch in the nav
   ============================================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  margin-right: 12px;
  transition:
    color var(--t-fast, 220ms ease),
    background-color var(--t-fast, 220ms ease),
    border-color var(--t-fast, 220ms ease);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .tt-sun  { display: none; }
.theme-toggle .tt-moon { display: inline-block; }
html[data-theme="light"] .theme-toggle .tt-sun  { display: inline-block; }
html[data-theme="light"] .theme-toggle .tt-moon { display: none; }
@media (max-width: 720px) {
  .theme-toggle { width: 34px; height: 34px; margin-right: 6px; }
  .theme-toggle svg { width: 14px; height: 14px; }
}

/* ====================================================================
   FINAL HERO TITLE LOCK — must not be overridden by anything below.
   Each title span renders as a single un-broken phrase.
   ==================================================================== */
.hero-editorial__title span {
  white-space: nowrap !important;
}
@media (max-width: 540px) {
  .hero-editorial__title span { white-space: normal !important; }
}

/* ====================================================================
   ============= SERVICES STATEMENT (#2) — single confident line ======
   Replaces the 6-tile service grid. One sentence, full-width, decisive.
   Swiss-strict typographic rhythm: massive display, generous whitespace.
   ==================================================================== */
.services-statement {
  padding-block: clamp(48px, 8vw, 120px) clamp(40px, 6vw, 88px);
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  max-width: 1200px;
}
.services-statement__line {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 5.6vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}
.services-statement__sub {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 720px;
  margin: 0;
}
.services-statement__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}
.services-statement__cta .btn,
.services-statement__cta .btn-ghost {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
}
.services-statement__cta .btn {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}
.services-statement__cta .btn:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.services-statement__cta .btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.services-statement__cta .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ====================================================================
   ============= WORK FULL-BLEED (#3) — image-first, generous height ==
   The mini-grid was 3-up at 24px gaps with thumbnails small.
   Now: 2-up at desktop, image-first, taller thumbs, edge-to-edge feel.
   On hover: tiny scale + shadow lift (+motion polish #6).
   ==================================================================== */
@media (min-width: 980px) {
  .work-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(24px, 3vw, 48px) !important;
  }
}
.work-mini-card {
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 420ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: transform;
}
.work-mini-card .thumb {
  aspect-ratio: 16 / 10 !important;
  margin: 0 0 22px !important;
}
.work-mini-card:hover {
  transform: translateY(-2px) scale(1.005);
  border-color: var(--border);
  box-shadow:
    0 20px 60px -20px rgba(255, 191, 0, 0.18),
    0 8px 24px -12px rgba(0, 0, 0, 0.6);
}
.work-mini-card:hover .thumb img {
  transform: scale(1.03);
}
.work-mini-card .thumb img {
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* category headers — strip the grayscale "5 projects · 2 live" meta-text
   leftover styles in case they re-render anywhere */
.cat-meta { display: none !important; }

/* On larger viewports widen each category section so cards read as
   primary content, not constrained library blocks. */
@media (min-width: 1200px) {
  #work .work-cat .work-mini-grid > .work-mini-card:nth-child(n+3) {
    display: none;
  }
  #work .work-cat.is-expanded .work-mini-grid > .work-mini-card:nth-child(n+3) {
    display: flex;
  }
}

/* ====================================================================
   ============= NAV ALWAYS WHITE — both themes =======================
   The header sits over a dark hero on home and over the page bg
   elsewhere. To stay branded across themes, force nav links and chrome
   white in both light + dark. Header keeps a transparent surface.
   ==================================================================== */
.nav-links a {
  color: rgba(255, 255, 255, 0.85) !important;
}
html[data-theme="light"] .nav-links a {
  color: rgba(0, 0, 0, 0.75) !important;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #ffffff !important;
}
html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a[aria-current="page"] {
  color: #000000 !important;
}
.nav-logo { color: #ffffff !important; }
html[data-theme="light"] .nav-logo { color: #000000 !important; }

.theme-toggle {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
}
html[data-theme="light"] .theme-toggle {
  color: #000000 !important;
  border-color: rgba(0, 0, 0, 0.20) !important;
}
.theme-toggle:hover {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}
html[data-theme="light"] .theme-toggle:hover {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}
.currency-toggle {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
}
html[data-theme="light"] .currency-toggle {
  color: #000000 !important;
  border-color: rgba(0, 0, 0, 0.20) !important;
}
/* Currency dropdown menu — light theme uses light surface + dark text */
html[data-theme="light"] .currency-menu {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #000000 !important;
}
html[data-theme="light"] .currency-menu li { color: #000000 !important; }
html[data-theme="light"] .currency-menu li:hover { background: rgba(0, 0, 0, 0.05) !important; }
html[data-theme="light"] .currency-menu .currency-name { color: rgba(0, 0, 0, 0.55) !important; }
html[data-theme="light"] .currency-menu li.active .currency-name { color: #000000 !important; }
.nav-cta {
  background: #ffffff !important;
  color: #000000 !important;
}
html[data-theme="light"] .nav-cta {
  background: #000000 !important;
  color: #ffffff !important;
}
.nav-cta:hover {
  background: var(--accent) !important;
  color: #000 !important;
}
html[data-theme="light"] .nav-cta:hover {
  background: var(--accent) !important;
  color: #000 !important;
}

/* ====================================================================
   ============= WORK FULL-BLEED — TRUE 100VW =========================
   Cards escape the .container, span the whole viewport, one per row.
   Image fills the card. Title + subtitle + CTA overlay bottom-left.
   ==================================================================== */
#work .work-cat {
  /* Break out of the .container at 100vw, regardless of parent padding */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: clamp(24px, 4vw, 48px);
}
#work .work-cat-header {
  /* Re-indent header back to container width so it reads as a label */
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-bottom: 12px;
}
#work .work-mini-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin: 0 !important;
}
#work .work-mini-card {
  position: relative !important;
  display: block !important;
  width: 100vw !important;
  aspect-ratio: 21 / 9 !important;
  margin: 0 !important;
  border: 0 !important;
  background: #000 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
#work .work-mini-card .thumb {
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
  width: 100% !important;
  height: 100% !important;
  background: #000 !important;
  z-index: 0;
}
#work .work-mini-card .thumb img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* Soft scrim so overlay text stays readable on bright photos */
#work .work-mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.65) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 60%);
  z-index: 1;
  pointer-events: none;
}
/* Hide chips + tag — overlay typography is the spec now */
#work .work-mini-card .chips,
#work .work-mini-card .tag,
#work .work-mini-card p { display: none !important; }
/* Title overlay bottom-left */
#work .work-mini-card h4 {
  position: absolute !important;
  left: clamp(28px, 5vw, 80px) !important;
  bottom: clamp(48px, 6vw, 96px) !important;
  margin: 0 !important;
  z-index: 2 !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: clamp(2rem, 4.4vw, 4.4rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.0 !important;
  color: #ffffff !important;
  max-width: 60vw;
}
/* "View case study →" pseudo-CTA under the title */
#work .work-mini-card::before {
  content: "View case study →";
  position: absolute;
  left: clamp(28px, 5vw, 80px);
  bottom: clamp(20px, 3vw, 40px);
  z-index: 2;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: color 280ms ease, transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
#work .work-mini-card:hover::before {
  color: var(--accent);
  transform: translateX(6px);
}
/* Hover: subtle zoom on the image, no card-level scale (full-width) */
#work .work-mini-card:hover {
  transform: none !important;
  box-shadow: none !important;
}
#work .work-mini-card:hover .thumb img {
  transform: scale(1.04);
}
/* On home, show 2 cards per category. See more reveals all. */
#work .work-cat .work-mini-grid > .work-mini-card:nth-child(n+3) {
  display: none !important;
}
#work .work-cat.is-expanded .work-mini-grid > .work-mini-card:nth-child(n+3) {
  display: block !important;
}
/* See-more CTA row sits back inside the container */
#work .work-mini-cta-row {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-top: 20px;
}

/* Strip placeholder data-fail box rendering — keep nothing visible */
.work-mini-card .thumb[data-fail="1"]::before,
.work-mini-card .thumb[data-fail="1"]::after { content: none !important; }

/* On mobile, lower aspect ratio so cards aren't ridiculously short */
@media (max-width: 720px) {
  #work .work-mini-card { aspect-ratio: 4 / 5 !important; }
  #work .work-mini-card h4 { font-size: clamp(1.6rem, 7vw, 2.4rem) !important; }
}

/* ====================================================================
   ============= HERO LAYOUT — STACKED + LARGE TYPE ===================
   Last-cascade override. Reasoning:
   - The 2-col grid forced the headline into a narrow column where a
     long phrase ("Anybody can build fast.") overlapped the right
     column visually at desktop. Stack instead — headline gets the
     full hero width, subhead + CTAs sit beneath.
   - Title scales up ~3.6x (target was 4x, but at literal 4x a phrase
     overflows even a 1920px viewport; this is the largest setting
     that comfortably fits "Anybody can build fast." on one line at
     ~1400px and wraps cleanly below that).
   - white-space:nowrap removed so phrases wrap naturally on narrow
     viewports rather than overflowing horizontally.
   ==================================================================== */
:root {
  --hero-title-size: clamp(3.6rem, 11vw, 13rem) !important;
  --hero-text-max: none !important;
}
.hero-editorial__body {
  grid-template-columns: 1fr !important;
  gap: clamp(20px, 3vw, 36px) !important;
  align-items: start !important;
}
.hero-editorial__headline {
  max-width: none !important;
}
.hero-editorial__title {
  line-height: 0.92 !important;
  letter-spacing: -0.045em !important;
}
/* Phrases may wrap if the viewport is narrow — never overflow */
.hero-editorial__title span {
  white-space: normal !important;
  display: block !important;
}
/* Subhead column re-anchors to the left, with a sensible reading width */
.hero-editorial__side {
  max-width: 56ch !important;
  align-self: start !important;
}

/* ====================================================================
   ============= WORK CARD VIDEO — autoplay muted, hover reveal =======
   Cards with both <img> + <video> show the image by default;
   the video sits on top, opacity 0 until hover. Always muted + looped.
   ==================================================================== */
.work-mini-card .thumb { position: relative; }
.work-mini-card .thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
.work-mini-card:hover .thumb-video,
.work-mini-card:focus-visible .thumb-video {
  opacity: 1;
}
/* In full-bleed work cards (#work), the video should respect the
   absolute-fill thumb wrapper. */
#work .work-mini-card .thumb-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* ====================================================================
   ============= BATCH 1 — NEW HERO + SERVICES COMPONENTS =============
   Styles for the new copy components introduced in Batch 1:
   - bridge line (small text under hero subhead)
   - reassurance line (under CTAs)
   - text-only CTA link
   - three-shape services grid (prose blocks)
   - section text-link row
   ==================================================================== */
.hero-editorial__bridge {
  margin: 14px 0 22px 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(13px, 1.05vw, 14px);
  line-height: 1.55;
  color: var(--hero-text-faint);
  max-width: 56ch;
}
.hero-editorial__reassure {
  margin: 18px 0 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-text-faint);
}
.hero-editorial__textlink {
  display: inline-flex;
  align-items: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--hero-text);
  text-decoration: none;
  padding: 12px 4px;
  margin-left: 4px;
  border-bottom: 1px solid transparent;
  transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.hero-editorial__textlink:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  transform: translateX(2px);
}

/* Three shapes of work — prose blocks under the services H2 */
.services-shapes {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(36px, 5vw, 64px);
  max-width: 1180px;
}
@media (min-width: 900px) {
  .services-shapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.services-shape {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px) 0;
  border-top: 1px solid var(--border);
}
.services-shape__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--text);
  margin: 0;
}
.services-shape__body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.65;
  color: var(--text-mute);
  margin: 0;
}

.services-statement__textlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: clamp(32px, 4vw, 56px);
}
.services-statement__textlinks .hero-editorial__textlink {
  /* In services context the link sits on the page bg, not hero */
  color: var(--text);
}

/* ====================================================================
   ============= BATCH 2 — Footer legal + Contact + Pricing + About ===
   ==================================================================== */

/* Footer legal/registration row */
.footer-legal {
  margin: 6px 0 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  opacity: 0.85;
}
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; }
.footer-bottom > p:first-child { margin-right: auto; }

/* Pricing — clarifier under "Senior work, or no fee." */
.guarantee-clarifier {
  margin-top: 18px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 64ch;
}

/* Contact promise headline-adjacent */
.contact-promise {
  margin: 32px 0 6px 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 720px;
}
.contact-promise__sub {
  margin: 0 0 8px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contact-pilot-clarifier {
  margin: 18px 0 0 0;
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: var(--bg-card);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 720px;
}
.contact-pilot-clarifier[hidden] { display: none; }

/* Sprint shape select — accent on the pre-filled state */
#shape.is-prefilled { border-color: var(--accent); }

/* About page — prose, stats, CTA */
.about-prose {
  max-width: 70ch;
  display: grid;
  gap: 28px;
}
.about-prose p {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.7;
  color: var(--text-mute);
  margin: 0;
}
.about-prose p strong { color: var(--text); }
.about-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 720px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .about-stats { grid-template-columns: repeat(4, 1fr); }
}
.about-stats li {
  display: flex;
  flex-direction: column;
  padding: 28px 0;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) {
  .about-stats li {
    padding: 28px 24px;
    border-right: 1px solid var(--border);
  }
  .about-stats li:nth-child(2n) { border-right: 0; }
}
@media (min-width: 1100px) {
  .about-stats li:nth-child(2n) { border-right: 1px solid var(--border); }
  .about-stats li:nth-child(4n) { border-right: 0; }
  .about-stats li:first-child { padding-left: 0; }
}
.about-stat__value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.about-stat__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.about-cta { text-align: left; }
.about-cta__title {
  margin: 24px 0 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}
.about-cta__sub {
  margin: 0 0 32px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 640px;
}
.about-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.about-cta__actions .btn,
.about-cta__actions .btn-ghost {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
}
.about-cta__actions .btn {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}
.about-cta__actions .btn:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.about-cta__actions .btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.about-cta__actions .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ====================================================================
   ============= MOBILE HERO — Final overrides (≤768px) ===============
   Desktop hero unchanged. Mobile: italic dominant, bridge hidden,
   sub tightened, reassurance sentence-case, meta footer stacked,
   video swapped for poster image for instant first paint.
   ==================================================================== */
@media (max-width: 768px) {
  /* A.1 — Italic dominant in H1 */
  .hero-editorial__title {
    font-size: clamp(2.2rem, 10vw, 2.7rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
  }
  .hero-editorial__title em {
    display: block !important;
    margin-top: 0.15em !important;
    font-size: clamp(2.8rem, 13vw, 3.6rem) !important;
    line-height: 1.0 !important;
    /* font-family Instrument Serif, italic, accent colour preserved
       by inheritance from earlier rules */
  }

  /* A.3 — Hide bridge line */
  .hero-editorial__bridge { display: none !important; }

  /* A.4 — Sub-headline tighter */
  .hero-editorial__copy {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
  }

  /* A.5 — Reassurance: sentence case, muted, below-fold */
  .hero-editorial__reassure {
    text-transform: none !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
    opacity: 0.6 !important;
    margin-top: 24px !important;
  }

  /* A.6 — Meta footer stacks vertically with top divider */
  .hero-editorial__footer {
    margin-top: 32px !important;
    padding-top: 24px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* A.7 — Hero fills the small viewport, with sensible inner padding */
  .hero-editorial {
    min-height: 100svh;
  }
  .hero-editorial__inner {
    padding-block: 24px 32px !important;
  }

  /* B.1 — Hide the video; poster image (set on .hero-editorial) takes over */
  .hero-editorial__video { display: none !important; }
}

/* ====================================================================
   ============= HOW IT WORKS — Mobile step blocks ====================
   The four step articles use inline grid styles (220px 1fr) that
   overflow mobile viewports. Override at ≤768px to stack vertically.
   Desktop layout (≥769px) is unaffected.
   ==================================================================== */
@media (max-width: 768px) {
  /* Outer article: collapse the 220px label column into a stacked layout */
  .hw-steps article {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 40px 0 !important;
  }

  /* The "Step 01 / D0" label block: keep it readable, just smaller spacing */
  .hw-steps article > div:first-child > .display-lg {
    margin-top: 12px !important;
    font-size: clamp(2.4rem, 9vw, 3.2rem) !important;
    line-height: 1 !important;
  }

  /* The H2 inside each step: scale down so the line doesn't break awkwardly */
  .hw-steps article .display-md {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    line-height: 1.15 !important;
  }

  /* The bullet list inside each step: collapse 2-col to 1-col, remove
     max-width so it can use the full container width */
  .hw-steps article ul {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    margin-top: 24px !important;
    gap: 10px !important;
  }

  /* The paragraph: ensure it never exceeds container width */
  .hw-steps article p {
    max-width: 100% !important;
    font-size: 16px !important;
  }
}

/* ====================================================================
   ============= MOBILE LAYOUT FIXES — ≤768px (extra blocks) ==========
   The hw-steps block was added in a prior batch and lives above.
   Adding the remaining selectors here: blog-featured, pricing-guarantee,
   post-related. Desktop layouts unaffected.
   ==================================================================== */
@media (max-width: 768px) {
  /* --- blog.html: featured essay --- */
  .blog-featured article {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 40px 0 !important;
  }
  /* Reorder so the decorative SVG sits below the text on mobile */
  .blog-featured article > div:first-child { order: 1; }
  .blog-featured article > div:last-child  { order: 2; }
  .blog-featured article p {
    max-width: 100% !important;
    font-size: 16px !important;
  }

  /* --- pricing.html: guarantee CTA --- */
  .pricing-guarantee .cta-block {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .pricing-guarantee .cta-block > div:last-child {
    align-items: stretch !important;
  }
  .pricing-guarantee .cta-block .btn { width: 100%; }
  .pricing-guarantee p { max-width: 100% !important; }

  /* --- blog detail pages: "Keep reading" related-posts --- */
  .post-related {
    grid-template-columns: 1fr !important;
  }
}

/* === simplr.work — Day 2 · mobile hero refinement (less context on small screens) === */
@media (max-width: 720px) {
  /* Hide the secondary support copy on mobile, per user direction (less context) */
  .hero-editorial__bridge,
  .hero-editorial__reassure {
    display: none;
  }
  /* Make the hero headline a touch bigger on mobile — Swiss-typography emphasis */
  .hero-editorial__title {
    font-size: clamp(40px, 11vw, 56px);
    line-height: 1.0;
  }
  .hero-editorial__title em {
    font-size: 1.1em;
    line-height: 1.05;
  }
  /* Tighten the hero copy block */
  .hero-editorial__copy {
    font-size: 15px;
    line-height: 1.5;
  }
}

/* === simplr.work — Day 2 · about portrait responsive === */
@media (max-width: 720px) {
  .about-portrait {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .about-portrait__photo img {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* === simplr.work — Day 2.1 · hero refit (clarity, restraint, scale) === */
/* Lean body: removes the constrained two-column layout, lets headline breathe full-width */
.hero-editorial__body--lean {
  display: block;
  grid-template-columns: none;
}

/* Headline — slightly larger, with the third line pulling visual weight */
.hero-editorial__title {
  letter-spacing: -0.025em;
  line-height: 0.95;
}
.hero-editorial__title em {
  font-style: italic;
  font-weight: 400;
}

/* Meta grid — promoted from afterthought to product manifest */
.hero-editorial__meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-editorial__meta-grid .hero-editorial__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-editorial__meta-grid .hero-editorial__meta-label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
.hero-editorial__meta-grid .hero-editorial__meta-value {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  /* Instrument Serif has no opsz axis; use weight + style */
}

/* CTA row — buttons grouped with the demoted motto line */
.hero-editorial__cta-row {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-editorial__guarantee {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  font-weight: 500;
}

/* Mobile: stack meta, tighten spacing, headline scales down gracefully */
@media (max-width: 720px) {
  .hero-editorial__meta-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
    padding-top: 24px;
  }
  .hero-editorial__meta-grid .hero-editorial__meta-value {
    font-size: 16px;
  }
  .hero-editorial__cta-row {
    margin-top: 32px;
  }
}

/* === simplr.work — Day 2.2 · credibility calibration === */

/* Hero support line: "Short scope. Senior execution. Fixed fee." */
.hero-editorial__principle {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
  margin: 24px 0 0;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* Calibration section — sits between hero and "Four shapes" */
.calibration {
  max-width: 1080px;
}
.calibration__intro {
  max-width: 760px;
  margin-bottom: 64px;
}
.calibration__headline {
  margin-top: 16px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.calibration__lede {
  margin-top: 24px;
  color: var(--text-mute);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  max-width: 680px;
}
.calibration__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
}
.calibration__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.calibration__num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  padding-top: 4px;
}
.calibration__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}
.calibration__desc {
  margin-top: 10px;
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.6;
}

/* Light mode adjustments */
:root[data-theme="light"] .hero-editorial__principle,
.theme-light .hero-editorial__principle {
  color: rgba(0, 0, 0, 0.65);
}
:root[data-theme="light"] .calibration__item,
.theme-light .calibration__item {
  border-top-color: rgba(0, 0, 0, 0.12);
}
:root[data-theme="light"] .calibration__num,
.theme-light .calibration__num {
  color: rgba(0, 0, 0, 0.45);
}

/* Mobile */
@media (max-width: 720px) {
  .hero-editorial__principle {
    font-size: 18px;
    margin-top: 20px;
  }
  .calibration__list {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .calibration__intro {
    margin-bottom: 40px;
  }
  .calibration__item {
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding-top: 20px;
  }
}

/* === Day 2.3 · headline qualifier — scale the longer italic line down so it reads as a kicker, not a competing line === */
.hero-editorial__title span:last-child em {
  font-size: 0.62em;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, 0.78);
  display: inline-block;
  margin-top: 0.15em;
}
:root[data-theme="light"] .hero-editorial__title span:last-child em,
.theme-light .hero-editorial__title span:last-child em {
  color: rgba(0, 0, 0, 0.7);
}
@media (max-width: 720px) {
  .hero-editorial__title span:last-child em {
    font-size: 0.58em;
  }
}

/* === Day 2.4 · simplified hero (Websites. Applications.) === */

/* Bigger headline — only two words per line now, so it can breathe */
.hero-editorial__title--lg {
  font-size: clamp(3.5rem, 9.5vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 600;
}

/* Kicker (italic "In three working days") — single line, heavier, larger than before */
.hero-editorial__title--lg .hero-editorial__kicker {
  display: block;
  margin-top: 0.18em;
}
.hero-editorial__title--lg .hero-editorial__kicker em {
  font-style: italic;
  font-size: 0.62em;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--accent, #FFBF00);  /* gold accent, matches existing italic treatment */
  white-space: nowrap;
}

/* CTA microcopy — heavier, more present (was small mono caps, now readable line) */
.hero-editorial__guarantee {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  margin: 0;
}
:root[data-theme="light"] .hero-editorial__guarantee,
.theme-light .hero-editorial__guarantee {
  color: rgba(0, 0, 0, 0.75);
}

/* === Principle line + meta trio relocated to calibration section === */
.calibration__principle {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text, #fff);
  margin: 0 0 48px;
  max-width: 880px;
}

.calibration__manifest {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 64px;
}
.calibration__manifest-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
:root[data-theme="light"] .calibration__manifest,
.theme-light .calibration__manifest {
  border-color: rgba(0, 0, 0, 0.12);
}

/* Mobile */
@media (max-width: 720px) {
  .hero-editorial__title--lg {
    font-size: clamp(2.8rem, 13vw, 5rem);
    line-height: 0.95;
  }
  .hero-editorial__title--lg .hero-editorial__kicker em {
    font-size: 0.58em;
    white-space: normal;  /* allow wrap on tiny screens if needed */
  }
  .hero-editorial__guarantee {
    font-size: 13px;
  }
  .calibration__principle {
    font-size: 22px;
    margin-bottom: 32px;
  }
  .calibration__manifest {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
    margin-bottom: 40px;
  }
}

/* Override the older Day 2.3 kicker scaling so it doesn't fight the new size — only applies when title has --lg modifier */
.hero-editorial__title--lg span:last-child em {
  font-size: 0.62em;
  color: var(--accent, #FFBF00);
  opacity: 1;
}
