/* yanischauvel.com
   Lean, light editorial look. Full-width bands alternate (mist / white / slate tint)
   so each section reads as its own room; colour only as a slate accent from the CV.
   Light only, by choice. Fonts are served by the site: no third-party request. */

@font-face {
  font-family: "Besley";
  src: url("fonts/besley-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Besley";
  src: url("fonts/besley-italic-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --mist: #eef1f3;
  --white: #ffffff;
  --tint: #e3ecf2;
  --ink: #23303a;
  --text: #46535d;
  --muted: #6f7c86;
  --line: #e2e7ea;
  --line-strong: #c9d3d9;
  --accent: #2f6b93;
  --accent-dark: #255a7d;
  --accent-soft: #e8f0f5;
  --display: "Besley", Georgia, serif;
  --body: "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist); color: var(--text);
  font: 400 17.5px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap {
  max-width: 1040px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  box-sizing: content-box;
}
.eyebrow { font: 600 12px/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0; }
h1, h2, h3, h4, .years, .product strong {
  font-family: var(--display); font-weight: 420; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; margin: 0;
}
p { margin: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--white); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- bands ---------- */
.band { padding-block: clamp(72px, 10vw, 136px); }
.band.mist { background: var(--mist); }
.band.white { background: var(--white); }
.band.tint { background: var(--tint); }
.band.hero-band { padding-block: 0; }
.head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 36em; }
.head h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; }
.head p { color: var(--muted); }

/* ---------- header + hero ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; }
.brand { font: 600 15px/1 var(--body); letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: 15px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 600 15px/1 var(--body); padding: 13px 22px; border-radius: 999px;
  background: var(--accent); color: var(--white); border: 1px solid var(--accent); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--accent-dark); }
.btn.line { background: transparent; color: var(--accent); }
.btn.line:hover { background: var(--accent-soft); }
.nav .btn { padding: 9px 16px; font-size: 14px; color: var(--accent); }
.link { font: 600 15px/1 var(--body); color: var(--text); text-decoration: none; padding: 13px 4px; }
.link:hover { color: var(--accent); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

.hero {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(40px, 7vw, 104px); align-items: center; padding-block: clamp(36px, 7vw, 96px) clamp(64px, 9vw, 128px);
}
.hero h1 { font-size: clamp(40px, 6vw, 74px); line-height: 1.06; margin-block: 22px 30px; font-weight: 400; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { font-size: 19px; max-width: 32em; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 40px; }
.portrait { justify-self: end; width: 100%; max-width: 320px; margin: 0; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; box-shadow: 0 20px 50px -24px rgb(35 48 58 / .35); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .portrait { order: -1; justify-self: start; max-width: 168px; }
}

/* ---------- the present: Thelis + Thinkify, as two soft cards ---------- */
.now-detail { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px; align-items: stretch; }
.role { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 3vw, 32px); background: var(--mist); border-radius: 14px; }
.role .meta { font: 600 12px/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.role h4 { font-size: clamp(24px, 2.4vw, 28px); line-height: 1.15; }
.role > p { max-width: 34em; }
.products { display: grid; margin-top: 10px; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 18px; align-items: baseline; padding-block: 14px; border-top: 1px solid var(--line-strong); text-decoration: none; }
.product strong { font-size: 21px; line-height: 1.25; transition: color .2s; }
.product .url { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.product p { grid-column: 1 / -1; color: var(--muted); font-size: 16px; max-width: 36em; }
.product:hover strong { color: var(--accent); }
@media (max-width: 760px) { .now-detail { grid-template-columns: 1fr; } }

/* ---------- story / timeline ----------
   Without JavaScript, or on a phone, every chapter is shown, stacked on a vertical line.
   With JavaScript on a wide screen, the axis appears and one chapter shows at a time. */
.axis { display: none; }
.stops { display: grid; }
.stop { position: relative; display: grid; gap: 16px; padding: 32px 0 40px 28px; border-left: 1px solid var(--line-strong); }
.stop::before { content: ""; position: absolute; left: -4.5px; top: 42px; width: 8px; height: 8px; border-radius: 50%; background: var(--white); border: 1px solid var(--accent); }
.stop.big::before { background: var(--accent); }
.stop .when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.stop .years { font-size: clamp(36px, 5vw, 44px); line-height: 1; font-weight: 400; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.stop .place { font-size: 14px; color: var(--muted); }
.stop h3 { font-size: clamp(23px, 2.4vw, 28px); line-height: 1.15; }
.stop .lesson { font: italic 400 1.12em/1.5 var(--display); color: var(--accent); max-width: 32em; }
.facets { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 40em; }
.facets li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.facets b { font: 600 11.5px/1.5 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.switch { display: grid; gap: 4px; padding: 14px 18px; border-radius: 10px; background: var(--accent-soft); max-width: 40em; }
.switch b { font: 600 11.5px/1.5 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.switch p { color: var(--text); font-size: 16px; }
.stop .now-detail { margin-top: 12px; }
@media (max-width: 480px) { .facets li { grid-template-columns: 1fr; gap: 0; } }

@media (min-width: 820px) {
  .js .axis { display: block; position: relative; margin-bottom: 64px; user-select: none; }
  .axis .rail { position: relative; height: 44px; }
  .axis .seg { position: absolute; top: 0; height: 44px; border: 0; padding: 0; cursor: pointer; background: transparent; text-align: left; }
  .axis .seg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 4px; background: var(--line); transition: background-color .25s; }
  .axis .seg:hover::after { background: var(--line-strong); }
  .axis .seg[aria-selected="true"]::after { background: var(--accent); }
  .axis .seg span { position: absolute; left: 0; top: 6px; white-space: nowrap; font: 600 14px/1 var(--body); color: var(--muted); transition: color .2s; pointer-events: none; }
  .axis .seg:hover span, .axis .seg[aria-selected="true"] span { color: var(--ink); }
  .axis .ticks { position: relative; height: 26px; margin-top: 10px; }
  .axis .tick { position: absolute; top: 0; font: 400 13px/1 var(--body); font-variant-numeric: tabular-nums; color: var(--muted); }
  .axis .tick.end { transform: translateX(-100%); }
  .axis .controls { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
  .axis .hint { font-size: 14px; color: var(--muted); margin-left: 8px; }
  .iconbtn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, color .2s; }
  .iconbtn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
  .iconbtn:disabled { opacity: .35; cursor: default; }

  .js .stop { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 88px); align-content: start; padding: 0; border: 0; }
  .js .stop::before { display: none; }
  .js .stop:not(.is-active) { display: none; }
  .js .stop .when { grid-row: 1 / span 4; flex-direction: column; gap: 14px; }
  .js .stop .years { font-size: clamp(56px, 6.2vw, 80px); line-height: .95; }
  .js .stop > :not(.when) { grid-column: 2; }
  .js .stop > .now-detail { grid-column: 1 / -1; margin-top: 32px; }
  .js .stop.is-active.entering > * { animation: rise .5s ease both; }
  .js .stop.is-active.entering > :nth-child(2) { animation-delay: .05s; }
  .js .stop.is-active.entering > :nth-child(3) { animation-delay: .1s; }
  .js .stop.is-active.entering > :nth-child(n+4) { animation-delay: .15s; }
}
@keyframes rise { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- method ---------- */
.method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.method li { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 3vw, 32px); background: var(--white); border-radius: 14px; counter-increment: step; }
.method li::before { content: counter(step, decimal-leading-zero); font: italic 400 18px/1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.method h3 { font-size: 26px; line-height: 1.15; }
.method p { color: var(--muted); }
@media (max-width: 760px) { .method { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.hello { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.hello .copy { display: grid; gap: 20px; }
.hello h2 { font-size: clamp(42px, 6vw, 72px); line-height: 1.05; font-weight: 400; }
.hello p { color: var(--muted); max-width: 30em; }
.hello .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
/* The WhatsApp link is built by site.js: without it, only LinkedIn is offered. */
.wa { display: none; }
.js .wa { display: inline-flex; }
@media (max-width: 760px) { .hello { grid-template-columns: 1fr; align-items: start; } }

.foot { padding-block: 0; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-strong); font-size: 13.5px; color: var(--muted); }

/* ---------- 404 ---------- */
.lost { display: grid; gap: 22px; justify-items: start; padding-block: clamp(48px, 10vw, 140px); }
.lost h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.06; font-weight: 400; }
.lost p { max-width: 30em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
