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

:root {
  --ink: #0f1117;
  --ink-soft: #3d3f4a;
  --ink-muted: #7a7d8a;
  --cream: #faf9f6;
  --white: #ffffff;
  --accent: #1a56db;
  --accent-light: #e8effe;
  --border: #e4e4e8;
  --gold: #c8973a;
  --section-gap: 120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 60px;
  background: rgba(250,249,246,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}
nav.scrolled { border-color: var(--border); padding: 14px 60px; }
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: border-color 0.2s;
}
.nav-logo:hover .nav-logo-img { border-color: var(--accent); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--ink); color: var(--white) !important;
  padding: 9px 22px; border-radius: 6px;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: var(--accent) !important; color: var(--white) !important; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 60px 80px;
  gap: 60px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, #e8effe 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-light); border-radius: 20px;
  padding: 6px 16px; margin-bottom: 28px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s 0.2s forwards;
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: block;
}
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--ink);
  opacity: 0; transform: translateY(24px);
  animation: fadeUp 0.7s 0.35s forwards;
}
h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  margin-top: 24px; font-size: 1.05rem; line-height: 1.7;
  color: var(--ink-soft); max-width: 480px;
  opacity: 0; transform: translateY(24px);
  animation: fadeUp 0.7s 0.5s forwards;
}
.hero-stats {
  display: flex; gap: 40px; margin-top: 44px;
  opacity: 0; transform: translateY(24px);
  animation: fadeUp 0.7s 0.65s forwards;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--ink); display: block;
}
.stat-label { font-size: 0.8rem; color: var(--ink-muted); margin-top: 2px; }
.hero-actions {
  display: flex; gap: 14px; margin-top: 40px;
  opacity: 0; transform: translateY(24px);
  animation: fadeUp 0.7s 0.8s forwards;
}
.btn-primary {
  background: var(--ink); color: var(--white);
  padding: 14px 32px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: var(--ink);
  padding: 14px 32px; border-radius: 8px; border: 1.5px solid var(--border);
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); }

.hero-image-wrap {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; animation: fadeIn 0.9s 0.5s forwards;
}
.hero-img-card {
  position: relative; width: 380px; height: 460px;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(15,17,23,0.18);
}
.hero-img-card img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.hero-img-badge {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-radius: 14px; padding: 14px 22px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); white-space: nowrap;
}
.badge-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; flex-shrink: 0; animation: pulse 2s infinite; }
.badge-text { font-size: 0.82rem; font-weight: 500; color: var(--ink); }
.badge-sub { font-size: 0.72rem; color: var(--ink-muted); }
.hero-float-card {
  position: absolute; top: 40px; right: -30px;
  background: var(--white); border-radius: 14px;
  padding: 16px 20px; box-shadow: 0 12px 36px rgba(0,0,0,0.1);
  animation: float 5s ease-in-out infinite;
}
.float-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--accent);
}
.float-label { font-size: 0.75rem; color: var(--ink-muted); margin-top: 2px; }

/* ── SECTION COMMONS ── */
section { padding: var(--section-gap) 60px; }
.section-label {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px; display: block;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--ink);
}
.section-intro {
  font-size: 1rem; line-height: 1.75; color: var(--ink-soft);
  max-width: 560px; margin-top: 16px;
}
.section-header { margin-bottom: 60px; }

/* ── DIVIDER ── */
.divider {
  height: 1px; background: var(--border);
  margin: 0 60px;
}

/* ── EXPERTISE ── */
#expertise { background: var(--white); }
.expertise-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--border); border-radius: 16px; overflow: hidden;
}
.expertise-card {
  background: var(--white); padding: 40px 36px;
  transition: background 0.25s;
  cursor: default;
}
.expertise-card:hover { background: #f5f7ff; }
.exp-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-light); display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px; font-size: 1.4rem;
}
.exp-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 600; color: var(--ink);
  margin-bottom: 12px;
}
.exp-desc { font-size: 0.875rem; line-height: 1.7; color: var(--ink-soft); }
.exp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.exp-tag {
  font-size: 0.72rem; padding: 4px 12px; border-radius: 20px;
  background: var(--accent-light); color: var(--accent); font-weight: 500;
}

/* ── CASE STUDIES ── */
#cases { background: var(--cream); }
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.case-card {
  background: var(--white); border-radius: 20px;
  border: 1px solid var(--border); overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: default;
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.09); }
.case-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 0.9fr; }
.case-visual {
  height: 220px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.case-card.featured .case-visual { height: 100%; min-height: 260px; }
.cv-blue { background: linear-gradient(135deg, #e8effe 0%, #c7d7fc 100%); }
.cv-green { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); }
.cv-amber { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.case-body { padding: 32px; }
.case-card.featured .case-body { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.case-category {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.case-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 600; color: var(--ink);
  line-height: 1.3; margin-bottom: 12px;
}
.case-card.featured .case-title { font-size: 1.6rem; }
.case-desc { font-size: 0.875rem; line-height: 1.7; color: var(--ink-soft); }
.case-metrics { display: flex; gap: 28px; margin-top: 28px; }
.metric-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; color: var(--ink); display: block;
}
.case-card.featured .metric-val { font-size: 2rem; }
.metric-label { font-size: 0.75rem; color: var(--ink-muted); margin-top: 2px; }

/* ── PROCESS ── */
#process { background: var(--ink); color: var(--white); }
#process .section-label { color: var(--gold); }
#process h2 { color: var(--white); }
#process .section-intro { color: rgba(255,255,255,0.6); }
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; margin-top: 60px; }
.process-steps::before {
  content: ''; position: absolute; top: 28px; left: 12%; right: 12%;
  height: 1px; background: rgba(255,255,255,0.12);
}
.step { padding: 0 24px; text-align: center; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: var(--ink); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-family: 'Playfair Display', serif; font-size: 1.1rem;
  color: var(--gold); font-weight: 600; position: relative; z-index: 1;
}
.step-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.step-desc { font-size: 0.82rem; line-height: 1.65; color: rgba(255,255,255,0.5); }

/* ── PROFILES ── */
#profiles { background: var(--cream); text-align: center; }
.profiles-inner { max-width: 520px; margin: 0 auto; }
#profiles h2 { margin-bottom: 16px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.profile-link {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--ink); text-decoration: none; font-size: 0.875rem; font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.profile-link:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(26,86,219,0.12); transform: translateY(-2px); }
.profile-link svg { width: 18px; height: 18px; }

/* ── FOOTER ── */
footer {
  background: var(--ink); color: rgba(255,255,255,0.5);
  padding: 40px 60px; display: flex;
  align-items: center; justify-content: space-between;
}
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 600; color: var(--white);
}
.footer-copy { font-size: 0.8rem; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Scroll-reveal */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  section { padding: 80px 24px; }
  .divider { margin: 0 24px; }
  #hero { grid-template-columns: 1fr; padding: 110px 24px 60px; gap: 40px; }
  .hero-image-wrap { order: -1; }
  .hero-img-card { width: 280px; height: 340px; }
  .hero-float-card { display: none; }
  .expertise-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-card.featured { grid-column: auto; grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-steps::before { display: none; }
  footer { flex-direction: column; gap: 12px; text-align: center; padding: 32px 24px; }
}
