/* ================================================================
   PORTFOLIO KARIM GOGA — Design System
   Palette : parchment warm · terracotta accent · dark sections
   Typo    : Fraunces · Instrument Sans · IBM Plex Mono
   ================================================================ */

/* ---------- VARIABLES ---------- */
:root {
  /* Fonds */
  --bg-main:    #F5F3EE;
  --bg-alt:     #ECEAE3;
  --bg-dark:    #141820;
  --bg-dark-2:  #1C2130;
  --bg-card:    #FDFCFA;

  /* Texte */
  --text:        #111318;
  --text-muted:  #6C6960;
  --text-light:  #F0EDE8;
  --text-muted-light: #A8A49E;

  /* Accent unique — terracotta sahélien */
  --accent:     #C4561A;
  --accent-lt:  #D4714A;
  --accent-dim: rgba(196,86,26,0.08);
  --accent-mid: rgba(196,86,26,0.18);

  /* Bordures */
  --border:      #D8D4CC;
  --border-dark: rgba(255,255,255,0.07);

  /* 3 pilliers expertise (inline style refs: --d1, --d2, --d3) */
  --d1: #C4561A;   /* terracotta  — Ops */
  --d2: #9B6B2F;   /* ambre       — GRC */
  --d3: #6B7A4A;   /* olive       — IoT/Radio */

  /* Alias compatibilité — référencés dans inline styles HTML */
  --teal:       #C4561A;
  --teal-lt:    #D4714A;
  --teal-dim:   rgba(196,86,26,0.08);
  --neon-teal:  var(--accent);
  --neon-muted: var(--text-muted);
  --neon-white: var(--text);
  --neon-violet:var(--d2);
  --neon-orange:var(--d3);
  --ls-text:    var(--text);
  --ls-muted:   var(--text-muted);
  --ls-card:    var(--bg-card);
  --ls-border:  var(--border);
  --td1:        var(--text);
  --td2:        var(--text-muted);
  --td3:        #A8A49E;
  --n700:       #2A2F3A;
  --n800:       #1C2130;
  --n900:       #141820;
  --n950:       #0F1219;
  --bord-dim:   rgba(196,86,26,0.1);
  --bord-mid:   rgba(196,86,26,0.2);
  --ok-bg:      rgba(55,135,65,0.08); --ok-txt: #3A8742;
  --wip-bg:     rgba(196,86,26,0.08); --wip-txt: #C4561A;

  /* Typographie */
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
  --font-display: 'Fraunces', Georgia, serif;
  --font-text:    'Instrument Sans', system-ui, sans-serif;

  /* Rayons */
  --r:    6px;
  --r-sm: 3px;
}

/* Sections sombres — surcharger toutes les variables dépendantes */
.dark-sec,
.cta-sec,
footer {
  --bg-card:    #1C2130;
  --text:       #F0EDE8;
  --text-muted: #A8A49E;
  --border:     rgba(255,255,255,0.08);
  --neon-teal:  var(--accent);
  --neon-muted: #A8A49E;
  --neon-white: #F0EDE8;
  --ls-text:    #F0EDE8;
  --ls-muted:   #A8A49E;
  --td1:        #F0EDE8;
  --td2:        #A8A49E;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-main);
  color: var(--text);
  font-family: var(--font-text);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---------- TICKER ---------- */
.cw-ticker {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 26px;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  display: none;
  align-items: center;
}
.cw-ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 60s linear infinite;
}
.cw-ticker-item {
  font-family: var(--font-mono);
  font-size: .57rem;
  color: rgba(255,255,255,0.5);
  padding: 0 1.25rem;
  white-space: nowrap;
}
.cw-ticker-item strong {
  color: var(--accent);
  font-weight: 600;
}
.cw-ticker-sep {
  color: rgba(255,255,255,0.15);
  font-size: .4rem;
  flex-shrink: 0;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media(max-width:900px) {
  .cw-ticker-track { animation-duration: 28s; }
}

/* ---------- NAVIGATION ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3.5rem;
  background: rgba(245,243,238,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .25s, box-shadow .25s;
}
nav.scrolled {
  background: rgba(245,243,238,0.98);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: .76rem; font-weight: 500;
  color: var(--text-muted); letter-spacing: .05em;
  white-space: nowrap; flex-shrink: 0;
}
.nav-brand strong { color: var(--accent); }
.nav-sep { display: none; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none;
  border: 1px solid var(--border); padding: 8px; border-radius: var(--r-sm);
  transition: background .2s, border-color .2s; flex-shrink: 0; cursor: pointer;
}
.nav-hamburger:hover { background: var(--accent-dim); border-color: var(--accent); }
.nav-hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--text-muted); border-radius: 1px; transition: all .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--accent); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--accent); }

/* Bouton langue */
.lang-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-mono); font-size: .65rem;
  color: var(--text-muted);
  background: transparent; border: 1px solid var(--border);
  padding: .42rem .7rem; border-radius: var(--r-sm); cursor: pointer;
  transition: all .2s; margin-left: auto; margin-right: .6rem; white-space: nowrap;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Menu desktop */
.nav-menu { display: flex; align-items: center; gap: .1rem; list-style: none; }
.nav-item { position: relative; z-index: 10; }
.nav-item > a, .nav-item > button {
  display: flex; align-items: center; gap: .3rem;
  padding: .45rem .85rem;
  font-family: var(--font-text); font-size: .8rem; font-weight: 500;
  color: var(--text-muted); background: none; border: none;
  border-radius: var(--r-sm); cursor: pointer; white-space: nowrap;
  transition: color .15s, background .15s; position: relative;
}
.nav-item > a:hover, .nav-item > button:hover {
  color: var(--text); background: rgba(0,0,0,0.04);
}
.nav-item > a::after, .nav-item > button::after {
  content: ''; position: absolute; bottom: 4px; left: .85rem; right: .85rem;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transition: transform .22s;
}
.nav-item > a:hover::after, .nav-item > button:hover::after { transform: scaleX(1); }

.nav-chev { font-size: .55rem; opacity: .5; transition: transform .2s; }
.nav-item:hover .nav-chev { transform: rotate(180deg); }

/* Dropdown */
.nav-drop {
  position: absolute; top: 100%; left: 0; padding-top: 8px;
  background: transparent; z-index: 400;
  opacity: 0; pointer-events: none;
  transform: translateY(-4px); transition: opacity .2s, transform .2s;
}
.nav-drop-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r); padding: .5rem; min-width: 210px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.nav-item:hover .nav-drop { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-drop::before {
  content: ''; position: absolute;
  top: -10px; left: 0; right: 0; height: 10px;
}
.nav-drop a {
  display: block; padding: .5rem .85rem;
  font-size: .78rem; color: var(--text-muted);
  border-radius: var(--r-sm); transition: all .15s;
}
.nav-drop a:hover { background: var(--accent-dim); color: var(--text); }
.nav-drop-sep { height: 1px; background: var(--border); margin: .35rem .5rem; }

/* ---------- SECTIONS COMMUNES ---------- */
.inner { max-width: 1200px; margin: 0 auto; padding: 5rem 3.5rem; position: relative; z-index: 1; }

.light-sec  { background: var(--bg-main); position: relative; overflow: hidden; }
.light-sec::after {
  content: '';
  position: absolute; inset: 0;
  background: url('../assets/decor.svg') repeat right top / 160px 160px;
  opacity: .13;
  pointer-events: none; z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 100% 0%, black 0%, transparent 68%);
  mask-image: radial-gradient(ellipse 55% 70% at 100% 0%, black 0%, transparent 68%);
}
.alt-sec    { background: var(--bg-alt); }
.navy-sec   { background: var(--bg-alt); }
.dark-sec   { background: var(--bg-dark); }

.section-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: 800px; margin: 0 auto;
}

/* Tags de section */
.s-tag {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: .5rem; color: var(--accent);
}
.s-tag::before {
  content: ''; width: 16px; height: 1px;
  background: var(--accent); flex-shrink: 0;
}
/* Surcharger le ::before pour les sections avec classe propre */
.dark-sec .s-tag::before, .alt-sec .s-tag::before,
.navy-sec .s-tag::before, .light-sec .s-tag::before {
  content: ''; width: 16px; height: 1px;
  background: var(--accent); border-radius: 0; display: block;
}

.s-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.1; margin-bottom: 1rem;
  color: var(--text);
}
.s-title em { font-style: italic; color: var(--accent); }
.dark-sec .s-title,
.cta-sec .s-title { color: var(--text-light); }

.s-intro {
  font-size: .93rem; line-height: 1.85;
  max-width: 680px; margin-bottom: 2.5rem;
  color: var(--text-muted);
}

/* ---------- CARTES — style propre, sans clip-path ---------- */
.dim-card, .cc, .cp, .pub-card, .edu-card,
.prog-card, .misc-card, .cw-volet, .cw-edition {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  position: relative;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.dim-card:hover, .cc:hover, .cp:hover, .pub-card:hover,
.edu-card:hover, .prog-card:hover, .misc-card:hover {
  border-color: var(--accent-mid);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.pilier {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.75rem; transition: all .25s;
}
.pilier:hover { background: var(--bg-alt); }
.pilier h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: .55rem; }
.pilier p  { font-size: .85rem; color: var(--text-muted); line-height: 1.8; }
.pilier-label::before {
  content: ''; width: 14px; height: 1px;
  background: var(--pc, var(--accent));
  display: inline-block; vertical-align: middle; margin-right: .35rem;
}

/* ---------- BOUTONS ---------- */
.btn-teal {
  font-weight: 600; font-size: .875rem; padding: .8rem 2rem;
  background: var(--accent); border: 2px solid var(--accent);
  color: #fff; border-radius: var(--r);
  transition: all .2s; display: inline-block; letter-spacing: .02em;
}
.btn-teal:hover {
  background: transparent; color: var(--accent); transform: translateY(-1px);
}
.cta-sec .btn-teal:hover {
  color: var(--text-light); border-color: var(--text-light); background: transparent;
}

.btn-ghost {
  font-weight: 500; font-size: .875rem; padding: .8rem 1.75rem;
  border: 1.5px solid var(--border);
  color: var(--text-muted); border-radius: var(--r);
  transition: all .2s; display: inline-block; background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.cta-sec .btn-ghost {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.65);
}
.cta-sec .btn-ghost:hover { border-color: var(--accent); color: var(--text-light); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 55% 40% at 75% 25%, rgba(196,86,26,0.05) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 5% 85%, rgba(107,122,74,0.04) 0%, transparent 55%),
    var(--bg-main);
  display: flex; align-items: center;
  padding: 6.5rem 3.5rem 5rem;
  position: relative; overflow: hidden;
}
.hero-grid { display: none; }
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 340px; gap: 4rem; align-items: start;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: .5rem;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  border: 2px solid rgba(196,86,26,0.22);
  box-shadow: 0 6px 28px rgba(0,0,0,0.11);
  display: block;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .65rem;
  color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-eyebrow::before { content: none; }
.hero-eyebrow::after  { content: none; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-weight: 800; line-height: 1.05;
  color: var(--text); letter-spacing: -.02em;
  white-space: nowrap; margin-bottom: .8rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-family: var(--font-text);
  font-size: .98rem; font-weight: 500;
  color: var(--text); letter-spacing: -.01em;
  line-height: 1.5; margin-bottom: 1.75rem;
  max-width: 520px;
}

.hero-dims {
  display: flex; flex-direction: row; flex-wrap: wrap;
  gap: .55rem; margin-bottom: 1.75rem;
}
.hero-dim {
  display: inline-flex; align-items: center;
  padding: .5rem 1.1rem; border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.hero-dim:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.hero-dim-label {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: .88rem; font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}

.hero-desc {
  font-size: .9rem; color: var(--text-muted); line-height: 1.8;
  max-width: 540px; margin-bottom: 1.75rem;
}
.hero-btns { display: flex; gap: .875rem; flex-wrap: wrap; align-items: center; margin-bottom: .7rem; }

.hero-cv-link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-mono); font-size: .63rem;
  color: var(--text-muted); letter-spacing: .05em;
  text-decoration: none; transition: color .2s;
}
.hero-cv-link:hover { color: var(--accent); }

/* Carte KPI */
.hcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
.hcard-title {
  font-family: var(--font-mono); font-size: .6rem;
  color: var(--accent); letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .5rem;
}
.hcard-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.hstat {
  display: grid; grid-template-columns: auto 1fr;
  gap: 1rem; align-items: center;
  padding: .8rem 0; border-bottom: 1px solid var(--border);
  transition: background .15s; border-radius: var(--r-sm);
}
.hstat:last-child { border-bottom: none; padding-bottom: 0; }
.hstat:hover { background: var(--accent-dim); padding-left: .4rem; padding-right: .4rem; }
.hnum {
  font-family: var(--font-display); font-size: 2rem;
  color: var(--text); font-weight: 700; line-height: 1; white-space: nowrap;
}
.hnum small { font-size: .85rem; color: var(--accent); font-family: var(--font-text); }
.htxt { font-size: .68rem; color: var(--text-muted); line-height: 1.35; }

/* ---------- 3 DIMENSIONS / EXPERTISE ---------- */
.dims-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
  counter-reset: dim-count;
}

.dim-card {
  padding: 2.25rem 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  counter-increment: dim-count;
  background: color-mix(in srgb, var(--dc, var(--accent)) 4%, var(--bg-card));
}

.dim-card::before {
  content: '0' counter(dim-count);
  position: absolute;
  top: -.35rem; right: 1.25rem;
  font-family: var(--font-display);
  font-size: 5.5rem; font-weight: 800;
  line-height: 1;
  color: var(--dc, var(--accent));
  opacity: .07;
  pointer-events: none;
  user-select: none;
}

.dim-card:hover {
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: none;
}

.dim-num {
  font-family: var(--font-mono); font-size: .58rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--dc, var(--accent)); margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .65rem;
}
.dim-num::after {
  content: ''; width: 1.75rem; height: 1px;
  background: var(--dc, var(--accent)); opacity: .3; flex-shrink: 0;
}

.dim-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  line-height: 1.25; margin-bottom: .9rem;
}
.dim-card p {
  font-size: .855rem; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 1.5rem;
  flex: 1;
}
.dim-preuves {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding-top: .9rem; border-top: 1px solid var(--border);
}
.dim-preuve {
  font-family: var(--font-mono); font-size: .59rem;
  padding: .24rem .65rem; border-radius: 4px;
  background: rgba(0,0,0,0.025);
  color: var(--dc, var(--accent));
  border: 1px solid var(--border);
  letter-spacing: .02em; white-space: nowrap;
}

.chip {
  font-family: var(--font-mono); font-size: .6rem;
  padding: .2rem .6rem; border-radius: 100px;
  background: rgba(0,0,0,0.04); border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Bloc transverse */
.transverse-bloc {
  margin-top: 2rem; padding: 2rem 2.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.transverse-eyebrow {
  font-family: var(--font-mono); font-size: .58rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: .3rem;
}
.transverse-label {
  font-family: var(--font-display); font-size: 1.2rem;
  font-weight: 700; color: var(--accent);
  line-height: 1.3; margin-bottom: .6rem;
}
.transverse-bloc h4 {
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin-bottom: .8rem; line-height: 1.4;
}
.transverse-bloc p { font-size: .84rem; color: var(--text-muted); line-height: 1.75; }

/* ---------- RÉALISATIONS ---------- */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.cc { padding: 2rem; background: color-mix(in srgb, var(--dc, transparent) 3%, var(--bg-card)); }
.cc-meta { display: flex; align-items: center; gap: .65rem; margin-bottom: .85rem; }
.cc-meta .stag { margin-bottom: 0; }
.cc-num {
  font-family: var(--font-mono); font-size: .56rem; letter-spacing: .08em;
  color: var(--dc, var(--accent));
  background: color-mix(in srgb, var(--dc, var(--accent)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--dc, var(--accent)) 22%, transparent);
  padding: .18rem .52rem; border-radius: 4px; white-space: nowrap;
}
.cc .stag {
  font-family: var(--font-mono); font-size: .62rem;
  color: var(--dc, var(--accent)); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .7rem;
}
.cc h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; line-height: 1.35; }
.cc p  { font-size: .84rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }

.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .75rem; }
.btn-action {
  font-family: var(--font-mono); font-size: .65rem; font-weight: 500;
  padding: .45rem 1rem; border-radius: var(--r-sm);
  border: 1px solid; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent;
}
.btn-github { border-color: var(--border); color: var(--text-muted); }
.btn-github:hover { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.25); color: var(--text); }
.btn-conf { border-color: var(--accent-mid); color: var(--accent); }
.btn-conf:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ico { flex-shrink: 0; vertical-align: middle; }

/* ---------- PROJETS EN COURS ---------- */
.subsec-head {
  padding-bottom: 1.5rem; margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.subsec-title  { font-size: 1.35rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; }
.subsec-subtitle { font-size: .82rem; color: var(--text-muted); }

.cp { padding: 1.5rem; display: flex; flex-direction: column; }
.cp-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: .875rem; gap: .5rem; flex-wrap: wrap;
}
.cp-num {
  font-family: var(--font-mono); font-size: .6rem;
  color: var(--accent); background: var(--accent-dim);
  padding: .18rem .5rem; border-radius: var(--r-sm);
  border: 1px solid var(--accent-mid); white-space: nowrap;
}
.cp-h { font-family: var(--font-mono); font-size: .6rem; color: var(--text-muted); white-space: nowrap; }
.st-ok::before  { content: '✓ '; color: var(--ok-txt); }
.st-wip::before { content: '◐ '; color: var(--wip-txt); }
.cp-titre { font-size: .93rem; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: .5rem; }
.cp-desc  { font-size: .78rem; color: var(--text-muted); line-height: 1.68; flex: 1; }
.cp-pied  { display: flex; flex-direction: column; gap: .55rem; margin-top: auto; }
.cp-etiq  { display: flex; flex-wrap: wrap; gap: .3rem; }
.ce {
  font-family: var(--font-mono); font-size: .58rem;
  padding: .14rem .42rem; border-radius: 100px;
  background: rgba(0,0,0,0.04); color: var(--text-muted);
  border: 1px solid var(--border);
}
.note-proj {
  font-size: .73rem; color: var(--text-muted);
  text-align: center; margin: 1rem auto; font-style: italic;
}

/* ---------- CYBERWATCH ---------- */
.cw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.75rem; }

.cw-volet { padding: 2rem 2rem 1.75rem; overflow: hidden; }

.cw-volet-kicker {
  font-family: var(--font-mono); font-size: .58rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .55rem;
}
.cw-volet-kicker::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.cw-signal-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.cw-signal {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.25rem;
  padding: .85rem 0; border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.cw-signal-label {
  font-family: var(--font-mono); font-size: .56rem;
  color: var(--text-muted); letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap;
}
.cw-signal-text { font-size: .83rem; color: var(--text); line-height: 1.6; }

.cw-focus { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.cw-focus-label {
  font-family: var(--font-mono); font-size: .56rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: .45rem;
}
.cw-focus p { font-size: .8rem; color: var(--text-muted); line-height: 1.65; font-style: italic; margin: 0; }

.cw-edition { padding: 1.75rem 2rem; }
.cw-edition-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 1rem;
}
.cw-edition-badge {
  font-family: var(--font-mono); font-size: .57rem;
  color: var(--text-muted); letter-spacing: .1em;
  text-transform: uppercase; display: block; margin-bottom: .45rem;
}
.cw-edition h4 { font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.35; margin: 0; }
.cw-edition p  { font-size: .82rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.cw-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.cw-tag {
  font-family: var(--font-mono); font-size: .57rem;
  padding: .16rem .52rem; border-radius: 100px;
  background: rgba(0,0,0,0.04); border: 1px solid var(--border); color: var(--text-muted);
}
.cw-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .65rem;
  color: var(--accent); letter-spacing: .04em; transition: color .15s; white-space: nowrap;
}
.cw-link::after { content: '→'; }
.cw-link:hover { color: var(--text); }

/* ---------- PUBLICATIONS ---------- */
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pub-card { padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.pub-card::before { display: none; }
.pub-card { border-top: 3px solid var(--border); }
.pub-final { border-top-color: var(--d3); }
.pub-wip   { border-top-color: var(--d2); }
.pub-status {
  font-family: var(--font-mono); font-size: .57rem;
  font-weight: 600; letter-spacing: .06em;
  padding: .18rem .6rem; border-radius: 100px; width: fit-content;
}
.pub-status-final { background: rgba(107,122,74,0.1);  color: var(--d3); border: 1px solid rgba(107,122,74,0.25); }
.pub-status-wip   { background: rgba(155,107,47,0.1);  color: var(--d2); border: 1px solid rgba(155,107,47,0.25); }
.pub-num    { font-family: var(--font-mono); font-size: .59rem; color: var(--text-muted); }
.pub-title  { font-size: .98rem; font-weight: 700; color: var(--text); line-height: 1.4; }
.pub-subtitle { font-size: .78rem; color: var(--text-muted); line-height: 1.5; font-style: italic; }
.pub-desc   { font-size: .8rem; color: var(--text-muted); line-height: 1.7; flex: 1; }
.pub-meta   {
  display: flex; flex-wrap: wrap; gap: .35rem;
  padding-top: .65rem; border-top: 1px solid var(--border);
  margin-top: auto; align-items: flex-start;
}
.pub-tag {
  font-family: var(--font-mono); font-size: .57rem;
  padding: .13rem .42rem; border-radius: 100px;
  background: rgba(0,0,0,0.04); color: var(--text-muted); border: 1px solid var(--border);
}
a[href*="livre-"], .pub-link-btn {
  display: inline-flex !important; align-items: center; gap: .4rem;
  margin-top: .4rem !important;
  font-family: var(--font-mono) !important; font-size: .62rem !important;
  color: var(--accent) !important; letter-spacing: .04em !important;
  text-decoration: none !important;
  border: 1px solid var(--accent-mid) !important;
  padding: .3rem .8rem !important; border-radius: 100px !important;
  transition: all .2s !important; background: transparent !important;
  white-space: nowrap; flex-shrink: 0;
}
a[href*="livre-"]:hover, .pub-link-btn:hover {
  border-color: var(--accent) !important;
  background: var(--accent-dim) !important;
}

/* ---------- COMPÉTENCES ---------- */
.comp-cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1.2rem; }
.comp-cols > div {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
}
.gr { margin-bottom: 0; }
.gr-titre {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .6rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: .08em;
  padding: .7rem 1rem;
  background: var(--accent-dim);
  border-bottom: 1px solid rgba(196,86,26,0.12);
}
.comp { padding: .65rem 1rem; border-bottom: 1px solid var(--border); transition: background .12s; }
.comp:last-child { border-bottom: none; }
.comp:hover { background: rgba(0,0,0,0.02); }
.comp-row {
  display: flex; justify-content: space-between;
  align-items: baseline; margin-bottom: .4rem; gap: .5rem;
}
.comp-nom { font-size: .78rem; color: var(--text); line-height: 1.3; flex: 1; min-width: 0; }
.comp-niv {
  font-family: var(--font-mono); font-size: .56rem; font-weight: 600;
  color: var(--text-muted); white-space: nowrap; flex-shrink: 0;
}
.comp-piste { height: 2px; background: rgba(0,0,0,0.07); overflow: visible; position: relative; }
.comp-barre { height: 2px; position: relative; width: 0; transition: width .9s cubic-bezier(.4,0,.2,1); }
.comp-barre::after {
  content: ''; position: absolute; right: 0; top: -2px;
  width: 6px; height: 6px; background: inherit; border-radius: 50%;
}

/* ---------- TIMELINE (dark) ---------- */
.tl-grille { display: grid; grid-template-columns: 260px 1fr; gap: 5rem; }
.tl-info { position: sticky; top: 90px; align-self: start; }
.tl-info p { font-size: .86rem; color: var(--text-muted); line-height: 1.8; margin-top: 1rem; }
.dark-sec .tl-info p { color: var(--text-muted-light); }

.tl {
  border-left: 2px solid rgba(196,86,26,0.2);
  padding-left: 2.5rem;
}
.tl-item { position: relative; margin-bottom: 3rem; }
.tl-dot {
  position: absolute; left: -2.65rem; top: .45rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,86,26,0.15);
}
.tl-periode {
  font-family: var(--font-mono); font-size: .64rem;
  color: var(--accent); letter-spacing: .06em; margin-bottom: .2rem;
}
.tl-role    { font-size: 1rem; font-weight: 700; color: var(--text-light); margin-bottom: .15rem; }
.tl-org     { font-size: .83rem; color: var(--text-muted-light); margin-bottom: .6rem; }
.tl-desc    { font-size: .83rem; color: var(--text-muted-light); line-height: 1.8; }

/* ---------- FORMATION & ENGAGEMENTS ---------- */
.edu-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 1.5rem; }
.edu-card  { padding: 1.75rem; }
.edu-yr    { font-family: var(--font-mono); font-size: .62rem; color: var(--accent); margin-bottom: .5rem; }
.edu-t     { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; line-height: 1.35; }
.edu-s     { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }

.subsec-sep { display: flex; align-items: center; gap: 1rem; margin: 2.5rem 0; }
.subsec-sep-label {
  font-family: var(--font-mono); font-size: .65rem;
  color: var(--text-muted); letter-spacing: .12em;
  text-transform: uppercase; white-space: nowrap;
}
.subsec-sep-line { flex: 1; height: 1px; background: var(--border); }

.prog-card { padding: 1.5rem; }
.prog-dur  { font-family: var(--font-mono); font-size: .62rem; color: var(--text-muted); margin-bottom: .45rem; }
.prog-t    { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .6rem; line-height: 1.35; }
.prog-d    { font-size: .82rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.1rem; }
.pp {
  font-family: var(--font-mono); font-size: .57rem;
  padding: .2rem .55rem; background: rgba(0,0,0,0.04);
  border: 1px solid var(--border); color: var(--text-muted); border-radius: 100px;
}

.misc-row  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.2rem; }
.misc-card { padding: 1.5rem; }
.misc-tag  { font-family: var(--font-mono); font-size: .58rem; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4rem; }
.misc-t    { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.misc-s    { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }

/* ---------- CONTACT (dark) ---------- */
.cta-sec {
  background: var(--bg-dark);
  padding: 2rem 3.5rem 5rem; overflow: hidden;
  position: relative;
}
.cta-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 5rem; align-items: start;
}
.cta-tag {
  font-family: var(--font-mono); font-size: .62rem;
  color: var(--accent); letter-spacing: .16em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: .55rem; margin-bottom: 1.5rem;
}
.cta-tag::before { content: ''; width: 16px; height: 1px; background: var(--accent); }
.cta-sec h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text-light); margin-bottom: 1.2rem; line-height: 1.1;
}
.cta-sec h2 em { font-style: italic; color: var(--accent); }
.cta-sec .cta-desc {
  font-size: .97rem; color: var(--text-muted-light);
  max-width: 480px; margin-bottom: 2.5rem; line-height: 1.85;
}
.cta-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.coord-title {
  font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 700; color: var(--text-light); margin-bottom: .85rem;
}
.coord-item {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r);
  padding: 1rem 1.25rem; margin-bottom: .75rem;
  transition: all .2s;
}
.coord-item:hover {
  border-color: var(--accent-mid);
  background: rgba(196,86,26,0.06);
  transform: translateX(4px);
}
.coord-ico {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  flex-shrink: 0;
  background: rgba(196,86,26,0.12);
  border: 1px solid rgba(196,86,26,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.coord-txt { font-size: .88rem; color: var(--text-muted-light); }
.coord-txt a { color: var(--accent); transition: color .15s; }
.coord-txt a:hover { color: var(--text-light); text-decoration: underline; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 3rem 3.5rem 1.5rem;
  text-align: center;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.footer-top { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.fsig { font-family: var(--font-mono); font-size: .85rem; color: var(--text-light); letter-spacing: .06em; }
.fsig strong { color: var(--accent); }
.footer-tagline { font-family: var(--font-mono); font-size: .64rem; color: var(--text-muted-light); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.8rem; }
.footer-links a {
  font-family: var(--font-mono); font-size: .62rem;
  color: var(--text-muted-light); letter-spacing: .06em;
  text-transform: uppercase; transition: color .18s; position: relative;
}
.footer-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .2s;
}
.footer-links a:hover { color: var(--text-light); }
.footer-links a:hover::after { transform: scaleX(1); }
.footer-copy {
  max-width: 1200px; margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  text-align: center;
}
.footer-copy span { font-family: var(--font-mono); font-size: .58rem; color: var(--text-muted-light); opacity: .75; }
.footer-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  max-width: 800px; margin: 0 auto;
}

/* ---------- MOTIF DÉCORATIF ---------- */

/* Hero — motif tuilé coin haut-droit, très discret */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url('../assets/decor.svg') repeat right top / 160px 160px;
  opacity: .18;
  pointer-events: none; z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 100% 0%, black 0%, transparent 68%);
  mask-image: radial-gradient(ellipse 55% 70% at 100% 0%, black 0%, transparent 68%);
}

/* Sections sombres — motif tuilé inversé pour visibilité sur fond dark */
.dark-sec { position: relative; overflow: hidden; }
.dark-sec::before,
.cta-sec::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../assets/decor.svg') repeat right top / 160px 160px;
  opacity: .22; filter: invert(1);
  pointer-events: none; z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 100% 0%, black 0%, transparent 68%);
  mask-image: radial-gradient(ellipse 55% 70% at 100% 0%, black 0%, transparent 68%);
}

/* Légère matière sur toutes les cartes */
.dim-card, .cc, .cp, .pub-card, .edu-card,
.misc-card, .cw-volet, .cw-edition {
  box-shadow: 0 1px 4px rgba(0,0,0,0.055);
}

/* ---------- MODALS ---------- */
#modal, #modal-cw, #modal-cv {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s; padding: 1.5rem;
  backdrop-filter: blur(4px);
}
#modal.actif, #modal-cw.actif, #modal-cv.actif { opacity: 1; pointer-events: auto; }
#modal-cw { z-index: 1001; }
#modal-cv { z-index: 1002; }

.modal-boite {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.5rem; max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
#modal-cw .modal-boite { max-width: 700px; }
.modal-fermer {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: none; border: none;
  color: var(--text-muted); font-size: 1.5rem;
  cursor: pointer; line-height: 1; transition: color .2s;
}
.modal-fermer:hover { color: var(--text); }
.modal-titre {
  font-family: var(--font-display); font-size: 1.35rem;
  font-weight: 700; color: var(--text); margin-bottom: .75rem;
}
#m-sous, #cv-sous {
  font-size: .83rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 1.5rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.champ { margin-bottom: 1.1rem; }
.champ label {
  display: block; font-family: var(--font-mono); font-size: .65rem;
  color: var(--accent); letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: .4rem;
}
.champ input, .champ select, .champ textarea {
  width: 100%; padding: .75rem 1rem;
  background: var(--bg-main); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text);
  font-family: var(--font-text); font-size: .85rem;
  transition: border-color .2s;
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}
.champ select option { background: var(--bg-card); }
.champ textarea { resize: vertical; min-height: 90px; }
.btn-envoyer {
  width: 100%; padding: .9rem;
  background: var(--accent); border: 2px solid var(--accent);
  color: #fff; font-family: var(--font-mono); font-weight: 700;
  font-size: .9rem; text-transform: uppercase; letter-spacing: .08em;
  border-radius: var(--r); cursor: pointer; transition: all .25s;
}
.btn-envoyer:hover { background: transparent; color: var(--accent); }
#modal-cw .btn-teal { width: auto; white-space: nowrap; }
.modal-confirm { display: none; text-align: center; padding: 2rem 0; }
.modal-confirm.actif { display: block; }
.confirm-ico   { font-size: 2.5rem; margin-bottom: 1rem; }
.confirm-titre { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.confirm-txt   { font-size: .85rem; color: var(--text-muted); line-height: 1.7; }

/* ---------- ANIMATIONS SCROLL (fade-in) ---------- */
.anim { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.anim.vu { opacity: 1; transform: translateY(0); }

/* Stagger cascade — grilles expertise & projets */
.dims-grid .anim:nth-child(2) { transition-delay: 80ms; }
.dims-grid .anim:nth-child(3) { transition-delay: 160ms; }
.g2 .anim:nth-child(2) { transition-delay: 60ms; }
.g2 .anim:nth-child(3) { transition-delay: 120ms; }
.g2 .anim:nth-child(4) { transition-delay: 180ms; }
.g2 .anim:nth-child(5) { transition-delay: 240ms; }
.g2 .anim:nth-child(6) { transition-delay: 300ms; }
.pub-grid .anim:nth-child(2) { transition-delay: 60ms; }
.pub-grid .anim:nth-child(3) { transition-delay: 120ms; }
.pub-grid .anim:nth-child(4) { transition-delay: 180ms; }
.pub-grid .anim:nth-child(5) { transition-delay: 240ms; }
.pub-grid .anim:nth-child(6) { transition-delay: 300ms; }

/* Optical sizing — Fraunces headings */
.hero h1, .s-title, .cta-sec h2 { font-optical-sizing: auto; }

/* ---------- HERO KPI BAND (horizontal, sous le hero) ---------- */
.hero-kpi-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-main);
}
.hero-kpi {
  max-width: 1200px; margin: 0 auto; padding: 0 3.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.kstat {
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--border);
}
.kstat:last-child { border-right: none; }
.kstat-num {
  font-family: var(--font-display); font-optical-sizing: auto;
  font-size: 2rem; font-weight: 700; line-height: 1;
  color: var(--text); margin-bottom: .35rem;
}
.kstat-num small { font-size: .85rem; color: var(--accent); font-family: var(--font-text); }
.kstat-txt { font-size: .72rem; color: var(--text-muted); line-height: 1.4; max-width: 200px; }

/* Bouton article sous la photo hero */
.hero-article-btn { width: 100%; justify-content: center; }

/* ---------- BOUTON RETOUR EN HAUT ---------- */
.btn-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 500;
  width: 40px; height: 40px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, border-color .2s, background .2s, color .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.btn-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.btn-top:hover { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.btn-top svg { width: 16px; height: 16px; }

/* ---------- RESPONSIVE — TABLETTE ---------- */
@media(max-width:1024px) {
  .dims-grid, .edu-grid, .pub-grid { grid-template-columns: repeat(2, 1fr); }
  .cw-grid    { grid-template-columns: 1fr; }
  .comp-cols  { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .hero-kpi   { grid-template-columns: repeat(2, 1fr); padding: 0 2rem; }
  .kstat:nth-child(2) { border-right: none; }
  .kstat:nth-child(3) { border-top: 1px solid var(--border); }
  .kstat:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}

/* ---------- RESPONSIVE — MOBILE ---------- */
@media(max-width:900px) {
  nav { padding: 0 1rem; }
  .nav-sep { display: none; }
  .nav-brand { font-size: .68rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; margin-right: .75rem; }
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: fixed; top: 62px; left: 0; right: 0;
    background: rgba(245,243,238,0.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0 1.5rem; z-index: 299; gap: 0;
    max-height: calc(100vh - 62px); overflow-y: auto;
  }
  .nav-menu.open .nav-item { width: 100%; }
  .nav-menu.open .nav-item > a, .nav-menu.open .nav-item > button {
    width: 100%; padding: .75rem 1.5rem; font-size: .88rem; border-radius: 0; justify-content: space-between;
  }
  .nav-menu.open .nav-drop { position: static; opacity: 1; pointer-events: auto; transform: none; padding-top: 0; display: none; }
  .nav-menu.open .nav-item.open-sub .nav-drop { display: block; }
  .nav-menu.open .nav-drop-inner { border-radius: 0; border-left: none; border-right: none; border-top: none; background: rgba(0,0,0,0.02); }
  .nav-menu.open .nav-drop a { padding: .6rem 2.5rem; font-size: .82rem; border-radius: 0; }
  .nav-hamburger { display: flex; }

  .hero, .cta-sec, footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  .inner { padding-left: 1.25rem; padding-right: 1.25rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero { padding: 6rem 1.25rem 3rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-photo { max-width: 200px; margin: 0 auto; }
  .hero h1 { white-space: normal; font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .hero-dims { flex-direction: column; gap: .4rem; }

  .hcard { border-radius: var(--r); padding: 1.1rem 1.25rem; margin-top: .5rem; }
  .hcard .hstat { padding: .45rem 0; }
  .hcard .hstat:last-child { border-bottom: none; padding-bottom: 0; }
  .hnum { font-size: 1.45rem; }
  .htxt { font-size: .7rem; line-height: 1.4; }

  .hero-kpi   { grid-template-columns: repeat(2, 1fr); padding: 0 1rem; }
  .kstat      { padding: 1.1rem 1.25rem; }

  .dims-grid, .g2, .comp-cols,
  .edu-grid, .misc-row, .cw-grid, .pub-grid { grid-template-columns: 1fr; }
  .tl-grille { grid-template-columns: 1fr; gap: 0; }
  .tl-info { position: static; margin-bottom: 2.5rem; }
  .cta-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { gap: 1rem; text-align: center; align-items: center; }
  .footer-copy { gap: .35rem; text-align: center; }
  .cp-header { flex-wrap: wrap; gap: .35rem; }
}

@media(max-width:480px) {
  .hero h1    { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .s-title    { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .btn-teal, .btn-ghost { padding: .75rem 1.5rem; font-size: .82rem; }
  .hero-btns  { flex-direction: column; gap: .6rem; }
  .hero-btns a { text-align: center; }
  .btn-top    { bottom: 1rem; right: 1rem; width: 36px; height: 36px; }
}
