/*
Theme Name:  Lafame
Theme URI:   https://lafame.fr
Description: Custom WordPress theme for Lafame — deeptech CNRS spin-off
Version:     1.0.0
Author:      Thomas Coché-Nadaud
Text Domain: lafame
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg-warm:    #E8C4A8;
  --bg-light:   #FAF3EC;
  --bg-white:   #FFFFFF;
  --primary:    #7B1C1C;
  --accent:     #C4501A;
  --teal:       #8CBFBA;
  --cream:      #EDE3D6;
  --text-dark:  #2A1A14;
  --text-body:  #3D2A20;
  --font:       'DM Sans', system-ui, sans-serif;
  --nav-h:      72px;
  --container:  1100px;
  --radius:     0.5rem;
  --radius-lg:  1rem;
  --section-py: 6rem;
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text-body); line-height: 1.65; background: var(--bg-light); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes float-blob {
  0%   { transform: translateY(0px)   scale(1)    rotate(0deg); }
  20%  { transform: translateY(-42px) scale(1.10) rotate(4deg); }
  50%  { transform: translateY(-18px) scale(0.94) rotate(-3deg); }
  75%  { transform: translateY(-34px) scale(1.07) rotate(2deg); }
  100% { transform: translateY(0px)   scale(1)    rotate(0deg); }
}
@keyframes morph {
  0%,100% { border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%; }
  25%     { border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%; }
  50%     { border-radius: 55% 45% 35% 65% / 45% 55% 45% 55%; }
  75%     { border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%; }
}
@keyframes pulse-logo {
  0%,100% { filter: drop-shadow(0 0 0px  rgba(196,80,26,0)); }
  50%     { filter: drop-shadow(0 0 28px rgba(196,80,26,.55)); }
}
@keyframes bounce-arrow {
  0%,100% { transform: rotate(45deg) translateY(0);   opacity: .45; }
  50%     { transform: rotate(45deg) translateY(10px); opacity: 1; }
}
@keyframes gradient-x {
  0%,100% { background-position: 0%   50%; }
  50%     { background-position: 100% 50%; }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes badge-sweep {
  0%       { left: -120%; }
  40%, 100% { left: 120%; }
}
@keyframes ripple-out {
  to { transform: translate(-50%, -50%) scale(10); opacity: 0; }
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes sep-glow {
  0%,100% { box-shadow: 0 0 6px  rgba(196,80,26,.3); }
  50%     { box-shadow: 0 0 20px rgba(196,80,26,.7), 0 0 40px rgba(140,191,186,.35); }
}
@keyframes cursor-breathe {
  0%,100% { transform: translate(-50%,-50%) scale(1); }
  50%     { transform: translate(-50%,-50%) scale(1.2); }
}
@keyframes avatar-ring {
  0%   { box-shadow: 0 0 0 0   rgba(196,80,26,.45); }
  70%  { box-shadow: 0 0 0 12px rgba(196,80,26,0); }
  100% { box-shadow: 0 0 0 0   rgba(196,80,26,0); }
}

/* ============================================================
   CURSOR GLOW
   ============================================================ */
.cursor-glow {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,80,26,.13) 0%, rgba(232,196,168,.06) 50%, transparent 70%);
  transform: translate(-50%, -50%);
  will-change: left, top;
  mix-blend-mode: multiply;
  transition: opacity .4s;
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 4px; width: 0; z-index: 500;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--teal), var(--accent));
  background-size: 300% 100%;
  animation: gradient-x 2.5s linear infinite;
  pointer-events: none;
  transition: width .08s linear;
  box-shadow: 0 0 12px rgba(196,80,26,.6);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(90px) scale(0.94);
  transition: opacity 1.1s var(--ease-out-expo), transform 1.1s var(--ease-out-expo);
}
[data-reveal="left"]  { transform: translateX(-80px) scale(0.96); }
[data-reveal="right"] { transform: translateX(80px)  scale(0.96); }
[data-reveal="scale"] { transform: scale(.78); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].revealed { opacity: 1; transform: none; }

[data-delay="100"].revealed { transition-delay: .10s; }
[data-delay="200"].revealed { transition-delay: .20s; }
[data-delay="300"].revealed { transition-delay: .32s; }
[data-delay="400"].revealed { transition-delay: .44s; }
[data-delay="500"].revealed { transition-delay: .56s; }
[data-delay="600"].revealed { transition-delay: .70s; }

/* ============================================================
   WORD REVEAL (hero tagline)
   ============================================================ */
.word-span {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s var(--ease-out-expo), transform .55s var(--ease-out-expo);
}
.word-span.word-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.section { padding: var(--section-py) 0; position: relative; overflow: hidden; }
.section--warm  { background: var(--bg-warm); }
.section--light { background: var(--bg-light); }
.section--white { background: var(--bg-white); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { color: var(--primary); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
.highlight { color: var(--accent); font-weight: 700; }
.lead { font-size: 1.1rem; line-height: 1.75; }
p + p { margin-top: 1rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
}

/* ============================================================
   BLOBS
   ============================================================ */
.blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; will-change: transform; }
.blob {
  position: absolute;
  animation: float-blob 10s ease-in-out infinite, morph 13s ease-in-out infinite;
  will-change: transform, border-radius;
}
.blob:nth-child(2) { animation-delay: -4.5s, -5.5s; }
.blob:nth-child(3) { animation-delay: -7.5s, -9.5s; }
.blob--teal  { background: var(--teal);  opacity: .88; border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%; }
.blob--cream { background: var(--cream); opacity: .94; border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%; }
.blob--peach { background: #E8B99A;      opacity: .72; border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%; }

/* ============================================================
   NAV — glassmorphism
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 32px rgba(0,0,0,.06);
  transition: background .3s;
  display: flex; align-items: center;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav__logo img { height: 34px; transition: transform .4s var(--ease-out-expo), filter .4s; }
.nav__logo:hover img { transform: scale(1.1); filter: drop-shadow(0 4px 12px rgba(196,80,26,.35)); }
.nav__links { display: flex; gap: 2.25rem; }
.nav__links a {
  font-size: .9rem; font-weight: 500; letter-spacing: .02em;
  color: var(--text-dark); position: relative; padding-bottom: 2px;
  transition: color .2s;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out-expo);
}
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }
.nav__links a:hover, .nav__links a.active { color: var(--accent); }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--text-dark); transition: .3s; }
.nav__mobile {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(255,255,255,.97); backdrop-filter: blur(24px);
  padding: 1.5rem 2rem; border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 48px rgba(0,0,0,.12); z-index: 199;
}
.nav__mobile.open { display: block; }
.nav__mobile li + li { margin-top: .9rem; }
.nav__mobile a { font-size: 1rem; font-weight: 500; color: var(--text-dark); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-warm); text-align: center;
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .045;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.hero__content {
  position: relative; z-index: 1; max-width: 700px;
  animation: fade-in-up .9s .1s both var(--ease-out-expo);
}
.hero__logo {
  height: 80px; margin: 0 auto 2.5rem;
  animation: pulse-logo 4s 1.5s ease-in-out infinite;
}
.hero__tagline {
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  color: var(--text-dark); font-weight: 400; line-height: 1.5;
}
.hero__scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .6rem;
  cursor: pointer; opacity: 0; animation: fade-in-up .6s 1.6s both;
}
.hero__scroll span {
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dark); opacity: .6;
}
.hero__scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  animation: bounce-arrow 1.6s ease-in-out infinite;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  padding: 5rem 0 4rem; background: var(--bg-warm);
  position: relative; overflow: hidden;
}
.page-header__inner { position: relative; z-index: 1; }
.page-header h1 { margin-bottom: .75rem; }
.page-header .lead { max-width: 580px; }

/* ============================================================
   SECTION SEPARATOR
   ============================================================ */
.sep {
  height: 3px; border: none; margin: 0;
  background: linear-gradient(90deg, transparent, var(--accent), var(--teal), var(--accent), transparent);
  background-size: 300% 100%;
  animation: gradient-x 3s linear infinite, sep-glow 3s ease-in-out infinite;
  opacity: .65;
}

/* ============================================================
   BADGE 20 ANS
   ============================================================ */
.years-badge {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--primary); color: white;
  padding: 1.75rem 2rem; border-radius: var(--radius-lg); text-align: center;
  gap: .25rem; position: relative; overflow: hidden;
  box-shadow: 0 16px 50px rgba(123,28,28,.4);
  transition: transform .4s var(--ease-out-expo), box-shadow .4s;
}
.years-badge:hover { transform: translateY(-8px) scale(1.03); box-shadow: 0 28px 70px rgba(123,28,28,.55); }
.years-badge::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1) 0%, transparent 60%);
}
.years-badge::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 70%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  animation: badge-sweep 3.5s 1s ease-in-out infinite;
}
.years-badge__num {
  font-size: 3.8rem; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,.65));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.years-badge__label { font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .8; max-width: 140px; line-height: 1.4; }
.partners-inline { display: flex; gap: 1.5rem; align-items: center; margin-top: 1.25rem; flex-wrap: wrap; justify-content: center; }
.partner-name { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.75); }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-intro { font-size: 1.1rem; color: var(--text-dark); max-width: 700px; margin: 0 auto 3rem; text-align: center; }
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.product-card {
  background: white; border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  border-top: 4px solid var(--primary);
  position: relative; overflow: visible;
  transition: transform .4s var(--ease-out-expo), box-shadow .4s;
  will-change: transform;
  cursor: default;
}
.product-card--oncology { border-top-color: var(--teal); }
.product-card::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: calc(var(--radius-lg) + 3px);
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--teal));
  z-index: -1; opacity: 0;
  transition: opacity .4s;
  filter: blur(8px);
}
.product-card:hover::after { opacity: .55; }
.product-card:hover { transform: translateY(-20px); box-shadow: 0 40px 80px rgba(196,80,26,.2); }
.product-card__tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .8rem; border-radius: 2rem;
  background: var(--primary); color: white; margin-bottom: .75rem;
}
.product-card--oncology .product-card__tag { background: var(--teal); color: var(--text-dark); }
.product-card h3 { font-size: 1.4rem; margin-bottom: .9rem; }
.product-card p { font-size: .95rem; }

/* ============================================================
   TEAM / PERSON CARDS
   ============================================================ */
.dept-section + .dept-section { margin-top: 3rem; }
.dept-label { color: var(--primary); font-weight: 700; font-size: 1.1rem; margin-bottom: 1.75rem; }
.persons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.75rem; }
.person-card { text-align: center; }
.person-card__avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cream), var(--bg-warm));
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; font-weight: 700; color: var(--primary);
  border: 2px solid rgba(123,28,28,.15);
  transition: transform .35s var(--ease-out-expo), box-shadow .35s;
}
.person-card:hover .person-card__avatar {
  transform: scale(1.14) translateY(-4px);
  box-shadow: 0 14px 36px rgba(123,28,28,.22);
  animation: avatar-ring 1.2s ease-out;
}
.person-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.person-card__role { font-size: .82rem; color: var(--accent); font-weight: 600; line-height: 1.4; }
.person-card__title { font-size: .82rem; color: var(--text-body); margin-top: .25rem; line-height: 1.4; }
.person-card__photo {
  width: 90px; height: 90px; border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  box-shadow: 0 4px 20px rgba(123,28,28,.18);
  transition: transform .35s var(--ease-out-expo), box-shadow .35s;
}
.person-card:hover .person-card__photo {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 14px 36px rgba(123,28,28,.28);
}

/* ============================================================
   PARTENAIRES
   ============================================================ */
.logos-grid {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 2rem 3rem; margin-top: 1.75rem;
}
.logos-grid img {
  height: 52px; width: auto; max-width: 130px;
  object-fit: contain; filter: grayscale(20%);
  transition: filter .3s, transform .3s var(--ease-out-expo), opacity .3s;
  opacity: .85;
}
.logos-grid img:hover { filter: grayscale(0%); transform: scale(1.08); opacity: 1; }

/* ============================================================
   SOLUTIONS
   ============================================================ */
.product-detail {
  background: var(--bg-light); border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem; margin-top: 1rem;
  border-left: 4px solid var(--accent);
  transition: border-color .3s, transform .35s var(--ease-out-expo), box-shadow .35s;
}
.product-detail:hover {
  border-color: var(--primary);
  transform: translateX(8px);
  box-shadow: -4px 0 24px rgba(196,80,26,.12);
}
.product-detail h4 { color: var(--accent); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
.product-detail p { font-size: .95rem; }
.list-features { margin-top: .75rem; padding-left: 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.list-features li { font-size: .95rem; list-style: disc; }

/* ============================================================
   TECH CORE
   ============================================================ */
.tech-core {
  background: white; border-radius: var(--radius-lg);
  padding: 2.5rem; border: 2px solid var(--cream);
  max-width: 860px; margin: 0 auto;
  box-shadow: 0 10px 50px rgba(0,0,0,.07);
  transition: box-shadow .4s;
}
.tech-core:hover { box-shadow: 0 20px 70px rgba(0,0,0,.11); }
.tech-core__title { text-align: center; font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: .35rem; }
.tech-core__subtitle { text-align: center; color: var(--accent); font-size: .85rem; margin-bottom: 2rem; }
.tech-core__pillars { display: grid; grid-template-columns: 1fr 200px 1fr; gap: 1.5rem; align-items: start; }
.tech-pillar { text-align: center; }
.tech-pillar__domain { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: .4rem; }
.tech-pillar__chip {
  display: inline-block; background: var(--primary); color: white;
  padding: .45rem 1.1rem; border-radius: 2rem; font-size: .82rem; font-weight: 600; margin-bottom: .5rem;
  transition: transform .35s var(--ease-out-expo), box-shadow .35s;
}
.tech-pillar__chip:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 10px 28px rgba(123,28,28,.3); }
.tech-pillar--oncology .tech-pillar__chip { background: var(--teal); color: var(--text-dark); }
.tech-pillar--oncology .tech-pillar__chip:hover { box-shadow: 0 10px 28px rgba(140,191,186,.5); }
.tech-pillar__sub { font-size: .78rem; color: var(--text-body); margin-bottom: .75rem; }
.tech-pillar__status { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.tech-center { display: flex; flex-direction: column; gap: .5rem; }
.tech-center__title { text-align: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); margin-bottom: .25rem; }
.tech-feature {
  font-size: .78rem; padding: .4rem .75rem; background: var(--bg-light);
  border-radius: var(--radius); text-align: center; color: var(--text-dark);
  transition: background .2s, transform .3s var(--ease-out-expo), box-shadow .3s;
  cursor: default;
}
.tech-feature:hover {
  background: var(--cream);
  box-shadow: 0 0 0 2px var(--accent), 0 6px 20px rgba(196,80,26,.15);
}

/* ============================================================
   GRANTS
   ============================================================ */
.grants-grid { display: flex; gap: 1rem; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; }
.grant-card {
  flex: 1; min-width: 140px; padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg); text-align: center; color: white;
  transition: transform .4s var(--ease-out-expo), box-shadow .4s;
  will-change: transform; cursor: default;
  position: relative; overflow: hidden;
}
.grant-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.14) 0%, transparent 60%);
}
.grant-card:hover { transform: translateY(-14px) scale(1.05); box-shadow: 0 28px 60px rgba(0,0,0,.3); }
.grant-card--1 { background: #5C1010; }
.grant-card--2 { background: #8B2020; }
.grant-card--3 { background: var(--accent); }
.grant-card--4 { background: #C47038; }
.grant-card--5 { background: #7B3A1C; }
.grant-card__date { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .5rem; opacity: .85; }
.grant-card__name { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; line-height: 1.3; }
.grant-card__org { font-size: .78rem; font-weight: 500; opacity: .9; }

/* ============================================================
   ARTICLES
   ============================================================ */
.press-label {
  font-size: 1.5rem; font-weight: 700; color: var(--primary);
  padding: 1.25rem 2rem; background: var(--bg-light);
  border-radius: var(--radius-lg); display: inline-block;
  border-left: 5px solid var(--accent); margin-bottom: 2rem;
  box-shadow: -5px 0 20px rgba(196,80,26,.12);
}
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.article-card {
  display: block; background: white; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.07);
  transition: transform .4s var(--ease-out-expo), box-shadow .4s;
  color: inherit; will-change: transform;
}
.article-card:hover { transform: translateY(-14px); box-shadow: 0 30px 60px rgba(0,0,0,.15); }
.article-card__img { width: 100%; height: 200px; object-fit: cover; transition: transform .6s var(--ease-out-expo); overflow: hidden; }
.article-card:hover .article-card__img img { transform: scale(1.08); }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: 1.5rem; }
.article-card__tags { display: flex; gap: .5rem; margin-bottom: .6rem; flex-wrap: wrap; }
.article-card__tag { font-size: .65rem; font-weight: 700; text-transform: uppercase; padding: .2rem .65rem; border-radius: 2rem; background: var(--accent); color: white; }
.article-card__source { font-weight: 700; color: var(--primary); font-size: .85rem; margin-bottom: .25rem; }
.article-card__date { font-size: .8rem; color: #999; margin-bottom: .5rem; }
.article-card h3 { font-size: .95rem; color: var(--text-dark); line-height: 1.4; }

/* ============================================================
   RIPPLE
   ============================================================ */
.ripple {
  position: fixed; pointer-events: none; z-index: 9998;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(196,80,26,.18);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-out .7s var(--ease-out-expo) forwards;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  background: var(--bg-warm); position: relative; overflow: hidden;
}
.contact-hero__inner { position: relative; z-index: 1; }
.contact-hero__label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 1rem; }
.contact-hero h1 { margin-bottom: 1.5rem; }
.contact-hero__email { font-size: clamp(1.2rem, 3vw, 2rem); }
.contact-hero__email a {
  color: var(--primary);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color .3s, color .3s, text-shadow .3s;
  display: inline-block;
}
.contact-hero__email a:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-shadow: 0 0 20px rgba(196,80,26,.3);
}
.contact-logo { height: 36px; margin-top: 3rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary); color: rgba(255,255,255,.6);
  padding: 2.5rem 0; text-align: center; font-size: .85rem;
}
.footer__logo { height: 28px; margin: 0 auto 1rem; filter: brightness(0) invert(1); opacity: .85; transition: opacity .3s, transform .3s var(--ease-out-expo); }
.footer__logo:hover { opacity: 1; transform: scale(1.08); }
.footer__links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: .75rem; }
.footer__links a { color: rgba(255,255,255,.7); transition: color .2s; }
.footer__links a:hover { color: white; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-py: 4rem; }
  .nav__links   { display: none; }
  .nav__burger  { display: flex; }
  .grid-2       { grid-template-columns: 1fr; gap: 2rem; }
  .products-grid { grid-template-columns: 1fr; }
  .tech-core__pillars { grid-template-columns: 1fr; }
  .grants-grid  { flex-wrap: wrap; }
  .grant-card   { min-width: calc(50% - .5rem); }
  .cursor-glow  { display: none; }
}
@media (max-width: 480px) {
  .grant-card { min-width: 100%; }
  .hero__logo { height: 56px; }
}
