/* ==========================================================================
   EB Management — Design System
   ========================================================================== */

:root {
  --blue: #2491EB;
  --blue-dark: #1A7BC9;
  --blue-soft: #E8F3FD;
  --ink: #0A0A0A;
  --ink-soft: #2A2A2A;
  --muted: #6B6B6B;
  --line: #E8E8E8;
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --bg-warm: #F4F1EC;

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

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

::selection { background: var(--blue); color: white; }

/* ==========================================================================
   Layout
   ========================================================================== */

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.section--dark { background: var(--ink); color: white; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.section--dark .eyebrow { color: rgba(255,255,255,0.6); }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: white; }

.h-display {
  font-size: clamp(44px, 7.5vw, 112px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.h-1 { font-size: clamp(36px, 5vw, 68px); letter-spacing: -0.035em; }
.h-2 { font-size: clamp(28px, 3.5vw, 44px); }
.h-3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; }

.serif-accent { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
}

.section--dark .lead { color: rgba(255,255,255,0.78); }

p { color: var(--ink-soft); }
.section--dark p { color: rgba(255,255,255,0.78); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.logo img { height: 26px; width: auto; }
.logo span { display: inline-block; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover { color: var(--blue); }
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}

.nav-right { display: flex; align-items: center; gap: 18px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 4px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-toggle button {
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}
.lang-toggle button.is-active { background: var(--ink); color: white; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s var(--ease);
}
.nav-cta:hover { background: var(--blue); }

.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink);
  position: relative;
}
.mobile-toggle span::before,
.mobile-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px;
  background: var(--ink);
}
.mobile-toggle span::before { top: -7px; }
.mobile-toggle span::after { top: 7px; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 24px var(--gutter);
    border-bottom: 1px solid var(--line);
    gap: 18px;
    align-items: flex-start;
  }
  .nav-cta { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn--primary { background: var(--ink); color: white; }
.btn--primary:hover { background: var(--blue); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--inverse { background: white; color: var(--ink); }
.btn--inverse:hover { background: var(--blue); color: white; }

.btn--link {
  padding: 0;
  background: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding-bottom: 2px;
}
.btn--link:hover { color: var(--blue); border-color: var(--blue); }

.section--dark .btn--ghost { color: white; border-color: rgba(255,255,255,0.25); }
.section--dark .btn--ghost:hover { border-color: white; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: clamp(120px, 16vw, 180px);
  padding-bottom: clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: end;
}

.hero__title {
  max-width: 18ch;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__stat-num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero__stat-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hero__stat-num em { color: var(--blue); font-style: normal; }

/* ==========================================================================
   Marquee (client logo wall)
   ========================================================================== */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 36px 0;
}

.marquee__label {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: block;
}

.marquee__track {
  display: flex;
  gap: 64px;
  animation: scroll 50s linear infinite;
  width: max-content;
  align-items: center;
}

.marquee__item {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease);
}
.marquee__item:hover { opacity: 1; color: var(--blue); }

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Services
   ========================================================================== */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}

.svc-card {
  background: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  transition: background 0.3s var(--ease);
}
.svc-card:hover { background: var(--bg-soft); }

.svc-card__num {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.1em;
}

.svc-card__title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.svc-card__body { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ==========================================================================
   Talent grid
   ========================================================================== */

.talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.talent-card {
  position: relative;
  display: block;
  background: var(--bg-soft);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--ease);
}
.talent-card:hover { transform: translateY(-4px); }

.talent-card__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s var(--ease);
  filter: saturate(0.95);
}
.talent-card:hover .talent-card__bg { transform: scale(1.04); }

.talent-card__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.talent-card__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px;
  color: white;
}
.talent-card__cat {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}
.talent-card__name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.talent-card__stat { font-size: 13px; opacity: 0.78; }

/* Placeholder portraits (gradient + initial) */
.tc-grad { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.tc-grad span { font-size: 110px; font-weight: 800; color: rgba(255,255,255,0.18); letter-spacing: -0.04em; }

.tc-1 { background: linear-gradient(135deg, #1A4D8F 0%, #2491EB 100%); }
.tc-2 { background: linear-gradient(135deg, #2D1B4E 0%, #6E3FB5 100%); }
.tc-3 { background: linear-gradient(135deg, #8B1538 0%, #E04E78 100%); }
.tc-4 { background: linear-gradient(135deg, #0F3D2E 0%, #2BA56F 100%); }
.tc-5 { background: linear-gradient(135deg, #8C3A0B 0%, #ED8434 100%); }
.tc-6 { background: linear-gradient(135deg, #1A2540 0%, #4A6B9B 100%); }
.tc-7 { background: linear-gradient(135deg, #4A1F30 0%, #B0556F 100%); }
.tc-8 { background: linear-gradient(135deg, #2B3B0F 0%, #7BA035 100%); }
.tc-9 { background: linear-gradient(135deg, #1F1F1F 0%, #5A5A5A 100%); }
.tc-10 { background: linear-gradient(135deg, #5B1B5B 0%, #B045B0 100%); }
.tc-11 { background: linear-gradient(135deg, #0A3A4D 0%, #2F8AA8 100%); }
.tc-12 { background: linear-gradient(135deg, #5A2B0F 0%, #C97A35 100%); }

/* Talent filters */
.talent-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.filter-chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  background: white;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.is-active { background: var(--ink); color: white; border-color: var(--ink); }

/* ==========================================================================
   Case studies
   ========================================================================== */

.case {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .case { grid-template-columns: 1.1fr 1fr; gap: 80px; }
  .case--reverse .case__visual { order: 2; }
}

.case + .case { margin-top: clamp(72px, 10vw, 140px); }

.case__visual {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.case__brand {
  position: absolute;
  top: 24px; left: 24px;
  background: white;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.case__body { display: flex; flex-direction: column; gap: 20px; }
.case__title { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }

.case__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.case__stat-num {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--blue);
}
.case__stat-label { font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 4px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: 80px 0 32px;
}

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

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

.footer-brand h3 {
  color: white;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 14ch;
}
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 38ch; font-size: 15px; }

.footer-col h4 {
  color: white;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 15px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-col a:hover { color: var(--blue); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   Page utilities
   ========================================================================== */

.page-header {
  padding-top: clamp(140px, 16vw, 200px);
  padding-bottom: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}

.page-header__title {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 24px;
}

.page-header__lead { font-size: clamp(18px, 1.5vw, 22px); color: var(--ink-soft); max-width: 50ch; line-height: 1.5; }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1.4fr; gap: 100px; }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit;
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  transition: all 0.2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  background: white;
}
.field textarea { resize: vertical; min-height: 140px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-tabs { display: flex; gap: 4px; background: var(--bg-soft); padding: 4px; border-radius: 999px; width: max-content; margin-bottom: 32px; }
.form-tab { padding: 10px 22px; border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--muted); transition: all 0.2s var(--ease); }
.form-tab.is-active { background: var(--ink); color: white; }

/* ==========================================================================
   Process / lifecycle steps
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 56px;
  counter-reset: step;
}

.step { position: relative; padding: 32px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--blue);
  font-style: italic;
  display: block;
  margin-bottom: 16px;
}
.step h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ==========================================================================
   Pricing table
   ========================================================================== */

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.tier {
  padding: 32px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tier__label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tier__name { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; }
.tier__price { font-size: 22px; color: var(--blue); font-weight: 600; letter-spacing: -0.02em; }
.tier__note { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: auto; }

/* ==========================================================================
   Map / footprint
   ========================================================================== */

.footprint { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; margin-top: 40px; }
.fp { display: flex; flex-direction: column; gap: 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.fp__country { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.fp__city { font-size: 13px; color: var(--muted); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
}

/* ==========================================================================
   Toast (form confirmation)
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: white;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  z-index: 200;
  transition: transform 0.4s var(--ease);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }
