/* DizonDevelops: black base, ultraviolet and signal red. Unbounded for display, Hanken Grotesk for text. */

@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #000000;
  --panel: #0b0710;
  --line: rgba(255, 255, 255, 0.1);
  --bone: #f1eef6;
  --haze: #a39cb3;
  --violet: #8b3dff;
  --violet-solid: #7a2cf0;
  --violet-soft: #b58cff;
  --red: #ff2d55;
  --red-solid: #d91a45;
  --grad: linear-gradient(100deg, #8b3dff 0%, #ff2d55 100%);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }

:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Intro: computers fall for 3 seconds, then the page appears */
.splash { display: none; }
.splash-on .splash {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 300; overflow: hidden;
  background: radial-gradient(60vw 50vh at 50% 55%, rgba(139, 61, 255, 0.22), transparent 70%), #000;
  transition: opacity 0.5s ease;
  /* Safety net: the intro always hides itself, even if scripts fail */
  animation: splash-failsafe 0.01s 2.5s forwards;
}
.splash.is-leaving { opacity: 0; pointer-events: none; }
.splash-over .splash { display: none; }
.splash-lock, .splash-lock body { overflow: hidden; }
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
#splash-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(32vw 18vh at 50% 50%, rgba(0, 0, 0, 0.72), transparent 100%); }
.splash-brand {
  position: relative; z-index: 1; font-family: var(--display); font-weight: 500; letter-spacing: -0.03em;
  font-size: clamp(1.7rem, 6.4vw, 3.6rem); opacity: 0; transform: scale(0.94);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: brand-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
}
@keyframes brand-in { to { opacity: 1; transform: scale(1); } }
.splash-skip {
  position: absolute; z-index: 2; left: 50%; bottom: clamp(1.25rem, 5vh, 2.5rem); transform: translateX(-50%);
  min-height: 44px; padding: 0 1.25rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.5);
  color: var(--haze); font: 550 0.95rem/1 var(--text); cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.splash-skip:hover { color: var(--bone); border-color: var(--violet-soft); }

.fireworks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 250; pointer-events: none; }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; }
.nav { display: none; gap: 2rem; margin-left: auto; margin-right: 1rem; }
.nav a { text-decoration: none; color: var(--haze); font-weight: 500; font-size: 0.98rem; position: relative; padding: 0.3rem 0; transition: color 0.2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.nav a:hover { color: var(--bone); }
.nav a:hover::after { transform: scaleX(1); }
@media (min-width: 760px) { .nav { display: flex; } }

/* Mobile menu button and dropdown (shown below 760px, where the main nav is hidden) */
.nav-toggle { display: none; }
.mobile-nav { display: none; }
@media (max-width: 759px) {
  .header-row { gap: 0.6rem; }
  .header-row .btn-small { margin-left: auto; white-space: nowrap; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.45); cursor: pointer; transition: border-color 0.2s, background-color 0.2s;
  }
  .nav-toggle:hover, .nav-toggle.is-open { border-color: var(--violet-soft); background: rgba(139, 61, 255, 0.16); }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--bone); transition: transform 0.3s, opacity 0.2s; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-nav {
    display: block; position: absolute; top: calc(var(--header-h) - 6px); right: var(--gutter);
    width: min(280px, calc(100vw - 2 * var(--gutter))); padding: 0.5rem;
    background: rgba(11, 7, 16, 0.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(139, 61, 255, 0.5);
  }
  .mobile-nav a {
    display: flex; align-items: center; min-height: 52px; padding: 0 1rem; border-radius: 10px;
    color: var(--bone); font-weight: 600; font-size: 1.05rem; text-decoration: none; transition: background-color 0.2s, color 0.2s;
  }
  .mobile-nav a:hover, .mobile-nav a:focus-visible { background: rgba(139, 61, 255, 0.18); color: #fff; }
  .mobile-nav a[aria-current="page"] { color: var(--violet-soft); }
}
@media (max-width: 420px) {
  .brand { font-size: 0.9rem; gap: 0.45rem; }
  .brand-mark { width: 24px; height: 24px; }
  .header-row .btn-small { padding: 0 0.85rem; font-size: 0.9rem; min-height: 40px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.75rem; border: 0; border-radius: 999px;
  font: 650 1rem/1 var(--text); color: #fff; text-decoration: none; cursor: pointer;
  background: linear-gradient(100deg, var(--violet-solid), var(--red-solid), var(--violet-solid));
  background-size: 200% 100%; background-position: 0 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: background-position 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.25s, box-shadow 0.3s;
}
.btn:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 14px 44px -10px rgba(255, 45, 85, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.14) inset; }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn-small { min-height: 42px; padding: 0 1.2rem; font-size: 0.95rem; }
.btn-ghost { background: transparent; box-shadow: 0 0 0 1px var(--line) inset; color: var(--bone); }
.btn-ghost:hover { background: rgba(139, 61, 255, 0.14); box-shadow: 0 0 0 1px var(--violet-soft) inset; }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(55vw 55vh at 88% 22%, rgba(139, 61, 255, 0.38), transparent 70%),
    radial-gradient(40vw 40vh at 96% 82%, rgba(255, 45, 85, 0.28), transparent 70%),
    #000;
}
#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0) 85%), linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 28%);
}
.hero-inner { padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(2rem, 6vw, 4rem); }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 4.6vw, 3.9rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 20em; }
.hero h1 .line { display: block; text-wrap: balance; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero h1 .line > span { display: block; transform: translateY(110%); animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hero h1 .line:nth-child(1) > span { animation-delay: calc(var(--hero-wait, 0s) + 0.05s); }
.hero h1 .line:nth-child(2) > span { animation-delay: calc(var(--hero-wait, 0s) + 0.14s); }
.hero h1 .line:nth-child(3) > span { animation-delay: calc(var(--hero-wait, 0s) + 0.23s); }
.splash-on { --hero-wait: 1.8s; }
@keyframes rise { to { transform: translateY(0); } }
.lede { margin-top: 1.75rem; max-width: 34em; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: rgba(241, 238, 246, 0.82); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.live-row { margin-top: clamp(2.5rem, 7vw, 4.5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.live-label { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--haze); font-size: 0.95rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 45, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); } }
.live-row ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.35rem; }
.live-row a { text-decoration: none; color: rgba(241, 238, 246, 0.88); font-weight: 550; transition: color 0.2s; }
.live-row a:hover { color: var(--violet-soft); text-decoration: underline; text-underline-offset: 4px; }

/* Sections */
.section { padding-block: clamp(4.5rem, 11vw, 8.5rem); position: relative; }
.section-head { max-width: 40rem; }
.section-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 4.6vw, 3.2rem); line-height: 1.1; letter-spacing: -0.025em; }
.section-head p { margin-top: 1.1rem; color: var(--haze); font-size: 1.12rem; max-width: 32em; }

/* Work */
.work-stack { display: grid; gap: 1.5rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.work-item {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem;
  padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--panel);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden; isolation: isolate;
  box-shadow: 0 -28px 60px -24px #000; transition: border-color 0.3s;
}
.work-item:nth-child(1) { --i: 0; }
.work-item:nth-child(2) { --i: 1; }
.work-item:nth-child(3) { --i: 2; }
.work-item:nth-child(4) { --i: 3; }
.work-item:nth-child(5) { --i: 4; }
.work-item:nth-child(6) { --i: 5; }
.work-item:nth-child(7) { --i: 6; }
.work-item:nth-child(8) { --i: 7; }
.work-item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(540px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 61, 255, 0.22), rgba(255, 45, 85, 0.08) 42%, transparent 70%);
}
.work-item:hover { border-color: rgba(181, 140, 255, 0.4); }
.work-item:hover::before { opacity: 1; }
@media (min-width: 960px) {
  .work-stack { gap: 2.5rem; }
  .work-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem; align-items: center; position: sticky; top: calc(var(--header-h) + 16px + var(--i) * 18px); min-height: 480px; }
}
.work-copy h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; }
.work-what { margin-top: 0.6rem; font-size: 1.12rem; color: rgba(241, 238, 246, 0.92); }
.work-facts { display: grid; gap: 1rem; margin: 1.5rem 0 1.75rem; }
.work-facts dt { color: var(--violet-soft); font-weight: 650; font-size: 0.95rem; }
.work-facts dd { color: rgba(241, 238, 246, 0.82); line-height: 1.55; }
@media (min-width: 560px) { .work-facts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; } }
.work-link { display: inline-block; font-weight: 650; text-decoration: none; padding-bottom: 3px; background: var(--grad) left bottom / 100% 2px no-repeat; transition: background-size 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s; }
.work-link:hover { background-size: 100% 100%; color: #fff; padding-inline: 0.2rem; margin-inline: -0.2rem; }

.work-shot {
  display: block; text-decoration: none; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #05030a;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out, box-shadow 0.35s;
}
.work-item:hover .work-shot { box-shadow: 0 30px 80px -24px rgba(139, 61, 255, 0.5); }
.shot-bar { display: block; padding: 0.55rem 0.9rem; font-size: 0.82rem; color: var(--haze); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); }
.work-shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }

.beacon { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(139, 61, 255, 0.28), transparent 65%); }
.beacon i { position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(255, 45, 85, 0.7); opacity: 0; animation: ping 3.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.beacon i:nth-child(2) { animation-delay: 1.2s; border-color: rgba(181, 140, 255, 0.7); }
.beacon i:nth-child(3) { animation-delay: 2.4s; }
.beacon b { width: 16px; height: 16px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 28px 6px rgba(255, 45, 85, 0.55); }
@keyframes ping { 0% { transform: scale(0.15); opacity: 0.95; } 100% { transform: scale(2.6); opacity: 0; } }

/* Services */
.svc-list { margin-top: clamp(2.5rem, 6vw, 3.5rem); border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc-head {
  position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; gap: 0.25rem 1rem;
  padding: 1.5rem 0; background: none; border: 0; color: var(--bone); text-align: left; cursor: pointer; font: inherit;
}
.svc-name { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 3.6vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.15; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); width: fit-content; }
.svc-hint { grid-column: 1; color: var(--haze); font-size: 1rem; }
.svc-icon { grid-column: 2; grid-row: 1 / span 2; position: relative; width: 28px; height: 28px; justify-self: end; }
.svc-icon::before, .svc-icon::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px; background: var(--bone); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s; }
.svc-icon::after { transform: rotate(90deg); }
.svc-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.svc:hover .svc-head::after, .svc.is-open .svc-head::after { transform: scaleX(1); }
.svc:hover .svc-name, .svc.is-open .svc-name { transform: translateX(0.5rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.svc.is-open .svc-icon::after { transform: rotate(0deg); }
.svc.is-open .svc-icon::before, .svc.is-open .svc-icon::after { background: var(--red); }
.svc-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.45s; }
.svc.is-open .svc-body { grid-template-rows: 1fr; visibility: visible; }
.svc-body > div { overflow: hidden; min-height: 0; }
.svc-body p { max-width: 38rem; color: rgba(241, 238, 246, 0.82); font-size: 1.1rem; margin-bottom: 1rem; }
.svc-ex { display: inline-block; margin-bottom: 1.9rem; color: var(--violet-soft); font-weight: 650; text-underline-offset: 5px; transition: color 0.2s; }
.svc-ex:hover { color: var(--red); }
@media (min-width: 820px) {
  .svc-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 36px; padding: 1.9rem 0; }
  .svc-hint { grid-column: 2; }
  .svc-icon { grid-column: 3; grid-row: 1; }
}

/* Process */
.process-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) {
  .process-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 5rem; }
  .process-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.steps { display: grid; }
.step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1.25rem; padding-bottom: 2.75rem; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 22px; top: 52px; bottom: 4px; width: 1px; background: var(--line); }
.step:last-child::before { display: none; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); font-family: var(--display); font-size: 0.95rem; color: var(--haze); transition: background-color 0.5s, color 0.5s, box-shadow 0.5s, border-color 0.5s; }
.step.is-on .step-n { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 28px rgba(255, 45, 85, 0.45); }
.step h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; margin-top: 0.4rem; }
.step p { margin-top: 0.5rem; color: var(--haze); max-width: 30em; }

/* Contact */
.contact { background: radial-gradient(900px 500px at 85% 0%, rgba(139, 61, 255, 0.16), transparent 70%), radial-gradient(700px 400px at 0% 100%, rgba(255, 45, 85, 0.1), transparent 70%); }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 5rem; align-items: start; } }
.form-wrap { padding: clamp(1.25rem, 3vw, 2.25rem); background: rgba(11, 7, 16, 0.85); border: 1px solid var(--line); border-radius: 22px; }
#contact-form { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { #contact-form { grid-template-columns: 1fr 1fr; } .field-wide, .form-actions { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem; font: inherit; color: var(--bone);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23b58cff' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
/* The open dropdown list is drawn by the browser, so its colors are set here explicitly */
.field select { color-scheme: dark; }
.field select option { background-color: #12091c; color: #f1eef6; }
.field select option:disabled { color: #a39cb3; }
.field select option:checked { background-color: #3a1c70; color: #ffffff; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(181, 140, 255, 0.4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet-soft); box-shadow: 0 0 0 3px rgba(139, 61, 255, 0.35); background: rgba(255, 255, 255, 0.06); }
.field [aria-invalid="true"] { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { color: #ff7d95; font-weight: 550; min-height: 1.5em; }
.form-done { padding: 1rem 0.25rem; }
.form-done h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; width: fit-content; }
.form-done p { margin-top: 0.75rem; color: rgba(241, 238, 246, 0.85); font-size: 1.12rem; }
.form-done:focus { outline: none; }
.form-done .done-note { margin-top: 0.5rem; color: var(--haze); font-size: 1rem; }
.form-done .btn { margin-top: 1.5rem; }
.field ::placeholder, .field input::placeholder, .field textarea::placeholder { color: #8f88a0; opacity: 1; }

/* Team page */
.inline-link { color: var(--violet-soft); text-underline-offset: 4px; transition: color 0.2s; }
.inline-link:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--bone); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.team-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(3rem, 9vw, 6rem)) 0 clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(50vw 45vh at 85% 10%, rgba(139, 61, 255, 0.34), transparent 70%),
    radial-gradient(35vw 35vh at 98% 70%, rgba(255, 45, 85, 0.22), transparent 70%),
    #000;
}
.team-hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 7vw, 5rem); line-height: 1.05; letter-spacing: -0.035em; max-width: 10em; }
.team-hero .lede { margin-top: 1.5rem; }

.org { display: grid; justify-items: center; }
.org-link { position: relative; width: 2px; height: clamp(40px, 6vw, 64px); background: linear-gradient(180deg, rgba(139, 61, 255, 0.55), rgba(255, 45, 85, 0.55)); }
.org-link i { position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 3px rgba(255, 45, 85, 0.7); animation: signal 2.6s cubic-bezier(0.5, 0, 0.5, 1) infinite; }
@keyframes signal { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(clamp(40px, 6vw, 64px)); opacity: 0; } }

.person {
  position: relative; width: 100%; padding: clamp(1.25rem, 3vw, 2rem); background: var(--panel);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden; isolation: isolate; transition: border-color 0.3s, transform 0.3s;
}
.person::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 61, 255, 0.22), rgba(255, 45, 85, 0.08) 45%, transparent 70%); }
.person:hover { border-color: rgba(181, 140, 255, 0.4); }
.person:hover::before { opacity: 1; }
.person-main { display: grid; gap: 1.25rem; max-width: 760px; }
@media (min-width: 640px) { .person-main { grid-template-columns: 88px minmax(0, 1fr); gap: 1.75rem; align-items: start; } }
.person h2, .person h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.person-main h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.person p { color: rgba(241, 238, 246, 0.82); margin-top: 0.6rem; }
.role { display: inline-block; margin-top: 0.7rem; padding: 0.2rem 0.75rem; border-radius: 999px; border: 1px solid rgba(181, 140, 255, 0.4); color: var(--violet-soft); font-size: 0.9rem; font-weight: 600; }
.person-lead { border-color: rgba(255, 45, 85, 0.35); box-shadow: 0 0 60px -30px rgba(255, 45, 85, 0.6); }
.person-lead .role { border-color: rgba(255, 45, 85, 0.5); color: #ff7d95; }

.avatar { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; font-family: var(--display); font-weight: 500; font-size: 1.4rem; color: #fff; background: linear-gradient(#0b0710, #0b0710) padding-box, var(--grad) border-box; border: 2px solid transparent; }
.avatar svg { width: 30px; height: 30px; stroke: var(--violet-soft); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.spec-grid { display: grid; gap: 1rem; width: 100%; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.spec { padding: 1.5rem; }
.spec .avatar { width: 56px; height: 56px; }
.spec h3 { margin-top: 1.1rem; font-size: 1.15rem; }
.spec .role { margin-top: 0.6rem; font-size: 0.85rem; }
.spec p { font-size: 1rem; }
.team-note { margin-top: clamp(1.5rem, 4vw, 2.5rem); max-width: 40rem; color: var(--haze); text-align: center; }

.flow { display: grid; gap: 1.25rem; margin-top: clamp(2rem, 5vw, 3rem); }
@media (min-width: 820px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.flow li { padding-top: 1rem; border-top: 2px solid; border-image: var(--grad) 1; }
.flow h3 { font-size: 1.15rem; font-weight: 700; }
.flow p { margin-top: 0.4rem; color: var(--haze); }

.team-cta { text-align: left; }
.team-cta .btn { margin-top: 1.75rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; }
.footer-row { display: grid; gap: 1.25rem; }
.footer-brand { font-family: var(--display); font-weight: 500; font-size: 1.15rem; }
.footer-copy, .footer-fine { color: var(--haze); max-width: 34em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a { text-decoration: none; color: var(--bone); font-weight: 550; }
.footer-nav a:hover { color: var(--violet-soft); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 820px) { .footer-row { grid-template-columns: 1fr auto; align-items: end; } .footer-fine { grid-column: 1 / -1; } }

/* Small screens: the field sits behind a stronger scrim so text stays readable */
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.7) 45%, rgba(0, 0, 0, 0.35) 100%); }
  .hero { min-height: 92svh; }
}

/* Softer next steps and the request-type buttons */
.hero-soft { margin-top: 1rem; color: var(--haze); font-size: 1rem; }
.hero-soft a { color: var(--bone); font-weight: 600; text-underline-offset: 4px; transition: color 0.2s; }
.hero-soft a:hover { color: var(--violet-soft); }

.intent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 0.9rem; }
@media (min-width: 640px) { .intent { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.intent button {
  min-height: 48px; padding: 0 0.6rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  color: var(--haze); font: 600 0.95rem/1.15 var(--text); cursor: pointer; transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.intent button:hover { border-color: var(--violet-soft); color: var(--bone); }
.intent button.is-on { color: #fff; border-color: transparent; background: linear-gradient(100deg, rgba(122, 44, 240, 0.9), rgba(217, 26, 69, 0.85)); }
.intent-help { margin-bottom: 1.1rem; color: rgba(241, 238, 246, 0.8); font-size: 1rem; }
.form-consent { margin-top: 0.1rem; color: var(--haze); font-size: 0.9rem; }
.form-consent a { color: var(--violet-soft); text-underline-offset: 3px; }
.footer-legal { margin-top: -0.4rem; }

/* Landing and text pages have longer headlines than the team page, so their title is smaller */
.page-head h1 { max-width: 17em; font-size: clamp(1.9rem, 5vw, 3.6rem); line-height: 1.08; }
.page-head .lede { max-width: 38em; }

/* Phones: the two short dropdowns share a row to keep the form compact */
@media (max-width: 639px) {
  #contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #contact-form > * { grid-column: 1 / -1; }
  #contact-form > .field-half { grid-column: auto; }
}
.svc-ex + .svc-ex { margin-left: 1.25rem; }
.industries { margin-top: 1.75rem; color: var(--haze); }
.industries a { color: var(--violet-soft); text-underline-offset: 4px; transition: color 0.2s; }
.industries a:hover { color: var(--red); }

/* Pricing packages */
.plans { display: grid; gap: 1.5rem; margin-top: clamp(2rem, 5vw, 3rem); }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.plan { display: flex; flex-direction: column; padding-top: 1.1rem; border-top: 2px solid; border-image: var(--grad) 1; }
.plan h3 { font-family: var(--display); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.02em; }
.plan-price { margin-top: 0.9rem; font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -0.03em; }
.plan-month { margin-top: 0.25rem; color: var(--haze); }
.plan-list { display: grid; gap: 0.55rem; margin: 1.1rem 0 1.5rem; }
.plan-list li { position: relative; padding-left: 1.4rem; color: rgba(241, 238, 246, 0.86); }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.65rem; height: 2px; background: var(--grad); }
.plan .btn { align-self: flex-start; margin-top: auto; }
.plans-note { max-width: 46rem; margin-top: 2rem; color: var(--haze); font-size: 1rem; }

/* FAQ */
.faq-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; }
  .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; list-style: none; cursor: pointer; font-size: 1.1rem; font-weight: 650; transition: color 0.2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--violet-soft); }
.faq-list summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-right: 0.25rem; border-right: 2px solid var(--violet-soft); border-bottom: 2px solid var(--violet-soft); transform: rotate(45deg); transition: transform 0.3s, border-color 0.3s; }
.faq-list details[open] summary::after { transform: rotate(-135deg); border-color: var(--red); }
.faq-list details p { max-width: 40rem; padding-bottom: 1.25rem; color: rgba(241, 238, 246, 0.82); }

/* Text pages (privacy, terms) and landing pages */
.prose { max-width: 46rem; }
.prose h2 { margin: 2.2rem 0 0.7rem; font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 2.6vw, 1.55rem); letter-spacing: -0.02em; }
.prose p, .prose li { color: rgba(241, 238, 246, 0.84); }
.prose p { margin-top: 0.7rem; }
.prose ul { display: grid; gap: 0.4rem; margin: 0.7rem 0; padding-left: 1.3rem; list-style: disc; }
.prose a { color: var(--violet-soft); text-underline-offset: 3px; }
.crumbs { margin-bottom: 1rem; color: var(--haze); font-size: 0.95rem; }
.crumbs a { text-underline-offset: 3px; }
.crumbs a:hover { color: var(--violet-soft); }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
.two-col { display: grid; gap: 2rem 4rem; }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.page-price { margin-top: 0.4rem; font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.03em; }
.section-title { margin-bottom: 1rem; font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2.6vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.15; }
.plan-list + .section-title { margin-top: 2.2rem; }
.two-col .proof-box { margin-top: 1.5rem; }
.proof-box { padding: 1.25rem; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.proof-box h3 { font-size: 1.15rem; font-weight: 700; }
.proof-box p { margin-top: 0.5rem; color: rgba(241, 238, 246, 0.82); }
.proof-box a { color: var(--violet-soft); font-weight: 650; text-underline-offset: 4px; }
.related { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1rem; }
.related a { color: var(--violet-soft); text-underline-offset: 4px; }

/* Free guide */
.guide-form { display: grid; gap: 0.9rem; max-width: 30rem; margin-top: 1.5rem; }
.guide-form .btn { justify-self: start; }

/* AI statement band under the hero */
.ai-band { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 7vw, 5rem) 0; }
.ai-band-grid { display: grid; gap: 1.1rem 3rem; }
@media (min-width: 960px) { .ai-band-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }
.ai-band h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 4.2vw, 2.7rem); line-height: 1.1; letter-spacing: -0.025em; }
.ai-band p { color: rgba(241, 238, 246, 0.84); font-size: 1.12rem; max-width: 34em; }
.ai-band .ai-proof { margin-top: 1rem; color: var(--haze); font-size: 1rem; }
.ai-band .ai-proof a { color: var(--violet-soft); text-underline-offset: 4px; transition: color 0.2s; }
.ai-band .ai-proof a:hover { color: var(--red); }

/* ---------- Phones and small tablets: collections swipe sideways, so the page scrolls far less ---------- */
.work-meter, .more-toggle { display: none; }

@media (max-width: 959px) {
  .section { padding-block: clamp(2.5rem, 9vw, 4rem); }
  .section-head h2 { font-size: clamp(1.55rem, 6.4vw, 2.2rem); }
  .section-head p { margin-top: 0.75rem; font-size: 1.02rem; }

  /* Hero: shorter, with the app names on one swipeable line */
  .hero { min-height: 0; }
  .hero-inner { padding-top: calc(var(--header-h) + 5rem); padding-bottom: 1.75rem; }
  .lede { margin-top: 1.1rem; }
  .hero-cta { margin-top: 1.4rem; }
  .live-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; margin-top: 1.75rem; padding-top: 0.9rem; }
  .live-row ul {
    flex-wrap: nowrap; overflow-x: auto; gap: 0 1.2rem; scrollbar-width: none;
    width: calc(100% + var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .live-row ul::-webkit-scrollbar { display: none; }
  .live-row li { flex: none; }
  .live-row a { display: inline-block; padding: 0.4rem 0; white-space: nowrap; }

  /* Summary: open columns you swipe through */
  .results .flow {
    display: flex; gap: 1.5rem; overflow-x: auto; margin: 1.5rem calc(-1 * var(--gutter)) 0;
    padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scroll-snap-type: x mandatory;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .results .flow::-webkit-scrollbar { display: none; }
  .results .flow li { flex: 0 0 78%; max-width: 20rem; scroll-snap-align: start; }

  /* App deck: one card per screen, swipe sideways */
  .work-stack {
    display: flex; align-items: flex-start; gap: 1rem; overflow-x: auto; overflow-y: hidden;
    margin: 1.5rem calc(-1 * var(--gutter)) 0; padding: 0.25rem var(--gutter) 0.5rem;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .work-stack::-webkit-scrollbar { display: none; }
  .work-item { flex: 0 0 min(84vw, 26rem); scroll-snap-align: start; display: flex; flex-direction: column; gap: 1rem; padding: 1rem; }
  .work-item .work-shot { order: -1; }
  .work-shot img, .beacon { aspect-ratio: 16 / 10; }
  .work-copy { display: flex; flex: 1; flex-direction: column; }
  .work-copy h3 { font-size: 1.3rem; }
  .work-what { margin-top: 0.35rem; font-size: 1rem; }
  .work-facts { gap: 0.75rem; margin: 0.9rem 0 0.75rem; }
  .work-facts dd { font-size: 0.98rem; }
  .more-toggle {
    display: inline-flex; align-items: center; align-self: flex-start; min-height: 40px; margin-bottom: 0.9rem; padding: 0 1rem;
    border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--bone);
    font: 600 0.9rem/1 var(--text); cursor: pointer; transition: border-color 0.2s, color 0.2s;
  }
  .more-toggle:hover, .more-toggle[aria-expanded="true"] { border-color: var(--violet-soft); color: var(--violet-soft); }
  .work-link { align-self: flex-start; margin-top: auto; }
  /* Only the Outcome line shows until "Show details" is tapped (kept fully visible if scripts fail) */
  .js .work-item:not(.is-expanded) .work-facts > div:not(:last-child) { display: none; }

  .work-meter { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.9rem; }
  .work-count { min-width: 3.7rem; font-family: var(--display); font-size: 0.95rem; }
  .work-track { position: relative; flex: 1; height: 3px; border-radius: 3px; overflow: hidden; background: var(--line); }
  .work-track i { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(0.125); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .work-hint { color: var(--haze); font-size: 0.9rem; }
}

@media (max-width: 759px) {
  .svc-head { padding: 1.05rem 0; }
  .process-grid, .contact-grid { gap: 1.75rem; }
  .step { padding-bottom: 1.6rem; }
  .step h3 { font-size: 1.15rem; }
  .form-wrap { padding: 1.1rem; }
  #contact-form { gap: 0.85rem; }
  .field textarea { min-height: 110px; }
  .site-footer { padding: 2rem 0 2.25rem; }
  .footer-row { gap: 0.9rem; }

  /* Team page: tighter cards, specialists as compact rows */
  .team-hero { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 0.5rem; }
  .person { padding: 1.1rem; }
  .person-main { grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; }
  .person-main .avatar { width: 56px; height: 56px; font-size: 1.1rem; }
  .spec-grid { gap: 0.6rem; }
  .spec { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 0.9rem; align-items: start; padding: 0.9rem 1rem; }
  .spec .avatar { grid-row: 1 / span 3; width: 44px; height: 44px; }
  .spec .avatar svg { width: 22px; height: 22px; }
  .spec > :not(.avatar) { grid-column: 2; }
  .spec h3 { margin-top: 0; font-size: 1.05rem; }
  .spec .role { margin-top: 0.35rem; }
  .spec p { margin-top: 0.4rem; font-size: 0.95rem; }
}

/* Pricing swipes sideways on phones, like the other collections */
@media (max-width: 959px) {
  .plans { display: flex; gap: 1.5rem; margin: 1.5rem calc(-1 * var(--gutter)) 0; padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .plans::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 82%; max-width: 21rem; scroll-snap-align: start; }
  .faq-list summary { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .line > span { transform: none; }
  .work-item { position: relative !important; top: auto !important; }
  .work-shot { transform: none !important; }
}

/* AI note inside Services */
.svc-ai { margin-top: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: clamp(1.4rem, 4vw, 2rem); padding: clamp(1.2rem, 3vw, 1.8rem); border: 1px solid var(--line); border-left: 3px solid var(--violet-soft); border-radius: 12px; }
.svc-ai h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 3.2vw, 1.5rem); line-height: 1.2; letter-spacing: -0.02em; }
.svc-ai p { margin-top: 0.6rem; max-width: 40em; color: rgba(241, 238, 246, 0.84); }
.svc-ai .svc-ai-links { color: var(--haze); font-size: 0.98rem; }
.svc-ai a { color: var(--violet-soft); text-underline-offset: 4px; transition: color 0.2s; }
.svc-ai a:hover { color: var(--red); }

.guide-strip { padding-block: clamp(1.4rem, 4vw, 2.2rem); border-top: 1px solid var(--line); }
.guide-strip p { color: var(--haze); max-width: 44rem; }
.guide-strip a { color: var(--violet-soft); text-underline-offset: 4px; transition: color 0.2s; }
.guide-strip a:hover { color: var(--red); }

/* ---------- Visual sections: result screenshots, agent flow diagram, team tree, site gauges ---------- */

/* Results: each card carries the real app it talks about */
.flow-shot { margin: 0 0 1rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.flow-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.flow li:hover .flow-shot img { transform: scale(1.05); }
.js .flow li[data-observe] .flow-shot { opacity: 0; transform: translateY(10px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .flow li.is-in .flow-shot { opacity: 1; transform: none; }
.flow li:nth-child(2) .flow-shot { transition-delay: 0.1s; }
.flow li:nth-child(3) .flow-shot { transition-delay: 0.2s; }
.flow li:nth-child(4) .flow-shot { transition-delay: 0.3s; }

/* Agent flow diagram */
.agent-flow { background: radial-gradient(60vw 30vh at 50% 58%, rgba(139, 61, 255, 0.12), transparent 100%); }
.diagram { display: block; width: 100%; height: auto; margin-top: clamp(2rem, 5vw, 3.5rem); overflow: visible; }
.diagram-v { display: none; max-width: 26rem; margin-inline: auto; }
@media (max-width: 719px) {
  .diagram-h { display: none; }
  .diagram-v { display: block; }
}
.diagram text { font-family: var(--text); }
.diagram .d-title { font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: -0.02em; fill: var(--bone); }
.diagram .d-sub { font-size: 15px; fill: var(--haze); }
.diagram-h .d-title { font-size: 13.5px; }
.diagram rect { fill: var(--panel); stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.5; }
.diagram .d-accent rect { stroke: var(--violet-soft); }
.diagram .d-hot rect { stroke: var(--red); }
.diagram .d-link line, .diagram .d-link path { fill: none; stroke: var(--violet-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.diagram .d-link line { stroke-dasharray: 4 6; }
.is-in .diagram .d-link line { animation: d-flow 0.9s linear infinite; }
@keyframes d-flow { to { stroke-dashoffset: -10; } }
.diagram .d-node, .diagram .d-link { transition: opacity 0.6s ease; }
.js .agent-flow:not(.is-in) .d-node, .js .agent-flow:not(.is-in) .d-link { opacity: 0.12; }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.35s; } .d3 { transition-delay: 0.6s; } .d4 { transition-delay: 0.85s; }
.d5 { transition-delay: 1.1s; } .d6 { transition-delay: 1.35s; } .d7 { transition-delay: 1.6s; }

/* Team tree */
.team-tree { margin-top: clamp(3.5rem, 8vw, 6rem); padding-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--line); }
.team-tree h3 { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 700; line-height: 1.25; max-width: 30em; }
.tt-top { display: flex; align-items: center; margin-top: 1.75rem; }
.tt-node { display: inline-flex; flex-direction: column; padding: 0.7rem 1.15rem; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font-family: var(--display); font-weight: 500; font-size: 1rem; line-height: 1.25; }
.tt-node small { font-family: var(--text); font-size: 0.82rem; font-weight: 500; color: var(--haze); margin-top: 0.15rem; }
.tt-human { border-color: var(--violet-soft); }
.tt-lead { border-color: var(--red); box-shadow: 0 0 30px rgba(255, 45, 85, 0.18); }
.tt-line { display: block; flex: 0 0 clamp(2rem, 6vw, 4rem); height: 2px; background: var(--grad); }
.tt-lead { position: relative; }
.tt-lead::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 1.75rem; background: linear-gradient(var(--red), rgba(255, 45, 85, 0)); }
.tt-top { margin-bottom: 1.75rem; }
.tt-groups { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .tt-groups { grid-template-columns: 2fr 5fr 4fr; } }
.tt-group { padding: 1.1rem 1.15rem 1.2rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(11, 7, 16, 0.6); }
.tt-group h4 { margin: 0 0 0.7rem; font-size: 1rem; font-weight: 700; color: var(--violet-soft); }
.tt-group ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tt-group li { padding: 0.3rem 0.75rem; border-radius: 999px; border: 1px solid var(--line); font-size: 0.92rem; color: rgba(241, 238, 246, 0.9); }
.tt-more { margin-top: 1.25rem; }
.js .team-tree:not(.is-in) .tt-node, .js .team-tree:not(.is-in) .tt-group, .js .team-tree:not(.is-in) .tt-line { opacity: 0; transform: translateY(8px); }
.tt-node, .tt-group, .tt-line { transition: opacity 0.6s ease, transform 0.6s ease; }
.tt-lead { transition-delay: 0.35s; } .tt-line { transition-delay: 0.2s; }
.tt-group:nth-child(1) { transition-delay: 0.75s; } .tt-group:nth-child(2) { transition-delay: 0.9s; } .tt-group:nth-child(3) { transition-delay: 1.05s; }

/* Site health gauges */
.health { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; margin-top: clamp(1.75rem, 4vw, 2.5rem); }
@media (min-width: 720px) { .gauges { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.gauge { display: grid; justify-items: center; gap: 0.6rem; }
.gauge svg { width: min(100%, 8.5rem); height: auto; }
.g-track, .g-fg { fill: none; stroke-width: 8; }
.g-track { stroke: rgba(255, 255, 255, 0.09); }
.g-fg { stroke: var(--violet-soft); stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .health:not(.is-in) .g-fg { stroke-dashoffset: 264; }
.gauge svg, .g-n { grid-row: 1; grid-column: 1; justify-self: center; align-self: center; }
.g-n { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1; }
.g-label { grid-row: 2; }
.g-label { color: var(--haze); font-weight: 550; font-size: 0.98rem; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .flow-shot, .flow-shot img, .diagram .d-node, .diagram .d-link, .tt-node, .tt-group, .tt-line, .g-fg { transition: none !important; }
  .is-in .diagram .d-link line { animation: none; }
}

/* Illustrated avatars for Justin, Chef and the specialist agents */
.avatar { overflow: hidden; }
.avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@media (min-width: 640px) { .person-main .avatar { width: 88px; height: 88px; } }
.tt-node { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 0.7rem; }
.tt-node img { width: 40px; height: 40px; border-radius: 50%; grid-row: 1 / span 2; }
.tt-node b { font-weight: 500; }
.tt-node { display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; justify-items: start; }
.tt-node small { grid-column: 2; margin-top: 0; }
.tt-node b { grid-column: 2; }
.tt-group li { display: inline-flex; align-items: center; gap: 0.5rem; padding-left: 0.3rem; }
.tt-group li img { width: 24px; height: 24px; border-radius: 50%; }

/* Icons and small graphics that replace sentences */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { flex: none; width: 1.3em; height: 1.3em; fill: none; stroke: var(--violet-soft); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.step h3 { display: flex; align-items: flex-start; gap: 0.65rem; }
.step h3 .ico { width: 1.5rem; height: 1.5rem; margin-top: 0.12rem; stroke: var(--red); }

.svc-name { display: inline-flex; align-items: center; gap: 0.55em; }
.svc-name .ico { width: 0.75em; height: 0.75em; stroke-width: 1.6; }

.chips { display: grid; gap: 0.5rem; }
.chips li { display: flex; align-items: flex-start; gap: 0.6rem; line-height: 1.4; }
.chips .ico { width: 1.25rem; height: 1.25rem; margin-top: 0.08rem; }

.faq-viz { margin: 1.1rem 0 0.2rem; padding: 1.1rem 1.15rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(11, 7, 16, 0.6); }
.tl-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.tl-name { font-size: 0.92rem; color: var(--haze); }
.tl-track { position: relative; display: block; height: 1.9rem; border-radius: 999px; background: rgba(255, 255, 255, 0.05); }
.tl-bar { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--grad); color: #fff; font-style: normal; font-size: 0.82rem; font-weight: 650; white-space: nowrap; transform-origin: left; }
.tl-site { left: 12.5%; width: 25%; }
.tl-app { left: 37.5%; width: 62.5%; }
.tl-agent { left: 25%; width: 50%; }
details[open] .tl-bar { animation: bar-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
details[open] .tl-row:nth-child(2) .tl-bar { animation-delay: 0.12s; }
details[open] .tl-row:nth-child(3) .tl-bar { animation-delay: 0.24s; }
@keyframes bar-in { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.tl-axis { display: grid; grid-template-columns: 7.5rem repeat(4, 1fr) auto; gap: 0; margin-top: 0.4rem; font-size: 0.78rem; color: var(--haze); }
.tl-axis span:first-child { grid-column: 2; }

.quote-flow { display: grid; gap: 0.9rem; align-items: center; }
@media (min-width: 720px) { .quote-flow { grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr); } }
.qf-factors { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.qf-factors li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.8rem 0.35rem 0.6rem; border-radius: 999px; border: 1px solid var(--line); font-size: 0.92rem; }
.qf-arrow .ico { width: 1.6rem; height: 1.6rem; stroke: var(--red); }
@media (max-width: 719px) { .qf-arrow .ico { transform: rotate(90deg); } }
.qf-result { display: grid; gap: 0.5rem; }
.qf-quote, .qf-demo { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.qf-quote { padding: 0.55rem 0.9rem; border-radius: 12px; border: 1px solid var(--red); font-weight: 650; }
.qf-demo { color: var(--haze); padding-left: 0.2rem; }
@media (max-width: 559px) {
  .tl-row { grid-template-columns: 5.6rem minmax(0, 1fr); gap: 0.5rem; }
  .tl-axis { grid-template-columns: 5.6rem repeat(4, 1fr) auto; }
  .tl-bar { font-size: 0.72rem; }
}
@media (prefers-reduced-motion: reduce) { details[open] .tl-bar { animation: none; } }

/* Justin builds too: his own line runs straight into the Build group */
.tt-node { position: relative; }
.tt-build { border-color: rgba(181, 140, 255, 0.45); }
.tt-group li.tt-justin { border-color: var(--violet-soft); background: rgba(139, 61, 255, 0.14); font-weight: 600; }
@media (min-width: 720px) {
  .tt-top { display: grid; grid-template-columns: 2fr 5fr 4fr; gap: 1.25rem; align-items: center; }
  .tt-line { display: none; }
  .tt-lead { grid-column: 1; grid-row: 1; }
  .tt-human { grid-column: 2; grid-row: 1; width: fit-content; }
  .tt-human::before { content: ""; position: absolute; right: 100%; top: 50%; width: 1.25rem; height: 2px; margin-top: -1px; background: var(--grad); }
  .tt-human::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 1.75rem; background: linear-gradient(var(--violet-soft), rgba(181, 140, 255, 0)); }
}

/* Ways to work with us, and case studies */
.ways { padding-block: clamp(3rem, 7vw, 5rem); }
.ways-grid { display: grid; gap: 1rem; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 820px) { .ways-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.way { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.4rem; border-radius: 16px; border: 1px solid var(--line); background: rgba(11, 7, 16, 0.6); }
.way h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; font-weight: 700; }
.way h3 .ico { width: 1.5rem; height: 1.5rem; stroke: var(--red); }
.way p { color: var(--haze); }
.way .inline-link { margin-top: auto; padding-top: 0.5rem; width: fit-content; font-weight: 600; }

.case-list { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.case { display: grid; gap: 1.5rem; }
@media (min-width: 860px) {
  .case { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
  .case:nth-child(even) .case-shot { order: 2; }
}
.case-shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.case h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.15; }
.case-facts { display: grid; gap: 1rem; margin: 1.25rem 0 1.5rem; }
.case-facts dt { color: var(--violet-soft); font-weight: 650; font-size: 0.95rem; }
.case-facts dd { margin: 0; color: rgba(241, 238, 246, 0.85); }
.hero-studio { margin-top: 0.9rem; max-width: 40em; color: var(--haze); font-size: 0.98rem; line-height: 1.55; }

/* Outcomes: what changes, quote, before and after, calculator */
.work-tag { display: inline-block; margin-bottom: 0.7rem; padding: 0.15rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--haze); font-size: 0.82rem; font-weight: 600; }
.work-facts .change { margin: 0 0 0.6rem; color: var(--bone); font-weight: 550; }
.work-facts .chips { gap: 0.4rem; }
.work-facts .chips li { color: var(--haze); font-size: 0.95rem; }

.quote { margin: clamp(2rem, 5vw, 3rem) 0 0; padding: 1.4rem 1.5rem; border-radius: 16px; border: 1px solid var(--line); border-left: 3px solid var(--violet-soft); background: rgba(11, 7, 16, 0.6); max-width: 46rem; }
.quote blockquote { margin: 0; }
.quote p { font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.5; color: var(--bone); }
.quote figcaption { margin-top: 0.8rem; color: var(--haze); font-weight: 600; font-size: 0.95rem; }

.measure-note { margin-top: 1.1rem; padding: 0.9rem 1rem; border-radius: 12px; border: 1px solid rgba(255, 45, 85, 0.4); background: rgba(255, 45, 85, 0.06); font-size: 1rem; color: rgba(241, 238, 246, 0.9); }
.measure-note strong { color: var(--bone); }

.ba { display: grid; gap: 0.5rem; margin: 0 0 1.5rem; }
.ba-row { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; }
.ba-label { color: var(--haze); font-size: 0.88rem; font-weight: 600; }
.ba-track { display: block; height: 1.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.ba-bar { display: flex; align-items: center; height: 100%; padding-inline: 0.8rem; border-radius: 999px; font-style: normal; font-size: 0.8rem; font-weight: 650; white-space: nowrap; transform-origin: left; animation: bar-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.ba-before { width: 100%; background: rgba(255, 255, 255, 0.18); color: var(--bone); }
.ba-after { background: var(--grad); animation-delay: 0.3s; }
.ba-after-ss { width: 5%; }
.ba-after-cct { width: 3%; }
.ba-val { font-size: 0.88rem; font-weight: 650; color: var(--bone); }
@media (max-width: 559px) { .ba-row { grid-template-columns: 3rem minmax(0, 1fr); } .ba-val { grid-column: 2; } }

.calc-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.calc-box { padding: 1.5rem; border-radius: 18px; border: 1px solid var(--line); background: rgba(11, 7, 16, 0.7); }
.calc-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.calc-out { margin: 1.4rem 0 1.4rem; color: var(--haze); }
.calc-big { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
@media (prefers-reduced-motion: reduce) { .ba-bar { animation: none; } }
.calc-hint { margin: -0.6rem 0 1.2rem; color: var(--haze); font-size: 0.9rem; }
