/* ── UM Digital 77 — Anthropic-inspired, AI-integrator ── */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/Fraunces.ttf') format('truetype-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/InterVariable.ttf') format('truetype-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

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

:root {
  --cream: #F5F1EB;
  --cream-2: #EDE7DD;
  --ink: #1F1E1D;
  --ink-2: #3A3835;
  --mute: #6E6A63;
  --mute-2: #A39E94;
  --line: #D9D2C5;
  --terracotta: #CC785C;
  --terracotta-2: #B85F44;
  --sage: #7A8B6F;

  --serif: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --maxw: 1180px;
  --maxw-narrow: 760px;
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: opacity .2s, color .2s; }
em { font-style: italic; font-family: var(--serif); }
img, video { max-width: 100%; display: block; }

::selection { background: var(--terracotta); color: var(--cream); }

html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.visible { opacity: 1; transform: translateY(0); }
html.js .reveal[data-delay="1"] { transition-delay: .1s; }
html.js .reveal[data-delay="2"] { transition-delay: .2s; }
html.js .reveal[data-delay="3"] { transition-delay: .3s; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  background: rgba(245, 241, 235, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(31, 30, 29, 0.06);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark { font-weight: 900; letter-spacing: -0.04em; }
.brand-rest { font-weight: 600; letter-spacing: 0.02em; opacity: 0.85; }
.brand-plus {
  display: inline-block; width: 14px; height: 14px;
  background: var(--terracotta);
  clip-path: polygon(40% 0,60% 0,60% 40%,100% 40%,100% 60%,60% 60%,60% 100%,40% 100%,40% 60%,0 60%,0 40%,40% 40%);
  margin-left: 4px;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--mute); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.lang-switch {
  font-family: var(--sans); font-weight: 600;
  font-size: 12px; letter-spacing: 0.1em;
  background: transparent; border: 1px solid var(--line);
  color: var(--ink); padding: 6px 12px; border-radius: 999px;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.lang-switch:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 180px 28px 120px;
  max-width: 1240px;
  margin: 0 auto;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -10% -10% 0 -10%;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.orb-1 { width: 540px; height: 540px; background: radial-gradient(circle, var(--terracotta) 0%, transparent 70%); top: -12%; right: -8%; }
.orb-2 { width: 460px; height: 460px; background: radial-gradient(circle, var(--sage) 0%, transparent 70%); bottom: -20%; left: -8%; opacity: 0.4; }
.orb-3 { width: 320px; height: 320px; background: radial-gradient(circle, #C8B89A 0%, transparent 70%); top: 30%; left: 38%; opacity: 0.35; }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31,30,29,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,30,29,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
}

.hero-inner { position: relative; z-index: 1; }

.eyebrow, .section-eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 24px;
}
.eyebrow-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--terracotta); margin-right: 10px;
  vertical-align: middle; animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 28px;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  max-width: 18ch;
}
.hero-title em {
  font-weight: 280;
  font-style: italic;
  color: var(--terracotta);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-lede {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
  margin-bottom: 44px;
  font-weight: 400;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .15s;
  font-family: var(--sans);
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Hero grid ── */
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-text { max-width: 580px; }
.hero-logo {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
}

/* Neural canvas — full hero background, soft fade at edges */
.neural-canvas {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, black 25%, rgba(0,0,0,0.5) 65%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, black 25%, rgba(0,0,0,0.5) 65%, transparent 100%);
  animation: netFade 1.4s ease-out .4s forwards;
}
@keyframes netFade { to { opacity: 1; } }

/* ── Logo stack ── */
.hero-logo { position: relative; z-index: 2; }

/* ── Animated logo SVG ── */
.logo-svg {
  position: relative; z-index: 1;
  width: 100%; height: auto; max-width: 460px;
  display: block;
}
.logo-um {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 220px;
  letter-spacing: -0.06em;
  fill: var(--ink);
  opacity: 0;
  transform: translateY(40px);
  animation: logoRise 1.1s cubic-bezier(.2,.7,.2,1) .55s forwards;
  transform-box: fill-box;
}
.logo-sub {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 0.2em;
  fill: var(--ink);
  opacity: 0;
  transform: translateY(20px);
  animation: logoRise 0.9s cubic-bezier(.2,.7,.2,1) 1.0s forwards;
  transform-box: fill-box;
}
.logo-mark { transform-origin: 440px 130px; }
.plus-arm-h, .plus-arm-v {
  fill: var(--ink);
  transform-origin: center;
  transform: scale(0);
}
.plus-arm-h { animation: plusPop 0.55s cubic-bezier(.34,1.56,.64,1) .15s forwards; }
.plus-arm-v { animation: plusPop 0.55s cubic-bezier(.34,1.56,.64,1) .30s forwards; }
.dot {
  transform-origin: center;
  transform: scale(0);
  opacity: 0;
}
.d1 { animation: dotIn 0.45s cubic-bezier(.34,1.56,.64,1) .65s forwards; }
.d2 { animation: dotIn 0.45s cubic-bezier(.34,1.56,.64,1) .78s forwards; }
.d3 { animation: dotIn 0.45s cubic-bezier(.34,1.56,.64,1) .91s forwards; }
.d4 { animation: dotIn 0.45s cubic-bezier(.34,1.56,.64,1) 1.04s forwards; }

.ring {
  transform-origin: 300px 300px;
  opacity: 0;
  animation: ringIn 1.2s cubic-bezier(.2,.7,.2,1) 1.4s forwards;
}
.ring-1 { animation-name: ringSpinSlow; animation-duration: 60s; animation-timing-function: linear; animation-iteration-count: infinite; animation-delay: 1.4s; opacity: 1; }
.ring-2 { animation-name: ringSpinRev;  animation-duration: 90s; animation-timing-function: linear; animation-iteration-count: infinite; animation-delay: 1.4s; opacity: 1; }
.ring-3 { animation-name: ringSpinSlow; animation-duration: 120s; animation-timing-function: linear; animation-iteration-count: infinite; animation-delay: 1.4s; opacity: 1; }

.orbit { transform-origin: 300px 300px; }
.orbit-a { animation: spin 14s linear infinite; }
.orbit-b { animation: spinRev 22s linear infinite; }
.orbit-c { animation: spin 32s linear infinite; }

@keyframes logoRise { to { opacity: 1; transform: translateY(0); } }
@keyframes plusPop  { to { transform: scale(1); } }
@keyframes dotIn    { to { transform: scale(1); opacity: 1; } }
@keyframes ringSpinSlow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes ringSpinRev  { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
@keyframes spin    { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes spinRev { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
@keyframes ringIn  { to { opacity: 1; } }

/* ── Sections ── */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px 28px;
  border-top: 1px solid var(--line);
}
.section--narrow { max-width: var(--maxw-narrow); }
.section--dark   { background: var(--ink); color: var(--cream); margin: 64px 0; padding: 120px 28px; max-width: none; border: none; }
.section--contact{ background: var(--ink); color: var(--cream); margin-top: 64px; padding: 120px 28px; max-width: none; border: none; }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  max-width: 22ch;
}
.section-title em { font-weight: 320; font-style: italic; color: var(--terracotta); }
.section--dark .section-title { color: var(--cream); }
.section--dark .section-eyebrow { color: var(--mute-2); }

.section-lede {
  font-size: 19px; line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
  margin: -8px 0 56px;
}
.section--dark .section-lede { color: #C9C2B5; }

.prose p { font-size: 18px; line-height: 1.7; color: var(--ink-2); margin-bottom: 20px; max-width: 64ch; }

/* ── AI Stack grid ── */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 12px;
}
.ai-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,241,235,0.10);
  border-radius: 18px;
  padding: 32px 28px;
  transition: transform .35s ease, border-color .35s, background .35s;
  will-change: transform;
}
.ai-card:hover { border-color: var(--terracotta); background: rgba(204,120,92,0.06); }
.ai-card-num {
  font-family: var(--serif);
  font-weight: 360;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--terracotta);
  margin: 12px 0 12px;
}

.ai-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(204,120,92,0.18), rgba(122,139,111,0.10));
  border: 1px solid rgba(245,241,235,0.14);
  position: relative;
  margin-bottom: 8px;
}
.ai-icon::before {
  content: ""; position: absolute; inset: 0;
  background-position: center; background-repeat: no-repeat; background-size: 22px 22px;
}
.ai-icon-models::before   { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F1EB' stroke-width='1.6'><circle cx='12' cy='12' r='3'/><circle cx='12' cy='12' r='8'/><path d='M12 4v4M12 16v4M4 12h4M16 12h4'/></svg>"); }
.ai-icon-rag::before      { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F1EB' stroke-width='1.6'><circle cx='11' cy='11' r='6'/><path d='M20 20l-4-4'/></svg>"); }
.ai-icon-agents::before   { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F1EB' stroke-width='1.6'><rect x='4' y='6' width='16' height='12' rx='2'/><path d='M9 6V3M15 6V3M9 12h6M9 15h4'/></svg>"); }
.ai-icon-voice::before    { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F1EB' stroke-width='1.6'><path d='M3 10v4M7 7v10M11 4v16M15 7v10M19 10v4'/></svg>"); }
.ai-icon-vision::before   { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F1EB' stroke-width='1.6'><path d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7-10-7-10-7z'/><circle cx='12' cy='12' r='3'/></svg>"); }
.ai-icon-platform::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F1EB' stroke-width='1.6'><rect x='3' y='4' width='18' height='5' rx='1'/><rect x='3' y='11' width='18' height='5' rx='1'/><rect x='3' y='18' width='18' height='3' rx='1'/></svg>"); }
.ai-card:hover .ai-icon { border-color: var(--terracotta); }
.ai-card h4 {
  font-family: var(--serif);
  font-weight: 440;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--cream);
}
.ai-card p { font-size: 15px; line-height: 1.55; color: #C9C2B5; }
.ai-card-tags {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.ai-card-tags span {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245,241,235,0.06);
  color: var(--mute-2);
}

/* ── Cases ── */
.case {
  border-top: 1px solid var(--line);
  padding: 56px 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.case:first-of-type { border-top: none; padding-top: 24px; }
.case--muted .case-title { color: var(--mute); }
.case-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.case-tag { color: var(--ink); font-weight: 600; letter-spacing: 0.02em; }
.case-year { color: var(--mute); }

.case-title {
  font-family: var(--serif);
  font-weight: 420;
  font-size: 38px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.case-summary { font-size: 18px; line-height: 1.65; color: var(--ink-2); margin-bottom: 24px; max-width: 60ch; }
.case-stack { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.case-stack li {
  font-size: 12px; font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mute);
  letter-spacing: 0.02em;
}

/* ── Partners marquee ── */
.partners-marquee {
  margin-top: 48px;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-inner {
  display: flex;
  gap: 56px;
  animation: marquee 38s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.partner-chip {
  flex-shrink: 0;
  width: 320px;
  height: 96px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 22px;
  display: flex; align-items: center; gap: 16px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  will-change: transform;
}
.partner-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -20px rgba(31,30,29,0.18);
  border-color: var(--ink);
}
.partner-chip-logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
}
.partner-chip-logo img {
  max-width: 56px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.partner-chip-logo--dark {
  background: var(--ink);
}
.partner-chip-logo--dark img {
  max-width: 52px;
}
.partner-chip-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.partner-chip-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.partner-chip-kind {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Principles — sticky stack ── */
.principles {
  list-style: none;
  display: grid;
  gap: 8px;
}
.principles li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 48px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  max-width: 920px;
}
.principle-body { max-width: 60ch; }
.principles li:first-child { border-top: none; }
.principle-num {
  font-family: var(--serif);
  font-weight: 380;
  font-size: 28px;
  color: var(--terracotta);
  letter-spacing: -0.01em;
}
.principles h4 { font-family: var(--serif); font-weight: 450; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 8px; }
.principles p { font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 60ch; }

/* ── Stats strip ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding: 72px 0 24px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.stat-num em { color: var(--terracotta); font-style: italic; font-weight: 320; }
.stat-label {
  margin-top: 16px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mute);
}

/* ── Contact ── */
.contact-inner { max-width: var(--maxw-narrow); margin: 0 auto; }
.section--contact .section-title { color: var(--cream); font-weight: 440; }
.section--contact .section-title em { color: var(--terracotta); font-weight: 360; }
.contact-lede { font-size: 18px; line-height: 1.65; color: #C9C2B5; margin-bottom: 56px; max-width: 56ch; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.contact-label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute-2); margin-bottom: 10px; }
.contact-value { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; color: var(--cream); }
a.contact-value:hover { color: var(--terracotta); }

/* ── Footer ── */
.footer { background: var(--cream); border-top: 1px solid var(--line); padding: 32px 28px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: var(--mute); }
.footer-brand { font-family: var(--sans); font-weight: 800; font-size: 16px; color: var(--ink); letter-spacing: -0.02em; }
.footer-brand em { font-style: normal; font-weight: 600; opacity: 0.85; }
.footer-link { color: var(--mute); }
.footer-link:hover { color: var(--ink); }

/* ── Responsive ── */
@media (max-width: 980px) {
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 880px) {
  .hero { padding: 140px 24px 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { margin: 0 auto; max-width: 360px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.lang-switch) { display: none; }
  .case { grid-template-columns: 1fr; gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .principles li { grid-template-columns: 56px 1fr; gap: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .partner-chip { width: 280px; height: 88px; padding: 0 18px; gap: 14px; }
  .partner-chip-logo { width: 56px; height: 56px; border-radius: 11px; }
  .partner-chip-logo img { max-width: 48px; max-height: 36px; }
  .partner-chip-name { font-size: 16px; }
  .partner-chip-kind { font-size: 10px; }
  .clients-strip-label { padding: 0 4px; }
  .marquee-inner { gap: 16px; }
}
@media (max-width: 600px) {
  .ai-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .section { padding: 72px 20px; }
  .section--dark, .section--contact { padding: 88px 20px; }
  .hero { padding: 120px 20px 56px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-inner { animation: none; }
  .orb { display: none; }
  .eyebrow-dot { animation: none; }
}

/* Roadmap component */
.roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 920px;
  margin: 36px auto 12px;
  padding: 16px 24px 0;
}
.roadmap::before {
  content: "";
  position: absolute;
  top: 51px;
  left: calc(100% / 6 + 24px);
  right: calc(100% / 6 + 24px);
  height: 2px;
  background: linear-gradient(to right, rgba(204,120,92,0.65), rgba(122,139,111,0.45));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 0;
}
.roadmap.visible::before {
  animation: roadmap-line 1.6s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes roadmap-line { to { transform: scaleX(1); } }

.roadmap-stage {
  position: relative;
  z-index: 1;
  text-align: center;
  opacity: 0;
}
.roadmap.visible .roadmap-stage { animation: roadmap-fade .55s ease-out forwards; }
.roadmap.visible .roadmap-stage:nth-child(2) { animation-delay: .55s; }
.roadmap.visible .roadmap-stage:nth-child(3) { animation-delay: 1.1s; }
@keyframes roadmap-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.roadmap-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #CC785C;
  margin: 24px auto 14px;
  box-shadow: 0 0 0 6px rgba(204,120,92,0.18);
}
.roadmap.visible .roadmap-stage .roadmap-dot { animation: roadmap-pulse 2.6s ease-in-out infinite; }
.roadmap.visible .roadmap-stage:nth-child(2) .roadmap-dot { animation-delay: .9s; }
.roadmap.visible .roadmap-stage:nth-child(3) .roadmap-dot { animation-delay: 1.8s; }
@keyframes roadmap-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(204,120,92,0.18); }
  50%      { box-shadow: 0 0 0 14px rgba(204,120,92,0.04); }
}

.roadmap-title {
  font-size: 19px;
  font-weight: 600;
  color: #F5F1EB;
  letter-spacing: -0.01em;
}
.roadmap-meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,241,235,0.55);
  margin-top: 6px;
}

@media (max-width: 720px) {
  .roadmap { grid-template-columns: 1fr; gap: 24px; padding: 8px 24px; }
  .roadmap::before { display: none; }
  .roadmap-dot { margin: 8px auto 12px; }
}

/* Services tabs (interactive) */
.services-tabs {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  margin-top: 40px;
  align-items: start;
}
.services-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  position: sticky;
  top: 96px;
  border-left: 1px solid rgba(245,241,235,0.08);
}
.services-nav-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 18px 22px;
  cursor: pointer;
  position: relative;
  border-left: 1px solid transparent;
  margin-left: -1px;
  transition: background .25s ease, border-color .25s ease;
  user-select: none;
}
.services-nav-item:hover {
  background: rgba(245,241,235,0.025);
}
.services-nav-item.active {
  border-left-color: #CC785C;
  background: rgba(204,120,92,0.045);
}
.services-nav-num {
  font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(245,241,235,0.35);
  transition: color .25s ease;
}
.services-nav-item.active .services-nav-num { color: #CC785C; }
.services-nav-title {
  font-size: 16px;
  font-weight: 500;
  color: rgba(245,241,235,0.55);
  transition: color .25s ease;
  letter-spacing: -0.005em;
}
.services-nav-item.active .services-nav-title { color: #F5F1EB; }
.services-nav-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(204,120,92,0.55);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.services-nav-item.active::after {
  animation: services-progress 6s linear forwards;
}
.services-tabs.paused .services-nav-item.active::after {
  animation-play-state: paused;
}
@keyframes services-progress { to { transform: scaleX(1); } }

.services-panel-wrap {
  position: relative;
  min-height: 380px;
}
.services-panel {
  position: absolute;
  inset: 0;
  padding: 44px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(245,241,235,0.10);
  border-radius: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .45s cubic-bezier(.2,.7,.2,1);
}
.services-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.services-panel .ai-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  margin-bottom: 28px;
}
.services-panel .ai-icon::before {
  background-size: 28px 28px;
}
.services-panel-title {
  font-family: var(--serif);
  font-weight: 440;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--cream, #F5F1EB);
}
.services-panel-desc {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(245,241,235,0.78);
  max-width: 520px;
  margin: 0 0 28px;
}
.services-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.services-panel-tags > span {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(245,241,235,0.06);
  border: 1px solid rgba(245,241,235,0.08);
  font-size: 13px;
  color: rgba(245,241,235,0.7);
}

@media (max-width: 880px) {
  .services-tabs { grid-template-columns: 1fr; gap: 24px; }
  .services-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    border-left: none;
    border-bottom: 1px solid rgba(245,241,235,0.08);
    margin: 0 -20px;
    padding: 0 20px;
    gap: 4px;
    scrollbar-width: none;
  }
  .services-nav::-webkit-scrollbar { display: none; }
  .services-nav-item {
    border-left: none;
    flex: 0 0 auto;
    padding: 14px 18px;
    margin-left: 0;
  }
  .services-nav-item.active {
    border-left: none;
    background: rgba(204,120,92,0.08);
    border-radius: 12px;
  }
  .services-nav-item::after {
    bottom: -1px;
    background: #CC785C;
  }
  .services-panel-wrap { min-height: 340px; }
  .services-panel { padding: 28px; }
  .services-panel-title { font-size: 24px; }
  .services-panel-desc { font-size: 15px; }
}

/* Services list — vertical, no clicks, no grid */
.services-list {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
}
.services-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 40px;
  padding: 52px 0;
  border-top: 1px solid rgba(245,241,235,0.10);
  align-items: start;
  position: relative;
  transition: background .4s ease;
}
.services-row:last-child {
  border-bottom: 1px solid rgba(245,241,235,0.10);
}
.services-row::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 0; height: 1px;
  background: #CC785C;
  transition: width .9s cubic-bezier(.2,.7,.2,1);
}
.services-row:hover {
  background: linear-gradient(90deg, rgba(204,120,92,0.05), transparent 70%);
}
.services-row:hover::before {
  width: 100%;
}
.services-row-num {
  font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(245,241,235,0.40);
  padding-top: 14px;
}
.services-row-body {
  max-width: 760px;
}
.services-row-title {
  font-family: var(--serif);
  font-weight: 440;
  font-size: 38px;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 18px;
  color: var(--cream, #F5F1EB);
}
.services-row-title .arrow {
  display: inline-block;
  margin-left: 14px;
  color: rgba(204,120,92,0.4);
  transform: translateX(-4px);
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease, color .35s ease;
}
.services-row:hover .services-row-title .arrow {
  opacity: 1;
  transform: translateX(0);
  color: #CC785C;
}
.services-row-desc {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(245,241,235,0.72);
  margin: 0 0 22px;
}
.services-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.services-row-tags > span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(204,120,92,0.10);
  border: 1px solid rgba(204,120,92,0.22);
  font-size: 13px;
  color: rgba(245,241,235,0.85);
}

@media (max-width: 720px) {
  .services-list { margin-top: 32px; }
  .services-row { grid-template-columns: 1fr; gap: 14px; padding: 36px 0; }
  .services-row-num { padding-top: 0; }
  .services-row-title { font-size: 28px; }
  .services-row-title .arrow { display: none; }
  .services-row-desc { font-size: 15px; }
}

/* Capabilities strip — under About paragraph */
.capabilities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 8px;
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
  max-width: 920px;
}
.capabilities li {
  position: relative;
  padding: 8px 22px;
  border: 1px solid rgba(204,120,92,0.28);
  background: rgba(204,120,92,0.06);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: rgba(245,241,235,0.88);
}
@media (max-width: 720px) {
  .capabilities li { padding: 7px 16px; font-size: 13px; }
}

/* Clients strip — compact under cases */
.clients-strip {
  margin-top: 56px;
  padding: 28px 0 8px;
  border-top: 1px solid rgba(245,241,235,0.10);
  position: relative;
  overflow: hidden;
}
.clients-strip-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,241,235,0.45);
  margin: 0 0 14px;
}

/* Clients logo row — simple, no boxes */
.clients-row {
  align-items: center;
  gap: 80px;
  padding: 8px 0 12px;
}
.clients-row img {
  height: 38px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(0.65);
  transition: opacity .35s ease, filter .35s ease;
  flex-shrink: 0;
}
.clients-row img:hover {
  opacity: 1;
  filter: grayscale(0);
}
@media (max-width: 720px) {
  .clients-row { gap: 56px; }
  .clients-row img { height: 30px; max-width: 160px; }
}

/* UzMigrant — оригинальный белый wordmark на тёмной плашке */
.clients-row img[alt="UzMigrant"] {
  height: 42px;
  padding: 10px 14px;
  background: var(--ink);
  border-radius: 8px;
  box-sizing: border-box;
  opacity: 1;
  filter: none;
}
.clients-row img[alt="UzMigrant"]:hover {
  opacity: 1;
  filter: none;
}

/* UzMigrant chip — dark variant so white wordmark stays original */
.partner-chip--dark {
  background: var(--ink);
  border-color: rgba(255,255,255,0.06);
}
.partner-chip--dark:hover {
  border-color: var(--terracotta);
}
.partner-chip--dark .partner-chip-name { color: var(--cream); }
.partner-chip--dark .partner-chip-kind { color: rgba(245,241,235,0.55); }

