/* ============ UIMM — Base styles ============ */
:root {
  /* Palette A — Deep Ocean (default, from logo) */
  --bg: #F6F8FC;
  --bg-elevated: #FFFFFF;
  --ink: #05102A;
  --ink-2: #2A3756;
  --muted: #6C7B99;
  --line: rgba(5, 16, 42, 0.08);
  --line-2: rgba(5, 16, 42, 0.14);

  --blue-900: #000B51;
  --blue-800: #000BC7;
  --blue-700: #0038D0;
  --blue-600: #005DD3;
  --blue-500: #1E79DB;
  --blue-400: #009DDC;
  --blue-200: #B8DCF5;
  --blue-50: #EAF3FC;

  --accent: var(--blue-700);
  --accent-2: var(--blue-400);

  --grad: linear-gradient(135deg, #000BC7 0%, #005DD3 45%, #009DDC 100%);
  --grad-soft: radial-gradient(120% 120% at 0% 0%, #EAF3FC 0%, #F6F8FC 55%, #F6F8FC 100%);

  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-sans: 'Inter Tight', 'Inter', system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;

  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 64px);
}

/* palette variants */
[data-palette="B"] {
  --bg: #FFFFFF;
  --ink: #041027;
  --blue-900: #021B3E;
  --blue-800: #0A2B66;
  --blue-700: #1246A8;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-400: #60A5FA;
  --blue-200: #C7DDF9;
  --blue-50: #EEF4FC;
  --accent: #1246A8;
  --accent-2: #2563EB;
  --grad: linear-gradient(135deg, #021B3E 0%, #1246A8 45%, #2563EB 100%);
  --grad-soft: radial-gradient(120% 120% at 0% 0%, #EEF4FC 0%, #FFFFFF 55%, #FFFFFF 100%);
}
[data-palette="C"] {
  --bg: #0A1226;
  --bg-elevated: #0F1A36;
  --ink: #F1F5FF;
  --ink-2: #C9D4EE;
  --muted: #8A99BE;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --blue-900: #05091C;
  --blue-800: #0A2560;
  --blue-700: #1C49B8;
  --blue-600: #2F6CE6;
  --blue-500: #4D8CFF;
  --blue-400: #76B6FF;
  --blue-200: #A9CEFF;
  --blue-50: rgba(118,182,255,0.12);
  --accent: #4D8CFF;
  --accent-2: #76B6FF;
  --grad: linear-gradient(135deg, #1C49B8 0%, #2F6CE6 50%, #76B6FF 100%);
  --grad-soft: radial-gradient(120% 120% at 0% 0%, rgba(77,140,255,0.18) 0%, #0A1226 55%, #0A1226 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (hover: none) { body { cursor: auto; } .magnetic-cursor { display: none !important; } }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }

/* Display / sans utility */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--bg-elevated) 75%, transparent);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
  backdrop-filter: blur(8px);
}
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent-2) 30%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.4);} }

/* Magnetic cursor */
.magnetic-cursor {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-2);
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, background .25s ease;
}
.magnetic-cursor.hover {
  width: 54px; height: 54px; background: var(--accent);
}
.magnetic-ring {
  position: fixed; pointer-events: none; z-index: 9998;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  transform: translate(-50%, -50%);
  transition: transform .18s ease;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background .3s ease, color .3s ease;
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--bg);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px color-mix(in oklab, var(--ink) 35%, transparent); }
.btn .arr { transition: transform .3s ease; display:inline-block; }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--gradient {
  background: var(--grad); color: #fff; border: 0;
}

/* Reveal primitive */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .95s cubic-bezier(.16,1,.3,1), transform .95s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; will-change: auto; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* Word/char split reveal */
.split .word { display: inline-block; overflow: hidden; margin-right: 0.22em; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; line-height: 1.05; }
.split .word .inner {
  display: inline-block; transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1);
}
.split.in .word .inner { transform: translateY(0); }

.char-split .char {
  display: inline-block;
  transform: translateY(40%);
  opacity: 0;
  transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .9s ease;
}
.char-split.in .char { transform: translateY(0); opacity: 1; }

/* Gradient mesh hero bg */
.mesh {
  position: absolute; inset: -20%;
  z-index: 0; pointer-events: none;
  filter: blur(60px) saturate(120%);
  opacity: .85;
}
.mesh::before, .mesh::after, .mesh span {
  content: ''; position: absolute; border-radius: 50%;
}
.mesh::before {
  width: 55vw; height: 55vw; left: -10%; top: -5%;
  background: radial-gradient(circle, color-mix(in oklab, var(--blue-700) 65%, transparent) 0%, transparent 65%);
  animation: float1 18s ease-in-out infinite;
}
.mesh::after {
  width: 60vw; height: 60vw; right: -15%; top: 10%;
  background: radial-gradient(circle, color-mix(in oklab, var(--blue-400) 70%, transparent) 0%, transparent 65%);
  animation: float2 22s ease-in-out infinite;
}
.mesh span {
  width: 45vw; height: 45vw; left: 25%; bottom: -25%;
  background: radial-gradient(circle, color-mix(in oklab, var(--blue-800) 60%, transparent) 0%, transparent 65%);
  animation: float3 26s ease-in-out infinite;
  display: block;
}
@keyframes float1 { 0%,100%{transform: translate(0,0) scale(1);} 50%{transform: translate(4%,3%) scale(1.08);} }
@keyframes float2 { 0%,100%{transform: translate(0,0) scale(1);} 50%{transform: translate(-5%,4%) scale(1.1);} }
@keyframes float3 { 0%,100%{transform: translate(0,0) scale(1);} 50%{transform: translate(3%,-4%) scale(1.12);} }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav .logo { height: 28px; }
.nav .logo img { height: 100%; }
.nav__links { display: flex; gap: 28px; align-items: center; font-size: 14px; color: var(--ink-2); }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 860px) { .nav__links { display: none; } }
.nav .cta { font-size: 13px; padding: 10px 18px; white-space: nowrap; }
@media (max-width: 520px) { .nav .cta span:first-child { display: none; } .nav .cta { padding: 10px 14px; } }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 100px; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1000px) {
  .hero__grid { gap: 50px; }
  .hero__grid > div:last-child { max-width: 640px; }
}
.hero h1 {
  font-size: clamp(44px, 7.2vw, 108px);
  margin: 22px 0 20px;
  letter-spacing: -0.02em;
  line-height: 0.92;
  word-spacing: -0.02em;
}
.hero .container :is(h1,h2) { color: var(--ink); }
.hero h1 .line {
  display: block;
  line-height: 0.95;
  overflow: hidden;
  padding: 0.05em 0 0.08em;
}
.hero h1 .line + .line { margin-top: 0.04em; }
.hero h1 .line-inner {
  display: inline-block;
  white-space: nowrap;
  transform: translateY(110%);
  opacity: 0;
  will-change: transform, opacity;
  animation: heroLineIn 1.15s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero h1 .line:nth-child(2) .line-inner { animation-delay: .22s; }
@keyframes heroLineIn {
  0%   { transform: translateY(110%); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateY(0);    opacity: 1; }
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  position: relative;
  display: inline-block;
  background-image: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 0.06em;
  background: var(--grad);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left center;
  animation: heroUnderline 1.4s 1.1s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes heroUnderline {
  to { transform: scaleX(1); }
}
.hero__sub {
  max-width: 600px; color: var(--ink-2); font-size: 20px; line-height: 1.55;
  margin: 0 0 28px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px;}
.hero__stats {
  margin-top: clamp(60px, 10vw, 120px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
@media (max-width: 760px) { .hero__stats { grid-template-columns: repeat(2, 1fr); } }
.stat__num { font-family: var(--font-display); font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.stat__num em { font-style: italic; color: var(--accent); }
.stat__label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; margin-top: 8px; }

/* Rotating word */
.rotator { display: inline-block; position: relative; min-width: 6ch; }
.rotator__slot {
  position: relative; display: inline-block; vertical-align: top;
}
.rotator__item {
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}

/* Section header */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 60px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 20px; } }
.sec-head h2 { margin: 14px 0 0; font-size: clamp(40px, 6vw, 88px); }
.sec-head p { color: var(--ink-2); max-width: 46ch; font-size: 17px; }

/* Clinics marquee grid */
.clinics {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
@media (max-width: 1100px) { .clinics { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .clinics { grid-template-columns: repeat(2, 1fr); } }
.clinic {
  aspect-ratio: 3/4;
  border-radius: var(--r-md);
  overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--blue-50), var(--bg-elevated));
  border: 1px solid var(--line);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  cursor: none;
}
.clinic:hover { transform: translateY(-6px); }
.clinic__art {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, color-mix(in oklab, var(--accent) 8%, transparent) 10px 11px),
    var(--grad);
  opacity: .86;
  transition: opacity .5s ease, transform .8s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.clinic:hover .clinic__art { transform: scale(1.08); opacity: 1; }
.clinic__icon {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none; z-index: 1;
  color: rgba(255,255,255,0.22);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), color .4s ease;
}
.clinic__icon svg { width: 56%; height: 56%; }
.clinic:hover .clinic__icon { transform: scale(1.1) rotate(-2deg); color: rgba(255,255,255,0.32); }
.clinic__overlay {
  position: absolute; inset: 0; padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; z-index: 2;
}
.clinic__overlay .num { font-family: var(--font-display); font-size: 24px; font-style: italic; opacity: .9;}
.clinic__overlay h3 { font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 26px); margin: 0; font-weight: 400; line-height: 1.05; }

/* About / large text */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px){ .about-grid { grid-template-columns: 1fr; } }
.about-grid h2 { font-size: clamp(40px, 5vw, 80px); margin: 12px 0 28px; }
.about-grid p { color: var(--ink-2); font-size: 18px; line-height: 1.6; margin: 0 0 18px;}
.about-media {
  aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden;
  background:
    linear-gradient(160deg, color-mix(in oklab, var(--accent) 35%, transparent), color-mix(in oklab, var(--accent-2) 35%, transparent)),
    var(--grad);
  position: relative;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px color-mix(in oklab, var(--accent) 35%, transparent);
}
.about-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Work showcase */
.work-list { display: grid; gap: 18px; }
.work {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  padding: 40px; border-radius: var(--r-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
}
.work:hover { transform: translateY(-4px); box-shadow: 0 30px 80px -30px color-mix(in oklab, var(--ink) 22%, transparent); }
@media (max-width: 900px) { .work { grid-template-columns: 1fr; padding: 24px;} }
.work:nth-child(even) { grid-template-columns: 1fr 1.2fr; }
.work:nth-child(even) .work__text { order: 2; }
@media (max-width: 900px) { .work:nth-child(even) .work__text { order: 0; } .work:nth-child(even) { grid-template-columns: 1fr;} }
.work__text .eyebrow { margin-bottom: 10px; }
.work__text h3 { font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 52px); margin: 4px 0 14px; line-height: 1.02; font-weight: 400; }
.work__text h3 em { font-style: italic; color: var(--accent); }
.work__text p { color: var(--ink-2); margin: 0 0 20px; }
.work__media {
  aspect-ratio: 16/10;
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--accent) 20%, transparent), transparent 60%),
    var(--blue-50);
  border: 1px solid var(--line);
  overflow: hidden; position: relative;
  display: grid; place-items: center;
}
.work__media .tag {
  position: absolute; top: 16px; left: 16px;
  font-family: monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .2em;
  z-index: 3; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.85); color: var(--ink-2);
  backdrop-filter: blur(8px);
}
.work__mock {
  position: absolute; inset: 10%;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px color-mix(in oklab, var(--ink) 30%, transparent);
  overflow: hidden;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.work:hover .work__mock { transform: translateY(-4px) scale(1.02); }
.work__mock svg { width: 100%; height: 100%; display: block; }

/* Services grid */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 900px){ .services { grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 560px){ .services { grid-template-columns: 1fr;} }
.service {
  background: var(--bg-elevated);
  padding: 36px 32px;
  position: relative; overflow: hidden;
  transition: background .4s ease;
  cursor: none;
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.service:hover { background: var(--ink); color: var(--bg); }
.service:hover .service__num, .service:hover p { color: color-mix(in oklab, var(--bg) 80%, transparent);}
.service:hover .service__arr { transform: translate(4px, -4px); }
.service__num { font-family: var(--font-display); font-style: italic; color: var(--muted); font-size: 14px; transition: color .4s;}
.service__icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center; color: #fff;
  margin-bottom: 22px;
}
.service h3 { font-family: var(--font-display); font-size: 28px; font-weight: 400; margin: 0 0 12px; line-height: 1.1; }
.service p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; transition: color .4s;}
.service__arr {
  position: absolute; top: 28px; right: 28px;
  transition: transform .4s ease;
}

/* AI Section */
.ai-section {
  position: relative; overflow: hidden;
  background: var(--bg-elevated);
  border-radius: var(--r-xl);
  margin: 0 var(--pad);
  padding: clamp(60px, 8vw, 120px);
  border: 1px solid var(--line);
}
.ai-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 85% 20%, color-mix(in oklab, var(--accent-2) 25%, transparent) 0%, transparent 60%),
    radial-gradient(50% 50% at 15% 80%, color-mix(in oklab, var(--accent) 20%, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.ai-head { max-width: 800px; position: relative; }
.ai-head h2 { font-size: clamp(44px, 6.4vw, 96px); margin: 16px 0 24px; }
.ai-head h2 em { font-style: italic; color: var(--accent); }
.ai-head p { color: var(--ink-2); font-size: 18px; max-width: 60ch; }
.ai-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 70px;
  position: relative;
}
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative; overflow: hidden;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.ai-card:hover { transform: translateY(-6px); }
.ai-card__glow {
  position: absolute; inset: -1px;
  border-radius: var(--r-lg);
  background: var(--grad);
  opacity: 0; transition: opacity .4s ease;
  z-index: 0;
  filter: blur(18px);
}
.ai-card:hover .ai-card__glow { opacity: .3; }
.ai-card > * { position: relative; z-index: 1; }
.ai-card .chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--blue-50); color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 20%, transparent);
}
.ai-card h3 { font-family: var(--font-display); font-size: 32px; font-weight: 400; margin: 18px 0 10px; line-height: 1.05;}
.ai-card p { color: var(--ink-2); margin: 0 0 24px; font-size: 14.5px; }
.ai-card .viz {
  height: 160px; border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}

/* Typewriter in AI card 1 */
.type-line {
  font-family: monospace; font-size: 12px; color: var(--ink-2);
  padding: 14px 18px; width: 100%; text-align: left;
}
.type-line .prompt { color: var(--accent); }
.type-line .cursor { display: inline-block; width: 7px; height: 13px; background: var(--ink); vertical-align: -2px; animation: blink 1s steps(2,start) infinite;}
@keyframes blink { 50% { opacity: 0;} }

/* Bar chart in AI card 2 */
.bars { display: flex; align-items: end; gap: 6px; height: 100%; padding: 20px; width: 100%;}
.bar {
  flex: 1; background: var(--grad); border-radius: 4px 4px 0 0;
  opacity: .85; transform-origin: bottom; animation: barUp 2s ease-in-out infinite alternate;
}
.bar:nth-child(2){ animation-delay: .1s; } .bar:nth-child(3){ animation-delay: .2s; }
.bar:nth-child(4){ animation-delay: .3s; } .bar:nth-child(5){ animation-delay: .4s; }
.bar:nth-child(6){ animation-delay: .5s; } .bar:nth-child(7){ animation-delay: .6s; }
@keyframes barUp { from { transform: scaleY(.4);} to { transform: scaleY(1);} }

/* Targeting in AI card 3 */
.target { position: relative; width: 110px; height: 110px; }
.target .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--accent) 60%, transparent); }
.target .ring:nth-child(2){ inset: 14px; animation: pulseRing 2.5s infinite; }
.target .ring:nth-child(3){ inset: 28px; animation: pulseRing 2.5s .5s infinite; }
.target .ring:nth-child(4){ inset: 42px; background: var(--grad); border:0; }
@keyframes pulseRing { 0%{ opacity: 1; transform: scale(1);} 100%{ opacity: 0; transform: scale(1.4);} }

/* Free consultation */
.consult {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: clamp(48px, 6vw, 80px);
  background: var(--ink); color: #fff;
  border-radius: var(--r-xl);
  position: relative; overflow: hidden;
}
[data-palette="C"] .consult { background: var(--grad); }
@media (max-width: 900px){ .consult { grid-template-columns: 1fr; } }
.consult h2 { font-family: var(--font-display); font-size: clamp(44px, 6vw, 88px); line-height: 1; margin: 0 0 18px; font-weight: 400; }
.consult h2 em { font-style: italic; color: var(--accent-2); }
.consult p { color: rgba(255,255,255,0.75); max-width: 40ch; margin: 0 0 24px;}
.consult__art { position: relative; aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--accent-2) 70%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 70% 70%, color-mix(in oklab, var(--accent) 80%, transparent) 0%, transparent 55%);
}
.consult__art::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,0.05) 40px 41px);
  pointer-events: none;
}
.consult__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.consult__float {
  position: absolute; padding: 12px 16px;
  background: rgba(255,255,255,0.95); color: var(--ink);
  border-radius: 14px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.35);
  z-index: 2;
  animation: floatY 6s ease-in-out infinite;
}
.consult__float .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent-2) 25%, transparent); }
.consult__float--a { top: 12%; left: 8%; }
.consult__float--b { bottom: 14%; right: 10%; animation-delay: -2s; }
.consult__float--c { top: 46%; right: 18%; animation-delay: -4s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* SEO */
.seo { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 900px){ .seo { grid-template-columns: 1fr;} }
.seo-item h3 { font-family: var(--font-display); font-size: 40px; font-weight: 400; margin: 10px 0 10px;}
.seo-item p { color: var(--ink-2); max-width: 44ch;}
.seo-item .badge {
  display: inline-flex; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
}

/* Problems grid */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;}
@media (max-width: 900px){ .problems { grid-template-columns: 1fr;} }
.problem {
  padding: 28px; border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  min-height: 220px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  cursor: none;
}
.problem:hover { transform: translateY(-6px);}
.problem::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--grad); opacity: .15;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
}
.problem:hover::before { transform: scale(1.4); opacity: .3;}
.problem h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 0;}
.problem__foot { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px;}

/* Learning Center */
.learning { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;}
@media (max-width: 900px){ .learning { grid-template-columns: 1fr;} }
.article {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
  cursor: none;
}
.article:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px color-mix(in oklab, var(--ink) 25%, transparent); }
.article__media {
  aspect-ratio: 16/10;
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--accent) 35%, transparent), transparent 65%),
    var(--blue-50);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.article__media svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.article:hover .article__media svg { transform: scale(1.06); }
.article__media .label {
  position: absolute; top: 14px; left: 14px;
  font-family: monospace; font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.9); color: var(--ink-2);
  z-index: 2; backdrop-filter: blur(6px);
}
.article__body { padding: 26px;}
.article__body h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.15; margin: 8px 0 16px;}
.article__body a { color: var(--accent); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* Testimonials */
.testi { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px){ .testi { grid-template-columns: 1fr;} }
.t-card {
  padding: 40px;
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 340px;
}
.t-card .quote { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; font-weight: 400; color: var(--ink);}
.t-card .quote em { font-style: italic; color: var(--accent); }
.t-card .who { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.t-card .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); }
.t-card .name { font-size: 14px; font-weight: 500; }
.t-card .role { font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.t-card::before {
  content: '"'; position: absolute; top: 16px; right: 28px;
  font-family: var(--font-display); font-size: 140px; color: var(--accent);
  line-height: 1; opacity: .15;
}

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; }
.marquee__track { display: flex; gap: 80px; width: max-content; animation: marq 40s linear infinite;}
.marquee__track:hover { animation-play-state: paused;}
@keyframes marq { to { transform: translateX(-50%);} }
.logo-chip {
  height: 48px; min-width: 140px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-size: 22px;
  color: var(--muted); letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: .7; transition: opacity .3s, color .3s;
}
.logo-chip:hover { opacity: 1; color: var(--ink);}

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px){ .form-grid { grid-template-columns: 1fr;} }
.form h2 { font-size: clamp(44px, 6vw, 88px); margin: 10px 0 20px; }
.form h2 em { font-style: italic; color: var(--accent);}
.form p { color: var(--ink-2); max-width: 44ch;}
.f-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.f-group label { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.f-group select, .f-group input, .f-group textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 10px 0; font-family: inherit; font-size: 16px; color: var(--ink);
  outline: none; transition: border-color .3s ease;
}
.f-group select:focus, .f-group input:focus, .f-group textarea:focus { border-color: var(--accent);}
.form__submit { margin-top: 8px;}

/* Footer */
.footer {
  background: var(--ink); color: color-mix(in oklab, var(--bg) 92%, transparent);
  padding: 80px var(--pad) 40px;
  margin-top: 80px;
}
[data-palette="C"] .footer { background: #05091C; }
.footer-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: rgba(255,255,255,0.55); margin: 0 0 18px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer ul a:hover { color: var(--accent-2); }
.footer__logo { height: 36px; margin-bottom: 20px; filter: brightness(0) invert(1);}
.footer__bottom {
  max-width: var(--maxw); margin: 60px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}

/* Tweaks panel */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000;
  background: var(--bg-elevated); border: 1px solid var(--line-2);
  border-radius: var(--r-md); padding: 18px; width: 260px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.25);
  font-size: 13px;
  display: none;
}
.tweaks.on { display: block; }
.tweaks h5 { margin: 0 0 4px; font-size: 13px; font-weight: 600;}
.tweaks .hint { color: var(--muted); font-size: 11px; margin-bottom: 14px;}
.tweaks .row { margin-bottom: 14px; }
.tweaks .row > span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px;}
.swatches { display: flex; gap: 8px; }
.swatch {
  flex: 1; aspect-ratio: 1/1; border-radius: 8px;
  border: 2px solid transparent; cursor: none; position: relative;
  transition: transform .25s ease;
}
.swatch.active { border-color: var(--ink); }
.swatch:hover { transform: translateY(-2px);}
.swatch--A { background: linear-gradient(135deg, #000BC7, #005DD3, #009DDC);}
.swatch--B { background: linear-gradient(135deg, #021B3E, #1246A8, #2563EB);}
.swatch--C { background: linear-gradient(135deg, #0A1226, #2F6CE6, #76B6FF);}
.tweaks .toggle-row { display: flex; align-items: center; justify-content: space-between; }
.tweaks .toggle-row button {
  background: var(--ink); color: var(--bg); border: 0; border-radius: 999px;
  padding: 6px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; cursor: none;
}

/* Noise layer */
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
  mix-blend-mode: multiply;
}
[data-palette="C"] .noise { mix-blend-mode: overlay; opacity: .07; }
