/* ============================================================
   Belfort Systems — belfort-systems.fr
   Palette Château de Breteuil (indigo / violet) · Spectral + Archivo
   ============================================================ */

:root {
  --ink:        #1D2144;
  --indigo:     #2E2760;
  --indigo-d:   #211C4C;
  --accent:     #453C8C;
  --accent-2:   #5B4FD0;
  --soft:       #7C6BD6;
  --lilac:      #C7BEF2;
  --muted:      #55536B;
  --muted-2:    #6E6B85;
  --faint:      #9A97AD;
  --bg:         #F6F5FC;
  --bg-2:       #ECEAF3;
  --surface:    #FFFFFF;
  --surface-2:  #FBFAFE;
  --line:       #E5E2F2;
  --line-2:     #DAD5EC;
  --success:    #1D8A5B;

  --radius:     16px;
  --radius-lg:  26px;
  --radius-pill: 100px;
  --shadow-sm:  0 1px 3px rgba(29,33,68,.06), 0 6px 18px rgba(29,33,68,.05);
  --shadow-md:  0 10px 30px rgba(29,33,68,.10);
  --shadow-lg:  0 26px 60px rgba(29,33,68,.16);
  --shadow-glow: 0 20px 60px rgba(69,60,140,.35);
  --maxw:       1120px;
  --ease:       cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: linear-gradient(90deg, var(--soft), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--btn-bg);
  color: #fff;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: "Archivo", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 26px rgba(69,60,140,.28);
}
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--line-2);
}
.btn.ghost:hover { border-color: var(--soft); box-shadow: var(--shadow-md); color: var(--accent); }
.btn.on-dark {
  background: rgba(255,255,255,.10);
  color: #fff;
  border-color: rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
}
.btn.on-dark:hover { background: rgba(255,255,255,.18); box-shadow: 0 16px 40px rgba(0,0,0,.28); }
.btn.light { background: #fff; color: var(--accent); }
.btn.light:hover { color: var(--indigo); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,245,252,.72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
header.site.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(29,33,68,.05);
}
header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: "Spectral", Georgia, serif;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-2), var(--indigo));
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: .95rem;
  box-shadow: var(--shadow-sm);
}
.brand span { color: var(--accent); }
nav.main {
  display: flex;
  align-items: center;
  gap: 4px;
}
nav.main a.navlink {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  transition: color .2s, background .2s;
}
nav.main a.navlink:hover { color: var(--accent); background: rgba(124,107,214,.10); }
nav.main .btn { margin-left: 10px; padding: 11px 20px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle span { position: relative; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(124,107,214,.45), transparent 55%),
    radial-gradient(90% 90% at 10% 110%, rgba(91,79,208,.40), transparent 55%),
    linear-gradient(160deg, #241F52 0%, #2E2760 45%, #3A2F82 100%);
  color: #fff;
  padding: clamp(96px, 15vh, 168px) 0 clamp(84px, 12vh, 132px);
  isolation: isolate;
}
.hero .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  z-index: -1;
  animation: float 16s ease-in-out infinite;
}
.hero .orb.a { width: 460px; height: 460px; top: -120px; right: -80px;
  background: radial-gradient(circle, #6C5BE0, transparent 65%); }
.hero .orb.b { width: 380px; height: 380px; bottom: -140px; left: -60px;
  background: radial-gradient(circle, #8E86C0, transparent 65%); animation-delay: -6s; }
.hero .grid-overlay {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 85%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 620px; }
.badge-avail {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  color: #EDEAFB;
  padding: 7px 15px 7px 12px;
  border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 500;
  backdrop-filter: blur(6px);
}
.badge-avail .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ADE80; box-shadow: 0 0 0 0 rgba(74,222,128,.7);
  animation: pulse 2.4s infinite;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
  margin: 22px 0 20px;
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: linear-gradient(105deg, #C7BEF2, #A99BF2 40%, #E9E4FF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede {
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  color: rgba(255,255,255,.82);
  max-width: 540px;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .stats {
  display: flex; flex-wrap: wrap; gap: 30px 40px; margin-top: 46px;
  padding-top: 30px; border-top: 1px solid rgba(255,255,255,.14);
}
.hero .stats .n { font-family: "Spectral", serif; font-size: 1.9rem; font-weight: 600; color: #fff; }
.hero .stats .l { font-size: .82rem; color: rgba(255,255,255,.62); letter-spacing: .02em; }

/* Hero proof card */
.proof-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px rgba(0,0,0,.30);
  color: #fff;
}
.proof-card .pc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.proof-card .pc-logo {
  width: 50px; height: 50px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, #C7BEF2, #7C6BD6);
  display: grid; place-items: center; color: var(--indigo-d);
  font-family: "Spectral", serif; font-weight: 700; font-size: 1.15rem;
}
.proof-card .pc-top .t { font-family: "Spectral", serif; font-size: 1.08rem; font-weight: 600; }
.proof-card .pc-top .s { font-size: .8rem; color: rgba(255,255,255,.62); }
.proof-card .pc-row { display: flex; align-items: center; gap: 10px; font-size: .92rem; padding: 8px 0; color: rgba(255,255,255,.9); }
.proof-card .pc-row .chk {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
  background: rgba(74,222,128,.18); color: #6EE7A0; display: grid; place-items: center; font-size: .7rem;
}
.proof-card .pc-tag {
  display: inline-block; margin-top: 16px; font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--lilac);
}

/* Trust strip */
.trust {
  background: var(--indigo-d);
  color: rgba(255,255,255,.7);
  padding: 20px 0;
  font-size: .86rem;
}
.trust .container { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; text-align: center; }
.trust .label { letter-spacing: .16em; text-transform: uppercase; font-size: .72rem; color: rgba(255,255,255,.5); }
.trust .ref { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: "Spectral", serif; font-weight: 600; }
.trust .ref .dotsep { width: 5px; height: 5px; border-radius: 50%; background: var(--soft); }

/* ---------- Sections ---------- */
section[id], #top { scroll-margin-top: 90px; }
section.block { padding: clamp(64px, 9vw, 108px) 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.alt { background: linear-gradient(180deg, var(--surface-2), var(--bg-2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Value pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--lilac); }
.pillar .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(91,79,208,.14), rgba(124,107,214,.14)); color: var(--accent);
}
.pillar h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: .96rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.service::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--accent-2), var(--soft)); transform: scaleX(0);
  transform-origin: left; transition: transform .4s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service .ic {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--indigo), var(--accent)); color: #fff; box-shadow: var(--shadow-glow);
}
.service h3 { font-size: 1.32rem; margin-bottom: 10px; }
.service > p { color: var(--muted); font-size: .98rem; margin-bottom: 18px; }
.service ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service li { position: relative; padding-left: 24px; font-size: .92rem; color: var(--muted-2); }
.service li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px;
  border-radius: 50%; background: radial-gradient(circle at 40% 40%, var(--soft), var(--accent));
}
.services-note {
  margin-top: 30px; text-align: center; color: var(--muted); font-size: .98rem;
}
.services-note b { color: var(--accent); font-weight: 600; }

/* Method steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step .num {
  font-family: "Spectral", serif; font-weight: 700; font-size: 1.05rem;
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
  color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--indigo));
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { font-size: .92rem; color: var(--muted); }
.step .connector { position: absolute; top: 46px; right: -12px; color: var(--lilac); font-size: 1.2rem; z-index: 2; }

/* Expertise / skills */
.skillset { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.skillgroup {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.skillgroup:hover { border-color: var(--lilac); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.skillgroup .sg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.skillgroup .sg-ic {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(69,60,140,.12), rgba(124,107,214,.16)); color: var(--accent);
}
.skillgroup h3 { font-size: 1.12rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: .84rem; font-weight: 500;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-2);
  padding: 6px 13px; border-radius: var(--radius-pill);
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Timeline */
.timeline { list-style: none; max-width: 760px; }
.timeline li {
  position: relative; padding: 0 0 34px 34px;
  border-left: 2px solid var(--line-2); margin-left: 6px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(69,60,140,.10);
}
.timeline li.current::before { background: var(--accent); }
.timeline .date {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); font-weight: 600;
}
.timeline h3 { font-size: 1.18rem; margin: 6px 0 6px; }
.timeline p { color: var(--muted); font-size: .96rem; }
.timeline .tagcur {
  display: inline-block; margin-left: 8px; font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--success); background: rgba(29,138,91,.10);
  padding: 2px 9px; border-radius: var(--radius-pill); vertical-align: middle;
}

/* Case study */
.case {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--surface);
}
.case .case-visual {
  position: relative; overflow: hidden; padding: 40px;
  background:
    radial-gradient(90% 90% at 20% 10%, rgba(124,107,214,.5), transparent 60%),
    linear-gradient(160deg, #2E2760, #453C8C);
  color: #fff; display: flex; flex-direction: column; justify-content: space-between; min-height: 320px;
}
.case .case-visual .cv-badge {
  width: 62px; height: 62px; border-radius: 16px;
  background: linear-gradient(135deg, #C7BEF2, #7C6BD6); color: var(--indigo-d);
  display: grid; place-items: center; font-family: "Spectral", serif; font-weight: 700; font-size: 1.4rem;
}
.case .case-visual .cv-kicker { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lilac); }
.case .case-visual h3 { color: #fff; font-size: 1.7rem; margin-top: 8px; }
.case .case-visual .cv-meta { display: flex; gap: 22px; margin-top: 22px; }
.case .case-visual .cv-meta .n { font-family: "Spectral", serif; font-size: 1.35rem; }
.case .case-visual .cv-meta .l { font-size: .74rem; color: rgba(255,255,255,.65); }
.case .case-body { padding: 40px; }
.case .case-body h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.case .case-body p { color: var(--muted); font-size: .98rem; margin-bottom: 18px; }
.case .case-body ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.case .case-body li { position: relative; padding-left: 26px; font-size: .95rem; color: var(--ink); }
.case .case-body li .chk {
  position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(29,138,91,.12); color: var(--success); display: grid; place-items: center; font-size: .66rem;
}

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(44px, 7vw, 74px);
  text-align: center;
  background:
    radial-gradient(90% 130% at 80% 0%, rgba(124,107,214,.55), transparent 55%),
    linear-gradient(150deg, #241F52, #3A2F82);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 520px; margin: 0 auto 30px; font-size: 1.08rem; }
.cta-band .cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.cta-band .orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 0; }
.cta-band .orb.a { width: 320px; height: 320px; top: -120px; left: -60px; background: radial-gradient(circle, #6C5BE0, transparent 65%); }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--indigo-d); color: rgba(255,255,255,.72);
  padding: 56px 0 34px; margin-top: 0;
}
footer.site .f-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
footer.site .brand { color: #fff; }
footer.site .brand span { color: var(--soft); }
footer.site .f-tag { max-width: 340px; font-size: .92rem; color: rgba(255,255,255,.6); margin-top: 12px; }
footer.site .f-links { display: flex; gap: 40px; flex-wrap: wrap; }
footer.site .f-col h4 { color: #fff; font-family: "Archivo", sans-serif; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
footer.site .f-col a, footer.site .f-col span { display: block; color: rgba(255,255,255,.66); text-decoration: none; font-size: .92rem; margin-bottom: 9px; transition: color .2s; }
footer.site .f-col a:hover { color: #fff; }
footer.site .f-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; font-size: .82rem; color: rgba(255,255,255,.5); }

/* ---------- Reveal animation (only when JS is on, to avoid hidden content) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- Keyframes ---------- */
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-24px,26px) scale(1.06); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .proof-card { max-width: 460px; }
  .pillars, .services, .steps, .skillset { grid-template-columns: 1fr 1fr; }
  .step .connector { display: none; }
  .case { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  nav.main { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(246,245,252,.98); backdrop-filter: blur(18px); padding: 14px 20px 22px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .3s; }
  nav.main.open { transform: none; opacity: 1; pointer-events: auto; }
  nav.main a.navlink { padding: 13px 14px; font-size: 1rem; border-radius: 12px; }
  nav.main .btn { margin: 8px 0 0; width: 100%; }
  .nav-toggle { display: inline-flex; }
  .pillars, .services, .steps, .skillset { grid-template-columns: 1fr; }
  .hero .stats { gap: 22px 34px; }
  .case .case-visual, .case .case-body { padding: 30px 26px; }
}
@media (max-width: 400px) {
  .hero .stats .n { font-size: 1.6rem; }
}

/* ---------- Motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .orb, .badge-avail .dot, .cta-band .orb { animation: none; }
  * { transition-duration: .001ms !important; }
}
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
