/* ==========================================================================
   Yasas Sri Wickramasinghe — Light Redesign
   Clean, blue-accented landing inspired by a modern agency layout
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --bg-panel: #eef2f7;
  --card: #ffffff;
  --ink: #131a26;
  --ink-soft: #475063;
  --muted: #8a93a3;
  --line: #e4e8ef;
  --line-strong: #d3d9e3;
  --accent: #2f6bff;
  --accent-dark: #1f4fd1;
  --accent-soft: #e9f0ff;
  --ring: rgba(47, 107, 255, 0.18);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px -28px rgba(19, 26, 38, 0.22);
  --shadow-sm: 0 10px 30px -18px rgba(19, 26, 38, 0.28);

  /* Legacy aliases so older page markup/inline-styles render in the light theme */
  --bg-elev: #f4f6f9;
  --bg-card: #ffffff;
  --text: #131a26;
  --text-dim: #475063;
  --accent-soft: #e9f0ff;
  --serif: var(--sans);
  --mono: "Inter", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
em { font-style: normal; color: var(--accent); }
ul { list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

h1, h2, h3 { line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--accent); display: inline-block;
}

.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid var(--line-strong); color: var(--ink);
  background: var(--bg); transition: all .35s var(--ease); cursor: pointer;
}
.btn:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-solid {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 14px 30px -12px var(--ring);
}
.btn-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Progress + Nav ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--accent); z-index: 1000; transition: width .1s linear;
}

.nav {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 16px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; line-height: 1.15; }
.nav-logo em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: color .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.btn { color: #fff; }
.nav-links a.btn:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

.mobile-menu {
  position: fixed; inset: 0; background: #fff; z-index: 950;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 0 var(--pad); transform: translateY(-100%); transition: transform .5s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 18px; align-items: baseline; }
.mobile-menu a .idx { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ---------- Hero (name behind cutout + parallax) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: clamp(12px, 3vw, 28px);
  background: linear-gradient(180deg, #eaf0fb 0%, #f5f8fc 46%, #ffffff 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before { /* soft radial glow */
  content: ""; position: absolute; left: 50%; top: -10%; width: min(900px, 90vw); aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(47,107,255,.16), rgba(47,107,255,0) 62%);
}
.hero-bg::after { /* faint grid */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero-eyebrow {
  position: relative; z-index: 4; display: flex; justify-content: center; gap: 10px;
  text-align: center; font-size: clamp(11px, 1.1vw, 13px); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}
.hero-stage {
  position: relative; z-index: 1;
  height: clamp(440px, 76vh, 760px);
  display: flex; align-items: flex-end; justify-content: center;
  margin-top: clamp(6px, 2vw, 18px);
}
.hero-name {
  position: absolute; top: 1%; left: 50%; transform: translateX(-50%);
  z-index: 1; text-align: center; pointer-events: none; user-select: none;
  display: flex; flex-direction: column; line-height: 0.82;
  font-weight: 800; letter-spacing: -0.045em; width: 100%;
}
.hero-name span {
  display: block; white-space: nowrap;
  background: linear-gradient(180deg, #c4d1e8 0%, #e9eff7 78%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-name .l1 { font-size: clamp(62px, 17vw, 240px); }
.hero-name .l2 { font-size: clamp(30px, 9vw, 130px); letter-spacing: -0.03em; }
.hero-cutout {
  position: relative; z-index: 2; height: 100%; width: auto; max-width: none;
  object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 34px 46px rgba(19, 26, 38, 0.20));
  will-change: transform;
}
/* Floating glass cards */
.hero-float { position: absolute; z-index: 3; bottom: 7%; width: min(290px, 30%); will-change: transform; }
.hero-float-l { left: 0; }
.hero-float-r { right: 0; }
.hero-card, .hero-stat-card {
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.hero-card h3 { font-size: 19px; margin-bottom: 8px; }
.hero-card p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 16px; }
.hero-card .btn { background: var(--accent); color: #fff; border-color: var(--accent); width: 100%; justify-content: center; }
.hero-card .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.hero-stat-card .num { display: flex; align-items: center; gap: 6px; font-size: clamp(30px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.hero-stat-card .num .up { font-size: 0.55em; }
.hero-stat-card .lbl { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.hero-stat-card hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
.hero-stat-card .role { font-size: 13px; color: var(--muted); }
/* Scroll hint */
.scroll-hint {
  position: relative; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 18px auto 0; padding-bottom: clamp(20px, 4vw, 40px);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.scroll-hint span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-grid; place-items: center; }
.scroll-hint span::after { content: "↓"; animation: bob 1.6s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; display: flex; gap: 40px; background: var(--bg); }
.marquee-track { display: flex; gap: 40px; flex-shrink: 0; animation: scroll 32s linear infinite; }
.marquee-track span { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 40px; }
.marquee-track span::after { content: "•"; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { margin-top: 16px; }

/* ---------- Intro / "Serious" band ---------- */
.intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.intro h2 span.hl { background: var(--accent-soft); color: var(--accent); padding: 0 6px; border-radius: 6px; }
.intro p { margin-top: 20px; color: var(--ink-soft); }
.intro-meta { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.avatars { display: flex; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }
.intro-meta .stars { color: #f5a623; font-size: 14px; }
.intro-meta small { display: block; color: var(--muted); font-size: 12px; }
.intro-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.intro-visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; }
.intro-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Feature cards (3 truths) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: all .4s var(--ease); box-shadow: var(--shadow-sm);
}
.feature:hover { transform: translateY(-6px); border-color: var(--accent); }
.feature .ic {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent); margin-bottom: 18px;
}
.feature h3 { margin-bottom: 10px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Newsletter ---------- */
.newsletter {
  margin-top: 28px; background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px); text-align: center;
}
.newsletter h3 { color: #fff; font-size: clamp(20px, 2.4vw, 26px); }
.newsletter p { color: rgba(255,255,255,.7); font-size: 14px; margin: 10px auto 22px; max-width: 440px; }
.nl-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.nl-form input {
  flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff; font-family: inherit; font-size: 14px;
}
.nl-form input::placeholder { color: rgba(255,255,255,.5); }
.nl-form input:focus { outline: none; border-color: var(--accent); }
.nl-form button { white-space: nowrap; }

/* ---------- Case / Featured project ---------- */
.casework { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); }
.casework-img { min-height: 340px; background: var(--bg-panel); }
.casework-img img { width: 100%; height: 100%; object-fit: cover; }
.casework-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.casework-body .tag-line { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.casework-body h3 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 14px; }
.casework-body p { color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }
.casework-foot { display: flex; gap: 10px; margin-top: auto; }
.dot-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; display: grid; place-items: center; cursor: pointer; transition: .3s; }
.dot-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: all .4s var(--ease);
}
.service:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-4px); }
.service .ic { width: 48px; height: 48px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); margin-bottom: 18px; }
.service h3 { color: var(--accent); margin-bottom: 10px; }
.service p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; }
.service .more { font-size: 13px; font-weight: 600; color: var(--ink); display: inline-flex; gap: 6px; }
.service .more .arrow { transition: transform .3s var(--ease); }
.service:hover .more .arrow { transform: translateX(4px); }

/* ---------- Testimonial ---------- */
.testi { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.testi-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); }
.testi-photo img { width: 100%; height: 100%; object-fit: cover; }
.testi-quote { position: relative; }
.testi-quote .mark { font-size: 90px; line-height: .6; color: var(--accent-soft); font-weight: 800; }
.testi-quote blockquote { font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin: 6px 0 24px; }
.testi-author { font-weight: 700; }
.testi-author small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }

/* ---------- Big CTA ---------- */
.bigcta { background: var(--ink); color: #fff; border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
.bigcta-text { padding: clamp(32px, 5vw, 60px); }
.bigcta-text .eyebrow { color: #6ea0ff; }
.bigcta-text .eyebrow::before { background: #6ea0ff; }
.bigcta-text h2 { color: #fff; margin: 16px 0 14px; }
.bigcta-text p { color: rgba(255,255,255,.7); font-size: 15px; margin-bottom: 26px; }
.bigcta-text .btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.bigcta-text .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.bigcta-visual { position: relative; align-self: stretch; min-height: 280px; background: radial-gradient(120% 120% at 80% 20%, #20304f 0%, #131a26 70%); display: grid; place-items: center; padding: 30px; }
.bigcta-visual .chartstat { position: absolute; left: 30px; bottom: 30px; font-size: 44px; font-weight: 800; color: #fff; }
.bigcta-visual .chartstat small { display: block; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.6); letter-spacing: .05em; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-news h3 { font-size: 18px; margin-bottom: 10px; }
.footer-news p { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; max-width: 280px; }
.footer-news .nl-form { margin: 0; max-width: 320px; }
.footer-news .nl-form input { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.footer-news .nl-form input::placeholder { color: var(--muted); }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; font-size: 14px; color: var(--ink-soft); padding: 6px 0; transition: color .25s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-logo { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.footer-bottom small { color: var(--muted); font-size: 13px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Trusted-by logo strip ---------- */
.intro-meta { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.trust-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.trust-logos { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); flex-wrap: wrap; }
.trust-logos img { height: 26px; width: auto; object-fit: contain; opacity: .72; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.trust-logos img.logo-sony { height: 40px; }
.trust-logos img:hover { opacity: 1; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-float { width: 270px; }
}
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  /* Hero reflows to a single column: name → cutout → cards */
  .hero-stage { height: auto; flex-direction: column; align-items: center; gap: 4px; margin-top: 4px; }
  .hero-name { position: static; transform: none; order: 1; margin-bottom: -6%; }
  .hero-cutout { order: 2; height: auto; width: auto; max-height: 56vh; max-width: 86%; }
  .hero-float { position: static; order: 3; width: 100%; max-width: 420px; transform: none !important; }
  .hero-float-l { margin-top: 8px; }
  .intro, .casework, .services-grid, .testi, .bigcta, .footer-top { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .casework-img { min-height: 260px; }
  .bigcta-visual { min-height: 220px; }
  .footer-top { gap: 36px 24px; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
  .nl-form input { border-radius: 14px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-news { grid-column: 1 / -1; }
  .hero-name .l1 { font-size: 24vw; }
  .hero-name .l2 { font-size: 12.5vw; }
}

/* ---------- Premium typography & a11y ---------- */
p { text-wrap: pretty; line-height: 1.72; }
body { letter-spacing: -0.005em; }
.lead, .intro p, .feature p, .service p, .pub-venue, .card p, .casework-body p, .timeline-body p { max-width: 64ch; }
.section-head p { max-width: 56ch; }
h1, h2, h3, .hero-name { text-wrap: balance; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  [data-parallax] { transform: none !important; }
}

/* ==========================================================================
   Legacy component compatibility — styles inner-page markup (research,
   teaching, blogs, contact) in the new light theme.
   ========================================================================== */

/* Page hero */
.page-hero { padding: clamp(70px, 11vw, 130px) 0 clamp(40px, 6vw, 70px); background: linear-gradient(180deg, #f7f9fc 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(36px, 6.5vw, 72px); font-weight: 800; letter-spacing: -0.03em; }
.page-hero .lead { margin-top: 22px; max-width: 720px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* Section head (legacy idx variant) */
.section-head .idx { display: block; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 12px; }
.section-head h2 { display: block; }
.head-link { display: inline-block; margin-top: 16px; }
.heading-center { text-align: center; margin-inline: auto; }

/* Link arrow */
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); transition: gap .3s var(--ease); }
.link-arrow:hover { gap: 12px; }

/* Feature rows (alternating) */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); }
.feature-media { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-row h3 { color: var(--ink); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: all .35s var(--ease); }
a.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.card h3 { margin: 8px 0 8px; }
.card p { color: var(--ink-soft); font-size: 14.5px; }
.kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* Info list */
.info-list { display: flex; flex-direction: column; margin-top: 6px; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info-row .k { color: var(--muted); }
.info-row .v { font-weight: 600; color: var(--ink); text-align: right; }
a.v:hover { color: var(--accent); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--bg-panel); color: var(--ink-soft); border: 1px solid var(--line); }
.tag.gold, .gold { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.org { display: block; font-size: 14px; font-weight: 600; color: var(--accent); margin: 4px 0 10px; }

/* Publication rows */
.pub-year { display: block; font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -0.03em; color: var(--line-strong); margin: 40px 0 8px; }
.pub-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 18px; align-items: start; padding: 24px 18px; border-radius: var(--radius-sm); border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
a.pub-row:hover, .pub-row:hover { background: var(--bg-soft); }
.pub-type { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); padding-top: 4px; }
.pub-title { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.pub-venue { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.pub-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.pub-links a { font-size: 13px; font-weight: 600; color: var(--accent); }
.pub-links a:hover { text-decoration: underline; }
.pub-arrow { font-size: 18px; color: var(--accent); }
.cite { display: inline-block; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 36px; }
.timeline-item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline-date { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }
.timeline-body h3 { margin: 6px 0 2px; }
.timeline-body p { color: var(--ink-soft); font-size: 14.5px; margin-top: 10px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.stat { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.stat-value, .stat .count { font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; color: var(--accent); display: block; }
.stat-label { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* Article cards (blog) */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); transition: all .4s var(--ease); }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.article-cover { position: relative; aspect-ratio: 16/10; padding: 18px; display: flex; align-items: flex-start; background: linear-gradient(135deg, #5b6cff, #2f6bff); }
.article-cover.cov-violet { background: linear-gradient(135deg, #7c5cff, #4b6bff); }
.article-cover.cov-forest { background: linear-gradient(135deg, #1f9d76, #0f6b8f); }
.article-cover.cov-teal { background: linear-gradient(135deg, #18a3b8, #2f6bff); }
.article-cover.cov-gold { background: linear-gradient(135deg, #f5a623, #ef6f3c); }
.article-cover::after { content: attr(data-num); position: absolute; right: 18px; bottom: 10px; font-size: 40px; font-weight: 800; color: rgba(255,255,255,.28); letter-spacing: -0.03em; }
.article-cover .cat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.article-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.article-body .src { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.article-body h3 { margin: 10px 0 16px; font-size: 18px; line-height: 1.3; }
.article-body .read { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent); }

/* Split / sticky */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.sticky-col { position: sticky; top: 100px; }
.sticky-col h2 { margin-top: 12px; }

/* CTA band */
.cta { background: var(--ink); color: #fff; text-align: center; padding: clamp(60px, 9vw, 110px) 0; }
.cta .eyebrow { color: #6ea0ff; }
.cta .eyebrow::before { background: #6ea0ff; }
.cta h2 { color: #fff; margin: 18px auto 0; max-width: 720px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.cta .btn:not(.btn-solid) { color: #fff; border-color: rgba(255,255,255,.3); background: transparent; }
.cta .btn:not(.btn-solid):hover { border-color: #fff; }

/* Quote banner */
.quote-banner { font-size: clamp(20px, 3vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; max-width: 900px; }

/* Forms */
.form-grid { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-family: inherit; font-size: 15px; transition: border-color .25s, box-shadow .25s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.field textarea { resize: vertical; }

/* Legacy plain footer */
footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 64px) var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.footer-name em { color: var(--accent); font-style: normal; }
.footer-copy { font-size: 13px; color: var(--muted); margin-top: 6px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--ink-soft); transition: color .25s; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 940px) {
  .feature-row, .split, .grid-2, .grid-3, .form-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-media { order: -1; }
  .sticky-col { position: static; }
  .pub-row { grid-template-columns: 1fr; gap: 8px; }
  .pub-arrow { display: none; }
}

/* Additional blog cover variants */
.article-cover.cov-navy { background: linear-gradient(135deg, #1f3a8a, #2f6bff); }
.article-cover.cov-plum { background: linear-gradient(135deg, #7c3aed, #9d4edd); }
.article-cover.cov-slate { background: linear-gradient(135deg, #334155, #475569); }
.article-cover.cov-ember { background: linear-gradient(135deg, #ef6f3c, #f5a623); }

/* Blog cover thumbnails (generated SVG art layered over gradient fallback) */
.article-cover { overflow: hidden; }
.article-cover .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0; transition: transform .6s var(--ease); }
.article-cover .cat { position: relative; z-index: 2; }
.article-cover::after { z-index: 2; }
.article-card:hover .cover-img { transform: scale(1.045); }

/* Counter suffix */
.suffix { color: var(--accent); font-weight: 800; font-size: inherit; }

/* Quote banner with image overlay */
.quote-banner { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.quote-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,26,38,0) 30%, rgba(19,26,38,.85) 100%); }
.quote-banner .inner { position: relative; z-index: 1; padding: clamp(28px, 5vw, 56px); }
.quote-banner blockquote { font-size: clamp(20px, 3vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; color: #fff; max-width: 820px; }
.quote-banner cite { display: block; margin-top: 18px; font-style: normal; font-size: 14px; color: rgba(255,255,255,.75); }

/* ---------- Lenis smooth scroll ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
