/* ============================================================
   TALENTARE CONSULTING — Shared design system
   Brand: deep indigo ink + vibrant ribbon gradient
   Type:  Source Serif 4 (headings) / Public Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Ink / neutrals */
  --ink:        #181436;   /* deep indigo — primary text & dark sections */
  --ink-2:      #2a2456;
  --slate:      #5b5878;   /* muted body text */
  --slate-2:    #8a87a3;
  --line:       #e6e4ef;   /* hairlines */
  --paper:      #ffffff;
  --paper-2:    #f6f5fb;   /* tinted section bg */
  --paper-3:    #efedf8;

  /* Brand ribbon palette */
  --orange:     #f5651e;
  --magenta:    #e5208e;
  --purple:     #7a2be0;
  --blue:       #1e78d6;

  --brand:      #7a2be0;   /* default single accent */
  --brand-ink:  #5a1fb0;

  /* Signature gradient */
  --grad: linear-gradient(105deg, var(--orange) 0%, var(--magenta) 34%, var(--purple) 66%, var(--blue) 100%);
  --grad-soft: linear-gradient(105deg, #fff1e9 0%, #fde6f1 40%, #f0e6fc 70%, #e4f0fb 100%);

  --shadow-sm: 0 1px 2px rgba(24,20,54,.06), 0 2px 8px rgba(24,20,54,.05);
  --shadow-md: 0 4px 14px rgba(24,20,54,.08), 0 18px 40px rgba(24,20,54,.08);
  --shadow-lg: 0 10px 30px rgba(24,20,54,.12), 0 40px 80px rgba(24,20,54,.14);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Public Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(88px, 11vw, 160px); }
.section--tight { padding-block: clamp(60px, 7.5vw, 108px); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Public Sans', sans-serif;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-ink);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad);
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: #c7b6ff; }

.lead { font-size: clamp(18px, 2vw, 21px); color: var(--slate); line-height: 1.65; }
.muted { color: var(--slate); }

.h-display { font-size: clamp(38px, 6.2vw, 76px); }
.h-1 { font-size: clamp(32px, 4.6vw, 54px); }
.h-2 { font-size: clamp(26px, 3.2vw, 40px); }
.h-3 { font-size: clamp(20px, 2.2vw, 26px); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Public Sans', sans-serif;
  font-weight: 700; font-size: 15.5px;
  padding: 15px 26px; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff; background: var(--grad);
  background-size: 200% 200%; background-position: 0% 50%;
  box-shadow: 0 10px 26px rgba(122,43,224,.34), 0 4px 12px rgba(229,32,142,.26);
  font-weight: 800; letter-spacing: .005em;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.025); background-position: 100% 50%; box-shadow: 0 18px 40px rgba(122,43,224,.42), 0 8px 20px rgba(229,32,142,.32); }
.btn-primary:active { transform: translateY(-1px) scale(1); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover { transform: translateY(-2px); background: var(--ink-2); }
.btn-outline { color: var(--ink); background: transparent; border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost-light { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-lg { padding: 18px 36px; font-size: 17px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; color: var(--brand-ink);
}
.arrow-link svg { width: 17px; height: 17px; transition: transform .2s ease; }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 28px rgba(24,20,54,.10);
}
.nav {
  display: flex; align-items: center; gap: 32px;
  height: 92px;
}
.brand { display: flex; align-items: center; gap: 15px; margin-right: auto; padding: 6px 0; }
.brand img { height: 52px; width: auto; }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .wm b { font-family: 'Public Sans', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -.02em; color: var(--ink); }
.brand .wm span { font-size: 10.5px; letter-spacing: .36em; font-weight: 700; color: var(--slate-2); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-weight: 600; font-size: 15px; color: var(--ink);
  padding: 9px 14px; border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { background: var(--paper-2); }
.nav-links a.active { color: var(--brand-ink); }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; width: 18px; margin: 3px auto 0;
  background: var(--grad); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; }
.mobile-menu { display: none; }

/* mobile nav */
@media (max-width: 980px) {
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
  .mobile-menu {
    display: none; flex-direction: column; gap: 2px;
    padding: 12px var(--pad) 22px; border-top: 1px solid var(--line);
    background: #fff;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 13px 8px; font-weight: 600; border-radius: 10px; }
  .mobile-menu a:hover { background: var(--paper-2); }
  .mobile-menu a.active { color: var(--brand-ink); }
  .mobile-menu .btn { margin-top: 10px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c6e0; padding-block: clamp(54px, 7vw, 84px) 30px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px;
}
.footer-brand .brand { gap: 16px; align-items: center; }
.footer-brand img {
  height: 62px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.45))
          drop-shadow(0 0 22px rgba(122,43,224,.30));
}
.footer-brand .wm b { color: #fff; font-family: 'Public Sans'; font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.footer-brand .wm span { color: #a7a3cc; font-size: 11px; letter-spacing: .36em; font-weight: 700; margin-top: 5px; }
.footer-tag { margin-top: 18px; max-width: 30ch; color: #9794c0; font-size: 15px; }
.footer-col h4 { font-family: 'Public Sans'; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: #fff; font-weight: 700; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: #9b98c2; font-size: 15px; margin-bottom: 11px; transition: color .18s ease; }
.footer-col a:hover { color: #fff; }
.footer-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  padding: 12px 16px; margin-top: 4px;
}
.footer-badge b { color: #fff; font-family: 'Public Sans'; font-weight: 800; }
.footer-badge span { font-size: 12.5px; color: #9b98c2; }
.footer-bot {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 13.5px; color: #807ca8;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Hero (interior pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  color: #fff;
  padding-block: clamp(92px, 13vw, 168px);
  background:
    radial-gradient(115% 85% at 12% -10%, rgba(122,43,224,.42), transparent 52%),
    radial-gradient(95% 80% at 102% 8%, rgba(229,32,142,.34), transparent 50%),
    radial-gradient(90% 95% at 88% 112%, rgba(30,120,214,.40), transparent 55%),
    radial-gradient(70% 60% at 30% 120%, rgba(245,101,30,.20), transparent 60%),
    linear-gradient(180deg, #0c0922 0%, #130f2c 50%, #181436 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  opacity: .6;
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8,6,20,.55));
}
.page-hero .eyebrow { color: #c7b6ff; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #b6b2d8; }
.hero-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .6; }
.orb.a { width: 460px; height: 460px; background: var(--magenta); top: -170px; right: -90px; animation: orbDrift 17s ease-in-out infinite; }
.orb.b { width: 420px; height: 420px; background: var(--blue); bottom: -190px; right: 16%; opacity:.5; animation: orbDrift 21s ease-in-out infinite reverse; }
.orb.c { width: 340px; height: 340px; background: var(--orange); top: -130px; left: -110px; opacity:.45; animation: orbDrift 19s ease-in-out infinite; }
@keyframes orbDrift {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(26px,32px,0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .orb { animation: none !important; } }
.page-hero .wrap { position: relative; z-index: 1; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--grad); color: #fff; }
.cta-band::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(120% 140% at 80% -20%, rgba(255,255,255,.28), transparent 55%);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.cta-band .btn-primary:hover { background: #fff; transform: translateY(-2px); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d9d6ec; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 15.5px; margin: 0; }

.icon-chip {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--grad-soft); border: 1px solid var(--line);
}
.icon-chip svg { width: 24px; height: 24px; stroke: var(--brand-ink); }
.num-chip {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 18px;
  font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 19px; color: #fff;
  background: var(--grad);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: #fff; padding: 30px 26px; }
.stat .n { font-family: 'Source Serif 4', serif; font-weight: 700; font-size: clamp(32px, 4vw, 46px); line-height: 1; letter-spacing: -.02em; }
.stat .l { margin-top: 10px; font-size: 14px; color: var(--slate); font-weight: 500; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1100px) { .grid-3 { grid-template-columns: 1fr 1fr; } }

/* ---------- Placeholder image ---------- */
.ph {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, rgba(122,43,224,.06) 0 12px, transparent 12px 24px);
  border: 1px solid var(--line);
  display: grid; place-items: center; min-height: 280px; color: var(--slate-2);
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--slate-2); padding: 8px 14px; border: 1px dashed var(--slate-2);
  border-radius: 8px; background: rgba(255,255,255,.7);
  text-align: center; max-width: 80%;
}
.ph--tall { min-height: 440px; }
.ph--wide { aspect-ratio: 16/10; min-height: 0; }

/* ---------- Real image frames ---------- */
.media {
  display: block; width: 100%; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  background: var(--paper-2);
}
.media--tall { height: clamp(440px, 50vw, 580px); }
.media--hero { height: clamp(460px, 58vh, 600px); }
.hero-art .media { border: 1px solid rgba(255,255,255,.14); }

/* ---------- Checklist ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.checks .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line);
}
.checks .tick svg { width: 14px; height: 14px; stroke: var(--brand-ink); stroke-width: 3; }

/* ---------- Pill / tag ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 999px;
  background: var(--paper-2); color: var(--brand-ink); border: 1px solid var(--line);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; }
.gradient-rule { height: 4px; width: 64px; border-radius: 4px; background: var(--grad); }
.bg-tint { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink p { color: #b6b2d8; }

/* ---------- Home hero ---------- */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-proof { display: flex; align-items: center; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-proof > div:not(.vr) { display: flex; flex-direction: column; }
.hero-proof b { font-family: 'Source Serif 4', serif; font-size: 26px; color: #fff; line-height: 1; }
.hero-proof span { font-size: 13px; color: #9b97c4; margin-top: 6px; }
.hero-proof .vr { width: 1px; height: 38px; background: rgba(255,255,255,.16); }
.hero-art { position: relative; }
.hero-art .ph { min-height: 480px; background-color: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.hero-art .ph::after { color: #b8b4dd; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.hero-badge {
  position: absolute; left: -22px; bottom: 30px;
  display: flex; align-items: center; gap: 14px;
  background: #fff; color: var(--ink); padding: 16px 20px; border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.hero-badge-mark { width: 42px; height: 42px; display: grid; place-items: center; }
.hero-badge-mark img { width: 42px; height: auto; }
.hero-badge strong { display: block; font-family: 'Source Serif 4', serif; font-size: 19px; }
.hero-badge span { font-size: 12.5px; color: var(--slate); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps .step p { color: #b6b2d8; font-size: 15px; margin-top: 10px; }
.steps .step { position: relative; }
.steps .step:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: 64px; right: -14px; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,0));
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; gap: 32px; } .steps .step::after { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Section head ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Story cards ---------- */
.story .story-metric { font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 40px; line-height: 1; margin: 18px 0 12px; }
.story h3 { font-size: 20px; }

/* ---------- Team ---------- */
.team-card { transition: transform .22s ease; }
.team-card:hover { transform: translateY(-4px); }
.team-card .team-body { padding-top: 22px; }
.team-card h3 { font-size: 22px; }
.team-card .role { display: block; font-weight: 700; font-size: 13.5px; letter-spacing: .04em; color: var(--brand-ink); margin: 6px 0 12px; }
.team-card p { color: var(--slate); font-size: 15px; margin: 0; }

/* ---------- Accreditation tiles ---------- */
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.acc-tile { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); border-radius: 16px; padding: 24px; }
.acc-tile b { display: block; font-family: 'Source Serif 4', serif; font-size: 22px; color: #fff; }
.acc-tile span { display: block; font-size: 13.5px; color: #9794c0; margin-top: 8px; }
@media (max-width: 480px) { .acc-grid { grid-template-columns: 1fr; } }

/* ---------- Pillars (services detail) ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pillar {
  display: flex; gap: 22px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .25s ease, border-color .25s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d9d6ec; }
.pillar-no {
  flex: none; font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 19px;
  color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text;
  padding-top: 4px;
}
.pillar-main h3 { font-size: 21px; margin-bottom: 10px; }
.pillar-main p { color: var(--slate); font-size: 15.5px; margin: 0; }
.pillar-main .icon-chip { margin-bottom: 16px; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Case studies ---------- */
.case {
  display: grid; grid-template-columns: .82fr 1.18fr;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md); background: #fff;
}
.case--rev .case-panel { order: 2; }
.case--rev .case-body { order: 1; }
.case-panel {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad); padding: clamp(32px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: center;
}
.case-panel::after { content:""; position:absolute; inset:0; background: radial-gradient(120% 120% at 85% 0%, rgba(255,255,255,.25), transparent 55%); }
.case-panel > * { position: relative; z-index: 1; }
.case-big { font-family: 'Source Serif 4', serif; font-weight: 700; font-size: clamp(48px, 7vw, 76px); line-height: .95; margin-top: 22px; }
.case-big-sub { font-size: 16px; color: rgba(255,255,255,.92); margin: 8px 0 0; font-weight: 600; }
.case-substats { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.case-substats > div { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 14px 16px; }
.case-substats b { display: block; font-family: 'Source Serif 4', serif; font-size: 22px; }
.case-substats span { font-size: 12.5px; color: rgba(255,255,255,.85); }
.case-body { padding: clamp(32px, 4vw, 52px); }
.case-body > h2 { margin-bottom: 26px; }
.case-block { padding-left: 18px; border-left: 2px solid var(--line); margin-bottom: 22px; }
.case-block:last-child { margin-bottom: 0; }
.case-block h4 { font-family: 'Public Sans', sans-serif; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); font-weight: 700; margin-bottom: 8px; }
.case-block p { color: var(--slate); font-size: 16px; margin: 0; }
.case-block strong { color: var(--ink); }
@media (max-width: 820px) {
  .case { grid-template-columns: 1fr; }
  .case--rev .case-panel, .case--rev .case-body { order: initial; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-cards { display: grid; gap: 12px; margin-top: 30px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
a.contact-card:hover { border-color: #d2cdec; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.contact-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); }
.contact-ic svg { width: 21px; height: 21px; stroke: var(--brand-ink); }
.contact-meta { display: flex; flex-direction: column; }
.contact-meta b { font-size: 13px; color: var(--slate); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.contact-meta span { font-size: 16.5px; color: var(--ink); font-weight: 600; }
.contact-badge {
  display: flex; align-items: center; gap: 16px; margin-top: 26px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
}
.contact-badge img { width: 44px; height: auto; }
.contact-badge b { display: block; font-family: 'Source Serif 4', serif; font-size: 18px; }
.contact-badge span { font-size: 13.5px; color: var(--slate); }

/* ---------- Form ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow-md); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field-row .field { margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  font-family: 'Public Sans', sans-serif; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper-2);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple); background: #fff;
  box-shadow: 0 0 0 4px rgba(122,43,224,.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-2); }
.form-note { font-size: 13px; color: var(--slate-2); text-align: center; margin: 14px 0 0; }
.form-success { text-align: center; padding: 24px 8px; }
.success-ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: var(--grad); }
.success-ic svg { width: 30px; height: 30px; stroke: #fff; }
.form-success a { color: var(--brand-ink); font-weight: 700; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ============================================================
   MOTION — hero load stagger + button glow pulse
   ============================================================ */
@keyframes loadUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero-line { display: block; }

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance: each element rises and fades on load */
  .load-up { opacity: 0; animation: loadUp .9s cubic-bezier(.2,.7,.2,1) both; }

  /* Gentle glow "breathing" on the key call-to-action buttons */
  @keyframes glowPulse {
    0%, 100% { box-shadow: 0 10px 26px rgba(122,43,224,.34), 0 4px 12px rgba(229,32,142,.24); }
    50%      { box-shadow: 0 12px 32px rgba(122,43,224,.50), 0 0 0 5px rgba(122,43,224,.10), 0 6px 18px rgba(229,32,142,.40); }
  }
  .btn-pulse { animation: glowPulse 3.4s ease-in-out infinite; }
  .btn-pulse:hover { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .load-up { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ============================================================
   BLOG / INSIGHTS
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 660px)  { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); color: inherit; text-decoration: none;
  transition: transform .22s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d9d6ec; }
.post-card:hover .read svg { transform: translateX(4px); }
.post-thumb { aspect-ratio: 16/10; width: 100%; object-fit: cover; display: block; background: var(--paper-2); }
.post-thumb-ph {
  aspect-ratio: 16/10; width: 100%;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, rgba(122,43,224,.07) 0 12px, transparent 12px 24px);
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
}
.post-thumb-ph::after {
  content: attr(data-label);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-2);
  padding: 8px 14px; border: 1px dashed var(--slate-2); border-radius: 8px;
  background: rgba(255,255,255,.7);
}
.post-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--slate); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.post-meta .cat { color: var(--brand-ink); }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--slate-2); flex: none; }
.post-card h3 { font-size: 21px; line-height: 1.22; margin: 0; }
.post-card .excerpt { color: var(--slate); font-size: 15.5px; margin: 0; }
.post-card .read { margin-top: auto; padding-top: 4px; }

/* Featured post */
.post-featured {
  display: grid; grid-template-columns: 1.05fr .95fr;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md); background: #fff; color: inherit; text-decoration: none;
  transition: transform .22s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d9d6ec; }
.post-featured:hover .read svg { transform: translateX(4px); }
.post-featured > img {
  width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block;
}
.post-featured .post-body { padding: clamp(30px, 4vw, 52px); gap: 14px; }
.post-featured .featured-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; padding: 7px 13px; border-radius: 999px; background: var(--grad); width: fit-content;
}
.post-featured h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.14; margin: 0; }
@media (max-width: 820px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured > img { min-height: 260px; aspect-ratio: 16/10; }
}

/* ============================================================
   ARTICLE (single post)
   ============================================================ */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: #c7b6ff;
  letter-spacing: .04em; text-transform: uppercase;
}
.back-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.back-link:hover svg { transform: translateX(-3px); }
.back-link:hover { color: #fff; }

.article-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 26px; color: #b6b2d8; font-size: 14.5px;
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); flex: none; }

.article-feature-image {
  max-width: 1120px; margin: clamp(28px, 4vw, 56px) auto 0;
  padding-inline: var(--pad);
}
.article-feature-image img {
  width: 100%; aspect-ratio: 16/8; object-fit: cover;
  border-radius: var(--r-lg); display: block; box-shadow: var(--shadow-md);
}

.article { max-width: 720px; margin-inline: auto; }
.article p { font-size: 17.5px; color: var(--ink-2); line-height: 1.75; margin: 0 0 20px; }
.article .article-lede { font-size: 20px; color: var(--ink); line-height: 1.6; margin-bottom: 28px; }
.article h2 {
  font-size: clamp(24px, 2.8vw, 30px); margin: 40px 0 14px;
  letter-spacing: -.005em;
}
.article h3 { font-size: 21px; margin: 28px 0 10px; }
.article ul, .article ol {
  padding-left: 22px; color: var(--ink-2); line-height: 1.7;
  margin: 0 0 22px; font-size: 17px;
}
.article li { margin-bottom: 10px; }
.article li::marker { color: var(--purple); }
.article strong { color: var(--ink); }
.article a { color: var(--brand-ink); font-weight: 700; }
.article a:hover { text-decoration: underline; }
.article blockquote {
  margin: 30px 0; padding: 26px 30px;
  border-left: 4px solid var(--purple);
  background: var(--paper-2); border-radius: 12px;
  font-family: 'Source Serif 4', serif; font-size: 20px; line-height: 1.5; color: var(--ink);
  text-wrap: pretty;
}
