/* =========================================================
   EXPERTLY.CH — Design tokens
   "Précision suisse, confiance visible"
   ========================================================= */
:root{
  --navy:        #1c2b3a;
  --navy-2:      #24384a;
  --navy-3:      #2c4258;
  --paper:       #faf9f6;
  --paper-2:     #f1efe8;
  --red:         #a83a2f;
  --red-light:   #c24c3f;
  --slate:       #5c6672;
  --hairline:    #e4e1da;
  --hairline-dark:#33465a;
  --green:       #2f7a4f;
  --text-on-navy: #f4f1ea;
  --text-on-navy-dim: #a9b4c0;

  --f-display: 'Fraunces', 'Georgia', serif;
  --f-body:    'Inter', -apple-system, sans-serif;
  --f-mono:    'IBM Plex Mono', 'Consolas', monospace;

  --container: 1180px;
  --gutter: clamp(24px, 5vw, 64px);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; }
::selection{ background: var(--red); color: var(--text-on-navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
  outline: 2px solid var(--red); outline-offset: 3px;
}

/* =========================================================
   Layout helpers
   ========================================================= */
.wrap{ max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section{ position: relative; padding: clamp(80px, 12vh, 140px) 0; }
.section-alt{ background: var(--paper-2); }
.section-navy{ background: var(--navy); color: var(--text-on-navy); }
.section-bordered{ border-top: 1px solid var(--hairline); }

.eyebrow{
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); display:flex; align-items:center; gap: 12px; margin-bottom: 18px;
}
.eyebrow::before{ content:""; width: 26px; height: 1px; background: var(--red); }
.section-navy .eyebrow{ color: #e08b7c; }
.section-navy .eyebrow::before{ background: #e08b7c; }

h1,h2,h3{ font-family: var(--f-display); font-weight: 600; line-height: 1.18; margin: 0 0 20px; color: inherit; }
h2{ font-size: clamp(28px, 3.2vw, 42px); }
h3{ font-size: clamp(19px, 1.8vw, 24px); }
p{ margin: 0 0 16px; }
.lede{ font-size: 19px; color: var(--slate); max-width: 620px; }
.section-navy .lede{ color: var(--text-on-navy-dim); }
.dim{ color: var(--slate); }
.section-navy .dim{ color: var(--text-on-navy-dim); }

.hr-thin{ width: 56px; height: 2px; background: var(--red); border:0; margin: 26px 0; }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration:none; color: var(--navy); background: transparent;
  border: 1.5px solid var(--navy); padding: 14px 26px; cursor:pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover{ background: var(--navy); color: var(--text-on-navy); }
.btn-red{ border-color: var(--red); color: var(--red); }
.btn-red:hover{ background: var(--red); color: #fff; border-color: var(--red); }
.section-navy .btn{ border-color: var(--text-on-navy); color: var(--text-on-navy); }
.section-navy .btn:hover{ background: var(--text-on-navy); color: var(--navy); }

.reveal{ opacity:0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view{ opacity:1; transform: translateY(0); }
.reveal-delay-1{ transition-delay: .1s; }
.reveal-delay-2{ transition-delay: .2s; }

/* =========================================================
   Nav — transparent over hero, opaque on scroll
   ========================================================= */
.nav{
  position: fixed; top:0; left:0; right:0; z-index: 200;
  display:flex; align-items:center; justify-content:space-between;
  padding: 20px var(--gutter);
  background: transparent;
  color: var(--text-on-navy);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled{
  background: rgba(250,249,246,0.94);
  backdrop-filter: blur(6px);
  color: var(--navy);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 2px 16px rgba(28,43,58,.05);
}
.nav-brand{ display:flex; align-items:center; gap: 16px; }
.logo-group{ display:flex; align-items:center; gap: 10px; text-decoration:none; color: inherit; }
.logo-mark{ height: 26px; width:auto; display:block; }
.logo-text{ font-family: var(--f-display); font-weight:700; font-size: 18px; letter-spacing: .5px; color: inherit; }
.logo-text em{ font-style:normal; color: var(--red); }
.origin-badge{
  display:flex; align-items:center; gap: 7px; padding-left: 14px;
  border-left: 1px solid currentColor; opacity:.5;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 1.5px; text-transform:uppercase;
}
.nav.scrolled .origin-badge{ opacity: .55; }
.flag-ch{ width: 14px; height:14px; display:block; border-radius:2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

.nav-links{ display:flex; gap: 32px; list-style:none; margin:0; padding:0; }
.nav-links a{
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration:none; color: inherit; opacity: .75; transition: opacity .2s ease;
}
.nav-links a:hover{ opacity: 1; }
.nav-cta{
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration:none; color: var(--red); border: 1.5px solid var(--red); padding: 9px 18px;
  transition: background .25s ease, color .25s ease;
}
.nav-cta:hover{ background: var(--red); color: #fff; }
@media (max-width: 860px){ .nav-links{ display:none; } }

/* =========================================================
   HERO — scroll-scrubbed frame sequence
   ========================================================= */
.hero-pin-wrap{ position: relative; height: 380vh; }
.hero-stage{ position: sticky; top:0; height: 100vh; width:100%; overflow:hidden; background: var(--navy); }
#hero-canvas{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.5; }
.hero-fallback-bg{ position:absolute; inset:0; background: radial-gradient(ellipse at 50% 30%, #2c4258 0%, #1c2b3a 65%); display:none; }
.hero-fallback-bg img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.45; animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns{ 0%{ transform: scale(1) translate(0,0); } 100%{ transform: scale(1.08) translate(-1%,-2%); } }
.hero-stage.no-frames .hero-fallback-bg{ display:block; }
.hero-stage.no-frames #hero-canvas{ display:none; }
.hero-vignette{ position:absolute; inset:0; background: linear-gradient(to bottom, rgba(28,43,58,.5) 0%, rgba(28,43,58,.2) 30%, rgba(28,43,58,.7) 100%); pointer-events:none; }
.hero-content{ position:relative; z-index:5; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding: 0 24px; }
.hero-kicker{ font-family: var(--f-mono); font-size: 12px; letter-spacing: 4px; text-transform:uppercase; color: #e08b7c; margin-bottom: 24px; }
.hero-title{ font-family: var(--f-display); font-weight: 600; font-size: clamp(38px, 7vw, 78px); color: var(--text-on-navy); margin:0; line-height:1.08; }
.hero-title em{ font-style:normal; color: var(--red-light); }
.hero-sub{ margin-top: 24px; max-width: 560px; font-size: 18px; color: var(--text-on-navy-dim); }
.hero-sub .word{ opacity: .25; transition: opacity .3s ease, color .3s ease; }
.hero-sub .word.active{ opacity: 1; color: var(--text-on-navy); }
.hero-actions{ display:flex; gap: 16px; margin-top: 36px; flex-wrap:wrap; justify-content:center; }
.hero-scroll-cue{ position:absolute; bottom: 36px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:10px; font-family: var(--f-mono); font-size: 11px; letter-spacing:3px; text-transform:uppercase; color: var(--text-on-navy-dim); }
.hero-scroll-cue .line{ width:1px; height:32px; background: linear-gradient(to bottom, var(--red-light), transparent); animation: scrollcue 2.2s ease-in-out infinite; }
@keyframes scrollcue{ 0%{ opacity:.2; transform: scaleY(.4); transform-origin: top; } 50%{ opacity:1; transform: scaleY(1); transform-origin: top; } 100%{ opacity:.2; transform: scaleY(.4); transform-origin: top; } }

/* =========================================================
   Process — signature element (Trouver → Contacter → Collaborer)
   ========================================================= */
.process{ text-align:center; }
.process-track{
  position:relative; display:flex; justify-content:space-between; align-items:flex-start;
  max-width: 820px; margin: 70px auto 0;
}
.process-line-bg, .process-line-fill{
  position:absolute; top: 21px; left: 60px; right: 60px; height: 2px;
}
.process-line-bg{ background: var(--hairline); }
.process-line-fill{ background: var(--red); width: 0%; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.process-track.in-view .process-line-fill{ width: 100%; }
.process-step{ position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; width: 33%; }
.process-dot{
  width: 44px; height: 44px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--hairline); display:flex; align-items:center; justify-content:center;
  font-family: var(--f-mono); font-size: 14px; color: var(--slate);
  transition: border-color .5s ease .3s, color .5s ease .3s, background .5s ease .3s;
}
.process-track.in-view .process-dot{ border-color: var(--red); color: var(--red); background:#fff; }
.process-step h3{ margin: 18px 0 8px; font-size: 18px; }
.process-step p{ font-size: 14.5px; color: var(--slate); max-width: 220px; }
@media (max-width: 640px){
  .process-track{ flex-direction:column; gap: 34px; align-items:flex-start; }
  .process-line-bg, .process-line-fill{ top:0; bottom:0; left:21px; right:auto; width:2px; height:auto; }
  .process-line-fill{ width:2px; height:0%; }
  .process-track.in-view .process-line-fill{ height:100%; }
  .process-step{ width:100%; flex-direction:row; text-align:left; gap: 18px; }
  .process-step h3{ margin: 0 0 6px; }
}

/* =========================================================
   Categories grid
   ========================================================= */
.cat-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 50px; }
.cat-card{ background: var(--paper); padding: 36px 30px; transition: background .25s ease; }
.cat-card:hover{ background: #fff; }
.cat-icon{ width: 36px; height:36px; color: var(--red); margin-bottom: 18px; }
.cat-code{
  width: 44px; height:44px; border-radius:50%; border: 1.5px solid var(--red);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--f-mono); font-size: 13px; letter-spacing:.5px; color: var(--red);
  margin-bottom: 18px;
}
.cat-card h3{ margin-bottom: 8px; }
.cat-card p{ font-size: 14.5px; color: var(--slate); margin:0; }
@media (max-width: 860px){ .cat-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .cat-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   Trust section
   ========================================================= */
.trust-layout{ display:grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items:center; }
.trust-media{ position:relative; aspect-ratio: 4/3; background: var(--navy-2); border: 1px solid var(--hairline-dark); overflow:hidden; }
.trust-media img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; z-index:2; }
.trust-media .placeholder{ position:absolute; inset:0; z-index:1; display:flex; align-items:center; justify-content:center; text-align:center; padding:24px; font-family: var(--f-mono); font-size:11px; letter-spacing:2px; text-transform:uppercase; color: var(--hairline-dark); }
.trust-badges{ display:flex; flex-direction:column; gap: 22px; margin-top: 30px; }
.trust-badge{ display:flex; gap: 16px; align-items:flex-start; }
.trust-badge .check{
  flex-shrink:0; width:26px; height:26px; border-radius:50%; background: var(--green);
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:14px; margin-top:2px;
}
.trust-badge h4{ margin:0 0 4px; font-family: var(--f-body); font-weight:600; font-size:15.5px; }
.trust-badge p{ margin:0; font-size:14px; color: var(--slate); }
@media (max-width: 860px){ .trust-layout{ grid-template-columns:1fr; gap: 34px; } }

/* =========================================================
   Pricing / offers
   ========================================================= */
.pricing-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items:stretch; margin-top: 50px; }
.tier{ border: 1px solid var(--hairline); background: #fff; padding: 38px 30px; display:flex; flex-direction:column; position:relative; }
.tier.featured{ border-color: var(--red); box-shadow: 0 8px 30px rgba(168,58,47,.08); }
.tier .badge{ position:absolute; top:-1px; right:-1px; font-family: var(--f-mono); font-size:10px; letter-spacing:2px; text-transform:uppercase; color:#fff; background: var(--red); padding: 6px 12px; }
.tier .tier-name{ font-family: var(--f-display); font-size: 20px; margin-bottom: 4px; }
.tier .tier-price{ font-family: var(--f-mono); font-size: 26px; color: var(--red); margin: 12px 0 2px; }
.tier .tier-price small{ font-size: 12px; color: var(--slate); }
.tier .tier-desc{ font-size: 13.5px; color: var(--slate); margin-bottom: 20px; }
.tier ul{ list-style:none; padding:0; margin: 0 0 26px; flex-grow:1; }
.tier li{ font-size: 14px; color: var(--slate); padding: 9px 0; border-top: 1px solid var(--hairline); display:flex; gap:8px; }
.tier li::before{ content:"—"; color: var(--red); }
.tier .btn{ width:100%; justify-content:center; }
@media (max-width: 940px){ .pricing-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list{ margin-top: 40px; border-top: 1px solid var(--hairline); }
.faq-item{ border-bottom: 1px solid var(--hairline); padding: 22px 0; }
.faq-item h4{ font-family: var(--f-body); font-weight:600; font-size: 16.5px; margin:0 0 8px; }
.faq-item p{ margin:0; font-size: 14.5px; color: var(--slate); max-width: 680px; }

.stat-strip{ display:flex; gap: 50px; flex-wrap:wrap; margin-top: 40px; }
.stat-strip .stat .n{ font-family: var(--f-mono); font-size: 30px; color: var(--red); display:block; }
.stat-strip .stat .l{ font-family: var(--f-mono); font-size: 11px; letter-spacing:1.5px; text-transform:uppercase; color: var(--slate); }

/* =========================================================
   CTA / pro contact form
   ========================================================= */
.cta-section{ text-align:center; }
.cta-section .wrap{ max-width: 640px; }
.pro-form{ margin-top: 40px; text-align:left; display:flex; flex-direction:column; gap: 16px; }
.pro-form label{ font-family: var(--f-mono); font-size: 11px; letter-spacing: 1.5px; text-transform:uppercase; color: var(--text-on-navy-dim); margin-bottom: 8px; display:block; }
.pro-form input[type="email"], .pro-form select{
  width:100%; background: rgba(255,255,255,.06); border: 1px solid var(--hairline-dark);
  padding: 15px 16px; color: var(--text-on-navy); font-family: var(--f-body); font-size: 16px;
  appearance:none; -webkit-appearance:none;
}
.pro-form select{
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f1ea' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat:no-repeat; background-position: right 14px center; background-size: 16px;
}
.pro-form input::placeholder{ color: var(--text-on-navy-dim); }
.pro-form option{ color: #000; }
.pro-form button{ margin-top: 6px; }
.form-note{ margin-top: 16px; font-size: 13px; color: var(--text-on-navy-dim); }
.form-success{ display:none; margin-top: 18px; color: #e08b7c; font-family: var(--f-mono); font-size: 13px; }

/* =========================================================
   Footer
   ========================================================= */
footer{ padding: 56px 0 36px; }
.footer-grid{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--hairline-dark); }
.footer-logo{ font-family: var(--f-display); font-size: 17px; }
.footer-logo em{ font-style:normal; color: var(--red-light); }
.footer-links{ display:flex; gap: 40px; flex-wrap:wrap; }
.footer-col h4{ font-family: var(--f-mono); font-size: 11px; letter-spacing:1.5px; text-transform:uppercase; color: #e08b7c; margin:0 0 12px; }
.footer-col ul{ list-style:none; margin:0; padding:0; }
.footer-col li{ margin-bottom:8px; }
.footer-col a{ text-decoration:none; color: var(--text-on-navy-dim); font-size:14px; transition:color .2s ease; }
.footer-col a:hover{ color: var(--text-on-navy); }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; padding-top:22px; font-family: var(--f-mono); font-size:11.5px; color: var(--text-on-navy-dim); }

@media (max-width: 560px){ body{ font-size: 16px; } .hero-pin-wrap{ height: 320vh; } }
