/* Black Diamond site styles (Facet Mono v10). Shared by the home page and detail pages. */
:root {
  --bg: #fafaf9; --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px -10px rgb(0 0 0 / .18); --surface: #ffffff; --sunk: #f1f1ee; --ink: #0b0b0b; --ink-2: #3b3b38; --muted: #6d6d68;
  --line: #e3e3df; --line-2: #cfcfca; --mark: #f6e04b; --mark-ink: #0b0b0b; --live: #1f9d55; --chip: #ffffff;
  --glow: rgb(246 224 75 / 0.32); --hub: #161615; --hub-ink: #fafaf9; --pen: #e2bf12; --facet: rgb(11 11 11 / .1); --glint: rgb(226 191 18 / .7);
  --p-blue: #a6c6ff; --p-sky: #93dcff; --p-teal: #83ebe1; --p-green: #9fe090; --p-yellow: #fad561; --p-orange: #f9b58b; --p-pink: #faa5c1; --p-magenta: #f397f2; --p-purple: #c0aeff; --p-gray: #c4c7cd; --p-ink: #1d1f25;
  --font: "Hanken Grotesk", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --brand: "Inter", "Helvetica Neue", Arial, sans-serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right)); --sec: 56px; --nav-h: 60px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0b; --surface: #141413; --sunk: #1a1a19; --ink: #f4f4f1; --ink-2: #d4d4cf; --muted: #9a9a94;
    --line: #272725; --line-2: #3a3a37; --live: #3ccf7c; --chip: #f4f4f1; --hub: #262624; --hub-ink: #f4f4f1; --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px -12px rgb(0 0 0 / .7); --glow: rgb(246 224 75 / 0.22); --pen: #f6e04b; --facet: rgb(244 244 241 / .1); --glint: rgb(246 224 75 / .6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0b; --surface: #141413; --sunk: #1a1a19; --ink: #f4f4f1; --ink-2: #d4d4cf; --muted: #9a9a94;
  --line: #272725; --line-2: #3a3a37; --live: #3ccf7c; --chip: #f4f4f1; --hub: #262624; --hub-ink: #f4f4f1; --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px -12px rgb(0 0 0 / .7); --glow: rgb(246 224 75 / 0.22); --pen: #f6e04b; --facet: rgb(244 244 241 / .1); --glint: rgb(246 224 75 / .6); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.cta-card :focus-visible, .lightbox :focus-visible, .vid:focus-visible { outline-color: var(--mark); }
::selection { background: var(--mark); color: var(--mark-ink); }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

.d1, .d2, .d3 { font-family: var(--font); font-weight: 900; text-transform: uppercase; margin: 0; text-wrap: pretty; isolation: isolate; }
.d3 { text-transform: none; }
.d1 { font-size: clamp(36px, 13.2vw, 68px); line-height: 0.98; letter-spacing: -0.042em; }
.d2 { font-size: clamp(32px, 9vw, 60px); line-height: 1; letter-spacing: -0.038em; }
.d3 { font-size: 20px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
.lede { font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 38ch; }
.label { font: 700 12px/1.2 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.num { font-variant-numeric: tabular-nums; }

.mk { position: relative; white-space: nowrap; color: var(--mark-ink); padding-inline: 0.04em; }
.mk::before {
  content: ""; position: absolute; z-index: -1; left: -0.1em; right: -0.12em; top: 0.12em; bottom: 0.02em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath fill='%23F6E04B' d='M9 13c22-5 61-8 104-8 37 0 73 3 109 2 25-1 47-3 66 1 7 2 9 9 8 17-1 7 0 14-2 21-1 5-5 8-12 9-30 2-61 0-93 1-38 1-77 3-115 2-21 0-44 1-63-2-7-1-11-6-11-13 0-7 2-15 1-21-1-6 2-8 8-9z'/%3E%3Cpath fill='%23F6E04B' opacity='.55' d='M4 22c3-6 8-7 14-7 4 9 1 23-4 31-6-3-10-9-11-14 0-4 0-7 1-10zM283 12c8 1 13 7 13 15 0 9-3 17-9 22-4-12-6-24-4-37z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: rotate(-1.2deg); clip-path: inset(0 100% 0 0); transition: clip-path .75s cubic-bezier(.6,0,.2,1);
}
.mk.is-drawn::before { clip-path: inset(0 0 0 0); }
.mk.pen-off::before, .pen-off > .pen path { transition: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--r-md); font: 700 15.5px/1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .1s, border-color .15s; white-space: nowrap; }
.btn:active { transform: scale(.985); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-solid:hover { background: color-mix(in srgb, var(--ink) 84%, var(--mark)); }
.btn-mark:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-mark { background: var(--mark); color: var(--mark-ink); border-radius: 999px; padding: 0 26px; box-shadow: 0 10px 30px -8px var(--glow); }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: var(--r-sm); }
.textlink { font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.textlink svg { width: 14px; height: 14px; }

section { padding-block: var(--sec); }
.rule { border-top: 1px solid var(--line); position: relative; }
/* facet lines: each section break is the girdle of a cut stone, with pavilion facets converging just below it */
.rule::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; pointer-events: none;
  background: linear-gradient(100deg, var(--facet) 38%, var(--glint) 50%, var(--facet) 62%) 100% 0 / 300% 100%; animation: glint 9s ease-in-out infinite;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 64' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.2' vector-effect='non-scaling-stroke'%3E%3Cpath d='M560 0 760 64 960 0M660 0l100 64 100-64M380 0l380 64'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 64' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.2' vector-effect='non-scaling-stroke'%3E%3Cpath d='M560 0 760 64 960 0M660 0l100 64 100-64M380 0l380 64'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.rule:nth-of-type(even)::before { transform: scaleX(-1); animation-delay: -4s; }
@keyframes glint { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }
.sec-head { display: grid; gap: 14px; margin-bottom: 36px; }
.sec-head p { color: var(--ink-2); max-width: 46ch; font-size: 17px; }

/* scroll reveals: elements rise into place as they enter the viewport, staggered within each group (JS adds .rv-on, so nothing hides without it) */
.rv-on .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), border-color .2s; }
.rv-on .rv.in { opacity: 1; transform: none; }
/* hero intro on load */
.rv-on .hero-copy > *, .rv-on .hero-robot { animation: lift .9s cubic-bezier(.2,.7,.2,1) both; }
.rv-on .hero-copy > :nth-child(2) { animation-delay: .08s; } .rv-on .hero-copy > :nth-child(3) { animation-delay: .16s; }
.rv-on .hero-copy > :nth-child(4) { animation-delay: .24s; } .rv-on .hero-copy > :nth-child(5) { animation-delay: .32s; } .rv-on .hero-robot { animation-delay: .4s; }
@keyframes lift { from { opacity: 0; transform: translateY(22px); } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.nav { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-cta { transition: opacity .2s, transform .2s; }
.nav-cta.is-off { opacity: 0; transform: scale(.94); pointer-events: none; visibility: hidden; }
.float-cta { position: fixed; left: 50%; max-width: calc(100% - 2 * var(--gutter)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; translate: -50% 0; box-shadow: 0 14px 34px -10px rgb(0 0 0 / .5); transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s; }
.float-cta.is-off { transform: translateY(140%); opacity: 0; pointer-events: none; }
.nav .wrap { height: var(--nav-h); display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 800 19px/1 var(--brand); letter-spacing: -0.03em; white-space: nowrap; margin-right: auto; min-height: 44px; }
.brand .logo { width: 32px; height: 32px; }
.nav-links { display: none; gap: 28px; font-weight: 600; font-size: 14.5px; margin-right: 12px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; border: 1px solid var(--line-2); background: transparent; cursor: pointer; padding: 0; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }
.theme-desk { display: none; }
.sun, .moon { display: inline-flex; }
.moon { display: none; }
:root[data-theme="dark"] .sun { display: none; } :root[data-theme="dark"] .moon { display: inline-flex; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sun { display: none; } :root:not([data-theme="light"]) .moon { display: inline-flex; } }
.menu-btn .x { display: none; }
.menu-open .menu-btn .bars { display: none; } .menu-open .menu-btn .x { display: block; }
.menu { position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 0; z-index: 49; background: var(--bg); padding: 8px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; overflow-y: auto; }
.menu a.item { padding: 16px 0; border-bottom: 1px solid var(--line); font: 900 34px/1 var(--font); text-transform: uppercase; letter-spacing: -0.035em; text-decoration: none; }
.menu-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }
.theme-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; font-weight: 600; width: 100%; }
@media (min-width: 900px) { .nav-links { display: flex; } .theme-desk { display: grid; } .menu-btn { display: none !important; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 28px 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.gem { position: absolute; right: -34%; top: -6%; width: 118%; max-width: 900px; aspect-ratio: 1 / .9; color: var(--facet); opacity: 0; transition: opacity 1.2s; }
.gem.is-on { opacity: 1; }
@media (min-width: 900px) { .gem { right: -12%; top: -14%; width: 64%; } }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 36px; }
.hero-copy { display: grid; gap: 22px; }
.me { display: flex; align-items: center; gap: 12px; }
.me img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.me b { display: block; font: 400 25px/1.45 "Homemade Apple", cursive; transform: rotate(-3deg); transform-origin: left center; margin: -4px 0 2px; }
.me span { font-size: 13.5px; color: var(--muted); }
.ctas { display: grid; gap: 10px; }
.ctas .btn { width: 100%; }
.since { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.since .stars { display: inline-flex; gap: 1px; color: #f5b301; }
.since .stars svg { width: 14px; height: 14px; }
.since b { color: var(--ink); font-weight: 800; }
.since .sep { color: var(--line-2); }

.chip { display: inline-flex; align-items: center; font-weight: 700; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.svc-chip { --k: var(--p-gray); background: var(--k); color: var(--p-ink); border: 0; border-radius: 999px; padding: 5px 11px; font-size: 12px; letter-spacing: .02em; text-transform: none; }
.t-ai { --k: var(--p-purple); } .t-auto { --k: var(--p-orange); } .t-plat { --k: var(--p-teal); } .t-soft { --k: var(--p-blue); }
.hero-art { position: relative; }
.hero-robot { position: relative; aspect-ratio: 1; max-width: 300px; width: 100%; margin: -36px auto -52px; }
@media (min-width: 900px) { .hero-robot { max-width: 520px; margin: 0 auto; } }
.hero-robot::before { content: ""; position: absolute; inset: 8% 6% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgb(246 224 75 / .32), transparent 72%); filter: blur(8px); }
.hero-robot::after { content: ""; position: absolute; left: 18%; right: 14%; bottom: 13%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / .28), transparent); }
.hero-robot img, .hero-robot canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-robot canvas { opacity: 0; transition: opacity .3s; }
.hero-robot canvas.is-ready { opacity: 1; }
.hero-robot:has(canvas.is-ready) img { opacity: 0; }
/* ---------- proof ---------- */
.proof { padding-block: 0 24px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 14px; display: grid; gap: 6px; align-content: start; }
.tile strong { font: 900 clamp(30px, 9vw, 40px)/1 var(--font); letter-spacing: -0.04em; }
.tile strong span { font: inherit; color: inherit; }
.tile > span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.upwork { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; }
.upwork .mark-box { width: 48px; height: 48px; border-radius: 12px; background: #14a800; display: grid; place-items: center; }
.upwork .mark-box svg { width: 30px; height: 30px; }
.upwork .mark-box svg path { fill: #fff; }
.upwork .who { display: grid; gap: 3px; }
.upwork .who b { font: 900 17px/1.1 var(--font); letter-spacing: -0.01em; text-transform: uppercase; }
.upwork .who span { font-size: 13px; }
.upwork .stars { display: flex; gap: 1px; color: #f5b301; }
.upwork .stars svg { width: 13px; height: 13px; }
.upwork .jss { text-align: right; display: grid; gap: 2px; padding-left: 14px; border-left: 1px solid var(--line); }
.upwork .jss strong { font-size: 26px; }
@media (min-width: 900px) { .tiles { grid-template-columns: 2fr 1fr 1fr; } .upwork { grid-column: auto; } }

.logos { padding-block: 28px 8px; display: grid; gap: 16px; }
.marquee { overflow: hidden; pointer-events: none; padding-block: 2px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: slide 38s linear infinite; animation-play-state: paused; }
.marquee.is-on .marquee-track { animation-play-state: running; }
.logo-chip { height: 64px; padding: 12px 20px; background: #fff; min-width: 120px; border: 1px solid var(--line); border-radius: var(--r-md); display: grid; place-items: center; flex: none; }
.logo-chip img { height: 34px; width: auto; max-width: 150px; object-fit: contain; }
.logo-chip img.wide { height: 40px; max-width: 170px; }
/* dark mode: logos become even white silhouettes on the page instead of pale boxes */
.logo-chip img.mono { display: none; height: 26px; max-width: 140px; }
.logo-chip img.mono.wide { height: 34px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-chip { background: transparent; border-color: transparent; padding-inline: 14px; }
  :root:not([data-theme="light"]) .logo-chip img.col { display: none; } :root:not([data-theme="light"]) .logo-chip img.mono { display: block; opacity: .72; } }
:root[data-theme="dark"] .logo-chip { background: transparent; border-color: transparent; padding-inline: 14px; }
:root[data-theme="dark"] .logo-chip img.col { display: none; }
:root[data-theme="dark"] .logo-chip img.mono { display: block; opacity: .72; }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; pointer-events: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; } }
@keyframes slide { to { transform: translateX(calc(-50% - 6px)); } }

/* ---------- editor's mark-up: hand-drawn pen strokes on the proof, drawn in when they scroll into view ---------- */
[data-pen] { position: relative; display: inline-block; isolation: isolate; }
.pen { position: absolute; z-index: -1; pointer-events: none; overflow: visible; color: var(--pen); }
.pen path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.6,0,.2,1); }
.pen path + path { transition-delay: .55s; }
.pen.circle { left: -16%; right: -16%; top: -22%; bottom: -26%; }
.pen.under { left: -3%; right: -3%; bottom: -.32em; height: .5em; }
.pen.arrow { right: calc(100% + 2px); top: -26px; width: 58px; height: 46px; z-index: 1; }
.cta-arrow { display: inline-block; }
/* underlines inside running text follow every line the phrase wraps onto */
.inl-pen { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: .08em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M1 6C25 3 60 2.5 99 5' fill='none' stroke='%23e2bf12' stroke-width='2.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 100% / 0% .42em no-repeat;
  transition: background-size .9s cubic-bezier(.6,0,.2,1); }
.inl-pen.is-drawn { background-size: 100% .42em; }
.pen-off.inl-pen { transition: none; }
/* rails: the card in focus is full strength, the ones beside it rest back slightly */
.rv-on .cases .case.off, .rv-on .vids .vid.off { opacity: .5; transform: scale(.965); transition: opacity .45s, transform .45s cubic-bezier(.2,.7,.2,1); }
@media (min-width: 1080px) { .rv-on .cases .case.off { opacity: 1; transform: none; } }
@media (min-width: 760px) { .rv-on .vids .vid.off { opacity: 1; transform: none; } }
.is-drawn > .pen path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .pen path { stroke-dashoffset: 0; } }

/* ---------- services ---------- */
.svc { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 12px 20px; display: grid; gap: 12px; align-content: start; }
.card p { color: var(--ink-2); }
.card > :not(.s3) { margin-inline: 4px; }
.card, .case { transition: border-color .2s; }
.card:hover, .case:hover { border-color: var(--line-2); }
.svc-name { display: flex; align-items: center; gap: 10px; font-size: 24px; text-transform: none; letter-spacing: -0.025em; }
.svc-name .sw { width: 14px; height: 14px; border-radius: 50%; background: var(--k); flex: none; }
.card .tagline { font-weight: 700; color: var(--ink); margin-top: -6px; }
.card .ex { font-size: 14px; color: var(--muted); padding-top: 12px; border-top: 1px dashed var(--line-2); }
.card .ex b { color: var(--ink); font-weight: 700; }
@media (min-width: 760px) { .svc { grid-template-columns: 1fr 1fr; } }

/* ---------- work ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 18px; padding-inline: var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; border: 1px solid var(--line-2); background: transparent; border-radius: 8px; padding: 0 16px; min-height: 44px; font-weight: 600; font-size: 14px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.cases { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 4px; }
.cases::-webkit-scrollbar { display: none; }
.cases::after, .vids::after { content: ""; width: 1px; }
@media (min-width: 760px) { .vids::after { display: none; } }
@media (min-width: 1080px) { .cases { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); } }
@media (min-width: 760px) { .cases { grid-auto-columns: calc(50% - 7px); } }
@media (min-width: 1080px) { .cases { grid-auto-columns: calc(33.333% - 10px); } }
.case { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.case-top { padding: 16px 18px 0; display: flex; align-items: center; gap: 12px; }
.case-top .co { height: 44px; min-width: 44px; padding: 6px 10px; background: #fff; border-radius: var(--r-sm); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.case-top .co img { height: 28px; width: auto; max-width: 110px; object-fit: contain; }
.case-top .meta { display: grid; gap: 2px; min-width: 0; }
.case-top .meta b { font-weight: 700; font-size: 15px; line-height: 1.2; }
.case-top .meta span { font-size: 12.5px; color: var(--muted); }
.case-body { padding: 14px 18px 18px; display: grid; gap: 14px; align-content: start; }
.story { display: grid; gap: 10px; margin: 0; }
.story div { display: grid; gap: 2px; }
.story dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.story dd { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.result { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--sunk); }
.result strong { font: 900 28px/1 var(--font); letter-spacing: -0.04em; white-space: nowrap; }
.result span { font-size: 13px; color: var(--muted); line-height: 1.3; }
.rail-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 12px; }
.counter { font-weight: 700; font-size: 13px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.arrows button:disabled { opacity: .35; cursor: default; }
.arrows svg { width: 16px; height: 16px; }

/* ---------- reviews ---------- */
.reviews { background: var(--sunk); }
.vids { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.vids::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .vids { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); margin-inline: 0; padding-inline: 0; } }
.vid { scroll-snap-align: start; position: relative; display: block; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: #111; cursor: pointer; text-align: left; color: #fff; isolation: isolate; }
.vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.vid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / .78)); z-index: 0; }
.vid:hover img { transform: scale(1.04); }
.vid-play { position: absolute; left: 50%; top: 42%; translate: -50% -50%; width: 62px; height: 62px; border-radius: 50%; background: var(--mark); color: var(--mark-ink); display: grid; place-items: center; z-index: 1; box-shadow: 0 10px 30px -6px rgb(0 0 0 / .5); }
.vid:not(:first-child) .vid-play::before { display: none; }
.vid-play::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgb(246 224 75 / .6); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.vid-play svg { width: 26px; height: 26px; margin-left: 3px; }
.vid-meta { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: grid; gap: 2px; }
.vid-meta b { font-size: 16px; font-weight: 800; }
.vid-meta span { font-size: 13px; opacity: .85; }
.vid-meta em { font-style: normal; justify-self: start; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 4px 8px; border-radius: 6px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; }
.lightbox::backdrop { background: rgb(0 0 0 / .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lb-frame { position: relative; width: min(92vw, 1100px); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.lb-frame.tall { width: min(92vw, 56dvh, 420px); aspect-ratio: 9 / 16; }
.lb-frame iframe, .lb-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.lb-close { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-close svg { width: 18px; height: 18px; }
.stars-row { display: flex; gap: 2px; }
.stars-row svg { width: 16px; height: 16px; }
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; column-gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.quotes::-webkit-scrollbar { display: none; }
.q { scroll-snap-align: start; margin: 0; display: grid; gap: 20px; align-content: start; }
.q blockquote { margin: 0; font: 600 23px/1.34 var(--font); letter-spacing: -0.015em; text-wrap: pretty; }
.q blockquote::before { content: "“"; display: block; font: 900 64px/0.6 var(--font); margin-bottom: 8px; }
.q figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.q .ini { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.q figcaption b { display: block; }
.q figcaption span { font-size: 13px; color: var(--muted); }
.pips { display: flex; gap: 0; margin-left: -8px; }
.pips button { position: relative; width: 24px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; transition: width .25s; }
.pips button::before { content: ""; position: absolute; left: 8px; right: 8px; top: 18px; height: 8px; border-radius: 99px; background: var(--line-2); transition: background .25s; }
.pips button[aria-current="true"] { width: 42px; }
.pips button[aria-current="true"]::before { background: var(--ink); }
.q-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; }

/* ---------- about ---------- */
.about { display: grid; gap: 28px; }
.portrait { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #0b0b14; }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.portrait figcaption { position: absolute; left: 12px; bottom: 12px; background: rgb(11 11 11 / .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #f4f4f1; border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.portrait figcaption i { width: 7px; height: 7px; border-radius: 50%; background: #3ccf7c; }
.portrait { margin: 0; }
.wave { display: inline-block; font-size: .8em; transform-origin: 70% 75%; animation: wave 2.6s ease-in-out .6s infinite; text-transform: none; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
.about-copy { display: grid; gap: 16px; align-content: start; }
.about-copy p { font-size: 17px; color: var(--ink-2); }
.about-copy p b { color: var(--ink); }
.path { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.path li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; padding-bottom: 16px; }
.path li::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line-2); }
.path li:last-child { padding-bottom: 0; }
.path li:last-child::before { display: none; }
.path .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--hub); color: var(--hub-ink); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 800; }

.path b { display: block; font-weight: 800; font-size: 15.5px; line-height: 1.3; }
.path .yrs { display: block; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 5px; font-variant-numeric: tabular-nums; }
.path li.now .yrs { display: inline-block; background: var(--p-green); color: var(--p-ink); padding: 3px 9px; border-radius: 999px; margin-bottom: 2px; }
.path div > span { display: block; font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (min-width: 760px) { .about { grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; } }
@media (min-width: 900px) { .about { gap: 56px; } }

/* industries + tools */
.bands { display: grid; gap: 28px; }
.band { display: grid; gap: 14px; }
.inds { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.inds span { white-space: nowrap; }
.inds i { font-style: normal; color: var(--line-2); padding-inline: 6px; }
.ind { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.ind i { width: 30px; height: 30px; border-radius: 50%; background: var(--sunk); display: grid; place-items: center; font-style: normal; font-size: 16px; line-height: 1; }


/* ---------- process / faq ---------- */
.steps details, .faq details { border-bottom: 1px solid var(--line); }
.steps details:first-of-type, .faq details:first-of-type { border-top: 1px solid var(--line); }
.steps summary, .faq summary { list-style: none; display: grid; grid-template-columns: 40px 1fr 36px; align-items: center; gap: 4px; padding: 20px 0; cursor: pointer; }
.faq summary { grid-template-columns: 1fr 36px; font-weight: 700; font-size: 17px; line-height: 1.3; gap: 14px; }
.steps summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.steps .n { font-weight: 700; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps .t { font: 800 22px/1.1 var(--font); letter-spacing: -0.025em; }
.steps ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 6px 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps li .n { padding-top: 5px; color: var(--ink); }
.steps li p { grid-column: 2; color: var(--ink-2); max-width: 52ch; }
.pm { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .2s; }
.pm svg { width: 13px; height: 13px; transition: transform .25s; }
details[open] .pm { background: var(--ink); color: var(--bg); border-color: var(--ink); }
details[open] .pm .v { opacity: 0; }
.pm .v { transition: opacity .2s; }
details[open] .n { color: var(--ink); }
.steps .body { padding: 0 0 22px 44px; color: var(--ink-2); max-width: 52ch; }
.faq .body { padding: 0 50px 22px 0; color: var(--ink-2); }
@media (min-width: 900px) { .split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; } }

/* ---------- CTA ---------- */
.cta-card { position: relative; overflow: hidden; border-radius: 26px; padding: 44px 22px 30px; text-align: center; display: grid; justify-items: center; gap: 18px; background: #0b0b0b; color: #f4f4f1; border: 1px solid #2a2a28; }
.cta-card::before { content: ""; position: absolute; inset: -40% -20% auto; height: 120%; background: radial-gradient(50% 50% at 50% 50%, rgb(246 224 75 / .28), transparent 70%); pointer-events: none; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(1.08); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-card { background: #161615; border-color: #33332f; } :root:not([data-theme="light"]) .cta-card::before { background: radial-gradient(50% 50% at 50% 50%, rgb(246 224 75 / .38), transparent 70%); } }
:root[data-theme="dark"] .cta-card { background: #161615; border-color: #33332f; }
:root[data-theme="dark"] .cta-card::before { background: radial-gradient(50% 50% at 50% 50%, rgb(246 224 75 / .38), transparent 70%); }
.cta-card > * { position: relative; }
.cta-card .d2 { max-width: 14ch; }
.cta-card p { color: #b8b8b2; max-width: 36ch; }
.cta-card .label { color: #9a9a94; }
.reach { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.reach > div { display: inline-flex; align-items: stretch; border: 1px solid #2f2f2c; border-radius: 999px; background: rgb(255 255 255 / .06); }
.reach a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 16px; color: #f4f4f1; font-size: 14px; font-weight: 600; text-decoration: none; }
.reach a svg { width: 15px; height: 15px; }
.reach button { width: 44px; min-height: 44px; border: 0; background: none; color: #9a9a94; cursor: pointer; display: grid; place-items: center; border-radius: 0 999px 999px 0; }
.reach button svg { width: 15px; height: 15px; }
.reach button.done { color: var(--mark); }
.signoff { display: grid; justify-items: center; gap: 2px; margin-top: 8px; }
.sig { font: 400 34px/1.55 "Homemade Apple", cursive; color: var(--mark); transform: rotate(-4deg); }
.signoff small { font-size: 13px; color: #9a9a94; }

.stack { display: grid; gap: 14px; }
.rating { display: flex; align-items: center; gap: 10px; }
.in-writing { margin: 32px 0 12px; }
.bands { margin-top: 48px; }
.follow { display: grid; gap: 12px; align-content: start; }
mark.tbd { background: #ffd2d2; color: #7a0000; border-radius: 4px; padding: 0 4px; }

/* ---------- footer ---------- */
footer { padding-block: 48px calc(28px + env(safe-area-inset-bottom, 0px)); }
.wordmark { display: flex; align-items: center; gap: 0.28em; font: 800 clamp(30px, 10.95vw, 120px)/1 var(--brand); letter-spacing: -0.03em; margin: 0 0 28px; white-space: nowrap; }
.wordmark .logo { width: 0.92em; height: 0.92em; flex: none; }
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.foot nav { display: grid; gap: 0; align-content: start; }
.foot nav .label { margin-bottom: 4px; }
.foot nav a { text-decoration: none; font-weight: 500; padding-block: 10px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; }
.legal { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); }
.legal button { border: 1px solid var(--line-2); background: none; border-radius: 999px; padding: 0 14px; min-height: 44px; font-size: 12.5px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
@media (min-width: 760px) { .foot { grid-template-columns: repeat(3, 1fr); } }

@media (min-width: 900px) {
  :root { --gutter: 40px; --sec: 104px; --nav-h: 66px; }
  .float-cta { display: none; }
  .d1, .d2 { text-wrap: balance; }
  .hero { padding-block: 56px 96px; }
  .hero-grid { grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 48px; }
  .ctas { grid-template-columns: auto auto; justify-content: start; }
  .ctas .btn { width: auto; }
  .sec-head.wide { grid-template-columns: 1fr 1fr; align-items: end; }
  .cta-card { padding: 72px 40px 44px; }
  .q blockquote { font-size: 32px; max-width: 32ch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.case-link { justify-self: start; font-size: 14px; }

.nw { white-space: nowrap; }
@media (max-width: 359px) { .brand { font-size: 16px; gap: 7px; } .brand .logo { width: 28px; height: 28px; } .nav .btn-sm { padding: 0 10px; font-size: 13px; } .nav .wrap { gap: 6px; } }
