/* YugamDynamics — Design system v2
   Cream paper · electric coral primary · editorial bold · agency confidence */

:root {
  /* Paper palette */
  --paper: #f2ede2; /* main cream */
  --paper-2: #ece4d2; /* warmer tone for section blocks */
  --paper-3: #e4d9bf; /* deeper sand */
  --ink: #0e0e10;
  --ink-soft: #1a1a1f;
  --fg: #0e0e10;
  --fg-muted: #4a4a4f;
  --fg-dim: #87827a;
  --line: rgba(14, 14, 16, 0.1);
  --line-strong: rgba(14, 14, 16, 0.22);
  --line-ink: rgba(14, 14, 16, 0.85);

  /* Accents */
  --coral: #ff4d2e; /* primary hot */
  --coral-2: #ff7a4f;
  --violet: #4d2eff; /* secondary electric */
  --violet-2: #6a4fff;
  --lime: #d6ff45;
  --rose: #ffd8c2; /* tint */
  --plum: #2a1148; /* deep ink-alt */

  /* RGB triplets for rgba() composition: rgba(var(--coral-rgb), 0.18) */
  --coral-rgb: 255, 77, 46;
  --violet-rgb: 77, 46, 255;
  --lime-rgb: 214, 255, 69;

  /* Surfaces */
  --surface-card: #fffcf4;
  --surface-card-2: #fff;
  --surface-ink: var(--ink);

  /* Shadows */
  --shadow-sm: 0 1px 0 rgba(14, 14, 16, 0.06), 0 1px 2px rgba(14, 14, 16, 0.04);
  --shadow-md: 0 2px 0 rgba(14, 14, 16, 0.06), 0 8px 24px -8px rgba(14, 14, 16, 0.12);
  --shadow-lg: 0 30px 60px -28px rgba(14, 14, 16, 0.25);
  --shadow-hot: 0 12px 36px -10px rgba(var(--coral-rgb), 0.45);

  /* Density (overridable via [data-density]) */
  --pad-page-y: 120px;
  --pad-page-x: 56px;
  --gap-md: 24px;
  --gap-lg: 40px;
  --gap-xl: 72px;
  --card-pad: 32px;
  --section-gap: 140px;

  /* Type scale */
  --fs-display: clamp(60px, 10vw, 156px);
  --fs-h1: clamp(40px, 6vw, 88px);
  --fs-h2: clamp(34px, 4.4vw, 60px);
  --fs-h3: clamp(21px, 2vw, 28px);
  --fs-body: 17.5px;
  --fs-small: 15px;
  --fs-eyebrow: 12px;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 36px;
}

[data-density="compact"] {
  --pad-page-y: 80px;
  --gap-md: 16px;
  --gap-lg: 28px;
  --gap-xl: 48px;
  --card-pad: 22px;
  --section-gap: 96px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: Geist, ui-sans-serif, system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-color: var(--paper);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
}

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

/* Layout primitives */
.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--pad-page-x);
}

@media (max-width: 800px) {
  :root {
    --pad-page-x: 22px;
  }
}

.section {
  padding: var(--section-gap) 0;
  position: relative;
}
.section.tight {
  padding: calc(var(--section-gap) * 0.6) 0;
}

.section-bg {
  background: var(--paper-2);
  position: relative;
}

.section-ink {
  background: var(--ink);
  color: var(--paper);
  --fg: var(--paper);
  --fg-muted: rgba(242, 237, 226, 0.65);
  --fg-dim: rgba(242, 237, 226, 0.4);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
}
.section-ink h1,
.section-ink h2,
.section-ink h3,
.section-ink strong {
  color: var(--paper);
}
.section-ink .muted,
.section-ink p {
  color: rgba(242, 237, 226, 0.7);
}
.section-coral {
  background: var(--coral);
  color: var(--ink);
}

/* Type */
.serif {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.italic {
  font-style: italic;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
}

h1.display,
.display {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 96;
}

.display em,
.headline em,
h1 em,
h2 em,
h3 em {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.015em;
  color: var(--coral);
}

h2.headline,
.headline {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: var(--fs-h1);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 700;
  font-variation-settings: "opsz" 72;
}
h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
  color: var(--fg-muted);
}
.lead {
  font-size: 21px;
  line-height: 1.52;
  color: var(--fg-muted);
  max-width: 60ch;
}
.text-center {
  text-align: center;
}
.muted {
  color: var(--fg-muted);
}
.dim {
  color: var(--fg-dim);
}
.coral {
  color: var(--coral);
}
.violet {
  color: var(--violet);
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ink);
}
.section-ink .eyebrow {
  color: var(--lime);
}
.section-ink .eyebrow::before {
  background: var(--lime);
}

.gradient-text {
  background: none;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--coral);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--ink);
  box-shadow: var(--shadow-hot);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-coral {
  background: var(--coral);
  color: var(--ink);
  border-color: var(--coral);
}
.btn-coral:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-cyan {
  /* alias preserved from old palette, retargeted */
  background: var(--coral);
  color: var(--ink);
  border-color: var(--coral);
}
.btn-cyan:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.section-ink .btn-ghost {
  color: var(--paper);
  border-color: rgba(242, 237, 226, 0.3);
}
.section-ink .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.section-ink .btn-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.section-ink .btn-primary:hover {
  background: var(--coral);
  color: var(--ink);
  border-color: var(--coral);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}
.btn-lg {
  padding: 16px 26px;
  font-size: 15px;
}
.btn .arr {
  transition: transform 0.2s ease;
  display: inline-block;
}
.btn:hover .arr {
  transform: translateX(4px);
}

/* Cards */
.card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  transition:
    border-color 0.2s ease,
    transform 0.25s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card.glow:hover {
  border-color: var(--coral);
  box-shadow: 0 14px 40px -10px rgba(var(--coral-rgb), 0.3);
}

.card.ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  --fg: var(--paper);
  --fg-muted: rgba(242, 237, 226, 0.65);
  --fg-dim: rgba(242, 237, 226, 0.4);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
}
.card.ink h2,
.card.ink h3,
.card.ink strong {
  color: var(--paper);
}
.card.ink p,
.card.ink .muted {
  color: rgba(242, 237, 226, 0.65);
}
.card.coral {
  background: var(--coral);
  border-color: var(--coral);
}
.card.violet {
  background: var(--violet);
  color: var(--paper);
  border-color: var(--violet);
}
.card.violet h2,
.card.violet h3,
.card.violet strong {
  color: var(--paper);
}
.card.violet p {
  color: rgba(242, 237, 226, 0.75);
}
.card.lime {
  background: var(--lime);
  border-color: var(--lime);
}

.glass {
  background: rgba(255, 252, 244, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
}

/* Navbar — full-width, edge-to-edge, databricks-style */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition:
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.nav.scrolled {
  background: var(--paper);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 6px 24px -16px rgba(14, 14, 16, 0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 32px;
}

@media (max-width: 720px) {
  .nav-inner {
    padding: 12px 20px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 16px;
  background: var(--coral);
  border-radius: 1px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--lime);
}
.brand-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.025em;
}
.brand-name em {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: italic;
  color: var(--coral);
  padding-left: 2px;
}
.brand .brand-mark-img {
  height: 38px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  position: relative;
  font-size: 15px;
  color: var(--ink);
  padding: 8px 11px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.15s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}
.nav-links a:hover {
  color: var(--coral);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-links a.active {
  color: var(--coral);
}
.nav-links a.active::after {
  transform: scaleX(1);
}
.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.nav-cta .login {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  padding: 8px 6px;
}
.nav-cta .login:hover {
  color: var(--coral);
}

.nav-cta .divider {
  width: 1px;
  height: 18px;
  background: var(--line-strong);
  margin: 0 2px;
}

.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  align-items: center;
  gap: 6px;
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: inline-flex;
  }
  .nav-cta .login,
  .nav-cta .divider {
    display: none;
  }
}

/* Very narrow: the Contact pill collides with the wordmark — drop it
   (the mobile menu still links to Contact). */
@media (max-width: 520px) {
  .nav-cta .btn {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
  padding: 14px 20px 20px;
  display: none;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open {
  display: block;
}
.mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 16px;
  color: var(--ink);
}
.mobile-menu a:hover {
  background: var(--paper-2);
}

/* Hero */
.hero {
  position: relative;
  padding-top: 160px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -10% -5% auto;
  height: 700px;
  background:
    radial-gradient(800px 500px at 80% 0%, rgba(var(--coral-rgb), 0.12), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(var(--violet-rgb), 0.08), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 14, 16, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 14, 16, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center 30%, black 25%, transparent 75%);
  pointer-events: none;
}
.hero-content {
  position: relative;
}

/* Pills, tags */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  color: var(--fg-muted);
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--coral);
}
.pill strong {
  color: var(--ink);
  font-weight: 600;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag.coral {
  background: var(--coral);
  color: var(--ink);
  border-color: var(--coral);
}
.tag.violet {
  background: var(--violet);
  color: var(--paper);
  border-color: var(--violet);
}
.tag.lime {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.tag.outline {
  background: transparent;
  color: var(--ink);
}

/* Footer */
footer.site-foot {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 100px 0 36px;
  margin-top: 0;
  --fg: var(--paper);
  --fg-muted: rgba(242, 237, 226, 0.65);
  --fg-dim: rgba(242, 237, 226, 0.4);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
}
footer.site-foot h5 {
  color: var(--paper);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
footer.site-foot a {
  color: rgba(242, 237, 226, 0.65);
  font-size: 14px;
  display: block;
  padding: 5px 0;
  transition: color 0.15s ease;
}
footer.site-foot a:hover {
  color: var(--coral);
}
footer.site-foot .brand {
  color: var(--paper);
  display: inline-flex;
  align-items: center;
}
footer.site-foot .brand .brand-mark {
  background: var(--paper);
}
footer.site-foot .brand .brand-mark::before {
  background: var(--coral);
}
footer.site-foot .brand .brand-mark::after {
  background: var(--lime);
}
footer.site-foot p {
  color: rgba(242, 237, 226, 0.7);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
}

.foot-bottom {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(242, 237, 226, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(242, 237, 226, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}

.newsletter {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  background: rgba(242, 237, 226, 0.08);
  border: 1px solid rgba(242, 237, 226, 0.18);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
  max-width: 360px;
}
.newsletter input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--paper);
  outline: none;
  font: inherit;
  font-size: 14px;
}
.newsletter input::placeholder {
  color: rgba(242, 237, 226, 0.45);
}
.newsletter button {
  background: var(--coral);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

/* Reveals — progressive enhancement: visible by default; JS adds .has-reveal to <html> to opt in to the hide-then-reveal animation, so content is never permanently blank even if JS breaks. */
.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.has-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
}
.has-reveal .reveal.in {
  opacity: 1;
  transform: none;
}
.has-reveal .reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.has-reveal .reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.has-reveal .reveal[data-delay="3"] {
  transition-delay: 0.24s;
}
.has-reveal .reveal[data-delay="4"] {
  transition-delay: 0.32s;
}
.has-reveal .reveal[data-delay="5"] {
  transition-delay: 0.4s;
}

/* Users who ask for less motion get content immediately, never hidden. */
@media (prefers-reduced-motion: reduce) {
  .has-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Grids */
.grid {
  display: grid;
  gap: var(--gap-md);
}
.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .cols-3,
  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cols-2,
  .cols-3,
  .cols-4 {
    grid-template-columns: 1fr;
  }
}

/* Section header */
.sec-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
  margin-bottom: 72px;
}
.sec-head.center {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Icon tile */
.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
}
.icon-tile.coral {
  background: var(--coral);
  color: var(--ink);
}
.icon-tile.violet {
  background: var(--violet);
  color: var(--paper);
}
.icon-tile.lime {
  background: var(--lime);
  color: var(--ink);
}
.icon-tile.magenta {
  background: var(--coral);
  color: var(--ink);
}
.icon-tile svg {
  width: 22px;
  height: 22px;
}

/* Service card */
.svc-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
}
.svc-card h3 {
  font-size: 22px;
}

.svc-card .arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.svc-card:hover .arrow {
  color: var(--coral);
}

/* Stats */
.stat-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: var(--ink);
  font-variation-settings: "opsz" 96;
}
.stat-num em {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: italic;
  color: var(--coral);
}
.stat-label {
  color: var(--fg-muted);
  font-size: 14px;
  margin-top: 12px;
}

/* Logo bar */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 56px;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}
.logo-row .logo {
  font-family: "Instrument Serif", serif;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-row .logo.sans {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 20px;
}
.logo-row .logo .accent {
  color: var(--coral);
}

/* Code blocks — dark on cream, looks like a screenshot of code */
.codeblock {
  background: var(--ink);
  color: #e8e5df;
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.75;
  overflow-x: auto;
}
.codeblock .kw {
  color: #ff7a4f;
}
.codeblock .str {
  color: #d6ff45;
}
.codeblock .com {
  color: #87827a;
  font-style: italic;
}
.codeblock .fn {
  color: #b19eff;
}

/* CTA banner — bold ink block */
.cta-banner {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 100px 64px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border: 1px solid var(--ink);
  --fg: var(--paper);
  --fg-muted: rgba(242, 237, 226, 0.65);
  --line: rgba(255, 255, 255, 0.12);
}
.cta-banner h2 {
  color: var(--paper);
}
.cta-banner h2 em {
  color: var(--coral);
}
.cta-banner .eyebrow {
  color: var(--lime);
}
.cta-banner .eyebrow::before {
  background: var(--lime);
}
.cta-banner p {
  color: rgba(242, 237, 226, 0.75);
}
.cta-banner .btn-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.cta-banner .btn-primary:hover {
  background: var(--coral);
  color: var(--ink);
  border-color: var(--coral);
  box-shadow: var(--shadow-hot);
}
.cta-banner .btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(242, 237, 226, 0.35);
}
.cta-banner .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.cta-banner::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 600px;
  height: 600px;
  border-radius: 999px;
  background: var(--coral);
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.cta-banner::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -40%;
  width: 500px;
  height: 500px;
  border-radius: 999px;
  background: var(--violet);
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

/* Mock window — still dark, looks like an embedded app screenshot.
   Background/border must be literal: the scoped --ink override below applies
   to this element too, so var(--ink) here would resolve to the LIGHT value. */
.mock-window {
  background: #0e0e10;
  border: 1px solid #0e0e10;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: #e8e5df;
  /* scoped dark-mode token overrides so child elements using var(--fg-*) work */
  --fg: #e8e5df;
  --fg-muted: rgba(232, 229, 223, 0.65);
  --fg-dim: rgba(232, 229, 223, 0.4);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #e8e5df;
  --paper: #0e0e10;
}
.mock-window h1,
.mock-window h2,
.mock-window h3,
.mock-window h4 {
  color: #e8e5df;
}
.mock-window .serif {
  color: #fff;
}
.mock-window .tag {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(232, 229, 223, 0.9);
  border-color: rgba(255, 255, 255, 0.16);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.mock-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #353035;
}
.mock-bar .dot.r {
  background: #ff5b67;
}
.mock-bar .dot.y {
  background: #fcb53b;
}
.mock-bar .dot.g {
  background: #2acf70;
}

.mock-bar .url {
  margin-left: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(232, 229, 223, 0.6);
}

/* Real app screenshots inside a mock-window:
   .shot-window is the light browser-chrome variant (light app shots clash
   inside the dark default mock-window). */
.rental-shot {
  display: block;
  width: 100%;
  height: auto; /* keep aspect ratio when width/height attrs are set */
}
.shot-window {
  background: #fbfaf8;
  border: 1px solid var(--line-strong);
}
.shot-window .mock-bar {
  background: #f1efea;
  border-bottom: 1px solid rgba(14, 14, 16, 0.08);
}
.shot-window .mock-bar .url {
  background: rgba(14, 14, 16, 0.05);
  border-color: rgba(14, 14, 16, 0.08);
  color: var(--fg-muted);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--line);
  margin: 80px 0;
}

/* Marquee */
.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 64px;
  min-width: max-content;
  animation: marquee 50s linear infinite;
  padding-right: 64px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Accordion */
.acc {
  border-top: 1px solid var(--line);
}
.acc-item {
  border-bottom: 1px solid var(--line);
}

.acc-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 18px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.acc-q:hover {
  color: var(--coral);
}
.acc-q .ico {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
  flex-shrink: 0;
  font-size: 16px;
}
.acc-item.open .acc-q .ico {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--ink);
  transform: rotate(45deg);
}
.acc-a {
  max-height: 0;
  overflow: hidden;
  color: var(--fg-muted);
  transition:
    max-height 0.35s ease,
    padding 0.25s ease;
  font-size: 16px;
  line-height: 1.6;
}
.acc-item.open .acc-a {
  max-height: 360px;
  padding: 0 0 26px;
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  color: var(--fg-muted);
}

.input,
.textarea,
.select {
  background: var(--surface-card-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(14, 14, 16, 0.06);
}
.textarea {
  min-height: 130px;
  resize: vertical;
}

/* Density tweak panel */
.tweaks {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 16px;
  padding: 16px;
  display: none;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
}
.tweaks.open {
  display: block;
}
.tweaks h6 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 237, 226, 0.55);
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
}
.tweak-row {
  display: flex;
  gap: 4px;
  background: rgba(242, 237, 226, 0.06);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid rgba(242, 237, 226, 0.1);
}

.tweak-row button {
  flex: 1;
  background: transparent;
  border: 0;
  color: rgba(242, 237, 226, 0.65);
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  border-radius: 999px;
  cursor: pointer;
}
.tweak-row button.on {
  background: var(--coral);
  color: var(--ink);
  font-weight: 500;
}
.tweaks [data-close] {
  color: var(--paper);
}

.tweaks-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 199;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}
.tweaks-toggle:hover {
  background: var(--coral);
  color: var(--ink);
  transform: rotate(45deg);
}
.tweaks-toggle.hide {
  display: none;
}

/* misc helpers */
.row {
  display: flex;
  gap: var(--gap-md);
  align-items: center;
}
.row.wrap {
  flex-wrap: wrap;
}
.row.between {
  justify-content: space-between;
}
.col {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}
.mt-0 {
  margin-top: 0 !important;
}
.mt-sm {
  margin-top: 12px;
}
.mt-md {
  margin-top: 24px;
}
.mt-lg {
  margin-top: 40px;
}

@media (max-width: 720px) {
  .hide-mobile {
    display: none;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: rgba(14, 14, 16, 0.15);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 14, 16, 0.3);
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* Compatibility helpers — preserve old class names */
.cyan {
  color: var(--coral);
}
.magenta {
  color: var(--violet);
}

/* Foundation — accessibility + partial-driven chrome (PHP build) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.site-header {
  display: contents;
} /* neutral wrapper around .nav + .mobile-menu */
.foot-blurb {
  margin-top: 16px;
  max-width: 32ch;
  font-size: 14px;
}
.foot-social {
  display: flex;
  gap: 12px;
}

/* ---------- Home (index) ---------- */
.outcome-bucket {
  margin-top: 56px;
}
.outcome-bucket:first-of-type {
  margin-top: 8px;
}
.bucket-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}
.bucket-num {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 44px;
  line-height: 0.8;
  color: var(--coral);
  flex-shrink: 0;
}
.bucket-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}
.bucket-sub {
  margin-top: 6px;
  color: var(--fg-muted);
  font-size: 15px;
  max-width: 52ch;
}
.outcome-card .card-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.svc-tags .tag {
  font-size: 10px;
}

@media (max-width: 640px) {
  .bucket-num {
    font-size: 34px;
  }
  .bucket-title {
    font-size: 23px;
  }
}
