:root {
  --surface-base: #f7f8fc;
  --surface-panel: #eef1f7;
  --surface-soft: #ffffff;
  --surface-accent-soft: #e8ecff;
  --on-surface: #0a1020;
  --on-surface-muted: #5b6578;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);
  --primary: #163afd;
  --on-primary: #ffffff;
  --primary-soft: #e8ecff;
  --success: #0f766e;
  --success-soft: #ccfbf1;
  --focus-ring: #163afd;
  --ink: #070b16;
  --veil: linear-gradient(180deg, rgba(247, 248, 252, 0.2) 0%, rgba(247, 248, 252, 0.78) 48%, rgba(247, 248, 252, 0.96) 100%);
  --glow: radial-gradient(circle at 70% 20%, rgba(22, 58, 253, 0.22), transparent 42%),
    radial-gradient(circle at 15% 70%, rgba(22, 58, 253, 0.12), transparent 38%);
  --shadow-deep: 0 30px 80px -40px rgba(7, 11, 22, 0.55);
  --shadow-soft: 0 18px 50px -28px rgba(7, 11, 22, 0.35);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --margin-x: 20px;
  --section-gap: 88px;
  --content-max: 1180px;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Geist", "Manrope", system-ui, sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --surface-base: #070b16;
  --surface-panel: #10182a;
  --surface-soft: #121b2e;
  --surface-accent-soft: #162447;
  --on-surface: #edf2ff;
  --on-surface-muted: #93a0b8;
  --border: rgba(237, 242, 255, 0.1);
  --border-strong: rgba(237, 242, 255, 0.18);
  --primary: #4b6bff;
  --on-primary: #ffffff;
  --primary-soft: #162447;
  --success: #2dd4bf;
  --success-soft: #134e4a;
  --focus-ring: #4b6bff;
  --ink: #edf2ff;
  --veil: linear-gradient(180deg, rgba(7, 11, 22, 0.35) 0%, rgba(7, 11, 22, 0.78) 50%, rgba(7, 11, 22, 0.96) 100%);
  --glow: radial-gradient(circle at 70% 20%, rgba(75, 107, 255, 0.28), transparent 42%),
    radial-gradient(circle at 15% 70%, rgba(75, 107, 255, 0.14), transparent 38%);
  --shadow-deep: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --shadow-soft: 0 18px 50px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

@media (min-width: 768px) {
  :root {
    --margin-x: 36px;
    --section-gap: 120px;
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .hero-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .marquee-track {
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--on-surface);
  background: var(--surface-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html.i18n-pending body {
  visibility: hidden;
}

.page-glow,
.page-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.page-glow {
  background: var(--glow);
  opacity: 0.9;
}

.page-grain {
  opacity: 0.35;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

img,
picture {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

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

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--primary);
  color: var(--on-primary);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  width: min(100% - (var(--margin-x) * 2), var(--content-max));
  margin-inline: auto;
}

.dot {
  display: inline-block;
  width: 0.28em;
  height: 0.28em;
  margin-left: 0.08em;
  border-radius: 50%;
  background: var(--primary);
  vertical-align: 0.08em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(1.2);
  background: color-mix(in srgb, var(--surface-base) 72%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.logo-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  flex-shrink: 0;
}

.mark {
  display: grid;
  line-height: 0.85;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
}

.mark-the {
  font-size: 10px;
  letter-spacing: 0.02em;
}

.mark-one,
.mark-site {
  font-size: 18px;
  letter-spacing: -0.05em;
}

.mark-one {
  white-space: nowrap;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-soft) 80%, transparent);
}

.seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--on-surface-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 40px;
  min-width: 44px;
  padding: 0 12px;
  cursor: pointer;
}

.seg button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--on-primary);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 28px;
  color: var(--on-surface-muted);
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0.02em;
}

.nav-desktop a:hover {
  color: var(--on-surface);
}

.menu-toggle,
.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--on-surface);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger {
  display: grid;
  gap: 5px;
  width: 18px;
}

.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.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;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  border: 0;
  padding: 0;
  background: rgba(7, 11, 22, 0.48);
  cursor: pointer;
}

.drawer-backdrop[hidden] {
  display: none;
}

.nav-drawer {
  position: fixed;
  z-index: 60;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  flex-direction: column;
  gap: 16px;
  max-height: min(85dvh, 640px);
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: var(--surface-base);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-deep);
  visibility: hidden;
  pointer-events: none;
  transform: translateY(105%);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 280ms;
}

.nav-drawer.open {
  display: flex;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}

html.drawer-open,
html.drawer-open body {
  overflow: hidden;
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.drawer-kicker,
.drawer-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
}

.drawer-close {
  font-size: 1.75rem;
  line-height: 1;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 4px;
  color: var(--on-surface);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.125rem, 1rem + 1vw, 1.5rem);
  letter-spacing: -0.03em;
}

.drawer-prefs {
  display: grid;
  gap: 10px;
}

.drawer-prefs .seg {
  width: fit-content;
}

.nav-drawer > .btn {
  margin-top: auto;
}

.bottom-nav {
  display: none;
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }

  .header-controls > .menu-toggle,
  .nav-drawer,
  .drawer-backdrop,
  .bottom-nav {
    display: none !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 240ms ease, background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 10px 30px -16px rgba(22, 58, 253, 0.75);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px -14px rgba(22, 58, 253, 0.85);
}

.btn-ghost {
  background: color-mix(in srgb, var(--surface-soft) 55%, transparent);
  color: var(--on-surface);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}

.btn-mini {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 12px;
}

.btn-wide {
  width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

.hero {
  position: relative;
  min-height: min(100vh, 980px);
  display: grid;
  align-items: end;
  padding: 28px 0 56px;
  overflow: clip;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-collage {
  position: absolute;
  inset: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.float {
  position: absolute;
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--border);
  background: var(--surface-panel);
}

.float picture,
.case-shot picture {
  display: block;
  width: 100%;
  height: 100%;
}

.float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.float-a {
  width: min(42vw, 460px);
  aspect-ratio: 4 / 3;
  top: 12%;
  right: 6%;
  transform: rotate(4deg);
}

.float-b {
  width: min(28vw, 280px);
  aspect-ratio: 3 / 4;
  top: 38%;
  right: 34%;
  transform: rotate(-7deg);
}

.float-c {
  width: min(34vw, 360px);
  aspect-ratio: 16 / 10;
  bottom: 14%;
  right: 10%;
  transform: rotate(2deg);
}

.float-d {
  width: min(22vw, 220px);
  aspect-ratio: 1;
  top: 18%;
  right: 42%;
  transform: rotate(-3deg);
  opacity: 0.92;
}

@media (max-width: 900px) {
  .float-a {
    width: 58vw;
    top: 10%;
    right: -4%;
  }

  .float-b {
    width: 36vw;
    top: 34%;
    right: 42%;
  }

  .float-c {
    width: 54vw;
    bottom: 18%;
    right: -8%;
  }

  .float-d {
    display: none;
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: var(--veil);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-bottom: 8px;
}

.brand-lockup {
  display: grid;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.86;
  margin-bottom: 28px;
}

.brand-the {
  font-size: clamp(18px, 3vw, 28px);
  letter-spacing: -0.02em;
}

.brand-one,
.brand-site {
  font-size: clamp(64px, 14vw, 140px);
  letter-spacing: -0.07em;
}

.brand-one {
  white-space: nowrap;
}

.brand-agency {
  margin-top: 10px;
  font-size: clamp(14px, 2.2vw, 22px);
  font-weight: 650;
  letter-spacing: 0.42em;
  text-indent: 0.08em;
}

.hero-title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero-support {
  margin: 18px 0 0;
  max-width: 34ch;
  color: var(--on-surface-muted);
  font-size: clamp(16px, 1.5vw, 19px);
}

.cta-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-in {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  animation: rise-in 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-in:nth-child(1) {
  animation-delay: 80ms;
}
.hero-in:nth-child(2) {
  animation-delay: 180ms;
}
.hero-in:nth-child(3) {
  animation-delay: 280ms;
}
.hero-in:nth-child(4) {
  animation-delay: 380ms;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.proof {
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-panel) 70%, transparent);
  overflow: hidden;
}

.marquee {
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.proof-chip {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 750;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.proof-sep {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex: 0 0 auto;
}

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

.section {
  padding-block: var(--section-gap);
  scroll-margin-top: 88px;
}

.hero,
.proof,
#lead {
  scroll-margin-top: 88px;
}

.section-head {
  margin-bottom: 42px;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.section h2,
.about-section h2,
.lead-intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-support {
  margin: 16px 0 0;
  max-width: 46ch;
  color: var(--on-surface-muted);
  font-size: 17px;
}

.work-section {
  padding-top: calc(var(--section-gap) - 24px);
}

.case {
  margin-top: 48px;
}

.case-meta {
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 16px;
}

.case-index {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.case-meta h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.case-meta p {
  margin: 4px 0 0;
  color: var(--on-surface-muted);
}

.case-body {
  max-width: 42ch;
  line-height: 1.45;
}

.case-link {
  display: inline-flex;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
}

.case-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-stage {
  display: grid;
  gap: 12px;
}

.case-shot {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-panel);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  cursor: zoom-in;
  display: block;
  width: 100%;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.case-shot:hover {
  box-shadow: var(--shadow-deep);
}

@media (prefers-reduced-motion: no-preference) {
  .case-shot:hover {
    transform: translateY(-2px);
  }
}

.case-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: top center;
  background: var(--surface-panel);
}

.case-shot-main {
  height: min(52vh, 420px);
}

.case-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.case-strip:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
  max-width: 50%;
}

.case-strip .case-shot {
  height: min(28vh, 200px);
}

@media (max-width: 700px) {
  .case-shot-main {
    height: min(46vh, 320px);
  }

  .case-strip {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .case-strip:has(> :only-child) {
    max-width: none;
  }

  .case-strip .case-shot {
    height: min(26vh, 180px);
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 11, 22, 0.82);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 64px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-deep);
  background: #0b1220;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0a1020;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.service-list {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 28px 4px;
  border-bottom: 1px solid var(--border);
  transition: background-color 220ms ease, padding-left 220ms ease;
}

a.service-row {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.service-row:hover {
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  padding-left: 10px;
}

.service-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.service-copy {
  display: grid;
  gap: 6px;
}

.service-copy strong {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 750;
  letter-spacing: -0.04em;
}

.service-copy span {
  color: var(--on-surface-muted);
  max-width: 54ch;
}

.service-arrow {
  font-size: 24px;
  color: var(--primary);
  transition: transform 220ms ease;
}

.service-row:hover .service-arrow {
  transform: translateX(6px);
}

.about-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 160px 1fr;
    gap: 40px;
    align-items: start;
  }
}

.about-block {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--on-surface-muted);
}

.reviews-rail {
  display: grid;
  gap: 18px;
  padding-inline: var(--margin-x);
}

@media (min-width: 900px) {
  .reviews-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.review-slide {
  padding: 28px 0 8px;
  border-top: 1px solid var(--border);
}

.review-slide blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.review-slide cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  color: var(--on-surface-muted);
  font-size: 0.875rem;
}

.lead-section {
  background:
    radial-gradient(700px 320px at 85% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 60%),
    var(--surface-base);
}

.lead-layout {
  display: grid;
  gap: 36px;
}

.lead-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-xl) + 4px);
  padding: 28px 22px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  min-height: 140px;
}

@media (min-width: 768px) {
  .lead-action {
    padding: 34px 32px;
  }
}

@media (min-width: 960px) {
  .lead-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: start;
  }
}

.form-shell {
  background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-xl) + 4px);
  padding: 28px 22px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .form-shell {
    padding: 34px 32px;
  }
}

.field {
  margin-bottom: 22px;
}

.field label,
.field .field-label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--on-surface-muted);
  border-radius: 999px;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.chip[aria-checked="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.input,
.textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-base);
  color: var(--on-surface);
  border-radius: 12px;
  padding: 14px 16px;
  min-height: 48px;
}

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

.field-error {
  display: none;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: #b42318;
}

html[data-theme="dark"] .field-error {
  color: #fca5a5;
}

.field.has-error .field-error {
  display: block;
}

.field.has-error .input,
.field.has-error .textarea {
  border-color: #b42318;
}

.form-success {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 35%, transparent);
}

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

.form-success strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
}

.form-success p {
  margin: 0;
  color: var(--on-surface);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 42px 0 56px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.footer-mark {
  display: grid;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.05em;
  font-size: 22px;
  color: var(--ink);
}

.footer-mark span:first-child {
  font-size: 11px;
  letter-spacing: 0;
}

.footer-mark span:nth-child(2) {
  white-space: nowrap;
}

.footer-note {
  margin: 0;
  color: var(--on-surface-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.site-header {
  padding-top: env(safe-area-inset-top);
}

button,
.btn,
.seg button,
.case-link,
.case-shot,
.bottom-nav a,
.menu-toggle,
.drawer-close {
  touch-action: manipulation;
}

@media (max-width: 959px) {
  .header-controls > .seg {
    display: none;
  }

  .nav-desktop {
    display: none;
  }

  .service-list,
  .cta-row {
    width: 100%;
  }

  .hero {
    box-sizing: border-box;
    min-height: calc(100dvh - 4.5rem);
    padding-bottom: calc(4.75rem + 1.25rem + env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    position: fixed;
    z-index: 45;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 8px;
    align-items: stretch;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface-base) 88%, transparent);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(16px) saturate(1.2);
  }

  .bottom-nav a {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 8px 6px;
    border-radius: 999px;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(0.75rem, 2.8vw, 0.875rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--on-surface-muted);
  }

  .bottom-nav a[aria-current="page"] {
    color: var(--on-surface);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
  }

  .bottom-nav-cta,
  .bottom-nav-cta[aria-current="page"] {
    background: var(--primary);
    color: var(--on-primary) !important;
  }

  .section,
  .hero,
  .proof,
  #lead {
    scroll-margin-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 768px) {
  :root {
    --margin-x: 16px;
    --section-gap: 64px;
  }

  .footer-inner,
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .btn,
  .lead-action .btn {
    width: 100%;
  }

  .case-meta {
    flex-direction: column;
    gap: 8px;
  }

  .service-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  :root {
    --section-gap: 48px;
  }

  .hero {
    min-height: calc(100dvh - 4.5rem);
    padding: 12px 0 calc(4.75rem + 1.25rem + env(safe-area-inset-bottom));
  }

  .brand-lockup {
    margin-bottom: 18px;
  }

  .brand-agency {
    letter-spacing: 0.22em;
  }

  .hero-title {
    max-width: 18ch;
  }

  .hero-support,
  .section-support,
  .case-body {
    max-width: none;
  }

  .float-a {
    width: 72vw;
    top: 8%;
    right: -10%;
  }

  .float-b {
    width: 34vw;
    top: 22%;
    right: 46%;
  }

  .float-c {
    width: 62vw;
    bottom: 22%;
    right: -14%;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .case {
    margin-top: 32px;
  }

  .lead-action {
    padding: 20px 16px;
    min-height: 0;
  }

  .site-footer {
    padding: 32px 0 28px;
  }
}

@media (max-width: 959px) and (max-height: 820px) {
  .brand-one,
  .brand-site {
    font-size: clamp(2.6rem, 7vw, 4.25rem);
  }

  .hero-title {
    font-size: clamp(1.45rem, 1rem + 1.6vw, 2rem);
  }

  .brand-lockup {
    margin-bottom: 12px;
  }

  .hero-support {
    margin-top: 10px;
  }

  .cta-row {
    margin-top: 16px;
  }
}

@media (max-width: 768px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    padding-top: 8px;
  }

  .hero-copy {
    display: contents;
  }

  .brand-lockup,
  .hero-title,
  .hero-support,
  .hero .cta-row {
    width: min(100% - (var(--margin-x) * 2), var(--content-max));
    margin-inline: auto;
  }

  .brand-lockup {
    order: 1;
    margin-bottom: 10px;
  }

  .hero-stage {
    position: relative;
    inset: auto;
    order: 2;
    z-index: 0;
    height: clamp(124px, 34vw, 168px);
    margin: 0 0 12px;
    overflow: hidden;
  }

  .hero-title {
    order: 3;
  }

  .hero-support {
    order: 4;
    margin-top: 12px;
  }

  .hero .cta-row {
    order: 5;
    margin-top: 16px;
  }

  .hero-veil {
    background: linear-gradient(180deg, transparent 0 68%, var(--surface-base) 100%);
  }

  .float-a {
    width: 62%;
    top: 8%;
    right: -8%;
    bottom: auto;
    left: auto;
  }

  .float-b {
    width: 30%;
    top: auto;
    bottom: 8%;
    left: 4%;
    right: auto;
  }

  .float-c {
    width: 42%;
    top: auto;
    bottom: 0;
    right: 18%;
    left: auto;
  }
}

@media (max-width: 768px) and (max-height: 820px) {
  .hero-stage {
    height: 104px;
    margin-bottom: 8px;
  }

  .brand-lockup {
    margin-bottom: 6px;
  }

  .hero-support {
    margin-top: 8px;
  }

  .hero .cta-row {
    margin-top: 10px;
    gap: 8px;
  }
}
