/* ============================================================
   eUniversity — Kinetic Editorial redesign
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

/* ---------- Tokens ---------- */
:root {
  --ink:        oklch(0.165 0.012 38);
  --ink-2:      oklch(0.205 0.014 38);
  --ink-3:      oklch(0.255 0.016 40);
  --paper:      oklch(0.974 0.008 75);
  --paper-2:    oklch(0.945 0.012 72);
  --paper-line: oklch(0.88 0.014 70);

  --red:        oklch(0.585 0.225 28);
  --red-bright: oklch(0.66 0.232 32);
  --red-deep:   oklch(0.43 0.18 28);

  --amber:      oklch(0.80 0.155 72);
  --emerald:    oklch(0.74 0.15 162);
  --sky:        oklch(0.74 0.12 232);
  --violet:     oklch(0.70 0.15 292);

  --cream:      oklch(0.965 0.012 78);
  --cream-mut:  oklch(0.74 0.02 70);
  --cream-dim:  oklch(0.58 0.02 65);

  --ink-text:   oklch(0.22 0.02 40);
  --ink-mut:    oklch(0.46 0.02 45);

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
section { position: relative; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red-bright);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--red-bright);
  display: inline-block;
}
.serif-it { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .25s, box-shadow .35s var(--ease), color .25s, border-color .25s;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px -8px oklch(0.585 0.225 28 / 0.55);
}
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 18px 40px -10px oklch(0.585 0.225 28 / 0.7); }
.btn-ghost {
  background: oklch(1 0 0 / 0.06);
  color: var(--cream);
  border-color: oklch(1 0 0 / 0.16);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: oklch(1 0 0 / 0.13); transform: translateY(-2px); }
.btn-wa { background: var(--emerald); color: oklch(0.18 0.04 162); }
.btn-wa:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--red); box-shadow: 0 12px 34px -10px oklch(0 0 0 / 0.4); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px oklch(0 0 0 / 0.5); }
.btn-lg { padding: 17px 30px; font-size: 16px; }

/* ---------- Top announcement marquee ---------- */
.topbar {
  background: var(--red);
  color: #fff;
  overflow: hidden;
  position: relative;
  z-index: 60;
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
}
.topbar .track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.topbar .item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar .item span { padding: 0 26px; }
.topbar .dot { width: 5px; height: 5px; border-radius: 50%; background: oklch(1 0 0 / 0.55); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.nav {
  position: relative;
  transition: background .4s var(--ease), border-color .4s, padding .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
  background: oklch(0.165 0.012 38 / 0);
}
.nav.scrolled {
  background: oklch(0.165 0.012 38 / 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: oklch(1 0 0 / 0.08);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding .4s var(--ease);
}
.nav.scrolled .nav-inner { padding: 11px 28px; }
.nav-logo { height: 70px; width: auto; transition: height .4s var(--ease); }
.nav.scrolled .nav-logo { height: 58px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream-mut);
  position: relative;
  transition: color .25s;
}
.nav-links a.link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1.5px; background: var(--red-bright);
  transition: width .3s var(--ease);
}
.nav-links a.link:hover { color: var(--cream); }
.nav-links a.link:hover::after { width: 100%; }
.nav-burger { display: none; background: none; border: none; color: var(--cream); cursor: pointer; }
.mobile-menu { display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 84svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  padding: 72px 0 96px;
}
.hero-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.30;
  filter: saturate(1.05) contrast(1.05);
  mix-blend-mode: luminosity;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, oklch(0.585 0.225 28 / 0.30), transparent 55%),
    linear-gradient(180deg, oklch(0.165 0.012 38 / 0.55) 0%, oklch(0.165 0.012 38 / 0.85) 60%, var(--ink) 100%);
}
/* animated mesh blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}
.blob.b1 { width: 460px; height: 460px; background: var(--red); top: -120px; right: -60px; animation: float1 16s ease-in-out infinite; }
.blob.b2 { width: 360px; height: 360px; background: var(--red-deep); bottom: -120px; left: -40px; opacity: 0.4; animation: float2 19s ease-in-out infinite; }
.blob.b3 { width: 280px; height: 280px; background: var(--amber); top: 40%; right: 22%; opacity: 0.22; animation: float1 22s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px, 36px) scale(1.12); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px, -30px) scale(1.1); } }

.hero-inner { position: relative; z-index: 5; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; width: 100%; }
.hero-grid { display: block; max-width: 940px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  background: oklch(0.585 0.225 28 / 0.16);
  border: 1px solid oklch(0.585 0.225 28 / 0.4);
  color: oklch(0.92 0.04 40);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 0 0 oklch(0.66 0.232 32 / 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 oklch(0.66 0.232 32 / 0.6); } 70% { box-shadow: 0 0 0 12px oklch(0.66 0.232 32 / 0); } 100% { box-shadow: 0 0 0 0 oklch(0.66 0.232 32 / 0); } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6.6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 24px 0 0;
  color: #fff;
}
.hero h1 .line2 { color: var(--red-bright); display: block; }
.hero h1 .serif-it { font-size: 1.02em; color: var(--amber); }
.hero-sub {
  margin-top: 22px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.01em;
}
.hero-desc {
  margin-top: 18px;
  max-width: 600px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--cream-mut);
}
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 13px; }

.hero-stats {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 760px;
  border-top: 1px solid oklch(1 0 0 / 0.1);
  padding-top: 30px;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.stat .num .suf { color: var(--red-bright); }
.stat .lbl { margin-top: 8px; font-size: 12.5px; color: var(--cream-dim); letter-spacing: 0.02em; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--cream-dim); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-cue .bar { width: 1px; height: 38px; background: linear-gradient(var(--red-bright), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: 0.3; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

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

/* ---------- Partners marquee ---------- */
.partners { background: var(--ink-2); border-top: 1px solid oklch(1 0 0 / 0.06); border-bottom: 1px solid oklch(1 0 0 / 0.06); padding: 30px 0; overflow: hidden; }
.partners .label { text-align: center; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 22px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .row { display: flex; gap: 18px; padding-right: 18px; width: max-content; animation: marquee 38s linear infinite; }
.partners:hover .row { animation-play-state: paused; }
.uni {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 12px;
  background: oklch(1 0 0 / 0.03); border: 1px solid oklch(1 0 0 / 0.08);
  font-size: 15px; font-weight: 600; color: var(--cream-mut); white-space: nowrap;
}
.uni .star { color: var(--red-bright); font-size: 13px; }

/* ---------- Section scaffolding ---------- */
.section { padding: 120px 0; }
.section-cream { background: var(--paper); color: var(--ink-text); }
.section-ink { background: var(--ink); }
.head { max-width: 760px; }
.head.center { margin: 0 auto; text-align: center; }
.prog-logo-chip {
  display: flex;
  width: fit-content;
  align-items: center;
  margin: 0 auto 22px;
  padding: 22px 34px;
  background: #fff;
  border: 1px solid oklch(0 0 0 / 0.07);
  border-radius: 20px;
  box-shadow: 0 18px 40px -20px oklch(0 0 0 / 0.28);
}
.prog-logo-chip img {
  height: 96px;
  width: auto;
}
.head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 22px;
  text-wrap: balance;
}
.section-cream .head h2 { color: var(--ink-text); }
.head p { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--cream-mut); }
.section-cream .head p { color: var(--ink-mut); }
.head strong { color: inherit; font-weight: 700; }
.section-cream .head strong { color: var(--red); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .blob, .topbar .track, .marquee .row { animation: none !important; }
}

/* ---------- Learn–Work–Earn pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 66px; }
.pillar {
  position: relative;
  border-radius: 22px;
  padding: 38px 32px 34px;
  background: var(--ink-2);
  border: 1px solid oklch(1 0 0 / 0.08);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, background .4s;
}
.pillar::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in oklab, var(--glow, var(--red)) 34%, transparent), transparent 62%);
  opacity: 0.5; transition: opacity .4s;
}
.pillar:hover { transform: translateY(-8px); border-color: oklch(1 0 0 / 0.18); }
.pillar:hover::before { opacity: 0.85; }
.pillar .idx {
  font-family: var(--font-display); font-weight: 800;
  font-size: 15px; letter-spacing: 0.1em;
  color: var(--accent); opacity: 0.9;
}
.pillar .picon {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--accent) 16%, transparent);
  color: var(--accent);
  margin: 16px 0 22px;
}
.pillar .picon svg { width: 28px; height: 28px; }
.pillar h3 { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; color: #fff; }
.pillar h3 .serif-it { color: var(--accent); }
.pillar p { margin-top: 14px; font-size: 15px; line-height: 1.62; color: var(--cream-mut); }
.pillar .bignum {
  position: absolute; right: 22px; bottom: -22px;
  font-family: var(--font-display); font-weight: 800; font-size: 130px;
  color: oklch(1 0 0 / 0.04); line-height: 1; letter-spacing: -0.04em;
}

/* who it's for */
.who { margin-top: 88px; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.who-card {
  background: var(--ink-2); border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 18px; padding: 30px 26px; text-align: center;
  transition: transform .45s var(--ease), border-color .35s;
}
.who-card:hover { transform: translateY(-6px); border-color: oklch(0.585 0.225 28 / 0.4); }
.who-card .ic { width: 50px; height: 50px; border-radius: 14px; background: oklch(0.585 0.225 28 / 0.14); color: var(--red-bright); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.who-card .ic svg { width: 23px; height: 23px; }
.who-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #fff; }
.who-card p { margin-top: 10px; font-size: 14px; line-height: 1.58; color: var(--cream-mut); }

/* ---------- Academic modes (cream) ---------- */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 60px; }
.mode {
  background: #fff; border: 1px solid var(--paper-line);
  border-radius: 22px; padding: 34px 30px; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  box-shadow: 0 1px 0 oklch(0 0 0 / 0.02);
}
.mode:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -28px oklch(0 0 0 / 0.22); border-color: color-mix(in oklab, var(--mc) 45%, transparent); }
.mode .mhead { display: flex; gap: 16px; align-items: flex-start; }
.mode .mic { width: 52px; height: 52px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center; background: color-mix(in oklab, var(--mc) 14%, white); color: var(--mc); }
.mode .mic svg { width: 25px; height: 25px; }
.mode h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.1; color: var(--ink-text); letter-spacing: -0.01em; }
.mode .msub { font-size: 12.5px; font-weight: 600; color: var(--ink-mut); margin-top: 5px; }
.mode .mdesc { margin-top: 18px; font-size: 14.5px; line-height: 1.6; color: var(--ink-mut); }
.mode .mlab { margin-top: 22px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 8px; background: color-mix(in oklab, var(--mc) 10%, white); border: 1px solid color-mix(in oklab, var(--mc) 22%, white); color: color-mix(in oklab, var(--mc) 70%, black); }
.mode .hl { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--paper-line); display: flex; flex-direction: column; gap: 12px; }
.mode .hl li { list-style: none; display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--ink-mut); line-height: 1.45; }
.mode .hl svg { width: 18px; height: 18px; color: var(--mc); flex: none; margin-top: 1px; }

.vision { margin-top: 44px; border: 1px solid var(--paper-line); background: color-mix(in oklab, var(--red) 5%, white); border-radius: 22px; padding: 34px; text-align: center; }
.vision .vt { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.vision .vrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.vision .vpill { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--paper-line); font-size: 14px; font-weight: 600; color: var(--ink-text); }
.vision .vpill svg { width: 17px; height: 17px; color: var(--red); }
.vision .vfoot { margin-top: 20px; font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--ink-mut); }

/* ---------- Pathways tabs (ink) ---------- */
.tabsel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 680px; margin: 50px auto 0; }
.tabbtn {
  display: flex; align-items: center; gap: 15px; text-align: left;
  padding: 20px 22px; border-radius: 16px; cursor: pointer;
  background: var(--ink-2); border: 2px solid oklch(1 0 0 / 0.08);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
  color: inherit; font-family: inherit;
}
.tabbtn:hover { transform: translateY(-3px); }
.tabbtn.active { border-color: var(--red); background: oklch(0.585 0.225 28 / 0.08); }
.tabbtn .ti { width: 48px; height: 48px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: oklch(1 0 0 / 0.06); color: var(--cream-mut); transition: all .3s; }
.tabbtn.active .ti { background: var(--red); color: #fff; }
.tabbtn .ti svg { width: 23px; height: 23px; }
.tabbtn b { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; display: block; }
.tabbtn span { font-size: 13px; color: var(--cream-mut); }

.tabpanel { margin-top: 30px; border: 1px solid oklch(1 0 0 / 0.1); border-radius: 24px; overflow: hidden; background: var(--ink-2); }
.tabpanel .pgrid { display: grid; grid-template-columns: 1.1fr 0.9fr; }
.tabpanel .pleft { padding: 48px; }
.tabpanel .phead { display: flex; align-items: center; gap: 13px; }
.tabpanel .phead .ph-ic { width: 44px; height: 44px; border-radius: 12px; background: oklch(0.585 0.225 28 / 0.14); color: var(--red-bright); display: flex; align-items: center; justify-content: center; }
.tabpanel .phead .ph-ic svg { width: 21px; height: 21px; }
.tabpanel h3 { font-family: var(--font-display); font-weight: 700; font-size: 27px; color: #fff; letter-spacing: -0.02em; }
.tabpanel .psub { color: var(--red-bright); font-weight: 600; font-size: 14px; margin-top: 16px; }
.tabpanel .pdesc { color: var(--cream-mut); font-size: 15.5px; line-height: 1.65; margin-top: 14px; }
.tabpanel .pbadges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tabpanel .pb { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; background: oklch(0.585 0.225 28 / 0.12); color: var(--red-bright); font-size: 13px; font-weight: 600; }
.tabpanel .pb svg { width: 15px; height: 15px; }
.tabpanel .pright { padding: 48px; background: oklch(1 0 0 / 0.025); border-left: 1px solid oklch(1 0 0 / 0.08); }
.tabpanel .pright h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-mut); margin-bottom: 22px; }
.tabpanel .pfeat { display: flex; flex-direction: column; gap: 17px; }
.tabpanel .pfeat li { list-style: none; display: flex; gap: 13px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--cream); }
.tabpanel .pfeat svg { width: 19px; height: 19px; color: var(--red-bright); flex: none; margin-top: 1px; }
.fade-swap { animation: fadeSwap .45s var(--ease-out); }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Journey / how it works (cream) ---------- */
.journey { margin-top: 70px; position: relative; }
.jline { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: var(--paper-line); }
.jprog { position: absolute; left: 50%; top: 0; width: 2px; transform: translateX(-50%); background: linear-gradient(var(--red), var(--red-bright)); height: 0; transition: height .1s linear; }
.jstep { position: relative; display: grid; grid-template-columns: 1fr 84px 1fr; align-items: center; min-height: 132px; }
.jstep .jdot {
  grid-column: 2; justify-self: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--paper-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink-mut);
  z-index: 2; transition: all .4s var(--ease);
}
.jstep.in .jdot { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 12px 28px -10px oklch(0.585 0.225 28 / 0.6); }
.jcard { padding: 6px 0; }
.jstep:nth-child(odd) .jcard { grid-column: 1; text-align: right; padding-right: 14px; }
.jstep:nth-child(even) .jcard { grid-column: 3; padding-left: 14px; }
.jcard .jh { display: inline-flex; align-items: center; gap: 11px; }
.jstep:nth-child(odd) .jcard .jh { flex-direction: row-reverse; }
.jcard .ji { width: 38px; height: 38px; border-radius: 11px; background: color-mix(in oklab, var(--red) 12%, white); color: var(--red); display: flex; align-items: center; justify-content: center; flex: none; }
.jcard .ji svg { width: 19px; height: 19px; }
.jcard h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink-text); letter-spacing: -0.01em; }
.jcard p { margin-top: 9px; font-size: 14.5px; line-height: 1.55; color: var(--ink-mut); max-width: 340px; }
.jstep:nth-child(odd) .jcard p { margin-left: auto; }

/* ---------- Industry (ink) ---------- */
.ind-top { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.ind-top h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px,4.4vw,56px); line-height: 0.98; letter-spacing: -0.025em; margin-top: 22px; color: #fff; text-wrap: balance; }
.ind-top p { margin-top: 22px; font-size: 17px; line-height: 1.62; color: var(--cream-mut); }
.ind-partner { margin-top: 26px; display: inline-flex; align-items: center; gap: 13px; padding: 15px 20px; border-radius: 14px; background: oklch(0.585 0.225 28 / 0.08); border: 1px solid oklch(0.585 0.225 28 / 0.22); }
.ind-partner svg { width: 21px; height: 21px; color: var(--red-bright); flex: none; }
.ind-partner span { font-size: 14px; font-weight: 600; color: var(--cream); }
.ind-stats { margin-top: 34px; display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.ind-stats .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px,3vw,40px); color: var(--red-bright); line-height: 1; letter-spacing: -0.02em; }
.ind-stats .lbl { margin-top: 8px; font-size: 12px; color: var(--cream-dim); line-height: 1.3; }
.ind-img { position: relative; }
.ind-img .imgwrap { border-radius: 26px; overflow: hidden; aspect-ratio: 4/3.4; }
.ind-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.ind-float { position: absolute; bottom: -18px; left: -18px; background: var(--ink-3); border: 1px solid oklch(1 0 0 / 0.12); border-radius: 16px; padding: 16px 20px; box-shadow: 0 20px 40px -16px oklch(0 0 0 / 0.6); }
.ind-float .pt { font-size: 11px; color: var(--cream-dim); }
.ind-float .pn { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; margin-top: 2px; }
.ind-float .pu { font-size: 12px; color: var(--red-bright); font-weight: 600; margin-top: 2px; }

.why-grid { margin-top: 84px; }
.why-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 40px; }
.why-card { background: oklch(0.585 0.225 28 / 0.06); border: 1px solid oklch(1 0 0 / 0.08); border-radius: 18px; padding: 26px 24px; transition: transform .45s var(--ease), border-color .35s; }
.why-card:hover { transform: translateY(-6px); border-color: oklch(0.585 0.225 28 / 0.4); }
.why-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; line-height: 1.12; }
.why-card p { margin-top: 11px; font-size: 14px; line-height: 1.55; color: var(--cream-mut); }

.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 40px; }
.svc { background: var(--ink-2); border: 1px solid oklch(1 0 0 / 0.08); border-radius: 18px; padding: 30px 28px; transition: transform .45s var(--ease), border-color .35s; }
.svc:hover { transform: translateY(-6px); border-color: oklch(0.585 0.225 28 / 0.4); }
.svc .ic { width: 50px; height: 50px; border-radius: 14px; background: oklch(0.585 0.225 28 / 0.12); color: var(--red-bright); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.svc .ic svg { width: 23px; height: 23px; }
.svc h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; }
.svc p { margin-top: 11px; font-size: 14px; line-height: 1.58; color: var(--cream-mut); }

.sectors { margin-top: 60px; text-align: center; }
.sectors h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fff; margin-bottom: 24px; }
.sec-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
.sec { padding: 10px 18px; border-radius: 999px; background: oklch(0.585 0.225 28 / 0.06); border: 1px solid oklch(0.585 0.225 28 / 0.2); font-size: 13.5px; font-weight: 500; color: var(--cream); transition: all .3s; }
.sec:hover { background: oklch(0.585 0.225 28 / 0.16); border-color: var(--red); }

/* ---------- Outcomes (cream) ---------- */
.out-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.out-img { position: relative; }
.out-img .iw { border-radius: 26px; overflow: hidden; aspect-ratio: 4/3; }
.out-img img { width: 100%; height: 100%; object-fit: cover; }
.out-img .duotone { position: absolute; inset: 0; background: linear-gradient(150deg, oklch(0.585 0.225 28 / 0.32), transparent 60%); mix-blend-mode: multiply; }
.out-float { position: absolute; bottom: -22px; right: -16px; background: var(--red); color: #fff; border-radius: 18px; padding: 20px 26px; box-shadow: 0 22px 48px -16px oklch(0.585 0.225 28 / 0.55); }
.out-float .n { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; }
.out-float .l { font-size: 13px; opacity: 0.88; margin-top: 4px; }
.out-list { margin-top: 34px; display: flex; flex-direction: column; gap: 13px; }
.out-item { display: flex; align-items: center; gap: 15px; padding: 17px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--paper-line); transition: transform .35s var(--ease), border-color .3s; }
.out-item:hover { transform: translateX(6px); border-color: color-mix(in oklab, var(--red) 40%, white); }
.out-item svg { width: 22px; height: 22px; color: var(--red); flex: none; }
.out-item span { font-size: 16px; font-weight: 600; color: var(--ink-text); }
.out-note { margin-top: 26px; display: flex; gap: 10px; align-items: flex-start; }
.out-note svg { width: 16px; height: 16px; color: var(--ink-mut); flex: none; margin-top: 2px; }
.out-note p { font-size: 13px; color: var(--ink-mut); line-height: 1.5; }

/* ---------- Testimonials (ink) ---------- */
.tcards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 60px; }
.tcard { background: var(--ink-2); border: 1px solid oklch(1 0 0 / 0.08); border-radius: 22px; padding: 34px 30px; transition: transform .5s var(--ease), border-color .4s; display: flex; flex-direction: column; }
.tcard:hover { transform: translateY(-8px); border-color: oklch(0.585 0.225 28 / 0.4); }
.tcard .q { font-family: var(--font-serif); font-style: italic; font-size: 56px; line-height: 0.4; color: var(--red); height: 26px; }
.tcard .quote { font-size: 15.5px; line-height: 1.62; color: var(--cream); margin: 22px 0 22px; flex: 1; }
.tcard .stars { display: flex; gap: 3px; margin-bottom: 20px; color: var(--amber); }
.tcard .stars svg { width: 17px; height: 17px; }
.tcard .who2 { display: flex; align-items: center; gap: 13px; padding-top: 20px; border-top: 1px solid oklch(1 0 0 / 0.08); }
.tcard .who2 img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.tcard .who2 b { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; display: block; }
.tcard .who2 span { font-size: 13px; color: var(--cream-mut); }

/* ---------- CTA (red) ---------- */
.cta { background: var(--red); position: relative; overflow: hidden; padding: 120px 0; text-align: center; }
.cta .glow { position: absolute; inset: 0; background: radial-gradient(60% 80% at 30% 30%, oklch(1 0 0 / 0.16), transparent 55%), radial-gradient(50% 70% at 80% 90%, oklch(0.43 0.18 28 / 0.6), transparent 55%); }
.cta-mark { position: absolute; font-family: var(--font-display); font-weight: 800; font-size: 30vw; line-height: 1; color: oklch(1 0 0 / 0.05); top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; white-space: nowrap; letter-spacing: -0.04em; }
.cta-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 0 28px; }
.cta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px,6vw,82px); line-height: 0.95; letter-spacing: -0.03em; color: #fff; text-wrap: balance; }
.cta h2 .serif-it { color: oklch(0.95 0.06 75); }
.cta p { margin-top: 24px; font-size: 19px; line-height: 1.55; color: oklch(1 0 0 / 0.82); max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-btns { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta .fine { margin-top: 26px; font-size: 13.5px; color: oklch(1 0 0 / 0.6); }
.cta-phones { margin-top: 14px !important; font-size: 17px !important; font-weight: 600; color: var(--cream) !important; }
.cta-phones a { color: var(--cream); border-bottom: 1px solid oklch(1 0 0 / 0.4); transition: opacity .25s; }
.cta-phones a:hover { opacity: .8; }
.cta-phones .sep { color: oklch(1 0 0 / 0.35); margin: 0 10px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); border-top: 1px solid oklch(1 0 0 / 0.08); padding: 80px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; }
.foot-logo { height: 76px; width: auto; }
.foot-brand p { margin-top: 20px; font-size: 14.5px; line-height: 1.6; color: var(--cream-mut); max-width: 340px; }
.foot-contact { margin-top: 24px; display: flex; flex-direction: column; gap: 13px; }
.foot-contact a { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--cream-mut); transition: color .25s; }
.foot-contact a:hover { color: var(--cream); }
.foot-contact svg { width: 17px; height: 17px; color: var(--red-bright); flex: none; }
.foot-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); margin-bottom: 18px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.foot-col a { font-size: 14px; color: var(--cream-mut); transition: color .25s; }
.foot-col a:hover { color: var(--red-bright); }
.foot-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid oklch(1 0 0 / 0.08); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.foot-bottom p { font-size: 13.5px; color: var(--cream-dim); }
.foot-bottom p a { color: var(--cream-mut); transition: color .25s; }
.foot-bottom p a:hover { color: var(--red-bright); }
.foot-bottom .sep { color: oklch(1 0 0 / 0.2); margin: 0 8px; }

/* ---------- Floating chat ---------- */
.chatfab { position: fixed; bottom: 26px; right: 26px; z-index: 80; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 34px -10px oklch(0 0 0 / 0.5); cursor: pointer; transition: transform .35s var(--ease); border: none; }
.fab:hover { transform: scale(1.08); }
.fab.wa { background: var(--emerald); color: #062a1c; }
.fab.call { background: var(--red); color: #fff; }
.fab svg { width: 25px; height: 25px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pillars, .who-grid, .modes, .svc-grid, .why-cards, .tcards { grid-template-columns: 1fr 1fr; }
  .ind-top, .out-grid { grid-template-columns: 1fr; gap: 44px; }
  .tabpanel .pgrid { grid-template-columns: 1fr; }
  .tabpanel .pright { border-left: none; border-top: 1px solid oklch(1 0 0 / 0.08); }
}
@media (max-width: 720px) {
  .wrap, .nav-inner, .hero-inner, .cta-inner { padding-left: 20px; padding-right: 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu { display: block; position: fixed; top: 0; right: 0; bottom: 0; width: 78%; max-width: 320px; background: var(--ink-2); z-index: 70; transform: translateX(100%); transition: transform .4s var(--ease); padding: 90px 28px 28px; border-left: 1px solid oklch(1 0 0 / 0.1); }
  .mobile-menu.open { transform: none; }
  .mobile-menu a { display: block; padding: 14px 0; font-size: 17px; font-weight: 500; color: var(--cream-mut); border-bottom: 1px solid oklch(1 0 0 / 0.06); }
  .mobile-menu .btn { width: 100%; justify-content: center; margin-top: 22px; }
  .mob-overlay { position: fixed; inset: 0; background: oklch(0 0 0 / 0.5); z-index: 65; opacity: 0; pointer-events: none; transition: opacity .35s; }
  .mob-overlay.open { opacity: 1; pointer-events: auto; }
  .section { padding: 84px 0; }
  .pillars, .who-grid, .modes, .svc-grid, .why-cards, .tcards, .ind-stats, .hero-stats, .tabsel, .foot-grid { grid-template-columns: 1fr; }
  .ind-stats, .hero-stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .journey { }
  .jstep { grid-template-columns: 56px 1fr; gap: 18px; min-height: auto; padding: 18px 0; }
  .jline, .jprog { left: 28px; }
  .jstep .jdot { grid-column: 1; }
  .jstep:nth-child(odd) .jcard, .jstep:nth-child(even) .jcard { grid-column: 2; text-align: left; padding: 0; }
  .jstep:nth-child(odd) .jcard .jh { flex-direction: row; }
  .jstep:nth-child(odd) .jcard p { margin-left: 0; }
  .out-float { right: 10px; }
}

/* ---------- Apply modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: oklch(0.1 0.01 40 / 0.72);
  backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  position: relative;
  width: 100%; max-width: 520px;
  margin: auto;
  background: var(--ink-2);
  border: 1px solid oklch(1 0 0 / 0.1);
  border-radius: 24px;
  padding: 38px 36px 34px;
  box-shadow: 0 40px 90px -30px oklch(0 0 0 / 0.7);
  transform: translateY(20px) scale(0.98);
  transition: transform .4s var(--ease);
}
.modal-overlay.open .modal { transform: none; }
.modal::before {
  content: ""; position: absolute; inset: 0; border-radius: 24px;
  background: radial-gradient(120% 60% at 100% 0%, oklch(0.585 0.225 28 / 0.16), transparent 60%);
  pointer-events: none;
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; border-radius: 50%;
  background: oklch(1 0 0 / 0.06); border: 1px solid oklch(1 0 0 / 0.1);
  color: var(--cream-mut); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .25s; z-index: 2;
}
.modal-close:hover { background: oklch(1 0 0 / 0.12); color: #fff; transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
.modal-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-bright); }
.modal h3 { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; color: #fff; margin-top: 10px; line-height: 1; }
.modal h3 .serif-it { color: var(--amber); }
.modal .sub { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--cream-mut); }
.modal form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 2; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--cream); }
.field label .req { color: var(--red-bright); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 15px;
  padding: 13px 15px; border-radius: 12px;
  background: oklch(1 0 0 / 0.04);
  border: 1.5px solid oklch(1 0 0 / 0.12);
  color: #fff;
  transition: border-color .25s, background .25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--cream-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); background: oklch(0.585 0.225 28 / 0.06);
}
.field select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a08f86' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field select option { background: var(--ink-2); color: #fff; }
.field textarea { resize: vertical; min-height: 76px; }
.modal-submit { margin-top: 6px; width: 100%; justify-content: center; }
.modal-foot { margin-top: 14px; display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 12px; color: var(--cream-dim); }
.modal-foot svg { width: 14px; height: 14px; color: var(--emerald); }
.attr-chip {
  margin-top: 16px; display: none; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 12px;
  background: oklch(0.585 0.225 28 / 0.07); border: 1px solid oklch(0.585 0.225 28 / 0.18);
  font-size: 11.5px; color: var(--cream-mut);
}
.attr-chip.show { display: flex; }
.attr-chip b { color: var(--red-bright); font-weight: 600; }
.attr-chip .tag { padding: 3px 8px; border-radius: 6px; background: oklch(1 0 0 / 0.06); color: var(--cream); }
/* success */
.modal-success { text-align: center; padding: 14px 0 6px; position: relative; z-index: 2; }
.modal-success .ok { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px;
  background: oklch(0.74 0.15 162 / 0.14); color: var(--emerald);
  display: flex; align-items: center; justify-content: center; }
.modal-success .ok svg { width: 36px; height: 36px; }
.modal-success h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: #fff; }
.modal-success p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--cream-mut); }
.modal-success .btn { margin-top: 26px; }
@media (max-width: 520px) {
  .modal { padding: 32px 22px 26px; border-radius: 20px; }
  .field.row2 { grid-template-columns: 1fr; }
}
