/* =============================================================
   Matthieu H. — Profil éditorial · Direction A
   Feuille de style commune (3 pages)
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --paper:       #F6F5F1;
  --surface:     #FFFFFF;
  --ink:         #1C1F26;
  --ink-soft:    #5A5E68;
  --line:        #E4E2DB;
  --accent:      #2F6DF0;
  --accent-soft: #DBE6FF;

  --shadow-card: 0 2px 8px rgba(28,31,38,.05), 0 12px 32px rgba(28,31,38,.04);
  --shadow-hover: 0 4px 12px rgba(28,31,38,.07), 0 18px 44px rgba(28,31,38,.06);

  --r-card: 16px;
  --r-pill: 28px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 48px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 9vw, 110px); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }

/* Section number + heading row */
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-num {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 12px;
}
.sec-num::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }
.sec-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.04;
  font-size: clamp(30px, 4.4vw, 40px);
}
.sec-sub { color: var(--ink-soft); max-width: 60ch; text-wrap: pretty; margin-top: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(47,109,240,.28); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); border-color: #d3d0c7; }
.btn-ghost { padding-inline: 0; background: none; color: var(--accent); font-weight: 500; }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 7px 13px;
  border-radius: 999px;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .04em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Numbered label tile (replaces tool emoji) */
.numtile {
  flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--ink);
  background: var(--surface);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

/* ---------- Badges ---------- */
.badge {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 9px;
  border-radius: 6px;
  font-weight: 700;
}

/* =============================================================
   NAVBAR
   ============================================================= */
.nav-shell { position: sticky; top: 0; z-index: 100; padding: 14px var(--gut); }
.nav {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 11px 12px 11px 22px;
  box-shadow: var(--shadow-card);
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 9px;
}
.brand .mark {
  width: 11px; height: 11px; border-radius: 3px;
  background: var(--accent);
  display: inline-block;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500;
  color: var(--ink-soft);
  padding: 9px 14px; border-radius: 999px;
  position: relative;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.nav-cta { margin-left: 6px; }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface);
  flex-direction: column; gap: 4px; align-items: center; justify-content: center;
}
.burger span { width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* mobile menu sheet */
.mobile-menu {
  display: none;
  max-width: var(--maxw); margin: 8px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 8px;
  overflow: hidden;
}
.mobile-menu.open { display: block; animation: sheet .22s var(--ease); }
@keyframes sheet { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 12px;
  font-weight: 500; color: var(--ink);
  font-family: var(--font-display); letter-spacing: -.01em;
}
.mobile-menu a + a { border-top: 1px solid var(--line); }
.mobile-menu a.active { color: var(--accent); }
.mobile-menu a .num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }

@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start;
  padding-block: 48px;
}
.footer .brand { font-size: 20px; margin-bottom: 10px; }
.footer-tagline { color: var(--ink-soft); max-width: 34ch; font-size: 15px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: var(--ink); font-size: 15px; padding: 5px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-base {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-soft);
}

/* =============================================================
   HERO (index)
   ============================================================= */
.hero { padding-top: clamp(28px, 5vw, 56px); padding-bottom: 8px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-kicker { margin-bottom: 26px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.02;
  font-size: clamp(44px, 7vw, 80px);
  text-wrap: balance;
}
.hero h1 .l2 { color: var(--ink); }
.hero h1 .l1 { color: var(--ink); }
.hero-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -.01em;
  margin-top: 22px;
}
.hero-para { color: var(--ink-soft); max-width: 46ch; margin-top: 16px; font-size: 18px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* hero visual */
.hero-viz {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(120% 120% at 75% 15%, #fff 0%, var(--surface) 55%, #fbfaf7 100%);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.hero-viz svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-viz .viz-tag {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-viz .viz-corner {
  position: absolute; right: 16px; top: 14px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  color: var(--accent);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-viz { max-width: 460px; }
}

/* ---------- Stats band ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-top: clamp(40px, 6vw, 64px);
}
.stat { padding: 28px clamp(20px, 3vw, 36px); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(36px, 5vw, 52px); line-height: 1;
}
.stat .num.is-accent { color: var(--accent); }
.stat .lbl { color: var(--ink-soft); margin-top: 10px; font-size: 15px; text-wrap: pretty; }
.stat .lbl .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; display: block; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 680px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--line); }
}

/* ---------- Entry cards (index) ---------- */
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.entry {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(26px, 3.4vw, 40px);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.entry:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #d3d0c7; }
.entry .entry-top { display: flex; align-items: center; justify-content: space-between; }
.entry h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(22px, 2.6vw, 27px); }
.entry p { color: var(--ink-soft); text-wrap: pretty; }
.entry .btn { align-self: flex-start; margin-top: 4px; }
.entry-index { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); letter-spacing: .06em; }
@media (max-width: 760px) { .entry-grid { grid-template-columns: 1fr; } }

/* =============================================================
   OUTILS (toolbox)
   ============================================================= */
.quote {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin: 28px 0;
  max-width: 60ch;
}
.quote p { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 2.2vw, 23px); letter-spacing: -.01em; line-height: 1.3; text-wrap: balance; }
.quote cite { font-style: normal; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-soft); display: block; margin-top: 12px; }

/* privacy bar (compact) */
.privacy {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  padding: 22px clamp(20px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.privacy-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; flex: none; }
.privacy-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.privacy-body { flex: 1 1 320px; min-width: 260px; }
.privacy-body p { font-size: 14.5px; color: var(--ink-soft); text-wrap: pretty; }
.privacy-body p + p { margin-top: 6px; }
.privacy-body a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }

/* OSCAR band */
.oscar-band {
  display: flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; box-shadow: var(--shadow-card);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.oscar-free-side {
  flex: 1 1 260px; padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
}
.oscar-pro-side {
  flex: 1 1 260px; padding: clamp(20px, 3vw, 32px);
  background: var(--ink); display: flex; flex-direction: column; gap: 12px;
}
.oscar-divider {
  display: flex; align-items: center; justify-content: center;
  padding: 0 18px; font-size: 18px; color: var(--ink-soft);
  border-left: 1px solid var(--line); border-right: 1px solid var(--ink-soft);
  background: var(--surface); flex-shrink: 0;
}
.oscar-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px;
  border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-soft); margin-bottom: 8px;
}
.oscar-tag.pro { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.6); }
.oscar-free-side h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; margin-bottom: 6px; }
.oscar-free-side p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.oscar-pro-side h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: #fff; margin-bottom: 6px; }
.oscar-pro-side p { color: rgba(255,255,255,.65); font-size: 14.5px; line-height: 1.55; flex: 1; }
.oscar-pro-side .btn { align-self: flex-start; margin-top: auto; }
.doc-link { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 24px; }
.doc-link a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
@media (max-width: 680px) {
  .oscar-band { flex-direction: column; }
  .oscar-divider { display: none; }
}

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  transition: all .16s var(--ease);
}
.filter:hover { color: var(--ink); border-color: #d3d0c7; }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* featured tool */
.featured {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--accent-soft);
  border: 1px solid #c9d8ff;
  border-radius: var(--r-card);
  margin-bottom: 26px;
}
.featured .f-left { display: flex; align-items: center; gap: 20px; }
.featured .numtile { background: var(--surface); border-color: #c9d8ff; }
.featured h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 25px); letter-spacing: -.01em; }
.featured p { color: var(--ink-soft); font-size: 15px; margin-top: 3px; }
.featured .badge { background: var(--surface); }

/* tool grid */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #d3d0c7; }
.tool-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tool h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.tool p { color: var(--ink-soft); font-size: 14.5px; flex: 1; text-wrap: pretty; }
.tool-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; border-top: 1px solid var(--line); margin-top: 2px; padding-top: 14px; }
.tool-foot .cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.tool-foot .open { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; color: var(--accent); }
.tool-foot .open .arr { transition: transform .2s var(--ease); }
.tool:hover .tool-foot .open .arr { transform: translateX(3px); }
.tool[hidden] { display: none; }
@media (max-width: 940px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tool-grid { grid-template-columns: 1fr; } .featured { flex-direction: column; align-items: flex-start; } }

/* info tooltip on tool cards */
.tool-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 10px; font-family: var(--font-mono); font-style: italic;
  color: var(--ink-soft); cursor: default;
  position: relative; flex-shrink: 0;
  transition: border-color .2s, color .2s;
}
.tool-info:hover { border-color: var(--accent); color: var(--accent); }
.tool-info::before {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); right: 0;
  width: 200px; padding: 9px 11px;
  background: var(--ink); color: #fff;
  font-size: 12px; line-height: 1.45; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .18s;
  white-space: normal; font-family: var(--font-body);
  font-weight: 400; letter-spacing: 0; font-style: normal; z-index: 10;
}
.tool-info::after {
  content: ''; position: absolute; bottom: calc(100% + 2px); right: 5px;
  border: 5px solid transparent; border-top-color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 10;
}
.tool-info:hover::before, .tool-info:hover::after { opacity: 1; }

/* =============================================================
   PARCOURS
   ============================================================= */
.page-head { padding-top: clamp(24px, 4vw, 40px); max-width: 780px; }
.page-head h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; line-height: 1.03;
  font-size: clamp(38px, 6vw, 64px); text-wrap: balance;
}
.page-head .lead { color: var(--ink-soft); max-width: 68ch; margin-top: 22px; font-size: 18px; text-wrap: pretty; }
.page-head .lead strong { color: var(--ink); font-weight: 600; }
.page-head .head-cta { margin-top: 28px; }

/* value cycle stepper */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.step {
  text-align: left; padding: 22px 20px; background: var(--surface);
  border-right: 1px solid var(--line);
  transition: background .18s var(--ease);
  display: flex; flex-direction: column; gap: 10px; min-height: 100%;
}
.step:last-child { border-right: none; }
.step:hover { background: #fbfaf7; }
.step.active { background: var(--accent-soft); }
.step .s-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--accent); font-weight: 700; }
.step.active .s-num { color: var(--accent); }
.step .s-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; line-height: 1.25; }
.step-detail {
  border: 1px solid var(--line); border-top: none; border-radius: 0 0 var(--r-card) var(--r-card);
  background: var(--surface); padding: 0 24px; max-height: 0; overflow: hidden;
  transition: max-height .3s var(--ease), padding .3s var(--ease); margin-top: -1px;
}
.step-detail.open { max-height: 320px; padding: 22px 24px; }
.step-detail p { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 820px) {
  .stepper { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px solid var(--line); }
  .step:nth-child(odd) { border-right: 1px solid var(--line); }
  .step:nth-child(even) { border-right: none; }
}
@media (max-width: 480px) { .stepper { grid-template-columns: 1fr; } .step { border-right: none; } }

/* trust logos */
.trust { text-align: center; }
.trust .eyebrow { display: block; margin-bottom: 26px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 40px; }
.logo {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; font-size: clamp(18px, 2.4vw, 24px);
  color: var(--ink); opacity: .42; filter: grayscale(1);
  transition: opacity .2s var(--ease);
}
.logo:hover { opacity: .8; }

/* toggle */
.toggle-wrap { display: flex; justify-content: center; margin-bottom: 40px; }
.toggle {
  display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px; gap: 4px;
  box-shadow: var(--shadow-card); position: relative;
}
.toggle button {
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: -.01em;
  padding: 11px 22px; border-radius: 999px; color: var(--ink-soft); background: none;
  transition: color .2s var(--ease); position: relative; z-index: 1; white-space: nowrap;
}
.toggle button.active { color: #fff; }
.toggle .thumb { position: absolute; top: 5px; bottom: 5px; border-radius: 999px; background: var(--ink); transition: transform .28s var(--ease), width .28s var(--ease); z-index: 0; }

/* timeline */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 30px; transform: translateX(1px);
  width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent);
}
.exp { padding: clamp(22px, 3vw, 30px); }
.exp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px; margin-bottom: 4px; }
.exp h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2.2vw, 23px); letter-spacing: -.01em; }
.exp .period { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; color: var(--accent); white-space: nowrap; }
.exp .org { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.exp-points { display: flex; flex-direction: column; gap: 13px; margin-bottom: 22px; }
.exp-point {
  position: relative; padding-left: 18px;
  color: var(--ink-soft); font-size: 15px; text-wrap: pretty;
}
.exp-point::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .55;
}
.exp-point .em { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 15px; }
.exp-point .em::after { content: " — "; color: var(--ink-soft); font-weight: 400; }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* education columns */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.edu { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.edu > h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.edu-item .t { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.edu-item .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--accent); margin: 3px 0 6px; }
.edu-item p { color: var(--ink-soft); font-size: 14px; text-wrap: pretty; }
.edu-item + .edu-item { margin-top: 16px; }
.edu-line { display: grid; grid-template-columns: auto 1fr; gap: 8px; font-size: 14.5px; }
.edu-line .k { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.edu-line + .edu-line { margin-top: 10px; }
.edu-line span.v { color: var(--ink-soft); }
@media (max-width: 880px) { .edu-grid { grid-template-columns: 1fr; } }

/* competences clusters */
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.comp { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.comp-head { display: flex; align-items: center; gap: 14px; }
.comp-head .dom { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--accent); }
.comp h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; line-height: 1.2; }
@media (max-width: 880px) { .comp-grid { grid-template-columns: 1fr; } }

/* generic two-tools CTA / contact strip */
.cta-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(30px, 4vw, 48px);
  background: var(--ink); color: #fff; border-radius: var(--r-card);
}
.cta-strip h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.1; }
.cta-strip p { color: rgba(255,255,255,.62); margin-top: 8px; max-width: 44ch; }
.cta-strip .btn-primary { background: var(--accent); }
.cta-strip .btn-secondary { background: transparent; border-color: rgba(255,255,255,.24); color: #fff; }
.cta-strip .btn-secondary:hover { border-color: rgba(255,255,255,.5); box-shadow: none; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}
