/* Advertissio — Design System */
:root {
  --ink: #070b12;
  --ink-2: #0e1522;
  --surface: #121a2a;
  --surface-2: #182234;
  --line: rgba(244, 246, 250, 0.1);
  --line-strong: rgba(244, 246, 250, 0.18);
  --bone: #f3f5f8;
  --muted: #9aa6b8;
  --muted-2: #6d7a8f;
  --accent: #3ee0b2;
  --accent-deep: #12b88a;
  --accent-soft: rgba(62, 224, 178, 0.12);
  --warning: #f0b429;
  --danger: #ef6b6b;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --nav-h: 76px;
  --font-display: "Source Sans 3", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--bone);
  background: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Atmosphere */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(62, 224, 178, 0.16), transparent 55%),
    radial-gradient(900px 600px at -10% 20%, rgba(56, 120, 255, 0.12), transparent 50%),
    radial-gradient(800px 500px at 50% 110%, rgba(62, 224, 178, 0.08), transparent 45%),
    linear-gradient(180deg, #070b12 0%, #0a1019 45%, #070b12 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
}

h1,
h2,
h3,
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38rem;
}

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  position: relative;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin: 0.7rem 0 0.9rem;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-mark {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.brand-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--bone);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--bone);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--bone);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

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

.btn-primary {
  background: var(--accent);
  color: #04110c;
}

.btn-primary:hover {
  background: #6aebc4;
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 2rem) 0 0;
  position: relative;
  overflow: hidden;
}

.hero-plane {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 11, 18, 0.25) 0%, rgba(7, 11, 18, 0.55) 42%, rgba(7, 11, 18, 0.96) 100%),
    url("../assets/hero-bg.svg") center / cover no-repeat;
}

.hero-content {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto 4.5rem;
  max-width: none;
  animation: rise 1s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.96;
  margin-bottom: 1.35rem;
  color: #ffffff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.hero-brand .brand-dot {
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(1.35rem, 3.4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: none;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero h1 {
    white-space: nowrap;
  }
}

.hero .lead {
  max-width: 56rem;
  margin-bottom: 1.85rem;
}

.hero-meta {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-meta strong {
  display: block;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.15rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service {
  background: rgba(18, 26, 42, 0.85);
  padding: 1.75rem 1.5rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: pointer;
  outline: none;
}

.service:hover {
  background: var(--surface-2);
}

.service:focus-visible {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.service:hover .service-icon,
.service:focus-visible .service-icon {
  border-color: var(--accent);
  color: var(--accent);
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.1rem;
  border: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.service h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.service p {
  color: var(--muted);
  font-size: 0.95rem;
}

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.72;
  transition: opacity 0.3s var(--ease), gap 0.3s var(--ease);
}

.service-more::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.service:hover .service-more,
.service:focus-visible .service-more {
  opacity: 1;
}

.service:hover .service-more::after,
.service:focus-visible .service-more::after {
  transform: translateX(3px);
}

/* Approach */
.approach {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.approach-visual {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(62, 224, 178, 0.18), transparent 45%),
    linear-gradient(320deg, rgba(56, 120, 255, 0.15), transparent 40%),
    var(--surface);
  border: 1px solid var(--line);
}

.approach-visual img,
.approach-visual > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

.steps {
  display: grid;
  gap: 1.25rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  min-width: 2rem;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Platforms */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.platform {
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(18, 26, 42, 0.55);
  font-size: 0.92rem;
  transition: border-color 0.25s, color 0.25s;
}

.platform:hover {
  border-color: var(--accent);
  color: var(--bone);
}

/* Stats strip — below hero, not in first viewport */
.proof {
  border-block: 1px solid var(--line);
  background: rgba(14, 21, 34, 0.65);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0;
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Clients marquee — below proof, not in hero */
.clients {
  padding: clamp(2.75rem, 5vw, 3.75rem) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.clients-intro {
  text-align: center;
  margin-bottom: 1.75rem;
}

.clients-intro h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.clients-note {
  color: var(--muted-2);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.clients-marquee {
  position: relative;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.clients-track {
  display: flex;
  width: max-content;
  animation: clients-scroll 70s linear infinite;
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

.clients-list {
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-inline: clamp(0.875rem, 2vw, 1.5rem);
  flex-shrink: 0;
}

.clients-list li,
.client-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  white-space: nowrap;
  user-select: none;
}

.client-logo {
  display: block;
  height: clamp(28px, 3.2vw, 36px);
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
  opacity: 0.72;
  /* Monochrome silhouette on dark UI (works for SVG marks + favicons) */
  filter: brightness(0) invert(0.62);
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}

.client-item:hover .client-logo {
  opacity: 1;
  filter: brightness(0) invert(0.92);
}

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

.client-item.is-fallback .client-name {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted-2);
  transition: color 0.25s var(--ease);
}

.client-item.is-fallback:hover .client-name,
.clients-marquee:hover .client-item.is-fallback .client-name {
  color: var(--muted);
}

.clients-list li::after {
  content: "·";
  margin-left: clamp(1.75rem, 4vw, 3rem);
  color: rgba(109, 122, 143, 0.45);
  font-weight: 400;
}

@keyframes clients-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }

  .clients-list:last-child {
    display: none;
  }

  .clients-list {
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: 1.25rem;
    gap: 0.75rem 1.5rem;
  }

  .clients-list li::after {
    display: none;
  }

  .clients-marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* CTA band */
.cta-band {
  margin: 0 auto;
  width: min(100% - 2.5rem, var(--max));
  padding: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(120deg, rgba(62, 224, 178, 0.14), transparent 40%),
    linear-gradient(300deg, rgba(56, 120, 255, 0.1), transparent 35%),
    var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 16ch;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: var(--muted);
  max-width: 34ch;
}

/* Footer */
.footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-entity {
  margin-top: 0.75rem;
  color: var(--muted-2);
  font-size: 0.85rem;
  max-width: 32ch;
}

.footer-address {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.55;
}

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

.footer ul {
  display: grid;
  gap: 0.55rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.85rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0.75rem 0 0.85rem;
}

.legal {
  max-width: 48rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.75rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal strong {
  color: var(--bone);
}

.updated {
  color: var(--muted-2);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-aside {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.contact-aside .lead {
  margin-bottom: 1.75rem;
}

.contact-points {
  display: grid;
  gap: 1rem;
}

.contact-point {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.contact-point strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.contact-point span,
.contact-point a {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-card {
  background: rgba(18, 26, 42, 0.8);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bone);
}

.field label .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(7, 11, 18, 0.55);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field .error {
  color: var(--danger);
  font-size: 0.8rem;
  min-height: 1.1em;
}

.turnstile-field {
  margin-top: 0.25rem;
}

.turnstile-widget {
  min-height: 65px;
  display: flex;
  align-items: flex-start;
}

.turnstile-widget iframe {
  max-width: 100%;
}

.form-actions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-actions .btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.form-note {
  color: var(--muted-2);
  font-size: 0.85rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success.visible {
  display: block;
}

.form-success h3 {
  font-size: 1.6rem;
  margin: 0.75rem 0 0.5rem;
}

.form-success p {
  color: var(--muted);
}

.form-card.submitted .form-grid,
.form-card.submitted .form-actions {
  display: none;
}

.checkbox-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--muted);
}

.checkbox-row input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

.checkbox-row a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Works portfolio */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.works-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.filter-chip {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 26, 42, 0.55);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.filter-chip:hover {
  border-color: var(--line-strong);
  color: var(--bone);
}

.filter-chip.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.works-count {
  color: var(--muted-2);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 26, 42, 0.75);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.work-card:hover,
.work-card:focus-visible {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-3px);
  outline: none;
}

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

.work-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, #152036, #0c1220);
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.work-card:hover .work-card-media img,
.work-card:focus-visible .work-card-media img {
  transform: scale(1.045);
}

.work-card-media-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(7, 11, 18, 0.72);
  border: 1px solid var(--line-strong);
  color: var(--bone);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.work-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.2rem 1.3rem;
  flex: 1;
}

.work-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.1rem;
}

.work-metric {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.work-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.work-card h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.work-client {
  color: var(--muted-2);
  font-size: 0.88rem;
}

.work-desc {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.work-cta {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.works-empty {
  color: var(--muted);
  text-align: center;
  padding: 2.5rem 1rem;
}

.works-disclaimer {
  margin-top: 2rem;
  color: var(--muted-2);
  font-size: 0.85rem;
  max-width: 52rem;
}

.work-modal,
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.work-modal[hidden],
.service-modal[hidden] {
  display: none;
}

.work-modal-backdrop,
.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 18, 0.72);
  backdrop-filter: blur(6px);
}

.work-modal-dialog,
.service-modal-dialog {
  position: relative;
  width: min(100%, 760px);
  max-height: min(90vh, 860px);
  overflow: auto;
  padding: 0;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
  box-shadow: var(--shadow);
  animation: rise 0.35s var(--ease) both;
}

.work-modal-close,
.service-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 18, 0.7);
  color: var(--bone);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.work-modal-close:hover,
.service-modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.work-modal-hero,
.service-modal-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #152036, #0c1220);
  overflow: hidden;
}

.work-modal-hero img,
.work-modal-hero video,
.service-modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-modal-hero video[hidden],
.work-modal-hero img[hidden],
.service-modal-hero img[hidden] {
  display: none;
}

.work-modal-content,
.service-modal-content {
  padding: clamp(1.35rem, 3vw, 1.85rem);
}

.service-modal-intro {
  color: var(--muted);
  font-size: 1rem;
  margin: 0.35rem 0 1.25rem;
  max-width: 54ch;
}

.work-modal-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0.85rem;
}

.work-modal-metric-chip {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(62, 224, 178, 0.28);
  background: var(--accent-soft);
}

.work-modal-dialog h2,
.service-modal-dialog h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  margin-bottom: 0.4rem;
}

.work-modal-client {
  color: var(--muted-2);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.work-modal-section {
  margin-bottom: 1.2rem;
}

.work-modal-section h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.work-modal-section p {
  color: var(--muted);
  font-size: 0.96rem;
}

.work-modal-deliverables {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.work-modal-deliverables li {
  position: relative;
  padding-left: 1rem;
}

.work-modal-deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

.work-modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.work-modal-gallery figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 4 / 3;
}

.work-modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-modal-gallery figure.span-2 {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.work-modal-gallery-video {
  grid-column: span 2;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 16 / 9;
}

.work-modal-gallery-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.modal-open {
  overflow: hidden;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .approach,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    position: static;
  }

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

  .approach-visual {
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(7, 11, 18, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .btn {
    margin-top: 0.75rem;
    width: 100%;
  }

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

  .work-modal-gallery {
    grid-template-columns: 1fr;
  }

  .work-modal-gallery figure.span-2,
  .work-modal-gallery-video {
    grid-column: span 1;
  }

  .hero-content {
    margin-bottom: 3rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .work-card,
  .service,
  .btn,
  .work-modal-dialog,
  .service-modal-dialog {
    transition: none;
    animation: none;
  }

  .work-card:hover,
  .work-card:focus-visible,
  .service:hover,
  .service:focus-visible,
  .btn:hover {
    transform: none;
  }
}
