/* Serabrix AI — brand system */
:root {
  --bg: #05070f;
  --bg-elevated: #0b1220;
  --bg-soft: #111827;
  --surface: #f4f7fb;
  --white: #ffffff;
  --ink: #07111f;
  --ink-soft: #243044;
  --muted: #9aa8bc;
  --muted-dark: #5b6b82;
  --line: rgba(255, 255, 255, 0.08);
  --line-dark: rgba(7, 17, 31, 0.1);
  --purple: #7c3aed;
  --blue: #2f6bff;
  --cyan: #22d3ee;
  --gradient: linear-gradient(120deg, #7c3aed 0%, #2f6bff 48%, #22d3ee 100%);
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
  --radius: 18px;
  --container: 1180px;
  --header-h: 78px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

body.nav-open-fixed {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
}

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

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading--light h2,
.section-heading--light .section-copy {
  color: var(--ink);
}

.section-heading--light .eyebrow {
  color: var(--blue);
}

.section-copy {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading--light .section-copy {
  color: var(--muted-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  color: var(--cyan);
  font-weight: 700;
}

.text-link:hover {
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-lg {
  padding: 1rem 1.6rem;
}

.btn-primary {
  color: var(--white);
  background: var(--gradient);
  box-shadow: 0 10px 30px rgba(47, 107, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.4);
}

.btn-ghost {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-light:hover {
  background: #e8eef8;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(5, 7, 15, 0.72);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 15, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.header-scroll-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  pointer-events: none;
}

.header-scroll-line span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--gradient);
  transition: transform 0.08s linear;
  will-change: transform;
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

.brand-logo--light {
  display: none;
}

.nav {
  margin-left: auto;
}

.nav-list {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-underline {
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
  transform: translateX(0);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), width 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.nav-underline.is-ready {
  opacity: 1;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-expanded="true"],
.nav-link.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.has-mega {
  position: relative;
}

.mega {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 320px;
  padding: 0.75rem;
  border-radius: 16px;
  background: #0d1526;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.35rem;
}

.mega[hidden] {
  display: none;
}

.mega a {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
}

.mega a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mega strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.mega span {
  color: var(--muted);
  font-size: 0.88rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  padding: 0;
  place-items: center;
  gap: 5px;
  flex-direction: column;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

/* Hero */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: grid;
  align-items: end;
  padding: 7rem 0 5.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 45% at 85% 15%, rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(47, 107, 255, 0.22), transparent 60%),
    linear-gradient(180deg, #05070f 0%, #070b18 55%, #05070f 100%);
  overflow: hidden;
}

.hero-banner {
  position: absolute;
  inset: 0;
  background:
    url("../assets/images/hero-banner.jpg") center / cover no-repeat;
  opacity: 0.34;
  transform: scale(1.06);
  filter: saturate(1.2) contrast(1.08);
  will-change: transform;
  transition: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.82;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5, 7, 15, 0.9) 0%, rgba(5, 7, 15, 0.62) 46%, rgba(5, 7, 15, 0.4) 100%),
    linear-gradient(180deg, rgba(5, 7, 15, 0.5) 0%, transparent 42%, rgba(5, 7, 15, 0.78) 100%);
  pointer-events: none;
}

@keyframes heroBannerDrift {
  from {
    transform: scale(1.06) translate3d(-1.2%, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(1.4%, -1%, 0);
  }
}

.hero-orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: drift 12s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner {
    transform: scale(1.06) !important;
  }
}

.hero-orb--one {
  width: 280px;
  height: 280px;
  left: 8%;
  top: 18%;
  background: rgba(124, 58, 237, 0.45);
}

.hero-orb--two {
  width: 340px;
  height: 340px;
  right: 6%;
  top: 8%;
  background: rgba(34, 211, 238, 0.28);
  animation-delay: -4s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    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: 72px 72px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 75%);
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  animation: rise 0.9s ease both;
}

.hero-brand {
  width: min(420px, 88vw);
  margin-bottom: 2rem;
  filter: drop-shadow(0 12px 40px rgba(47, 107, 255, 0.25));
  animation: floaty 6s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  max-width: 15ch;
  margin-bottom: 1.15rem;
  color: #ffffff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.hero-lead {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin-bottom: 2rem;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Outcomes */
.outcomes {
  padding: 0 0 1rem;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

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

.outcome {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(11, 18, 32, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.35rem;
  min-height: 100%;
  display: grid;
  gap: 0.85rem;
  align-content: start;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.outcome:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
}

.outcome h2 {
  font-size: 1.25rem;
}

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

.outcome a {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.92rem;
}

/* Testimonials */
.testimonials {
  padding: 6rem 0;
}

.testimonials .main-container {
  width: min(100% - 2.5rem, var(--container));
  max-width: var(--container);
}

.testimonials .section-heading {
  max-width: none;
}

.testimonials .testimonial-slider {
  width: 100%;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.16), transparent 40%),
    linear-gradient(180deg, #0d1526, #0a1020);
  border: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 4vw, 3.5rem);
  height: 460px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.testimonial-track {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 320px;
  width: 100%;
}

.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
}

.testimonial.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: none;
  width: 100%;
  align-self: center;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  width: 100%;
}

.testimonial-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 3px solid transparent;
  background:
    linear-gradient(#0b1220, #0b1220) padding-box,
    linear-gradient(135deg, #7c3aed, #22d3ee) border-box;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.testimonial-meta {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.testimonial strong {
  font-size: 1.05rem;
}

.testimonial span {
  color: var(--muted);
  font-size: 0.95rem;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1.25rem;
  flex-shrink: 0;
}

.slider-controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

.slider-controls button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.slider-dots {
  display: flex;
  gap: 0.45rem;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.slider-dots button[aria-current="true"] {
  background: var(--cyan);
  width: 22px;
  border-radius: 999px;
}

/* Services */
.services {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 6.5rem 0;
  background:
    radial-gradient(ellipse at top right, rgba(47, 107, 255, 0.08), transparent 40%),
    var(--surface);
  color: var(--ink);
}

.services > .container {
  position: relative;
  z-index: 1;
}

.section-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.section-canvas--light {
  opacity: 0.85;
}

.section-canvas--dark {
  opacity: 0.9;
  mix-blend-mode: screen;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.8rem 1.55rem;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line-dark);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px rgba(15, 23, 42, 0.12);
}

.service-icon {
  width: 56px;
  height: 56px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.45rem;
  color: var(--ink);
}

.service-card > p {
  color: var(--muted-dark);
}

.service-card ul {
  display: grid;
  gap: 0.55rem;
}

.service-card li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

.service-card .text-link {
  color: var(--blue);
}

.service-card .text-link:hover {
  color: var(--purple);
}

/* Approach */
.approach {
  padding: 6.5rem 0;
  background: var(--bg);
}

.approach-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

.approach-copy h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}

.approach-copy > p {
  color: var(--muted);
  margin-bottom: 1.4rem;
  max-width: 48ch;
}

.checklist {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.checklist li {
  position: relative;
  padding-left: 1.7rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.15);
}

.approach-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.step {
  padding: 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.step span {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

/* Agents banner */
.agents-banner {
  padding: 1rem 0 6rem;
}

.agents-inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2.2rem, 4.5vw, 3.4rem);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(124, 58, 237, 0.88), rgba(47, 107, 255, 0.82) 45%, rgba(14, 165, 233, 0.8));
  box-shadow: 0 24px 60px rgba(47, 107, 255, 0.28);
}

.agents-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.95;
}

.agents-banner-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(20, 10, 50, 0.72), rgba(10, 30, 80, 0.55)),
    url("../assets/images/agents-banner.jpg") center / cover no-repeat;
  transform: scale(1.03);
}

.agents-banner-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.agents-inner > .btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.agents-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  max-width: 16ch;
  margin-bottom: 0.8rem;
}

.agents-inner p:not(.eyebrow) {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.9);
}

.agents-inner .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

/* Industries */
.industries {
  padding: 6rem 0;
  background: #08101d;
}

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

.industry {
  display: grid;
  gap: 0.7rem;
  padding: 1.6rem 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  min-height: 170px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.industry:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.12), transparent);
}

.industry h3 {
  font-size: 1.2rem;
}

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

/* Case studies */
.case-studies {
  padding: 6.5rem 0;
  background:
    linear-gradient(180deg, #eef3f9 0%, #f7f9fc 48%, #eef3f9 100%);
  color: var(--ink);
}

.case-studies-heading .section-copy {
  color: var(--muted-dark);
}

.case-studies-heading .eyebrow {
  color: #5b21b6;
}

.case-study-slider {
  position: relative;
  margin-top: 2.5rem;
  height: 460px;
  padding: 0;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid rgba(7, 17, 31, 0.08);
  box-shadow: 0 18px 40px rgba(7, 17, 31, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.case-study-track {
  position: relative;
  height: 392px;
  flex: 0 0 392px;
  overflow: hidden;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.case-study-track::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(105deg, transparent 20%, rgba(124, 58, 237, 0.28) 48%, rgba(34, 211, 238, 0.3) 52%, transparent 80%);
  mix-blend-mode: screen;
}

.case-study-track.is-swiping::before {
  animation: caseSwipeFlare 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.case-study-track::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.35), 0 0 40px rgba(124, 58, 237, 0.25);
}

.case-study-track.is-swiping::after {
  animation: caseGlowPulse 0.85s ease both;
}

@keyframes caseSwipeFlare {
  0% {
    opacity: 0;
    transform: translateX(-55%) skewX(-12deg);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(55%) skewX(-12deg);
  }
}

@keyframes caseGlowPulse {
  0%,
  100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}

@keyframes caseExitLeft {
  0% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
    clip-path: inset(0 0 0 0 round 0);
  }
  100% {
    opacity: 0;
    filter: blur(10px) saturate(0.7);
    transform: translateX(-18%) translateZ(-80px) rotateY(18deg) scale(0.92);
    clip-path: inset(4% 18% 4% 0 round 18px);
  }
}

@keyframes caseExitRight {
  0% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
    clip-path: inset(0 0 0 0 round 0);
  }
  100% {
    opacity: 0;
    filter: blur(10px) saturate(0.7);
    transform: translateX(18%) translateZ(-80px) rotateY(-18deg) scale(0.92);
    clip-path: inset(4% 0 4% 18% round 18px);
  }
}

@keyframes caseEnterLeft {
  0% {
    opacity: 0;
    filter: blur(12px) saturate(1.2);
    transform: translateX(-22%) translateZ(-120px) rotateY(-22deg) scale(0.88);
    clip-path: inset(8% 0 8% 22% round 22px);
  }
  60% {
    opacity: 1;
    filter: blur(0) saturate(1.05);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
    clip-path: inset(0 0 0 0 round 0);
  }
}

@keyframes caseEnterRight {
  0% {
    opacity: 0;
    filter: blur(12px) saturate(1.2);
    transform: translateX(22%) translateZ(-120px) rotateY(22deg) scale(0.88);
    clip-path: inset(8% 22% 8% 0 round 22px);
  }
  60% {
    opacity: 1;
    filter: blur(0) saturate(1.05);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
    clip-path: inset(0 0 0 0 round 0);
  }
}

@keyframes caseMediaReveal {
  0% {
    transform: scale(1.18) translateX(8%);
    filter: brightness(1.35) contrast(1.1);
  }
  100% {
    transform: scale(1) translateX(0);
    filter: brightness(1) contrast(1);
  }
}

@keyframes caseBodyRise {
  0% {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes caseMetricPop {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.case-study {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 40% minmax(0, 60%);
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(48px) scale(0.96);
  transform-origin: center center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter, clip-path;
  pointer-events: none;
  height: 100%;
  z-index: 1;
}

.case-study.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 3;
}

.case-study.is-exit-left {
  visibility: visible;
  z-index: 2;
  animation: caseExitLeft 0.78s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.case-study.is-exit-right {
  visibility: visible;
  z-index: 2;
  animation: caseExitRight 0.78s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.case-study.is-enter-left {
  visibility: visible;
  z-index: 4;
  animation: caseEnterLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.case-study.is-enter-right {
  visibility: visible;
  z-index: 4;
  animation: caseEnterRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.case-study.is-enter-left .case-study-media,
.case-study.is-enter-right .case-study-media {
  animation: caseMediaReveal 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.case-study.is-enter-left .case-study-body > *:not(.case-outcomes),
.case-study.is-enter-right .case-study-body > *:not(.case-outcomes) {
  animation: caseBodyRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.case-study.is-enter-left .case-study-body > *:nth-child(1),
.case-study.is-enter-right .case-study-body > *:nth-child(1) {
  animation-delay: 0.12s;
}

.case-study.is-enter-left .case-study-body > *:nth-child(2),
.case-study.is-enter-right .case-study-body > *:nth-child(2) {
  animation-delay: 0.2s;
}

.case-study.is-enter-left .case-study-body > *:nth-child(3),
.case-study.is-enter-right .case-study-body > *:nth-child(3) {
  animation-delay: 0.28s;
}

.case-study.is-enter-left .case-study-body > *:nth-child(5),
.case-study.is-enter-right .case-study-body > *:nth-child(5) {
  animation-delay: 0.42s;
}

.case-study.is-enter-left .case-outcomes--row > div,
.case-study.is-enter-right .case-outcomes--row > div {
  animation: caseMetricPop 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.case-study.is-enter-left .case-outcomes--row > div:nth-child(1),
.case-study.is-enter-right .case-outcomes--row > div:nth-child(1) {
  animation-delay: 0.32s;
}

.case-study.is-enter-left .case-outcomes--row > div:nth-child(2),
.case-study.is-enter-right .case-outcomes--row > div:nth-child(2) {
  animation-delay: 0.4s;
}

.case-study.is-enter-left .case-outcomes--row > div:nth-child(3),
.case-study.is-enter-right .case-outcomes--row > div:nth-child(3) {
  animation-delay: 0.48s;
}

@media (prefers-reduced-motion: reduce) {
  .case-study-track::before,
  .case-study-track::after,
  .case-study.is-exit-left,
  .case-study.is-exit-right,
  .case-study.is-enter-left,
  .case-study.is-enter-right,
  .case-study.is-enter-left .case-study-media,
  .case-study.is-enter-right .case-study-media,
  .case-study.is-enter-left .case-study-body > *,
  .case-study.is-enter-right .case-study-body > *,
  .case-study.is-enter-left .case-outcomes--row > div,
  .case-study.is-enter-right .case-outcomes--row > div {
    animation: none !important;
  }

  .case-study {
    transition: opacity 0.25s ease;
  }

  .case-media-track img.is-active,
  .case-study-media--ui .case-media-track img.is-active {
    animation: none !important;
  }
}

.case-study-media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b1220;
}

.case-study-media--ui {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(167, 139, 250, 0.38), transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(99, 102, 241, 0.3), transparent 50%),
    linear-gradient(160deg, #1a1038 0%, #3b1d8f 48%, #1e1248 100%);
}

.case-study-media--ui .case-media-track img {
  object-fit: cover;
  object-position: center 42%;
  transform-origin: center center;
}

.case-media-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.case-media-track {
  position: absolute;
  inset: 0;
}

.case-media-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: translateX(28px) scale(1.06);
  transition:
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.case-media-track img.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 2;
  animation: case-media-ken 7.5s ease-out both;
}

.case-media-track img.is-exit {
  opacity: 0;
  transform: translateX(-24px) scale(1.03);
  z-index: 2;
  animation: none;
}

@keyframes case-media-ken {
  from { transform: translateX(0) scale(1.05); }
  to { transform: translateX(0) scale(1); }
}

.case-study-media--ui .case-media-track img.is-active {
  animation: case-media-ken-ui 8s ease-out both;
}

@keyframes case-media-ken-ui {
  from { transform: translateX(0) scale(1.04); }
  to { transform: translateX(0) scale(1); }
}

.case-study-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(90deg, transparent 55%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}

.case-study-media--ui::after {
  background:
    linear-gradient(180deg, rgba(10, 6, 28, 0.08) 0%, transparent 22%, transparent 72%, rgba(10, 6, 28, 0.22) 100%),
    linear-gradient(90deg, transparent 60%, rgba(255, 255, 255, 0.06) 100%);
}

.case-media-controls {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.case-media-dots {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  pointer-events: auto;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(5, 7, 15, 0.4);
  backdrop-filter: blur(8px);
}

.case-media-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.case-media-dots button[aria-current="true"] {
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, #7c3aed, #22d3ee);
}

.case-study-body {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.45rem 1.55rem 1.25rem;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.case-study-body .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

.case-outcomes--row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.case-outcomes--row > div {
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  background: rgba(7, 17, 31, 0.03);
  border: 1px solid rgba(7, 17, 31, 0.06);
}

.case-outcomes--row dt {
  font-size: 1.35rem;
}

.case-outcomes--row dd {
  font-size: 0.82rem;
}

.case-slider-controls {
  flex: 0 0 68px;
  height: 68px;
  margin: 0;
  padding: 0 1.25rem;
  border-top: 1px solid rgba(7, 17, 31, 0.08);
  box-sizing: border-box;
}

.case-slider-controls button {
  border-color: rgba(7, 17, 31, 0.14);
  color: var(--ink);
  background: rgba(7, 17, 31, 0.02);
}

.case-slider-controls button:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.35);
}

.case-slider-controls .slider-dots button {
  background: rgba(7, 17, 31, 0.18);
}

.case-slider-controls .slider-dots button[aria-current="true"] {
  background: linear-gradient(120deg, #7c3aed, #22d3ee);
}

.case-study-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  align-items: baseline;
}

.case-study-client {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.case-study-tags {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.case-study h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  max-width: 18ch;
}

.case-study-challenge {
  color: var(--muted-dark);
  max-width: 54ch;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-outcomes {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.case-outcomes > div {
  display: grid;
  gap: 0.15rem;
}

.case-outcomes dt {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.case-outcomes dd {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.9rem;
  line-height: 1.4;
}

.case-summary {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.35rem;
  margin-top: 2rem;
  align-items: stretch;
}

.case-summary-copy {
  padding: clamp(2rem, 4vw, 2.75rem);
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(7, 17, 31, 0.94), rgba(15, 23, 42, 0.96)),
    var(--ink);
  color: var(--white);
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.case-summary-copy .eyebrow {
  color: var(--cyan);
}

.case-summary-copy h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  max-width: 14ch;
}

.case-summary-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  max-width: 42ch;
}

.case-summary-copy .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

.metric-stack {
  display: grid;
  gap: 1rem;
}

.metric {
  padding: 1.5rem 1.4rem;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line-dark);
  display: grid;
  gap: 0.45rem;
}

.metric strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric span {
  color: var(--muted-dark);
}

/* About */
.about {
  padding: 6.5rem 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.about-layout h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}

.about-layout p {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 58ch;
}

.about-facts {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.about-facts > div {
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.about-facts dt {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.about-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Contact */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 6rem 0 7rem;
  background:
    radial-gradient(ellipse at bottom left, rgba(124, 58, 237, 0.18), transparent 45%),
    #070b16;
}

.contact > .container {
  position: relative;
  z-index: 1;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-copy h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 1rem;
}

.contact-copy > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 46ch;
}

.contact-points {
  display: grid;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  margin-bottom: 1.35rem;
}

.contact-points a {
  color: var(--cyan);
}

.contact-address {
  font-style: normal;
  line-height: 1.55;
}

.contact-map {
  position: relative;
  width: 100%;
  max-width: 34rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 15, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.contact-map-link {
  display: block;
  line-height: 0;
}

.contact-map img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 825;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  filter: saturate(0.95) contrast(1.04);
}

.contact-map-link:hover img,
.contact-map-link:focus-visible img {
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.06);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.form-row {
  display: grid;
  gap: 0.45rem;
}

.form-row label {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 15, 0.65);
  color: var(--white);
  padding: 0.9rem 1rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input,
.form-row textarea {
  -webkit-appearance: none;
  appearance: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

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

.form-status {
  min-height: 1.25rem;
  color: var(--cyan);
  font-weight: 600;
}

.form-status.is-error {
  color: #fb7185;
}

.field-error {
  margin: 0;
  color: #fb7185;
  font-size: 0.86rem;
  font-weight: 600;
}

.form-row.is-invalid input,
.form-row.is-invalid select,
.form-row.is-invalid textarea {
  border-color: #fb7185;
}

.form-row.is-invalid input:focus,
.form-row.is-invalid select:focus,
.form-row.is-invalid textarea:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.18);
}

/* Success modal */
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.site-modal[hidden] {
  display: none;
}

.site-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.site-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse at top right, rgba(34, 211, 238, 0.12), transparent 45%),
    radial-gradient(ellipse at bottom left, rgba(124, 58, 237, 0.16), transparent 50%),
    #0b1220;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  text-align: center;
  animation: modalIn 0.28s ease both;
}

.site-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
}

.site-modal__icon svg {
  width: 100%;
  height: 100%;
}

.site-modal__dialog h2 {
  font-size: 1.55rem;
  margin-bottom: 0.65rem;
}

.site-modal__body {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

.site-modal__meta {
  margin: 0 0 1.4rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 600;
  word-break: break-all;
}

.site-modal__dialog .btn {
  min-width: 140px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.modal-open {
  overflow: hidden;
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
  background: #04060c;
}

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

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
}

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

.site-footer h3 {
  font-size: 0.92rem;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer li + li {
  margin-top: 0.55rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

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

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

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-legal-links a:hover {
  color: var(--cyan);
}

/* Legal pages */
.legal-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 2.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% 10%, rgba(34, 211, 238, 0.12), transparent 50%),
    linear-gradient(180deg, #070b16 0%, #05070f 100%);
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.85rem);
  max-width: 16ch;
}

.legal-updated {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.legal-content {
  padding: 3.5rem 0 5rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 3rem;
  align-items: start;
}

.legal-body {
  max-width: 72ch;
}

.legal-body > p:first-child {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.legal-body h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.legal-body p,
.legal-body li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-body p + p {
  margin-top: 0.85rem;
}

.legal-body ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.2rem;
}

.legal-body li + li {
  margin-top: 0.4rem;
}

.legal-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-body a:hover {
  color: #fff;
}

.legal-aside {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.7rem;
}

.legal-aside .eyebrow {
  margin-bottom: 0.15rem;
}

.legal-aside a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.legal-aside a:hover {
  color: var(--cyan);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
    order: -1;
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(18px, -16px) scale(1.08);
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .outcomes-grid,
  .service-grid,
  .industry-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .case-study-slider {
    height: 520px;
  }

  .case-study-track {
    height: 452px;
    flex-basis: 452px;
  }

  .case-study {
    grid-template-columns: 40% minmax(0, 60%);
  }

  .agents-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .agents-inner > .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 68px;
  }

  .container,
  .main-container {
    width: min(100% - 1.75rem, var(--container));
  }

  .brand-logo {
    height: 36px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    max-height: min(78vh, calc(100dvh - var(--header-h)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(5, 7, 15, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 1rem 1.15rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  }

  body.nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-underline {
    display: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    min-height: 44px;
  }

  .mega {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
    box-shadow: none;
    border-radius: 14px;
  }

  .header-actions .btn {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 5.5rem 0 3.25rem;
    align-items: center;
  }

  .hero-banner {
    background-position: 62% center;
  }

  .hero-canvas {
    opacity: 0.7;
  }

  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(5, 7, 15, 0.72) 0%, rgba(5, 7, 15, 0.55) 38%, rgba(5, 7, 15, 0.88) 100%),
      linear-gradient(90deg, rgba(5, 7, 15, 0.82) 0%, rgba(5, 7, 15, 0.55) 55%, rgba(5, 7, 15, 0.45) 100%);
  }

  .hero-brand {
    width: min(300px, 78vw);
    margin-bottom: 1.35rem;
  }

  .hero h1,
  .hero-lead {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65), 0 12px 36px rgba(0, 0, 0, 0.55);
  }

  .hero-cta {
    width: 100%;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 48px;
  }

  .hero-cta .btn-ghost {
    background: rgba(5, 7, 15, 0.45);
    border-color: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(8px);
  }

  .outcomes {
    margin-top: 0;
    padding: 0.5rem 0 0.25rem;
  }

  .testimonials,
  .services,
  .approach,
  .industries,
  .case-studies,
  .about,
  .contact {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .agents-banner {
    padding: 0.5rem 0 4rem;
  }

  .testimonial-slider {
    height: auto;
    min-height: 0;
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .testimonial-track {
    height: auto;
    min-height: 280px;
  }

  .testimonial {
    position: relative;
    inset: auto;
    opacity: 0;
    pointer-events: none;
    display: none;
    transform: none;
    height: auto;
  }

  .testimonial.is-active {
    display: grid;
    opacity: 1;
    pointer-events: auto;
  }

  .testimonial blockquote {
    font-size: clamp(1.15rem, 4.6vw, 1.45rem);
    align-self: start;
  }

  .slider-controls {
    padding-top: 1rem;
  }

  .case-study-slider {
    height: 580px;
  }

  .case-study-track {
    height: 512px;
    flex-basis: 512px;
  }

  .case-study {
    grid-template-columns: 1fr;
    grid-template-rows: 42% minmax(0, 58%);
  }

  .case-media-controls {
    bottom: 0.55rem;
    left: 0.55rem;
    right: 0.55rem;
  }

  .case-study-body {
    padding: 1.1rem 1.15rem 1rem;
    gap: 0.55rem;
  }

  .case-outcomes--row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .case-outcomes--row dt {
    font-size: 1.1rem;
  }

  .case-outcomes--row dd {
    font-size: 0.72rem;
  }

  .case-summary-copy {
    padding: 1.6rem 1.35rem;
  }

  .contact {
    padding-bottom: 5rem;
  }

  .contact-map {
    max-width: 100%;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .contact-form .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .site-modal {
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
    align-items: end;
  }

  .site-modal__dialog {
    width: 100%;
    padding: 1.6rem 1.25rem 1.35rem;
    border-radius: 20px 20px 16px 16px;
  }

  .legal-hero {
    padding: calc(var(--header-h) + 2.25rem) 0 1.75rem;
  }

  .legal-content {
    padding: 2.5rem 0 3.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
}

@media (max-width: 640px) {
  .container,
  .main-container {
    width: min(100% - 1.35rem, var(--container));
  }

  .outcomes-grid,
  .service-grid,
  .industry-grid,
  .approach-steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 5rem 0 2.75rem;
  }

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

  .hero-lead {
    font-size: 1.02rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .outcome {
    padding: 1.35rem 1.2rem 1.2rem;
  }

  .testimonial-track {
    min-height: 240px;
  }

  .testimonial-avatar {
    width: 56px;
    height: 56px;
  }

  .testimonial figcaption {
    gap: 0.75rem;
  }

  .testimonial span {
    font-size: 0.88rem;
  }

  .section-heading h2,
  .approach-copy h2,
  .about-layout h2,
  .contact-copy h2 {
    font-size: clamp(1.7rem, 7.5vw, 2.25rem);
  }

  .agents-inner {
    padding: 1.6rem 1.25rem;
    border-radius: 22px;
  }

  .case-study-top {
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  .site-footer {
    padding: 3rem 0 1.75rem;
  }
}

@media (max-width: 400px) {
  .btn-lg {
    padding-inline: 1.15rem;
  }

  .metric strong,
  .case-outcomes dt {
    font-size: 1.45rem;
  }
}

/* Case detail pages */
.case-detail-hero {
  padding: calc(var(--header-h) + 3rem) 0 2.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% 10%, rgba(34, 211, 238, 0.12), transparent 50%),
    linear-gradient(180deg, #070b16 0%, #05070f 100%);
  border-bottom: 1px solid var(--line);
}

.case-detail-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
}

.case-detail-hero .breadcrumb a:hover {
  color: var(--cyan);
}

.case-detail-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 16ch;
  margin: 0.35rem 0 0.85rem;
}

.case-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  color: var(--muted);
}

.case-detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
  padding: 3.5rem 0 5rem;
  align-items: start;
}

.case-detail-aside {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  display: grid;
  gap: 1rem;
}

.case-detail-portrait {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  background: #0b1220;
}

.case-detail-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.case-detail-card {
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.case-detail-card .eyebrow {
  margin-bottom: 0.35rem;
}

.case-detail-card strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}

.case-detail-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.case-detail-body h2 {
  margin: 2rem 0 0.85rem;
  font-size: 1.35rem;
}

.case-detail-body h2:first-child {
  margin-top: 0;
}

.case-detail-body p,
.case-detail-body li {
  color: var(--muted);
  line-height: 1.7;
}

.case-detail-body p + p {
  margin-top: 0.85rem;
}

.case-detail-body ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.case-detail-body li + li {
  margin-top: 0.4rem;
}

.case-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 0.5rem;
}

.case-detail-metrics > div {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.case-detail-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.25rem;
}

.case-detail-metrics span {
  color: var(--muted);
  font-size: 0.9rem;
}

.case-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .case-detail-layout {
    grid-template-columns: 1fr;
  }

  .case-detail-aside {
    position: static;
    grid-template-columns: 160px 1fr;
    align-items: center;
  }

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

@media (max-width: 640px) {
  .case-detail-aside {
    grid-template-columns: 1fr;
  }
}

/* Analytics consent */
.analytics-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 400;
  max-width: 560px;
  margin-inline: auto;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 11, 22, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.analytics-consent__inner {
  display: grid;
  gap: 0.9rem;
}

.analytics-consent__inner p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  line-height: 1.5;
}

.analytics-consent__inner a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.analytics-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.analytics-consent__actions .btn {
  min-height: 42px;
}

@media (max-width: 640px) {
  .analytics-consent {
    left: 0.75rem;
    right: 0.75rem;
  }

  .analytics-consent__actions {
    justify-content: stretch;
  }

  .analytics-consent__actions .btn {
    flex: 1 1 auto;
  }
}

/* ===== Japan expansion page ===== */
.japan-page {
  --jp-sumi: #060910;
  --jp-indigo: #14233a;
  --jp-ink: #f4f1ea;
  --jp-muted: #a8b4c6;
  --jp-lacquer: #c45c3e;
  --jp-line: rgba(244, 241, 234, 0.12);
  --jp-serif: "Shippori Mincho", "Noto Serif JP", Georgia, serif;
  --jp-sans: "Zen Kaku Gothic New", "Noto Sans JP", Manrope, sans-serif;
  color: var(--jp-ink);
  background: var(--jp-sumi);
  overflow-x: clip;
}

.japan-page h1,
.japan-page h2,
.japan-page h3 {
  font-family: var(--jp-serif);
  letter-spacing: 0.01em;
  font-weight: 600;
}

.japan-page p,
.japan-page li,
.japan-page figcaption,
.japan-page .btn {
  font-family: var(--jp-sans);
}

.jp-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--jp-lacquer);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: none;
}

.jp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  color: var(--jp-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.jp-kicker__jp {
  color: var(--jp-ink);
  font-family: var(--jp-serif);
  font-weight: 600;
  letter-spacing: 0.2em;
}

.jp-kicker__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jp-lacquer);
  box-shadow: 0 0 0 4px rgba(196, 92, 62, 0.18);
}

.jp-anim {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--jp-delay, 0ms);
}

.jp-anim.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
.jp-hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
  isolation: isolate;
}

.jp-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.jp-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.08);
  animation: jpKen 22s ease-in-out infinite alternate;
  filter: saturate(0.92) contrast(1.05);
}

.jp-hero__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 9, 16, 0.92) 8%, rgba(6, 9, 16, 0.55) 48%, rgba(6, 9, 16, 0.78) 100%),
    linear-gradient(180deg, rgba(6, 9, 16, 0.35) 0%, rgba(6, 9, 16, 0.88) 100%);
}

.jp-hero__seigaiha {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='40' viewBox='0 0 80 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40c20 0 20-20 40-20s20 20 40 20' fill='none' stroke='%23f4f1ea' stroke-width='1'/%3E%3Cpath d='M0 20c20 0 20-20 40-20s20 20 40 20' fill='none' stroke='%23f4f1ea' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 40px;
  animation: jpSeigaiha 28s linear infinite;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.jp-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: jpFloat 10s ease-in-out infinite;
}

.jp-hero__orb--a {
  width: 280px;
  height: 280px;
  top: 18%;
  right: 12%;
  background: rgba(196, 92, 62, 0.22);
}

.jp-hero__orb--b {
  width: 360px;
  height: 360px;
  bottom: 8%;
  left: 6%;
  background: rgba(45, 90, 140, 0.28);
  animation-delay: -4s;
}

.jp-hero__content {
  position: relative;
  max-width: 760px;
  z-index: 1;
}

.jp-hero__title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.35rem, 5.4vw, 4.1rem);
  line-height: 1.12;
  max-width: 14ch;
}

.jp-hero__title-accent {
  display: inline;
  background: linear-gradient(120deg, #f4f1ea 0%, #e8b39a 55%, #c45c3e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.jp-hero__lead {
  margin: 0 0 1.75rem;
  max-width: 48ch;
  color: var(--jp-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.jp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.jp-hero__vertical {
  position: absolute;
  top: calc(var(--header-h) + 2.5rem);
  right: clamp(1rem, 4vw, 2.5rem);
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--jp-serif);
  font-size: 1.05rem;
  letter-spacing: 0.45em;
  color: rgba(244, 241, 234, 0.55);
  animation: jpVerticalFade 1.4s ease 0.4s both;
}

/* Intro */
.jp-intro {
  padding: 5.5rem 0 4rem;
  background:
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(196, 92, 62, 0.08), transparent 55%),
    var(--jp-sumi);
}

.jp-intro__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.jp-intro__copy h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.25;
  max-width: 18ch;
}

.jp-intro__copy p {
  color: var(--jp-muted);
  line-height: 1.75;
}

.jp-intro__copy p + p {
  margin-top: 1rem;
}

.jp-intro__figure {
  margin: 0;
  position: relative;
  border-radius: 4px 28px 4px 28px;
  overflow: hidden;
  border: 1px solid var(--jp-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.jp-intro__figure::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(196, 92, 62, 0.35);
  border-radius: 2px 20px 2px 20px;
  pointer-events: none;
  z-index: 1;
}

.jp-intro__figure img {
  display: block;
  width: 100%;
  height: min(62vh, 560px);
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.jp-intro__figure:hover img {
  transform: scale(1.04);
}

.jp-intro__figure figcaption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  z-index: 2;
  padding: 0.35rem 0.7rem;
  background: rgba(6, 9, 16, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--jp-line);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.jp-intro__figure figcaption span {
  font-family: var(--jp-serif);
  color: var(--jp-lacquer);
  margin-right: 0.35rem;
}

/* Mosaic */
.jp-mosaic {
  padding: 2rem 0 5rem;
}

.jp-mosaic__head {
  margin-bottom: 2rem;
}

.jp-mosaic__head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  max-width: 22ch;
}

.jp-mosaic__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

.jp-mosaic__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--jp-line);
  min-height: 240px;
  background: var(--jp-indigo);
}

.jp-mosaic__item--wide {
  min-height: 300px;
}

.jp-mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: saturate(0.95);
}

.jp-mosaic__item:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.jp-mosaic__item figcaption {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  padding: 0.3rem 0.65rem;
  background: rgba(6, 9, 16, 0.7);
  border: 1px solid var(--jp-line);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.jp-mosaic__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 9, 16, 0.55) 100%);
  pointer-events: none;
}

/* Pillars */
.jp-focus {
  padding: 1rem 0 5rem;
  background:
    linear-gradient(180deg, transparent, rgba(20, 35, 58, 0.35) 30%, transparent 100%);
}

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

.jp-pillar {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--jp-line);
  background: linear-gradient(180deg, rgba(20, 35, 58, 0.55), rgba(6, 9, 16, 0.9));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.jp-pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 92, 62, 0.45);
}

.jp-pillar__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.jp-pillar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.jp-pillar:hover .jp-pillar__media img {
  transform: scale(1.06);
}

.jp-pillar__body {
  padding: 1.35rem 1.35rem 1.55rem;
}

.jp-pillar__jp {
  margin: 0 0 0.35rem;
  font-family: var(--jp-serif);
  color: var(--jp-lacquer);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.jp-pillar__body h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
}

.jp-pillar__body p {
  margin: 0;
  color: var(--jp-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Support */
.jp-support {
  padding: 2rem 0 5.5rem;
}

.jp-support__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.jp-support__copy h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  max-width: 16ch;
}

.jp-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jp-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.5rem;
  border-top: 1px solid var(--jp-line);
  color: var(--jp-muted);
  line-height: 1.55;
}

.jp-list li:last-child {
  border-bottom: 1px solid var(--jp-line);
}

.jp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jp-lacquer);
  box-shadow: 0 0 0 3px rgba(196, 92, 62, 0.2);
}

.jp-support__panel {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: 22px;
  border: 1px solid rgba(196, 92, 62, 0.35);
  background:
    radial-gradient(circle at 80% 0%, rgba(196, 92, 62, 0.18), transparent 50%),
    linear-gradient(160deg, #15253f, #0a101c 70%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.85rem;
}

.jp-support__mark {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  margin: 0;
  font-family: var(--jp-serif);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 1;
  color: rgba(244, 241, 234, 0.06);
  letter-spacing: 0.12em;
  animation: jpPulseSoft 5s ease-in-out infinite;
}

.jp-support__panel strong {
  font-family: var(--jp-serif);
  font-size: 1.45rem;
}

.jp-support__panel > p {
  margin: 0;
  color: var(--jp-muted);
  line-height: 1.65;
}

.jp-support__panel .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* CTA band */
.jp-cta {
  position: relative;
  padding: 5.5rem 0;
  isolation: isolate;
  overflow: hidden;
}

.jp-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.jp-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.45);
  animation: jpKen 26s ease-in-out infinite alternate;
}

.jp-cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 9, 16, 0.92), rgba(6, 9, 16, 0.7)),
    linear-gradient(180deg, rgba(6, 9, 16, 0.3), rgba(6, 9, 16, 0.85));
}

.jp-cta__inner {
  max-width: 720px;
}

.jp-cta__inner h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.25;
}

.jp-cta__inner > p {
  margin: 0 0 1.6rem;
  color: var(--jp-muted);
  max-width: 46ch;
  line-height: 1.7;
}

@keyframes jpKen {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@keyframes jpSeigaiha {
  from { background-position: 0 0; }
  to { background-position: 80px 40px; }
}

@keyframes jpFloat {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(-18px); opacity: 1; }
}

@keyframes jpVerticalFade {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes jpPulseSoft {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

@media (max-width: 960px) {
  .jp-intro__grid,
  .jp-support__layout,
  .jp-pillars,
  .jp-mosaic__grid {
    grid-template-columns: 1fr;
  }

  .jp-hero {
    min-height: auto;
    padding-bottom: 3.5rem;
  }

  .jp-hero__vertical {
    display: none;
  }

  .jp-intro__figure img {
    height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jp-hero__img,
  .jp-cta__bg img,
  .jp-hero__seigaiha,
  .jp-hero__orb,
  .jp-support__mark {
    animation: none !important;
  }

  .jp-anim {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .jp-intro__figure img,
  .jp-mosaic__item img,
  .jp-pillar__media img {
    transition: none !important;
  }
}

/* ===== Admin leads ===== */
.admin-page .admin-layout {
  max-width: 820px;
}

.admin-auth {
  margin-bottom: 2rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elevated);
}

.admin-auth label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-auth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.admin-auth-row input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0a1020;
  color: var(--white);
  font: inherit;
}

.admin-hint {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-hint code {
  font-size: 0.85em;
}

.admin-error {
  color: #f87171;
  margin: 0 0 1rem;
}

.admin-leads {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.admin-lead {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 18, 32, 0.85);
}

.admin-lead-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.admin-lead-top span {
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-lead p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.admin-lead-msg {
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.55;
  white-space: pre-wrap;
}

.admin-lead a {
  color: var(--cyan);
}
