/* ============================================================
   DATA PARTNERS — Award-Quality Design System
   ============================================================ */

@font-face {
  font-family: 'Euclid Square';
  src: url('../font/EuclidSquare-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Euclid Square';
  src: url('../font/EuclidSquare-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Euclid Square';
  src: url('../font/EuclidSquare-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Euclid Square';
  src: url('../font/EuclidSquare-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07070b;
  --bg-2: #0d0d14;
  --bg-3: #14141d;
  --ink: #f5f5f7;
  --ink-2: #c8c8d0;
  --ink-3: #8a8a96;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --accent: #00e5ff;
  --accent-2: #b14bff;
  --accent-3: #ff3d8c;
  --gradient: linear-gradient(120deg, #00e5ff 0%, #b14bff 50%, #ff3d8c 100%);
  --gradient-soft: linear-gradient(120deg, rgba(0, 229, 255, 0.15), rgba(177, 75, 255, 0.15));
  --ease: cubic-bezier(0.65, 0.05, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1440px;
  --radius: 18px;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Euclid Square', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img, svg, video { display: block; max-width: 100%; }
ul { list-style: none; }

@media (min-width: 901px) and (pointer: fine) {
  html, body, a, button, input, textarea, select, [role="button"] { cursor: none; }
}

::selection { background: var(--accent); color: var(--bg); }

::-webkit-scrollbar { width: 0; height: 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display {
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-size: clamp(56px, 11vw, 184px);
}

.display em {
  font-style: normal;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.02em; }

.h-mega { font-size: clamp(40px, 7vw, 112px); line-height: 0.95; font-weight: 300; letter-spacing: -0.035em; }
.h-xl { font-size: clamp(36px, 5vw, 80px); line-height: 1; font-weight: 300; letter-spacing: -0.03em; }
.h-l { font-size: clamp(28px, 3.5vw, 56px); line-height: 1.05; font-weight: 300; letter-spacing: -0.025em; }
.h-m { font-size: clamp(22px, 2vw, 32px); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.h-s { font-size: clamp(16px, 1.2vw, 20px); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono-label {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { position: relative; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  margin: 0;
}

.dotgrid {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s ease, width 0.25s var(--ease), height 0.25s var(--ease);
  will-change: transform;
}

.cursor-dot.is-visible, .cursor-ring.is-visible { opacity: 1; }

.cursor-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent), 0 0 16px rgba(0, 229, 255, 0.65);
  transform: translate3d(-50%, -50%, 0);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transform: translate3d(-50%, -50%, 0);
}

.cursor-ring.is-hover {
  width: 80px;
  height: 80px;
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.08);
}

@media (max-width: 900px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(7, 7, 11, 0.55);
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease);
}

.nav.compact { padding: 14px var(--pad); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-logo img { width: 36px; height: 36px; object-fit: contain; }

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
}

.nav-links a {
  position: relative;
  transition: color 0.3s var(--ease);
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::before, .nav-links a.is-active::before { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
}

.nav-burger span {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.4s var(--ease);
  transform: translateX(-50%);
}
.nav-burger span:nth-child(1) { top: 17px; }
.nav-burger span:nth-child(2) { top: 22px; }
.nav-burger span:nth-child(3) { top: 27px; }

.nav-burger.open span:nth-child(1) { top: 22px; transform: translateX(-50%) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 22px; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
}

/* Mobile menu */
.menu-mob {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  transform: translateY(-100%);
  transition: transform 0.7s var(--ease);
}

.menu-mob.open { transform: translateY(0); }

.menu-mob a {
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 300;
  letter-spacing: -0.03em;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.menu-mob a span:last-child {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
}

.btn .arrow {
  width: 14px; height: 14px;
  position: relative;
  transition: transform 0.4s var(--ease);
}

.btn .arrow::before, .btn .arrow::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.btn .arrow::before {
  top: 50%; left: 0;
  width: 100%; height: 1px;
  transform: translateY(-50%);
}
.btn .arrow::after {
  top: 50%; right: 0;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  background: transparent;
  transform: translateY(-50%) rotate(45deg);
}

.btn:hover .arrow { transform: translateX(6px); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

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

.magnetic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) clamp(40px, 8vh, 100px);
  padding-top: 100px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-eyebrow .live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}

.hero-eyebrow .live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
  font-size: clamp(48px, 11vw, 192px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.88;
  margin-bottom: 40px;
}

.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero-title .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.2s var(--ease-out) forwards;
}

.hero-title .word:nth-child(2) > span { animation-delay: 0.1s; }
.hero-title .word:nth-child(3) > span { animation-delay: 0.2s; }

@keyframes rise {
  to { transform: translateY(0); }
}

.hero-title em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.hero-desc {
  max-width: 480px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
}

.hero-desc strong { color: var(--ink); font-weight: 500; }

.hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-meta .meta {
  border-left: 1px solid var(--line-2);
  padding-left: 18px;
}

.hero-meta .meta .num {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
}

.hero-meta .meta .lbl {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
  display: block;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero-scroll .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  position: relative;
  overflow: hidden;
}

.hero-scroll .line::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 12px;
  background: var(--accent);
  animation: scrollLine 2s infinite var(--ease);
}

@keyframes scrollLine {
  0% { transform: translateY(-12px); }
  100% { transform: translateY(40px); }
}

@media (max-width: 768px) {
  .hero-meta { gap: 20px; }
  .hero-meta .meta .num { font-size: 24px; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-item {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.03em;
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
}

.marquee-item .star {
  width: 22px; height: 22px;
  color: var(--accent);
}

.marquee-item em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: clamp(80px, 14vh, 200px) var(--pad);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 120px);
  margin-bottom: clamp(60px, 10vh, 140px);
  align-items: end;
}

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 30px; }
}

.section-title {
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.section-title em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-desc {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 560px;
}

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

.service {
  grid-column: span 4;
  background: var(--bg-2);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.5s var(--ease);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 1100px) { .service { grid-column: span 6; } }
@media (max-width: 700px) { .service { grid-column: span 12; } }

.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 0;
}

.service:hover::before { opacity: 1; }
.service:hover { background: var(--bg-3); }

.service > * { position: relative; z-index: 1; }

.service-num {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.16em;
}

.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gradient-soft);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.service h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.service p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.product {
  grid-column: span 6;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.5s var(--ease);
}

@media (max-width: 900px) { .product { grid-column: span 12; padding: 32px 28px; min-height: auto; } }

.product:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.product::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.12), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.product:hover::after { opacity: 1; }

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 24px;
}

.product-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.product h3 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.product p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 480px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.product-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-stack span {
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

/* ============================================================
   CASE STUDIES (horizontal scroll)
   ============================================================ */
.cases-wrap {
  position: relative;
}

.cases-rail {
  display: flex;
  gap: 32px;
  padding: 20px var(--pad) 60px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.cases-rail::-webkit-scrollbar { display: none; }

.case {
  flex: 0 0 clamp(360px, 50vw, 720px);
  scroll-snap-align: start;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  flex-direction: column;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 32px;
}

.case-meta .industry {
  color: var(--accent);
}

.case h3 {
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.case-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.case-tags span {
  font-size: 10px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.case-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.4);
}

.case:hover .case-image { opacity: 0.4; }

.cases-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--pad);
  margin-top: 32px;
}

.cases-nav .scroll-hint {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 12px;
}

.cases-nav .scroll-hint .arrow-side {
  width: 60px; height: 1px;
  background: var(--ink-3);
  position: relative;
  animation: arrowSlide 2s infinite var(--ease);
}

@keyframes arrowSlide {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(8px); opacity: 0.5; }
}

.cases-nav .arrows {
  display: flex;
  gap: 12px;
}

.cases-nav .arrows button {
  width: 48px; height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.cases-nav .arrows button:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ============================================================
   PARTNERS GRID
   ============================================================ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.partner {
  background: var(--bg-2);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  transition: background 0.4s var(--ease);
  position: relative;
}

.partner:hover { background: var(--bg-3); }

.partner img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: grayscale(1) brightness(1.2);
  transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
}

.partner:hover img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.05);
}

/* ============================================================
   ABOUT / MISSION
   ============================================================ */
.mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: center;
}

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

.mission-text h2 {
  font-size: clamp(36px, 5vw, 80px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 32px;
}

.mission-text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 20px;
  max-width: 520px;
}

.mission-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.mission-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.mission-image:hover img { transform: scale(1.05); }

.mission-image .badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(7, 7, 11, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 16px 20px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.mission-image .badge strong { color: var(--accent); display: block; font-size: 14px; margin-bottom: 4px; }

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

@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat {
  background: var(--bg-2);
  padding: 48px 32px;
}

.stat-num {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.stat-lbl {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
}

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

.contact h2 {
  font-size: clamp(36px, 5vw, 80px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 24px;
}

.contact-info {
  margin-top: 48px;
  display: grid;
  gap: 20px;
}

.contact-info a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  transition: padding 0.3s var(--ease), color 0.3s var(--ease);
}

.contact-info a:hover { padding-left: 8px; color: var(--accent); }

.contact-info .ic {
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
}

.field {
  display: block;
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-2);
  padding: 12px 0;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s var(--ease);
  resize: none;
}

.field input:focus,
.field textarea:focus { border-bottom-color: var(--accent); }

.field textarea { min-height: 100px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 700px) { .field-row { grid-template-columns: 1fr; } }

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-2);
  margin: 24px 0;
  line-height: 1.5;
}

.field-check input { margin-top: 2px; accent-color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  border-top: 1px solid var(--line);
  padding: 80px var(--pad) 40px;
  position: relative;
  overflow: hidden;
}

.foot::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0.5;
}

.foot-mega {
  font-size: clamp(72px, 16vw, 280px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.85;
  background: linear-gradient(180deg, var(--ink) 0%, transparent 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 60px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.foot h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
  font-weight: 500;
}

.foot a { display: block; padding: 6px 0; font-size: 14px; transition: color 0.3s var(--ease); }
.foot a:hover { color: var(--accent); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 20px;
}

.foot-bottom .socials {
  display: flex;
  gap: 12px;
}

.foot-bottom .socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.3s var(--ease);
}

.foot-bottom .socials a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ============================================================
   REVEAL ANIMATIONS (scroll-triggered)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.28s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.36s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.44s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.52s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.6s; }
.reveal-stagger.in > *:nth-child(9) { transition-delay: 0.68s; }

.split-line {
  overflow: hidden;
  display: block;
}

.split-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}

.split-line.in > span { transform: translateY(0); }

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

.noise {
  position: relative;
}

.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* page intro overlay */
.page-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: bottom;
  animation: pageOut 1.2s var(--ease-out) forwards;
}

@keyframes pageOut {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

.page-intro .pi-inner {
  font-size: clamp(60px, 12vw, 160px);
  font-weight: 300;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: piText 1.2s var(--ease-out) forwards;
}

@keyframes piText {
  0% { opacity: 0; transform: translateY(40px); }
  40% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-40px); }
}

/* loader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader .pl-text {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.preloader .pl-bar {
  width: 220px;
  height: 1px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}

.preloader .pl-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--gradient);
  animation: plFill 1.6s var(--ease-out) forwards;
}

@keyframes plFill {
  to { width: 100%; }
}

/* misc */
.text-2 { color: var(--ink-2); }
.text-3 { color: var(--ink-3); }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; } .mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; } .mb-20 { margin-bottom: 80px; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }

/* page hero (sub-pages) */
.page-hero {
  padding: clamp(140px, 22vh, 220px) var(--pad) clamp(60px, 10vh, 140px);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.4);
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 11, 0.6), var(--bg));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

.page-hero h1 {
  font-size: clamp(48px, 9vw, 144px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin-bottom: 32px;
}

.page-hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero .lead {
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 720px;
}

/* simple chip / pill */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* category tabs */
.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 12px 24px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  background: transparent;
  color: var(--ink-2);
}

.tab:hover { color: var(--ink); border-color: var(--ink); }

.tab.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* category panel */
.panel, .panel-p { display: none; }
.panel.is-active, .panel-p.is-active { display: block; animation: fadeUp 0.6s var(--ease-out); }

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

.panel .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.panel .card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  transition: all 0.4s var(--ease);
}

.panel .card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.panel .card h3 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.panel .card .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.panel .card .meta span {
  font-size: 10px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel .card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* responsive fine tuning */
@media (max-width: 700px) {
  .section { padding: 80px var(--pad); }
  .mission-text h2 { font-size: 36px; }
  .contact-form { padding: 28px; }
  .case { padding: 28px; min-height: 480px; }
}
