/* ============================================================
   TAIC — site styles (shared by landing + contact)
   Royal & Gold, three switchable surfaces (royal · cream · deep)
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  color: var(--sec-body);
  background: var(--page-solid);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-mid); }
::selection { background: var(--gold-soft); }

/* ── Theme surfaces ─────────────────────────────────────────── */
:root[data-bg="royal"] {
  --page-solid: #12233f;
  --page-grad: radial-gradient(120% 90% at 78% -10%, #294a7d 0%, #1e3a66 34%, #16294a 70%, #101f38 100%);
  --hero-heading: #ffffff; --hero-body: rgba(255,255,255,.74); --hero-soft: rgba(255,255,255,.52);
  --sec-heading: #ffffff; --sec-body: rgba(255,255,255,.70);
  --card-bg: #fdfaf6; --card-border: #ece5d9; --card-text: #1c1917; --card-muted: #6b655c;
  --card-num: var(--gold);
  --card-shadow: 0 26px 60px rgba(8,18,40,.36); --card-hover-shadow: 0 40px 80px rgba(8,18,40,.46);
  --nav-fg: #ffffff; --nav-fg-soft: rgba(255,255,255,.72); --nav-hair: rgba(255,255,255,.16);
  --nav-bg: rgba(18,31,55,.68);
  --trust-bg: rgba(255,255,255,.045); --trust-hair: rgba(255,255,255,.14);
  --canvas-show: 1;
}
:root[data-bg="cream"] {
  --page-solid: #f2ede5;
  --page-grad: radial-gradient(120% 90% at 80% -10%, #fbf7f0 0%, #f2ede5 46%, #ece6dc 100%);
  --hero-heading: #1c1917; --hero-body: #44403c; --hero-soft: #78716c;
  --sec-heading: #1c1917; --sec-body: #44403c;
  --card-bg: #fdfaf6; --card-border: #e5e0d8; --card-text: #1c1917; --card-muted: #78716c;
  --card-num: var(--gold);
  --card-shadow: 0 20px 44px rgba(28,25,23,.07); --card-hover-shadow: 0 30px 60px rgba(28,25,23,.12);
  --nav-fg: #1c1917; --nav-fg-soft: #44403c; --nav-hair: #e5e0d8;
  --nav-bg: rgba(242,237,229,.82);
  --trust-bg: #fdfaf6; --trust-hair: #e5e0d8;
  --canvas-show: 0;
}
:root[data-bg="deep"] {
  --page-solid: #0d0c08;
  --page-grad: radial-gradient(120% 90% at 78% -8%, #23202a 0%, #17151a 40%, #0e0d09 100%);
  --hero-heading: #ffffff; --hero-body: rgba(255,255,255,.72); --hero-soft: rgba(255,255,255,.46);
  --sec-heading: #ffffff; --sec-body: rgba(255,255,255,.64);
  --card-bg: rgba(255,255,255,.045); --card-border: rgba(255,255,255,.12); --card-text: #ffffff; --card-muted: rgba(255,255,255,.60);
  --card-num: var(--gold);
  --card-shadow: 0 20px 44px rgba(0,0,0,.4); --card-hover-shadow: 0 30px 64px rgba(0,0,0,.55);
  --nav-fg: #ffffff; --nav-fg-soft: rgba(255,255,255,.66); --nav-hair: rgba(255,255,255,.12);
  --nav-bg: rgba(14,13,9,.66);
  --trust-bg: rgba(255,255,255,.035); --trust-hair: rgba(255,255,255,.1);
  --canvas-show: 1;
}

body { background: var(--page-grad) fixed; }

/* ── Interactive background ─────────────────────────────────── */
.royal-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: var(--canvas-show); transition: opacity .5s; }
.royal-bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.royal-bg-glow {
  position: absolute; top: -18%; right: -6%; width: 62vw; height: 62vw; max-width: 880px; max-height: 880px;
  background: radial-gradient(circle, var(--gold-soft) 0%, rgba(0,0,0,0) 62%);
  filter: blur(8px); opacity: .9;
}
.royal-bg-grain {
  position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* ── Nav ────────────────────────────────────────────────────── */
.taic-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.taic-nav.scrolled { border-bottom-color: var(--nav-hair); }
.taic-nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.taic-nav-link:hover { color: var(--gold) !important; }
.foot-link:hover { color: var(--gold) !important; }

/* ── Sections ───────────────────────────────────────────────── */
.taic-sec { position: relative; z-index: 2; padding: clamp(78px, 11vw, 150px) 0; }
.taic-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.taic-grid-3--tight { gap: 22px; }

/* ── Cards ──────────────────────────────────────────────────── */
.taic-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px;
  padding: 34px; box-shadow: var(--card-shadow);
  transition: transform .5s cubic-bezier(.2,.65,.2,1), box-shadow .5s cubic-bezier(.2,.65,.2,1), border-color .3s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.taic-card:hover { transform: translateY(-6px); box-shadow: var(--card-hover-shadow); border-color: var(--gold-line); }
.taic-card--why, .taic-card--tech { padding: 30px; }
.card-rule { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-mid)); }
.card-step-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .5px; color: var(--gold); margin: 8px 0 14px; }
.card-num { font-family: var(--font-mono); font-size: 12px; color: var(--gold); margin-bottom: 14px; }
.card-h { font-family: var(--font-display); font-weight: var(--hd-w2); font-size: 24px; letter-spacing: -.5px; line-height: 1.15; margin: 0 0 12px; color: var(--card-text); }
.card-h--sm { font-size: 21px; }
.card-h--xs { font-size: 19px; }
.card-p { font-family: var(--font-text); font-size: 15.5px; color: var(--card-muted); line-height: 1.68; margin: 0; }
.taic-badge { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; padding: 5px 11px; border-radius: 100px; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.card-more { margin-top: 22px; display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .3px; color: var(--gold); }
.taic-card--pillar { min-height: 268px; }
.taic-card--pillar .card-p { flex: 1; }

/* ── Trust strip ────────────────────────────────────────────── */
.taic-trust { position: relative; z-index: 2; border-top: 1px solid var(--trust-hair); border-bottom: 1px solid var(--trust-hair); background: var(--trust-bg); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.trust-inner { display: flex; align-items: center; gap: 26px; max-width: 1120px; margin: 0 auto; padding: 20px 40px; }
.trust-intro { flex: 0 0 auto; font-family: var(--font-text); font-size: 14px; font-style: italic; color: var(--hero-soft); white-space: nowrap; }
.trust-marquee { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.trust-track { display: flex; align-items: center; gap: 26px; width: max-content; animation: trustmarquee 34s linear infinite; }
.trust-marquee:hover .trust-track { animation-play-state: paused; }
.trust-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--hero-body); white-space: nowrap; }
.trust-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: 0.6; flex: 0 0 auto; }
@keyframes trustmarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .trust-inner { flex-direction: column; align-items: flex-start; gap: 12px; } .trust-marquee { width: 100%; } }

/* ── Hero ───────────────────────────────────────────────────── */
.taic-hero { position: relative; z-index: 2; min-height: calc(100vh - 76px); display: flex; align-items: center; padding: clamp(30px,5vh,60px) 0 96px; overflow: hidden; }
.hero-grid { width: 100%; }
.hero-grid > div { min-width: 0; } /* grid tracks must follow the fr split, not an item's intrinsic width */
.hero-emblem-wrap { display: flex; justify-content: flex-end; min-width: 0; transform: translate(var(--tiltx,0), var(--tilty,0)); transition: transform .35s cubic-bezier(.2,.65,.2,1); }
.hero-emblem { position: relative; width: 100%; max-width: var(--el-size); }
.hero-emblem-glow {
  position: absolute; inset: -14% -10% -6% -10%; border-radius: 50%;
  background: radial-gradient(circle at 52% 46%, var(--gold-soft) 0%, rgba(30,58,102,.12) 40%, rgba(0,0,0,0) 68%);
  filter: blur(6px); z-index: 0;
}
.hero-emblem-amp { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; user-select: none; font-family: var(--font-display); font-weight: 600; font-size: calc(var(--el-size) * 1.28); line-height: 1; color: var(--gold); opacity: .11; }
.hero-elephant { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 30px 60px rgba(8,18,40,.5)); }
.hero-elephant.floating { animation: floaty 6.5s ease-in-out infinite; }
.hero-panel { display: flex; justify-content: flex-end; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* jointed trunk rig: head is static; upper trunk rotates from the mouth pivot,
   tip nests inside upper and rotates further from its own pivot so it inherits
   the parent's rotation (keeps the joint visually connected). */
.el-head { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; transform-origin: 50% 60%; will-change: transform; }
.el-trunk-upper, .el-trunk-tip { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.el-trunk-upper { transform-origin: 50.6% 68.9%; }
.el-trunk-tip { transform-origin: 50.6% 86%; }
.el-trunk-upper > img, .el-trunk-tip > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; }
@media (prefers-reduced-motion: reduce) { .el-trunk-upper, .el-trunk-tip { transform: none !important; } }

.hero-ghost {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-text); font-size: 15px; font-weight: 500;
  color: var(--hero-heading); background: transparent; border: 1px solid var(--gold-line);
  padding: 12px 20px; border-radius: 12px; transition: color .2s, border-color .2s, transform .2s, background .2s;
}
.hero-ghost:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.hero-ghost:hover svg { transform: translateX(3px); }
.hero-ghost svg { transition: transform .2s; }

/* height matches the headline's own line-height (h1 line-height:1.2, set in
   site.js/contact.js) so this word doesn't stretch its line taller than the
   others (was 1.3em vs 1.02em, creating an uneven gap) — and is tall enough
   that descenders like the "g" in "partagé." don't get clipped by overflow:hidden */
.rot-wrap { display: inline-block; position: relative; height: 1.2em; overflow: hidden; vertical-align: bottom; }
.rot { display: inline-flex; flex-direction: column; animation: rot 13s cubic-bezier(.7,0,.3,1) infinite; }
.rot span { height: 1.2em; line-height: 1.2em; color: var(--gold); font-style: italic; }
@keyframes rot {
  0%,20% { transform: translateY(0); }
  26%,53% { transform: translateY(-1.2em); }
  59%,86% { transform: translateY(-2.4em); }
  92%,100% { transform: translateY(-3.6em); }
}

.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; color: var(--hero-soft); }
.hero-scroll:hover { color: var(--gold); }
.cuebob { animation: cuebob 1.8s ease-in-out infinite; }
@keyframes cuebob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ── Use cases (royal navy band — matches the page navy) ────── */
.taic-sec--deep { position: relative; z-index: 2; padding: clamp(80px,11vw,150px) 0; background: transparent; border-top: none; border-bottom: 1px solid var(--gold-line); --sec-heading: #ffffff; --sec-body: rgba(255,255,255,.70); }
.uc-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.uc-tab { display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer; border-radius: 12px; padding: 13px 20px; background: #fff; border: 1px solid var(--accent-hover); transition: all .2s; }
.uc-tab:hover { border-color: var(--gold); }
.uc-tab.active { background: var(--gold-soft); border-color: var(--gold-mid); }
.uc-tab-label { font-family: var(--font-text); font-weight: 500; font-size: 14.5px; color: var(--ink-deep); white-space: nowrap; }
.uc-tab.active .uc-tab-label { color: #fff; }
.uc-tab-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .5px; color: var(--accent-hover); }
.uc-tab.active .uc-tab-sub { color: var(--gold); }
.uc-phases { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.uc-phase { background: #fff; border: 1px solid var(--accent); border-radius: 16px; padding: 28px; }
.uc-phase-tag { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; padding: 5px 11px; border-radius: 100px; margin-bottom: 18px; background: var(--gold-soft); color: var(--gold-mid); }
.uc-phase-h { font-family: var(--font-display); font-weight: var(--hd-w2); font-size: 19px; letter-spacing: -.3px; line-height: 1.22; margin: 0 0 11px; color: var(--ink-deep); }
.uc-phase-p { font-family: var(--font-text); font-size: 14.5px; color: var(--ink); line-height: 1.62; margin: 0 0 15px; }
.uc-quote { font-family: var(--font-text); font-size: 14px; color: var(--accent); font-style: italic; border-left: 2px solid var(--gold-mid); padding-left: 13px; line-height: 1.55; }
.uc-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.uc-stat-v { font-family: var(--font-display); font-weight: var(--hd-w2); font-size: 28px; color: var(--gold); letter-spacing: -.5px; line-height: 1; }
.uc-stat-l { font-size: 11px; color: var(--gold); max-width: 110px; margin-top: 6px; line-height: 1.35; }

/* ── Stats band ─────────────────────────────────────────────── */
.taic-sec--stats { position: relative; z-index: 2; background: var(--surface-page); padding: clamp(64px,8vw,96px) 0; border-bottom: 1px solid var(--gold-line); }
.stats-head { text-align: center; margin-bottom: 44px; }
.stats-kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-cell { text-align: center; padding: 0 26px; border-right: 1px solid var(--gold-line); }
.stat-cell:last-child { border-right: none; }
.stat-v { font-family: var(--font-display); font-weight: var(--hd-w); font-size: clamp(38px,4.2vw,54px); letter-spacing: -1.5px; line-height: 1; color: var(--ink-deep); }
.stat-u { font-style: normal; color: var(--gold-mid); }
.stat-l { font-size: 13px; color: var(--ink); margin-top: 14px; line-height: 1.5; max-width: 160px; margin-inline: auto; }

/* ── Why TAIC (cream band) ──────────────────────────────────── */
#why { background: var(--surface-page); border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line);
  --sec-heading: #1c1917; --sec-body: #44403c;
  --card-bg: #fdfaf6; --card-border: #e5e0d8; --card-text: #1c1917; --card-muted: #78716c;
  --card-shadow: 0 20px 44px rgba(28,25,23,.07); --card-hover-shadow: 0 30px 60px rgba(28,25,23,.12); }
/* always-on gold accent around every Why block, with a stronger pop on hover */
#why .taic-card { border-color: var(--gold-line); }
#why .taic-card:hover { border-color: var(--gold); }

/* ── Tech chip ──────────────────────────────────────────────── */
.tech-chip { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-light); display: grid; place-items: center; margin-bottom: 18px; color: var(--gold); }
:root[data-bg="deep"] .tech-chip { background: var(--gold-soft); }

/* ── CTA + emblem ───────────────────────────────────────────── */
.taic-cta { position: relative; z-index: 2; text-align: center; padding: clamp(90px,12vw,150px) 0 0; }
.amp-divider { display: flex; align-items: center; justify-content: center; gap: 22px; max-width: 1160px; margin: 0 auto 90px; padding: 0 40px; }
.amp-line { flex: 1; max-width: 240px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0), var(--gold-line), rgba(255,255,255,0)); }
.amp-glyph { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--gold); }
.taic-cta-inner { max-width: 680px; margin: 0 auto; padding: 0 40px; }
.cta-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.cta-h { font-family: var(--font-display); font-weight: var(--hd-w); font-size: clamp(34px,5vw,56px); letter-spacing: -1.8px; line-height: 1.05; margin: 0 0 20px; color: var(--sec-heading); }
.cta-sub { font-family: var(--font-text); font-size: 18px; color: var(--sec-body); margin: 0 auto 38px; max-width: 560px; line-height: 1.62; }
.taic-emblem { position: relative; margin-top: clamp(70px,10vw,120px); padding: 0 0 70px; }
.taic-emblem-glow { position: absolute; left: 50%; top: 8%; width: 420px; height: 320px; transform: translateX(-50%); background: radial-gradient(ellipse, var(--gold-soft) 0%, rgba(0,0,0,0) 66%); filter: blur(6px); }
.taic-emblem-el { position: relative; width: 210px; margin: 0 auto 22px; }
.taic-emblem-amp { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; user-select: none; font-family: var(--font-display); font-weight: 600; font-size: calc(210px * 1.28); line-height: 1; color: var(--gold); opacity: .11; }
.taic-emblem-img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 20px 40px rgba(8,18,40,.4)); }
.taic-emblem-line { font-family: var(--font-display); font-style: italic; font-size: 21px; color: var(--gold); font-weight: var(--hd-w2); margin: 0; }
.floating { animation: floaty 6.5s ease-in-out infinite; }

/* ── Contact page ───────────────────────────────────────────── */
.contact-wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr .98fr; min-height: calc(100vh - 76px); }
.contact-left { background: var(--surface-royal); color: #fff; padding: clamp(60px,7vw,96px) clamp(32px,5vw,64px); display: flex; flex-direction: column; justify-content: center; }
.contact-left-inner { max-width: 460px; }
.contact-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-text); font-weight: 500; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-mid); margin-bottom: 24px; }
.contact-eyebrow-line { width: 30px; height: 1px; background: var(--gold-mid); opacity: .8; }
.contact-h1 { font-family: var(--font-display); font-weight: var(--hd-w); font-size: clamp(30px,3.4vw,46px); letter-spacing: -1.4px; line-height: 1.08; color: #fff; margin: 0 0 22px; }
.contact-key { font-style: italic; color: var(--gold-mid); font-weight: inherit; }
.contact-lead { font-family: var(--font-text); font-size: 17px; color: rgba(255,255,255,.64); line-height: 1.7; margin: 0 0 46px; }
.contact-steps { display: flex; flex-direction: column; gap: 22px; }
.contact-step { display: flex; gap: 16px; align-items: flex-start; }
.contact-step-num { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--gold-mid); margin-top: 2px; }
.contact-step-t { display: block; font-family: var(--font-display); font-weight: var(--hd-w2); font-size: 16px; color: #fff; margin-bottom: 4px; }
.contact-step-d { font-family: var(--font-text); font-size: 14px; color: rgba(255,255,255,.56); line-height: 1.55; }
.contact-email { margin-top: 46px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.1); font-family: var(--font-text); font-size: 14px; color: rgba(255,255,255,.46); }
.contact-email a { color: var(--gold-mid); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(168,144,78,.4); }
.contact-right { background: var(--surface); padding: clamp(60px,7vw,96px) clamp(32px,5vw,64px); display: flex; flex-direction: column; justify-content: center; }
.contact-form-inner { max-width: 480px; width: 100%; }
.contact-form-title { font-family: var(--font-display); font-weight: var(--hd-w); font-size: 28px; letter-spacing: -.8px; color: var(--ink); margin: 0 0 8px; }
.contact-form-sub { font-family: var(--font-text); font-size: 15px; color: var(--gray-500); margin: 0 0 34px; }
.contact-privacy { font-family: var(--font-text); font-size: 12px; color: var(--gray-500); line-height: 1.6; margin: 0; }
.contact-sent { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; background: var(--gold-pale); border: 1px solid var(--gold-light); border-radius: 16px; }
.contact-sent-ic { width: 42px; height: 42px; background: var(--gold); border-radius: 11px; display: grid; place-items: center; }
.contact-sent-t { font-family: var(--font-display); font-weight: var(--hd-w2); font-size: 19px; color: var(--ink); }
.contact-sent-p { font-family: var(--font-text); font-size: 14px; color: var(--gray-700); margin: 0; }

/* ── Legal / article pages (mentions-legales, confidentialite) ── */
.legal-hero { position: relative; z-index: 2; padding: clamp(64px,8vw,96px) 0 8px; }
.legal-wrap { max-width: 740px; margin: 0 auto; padding: 0 40px; }
.legal-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.legal-eyebrow-line { width: 30px; height: 1px; background: var(--gold); opacity: .8; }
.legal-h1 { font-family: var(--font-display); font-weight: var(--hd-w); font-size: clamp(32px,4vw,46px); letter-spacing: -1.2px; line-height: 1.1; color: var(--sec-heading); margin: 0 0 14px; }
.legal-updated { font-family: var(--font-mono); font-size: 12px; color: var(--hero-soft); }

.legal-todo {
  margin: 34px 0 8px; padding: 22px 26px; border-radius: 14px;
  background: var(--gold-pale); border: 1px dashed var(--gold-line);
}
.legal-todo-t { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-mid); margin-bottom: 10px; }
.legal-todo ul { margin: 0; padding-left: 18px; font-family: var(--font-text); font-size: 14px; color: var(--ink); line-height: 1.7; }

.legal-toc { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 20px 0; border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); }
.legal-toc a { font-family: var(--font-mono); font-size: 12.5px; color: var(--sec-body); text-decoration: none; }
.legal-toc a:hover { color: var(--gold); }

.legal-body { position: relative; z-index: 2; padding: 44px 0 100px; }
.legal-section { max-width: 740px; margin: 0 auto 46px; padding: 0 40px; scroll-margin-top: 96px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 { font-family: var(--font-display); font-weight: var(--hd-w2); font-size: 23px; letter-spacing: -.4px; color: var(--sec-heading); margin: 0 0 16px; }
.legal-section h3 { font-family: var(--font-display); font-weight: var(--hd-w2); font-size: 17px; color: var(--sec-heading); margin: 22px 0 8px; }
.legal-section p { font-family: var(--font-text); font-size: 15.5px; line-height: 1.75; color: var(--sec-body); margin: 0 0 14px; }
.legal-section ul { font-family: var(--font-text); font-size: 15.5px; line-height: 1.75; color: var(--sec-body); margin: 0 0 14px; padding-left: 20px; }
.legal-section li { margin-bottom: 4px; }
.legal-section a { text-decoration: underline; text-underline-offset: 2px; }

.legal-fill {
  display: inline; font-family: var(--font-mono); font-size: .92em; font-weight: 600;
  color: var(--gold-mid); background: var(--gold-soft); border: 1px dashed var(--gold-line);
  border-radius: 5px; padding: 1px 7px; white-space: nowrap;
}

/* ── Reveal ─────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .75s cubic-bezier(.2,.65,.2,1), transform .75s cubic-bezier(.2,.65,.2,1); }
.rv-in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .taic-grid-3 { grid-template-columns: repeat(2,1fr); }
  .uc-phases { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 40px 0; }
  .stat-cell:nth-child(2) { border-right: none; }
}
@media (max-width: 1100px) {
  /* the nav row runs out of room for the links well before the hero
     needs to stack (they used to share the 900px breakpoint, which left
     a ~900–1070px dead zone where each link wrapped onto 2–3 lines) */
  .taic-nav-links { display: none; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 20px; }
  .hero-emblem-wrap, .hero-panel { order: -1; justify-content: center; }
  .hero-emblem { --el-size: min(70vw, 360px) !important; }
  /* elephant is centered above; center its text column to match, not left-aligned */
  .hero-grid > div:first-child { text-align: center; }
  .hero-grid > div:first-child [data-reveal] > div { justify-content: center; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .taic-grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none !important; padding: 22px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rot { animation: none; }
  .trust-track { animation: none; }
  .floating, .hero-elephant.floating { animation: none; }
  .cuebob { animation: none; }
  .rv { opacity: 1 !important; transform: none !important; transition: none; }
}
