:root {
  --ink: #111111;
  --muted: #66615b;
  --paper: #f7f2ea;
  --paper-strong: #fffaf1;
  --line: rgba(17, 17, 17, 0.18);
  --red: #ff4d35;
  --blue: #2c7be5;
  --green: #0c7f55;
  --acid: #d6ff45;
  --gold: #f7c948;
  --cyan: #8fd7ff;
  --night: #111111;
  --glass: rgba(255, 250, 241, 0.12);
  --shadow: 0 20px 60px rgba(17, 17, 17, 0.14);
  --panel-shadow: 0 22px 50px rgba(17, 17, 17, 0.12);
  --hard-shadow: 10px 10px 0 rgba(17, 17, 17, 0.95);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

body.command-open {
  overflow: hidden;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 4px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--acid), var(--red), var(--blue));
  transform-origin: left center;
}

main > section,
.hero {
  scroll-margin-top: 82px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 242, 234, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 250, 241, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
  gap: 0;
  font-size: 1rem;
  font-weight: 800;
}

.brand-logo-shell {
  display: block;
  width: 150px;
  height: 54px;
  overflow: hidden;
  background: transparent;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  user-select: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-strong);
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--acid);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.site-nav a,
.filter-button {
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.filter-button:hover,
.filter-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--ink);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.icon-button:hover {
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(-2px);
}

.icon-button svg,
.button svg,
.text-link svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.menu-toggle {
  display: none;
}

.command-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.command-launcher svg {
  width: 24px;
  height: 24px;
}

.whatsapp-cloud {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 62;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 10px 18px 10px 10px;
  border: 1px solid rgba(17, 17, 17, 0.72);
  border-radius: 999px 999px 999px 24px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(135deg, #d6ff45, #59f08c 56%, #31d06e);
  color: #06100c;
  box-shadow: 7px 7px 0 rgba(17, 17, 17, 0.88), 0 18px 42px rgba(11, 130, 62, 0.26);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-cloud::before,
.whatsapp-cloud::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(17, 17, 17, 0.72);
  border-radius: 999px;
  background: #d6ff45;
}

.whatsapp-cloud::before {
  right: 22px;
  bottom: -9px;
  width: 18px;
  height: 18px;
}

.whatsapp-cloud::after {
  right: 9px;
  bottom: -18px;
  width: 10px;
  height: 10px;
}

.whatsapp-cloud:hover {
  transform: translateY(-3px);
  box-shadow: 9px 9px 0 rgba(17, 17, 17, 0.88), 0 22px 48px rgba(11, 130, 62, 0.32);
}

.whatsapp-cloud-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.34);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.78);
}

.whatsapp-cloud-icon svg {
  width: 22px;
  height: 22px;
}

.whatsapp-cloud strong,
.whatsapp-cloud small {
  display: block;
}

.whatsapp-cloud strong {
  font-size: 0.94rem;
  line-height: 1;
}

.whatsapp-cloud small {
  margin-top: 3px;
  color: rgba(6, 16, 12, 0.76);
  font-size: 0.76rem;
  font-weight: 900;
}

.command-palette {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.58);
  backdrop-filter: blur(16px);
}

.command-palette[hidden] {
  display: none;
}

.command-card {
  width: min(720px, 100%);
  border: 1px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 215, 255, 0.28), transparent 42%),
    var(--paper-strong);
  box-shadow: 12px 12px 0 var(--ink);
}

.command-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--ink);
}

.command-head h2 {
  font-size: 2rem;
}

.command-head .eyebrow {
  color: var(--red);
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
}

.command-grid button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 0 22px;
  border: 0;
  background: var(--paper-strong);
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.command-grid button:hover {
  background: var(--acid);
}

.command-grid svg {
  width: 22px;
  height: 22px;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  padding: 92px 38px 36px;
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.86), rgba(17, 17, 17, 0.34) 52%, rgba(17, 17, 17, 0.04)),
    url("assets/hero-agency-studio.png") center / cover no-repeat;
  color: var(--paper-strong);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 72%, rgba(214, 255, 69, 0.1) 72% 72.25%, transparent 72.25%),
    repeating-linear-gradient(0deg, rgba(255, 250, 241, 0.12) 0 1px, transparent 1px 112px);
  mix-blend-mode: screen;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 42%;
  height: 28%;
  content: "";
  border-top: 1px solid rgba(255, 250, 241, 0.32);
  background:
    linear-gradient(135deg, rgba(214, 255, 69, 0.9), rgba(44, 123, 229, 0.35)),
    rgba(255, 250, 241, 0.12);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.85;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
}

.hero-content::before {
  position: absolute;
  right: 10%;
  bottom: -18px;
  left: -24px;
  z-index: 0;
  height: 236px;
  content: "";
  border: 1px solid rgba(255, 250, 241, 0.18);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.84), rgba(17, 17, 17, 0.56) 72%, transparent),
    rgba(17, 17, 17, 0.5);
  backdrop-filter: blur(10px);
}

.hero-content > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--acid);
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 650px;
  min-height: 40px;
  margin: -8px 0 18px;
  padding: 0 14px;
  border: 1px solid rgba(214, 255, 69, 0.38);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.42);
  color: rgba(255, 250, 241, 0.86);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.35;
  backdrop-filter: blur(12px);
}

.location-pill svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--acid);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: 5.6rem;
  line-height: 0.95;
  font-weight: 900;
}

h2 {
  margin-bottom: 0;
  font-size: 3.2rem;
  line-height: 1;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.08;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 28px;
  color: rgba(255, 250, 241, 0.88);
  font-size: 1.25rem;
  line-height: 1.45;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 250, 241, 0.34);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.32);
  color: rgba(255, 250, 241, 0.88);
  font-size: 0.84rem;
  font-weight: 900;
}

.hero-badges svg {
  width: 16px;
  height: 16px;
  color: var(--acid);
}

.hero-actions,
.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  position: relative;
  z-index: 2;
  width: fit-content;
  padding: 8px;
  border: 1px solid rgba(255, 250, 241, 0.24);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(12px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--red);
  color: var(--ink);
}

.button-ghost {
  background: var(--paper-strong);
  color: var(--ink);
}

.hero .button-primary {
  border-color: var(--acid);
  background: var(--acid);
  box-shadow: 0 10px 30px rgba(214, 255, 69, 0.22);
}

.hero .button-ghost {
  border-color: rgba(255, 250, 241, 0.45);
  background: rgba(17, 17, 17, 0.72);
  color: var(--paper-strong);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  width: min(520px, 100%);
  margin: 0;
  border: 1px solid rgba(255, 250, 241, 0.7);
  background: rgba(17, 17, 17, 0.42);
}

.hero-command {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(540px, 100%);
  gap: 14px;
}

.ai-console {
  border: 1px solid rgba(255, 250, 241, 0.55);
  background: rgba(17, 17, 17, 0.66);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.32);
  backdrop-filter: blur(16px);
}

.console-topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 250, 241, 0.24);
  color: var(--acid);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--acid);
  box-shadow: 0 0 0 7px rgba(214, 255, 69, 0.16);
  animation: pulse 1.7s ease-in-out infinite;
}

.console-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
}

.console-grid span,
.console-grid strong {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 250, 241, 0.14);
  color: rgba(255, 250, 241, 0.7);
  font-size: 0.86rem;
}

.console-grid strong {
  border-left: 1px solid rgba(255, 250, 241, 0.14);
  color: var(--paper-strong);
  text-align: right;
}

.hero-stats div {
  padding: 18px;
  border-right: 1px solid rgba(255, 250, 241, 0.5);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  font-size: 2rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 250, 241, 0.76);
  font-size: 0.86rem;
}

.ticker {
  display: flex;
  min-height: 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: var(--acid);
}

.ticker-track {
  display: flex;
  min-width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker span,
.ticker-track span {
  display: grid;
  min-width: 190px;
  place-items: center;
  border-right: 1px solid var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--ink);
  background: var(--paper-strong);
}

.signal-strip article {
  min-height: 168px;
  padding: 22px 28px;
  border-right: 1px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(214, 255, 69, 0.18), transparent 45%),
    var(--paper-strong);
}

.signal-strip article:last-child {
  border-right: 0;
}

.signal-strip span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.signal-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.signal-strip p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.section {
  padding: 88px 38px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto 34px;
}

.section-head .eyebrow {
  color: var(--red);
}

.section-note {
  max-width: 430px;
  margin-bottom: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1480px;
  margin: 0 auto 18px;
}

.portfolio-actions .section-note {
  max-width: 720px;
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  font-weight: 900;
}

.featured-case {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  max-width: 1480px;
  margin: 0 auto;
  border: 1px solid var(--ink);
  background: var(--paper-strong);
}

.featured-case img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 40px;
  border-left: 1px solid var(--ink);
}

.case-type,
.card-meta,
.score-row {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-copy h3 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: 3rem;
}

.featured-copy p:not(.case-type) {
  color: #34302c;
  font-size: 1.08rem;
  line-height: 1.55;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
  border: 1px solid var(--ink);
}

.metric-strip span {
  padding: 16px;
  border-right: 1px solid var(--ink);
  font-size: 0.92rem;
}

.metric-strip span:last-child {
  border-right: 0;
}

.metric-strip strong {
  display: block;
  font-size: 1.4rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  background: var(--paper-strong);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  max-width: 1480px;
  margin: 0 auto;
}

.work-card {
  position: relative;
  display: flex;
  grid-column: span 2;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-strong);
  cursor: pointer;
  transition: transform 190ms ease, box-shadow 190ms ease, opacity 190ms ease;
}

.work-card-featured[data-preview="P4Y Studio"] {
  grid-column: 2 / span 2;
}

.work-card-featured[data-preview="Z0Sports"] {
  grid-column: 4 / span 2;
}

.work-card:hover,
.work-card:focus-visible {
  outline: 0;
  transform: translateY(-5px);
  box-shadow: var(--hard-shadow);
}

.work-card::after {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  min-height: 34px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  content: "Aç";
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.work-card:hover::after,
.work-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.work-card.is-hidden {
  display: none;
}

.work-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  border-bottom: 1px solid var(--ink);
  filter: saturate(1.08) contrast(1.03);
  transition: transform 260ms ease, filter 260ms ease;
}

.featured-case img.image-focus-center,
.work-card img.image-focus-center {
  object-position: center;
}

.work-logo {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(118px, 28%, 156px);
  height: 76px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 240, 229, 0.88));
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.work-card .work-logo {
  display: none;
}

.work-card .work-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  border: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(17, 17, 17, 0.16));
}

.work-logo-full {
  width: clamp(124px, 25%, 164px);
  height: 72px;
  top: 6px;
  padding: 5px;
  overflow: hidden;
  background: rgba(245, 242, 234, 0.92);
}

.work-card .work-logo-full img {
  width: 100%;
  height: 62px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.work-card:hover img {
  transform: scale(1.025);
  filter: saturate(1.18) contrast(1.06);
}

.work-card:hover .work-logo img {
  transform: none;
  filter: drop-shadow(0 4px 8px rgba(17, 17, 17, 0.16));
}

.work-card:hover .work-logo-full img {
  filter: none;
}

.work-logo-sports {
  right: 14px;
  top: 14px;
  width: 102px;
  height: 56px;
  padding: 8px;
  transform: none;
  background: #020403;
  border-color: rgba(0, 214, 107, 0.5);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34), 0 0 22px rgba(0, 214, 107, 0.18);
}

.work-logo-sports img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 10px rgba(0, 214, 107, 0.28));
}

.card-purpose {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  max-width: min(72%, 300px);
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 17, 17, 0.82);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.9);
  color: var(--ink);
  box-shadow: 6px 6px 0 rgba(17, 17, 17, 0.14);
}

.card-purpose span {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.card-purpose strong {
  font-size: 0.92rem;
  line-height: 1.08;
}

.work-card h3,
.work-card p,
.card-meta,
.score-row {
  margin-left: 18px;
  margin-right: 18px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 12px;
}

.work-card p {
  flex: 1;
  color: var(--muted);
  line-height: 1.5;
}

.score-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
}

.portfolio-preview {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  max-width: 1480px;
  margin: 28px auto 0;
  scroll-margin-top: 86px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(247, 201, 72, 0.76), rgba(255, 250, 241, 0.9) 46%, rgba(17, 17, 17, 0.22)),
    url("assets/coffee-demo-store.png") center / cover no-repeat;
  box-shadow: var(--panel-shadow);
}

.preview-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 520px;
  padding: 28px;
}

.preview-copy h3 {
  margin-bottom: 14px;
  font-size: 2.45rem;
  line-height: 0.98;
}

.preview-copy p {
  color: #292521;
  line-height: 1.55;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.preview-tags span {
  min-height: 34px;
  padding: 9px 12px 0;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-embed-shell {
  min-width: 0;
  padding: 18px;
  border-left: 1px solid var(--ink);
  background: rgba(17, 17, 17, 0.9);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 250, 241, 0.24);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #111111;
  color: rgba(255, 250, 241, 0.78);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
}

.browser-bar span:nth-child(2) {
  background: var(--gold);
}

.browser-bar span:nth-child(3) {
  background: var(--acid);
}

.browser-bar strong {
  margin-left: 8px;
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-embed-shell iframe {
  display: block;
  width: 100%;
  height: min(62vw, 680px);
  min-height: 520px;
  border: 1px solid rgba(255, 250, 241, 0.24);
  border-radius: 0 0 8px 8px;
  background: var(--paper-strong);
}

.calculator-section {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.88), rgba(17, 17, 17, 0.68) 54%, rgba(17, 17, 17, 0.36)),
    linear-gradient(90deg, rgba(214, 255, 69, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 250, 241, 0.04) 1px, transparent 1px),
    url("assets/growth-analytics-lab.png") center / cover no-repeat,
    #111111;
  background-size: auto, 42px 42px, 42px 42px, cover, auto;
  color: var(--paper-strong);
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.48fr);
  gap: 18px;
  max-width: 1480px;
  margin: 0 auto;
}

.calculator-panel,
.quote-summary {
  border: 1px solid rgba(255, 250, 241, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.08), transparent 38%),
    rgba(27, 27, 27, 0.9);
  backdrop-filter: blur(12px);
}

.calculator-panel {
  padding: 24px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 14px;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.option-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 250, 241, 0.14);
}

.option-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--acid);
}

.option-row strong,
.option-row span {
  display: block;
}

.option-row span {
  color: rgba(255, 250, 241, 0.64);
  line-height: 1.4;
}

.option-row strong {
  margin-bottom: 3px;
  color: var(--paper-strong);
}

.control-group {
  margin-top: 28px;
}

.control-group label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  color: rgba(255, 250, 241, 0.78);
  font-weight: 800;
}

output {
  color: var(--acid);
  font-weight: 900;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--red);
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.quote-business-grid,
#package-options,
#design-level-options {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

#project-type-options,
#module-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.radio-grid legend {
  grid-column: 1 / -1;
}

.radio-grid label {
  display: grid;
  min-height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 250, 241, 0.26);
  border-radius: 8px;
}

.radio-grid input {
  position: absolute;
  opacity: 0;
}

.radio-grid label:has(input:checked) {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
  font-weight: 900;
}

.split-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.select-label,
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid rgba(255, 250, 241, 0.26);
  border-radius: 8px;
}

select {
  min-height: 38px;
  border: 1px solid rgba(255, 250, 241, 0.3);
  border-radius: 6px;
  background: #111111;
  color: var(--paper-strong);
}

.switch-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--acid);
}

.quote-summary {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 26px;
  box-shadow: 8px 8px 0 rgba(255, 77, 53, 0.92);
}

.quote-summary .eyebrow {
  color: var(--gold);
}

.mobile-quote-dock {
  display: none;
}

.mobile-quote-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mobile-quote-copy span {
  color: rgba(255, 250, 241, 0.66);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-quote-copy strong {
  overflow: hidden;
  color: var(--paper-strong);
  font-size: 1.18rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-quote-copy small {
  overflow: hidden;
  color: var(--acid);
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.total {
  margin-bottom: 18px;
  font-size: 4rem;
  line-height: 1;
  font-weight: 900;
}

.summary-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.summary-kpis span {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: 8px;
  color: rgba(255, 250, 241, 0.62);
}

.summary-kpis strong {
  display: block;
  margin-bottom: 6px;
  color: var(--paper-strong);
  font-size: 1.2rem;
}

.selected-list {
  display: grid;
  gap: 8px;
  min-height: 72px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.selected-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 250, 241, 0.14);
  color: rgba(255, 250, 241, 0.76);
}

.quote-usd {
  margin: -10px 0 18px;
  color: rgba(255, 250, 241, 0.62);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.quote-levels,
.quote-meta {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.quote-levels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-levels span,
.quote-meta span {
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(255, 250, 241, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 250, 241, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-levels strong,
.quote-meta strong {
  display: block;
  margin-top: 6px;
  color: var(--paper-strong);
  font-size: 1rem;
  text-transform: none;
}

.quote-disclaimer {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(214, 255, 69, 0.36);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(214, 255, 69, 0.16), rgba(255, 255, 255, 0.045)),
    rgba(255, 250, 241, 0.045);
  color: rgba(255, 250, 241, 0.8);
}

.quote-disclaimer svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid rgba(214, 255, 69, 0.44);
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
}

.quote-disclaimer strong,
.quote-disclaimer span {
  display: block;
}

.quote-disclaimer strong {
  margin-bottom: 4px;
  color: var(--paper-strong);
  font-size: 0.95rem;
}

.quote-disclaimer span {
  font-size: 0.84rem;
  line-height: 1.48;
}

.fine-print {
  margin: 18px 0 0;
  color: rgba(255, 250, 241, 0.52);
  font-size: 0.86rem;
  line-height: 1.5;
}

.ai-flow {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(247, 242, 234, 0.9), rgba(247, 242, 234, 0.74) 48%, rgba(247, 242, 234, 0.5)),
    linear-gradient(135deg, rgba(143, 215, 255, 0.2), rgba(214, 255, 69, 0.1)),
    url("assets/ai-studio-bg.png") center / cover no-repeat;
}

.ai-flow::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.24), transparent 46%),
    repeating-linear-gradient(90deg, transparent 0 150px, rgba(17, 17, 17, 0.08) 150px 151px);
}

.ai-flow > * {
  position: relative;
  z-index: 1;
}

.ai-flow-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.46fr) minmax(0, 1fr);
  gap: 28px;
  max-width: 1480px;
  margin: 0 auto;
}

.ai-panel,
.ai-result {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--panel-shadow);
}

.ai-panel {
  padding: 24px;
}

.ai-panel-head {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

.ai-panel-head > svg {
  display: grid;
  width: 50px;
  height: 50px;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
}

.ai-panel-head strong,
.ai-panel-head span {
  display: block;
}

.ai-panel-head strong {
  font-size: 1.15rem;
}

.ai-panel-head span {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.planner-controls {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.planner-controls > label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.planner-controls select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
}

.ai-speed {
  margin-top: 2px;
}

.ai-speed label {
  color: var(--ink);
}

.ai-result {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
  background:
    linear-gradient(135deg, var(--ink), #262626 55%, #111111);
  color: var(--paper-strong);
}

.result-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 38px;
  margin-bottom: 28px;
  padding: 0 13px;
  border: 1px solid rgba(255, 250, 241, 0.24);
  border-radius: 999px;
  color: var(--acid);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-result h3 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: 3.15rem;
}

.ai-result p {
  max-width: 720px;
  color: rgba(255, 250, 241, 0.72);
  font-size: 1.08rem;
  line-height: 1.55;
}

.ai-output-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid rgba(255, 250, 241, 0.24);
  background: rgba(255, 250, 241, 0.24);
}

.ai-output-grid article {
  min-height: 156px;
  padding: 18px;
  background: rgba(255, 250, 241, 0.08);
}

.ai-output-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-output-grid strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.35;
}

.route-map {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: auto 0 24px;
  padding-top: 28px;
}

.route-map span {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 250, 241, 0.24);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.08);
  font-weight: 900;
}

.route-map svg {
  width: 18px;
  height: 18px;
  color: var(--acid);
}

.growth-lab {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 250, 241, 0.14);
  background:
    radial-gradient(circle at 18% 18%, rgba(214, 255, 69, 0.22), transparent 26%),
    radial-gradient(circle at 92% 12%, rgba(143, 215, 255, 0.2), transparent 28%),
    linear-gradient(115deg, rgba(3, 8, 12, 0.96), rgba(13, 24, 28, 0.9) 50%, rgba(18, 12, 8, 0.78)),
    url("assets/growth-analytics-lab.png") center / cover no-repeat;
  color: var(--paper-strong);
}

.growth-lab::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 86px 86px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent);
}

.growth-lab .section-head .eyebrow {
  color: var(--acid);
}

.growth-lab .section-head {
  color: var(--paper-strong);
}

.growth-lab .section-note {
  color: rgba(255, 250, 241, 0.72);
}

.lab-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1480px;
  margin: 0 auto 18px;
}

.lab-highlights span {
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.08);
  color: rgba(255, 250, 241, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.lab-highlights strong {
  display: block;
  margin-bottom: 8px;
  color: var(--acid);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.lab-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1480px;
  margin: 0 auto 20px;
  padding: 8px;
  border: 1px solid rgba(172, 199, 214, 0.16);
  border-radius: 24px;
  background: rgba(3, 8, 12, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.lab-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: rgba(255, 250, 241, 0.68);
  font-weight: 900;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.lab-tab svg {
  width: 19px;
  height: 19px;
}

.lab-tab:hover,
.lab-tab.is-active {
  border-color: rgba(214, 255, 69, 0.46);
  background:
    radial-gradient(circle at 18% 20%, rgba(214, 255, 69, 0.28), transparent 38%),
    linear-gradient(135deg, rgba(214, 255, 69, 0.18), rgba(143, 215, 255, 0.08));
  color: #fffaf1;
  transform: translateY(-1px);
}

.lab-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "panel";
  gap: 28px;
  max-width: 1480px;
  margin: 0 auto;
}

.forecast-panel,
.matrix-panel,
.stack-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.12), rgba(255, 250, 241, 0.055)),
    rgba(4, 10, 13, 0.68);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.forecast-panel {
  grid-area: panel;
  padding: 22px;
}

.matrix-panel {
  grid-area: panel;
}

.stack-panel {
  grid-area: panel;
}

.lab-tab-panel[hidden] {
  display: none;
}

.lab-tab-panel {
  min-height: 560px;
}

.matrix-panel,
.stack-panel {
  padding-bottom: 8px;
}

.matrix-panel .creative-matrix {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 22px;
}

.matrix-panel .creative-card {
  min-height: 190px;
  padding: 24px;
}

.stack-panel .stack-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 22px;
}

.stack-panel .stack-list li {
  min-height: 150px;
}

.lab-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 250, 241, 0.14);
  background: rgba(255, 250, 241, 0.055);
}

.forecast-panel .lab-panel-head {
  margin: -22px -22px 18px;
}

.lab-panel-head span {
  color: var(--acid);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lab-panel-head strong {
  color: #fffaf1;
  font-size: 0.9rem;
}

#signal-canvas {
  display: block;
  width: 100%;
  min-height: 300px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 22px;
  background: #111111;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.forecast-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.forecast-controls .control-group label {
  color: rgba(255, 250, 241, 0.86);
}

.forecast-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  border: 0;
  background: transparent;
}

.forecast-metrics span {
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(255, 250, 241, 0.15);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.08);
}

.forecast-metrics small,
.creative-card span,
.stack-list span {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 250, 241, 0.55);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.forecast-metrics strong {
  display: block;
  color: #fffaf1;
  font-size: 2rem;
  line-height: 1;
}

.lab-note {
  margin: 16px 0 0;
  color: rgba(255, 250, 241, 0.66);
  line-height: 1.5;
}

.creative-matrix {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: transparent;
}

.creative-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(255, 250, 241, 0.13);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.08);
}

.creative-card strong {
  display: block;
  margin-bottom: 8px;
  color: #fffaf1;
  font-size: 1.08rem;
}

.creative-card p {
  margin-bottom: 0;
  color: rgba(255, 250, 241, 0.66);
  line-height: 1.45;
}

.stack-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  background: transparent;
  list-style: none;
}

.stack-list li {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 250, 241, 0.13);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.08);
}

.stack-list strong {
  display: block;
  margin-bottom: 6px;
  color: #fffaf1;
}

.stack-list p {
  margin-bottom: 0;
  color: rgba(255, 250, 241, 0.66);
  line-height: 1.45;
}

.stack-panel .summary-actions {
  padding: 18px;
}

.services {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(214, 255, 69, 0.24), transparent 28%),
    linear-gradient(115deg, rgba(5, 9, 12, 0.94), rgba(12, 25, 28, 0.72) 48%, rgba(255, 250, 241, 0.12)),
    url("assets/agency-services-ai-bg.png") center / cover no-repeat;
  color: var(--paper-strong);
}

.services::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent);
}

.services .section-head {
  color: var(--paper-strong);
}

.services .section-note {
  max-width: 720px;
  color: rgba(255, 250, 241, 0.72);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1480px;
  margin: 0 auto;
  gap: 14px;
  border: 0;
}

.service-list article {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 250, 241, 0.22);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.12), rgba(255, 250, 241, 0.045)),
    rgba(2, 8, 10, 0.48);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.service-list article::before {
  position: absolute;
  inset: auto 22px 22px 22px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--acid), rgba(87, 202, 255, 0.65), transparent);
  content: "";
}

.service-list article::after {
  position: absolute;
  right: -42px;
  top: -42px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(214, 255, 69, 0.22), transparent 68%);
  content: "";
}

.service-list span {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 84px;
  border: 1px solid rgba(214, 255, 69, 0.62);
  border-radius: 999px;
  background: rgba(214, 255, 69, 0.14);
  color: var(--acid);
  box-shadow: 0 0 28px rgba(214, 255, 69, 0.2);
  font-weight: 900;
}

.service-list h3 {
  margin-bottom: 14px;
  color: #fffaf1;
  font-size: 1.3rem;
}

.service-list p {
  color: rgba(255, 250, 241, 0.68);
  line-height: 1.55;
}

.service-list strong {
  display: inline-flex;
  margin-top: 22px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 999px;
  color: #fffaf1;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
}

.contact-section {
  padding-bottom: 38px;
}

.contact-band {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 0.9fr minmax(360px, 0.6fr);
  gap: 28px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 18%, rgba(214, 255, 69, 0.28), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(143, 215, 255, 0.16), transparent 32%),
    linear-gradient(125deg, #eff2df 0%, #dfe8cf 38%, #0a1114 39%, #071015 100%);
  box-shadow: 0 30px 90px rgba(17, 17, 17, 0.22);
}

.contact-band::before {
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(255, 250, 241, 0.14);
  border-radius: 24px;
  content: "";
}

.contact-copy {
  display: grid;
  align-content: end;
  min-height: 430px;
}

.contact-band h2 {
  max-width: 720px;
  margin-bottom: 20px;
  color: #07100b;
  text-shadow: none;
}

.contact-band p {
  max-width: 620px;
  color: rgba(6, 16, 12, 0.74);
  font-size: 1.1rem;
  line-height: 1.55;
}

.contact-signal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.contact-signal span {
  padding: 10px 13px;
  border: 1px solid rgba(6, 16, 12, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.22);
  color: #06100c;
  font-size: 0.82rem;
  font-weight: 900;
}

.brief-form {
  display: grid;
  gap: 12px;
  align-self: center;
  padding: 26px;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 24px;
  background: rgba(3, 9, 12, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brief-form label {
  display: grid;
  gap: 7px;
  color: #fffaf1;
  font-weight: 900;
}

.brief-form input,
.brief-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: 14px;
  background: rgba(255, 250, 241, 0.92);
  color: #06100c;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.brief-form input {
  min-height: 48px;
  padding: 0 13px;
}

.brief-form textarea {
  resize: vertical;
  padding: 13px;
}

/* Final conversion surfaces */
.calculator-section {
  background:
    radial-gradient(circle at 10% 15%, rgba(214, 255, 69, 0.18), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(143, 215, 255, 0.16), transparent 32%),
    linear-gradient(135deg, #080e12 0%, #111915 44%, #050708 100%);
}

.calculator-section .section-head {
  color: #fffaf1;
}

.calculator-section .section-note {
  color: rgba(255, 250, 241, 0.7);
}

.calculator-grid {
  gap: 24px;
}

.calculator-panel,
.quote-summary {
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.1), rgba(255, 250, 241, 0.035)),
    rgba(8, 14, 18, 0.88);
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.calculator-panel {
  padding: 30px;
}

.option-row {
  align-items: start;
  margin-bottom: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 250, 241, 0.14);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.055);
}

.option-row:has(input:checked) {
  border-color: rgba(214, 255, 69, 0.58);
  background: linear-gradient(135deg, rgba(214, 255, 69, 0.16), rgba(255, 250, 241, 0.06));
}

.quote-summary {
  overflow: hidden;
  border-color: rgba(214, 255, 69, 0.32);
  box-shadow: 0 32px 92px rgba(0, 0, 0, 0.38);
}

.quote-summary::before {
  display: block;
  height: 5px;
  margin: -26px -26px 22px;
  background: linear-gradient(90deg, var(--acid), #8fd7ff, var(--red));
  content: "";
}

.summary-kpis span,
.selected-list li {
  border-color: rgba(255, 250, 241, 0.12);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 14px;
  padding: 12px;
}

.brief-engine-status {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 10%, rgba(214, 255, 69, 0.28), transparent 32%),
    #f1eadf;
}

.brief-engine-status span {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brief-engine-status strong {
  color: #111111;
  line-height: 1.25;
}

.brief-engine-status p {
  margin: 0;
  color: rgba(17, 17, 17, 0.64);
  font-size: 0.9rem;
  line-height: 1.45;
}

.growth-lab {
  background:
    radial-gradient(circle at 14% 0%, rgba(214, 255, 69, 0.13), transparent 25%),
    radial-gradient(circle at 95% 6%, rgba(67, 146, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #071017 0%, #0c1519 52%, #05080b 100%);
}

.growth-lab::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: none;
}

.lab-highlights span,
.forecast-panel,
.matrix-panel,
.stack-panel {
  border-color: rgba(172, 199, 214, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(8, 16, 21, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.forecast-panel,
.matrix-panel,
.stack-panel {
  border-radius: 24px;
}

#signal-canvas {
  border-radius: 20px;
  background: #091015;
}

.creative-card,
.stack-list li,
.forecast-metrics span {
  border-color: rgba(172, 199, 214, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.contact-band {
  border-color: rgba(17, 17, 17, 0.12);
}

/* Dark AI landscape rhythm from pricing onward */
.calculator-section,
.ai-flow,
.growth-lab,
.services,
.contact-section {
  color: var(--paper-strong);
  background-color: #080c0f;
}

.calculator-section {
  background:
    linear-gradient(180deg, rgba(246, 241, 229, 0.48), rgba(10, 16, 16, 0.7) 42%, rgba(4, 7, 9, 0.9)),
    radial-gradient(circle at 10% 14%, rgba(214, 255, 69, 0.18), transparent 28%),
    url("assets/ai-product-bg.png") center / cover no-repeat,
    #0b1112;
}

.ai-flow {
  background:
    linear-gradient(180deg, rgba(12, 18, 17, 0.72), rgba(5, 8, 10, 0.9)),
    radial-gradient(circle at 82% 10%, rgba(143, 215, 255, 0.18), transparent 30%),
    url("assets/ai-studio-bg.png") center / cover no-repeat,
    #080c0f;
}

.growth-lab {
  background:
    linear-gradient(180deg, rgba(5, 10, 12, 0.76), rgba(2, 4, 7, 0.93)),
    radial-gradient(circle at 14% 12%, rgba(214, 255, 69, 0.15), transparent 28%),
    url("assets/growth-analytics-lab.png") center / cover no-repeat,
    #05080a;
}

.services {
  background:
    linear-gradient(180deg, rgba(4, 8, 10, 0.82), rgba(1, 3, 5, 0.96)),
    radial-gradient(circle at 78% 8%, rgba(73, 160, 255, 0.14), transparent 32%),
    url("assets/agency-services-ai-bg.png") center / cover no-repeat,
    #030506;
}

.contact-section {
  background:
    linear-gradient(180deg, rgba(2, 5, 7, 0.92), rgba(0, 0, 0, 0.98)),
    radial-gradient(circle at 12% 16%, rgba(214, 255, 69, 0.11), transparent 26%),
    url("assets/agency-brief-ai-bg.png") center / cover no-repeat,
    #000;
}

.calculator-section .section-head,
.ai-flow .section-head,
.growth-lab .section-head,
.services .section-head,
.contact-section .section-head {
  color: var(--paper-strong);
}

.calculator-section .section-note,
.ai-flow .section-note,
.growth-lab .section-note,
.services .section-note {
  color: rgba(255, 250, 241, 0.7);
}

.calculator-panel,
.quote-summary,
.ai-panel,
.lab-highlights span,
.forecast-panel,
.matrix-panel,
.stack-panel,
.service-list article {
  border-color: rgba(255, 250, 241, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.11), rgba(255, 250, 241, 0.035)),
    rgba(5, 10, 13, 0.68);
  color: var(--paper-strong);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.option-row,
.summary-kpis span,
.selected-list li,
.creative-card,
.stack-list li,
.forecast-metrics span {
  border-color: rgba(255, 250, 241, 0.13);
  background: rgba(255, 250, 241, 0.07);
  color: rgba(255, 250, 241, 0.72);
}

.option-row span,
.fine-print,
.creative-card p,
.stack-list p,
.lab-note,
.service-list p {
  color: rgba(255, 250, 241, 0.66);
}

.option-row strong,
.summary-kpis strong,
.forecast-metrics strong,
.creative-card strong,
.stack-list strong,
.lab-panel-head strong,
.service-list h3,
.service-list strong {
  color: var(--paper-strong);
}

.calculator-section legend,
.calculator-section .control-group label,
.calculator-section .select-label,
.calculator-section .switch-row,
.forecast-controls .control-group label {
  color: rgba(255, 250, 241, 0.76);
}

.calculator-section output,
.forecast-controls output,
.lab-panel-head span,
.lab-highlights strong,
.forecast-metrics small,
.creative-card span,
.stack-list span {
  color: var(--acid);
}

.calculator-section select {
  border-color: rgba(255, 250, 241, 0.2);
  background: rgba(7, 12, 15, 0.86);
  color: var(--paper-strong);
}

.select-label,
.switch-row {
  border-color: rgba(255, 250, 241, 0.16);
  background: rgba(255, 250, 241, 0.06);
}

.lab-panel-head {
  border-bottom-color: rgba(255, 250, 241, 0.12);
  background: rgba(255, 250, 241, 0.055);
}

.lab-tabs {
  border-color: rgba(255, 250, 241, 0.16);
  background: rgba(4, 9, 12, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lab-tab {
  color: rgba(255, 250, 241, 0.62);
}

.lab-tab:hover,
.lab-tab.is-active {
  color: var(--paper-strong);
  border-color: rgba(214, 255, 69, 0.42);
  background:
    radial-gradient(circle at 18% 20%, rgba(214, 255, 69, 0.22), transparent 42%),
    linear-gradient(135deg, rgba(214, 255, 69, 0.16), rgba(143, 215, 255, 0.08));
}

.ai-result {
  color: var(--paper-strong);
  background:
    radial-gradient(circle at 86% 12%, rgba(214, 255, 69, 0.18), transparent 28%),
    linear-gradient(135deg, #101613, #1b231e 58%, #10100d);
}

.contact-band {
  border-color: rgba(255, 250, 241, 0.16);
  background:
    linear-gradient(90deg, rgba(1, 5, 7, 0.82), rgba(5, 10, 12, 0.74) 44%, rgba(0, 0, 0, 0.88)),
    radial-gradient(circle at 12% 16%, rgba(214, 255, 69, 0.18), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(143, 215, 255, 0.12), transparent 26%),
    url("assets/agency-brief-ai-bg.png") center / cover no-repeat;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-band::before {
  border-color: rgba(255, 250, 241, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.12);
}

.contact-band h2,
.contact-band .eyebrow {
  color: var(--paper-strong);
}

.planner-controls > label,
.ai-speed label {
  color: var(--paper-strong);
}

.contact-band p {
  color: rgba(255, 250, 241, 0.76);
}

.ai-panel-head span {
  color: rgba(255, 250, 241, 0.72);
}

.brief-form {
  border-color: rgba(255, 250, 241, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.1), rgba(255, 250, 241, 0.035)),
    rgba(3, 8, 10, 0.7);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brief-form label {
  color: var(--paper-strong);
}

.brief-form input,
.brief-form textarea {
  border-color: rgba(255, 250, 241, 0.18);
  background: rgba(255, 250, 241, 0.92);
  color: #06100c;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.contact-signal span {
  border-color: rgba(255, 250, 241, 0.2);
  background: rgba(255, 250, 241, 0.12);
  color: var(--paper-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.site-footer {
  padding: 56px 38px 28px;
  color: var(--paper-strong);
  background:
    radial-gradient(circle at 12% 0%, rgba(214, 255, 69, 0.14), transparent 28%),
    linear-gradient(180deg, #060a0d, var(--ink));
  border-top: 1px solid rgba(255, 250, 241, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(170px, 0.8fr));
  gap: 34px;
  max-width: 1480px;
  margin: 0 auto 34px;
}

.footer-brand img {
  width: 112px;
  height: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 420px;
  color: rgba(255, 250, 241, 0.68);
  line-height: 1.6;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col strong {
  margin-bottom: 8px;
  color: var(--acid);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col span {
  color: rgba(255, 250, 241, 0.72);
  font-weight: 800;
}

.footer-col a:hover {
  color: var(--acid);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  max-width: 1480px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 250, 241, 0.12);
  color: rgba(255, 250, 241, 0.58);
  font-size: 0.9rem;
  font-weight: 800;
}

.footer-bottom a {
  color: var(--paper-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.28);
  }
}

@media (max-width: 1100px) {
  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.4rem;
  }

  .hero {
    min-height: 78svh;
    align-items: end;
    flex-direction: column;
    justify-content: end;
  }

  .hero-stats,
  .featured-case,
  .calculator-grid,
  .ai-flow-grid,
  .lab-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .lab-grid {
    grid-template-areas: "panel";
  }

  .hero-command {
    width: 100%;
  }

  .featured-copy {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .work-grid,
  .portfolio-preview,
  .service-list,
  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-card,
  .work-card-featured[data-preview="P4Y Studio"],
  .work-card-featured[data-preview="Z0Sports"] {
    grid-column: span 1;
  }

  .portfolio-preview {
    grid-template-columns: 1fr;
  }

  .site-embed-shell {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .ai-output-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forecast-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quote-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .lab-tabs,
  .matrix-panel .creative-matrix,
  .stack-panel .stack-list {
    grid-template-columns: 1fr;
  }

  .lab-tab {
    justify-content: flex-start;
    padding: 0 16px;
  }

  .lab-tab-panel {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body:has(#mobile-quote-dock) {
    padding-bottom: 106px;
  }

  .mobile-quote-dock {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 90;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 250, 241, 0.22);
    border-radius: 22px;
    background:
      linear-gradient(135deg, rgba(214, 255, 69, 0.16), transparent 42%),
      rgba(8, 13, 14, 0.94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
  }

  .mobile-quote-dock .button {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .whatsapp-cloud {
    right: 14px;
    bottom: 126px;
    min-height: 56px;
    padding: 8px 14px 8px 8px;
    box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.88), 0 16px 34px rgba(11, 130, 62, 0.28);
  }

  .whatsapp-cloud-icon {
    width: 38px;
    height: 38px;
  }

  .whatsapp-cloud strong {
    font-size: 0.86rem;
  }

  .whatsapp-cloud small {
    font-size: 0.7rem;
  }

  .site-header {
    min-height: 66px;
    padding: 0 16px;
  }

  .brand {
    min-width: 112px;
  }

  .brand-logo-shell {
    width: 110px;
    height: 42px;
  }

  .brand-logo {
    width: 100%;
    height: 100%;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .site-nav {
    position: fixed;
    inset: 66px 12px auto;
    display: none;
    padding: 12px;
    border: 1px solid var(--ink);
    background: var(--paper-strong);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    border-radius: 8px;
  }

  .hero {
    min-height: 76svh;
    padding: 82px 18px 24px;
    background-position: center;
  }

  .hero-kicker,
  .location-pill,
  .hero-copy,
  .section-note,
  .work-card p,
  .featured-copy p,
  .preview-copy p {
    max-width: 100%;
  }

  .hero-command,
  .ai-console,
  .featured-case,
  .calculator-panel,
  .quote-summary,
  .ai-panel,
  .ai-result,
  .forecast-panel,
  .matrix-panel,
  .stack-panel,
  .contact-band {
    width: 100%;
    max-width: 100%;
  }

  .command-launcher {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .command-palette {
    padding: 14px;
  }

  .command-card {
    box-shadow: none;
  }

  .command-head {
    padding: 18px;
  }

  .command-head h2 {
    font-size: 1.55rem;
  }

  .command-grid {
    grid-template-columns: 1fr;
  }

  .command-grid button {
    min-height: 68px;
  }

  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .location-pill {
    align-items: flex-start;
    width: 100%;
    border-radius: 18px;
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .hero-actions,
  .summary-actions {
    display: grid;
  }

  .hero-actions {
    width: 100%;
    border-radius: 28px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-badges {
    display: grid;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .ai-console {
    box-shadow: 0 14px 32px rgba(17, 17, 17, 0.28);
  }

  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 250, 241, 0.5);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 58px 16px;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .featured-case img {
    min-height: auto;
    aspect-ratio: 1.2;
  }

  .featured-copy {
    padding: 22px;
  }

  .featured-copy h3 {
    font-size: 2rem;
  }

  .metric-strip,
  .work-grid,
  .portfolio-preview,
  .service-list,
  .signal-strip,
  .split-controls,
  .forecast-controls,
  .forecast-metrics,
  .summary-kpis,
  .ai-output-grid,
  .quote-levels,
  .quote-meta,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-row,
  .ticker-track,
  .lab-tabs,
  .tab-list {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-row::-webkit-scrollbar,
  .ticker-track::-webkit-scrollbar,
  .lab-tabs::-webkit-scrollbar,
  .tab-list::-webkit-scrollbar {
    display: none;
  }

  .filter-row {
    justify-content: flex-start;
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .filter-row .filter-pill,
  .lab-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .work-card,
  .work-card-featured[data-preview="P4Y Studio"],
  .work-card-featured[data-preview="Z0Sports"] {
    grid-column: 1;
  }

  .signal-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .signal-strip article:last-child {
    border-bottom: 0;
  }

  .metric-strip span {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .metric-strip span:last-child {
    border-bottom: 0;
  }

  .calculator-panel,
  .quote-summary,
  .ai-panel,
  .ai-result,
  .contact-band {
    padding: 18px;
  }

  .contact-copy {
    min-height: 320px;
  }

  .service-list article {
    min-height: 260px;
  }

  .service-list span {
    margin-bottom: 46px;
  }

  .brief-form {
    padding: 18px;
  }

  .quote-summary,
  .ai-panel,
  .ai-result,
  .forecast-panel,
  .matrix-panel,
  .stack-panel {
    box-shadow: none;
  }

  #signal-canvas {
    min-height: 210px;
    height: 230px;
  }

  .forecast-metrics strong {
    font-size: 1.65rem;
  }

  .stack-list li {
    grid-template-columns: 1fr;
  }

  .ai-result h3 {
    font-size: 2rem;
  }

  .route-map {
    display: grid;
  }

  .route-map svg {
    transform: rotate(90deg);
    justify-self: center;
  }

  .radio-grid {
    grid-template-columns: 1fr;
  }

  #project-type-options,
  #module-options,
  .quote-levels {
    grid-template-columns: 1fr;
  }

  .total {
    font-size: 2.7rem;
  }

  .service-list article {
    min-height: 240px;
  }

  .preview-copy {
    min-height: auto;
    padding: 22px;
  }

  .preview-copy h3 {
    font-size: 2rem;
  }

  .site-embed-shell {
    padding: 12px;
  }

  .site-embed-shell iframe {
    height: 520px;
    min-height: 420px;
  }

  .service-list span {
    margin-bottom: 40px;
  }

  .site-footer {
    padding: 22px 16px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 12px;
  }

  body:has(#mobile-quote-dock) {
    padding-bottom: 142px;
  }

  .mobile-quote-dock {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-quote-copy {
    grid-column: 1 / -1;
  }

  .mobile-quote-dock .button {
    width: 100%;
  }

  .whatsapp-cloud {
    right: 12px;
    bottom: 162px;
    left: 12px;
    justify-content: center;
    border-radius: 22px;
  }

  .whatsapp-cloud::before,
  .whatsapp-cloud::after {
    display: none;
  }

  .brand {
    min-width: 94px;
  }

  .brand-logo-shell {
    width: 92px;
    height: 36px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-icon {
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: auto;
    padding: 88px 14px 22px;
  }

  h1 {
    font-size: clamp(2.35rem, 16vw, 3rem);
    line-height: 0.95;
  }

  h2 {
    font-size: clamp(1.75rem, 11vw, 2.15rem);
  }

  .section {
    padding: 48px 12px;
  }

  .work-card-media,
  .work-card img,
  .featured-case img {
    min-height: 180px;
    aspect-ratio: 1.25;
  }

  .work-card-body,
  .featured-copy,
  .preview-copy,
  .calculator-panel,
  .quote-summary,
  .ai-panel,
  .ai-result,
  .forecast-panel,
  .brief-form {
    padding: 16px;
  }

  .work-card {
    border-radius: 14px;
  }

  .work-card-body {
    gap: 10px;
  }

  .work-card-meta {
    font-size: 0.78rem;
  }

  .work-card h3 {
    font-size: 1.42rem;
    line-height: 1.08;
  }

  .work-card p {
    line-height: 1.5;
  }

  .work-card-footer {
    margin-top: 12px;
    padding-top: 12px;
  }

  .total {
    font-size: 2.25rem;
    word-break: break-word;
  }

  .quote-levels span,
  .quote-meta span,
  .summary-kpis span,
  .forecast-metrics span {
    min-height: auto;
  }

  .selected-list li {
    display: grid;
  }

  .lab-tabs {
    display: flex;
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .lab-tab {
    min-width: 210px;
  }

  #signal-canvas {
    height: 200px;
    min-height: 190px;
    border-radius: 16px;
  }

  .site-embed-shell iframe {
    height: 460px;
    min-height: 380px;
  }

  .contact-copy {
    min-height: 260px;
  }

  .footer-brand img {
    width: 118px;
  }
}

@media (max-width: 380px) {
  .hero-actions .button,
  .summary-actions .button,
  .button {
    min-height: 48px;
    padding-inline: 14px;
    font-size: 0.84rem;
  }

  .work-card-body h3,
  .preview-copy h3 {
    font-size: 1.55rem;
  }

  .ticker-item {
    min-width: 160px;
  }
}

/* Mobile layout stabilization */
@media (max-width: 760px) {
  body:has(#mobile-quote-dock) {
    padding-bottom: 0;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .hero {
    min-height: auto;
    gap: 18px;
    padding: 94px 14px 22px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-content::before {
    inset: -10px;
  }

  .hero h1 {
    max-width: 9ch;
    font-size: clamp(2.65rem, 14vw, 3.5rem);
  }

  .hero-copy {
    margin-top: 16px;
  }

  .hero-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-badges span {
    min-width: 0;
    padding: 9px 10px;
    font-size: 0.74rem;
  }

  .hero-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 7px;
  }

  .hero-actions .button {
    min-width: 0;
    min-height: 46px;
    padding-inline: 8px;
    font-size: 0.76rem;
  }

  .hero-command {
    gap: 10px;
  }

  .ai-console {
    padding: 14px;
  }

  .console-grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-stats div {
    min-width: 0;
    padding: 12px 8px;
    border-right: 1px solid rgba(255, 250, 241, 0.28);
    border-bottom: 0;
  }

  .hero-stats div:last-child {
    border-right: 0;
  }

  .hero-stats dt {
    font-size: 1.5rem;
  }

  .hero-stats dd {
    font-size: 0.68rem;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .featured-case {
    border-radius: 18px;
  }

  .featured-copy {
    padding: 18px;
  }

  .featured-copy h3 {
    font-size: 1.65rem;
  }

  .metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-strip span {
    min-width: 0;
    padding: 10px 6px;
    border-right: 1px solid var(--ink);
    border-bottom: 0;
    font-size: 0.68rem;
  }

  .metric-strip span:last-child {
    border-right: 0;
  }

  .work-card img {
    min-height: 0;
    aspect-ratio: 1.48;
  }

  .work-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-bottom: 12px;
  }

  .work-card .card-purpose {
    max-width: calc(100% - 28px);
    padding: 9px 11px;
  }

  .work-card .card-purpose strong {
    font-size: 0.78rem;
  }

  .work-card .card-meta,
  .work-card h3,
  .work-card > p,
  .work-card .score-row {
    margin-inline: 16px;
  }

  .work-card .card-meta {
    margin-top: 14px;
  }

  .work-card .score-row {
    margin-bottom: 14px;
    padding-top: 12px;
  }

  .portfolio-preview {
    display: none;
  }

  .calculator-section {
    padding-block: 42px 18px;
    scroll-margin-top: 66px;
  }

  .calculator-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .quote-summary {
    position: static;
    order: -1;
    padding: 18px;
    border-radius: 22px;
  }

  .quote-summary::before {
    margin: -18px -18px 16px;
  }

  .quote-summary .eyebrow {
    margin-bottom: 5px;
  }

  .total {
    margin-bottom: 8px;
    font-size: 2.35rem;
  }

  .quote-usd {
    margin: 0 0 12px;
  }

  .summary-kpis,
  .quote-levels,
  .quote-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }

  .summary-kpis span,
  .quote-levels span,
  .quote-meta span {
    min-height: 0;
    padding: 10px;
    font-size: 0.72rem;
  }

  .quote-levels span:last-child,
  .quote-meta span:last-child {
    grid-column: 1 / -1;
  }

  .selected-list {
    max-height: 160px;
    min-height: 0;
    overflow-y: auto;
    margin-bottom: 14px;
    padding-right: 3px;
  }

  .selected-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px 10px;
    font-size: 0.78rem;
  }

  .summary-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .summary-actions .button {
    width: 100%;
    min-height: 44px;
  }

  .quote-disclaimer {
    margin-top: 14px;
    padding: 12px;
  }

  .calculator-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .calculator-panel fieldset + fieldset,
  .calculator-panel fieldset + .control-group {
    margin-top: 20px;
  }

  .quote-business-grid,
  #package-options,
  #design-level-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .radio-grid {
    margin-top: 20px;
  }

  .radio-grid label {
    min-height: 46px;
    padding: 6px 8px;
    text-align: center;
    font-size: 0.76rem;
  }

  #project-type-options,
  #module-options {
    display: block;
    max-height: 390px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(255, 250, 241, 0.14);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.15);
    overscroll-behavior: contain;
  }

  #module-options {
    max-height: 430px;
  }

  .option-row {
    gap: 10px;
    margin-bottom: 7px;
    padding: 11px;
    border-radius: 13px;
  }

  .option-row:last-child {
    margin-bottom: 0;
  }

  .option-row strong {
    font-size: 0.8rem;
  }

  .option-row span {
    font-size: 0.72rem;
  }

  .control-group {
    margin-top: 20px;
  }

  .split-controls {
    grid-template-columns: 1fr;
  }

  .mobile-quote-dock {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
    margin: 0 12px 18px;
    padding: 9px;
    border-radius: 18px;
  }

  .mobile-quote-copy {
    grid-column: auto;
  }

  .mobile-quote-copy span {
    font-size: 0.58rem;
  }

  .mobile-quote-copy strong {
    font-size: 1rem;
  }

  .mobile-quote-copy small {
    font-size: 0.62rem;
  }

  .mobile-quote-dock .button {
    width: auto;
    min-height: 38px;
    padding-inline: 10px;
    font-size: 0.66rem;
  }

  .whatsapp-cloud {
    right: 14px;
    bottom: 14px;
    left: auto;
    width: 52px;
    min-width: 52px;
    min-height: 52px;
    padding: 6px;
    border-radius: 999px;
  }

  .whatsapp-cloud > span:last-child {
    display: none;
  }

  .whatsapp-cloud-icon {
    width: 38px;
    height: 38px;
  }

  .lab-highlights {
    grid-template-columns: 1fr;
  }

  .lab-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-inline: 0;
    padding: 6px;
    overflow: visible;
  }

  .lab-tab {
    min-width: 0;
    min-height: 58px;
    justify-content: center;
    gap: 5px;
    padding: 7px 4px;
    white-space: normal;
    text-align: center;
    font-size: 0.66rem;
    line-height: 1.15;
  }

  .lab-tab svg {
    width: 16px;
    height: 16px;
  }

  .lab-tab-panel {
    border-radius: 20px;
  }

  .lab-panel-head {
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
  }

  .forecast-controls {
    grid-template-columns: 1fr;
  }

  .forecast-metrics {
    grid-template-columns: 1fr;
  }

  .service-list article {
    min-height: 0;
    padding: 18px;
  }

  .service-list span {
    margin-bottom: 22px;
  }

  .contact-copy {
    min-height: 0;
    padding-bottom: 20px;
  }
}

@media (max-width: 390px) {
  .header-actions {
    gap: 5px;
  }

  .icon-button,
  .header-icon {
    width: 38px;
    height: 38px;
  }

  .hero-actions,
  .quote-business-grid,
  #package-options,
  #design-level-options {
    grid-template-columns: 1fr;
  }

  .mobile-quote-dock {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mobile-quote-dock .button-primary {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
