/* ============================================================
   BitCode — refreshed design system
   Editorial/technical · OLED dark · red accent preserved
   ============================================================ */

:root {
  /* type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Instrument Serif", "Times New Roman", serif;

  /* LIGHT mode (default) */
  --bg:         #fafaf8;
  --bg-elev:   #ffffff;
  --bg-subtle: #f3f3f0;
  --fg:        #0a0a0a;
  --fg-muted:  #5f5f5a;
  --fg-faint:  #8a8a85;
  --border:    #e6e6e0;
  --border-strong: #d4d4cc;

  --accent:        #ce2026;   /* original BitCode red */
  --accent-hover:  #b81b21;
  --accent-soft:   #fbe9ea;
  --accent-fg:     #ffffff;

  --shadow-sm: 0 1px 2px rgba(10,10,10,0.04);
  --shadow-md: 0 6px 24px -8px rgba(10,10,10,0.10), 0 2px 6px -2px rgba(10,10,10,0.04);
  --shadow-lg: 0 24px 60px -20px rgba(10,10,10,0.18);

  /* geometry */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* density (overridden by JS) */
  --section-py: 8rem;       /* comfortable */
  --section-py-sm: 5rem;
  --grid-gap: 1.5rem;
  --container-px: 1.5rem;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg:        #000000;
  --bg-elev:   #0a0a0a;
  --bg-subtle: #0f0f0f;
  --fg:        #f5f5f3;
  --fg-muted:  #a1a1a1;
  --fg-faint:  #6e6e6e;
  --border:    #1c1c1c;
  --border-strong: #2a2a2a;

  --accent:        #ff3845;   /* vivid red for dark */
  --accent-hover:  #ff5560;
  --accent-soft:   rgba(255, 56, 69, 0.12);
  --accent-fg:     #0a0a0a;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.6);
  --shadow-md: 0 6px 24px -8px rgba(0,0,0,0.8), 0 2px 6px -2px rgba(0,0,0,0.6);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,0.9);

  color-scheme: dark;
}

[data-density="compact"] {
  --section-py: 5rem;
  --section-py-sm: 3rem;
  --grid-gap: 1rem;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  transition: background-color 250ms ease, color 250ms ease;
}

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

::selection { background: var(--accent); color: var(--accent-fg); }

/* ---------- container ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.display {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  color: var(--fg);
  margin: 0;
  text-wrap: balance;
}
.display em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.heading-lg {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  color: var(--fg);
  text-wrap: balance;
}
.heading-md {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--fg);
}
.heading-sm {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--fg);
}

.lede {
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  color: var(--fg-muted);
  line-height: 1.55;
  max-width: 56ch;
  text-wrap: pretty;
}
.body { color: var(--fg-muted); }
.mono { font-family: var(--font-mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: all 180ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--fg); background: var(--bg-elev); }
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
  transition: gap 180ms ease, color 180ms ease;
}
.btn-arrow:hover { gap: 0.75rem; color: var(--accent); border-color: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--fg);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-mark .slash { color: var(--accent); }

/* brand variants — switchable via Tweaks → Logo (default "code") */
.brand-variant { display: none; align-items: center; gap: 0.5rem; }
[data-brand="code"] .brand-v-code,
[data-brand="wordmark"] .brand-v-wordmark,
[data-brand="classic"] .brand-v-classic,
html:not([data-brand]) .brand-v-code { display: inline-flex; }
.brand-mark-code { font-size: 0.62rem; letter-spacing: 0; }
.brand-word { font-weight: 500; }
.brand-code { color: var(--accent); }
.brand-logo-img { height: 24px; width: auto; }
[data-theme="dark"] .brand-v-classic .brand-logo-img { filter: brightness(0) invert(1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  font-size: 0.875rem;
  color: var(--fg-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  transition: color 160ms ease, background 160ms ease;
}
.nav-link:hover, .nav-link.active { color: var(--fg); background: var(--bg-subtle); }

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  margin: 0 0.5rem 0 0.25rem;
  transition: color 160ms ease, background 160ms ease;
}
.theme-toggle:hover { color: var(--fg); background: var(--bg-subtle); }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

@media (max-width: 880px) {
  .nav-links .nav-link:not(.always-show) { display: none; }
}

/* ---------- sections ---------- */
.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  position: relative;
}
.section-sm { padding-top: var(--section-py-sm); padding-bottom: var(--section-py-sm); }
.section-divider { border-top: 1px solid var(--border); }

/* ---------- cards ---------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.card:hover {
  border-color: var(--border-strong);
}

/* ---------- chip / tag ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  background: var(--bg-elev);
}
.chip-accent {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 4rem;
  padding-bottom: 2rem;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  margin: 0 0 1rem;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.footer a { color: var(--fg-muted); font-size: 0.9rem; transition: color 160ms ease; }
.footer a:hover { color: var(--fg); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--fg-faint);
  font-family: var(--font-mono);
}

/* ---------- utility ---------- */
.grid { display: grid; gap: var(--grid-gap); }
.flex { display: flex; }
.hide-mobile { }
@media (max-width: 720px) {
  .hide-mobile { display: none; }
}

/* ---------- AOS-lite (subtle reveal) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* ---------- hero shared ---------- */
.hero {
  padding-top: clamp(5rem, 10vh, 8rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  align-items: end;
  gap: 4rem;
}

/* dotted background for hero */
.bg-dotgrid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--border-strong) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 65%);
  opacity: 0.45;
  pointer-events: none;
}

/* marquee for trusted-by */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--fg-muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.marquee-item::before {
  content: "//";
  color: var(--accent);
  font-weight: 600;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* tweaks panel */
.tweaks-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  width: 280px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  font-size: 0.85rem;
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h5 {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tweaks-section { padding: 0.5rem 0; border-top: 1px solid var(--border); }
.tweaks-section:first-of-type { border-top: 0; padding-top: 0; }
.tweaks-section label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  display: block;
  margin-bottom: 0.5rem;
}
.tweaks-options {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-md);
}
.tweaks-options button {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  color: var(--fg-muted);
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 160ms ease, color 160ms ease;
}
.tweaks-options button.active {
  background: var(--bg-elev);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.tweaks-toggle-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 99;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.9rem 0.5rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  box-shadow: var(--shadow-md);
}
.tweaks-toggle-btn:hover { color: var(--fg); border-color: var(--fg-muted); }
.tweaks-toggle-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   Page: index
   ============================================================ */
    /* --- HERO variant: editorial --- */
    .hero-editorial .hero-grid {
      grid-template-columns: 1.4fr 1fr;
    }
    @media (max-width: 880px) { .hero-editorial .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
    .hero-editorial .hero-meta {
      border-left: 1px solid var(--border);
      padding-left: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }
    .hero-editorial .meta-row {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 1rem;
      font-family: var(--font-mono);
      font-size: 0.85rem;
      color: var(--fg-muted);
    }
    .hero-editorial .meta-row .label {
      color: var(--fg-faint);
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
    .hero-editorial .meta-row .value { color: var(--fg); }

    /* --- HERO variant: split (with figure) --- */
    .hero-split .hero-grid {
      grid-template-columns: 1.3fr 1fr;
      align-items: center;
      gap: 3rem;
    }
    @media (max-width: 880px) { .hero-split .hero-grid { grid-template-columns: 1fr; } }
    .hero-figure {
      aspect-ratio: 4/5;
      max-width: 460px;
      margin-left: auto;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 60%),
        var(--bg-elev);
      position: relative;
      overflow: hidden;
    }
    .hero-figure-inner {
      position: absolute;
      inset: 0;
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      font-family: var(--font-mono);
      font-size: 0.8rem;
    }
    .hero-figure-grid {
      flex: 1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 1fr 1fr;
      gap: 0.5rem;
      margin: 1.5rem 0;
    }
    .hf-cell {
      background: var(--bg-subtle);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 0.875rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 0.5rem;
      color: var(--fg-muted);
    }
    .hf-cell .hf-label { font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-faint); }
    .hf-stat { display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
    .hf-cell strong { color: var(--fg); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1; }
    .hf-cap { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-faint); }
    .hf-spark { width: 100%; height: 80px; display: block; color: var(--fg-faint); }
    .hf-cell.accent { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
    .hf-cell.accent strong { color: var(--accent); }
    .hf-cell.accent .hf-spark { color: var(--accent); }
    .hf-cell.accent .hf-cap { color: color-mix(in srgb, var(--accent) 70%, var(--fg-faint)); }
    .hf-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: var(--fg-faint);
      font-size: 0.72rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
      70% { box-shadow: 0 0 0 12px transparent; }
      100% { box-shadow: 0 0 0 0 transparent; }
    }

    /* --- HERO variant: centered --- */
    .hero-centered { text-align: center; padding-top: 6rem; padding-bottom: 4rem; }
    .hero-centered .display { font-size: clamp(2.75rem, 8vw, 7rem); margin: 1.5rem auto; max-width: 18ch; }
    .hero-centered .lede { margin: 0 auto 2rem; }
    .hero-centered .hero-actions { justify-content: center; }
    .hero-centered .eyebrow { justify-content: center; }
    .hero-centered .stat-row {
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin-top: 3rem;
      padding-top: 2rem;
      border-top: 1px solid var(--border);
      font-family: var(--font-mono);
      font-size: 0.85rem;
    }
    @media (max-width: 720px) { .hero-centered .stat-row { gap: 1rem; flex-wrap: wrap; } }
    .stat-row .stat strong { color: var(--fg); font-weight: 500; font-size: 1.5rem; display: block; letter-spacing: -0.02em; }
    .stat-row .stat span { color: var(--fg-faint); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

    .hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

    /* --- services --- */
    .services-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    @media (max-width: 880px) { .services-grid { grid-template-columns: 1fr; } }
    @media (min-width: 881px) and (max-width: 1100px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
    .service-card {
      padding: 1.75rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      min-height: 220px;
      position: relative;
    }
    .service-num {
      font-family: var(--font-mono);
      font-size: 0.72rem;
      letter-spacing: 0.06em;
      color: var(--fg-faint);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .service-num .arrow {
      width: 28px; height: 28px;
      display: inline-flex; align-items: center; justify-content: center;
      border-radius: 50%;
      border: 1px solid var(--border);
      transition: all 200ms ease;
    }
    .service-card:hover .arrow {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--accent-fg);
      transform: rotate(-45deg);
    }
    .service-card p { color: var(--fg-muted); margin: 0; font-size: 0.95rem; }
    .service-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: auto; }

    /* wide CTA card that completes the 7-card services row */
    .service-cta {
      grid-column: span 2;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
      flex-wrap: wrap;
      background:
        radial-gradient(ellipse at top left, color-mix(in srgb, var(--accent) 8%, transparent), transparent 55%),
        var(--bg-elev);
    }
    @media (max-width: 1100px) {
      .service-cta { grid-column: span 1; flex-direction: column; align-items: flex-start; }
    }

    /* --- portfolio bento --- */
    .portfolio-grid {
      grid-template-columns: repeat(6, 1fr);
      grid-auto-rows: minmax(180px, auto);
    }
    @media (max-width: 880px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
    .pf-card {
      border-radius: var(--radius-lg);
      overflow: hidden;
      border: 1px solid var(--border);
      background: var(--bg-elev);
      display: flex;
      flex-direction: column;
      position: relative;
      transition: transform 300ms ease, border-color 300ms ease;
    }
    .pf-card:hover { border-color: var(--border-strong); }
    .pf-card.span-4 { grid-column: span 4; }
    .pf-card.span-3 { grid-column: span 3; }
    .pf-card.span-2 { grid-column: span 2; }
    .pf-card.row-2 { grid-row: span 2; }
    @media (max-width: 880px) {
      .pf-card.span-4, .pf-card.span-3, .pf-card.span-2 { grid-column: span 2; }
      .pf-card.row-2 { grid-row: span 1; }
    }
    .pf-image {
      flex: 1;
      min-height: 200px;
      background-size: cover;
      background-position: center top;
      position: relative;
      overflow: hidden;
    }
    .pf-image-logo {
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      background-color: var(--bg-subtle);
    }
    [data-theme="dark"] .pf-image-logo { filter: brightness(0.85); }

    /* phone showcase — app screenshots fanned, rising from the card */
    .pf-phones {
      flex: 1;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 1.75rem 1rem 0;
      min-height: 240px;
      overflow: hidden;
      background:
        radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 62%),
        var(--bg-subtle);
    }
    .pf-phones img {
      width: 42%;
      height: auto;
      border-radius: 16px;
      border: 1px solid var(--border-strong);
      box-shadow: var(--shadow-lg);
    }
    .pf-phones img:first-child { transform: rotate(-5deg); margin-top: 14px; }
    .pf-phones img:last-child  { transform: rotate(5deg); margin-left: -12%; }

    /* brand tile — projects shown by name rather than screenshot */
    .pf-brand {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
      min-height: 200px;
      padding: 1.5rem;
      text-align: center;
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(ellipse at 30% 18%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
        var(--bg-subtle);
    }
    .pf-brand .pf-badge {
      width: 112px;
      height: 112px;
      border-radius: 24px;
      background: #ffffff;
      border: 1px solid var(--border);
      box-shadow: var(--shadow-md);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      overflow: hidden;
    }
    .pf-brand .pf-badge img { max-width: 100%; max-height: 100%; object-fit: contain; }
    .pf-meta {
      padding: 1.25rem 1.5rem;
      border-top: 1px solid var(--border);
      background: var(--bg-elev);
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .pf-meta-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
    }
    .pf-title { font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em; }
    .pf-tag {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--fg-faint);
    }
    .pf-desc { color: var(--fg-muted); font-size: 0.9rem; margin: 0; }

    /* --- about/intro split --- */
    .split-section { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; }
    @media (max-width: 880px) { .split-section { grid-template-columns: 1fr; gap: 2rem; } }
    .principle-list { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-direction: column; gap: 0.25rem; }
    .principle-list li {
      display: grid;
      grid-template-columns: 60px 1fr;
      align-items: baseline;
      gap: 1rem;
      padding: 1rem 0;
      border-top: 1px solid var(--border);
    }
    .principle-list li:last-child { border-bottom: 1px solid var(--border); }
    .principle-list .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--fg-faint); letter-spacing: 0.04em; }
    .principle-list strong { font-weight: 500; color: var(--fg); display: block; margin-bottom: 0.25rem; }
    .principle-list p { margin: 0; color: var(--fg-muted); font-size: 0.95rem; }

    /* --- process timeline --- */
    .process {
      display: grid;
      grid-template-columns: 150px 1fr;
      gap: 2.5rem;
    }
    @media (max-width: 880px) { .process { grid-template-columns: 1fr; } .process .process-rail { position: static; top: auto; } }
    .process-rail { position: sticky; top: 100px; align-self: start; }
    .process-rail .step-count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.05em; }
    .process-rail strong { display: block; font-family: var(--font-mono); font-size: 2.5rem; font-weight: 500; letter-spacing: -0.04em; color: var(--accent); white-space: nowrap; }
    .process-steps { display: flex; flex-direction: column; }
    .step {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 3rem;
      padding: 2.5rem 0;
      border-top: 1px solid var(--border);
      align-items: start;
    }
    @media (max-width: 880px) { .step { grid-template-columns: 1fr; gap: 0.75rem; } }
    .step:last-child { border-bottom: 1px solid var(--border); }
    .step-num-title { display: flex; align-items: baseline; gap: 1rem; }
    .step-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--fg-faint); }
    .step h3 { margin: 0; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
    .step-detail p { margin: 0 0 0.75rem; color: var(--fg-muted); }
    .step-detail .tools {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--fg-faint);
      letter-spacing: 0.03em;
      margin-top: 1rem;
      padding-top: 0.75rem;
      border-top: 1px dashed var(--border-strong);
    }
    .step-detail .tools span { color: var(--fg); }

    /* --- testimonials modernized --- */
    .testimonial-shell {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
      padding: 3rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background: var(--bg-elev);
      position: relative;
    }
    @media (max-width: 720px) { .testimonial-shell { padding: 2rem 1.5rem; } }
    .testimonial-quote {
      font-family: var(--font-serif);
      font-size: clamp(1.5rem, 3.5vw, 2.5rem);
      font-weight: 400;
      line-height: 1.2;
      letter-spacing: -0.015em;
      color: var(--fg);
      margin: 0;
      text-wrap: balance;
    }
    .testimonial-quote::before { content: "“"; color: var(--accent); margin-right: 0.1em; }
    .testimonial-quote::after { content: "”"; color: var(--accent); margin-left: 0.05em; }
    .testimonial-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
      flex-wrap: wrap;
    }
    .testimonial-author {
      display: flex;
      align-items: center;
      gap: 0.875rem;
    }
    .testimonial-avatar {
      width: 44px; height: 44px;
      border-radius: 50%;
      background: var(--bg-subtle);
      object-fit: cover;
      border: 1px solid var(--border);
    }
    .testimonial-author .name { font-weight: 500; color: var(--fg); font-size: 0.95rem; }
    .testimonial-author .role { font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-muted); }
    .testimonial-nav { display: flex; align-items: center; gap: 0.75rem; }
    .testimonial-counter { font-family: var(--font-mono); font-size: 0.8rem; color: var(--fg-muted); letter-spacing: 0.03em; min-width: 60px; }
    .testimonial-counter b { color: var(--fg); font-weight: 500; }
    .testimonial-nav button {
      width: 38px; height: 38px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: var(--bg-elev);
      color: var(--fg);
      transition: all 180ms ease;
    }
    .testimonial-nav button:hover { background: var(--fg); color: var(--bg); }
    .testimonial-slide { display: none; flex-direction: column; gap: 2rem; }
    .testimonial-slide.active { display: flex; animation: fadein 380ms ease; }
    @keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

    /* --- CTA --- */
    .cta-card {
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      background:
        radial-gradient(ellipse at top left, color-mix(in srgb, var(--accent) 8%, transparent), transparent 50%),
        var(--bg-elev);
      padding: 4rem;
      display: grid;
      grid-template-columns: 1.3fr 1fr;
      gap: 3rem;
      align-items: center;
    }
    @media (max-width: 880px) { .cta-card { padding: 2.5rem 1.75rem; grid-template-columns: 1fr; gap: 2rem; } }
    .cta-card .heading-lg { font-size: clamp(1.75rem, 3vw, 2.5rem); }
    .cta-meta { display: flex; flex-direction: column; gap: 1rem; font-family: var(--font-mono); font-size: 0.85rem; color: var(--fg-muted); }
    .cta-meta strong { color: var(--fg); font-weight: 500; }
    .cta-meta .row { display: flex; justify-content: space-between; padding: 0.75rem 0; border-top: 1px solid var(--border); }
    .cta-meta .row:first-child { border-top: 0; }

    /* misc */
    .section-head {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: end;
      margin-bottom: 3rem;
    }
    @media (max-width: 880px) { .section-head { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; } }
    .section-head .lede { margin: 0; }

/* ============================================================
   Page: services
   ============================================================ */
    .page-hero {
      padding-top: 7rem;
      padding-bottom: 4rem;
      position: relative;
      overflow: hidden;
    }
    .page-hero .grid-2 {
      display: grid;
      grid-template-columns: 1.6fr 1fr;
      gap: 4rem;
      align-items: end;
    }
    @media (max-width: 880px) { .page-hero .grid-2 { grid-template-columns: 1fr; gap: 2rem; } }
    .page-hero h1 {
      font-size: clamp(2.5rem, 6vw, 5rem);
      font-weight: 500;
      letter-spacing: -0.03em;
      line-height: 1.02;
      margin: 1.25rem 0 0;
      text-wrap: balance;
    }
    .page-hero h1 em {
      font-family: var(--font-serif);
      font-style: italic;
      font-weight: 400;
      color: var(--accent);
    }
    .page-hero .lede { margin-top: 0; }

    .service-block {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 4rem;
      padding: 4rem 0;
      border-top: 1px solid var(--border);
      align-items: start;
    }
    @media (max-width: 880px) { .service-block { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 0; } .service-block .service-aside { position: static; top: auto; } }
    .service-block:last-of-type { border-bottom: 1px solid var(--border); }
    .service-aside { position: sticky; top: 88px; }
    .service-aside .key {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--fg-faint);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      display: block;
      margin-bottom: 0.5rem;
    }
    .service-aside .num {
      font-family: var(--font-mono);
      font-size: 3rem;
      font-weight: 500;
      letter-spacing: -0.04em;
      color: var(--accent);
      line-height: 1;
      display: block;
      margin-bottom: 1rem;
    }
    .service-aside h2 {
      font-size: 1.875rem;
      font-weight: 500;
      letter-spacing: -0.02em;
      line-height: 1.1;
      margin: 0 0 1rem;
    }
    .service-content > p { color: var(--fg-muted); font-size: 1.05rem; line-height: 1.6; margin: 0 0 1.5rem; max-width: 62ch; }

    .feature-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin-top: 2rem;
    }
    @media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }
    .feature {
      padding: 1.25rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--bg-elev);
    }
    .feature h4 {
      margin: 0 0 0.375rem;
      font-size: 0.95rem;
      font-weight: 500;
      color: var(--fg);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .feature h4::before {
      content: "";
      width: 6px; height: 6px;
      background: var(--accent);
      border-radius: 50%;
      display: inline-block;
    }
    .feature p { margin: 0; color: var(--fg-muted); font-size: 0.875rem; line-height: 1.5; }

    .stack-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 1.5rem;
      padding-top: 1.5rem;
      border-top: 1px dashed var(--border-strong);
    }
    .stack-label {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--fg-faint);
      width: 100%;
      margin-bottom: 0.25rem;
    }

    .anchor-toc {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      margin-top: 4rem;
    }
    @media (max-width: 720px) { .anchor-toc { grid-template-columns: 1fr 1fr; } }
    .anchor-toc a {
      padding: 1rem 1.25rem;
      border-right: 1px solid var(--border);
      font-family: var(--font-mono);
      font-size: 0.8rem;
      color: var(--fg-muted);
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: background 160ms ease, color 160ms ease;
    }
    .anchor-toc a:last-child { border-right: 0; }
    @media (max-width: 720px) {
      .anchor-toc a:nth-child(2n) { border-right: 0; }
      .anchor-toc a { border-bottom: 1px solid var(--border); }
    }
    .anchor-toc a:hover { background: var(--bg-subtle); color: var(--fg); }
    .anchor-toc a span:first-child::before { content: "↳ "; color: var(--accent); }

    /* --- advertising / pricing tiers --- */
    .pricing-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.25rem;
      align-items: start;
    }
    @media (max-width: 980px) {
      .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
    }
    .tier {
      display: flex;
      flex-direction: column;
      gap: 1.1rem;
      padding: 2rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background: var(--bg-elev);
      position: relative;
      height: 100%;
    }
    .tier.featured {
      border-color: var(--accent);
      box-shadow: var(--shadow-md);
    }
    .tier-kicker {
      font-family: var(--font-mono);
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--fg-faint);
    }
    .tier-badge {
      align-self: flex-start;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.25rem 0.7rem;
      border-radius: var(--radius-pill);
      background: var(--accent);
      color: var(--accent-fg);
      font-family: var(--font-mono);
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .tier-name {
      margin: 0;
      font-size: 1.75rem;
      font-weight: 500;
      letter-spacing: -0.025em;
      line-height: 1.05;
      color: var(--fg);
    }
    .tier-tagline {
      margin: 0;
      color: var(--fg-muted);
      font-size: 0.95rem;
      line-height: 1.5;
    }
    .tier-price {
      padding: 1.25rem 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    .tier-price .label {
      display: block;
      font-family: var(--font-mono);
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--fg-faint);
      margin-bottom: 0.35rem;
    }
    .tier-price .amount {
      font-size: 2.5rem;
      font-weight: 500;
      letter-spacing: -0.03em;
      line-height: 1;
      color: var(--fg);
    }
    .tier-price .retainer {
      margin-top: 0.5rem;
      font-family: var(--font-mono);
      font-size: 0.85rem;
      color: var(--fg-muted);
    }
    .tier-features {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 0.7rem;
      flex: 1;
    }
    .tier-features li {
      display: flex;
      align-items: baseline;
      gap: 0.625rem;
      font-size: 0.9rem;
      line-height: 1.45;
      color: var(--fg-muted);
    }
    .tier-features li::before {
      content: "";
      width: 6px; height: 6px;
      flex-shrink: 0;
      border-radius: 50%;
      background: var(--accent);
      transform: translateY(2px);
    }
    .tier .btn { justify-content: center; }

    /* --- add-ons --- */
    .addons { margin-top: 3rem; }
    .addons-head {
      margin: 0 0 1.25rem;
      font-family: var(--font-mono);
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--fg-faint);
      font-weight: 500;
    }
    .addons-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }
    @media (max-width: 880px) { .addons-grid { grid-template-columns: 1fr; } }
    .addon {
      padding: 1.5rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--bg-elev);
    }
    .addon h4 { margin: 0 0 0.375rem; font-size: 1rem; font-weight: 500; color: var(--fg); }
    .addon .price {
      display: block;
      margin-bottom: 0.625rem;
      font-family: var(--font-mono);
      font-size: 0.85rem;
      color: var(--accent);
    }
    .addon p { margin: 0; color: var(--fg-muted); font-size: 0.875rem; line-height: 1.5; }


/* ============================================================
   Page: about
   ============================================================ */
    .about-hero { padding-top: 7rem; padding-bottom: 5rem; position: relative; overflow: hidden; }
    .about-hero h1 {
      font-size: clamp(2.5rem, 7vw, 6rem);
      font-weight: 500;
      letter-spacing: -0.03em;
      line-height: 1.0;
      margin: 1.5rem 0 0;
      max-width: 14ch;
      text-wrap: balance;
    }
    .about-hero h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }

    .stats-strip {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    @media (max-width: 720px) { .stats-strip { grid-template-columns: 1fr 1fr; } }
    .stat-cell {
      padding: 2rem 1.5rem;
      border-right: 1px solid var(--border);
    }
    .stat-cell:last-child { border-right: 0; }
    @media (max-width: 720px) {
      .stat-cell:nth-child(2n) { border-right: 0; }
      .stat-cell:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    }
    .stat-cell .num {
      font-size: clamp(2.5rem, 5vw, 4rem);
      font-weight: 500;
      letter-spacing: -0.04em;
      line-height: 1;
      color: var(--fg);
    }
    .stat-cell .num em { font-family: var(--font-serif); font-style: italic; color: var(--accent); font-weight: 400; }
    .stat-cell .label {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--fg-faint);
      margin-top: 0.5rem;
    }

    .narrative {
      display: grid;
      grid-template-columns: 1fr 2fr;
      gap: 4rem;
      padding: 5rem 0;
      border-bottom: 1px solid var(--border);
      align-items: start;
    }
    @media (max-width: 880px) { .narrative { grid-template-columns: 1fr; gap: 1.5rem; padding: 3rem 0; } .narrative .narrative-side { position: static; top: auto; } }
    .narrative h2 {
      font-size: clamp(1.75rem, 3vw, 2.5rem);
      font-weight: 500;
      letter-spacing: -0.025em;
      line-height: 1.1;
      margin: 0;
      text-wrap: balance;
    }
    .narrative h2 em { font-family: var(--font-serif); font-style: italic; color: var(--accent); font-weight: 400; }
    .narrative .lede { font-size: 1.1rem; color: var(--fg-muted); line-height: 1.6; max-width: 62ch; margin: 0 0 1.25rem; }
    .narrative .lede:last-child { margin-bottom: 0; }
    .narrative-side {
      position: sticky; top: 88px;
    }
    .narrative-side .key {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--fg-faint);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .values {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0;
      border-bottom: 1px solid var(--border);
    }
    @media (max-width: 880px) { .values { grid-template-columns: 1fr; } }
    .value {
      padding: 3rem 2rem;
      border-right: 1px solid var(--border);
      border-top: 1px solid var(--border);
    }
    .value:last-child { border-right: 0; }
    @media (max-width: 880px) { .value { border-right: 0; } }
    .value .num {
      font-family: var(--font-mono);
      font-size: 0.8rem;
      color: var(--accent);
      letter-spacing: 0.05em;
    }
    .value h3 {
      margin: 0.75rem 0 0.75rem;
      font-size: 1.3rem;
      font-weight: 500;
      letter-spacing: -0.015em;
    }
    .value p { color: var(--fg-muted); margin: 0; font-size: 0.95rem; line-height: 1.55; }

    .timeline {
      display: grid;
      grid-template-columns: 200px 1fr;
      gap: 3rem;
    }
    @media (max-width: 880px) { .timeline { grid-template-columns: 1fr; gap: 1rem; } }
    .timeline-year {
      font-family: var(--font-mono);
      font-size: 2.5rem;
      font-weight: 500;
      letter-spacing: -0.03em;
      color: var(--accent);
      line-height: 1;
    }
    .timeline-entries { display: flex; flex-direction: column; }
    .timeline-entry {
      display: grid;
      grid-template-columns: 100px 1fr;
      gap: 2rem;
      padding: 1.75rem 0;
      border-top: 1px solid var(--border);
      align-items: baseline;
    }
    @media (max-width: 880px) { .timeline-entry { grid-template-columns: 1fr; gap: 0.5rem; } }
    .timeline-entry:last-child { border-bottom: 1px solid var(--border); }
    .timeline-tag {
      font-family: var(--font-mono);
      font-size: 0.8rem;
      color: var(--fg-faint);
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .timeline-entry h4 { margin: 0 0 0.375rem; font-size: 1.05rem; font-weight: 500; }
    .timeline-entry p { margin: 0; color: var(--fg-muted); font-size: 0.95rem; line-height: 1.55; }

    .geography {
      display: grid;
      grid-template-columns: 1fr 1.4fr;
      gap: 4rem;
      align-items: center;
    }
    @media (max-width: 880px) { .geography { grid-template-columns: 1fr; gap: 2rem; } }
    .geo-card {
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 2rem;
      background: var(--bg-elev);
    }
    .geo-card h4 {
      margin: 0 0 0.25rem;
      font-size: 1rem;
      font-weight: 500;
    }
    .geo-card .mono { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg-muted); letter-spacing: 0.03em; }
    .geo-line {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      padding: 1rem 0;
      border-top: 1px solid var(--border);
      font-family: var(--font-mono);
      font-size: 0.85rem;
    }
    .geo-line:first-of-type { border-top: 0; padding-top: 0; }
    .geo-line .flag {
      width: 28px; height: 18px; border-radius: 2px;
      display: inline-block;
      vertical-align: middle;
      margin-right: 0.75rem;
      border: 1px solid var(--border);
      overflow: hidden;
      flex-shrink: 0;
    }

/* ============================================================
   Page: contact
   ============================================================ */
    .contact-hero { padding-top: 6rem; padding-bottom: 3rem; position: relative; overflow: hidden; }
    .contact-hero h1 {
      font-size: clamp(2.5rem, 6vw, 5rem);
      font-weight: 500;
      letter-spacing: -0.03em;
      line-height: 1.02;
      margin: 1.25rem 0 0;
      max-width: 16ch;
      text-wrap: balance;
    }
    .contact-hero h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }

    .contact-shell {
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    @media (max-width: 880px) { .contact-shell { grid-template-columns: 1fr; } }
    .contact-side {
      padding: 3rem 2.5rem;
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      gap: 2rem;
      background: var(--bg-elev);
    }
    @media (max-width: 880px) { .contact-side { border-right: 0; border-bottom: 1px solid var(--border); padding: 2.5rem 1.5rem; } }
    .contact-info-row {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }
    .contact-info-row .key {
      font-family: var(--font-mono);
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--fg-faint);
    }
    .contact-info-row .val { color: var(--fg); font-size: 1rem; }
    .contact-info-row a:hover { color: var(--accent); }

    .reasons {
      margin-top: auto;
      padding-top: 2rem;
      border-top: 1px solid var(--border);
    }
    .reasons h4 {
      margin: 0 0 1rem;
      font-family: var(--font-mono);
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--fg-faint);
      font-weight: 500;
    }
    .reasons ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }
    .reasons li { display: flex; align-items: baseline; gap: 0.75rem; font-size: 0.9rem; color: var(--fg-muted); }
    .reasons li::before {
      content: ""; width: 6px; height: 6px; border-radius: 50%;
      background: var(--accent); flex-shrink: 0;
      transform: translateY(2px);
    }

    .contact-form-side {
      padding: 3rem 2.5rem;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }
    @media (max-width: 880px) { .contact-form-side { padding: 2.5rem 1.5rem; } }

    .field { display: flex; flex-direction: column; gap: 0.5rem; }
    .field label {
      font-family: var(--font-mono);
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--fg-faint);
      display: flex;
      justify-content: space-between;
    }
    .field label .hint { color: var(--fg-faint); text-transform: none; letter-spacing: 0; }
    .field input, .field textarea, .field select {
      width: 100%;
      padding: 0.875rem 1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--bg);
      color: var(--fg);
      font-family: inherit;
      font-size: 1rem;
      transition: border-color 160ms ease, background 160ms ease;
    }
    .field input:focus, .field textarea:focus, .field select:focus {
      outline: none;
      border-color: var(--fg);
      background: var(--bg-elev);
    }
    .field textarea { resize: vertical; min-height: 140px; }
    .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    @media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

    .chips-picker {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    .chips-picker input[type="checkbox"] { display: none; }
    .chips-picker label {
      cursor: pointer;
      padding: 0.4rem 0.875rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-pill);
      font-family: var(--font-mono);
      font-size: 0.78rem;
      letter-spacing: 0.02em;
      text-transform: none;
      color: var(--fg-muted);
      background: var(--bg);
      transition: all 160ms ease;
      display: inline-block;
    }
    .chips-picker label:hover { border-color: var(--fg-muted); color: var(--fg); }
    .chips-picker input:checked + label {
      background: var(--accent);
      color: var(--accent-fg);
      border-color: var(--accent);
    }

    .booking-card {
      background: var(--bg-elev);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      display: flex;
      align-items: center;
      gap: 1.25rem;
      margin-bottom: 1.5rem;
    }
    .booking-card .icon {
      width: 44px; height: 44px;
      border-radius: var(--radius-md);
      background: var(--accent-soft);
      color: var(--accent);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .booking-card .copy { flex: 1; }
    .booking-card h3 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 500; }
    .booking-card p { margin: 0; color: var(--fg-muted); font-size: 0.875rem; }

    .or-divider {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin: 1.5rem 0;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--fg-faint);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
    .or-divider::before, .or-divider::after {
      content: "";
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    .submit-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
      padding-top: 0.5rem;
    }
    .submit-row .note {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--fg-faint);
    }

    .meta-strip {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      border-bottom: 1px solid var(--border);
    }
    @media (max-width: 720px) { .meta-strip { grid-template-columns: 1fr 1fr; } }
    .meta-cell { padding: 1.5rem 1.5rem; border-right: 1px solid var(--border); }
    .meta-cell:last-child { border-right: 0; }
    @media (max-width: 720px) {
      .meta-cell:nth-child(2n) { border-right: 0; }
      .meta-cell:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    }
    .meta-cell .num { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; color: var(--fg); margin-bottom: 0.25rem; }
    .meta-cell .label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-faint); }

/* ============================================================
   Mobile menu (added for the Laravel port — keeps mobile nav
   that the prototype dropped; matches the editorial nav style)
   ============================================================ */
.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg);
  margin-left: 0.25rem;
}
.mobile-menu-btn:hover { border-color: var(--border-strong); }
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  padding: 0.75rem var(--container-px) 1.25rem;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu a.nav-link {
  display: block;
  font-size: 1rem;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.mobile-menu a.nav-link:last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: 0.75rem; justify-content: center; }

@media (max-width: 880px) {
  .mobile-menu-btn { display: inline-flex; }
  .nav-links .nav-cta { display: none; }
  .mobile-menu.open { display: flex; }
}
