/* Route announcer */
	.astro-route-announcer {
		position: absolute;
		left: 0;
		top: 0;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		overflow: hidden;
		white-space: nowrap;
		width: 1px;
		height: 1px;
	}@keyframes astroFadeInOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@keyframes astroFadeIn {
	from {
		opacity: 0;
		mix-blend-mode: plus-lighter;
	}
	to {
		opacity: 1;
		mix-blend-mode: plus-lighter;
	}
}

@keyframes astroFadeOut {
	from {
		opacity: 1;
		mix-blend-mode: plus-lighter;
	}
	to {
		opacity: 0;
		mix-blend-mode: plus-lighter;
	}
}

@keyframes astroSlideFromRight {
	from {
		transform: translateX(100%);
	}
}

@keyframes astroSlideFromLeft {
	from {
		transform: translateX(-100%);
	}
}

@keyframes astroSlideToRight {
	to {
		transform: translateX(100%);
	}
}

@keyframes astroSlideToLeft {
	to {
		transform: translateX(-100%);
	}
}

@media (prefers-reduced-motion) {
	::view-transition-group(*),
	::view-transition-old(*),
	::view-transition-new(*) {
		animation: none !important;
	}

	[data-astro-transition-scope] {
		animation: none !important;
	}
}
.logo[data-astro-cid-f7espo7c] {
  display: block;
  height: var(--logo-h);
  width: auto;
}

@media (width <= 420px) {
  .logo[data-astro-cid-f7espo7c] {
    height: 19px;
  }
}
.nav-shell[data-astro-cid-wpvy4v7s] {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav[data-astro-cid-wpvy4v7s] {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 8px 8px 22px;
  background: var(--nav-bg);
  --glass: saturate(180%) blur(16px);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--ink-10);
  border-radius: 20px;
  box-shadow: 0 8px 30px #0f11140f;
}

.home[data-astro-cid-wpvy4v7s] {
  text-decoration: none;
  display: flex;
}

ul[data-astro-cid-wpvy4v7s] {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul[data-astro-cid-wpvy4v7s] a[data-astro-cid-wpvy4v7s] {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-80);
  transition: background .2s, color .2s;
}

ul[data-astro-cid-wpvy4v7s] a[data-astro-cid-wpvy4v7s]:hover {
  background: var(--ink-10);
  color: var(--ink-100);
}

ul[data-astro-cid-wpvy4v7s] a[data-astro-cid-wpvy4v7s][aria-current="page"] {
  color: var(--ink-100);
  font-weight: 500;
}

.cta[data-astro-cid-wpvy4v7s] {
  padding: 12px 16px 12px 18px;
  font-size: 15px;
  border-radius: 14px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.av[data-astro-cid-wpvy4v7s] {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
}

.av[data-astro-cid-wpvy4v7s] i[data-astro-cid-wpvy4v7s] {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #30d158;
}

.av[data-astro-cid-wpvy4v7s] i[data-astro-cid-wpvy4v7s]:before, .av[data-astro-cid-wpvy4v7s] i[data-astro-cid-wpvy4v7s]:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid #30d158;
  opacity: 0;
  animation: 3.6s cubic-bezier(.2, .6, .3, 1) infinite sonar;
}

.av[data-astro-cid-wpvy4v7s] i[data-astro-cid-wpvy4v7s]:after {
  animation-delay: 1.8s;
}

@keyframes sonar {
  0% {
    transform: scale(1);
    opacity: .75;
  }

  100% {
    transform: scale(3.4);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .av[data-astro-cid-wpvy4v7s] i[data-astro-cid-wpvy4v7s]:before {
    animation: 3.6s ease-in-out infinite glow;
    transform: scale(2);
  }

  .av[data-astro-cid-wpvy4v7s] i[data-astro-cid-wpvy4v7s]:after {
    display: none;
  }

  @keyframes glow {
    0%, 100% {
      opacity: 0;
    }

    50% {
      opacity: .5;
    }
  }
}

.home[data-astro-cid-wpvy4v7s] {
  align-items: center;
  flex: none;
  min-height: 44px;
  min-width: 36px;
}

.home[data-astro-cid-wpvy4v7s] img[data-astro-cid-wpvy4v7s], .home[data-astro-cid-wpvy4v7s] img {
  flex: none;
}

.mark[data-astro-cid-wpvy4v7s] {
  display: none;
  width: 28px;
  height: auto;
}

@media (width <= 640px) {
  .full[data-astro-cid-wpvy4v7s] {
    display: none;
  }

  .mark[data-astro-cid-wpvy4v7s] {
    display: block;
  }
}

@media (width <= 640px) {
  .nav[data-astro-cid-wpvy4v7s] {
    width: 100%;
    gap: 0;
    padding: 6px 6px 6px 12px;
    justify-content: flex-start;
  }

  .home[data-astro-cid-wpvy4v7s] {
    margin-right: 14px;
  }

  ul[data-astro-cid-wpvy4v7s] {
    gap: 14px;
  }

  ul[data-astro-cid-wpvy4v7s] a[data-astro-cid-wpvy4v7s] {
    padding: 10px 0;
    font-size: 14px;
  }

  ul[data-astro-cid-wpvy4v7s] a[data-astro-cid-wpvy4v7s]:hover {
    background: none;
  }

  .cta[data-astro-cid-wpvy4v7s] {
    margin-left: auto;
    min-height: 44px;
    padding: 0 14px 0 16px;
    font-size: 14px;
    gap: 8px;
    border-radius: 13px;
  }
}

@media (width <= 380px) {
  .nav[data-astro-cid-wpvy4v7s] {
    padding-left: 10px;
  }

  .home[data-astro-cid-wpvy4v7s] {
    margin-right: 8px;
    min-width: 26px;
  }

  .mark[data-astro-cid-wpvy4v7s] {
    width: 24px;
  }

  ul[data-astro-cid-wpvy4v7s] {
    gap: 9px;
  }

  ul[data-astro-cid-wpvy4v7s] a[data-astro-cid-wpvy4v7s] {
    font-size: 12.5px;
  }

  .cta[data-astro-cid-wpvy4v7s] {
    padding: 0 11px 0 13px;
    font-size: 13px;
    gap: 7px;
  }
}
.footer[data-astro-cid-jo6i4kqk].compact {
  padding-top: 8px;
}

.footer[data-astro-cid-jo6i4kqk].compact .bottom[data-astro-cid-jo6i4kqk] {
  padding-top: 32px;
}

.footer[data-astro-cid-jo6i4kqk] {
  background: var(--paper-2);
  padding: clamp(80px, 10vw, 140px) 0 40px;
  margin-top: 40px;
}

.top[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--ink-20);
}

.top[data-astro-cid-jo6i4kqk] .sub[data-astro-cid-jo6i4kqk] {
  font-size: 19px;
  color: var(--ink-60);
  max-width: 34ch;
  margin: 20px 0 0 !important;
  font-weight: 400 !important;
  font-family: var(--font-body) !important;
  line-height: 1.45 !important;
}

.top[data-astro-cid-jo6i4kqk] p[data-astro-cid-jo6i4kqk] {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
}

.hello[data-astro-cid-jo6i4kqk] {
  position: relative;
  isolation: isolate;
}

.hello[data-astro-cid-jo6i4kqk] .btn[data-astro-cid-jo6i4kqk] {
  position: relative;
  z-index: 1;
}

.peek[data-astro-cid-jo6i4kqk] {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 6px;
  width: 34px;
  height: auto;
  margin-left: -17px;
  transform: translateY(0) rotate(0);
  transition: transform var(--dur) var(--ease);
  pointer-events: none;
}

.hello[data-astro-cid-jo6i4kqk]:hover .peek[data-astro-cid-jo6i4kqk], .hello[data-astro-cid-jo6i4kqk]:focus-within .peek[data-astro-cid-jo6i4kqk] {
  transform: translateY(-36px) rotate(-8deg);
}

.bottom[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 32px;
}

nav[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

nav[data-astro-cid-jo6i4kqk] a[data-astro-cid-jo6i4kqk] {
  text-decoration: none;
  color: var(--ink-80);
  font-size: 15px;
  display: inline-block;
  padding: 10px 0;
}

@media (width <= 640px) {
  nav[data-astro-cid-jo6i4kqk] {
    gap: 4px 20px;
  }

  .bottom[data-astro-cid-jo6i4kqk] {
    gap: 12px;
  }
}

nav[data-astro-cid-jo6i4kqk] a[data-astro-cid-jo6i4kqk]:hover {
  color: var(--azure);
}

.label[data-astro-cid-jo6i4kqk] {
  margin: 0;
}

.legal[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-10);
}

.legal[data-astro-cid-jo6i4kqk] a[data-astro-cid-jo6i4kqk] {
  font-size: 13px;
  color: var(--ink-60);
  padding: 6px 0;
}

.legal[data-astro-cid-jo6i4kqk] a[data-astro-cid-jo6i4kqk]:hover {
  color: var(--azure);
}
.pi-sprite[data-astro-cid-k6isai4a] {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
/* ==========================================================
   Howze-Edge brand tokens (v1)
   ========================================================== */
:root {
  --azure: #007FDC;
  --azure-soft: #E6F2FC;
  --coral: #FF5C39;
  --coral-soft: #FFEDE8;
  /* Color jobs: azure = something you can click; coral = story markers (chapters, steps, labels); ink = facts */
  --coral-text: #CC3D1D;
  --azure-text: #006BB8; /* azure for small text on light backgrounds (AA) */
  --dur: .5s;

  --ink-100: #0F1114;
  --ink-80: #3A3E45;
  --ink-60: #656A73;
  --ink-40: #A3A7AE;
  --ink-20: #D7D9DD;
  --ink-10: #EDEEF0;
  --paper: #FFFFFF;
  --paper-2: #F7F8F9;

  /* Surfaces (swap in dark mode) */
  --card: #FFFFFF;
  --soft: #F5F5F7;
  --soft-2: #EDEDF0;
  --stage: #F0F0F0;
  --chip: #F5F5F7;
  --on-ink: #FFFFFF;
  --snag: #0F1114;
  --pi-bg: #FFFFFF;
  --nav-bg: rgba(255, 255, 255, .78);
  --base-hi: #F8F8F8; --base-lo: #DCDCDC;
  color-scheme: light dark;

  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: var(--font-body);

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-100);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* No lonely last words: balance headlines, tidy paragraph endings */
h1, h2, h3, .h-xl, .h-l, .statement { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
a { color: inherit; }
::selection { background: var(--azure); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 .5em;
}
.statement { font-size: clamp(48px, 9vw, 128px); letter-spacing: -0.03em; line-height: 1; }
.h-xl { font-size: clamp(36px, 5.5vw, 72px); letter-spacing: -0.025em; line-height: 1.05; }
.h-l  { font-size: clamp(28px, 3.5vw, 44px); }
.h-m  { font-size: clamp(22px, 2.2vw, 28px); }
.lede { font-size: clamp(19px, 1.8vw, 23px); color: var(--ink-80); max-width: 38ch; line-height: 1.5; }
.label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink-60);
}
.accent { color: var(--azure); }
.coral { color: var(--coral); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section-tight { padding: clamp(48px, 7vw, 96px) 0; }

/* Squircle corners: real superellipse where supported, rounded fallback elsewhere */
.squircle { border-radius: var(--radius-m); }
@supports (corner-shape: superellipse(2)) {
  .squircle, .btn, .card, .chip { corner-shape: superellipse(1.6); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 16px 26px;
  border-radius: 16px;
  font: 500 16px/1 var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-primary { background: var(--ink-100); color: var(--on-ink); }
.btn-primary:hover { background: var(--azure); }
.btn-ghost { border-color: var(--ink-20); color: var(--ink-100); background: transparent; }
.btn-ghost:hover { border-color: var(--azure); color: var(--azure); }
.btn:active { transform: scale(.97); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink-10);
  font: 500 13px/1.2 var(--font-body);
  color: var(--ink-80);
}

:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 6px; }

/* ==========================================================
   Motion system
   Add data-reveal to any element to fade it up on scroll.
   Add data-reveal-delay="1|2|3" to stagger siblings.
   Add data-parallax="0.15" (speed) for gentle parallax.
   ========================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  [data-parallax] { transform: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Long-form content (case studies, service pages) */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 2.2em; }
.prose h3 { font-size: 22px; margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-80); }
.prose img { border-radius: var(--radius-m); margin: 2.5em 0; }
.prose blockquote {
  margin: 2.5em 0; padding: 0 0 0 24px;
  border-left: 3px solid var(--coral);
  font: 500 clamp(20px, 2.2vw, 26px)/1.4 var(--font-display);
  color: var(--ink-100);
}
.prose strong { color: var(--ink-100); }

/* Wide figures break out of the text column */
.prose figure { margin: 3em 0; }
.prose figure.wide {
  position: relative; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100vw - 2 * var(--gutter)));
}
.prose figure img {
  width: 100%; height: auto; margin: 0;
  border-radius: var(--radius-l);
  border: 1px solid var(--ink-10);
  background: var(--paper-2);
}
.prose figcaption {
  max-width: 68ch; margin: 14px auto 0;
  font-size: 15px; color: var(--ink-60); text-align: center;
}

/* Storytelling blocks for case studies */
.prose .chapter {
  font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  color: var(--coral-text); margin: 6em 0 -1.2em;
}
.prose .chapter + h2 { margin-top: 1.4em; }
.prose h2 { letter-spacing: -0.03em; }
.prose .big {
  font: 600 clamp(26px, 3.4vw, 40px)/1.2 var(--font-display);
  letter-spacing: -0.03em; color: var(--ink-100); margin: 2em 0;
}
.prose .facts {
  position: relative; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100vw - 2 * var(--gutter)));
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 0 0 2em;
}
.prose .facts div { background: var(--paper-2); border-radius: var(--radius-m); padding: 28px 24px; }
.prose .facts strong { display: block; font: 600 clamp(36px, 4vw, 52px)/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink-100); margin-bottom: 8px; }
.prose .facts span { color: var(--ink-80); font-size: 15px; }
.prose .goals { list-style: none; padding: 0; margin: 2em 0; display: grid; gap: 14px; }
.prose .goals li { background: var(--paper-2); border-radius: var(--radius-m); padding: 24px 26px; color: var(--ink-80); }
.prose .goals li strong { display: block; font: 600 20px/1.3 var(--font-display); color: var(--ink-100); margin-bottom: 6px; }
.prose .goals li em { font-style: normal; display: block; margin-top: 10px; color: var(--ink-100); }
.prose .goals li em::before { content: "Looks like: "; font-weight: 600; color: var(--coral-text); }
.prose .grid-2 {
  position: relative; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100vw - 2 * var(--gutter)));
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; margin: 3em 0;
}
.prose .grid-2 figure { margin: 0; }
.prose .grid-2 figcaption { text-align: left; margin-top: 10px; }
/* ==========================================================
   Device frames (generic, drawn in CSS)
   Laptop: <figure class="wide laptop"><div class="screen"><img></div></figure>
   Phones: <div class="phones"><div class="phone"><img></div>...</div>
   ========================================================== */
/* Clay finish: soft off-white bodies, gentle shading, no hard black lines */
:root { --clay: #F7F7F7; --clay-edge: #E2E2E2; --clay-dark: #D0D0D0; }
.laptop .screen {
  width: 86%; margin: 0 auto; background: var(--clay);
  padding: 1.6% 1.6% 2.4%; border-radius: 20px 20px 6px 6px;
  box-shadow: inset 0 0 0 1px var(--clay-edge), inset 0 2px 0 rgba(255,255,255,.9),
              0 30px 70px rgba(15,17,20,.10), 0 6px 18px rgba(15,17,20,.05);
  position: relative;
}
.laptop .screen::before {
  content: ""; position: absolute; top: .6%; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--clay-dark);
}
.laptop .screen::after {
  content: ""; position: absolute; top: 100%; left: -8.14%; width: 116.28%;
  height: clamp(10px, 1.4vw, 18px);
  background: linear-gradient(var(--base-hi), var(--base-lo)); border-radius: 2px 2px 16px 16px;
  box-shadow: 0 14px 30px rgba(15,17,20,.08), inset 0 1px 0 #fff;
}
.laptop { padding-bottom: clamp(10px, 1.4vw, 18px); }
.laptop .screen img, .prose .laptop .screen img {
  display: block; width: 100%; height: auto; margin: 0;
  border: 0; border-radius: 6px; background: #fff;
  box-shadow: 0 0 0 1px rgba(15,17,20,.05);
}
.prose figure.laptop figcaption { margin-top: 22px; }

.phones {
  display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px); margin: 3em 0;
}
.prose .phones {
  position: relative; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100vw - 2 * var(--gutter)));
}
.phone {
  width: clamp(200px, 26vw, 300px); background: var(--clay); padding: 10px;
  border-radius: 48px; position: relative;
  box-shadow: inset 0 0 0 1px var(--clay-edge), inset 0 2px 0 rgba(255,255,255,.9),
              0 30px 60px rgba(15,17,20,.10), 0 6px 16px rgba(15,17,20,.05);
}
.phone::before {
  content: ""; position: absolute; z-index: 1; top: 20px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 22px; border-radius: 20px; background: var(--clay);
  box-shadow: inset 0 0 0 1px var(--clay-edge);
}
.phone img, .prose .phone img {
  display: block; width: 100%; height: auto; margin: 0;
  border: 0; border-radius: 38px; background: #fff;
  box-shadow: 0 0 0 1px rgba(15,17,20,.05);
}
.phones .phone:nth-child(2) { margin-top: 48px; }
@media (max-width: 700px) { .phones .phone:nth-child(2) { margin-top: 0; } }

.prose figure.artifact { max-width: 560px; margin: 3em auto; }
.prose figure.artifact.small { max-width: 300px; }
.prose figure.artifact.big { max-width: 880px; }
.prose figure.photo img, .prose .grid-2 figure.photo img, .prose .grid-3 figure.photo img { border: 0; background: none; }
.prose figure.photo img[src*='/spotlight/'], .prose figure.photo img[src*='/templum/'] { border-radius: 0; }
/* Stage: transparent renders on the flat gray panel */
.prose figure.stage { background: var(--stage); border-radius: 36px; padding: clamp(16px, 3vw, 40px); }
.prose figure.stage.pad { padding: clamp(24px, 5vw, 64px); }
.prose figure.stage img { border: 0; background: none; border-radius: 0; }
.prose .grid-2 figure.stage { height: 100%; display: grid; place-items: center; box-sizing: border-box; }
.prose figure.stage img[src*='transparency/filter'], .prose figure.stage img[src*='transparency/recommended'] { max-width: 340px; margin: 0 auto; }
@supports (corner-shape: superellipse(2)) { .prose figure.stage { corner-shape: superellipse(1.6); } }
.prose figure.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.prose .grid-2.align-start { align-items: start; }
.prose .grid-2 figure img[src*='before-2022'], .prose .grid-2 figure img[src*='after-2023'] { max-height: 760px; width: auto; max-width: 100%; margin: 0 auto; }
.prose figure.bleed {
  position: relative; left: 50%; transform: translateX(-50%);
  width: min(1440px, 100vw - 2 * clamp(0px, 2vw, 24px)); margin: 4em 0;
}
.prose figure.bleed img { border-radius: clamp(16px, 2vw, var(--radius-l)); }
.prose .grid-3 {
  position: relative; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100vw - 2 * var(--gutter)));
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 3em 0;
}
.prose .grid-3 figure { margin: 0; }
@media (max-width: 700px) { .prose .grid-3 { grid-template-columns: 1fr 1fr; } .prose .grid-3 figure:last-child { display: none; } }
.prose .grid-2.align-center { align-items: center; }
.prose figure.encrypted { max-width: 240px; margin: 2.5em auto; }
.prose figure.encrypted img { border: 0; background: none; }
.prose figure.artifact img { transform: rotate(-1.5deg); box-shadow: 0 24px 60px rgba(15,17,20,.14); border-radius: var(--radius-s); }

/* Apple-style light gray page tone */
body.tone-gray { background: var(--soft); }
body.tone-gray .footer { background: var(--soft-2); }
.tone-band { background: var(--soft); }
/* Dark tone: Apple-style graphite page with inverted type */
body.tone-dark { background: #1D1D1F; color: #F5F5F7; }
body.tone-dark .label { color: rgba(255,255,255,.6); }
body.tone-dark .lede { color: rgba(255,255,255,.72); }
body.tone-dark .h-xl, body.tone-dark .h-l, body.tone-dark h1, body.tone-dark h2 { color: #F5F5F7; }

/* Case study: email / message card */
.prose .email { background: var(--card); border-radius: 28px; padding: 28px 32px; margin: 2.5em 0; box-shadow: 0 2px 4px rgba(0,0,0,.02), 0 8px 28px rgba(0,0,0,.07); border: 1px solid var(--ink-10); }
.prose .email .from { font-size: 14px; font-weight: 600; color: var(--ink-60); margin: 0 0 10px; }
.prose .email p:last-child { margin: 0; font: 500 clamp(20px, 2.2vw, 26px)/1.35 var(--font-display); color: var(--ink-100); letter-spacing: -0.015em; }

/* Case study: timeline of how the team worked */
.prose .timeline { position: relative; left: 50%; transform: translateX(-50%); width: min(1120px, calc(100vw - 2 * var(--gutter))); background: var(--stage); border-radius: 36px; padding: clamp(24px, 4vw, 48px); margin: 3em 0; box-sizing: border-box; }
.prose .timeline .tl-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; align-items: center; gap: 20px; margin: 0 0 10px; }
.prose .timeline .tl-label { font-size: 15px; font-weight: 600; color: var(--ink-100); }
.prose .timeline .tl-track { position: relative; height: 30px; border-radius: 8px;
  /* Phase bands behind every row, so a bar's position reads as a phase */
  background:
    linear-gradient(to right, transparent calc(21.3% - 1px), var(--tl-line) calc(21.3% - 1px) calc(21.3% + 1px), transparent calc(21.3% + 1px) calc(70.5% - 1px), var(--tl-line) calc(70.5% - 1px) calc(70.5% + 1px), transparent calc(70.5% + 1px)),
    linear-gradient(to right, var(--tl-band) 0 21.3%, transparent 21.3% 70.5%, var(--tl-band) 70.5% 100%);
}
.prose .timeline { --tl-band: rgba(15,17,20,.035); --tl-line: rgba(15,17,20,.10); }
.prose .timeline .tl-track span { position: absolute; top: 4px; bottom: 4px; border-radius: 6px; background: var(--tl-c, var(--ink-40)); }
.prose .timeline .tl-row:nth-child(2) { --tl-c: #FF7A59; }
.prose .timeline .tl-row:nth-child(3) { --tl-c: #18A999; }
.prose .timeline .tl-row:nth-child(4) { --tl-c: #E9A400; }
.prose .timeline .tl-row:nth-child(5) { --tl-c: #8B6CF6; }
.prose .timeline .tl-row:not(.lead) .tl-label::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--tl-c); margin-right: 10px; vertical-align: 1px; }
.prose .timeline .tl-row.lead { margin-bottom: 18px; }
.prose .timeline .tl-row.lead .tl-track span { top: 0; bottom: 0; border-radius: 8px; background: var(--azure); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; padding-left: 12px; white-space: nowrap; overflow: hidden; }
.prose .timeline .tl-ship { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 20px; margin-top: 16px; font-size: 13px; color: var(--ink-60); }
.prose .timeline .tl-ship div { display: flex; justify-content: space-between; gap: 12px; }
.prose .timeline .tl-ship b { color: var(--ink-100); }
@media (max-width: 640px) {
  .prose .timeline { border-radius: 28px; padding: 22px 18px; }
  .prose .timeline .tl-row, .prose .timeline .tl-ship { grid-template-columns: 1fr; gap: 6px; }
  .prose .timeline .tl-row { margin-bottom: 14px; }
  .prose .timeline .tl-ship span:first-child:empty { display: none; }
  .prose .timeline .tl-track { height: 24px; }
  .prose .timeline .tl-row.lead .tl-track span { font-size: 12px; padding-left: 8px; }
  .prose .timeline .tl-label { font-size: 14px; }
}

/* Case study: snag → solution pairs */
.prose .snags { position: relative; left: 50%; transform: translateX(-50%); width: min(1120px, calc(100vw - 2 * var(--gutter))); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 3em 0; list-style: none; padding: 0; }
.prose .snags li { margin: 0; display: grid; grid-template-rows: auto 1fr; border-radius: 28px; overflow: hidden; background: var(--card); box-shadow: 0 2px 4px rgba(0,0,0,.02), 0 6px 20px rgba(0,0,0,.06); }
.prose .snags .snag { background: var(--snag); color: #fff; padding: 26px 26px 22px; }
.prose .snags .snag strong { display: block; color: #fff; font: 600 19px/1.25 var(--font-display); margin-bottom: 8px; }
.prose .snags .snag span { color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.5; }
.prose .snags .fix { padding: 22px 26px 26px; font-size: 16px; line-height: 1.5; color: var(--ink-80); }
.prose .snags .fix strong { display: block; color: var(--coral-text); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
@media (max-width: 860px) { .prose .snags { grid-template-columns: 1fr; } }

/* Case study: looping product video */
.prose figure video { display: block; width: 100%; height: auto; border-radius: 18px; }
.prose figure.stage video { border-radius: 14px; box-shadow: 0 2px 6px rgba(15,17,20,.04), 0 24px 60px rgba(15,17,20,.12); }
body.tone-dark .footer { background: #151517; margin-top: 0; }
body.tone-dark .footer .top { border-color: rgba(255,255,255,.14); }
body.tone-dark .footer .top p { color: #F5F5F7; }
body.tone-dark .footer .top p.sub { color: rgba(255,255,255,.6); }
body.tone-dark .footer nav a { color: rgba(255,255,255,.72); }
body.tone-dark .footer nav a:hover { color: #5AB8FF; }
body.tone-dark .footer .btn-primary { background: #fff; color: #1D1D1F; }
body.tone-dark .footer .btn-primary:hover { background: var(--azure); color: #fff; }

/* Dark-mode process icons: invert tile and icon */
.pi-dark { --pi-bg: #3A3A3F; --pi-mid: #7A7A80; color: #F5F5F7; background: #3A3A3F !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08) !important; }

/* Dark pages: graphite glass nav */
.nav { transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
body.tone-dark .nav { background: rgba(42, 42, 46, .72); border-color: rgba(255,255,255,.10); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
body.tone-dark .nav ul a { color: rgba(255,255,255,.72); }
body.tone-dark .nav ul a:hover { background: rgba(255,255,255,.08); color: #fff; }
body.tone-dark .nav ul a[aria-current='page'] { color: #fff; }
body.tone-dark .nav .cta { background: #fff; color: #1D1D1F; }
body.tone-dark .nav .cta:hover { background: var(--azure); color: #fff; }


/* ==========================================================
   Dark mode: follows the visitor's device setting
   ========================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --ink-100: #F5F5F7;
    --ink-80: #C7C7CC;
    --ink-60: #98989D;
    --ink-40: #6E6E73;
    --ink-20: #3A3A3C;
    --ink-10: #2C2C2E;
    --paper: #000000;
    --paper-2: #121214;
    --azure-soft: #0D2740;
    --coral-soft: #3A1C14;
    --coral-text: #FF7A5C;
    --azure-text: #3FA2F0;
    --card: #1C1C1E;
    --soft: #0E0E10;
    --soft-2: #0A0A0B;
    --stage: #1C1C1E;
    --chip: #2C2C2E;
    --on-ink: #000000;
    --snag: #2C2C2E;
    --pi-bg: #2C2C2E;
    --pi-mid: #6E6E73;
    --nav-bg: rgba(36, 36, 40, .72);
    --clay: #3A3A3C; --clay-edge: #4A4A4E; --clay-dark: #2C2C2E;
    --base-hi: #4A4A4E; --base-lo: #2C2C2E;
  }
  .nav { border-color: rgba(255,255,255,.10) !important; box-shadow: 0 8px 30px rgba(0,0,0,.35) !important; }
  .nav ul a:hover { background: rgba(255,255,255,.08) !important; }
  .btn-primary:hover { color: #fff; }
  .footer .btn-primary, body.tone-dark .footer .btn-primary { background: #fff; color: #000; }
  /* Cards: lighter shadow, faint edge so they lift off black */
  .card, .bizcard, .svc-card, .prose .snags li, .prose .email { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.4) !important; border-color: transparent !important; }
  .prose figure img { border-color: transparent; }
  /* Bright screenshots: ease them down so they don't glare against black */
  .prose img, .prose figure img, .card img, .fan-img img, .slide img, .proof-grid img, .sts-real { filter: brightness(.86) contrast(1.04); transition: filter var(--dur) var(--ease); }
  .card:hover img, .fan-card:hover img, .prose figure:hover img { filter: none; }
  /* Glass arrow button on cards */
  .card .go { background: rgba(72,72,78,.62) !important; border-color: rgba(255,255,255,.28) !important; box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.22) !important; color: #fff !important; }
  .card:hover .go { background: rgba(0,127,220,.9) !important; border-color: rgba(255,255,255,.35) !important; }
  /* Process icon tiles */
  .ico { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.35) !important; }
  .pitem[aria-pressed='true'] .ico { box-shadow: 0 0 0 2px var(--azure), 0 8px 24px rgba(0,127,220,.3) !important; }
  /* Dark sections stay distinct from the black page */
  body.tone-dark { background: #000; }
  body.tone-dark .footer, .footer { background: #0E0E10; }
  .prose .timeline { --tl-band: rgba(255,255,255,.04); --tl-line: rgba(255,255,255,.14); }
  .sticker { box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 10px 26px rgba(0,127,220,.28) !important; }
}


/* ==========================================================
   Mobile polish (QA pass)
   ========================================================== */
@media (max-width: 640px) {
  /* Stats: two per row instead of four tall boxes */
  .prose .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prose .facts div { padding: 20px 16px; }
  .prose .facts strong { font-size: 32px; }
  .prose .facts span { font-size: 14px; line-height: 1.4; display: block; }
  /* Phones side by side, smaller, instead of stacked giants */
  .prose .phones { flex-wrap: nowrap; gap: 12px; }
  .prose .phones .phone { width: calc((100% - 24px) / 3); min-width: 0; padding: 5px; border-radius: 26px; }
  .prose .phones .phone img { border-radius: 21px; }
  .prose .phones .phone::before { top: 10px; height: 10px; }
  .prose .phones:has(.phone:nth-child(2):last-child) .phone { width: calc((100% - 12px) / 2); max-width: 190px; }
  /* Less padding so screens get more room */
  .prose figure.stage { border-radius: 24px; padding: 12px; }
  .prose figure.stage.pad { padding: 18px; }
  .prose figure.bleed img, .prose figure.wide img { border-radius: 18px; }
  .prose .chapter { margin-top: 4em; }
}


/* Case study: phase matrix (who was involved when) */
.prose .phases { position: relative; left: 50%; transform: translateX(-50%); width: min(1120px, calc(100vw - 2 * var(--gutter)));
  background: var(--stage); border-radius: 36px; padding: clamp(18px, 3.5vw, 44px); margin: 3em 0; box-sizing: border-box; }
.prose .phases table { width: 100%; border-collapse: separate; border-spacing: 8px; table-layout: fixed; margin: -8px; width: calc(100% + 16px); }
.prose .phases thead th { font: 600 17px/1.2 var(--font-display); color: var(--ink-100); text-align: left; padding: 4px 14px 10px; vertical-align: bottom; }
.prose .phases thead th:first-child { width: 26%; }
.prose .phases thead em { display: block; font: 600 12px/1.3 var(--font-body); font-style: normal; color: var(--coral-text); margin-top: 4px; }
.prose .ph-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--card); color: var(--ink-60); font-size: 12px; margin-right: 8px; vertical-align: 1px; }
.prose .phases thead th.peak .ph-n { background: var(--azure); color: #fff; }
.prose .phases tbody th { text-align: left; font: 600 15px/1.25 var(--font-body); color: var(--ink-100); padding: 0 8px 0 0; }
.prose .phases tbody th i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 10px; vertical-align: 0; }
.prose .phases td { background: color-mix(in srgb, var(--c) 16%, var(--card)); border-left: 4px solid var(--c); border-radius: 10px;
  padding: 12px 14px; font-size: 15px; font-weight: 500; color: var(--ink-100); }
.prose .phases td.peak { background: color-mix(in srgb, var(--c) 26%, var(--card)); }
.prose .phases td.off { background: transparent; border-left-color: transparent; color: var(--ink-40); }
.prose .phases .t-design { --c: #007FDC; }
.prose .phases .t-pm { --c: #FF7A59; }
.prose .phases .t-eng { --c: #18A999; }
.prose .phases .t-mkt { --c: #E9A400; }
.prose .phases .t-demo { --c: #8B6CF6; }
.prose .ph-foot { margin: 18px 6px 0; font-size: 15px; color: var(--ink-60); }
.prose .ph-foot b { color: var(--ink-100); }
@media (max-width: 640px) {
  .prose .phases { border-radius: 26px; padding: 16px 12px; }
  .prose .phases table { border-spacing: 5px; margin: -5px; width: calc(100% + 10px); }
  .prose .phases thead th:first-child { display: none; }
  .prose .phases thead th { font-size: 15px; padding: 2px 6px 6px; }
  .prose .phases thead em { font-size: 11px; }
  .prose .ph-n { width: 18px; height: 18px; font-size: 11px; margin-right: 5px; }
  /* Row label sits above its three cells */
  .prose .phases tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 10px; }
  .prose .phases thead tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .prose .phases tbody th { grid-column: 1 / -1; font-size: 14px; padding: 6px 2px 0; }
  .prose .phases td { font-size: 13px; padding: 10px 8px; border-left-width: 3px; border-radius: 8px; }
  .prose .phases table, .prose .phases thead, .prose .phases tbody { display: block; }
  .prose .ph-foot { font-size: 14px; margin-top: 8px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* Case study: cross-functional flow (who was in the room, over time) */
.prose figure.flow { position: relative; left: 50%; transform: translateX(-50%); width: min(1120px, calc(100vw - 2 * var(--gutter)));
  background: var(--stage); border-radius: 36px; padding: clamp(20px, 3.5vw, 44px); margin: 3em 0; box-sizing: border-box;
  display: grid; gap: 10px; --name: 170px; }
.flow .fl-axis, .flow .fl-lane { display: grid; grid-template-columns: var(--name) 1fr; align-items: center; gap: 16px; }
.flow .fl-axis { position: relative; height: 26px; margin-left: calc(var(--name) + 16px); grid-template-columns: none; display: block; }
.flow .fl-axis span { position: absolute; left: calc(var(--s) * 1%); width: calc((var(--e) - var(--s)) * 1%); top: 0; bottom: 0;
  font-size: 13px; font-weight: 600; color: var(--ink-60); padding-left: 10px; border-left: 2px solid var(--ink-20); display: flex; align-items: center; }
.flow .fl-name { font-size: 14px; font-weight: 600; color: var(--ink-100); display: flex; align-items: center; gap: 10px; }
.flow .fl-lane:not(.fl-heat) .fl-name::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.flow .fl-track { position: relative; height: 26px; border-radius: 8px; background: rgba(15,17,20,.04); }
.flow .fl-track b { position: absolute; top: 3px; bottom: 3px; left: calc(var(--s) * 1% + 1px); width: calc((var(--e) - var(--s)) * 1% - 2px); border-radius: 6px; background: var(--c); }
.flow .fl-heat { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--ink-20); }
.flow .fl-heat .fl-track { height: 40px; background: none; }
.flow .fl-heat b { top: 0; bottom: 0; background: color-mix(in srgb, var(--azure) calc(var(--n) * 22% + 6%), var(--card)); display: grid; place-items: center; }
.flow .fl-heat b span { font-size: 13px; font-weight: 700; color: var(--ink-100); }
.flow .fl-heat b[style*="--n:3"] span, .flow .fl-heat b[style*="--n:4"] span { color: #fff; }
.flow .fl-heat i, .flow figcaption i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink-100); color: var(--paper);
  font: 700 12px/1 var(--font-body); font-style: normal; }
.flow .fl-heat i { position: absolute; left: calc(var(--p) * 1%); top: -11px; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--stage); }
.prose .flow figcaption { margin: 14px 0 0; padding: 0; max-width: none; text-align: left; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; font-size: 14px; color: var(--ink-80); }
.flow figcaption span { display: flex; gap: 10px; align-items: flex-start; }
.flow figcaption i { flex: none; }
@media (prefers-color-scheme: dark) { .flow .fl-track { background: rgba(255,255,255,.05); } }

/* Phones: time runs down the screen, one narrow column per team */
@media (max-width: 640px) {
  .prose figure.flow { border-radius: 26px; padding: 18px 14px 20px; grid-template-columns: 44px repeat(6, minmax(0, 1fr)); grid-template-rows: auto 460px; gap: 8px 6px; }
  .flow .fl-axis, .flow .fl-lane { display: contents; }
  .flow .fl-axis { margin: 0; }
  .flow .fl-axis::before { content: ''; grid-column: 1; grid-row: 1; }
  .flow .fl-axis span { position: absolute; }
  .flow .fl-axis { position: static; }
  .flow > .fl-axis { display: block; position: relative; grid-column: 1; grid-row: 2; height: auto; }
  .flow .fl-axis span { left: 0; right: 0; width: auto; top: calc(var(--s) * 1%); height: calc((var(--e) - var(--s)) * 1%); bottom: auto;
    border-left: 0; border-top: 2px solid var(--ink-20); padding: 6px 0 0; align-items: flex-start; font-size: 11px; }
  .flow .fl-name { grid-row: 1; font-size: 11px; line-height: 1.15; flex-direction: column; gap: 5px; text-align: center; align-self: end; }
  .flow .fl-name { word-break: break-word; }
  .flow .fl-track { grid-row: 2; height: auto; border-radius: 8px; }
  .flow .fl-track b { left: 3px; right: 3px; width: auto; top: calc(var(--s) * 1% + 1px); height: calc((var(--e) - var(--s)) * 1% - 2px); bottom: auto; }
  .flow .fl-heat { margin: 0; padding: 0; border: 0; }
  .flow .fl-heat .fl-track { height: auto; }
  .flow .fl-heat b { left: 0; right: 0; }
  .flow .fl-heat i { left: auto; right: -2px; top: calc(var(--p) * 1%); transform: translate(50%, -50%); }
  .prose .flow figcaption { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; font-size: 14px; }
}

.flow .fl-name .short { display: none; }
@media (max-width: 640px) {
  .flow .fl-name .long { display: none; }
  .flow .fl-name .short { display: inline; }
  .flow > :nth-child(2) > * { grid-column: 2; }
  .flow > :nth-child(3) > * { grid-column: 3; }
  .flow > :nth-child(4) > * { grid-column: 4; }
  .flow > :nth-child(5) > * { grid-column: 5; }
  .flow > :nth-child(6) > * { grid-column: 6; }
  .flow > :nth-child(7) > * { grid-column: 7; }
  .flow .fl-heat b.tiny span { display: none; }
  .flow .fl-name { font-size: 12px; white-space: nowrap; }
}


/* Case study: impact charts (before/after bars, meters, waffle). Before = neutral, after = azure; every bar is direct-labeled */
.prose figure.impact { --b: #858B94; --a: #007FDC; position: relative; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100vw - 2 * var(--gutter))); box-sizing: border-box; margin: 3em 0;
  background: var(--stage); border-radius: 36px; padding: clamp(24px, 4vw, 48px); display: grid; gap: 28px; }
@media (prefers-color-scheme: dark) { .prose figure.impact { --b: #7A8089; --a: #1F8FEA; } }
.impact .im-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; }
.prose .impact .im-title { margin: 0; font: 600 clamp(20px, 2vw, 24px)/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink-100); max-width: none; }
.prose .impact .im-key { margin: 0; display: flex; gap: 18px; font-size: 14px; color: var(--ink-80); }
.impact .im-key span { display: inline-flex; align-items: center; gap: 8px; }
.impact .im-key span::before { content: ''; width: 12px; height: 12px; border-radius: 3px; background: var(--b); }
.impact .im-key .k-a::before { background: var(--a); }
.impact .im-row { display: grid; grid-template-columns: minmax(180px, 30%) 1fr; gap: 12px 40px; align-items: center; }
.impact .im-row + .im-row { padding-top: 28px; border-top: 1px solid var(--ink-20); }
.prose .impact .im-name { margin: 0; font-size: 15px; line-height: 1.35; color: var(--ink-80); max-width: none; }
.impact .im-name strong { display: block; font: 600 clamp(28px, 3vw, 38px)/1.05 var(--font-display); letter-spacing: -0.03em; color: var(--ink-100); margin-bottom: 6px; }
.impact .im-bars { display: grid; gap: 2px; }
.impact .im-bar { display: flex; align-items: center; gap: 12px; min-height: 30px; }
.impact .im-bar i { flex: none; display: block; height: 22px; width: max(6px, calc(var(--v) / var(--max, 100) * 80%)); border-radius: 0 6px 6px 0; background: var(--b); }
.impact .im-bar.a i { background: var(--a); }
.impact .im-bar em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--ink-80); white-space: nowrap; }
.impact .im-bar em small { font-weight: 400; color: var(--ink-60); font-size: 13px; margin-left: 4px; }
/* Meter: share of a whole, fill on a full-length track */
.impact .im-meter { display: flex; align-items: center; gap: 12px; }
.impact .im-meter b { position: relative; flex: none; width: 80%; height: 22px; border-radius: 0 6px 6px 0; background: color-mix(in srgb, var(--ink-100) 7%, transparent); }
.impact .im-meter b::before { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); border-radius: 0 6px 6px 0; background: var(--a); }
.impact .im-meter em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--ink-80); }
/* Waffle: 100 squares */
.impact .im-waffle { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; max-width: 640px; }
.impact .im-waffle i { aspect-ratio: 1; border-radius: 3px; background: var(--b); opacity: .55; }
.impact .im-waffle i.on { background: var(--a); opacity: 1; }
.prose .impact .im-note { margin: -8px 0 0; font-size: 13px; color: var(--ink-60); max-width: none; }
@media (max-width: 640px) {
  .prose figure.impact { border-radius: 26px; padding: 22px 18px; gap: 22px; }
  .impact .im-row { grid-template-columns: 1fr; gap: 12px; }
  .impact .im-row + .im-row { padding-top: 22px; }
  .impact .im-bar i { width: max(6px, calc(var(--v) / var(--max, 100) * 66%)); height: 18px; }
  .impact .im-meter b { width: 72%; height: 18px; }
  .impact .im-waffle { gap: 3px; }
  .impact .im-span .t { font-size: 12px; }
  .impact .im-span .hm { display: none; }
}
/* Span: one project timeline, start to live, with what fit inside it */
.impact .im-span { position: relative; padding-top: 30px; }
.impact .im-span b { display: block; height: 22px; border-radius: 6px; background: var(--a); }
.impact .im-span .t { position: absolute; top: 0; left: calc(var(--p) * 1%); transform: translateX(-50%); font-size: 13px; font-weight: 600; color: var(--ink-60); white-space: nowrap; }
.impact .im-span .t.mid::after { content: ''; position: absolute; left: 50%; top: 22px; width: 2px; height: 34px; margin-left: -1px; background: var(--stage); }
.impact .im-span .t.start { left: 0; transform: none; }
.impact .im-span .t.end { left: auto; right: 0; transform: none; color: var(--ink-100); }
.prose .impact .im-fit { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.impact .im-fit span { font-size: 14px; font-weight: 500; color: var(--ink-100); background: var(--card); box-shadow: 0 1px 2px rgba(15,17,20,.06); border-radius: 999px; padding: 6px 12px; }
/* Tucked: image sits flush in the bottom-left corner of its tile, so a cropped edge reads as leaving the frame */
.prose figure.stage.tuck { padding: 0; overflow: hidden; display: flex; align-items: flex-end; justify-content: flex-start; }
.prose figure.stage.tuck img { display: block; width: 84%; margin: 0; border-radius: 0; }
/* Bare: product render sits straight on the page, no frame */
.prose figure.bare img { border: 0; background: none; border-radius: 0; }
/* ihCities market panel */
.impact .mk-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.impact .mk-chart { position: relative; background: var(--card); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.impact .mk-chart svg { width: 100%; height: auto; overflow: visible; }
.impact .mk-solid { stroke: var(--ink-100); stroke-width: 2.5; stroke-linecap: round; }
.impact .mk-dash { stroke: var(--a); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.impact .mk-dot { fill: var(--card); stroke: var(--ink-100); stroke-width: 2.5; }
.impact .mk-dot.a { stroke: var(--a); }
.prose .impact .mk-tag { margin: 0; font-size: 15px; color: var(--ink-80); max-width: none; }
.impact .mk-tag strong { color: var(--ink-100); }
.prose .impact .mk-stats { margin: 0; display: grid; gap: 18px; align-content: center; }
.impact .mk-stats dt { font: 600 clamp(28px, 3vw, 38px)/1.05 var(--font-display); letter-spacing: -0.03em; color: var(--ink-100); }
.prose .impact .mk-stats dd { margin: 4px 0 0; font-size: 15px; color: var(--ink-80); }
.impact .mk-family { background: var(--card); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.prose .impact .mk-big { margin: 0; font: 600 clamp(44px, 5vw, 64px)/1 var(--font-display); letter-spacing: -0.04em; color: var(--ink-100); }
.prose .impact .mk-cap { margin: 0 0 8px; font-size: 15px; color: var(--ink-80); max-width: 24ch; }
.impact .mk-family .im-meter b { width: 100%; }
@media (max-width: 860px) { .impact .mk-grid { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { .impact .mk-chart, .impact .mk-family { background: var(--chip); } .impact .mk-dot { fill: var(--chip); } }

/* Personas */
.prose .personas { position: relative; left: 50%; transform: translateX(-50%); width: min(1120px, calc(100vw - 2 * var(--gutter)));
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 3em 0; }
.prose .persona { background: var(--paper-2); border-radius: 28px; padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.persona .pa-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.persona .pa-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--card); display: grid; place-items: center; color: var(--ink-100); box-shadow: 0 1px 2px rgba(15,17,20,.06); }
.persona .pa-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.persona .pa-app { font-size: 12px; font-weight: 600; color: var(--ink-60); background: var(--chip); border-radius: 999px; padding: 4px 10px; }
.prose .persona .pa-name { margin: 0; font: 600 21px/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink-100); }
.prose .persona .pa-desc { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-80); flex: 1; }
.prose .persona .pa-need { margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--ink-10); font-size: 15px; font-weight: 600; color: var(--ink-100); }
.persona .pa-need span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-60); margin-bottom: 2px; }
@media (max-width: 860px) { .prose .personas { grid-template-columns: 1fr; } }

/* Line chart (endpoints only; dashed path = the months between are not plotted) */
.impact .lc { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: 200px auto; column-gap: 12px; position: relative; }
.impact .lc-y { grid-column: 1; grid-row: 1; position: absolute; left: 0; top: calc((100 - var(--y)) * 2px); transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--ink-60); }
.impact .lc-plot { grid-column: 2; grid-row: 1; position: relative; }
.impact .lc-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.impact .lc-plot line { stroke: var(--ink-20); stroke-width: 1; vector-effect: non-scaling-stroke; }
.impact .lc-plot line.base { stroke: var(--ink-40); }
.impact .lc-path { fill: none; stroke: var(--a); stroke-width: 2.5; stroke-dasharray: 3 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.impact .lc-pt { position: absolute; left: calc(var(--x) * 1%); top: calc((100 - var(--y)) * 1%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--stage); border: 2.5px solid var(--b); box-sizing: border-box; }
.impact .lc-pt.a { border-color: var(--a); background: var(--a); }
.impact .lc-pt em { position: absolute; right: 0; bottom: 16px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--ink-100); white-space: nowrap; }
.impact .lc-x { grid-column: 2; grid-row: 2; display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--ink-60); }
@media (max-width: 640px) { .impact .lc { grid-template-rows: 160px auto; grid-template-columns: 32px 1fr; } .impact .lc-y { top: calc((100 - var(--y)) * 1.6px); } }

/* Scale: two values on a bounded scale (e.g. 1 to 5) */
.impact .im-scale { position: relative; height: 64px; margin-right: 20%; }
.impact .im-scale b { position: absolute; left: 0; right: 0; top: 18px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink-100) 8%, transparent); }
.impact .im-scale b::after { content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--pb) * 1%); width: calc((var(--pa) - var(--pb)) * 1%); background: var(--a); border-radius: 3px; }
.impact .im-scale i { position: absolute; top: 21px; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid var(--stage); box-sizing: border-box; }
.impact .im-scale .sb { left: calc(var(--pb) * 1%); background: var(--b); }
.impact .im-scale .sa { left: calc(var(--pa) * 1%); background: var(--a); }
.impact .im-scale i em { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 14px; font-weight: 600; color: var(--ink-80); }
.impact .im-scale .sx { position: absolute; left: 0; right: 0; top: 40px; display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-60); }
.impact .im-scale .sx span { width: 0; display: flex; justify-content: center; }
@media (max-width: 640px) { .impact .im-scale { margin-right: 6%; } }

@media (prefers-color-scheme: dark) { .impact .im-fit span { background: var(--chip); box-shadow: none; } }

/* Reputation: user flow rebuilt as live UI. Three columns on desktop, one stacked path on phones */
.prose figure.uflow { --ai: #A23BD6; --soft: color-mix(in srgb, var(--card) 70%, var(--stage)); position: relative; left: 50%; transform: translateX(-50%); width: min(1120px, calc(100vw - 2 * var(--gutter))); box-sizing: border-box; margin: 3em 0;
  background: var(--stage); border-radius: 36px; padding: clamp(22px, 3.5vw, 44px); display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 2.3fr) minmax(170px, .9fr); gap: 0 44px; align-items: start; }
@media (prefers-color-scheme: dark) { .prose figure.uflow { --ai: #C77DEB; --soft: var(--chip); } }
.uflow .uf-col { position: relative; }
.prose .uflow .uf-k { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--ink-60); max-width: none; }
.uflow ol { list-style: none; margin: 0; padding: 0; }
.uflow .uf-node { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 40px; padding: 8px 14px; box-sizing: border-box;
  border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--ink-100); background: var(--card); border: 1.5px solid var(--ink-100); margin: 0; }
.uflow .uf-node small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-60); margin-top: 3px; }
.uflow .uf-node.ghost { border-radius: 999px; }
.uflow .uf-node.dark { background: var(--ink-100); color: var(--paper); border-radius: 999px; }
.uflow .uf-node.soft { border-color: transparent; background: var(--soft); font-weight: 500; }
.uflow .uf-node.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ai) 25%, transparent); border-color: var(--ai); }
.uflow .uf-node.ai { flex-direction: row; gap: 8px; border-color: var(--ai); color: var(--ai); }
.uflow .uf-node.ai svg { width: 16px; height: 16px; flex: none; }
.uflow .uf-node.aihex { background: var(--ink-100); color: var(--paper); border: 0; clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%); padding: 8px 24px; min-height: 52px; }
/* vertical chain with arrows */
.uflow .uf-chain { display: grid; gap: 22px; }
.uflow .uf-chain li { position: relative; }
.uflow .uf-chain li + li::before { content: ''; position: absolute; left: 50%; top: -18px; height: 14px; border-left: 1.5px dashed var(--ink-60); }
.uflow .uf-chain li + li::after { content: ''; position: absolute; left: 50%; top: -8px; margin-left: -4px; border: 4px solid transparent; border-top: 5px solid var(--ink-60); border-bottom: 0; }
/* review list panel */
.uflow .uf-list { border: 1.5px dashed var(--ink-20); border-radius: 22px; padding: 18px; display: grid; gap: 16px; }
.prose .uflow .uf-list .uf-k { margin: 0; }
.uflow .uf-acts, .uflow .uf-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.uflow .uf-acts.two { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.prose .uflow .uf-via { display: none; margin: 0 0 -6px; font-size: 12px; font-weight: 600; color: var(--ai); max-width: none; }
.prose .uflow .uf-via.sub { display: block; color: var(--ink-60); margin: 0 0 8px; }
.uflow .uf-ai { display: flex; align-items: center; gap: 6px; position: relative; }
.uflow .uf-ai .uf-node { flex: 1 1 0; }
.uflow .uf-ai .uf-node.ai { flex-basis: 0; flex-grow: 1.35; white-space: nowrap; }
.uflow .uf-to { flex: none; width: 26px; display: grid; place-items: center; color: var(--ai); }
.uflow .uf-to svg { width: 24px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Respond drops into Write It For Me */
.uflow .uf-ai::before { content: ''; position: absolute; left: calc((100% - 30px) / 8); top: -16px; height: 14px; border-left: 1.5px dashed var(--ai); }
.uflow .uf-branch { display: grid; gap: 6px; }
.uflow .uf-or { text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-60); }
/* column connectors */
.uflow .uf-col:not(:last-of-type)::after { content: '→'; position: absolute; right: -32px; top: 50%; font-size: 18px; color: var(--ink-60); }
.uflow .uf-in::after { top: auto !important; bottom: 8px; }
.prose .uflow figcaption { grid-column: 1 / -1; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 14px; color: var(--ink-80); text-align: left; max-width: none; }
.uflow .uf-key { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.uflow .uf-key i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--ai); }

@media (max-width: 1100px) {
  .prose figure.uflow { grid-template-columns: 1fr; gap: 34px; border-radius: 26px; width: min(640px, calc(100vw - 2 * var(--gutter))); }
  .uflow .uf-col:not(:last-of-type)::after { content: '↓'; right: auto; left: 50%; top: auto !important; bottom: -30px; transform: translateX(-50%); }
  .uflow .uf-chain { gap: 18px; }
  .uflow .uf-acts, .uflow .uf-tabs { grid-template-columns: 1fr 1fr; }
  .prose .uflow .uf-via { display: block; }
  .uflow .uf-ai::before { display: none; }
  .uflow .uf-ai { flex-direction: column; align-items: stretch; gap: 4px; }
  .uflow .uf-ai .uf-node { flex: none; }
  .uflow .uf-to { width: 100%; height: 22px; }
  .uflow .uf-to svg { transform: rotate(90deg); }
  .prose .uflow figcaption { margin-top: 0; }
}

/* Minimal header for full-screen experiences: just the smile mark, linking home */
.mini-head { position: absolute; z-index: 60; top: 24px; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; }
.mini-home { pointer-events: auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--card);
  box-shadow: 0 2px 4px rgba(15,17,20,.05), 0 10px 26px rgba(0,127,220,.16); transform: rotate(-6deg); transition: transform var(--dur) var(--ease); }
.mini-home:hover { transform: rotate(0deg) scale(1.06); }
.mini-home:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; }
.mini-home img { width: 60%; height: auto; }
@supports (corner-shape: superellipse(2)) { .mini-home { corner-shape: superellipse(1.6); } }
.skip[data-astro-cid-hkbrpulz] {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink-100);
  color: var(--on-ink);
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
}

.skip[data-astro-cid-hkbrpulz]:focus {
  top: 16px;
}
