:root {
  --ink: #16181d;
  --ink-soft: #5d6370;
  --blue: #0e45a3;
  --blue-deep: #0a2f70;
  --green: #2f9e44;
  --paper: #f7f5f0;
  --line: #e4e2dc;
  --bg: #ffffff;
  --max: 1160px;
  --read: 720px;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Barlow", system-ui, sans-serif; font-size: 19px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.15; margin: 1.3em 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 24px; }
h4 { font-size: 24px; }
h6 { font-size: 20px; margin-bottom: .2em; }
h2 a, h4 a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--blue); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--green); margin: 0 0 10px; }
.todo { background: #fff3c4; color: #6b5300; padding: 0 6px; border-radius: 4px; font-style: italic; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { max-width: var(--max); margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { width: 112px; }
.site-header nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 22px; margin: 0; padding: 0; }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover { color: var(--blue); }
.site-header nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--blue); }
.site-header nav a[href="/livre/"] { color: #fff; background: var(--blue); padding: 6px 14px; border-radius: 999px; border: 0; }
.burger { display: none; }

main { max-width: var(--max); margin: 0 auto; padding: 32px 20px 80px; }
section { margin: 0 auto 72px; }
.flow, .mission { max-width: var(--read); }
.flow figure, .post-body figure { margin: 32px auto; }
.flow figure img, .post-body figure img { margin: 0 auto; border-radius: 10px; }
.text p { margin: 0 0 1.1em; }
.text ul, .text ol { padding-left: 1.3em; }

/* ---------- buttons & chips ---------- */
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn-row { text-align: center; margin: 32px 0; }
.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 2px solid var(--blue); transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--blue); border-color: #fff; }
.btn-light:hover { background: var(--paper); border-color: var(--paper); color: var(--blue-deep); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.is-disabled { opacity: .75; cursor: default; }
.is-disabled:hover { transform: none; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 32px; }
.chips-left { justify-content: flex-start; }
.chip { background: var(--paper); color: var(--ink); text-decoration: none; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.chip:hover, .chip[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 24px; }
.hero h1 { margin: 0 0 20px; }
.hero .lead p { font-size: 21px; color: #2c3038; margin: 0; }
.hero-img { position: relative; margin: 0; }
.hero-img img { border-radius: 24px; aspect-ratio: 4/5; object-fit: cover; object-position: center top; width: 100%; box-shadow: 0 30px 60px -30px rgba(14,69,163,.45); }
.hero-img figcaption { position: absolute; left: -22px; bottom: 28px; background: var(--green); color: #fff; font-weight: 700; font-size: 30px; padding: 10px 18px; border-radius: 14px; transform: rotate(-4deg); }

.scale ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ink); }
.scale li { padding: 16px 12px 0 0; position: relative; }
.scale li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); }
.scale li:nth-child(odd)::before { background: var(--green); }
.scale b { display: block; font-size: 26px; }
.scale span { color: var(--ink-soft); font-size: 16px; }

.book-feature { background: var(--blue); color: #fff; border-radius: 28px; padding: 56px; position: relative; overflow: hidden; }
.book-feature::after { content: "10³"; position: absolute; right: -20px; bottom: -70px; font-size: 260px; font-weight: 700; color: rgba(255,255,255,.06); line-height: 1; }
.book-inner { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.book-feature h2 { margin: 0 0 4px; }
.book-feature .eyebrow { color: #9fe3ae; }
.book-sub { font-size: 22px; opacity: .9; margin: 0 0 16px; }
.book-meta { font-weight: 600; opacity: .9; }
.book-feature .todo { background: rgba(255,255,255,.15); color: #fff; }
.book-cover { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px 14px 14px 6px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); }
.book-cover--placeholder { background: linear-gradient(160deg, #fff 0%, #eef2fa 100%); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: 26px 22px; border-left: 10px solid var(--green); }
.book-cover--placeholder span { font-size: 34px; font-weight: 700; line-height: 1.05; }
.book-cover--placeholder small { color: var(--ink-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }

.mission h2 { margin-top: 0; }
.mission p { margin: 0 0 1em; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head h2 { margin: 0 0 12px; }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }

.press { text-align: center; border-block: 1px solid var(--line); padding: 36px 0; }
.press ul { list-style: none; padding: 0; margin: 8px 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; }
.press li { font-size: 24px; font-weight: 700; color: #8a8f99; font-style: italic; }
.press a { font-weight: 600; text-decoration: none; }

.videos-cta { background: var(--paper); border-radius: 28px; padding: 48px; text-align: center; }
.videos-cta h2 { margin-top: 0; }
.videos-cta .cta { justify-content: center; }

/* ---------- livre ---------- */
.book-hero { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.book-hero h1 { margin: 0 0 8px; }

/* ---------- cards (team) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.card { background: var(--paper); border-radius: var(--radius); padding: 18px 18px 8px; font-size: 17px; }
.card figure { margin: 0 0 14px; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.card h6 { margin-top: 0; }

/* ---------- post grid ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; text-align: left; }
.post-card { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(22,24,29,.35); }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.post-card .cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.post-card h3 { font-size: 21px; margin: 0; }
.post-card .author { font-size: 15px; color: var(--ink-soft); }

/* ---------- article ---------- */
.post-head { text-align: center; max-width: 860px; margin: 16px auto 40px; }
.post-head h1 { font-size: clamp(34px, 5vw, 54px); margin-top: 8px; }
.post-head .cat a { color: var(--green); text-decoration: none; text-transform: uppercase; font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.post-head .meta { color: var(--ink-soft); font-size: 16px; }
.post-layout { display: grid; grid-template-columns: minmax(0, var(--read)) 230px; gap: 64px; justify-content: center; align-items: start; }
.post-body { min-width: 0; font-size: 18px; }
.post-body .text h2, .post-body .text h3 { margin-top: 1.6em; }
.post-side { position: sticky; top: 100px; text-align: center; background: var(--paper); border-radius: var(--radius); padding: 22px 18px; }
.author-card { margin-bottom: 20px; font-size: 15px; }
.author-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; margin: 0 auto 8px; }
.author-card h6 { font-size: 18px; margin: 0; }
.author-card p { margin: 0; color: var(--ink-soft); }
.latest { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 64px; }

/* ---------- sources ---------- */
.doc-embed iframe { width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c9ccd3; padding: 56px 20px 24px; font-size: 16px; }
.foot { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot-brand, .foot-title { color: #fff; font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.site-footer nav li { margin-bottom: 6px; }
.socials { display: flex; gap: 16px; margin: 8px 0 16px; }
.socials svg { width: 24px; height: 24px; fill: #fff; }
.copy { max-width: var(--max); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid #2c3038; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .site-header nav ul { gap: 2px 14px; }
  .site-header nav a { font-size: 14px; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero-img { max-width: 460px; }
  .book-inner, .book-hero { grid-template-columns: 200px 1fr; gap: 32px; }
  .post-layout { grid-template-columns: minmax(0, 1fr) 180px; gap: 32px; }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  .bar { flex-wrap: wrap; }
  .logo img { width: 92px; }
  .burger { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
  .burger span { width: 24px; height: 2px; background: var(--ink); }
  .site-header nav { display: none; width: 100%; }
  .burger[aria-expanded="true"] + nav { display: block; }
  .site-header nav ul { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 0 14px; }
  main { padding-top: 20px; }
  section { margin-bottom: 56px; }
  .scale ol { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .book-feature { padding: 32px 24px; border-radius: 20px; }
  .book-inner, .book-hero { grid-template-columns: 1fr; }
  .book-cover { max-width: 200px; }
  .videos-cta { padding: 32px 20px; }
  .post-body { font-size: 17px; }
  .post-layout { grid-template-columns: 1fr; }
  .post-side { position: static; order: -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; padding: 14px; }
  .post-side .side-label { width: 100%; margin: 0; }
  .post-side .author-card { margin: 0; display: grid; grid-template-columns: 56px auto; column-gap: 12px; text-align: left; align-items: center; }
  .post-side .author-card img, .post-side .avatar { width: 56px; height: 56px; margin: 0; grid-row: span 2; font-size: 18px; }
  .foot { grid-template-columns: 1fr; gap: 28px; }
  
}

/* chapters list on /livre/ */
.book-details { color: var(--ink-soft); font-size: 16px; }
.chapters { list-style: none; counter-reset: ch; padding: 0; margin: 0; }
.chapters li { counter-increment: ch; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; }
.chapters li span::before { content: counter(ch) ". "; color: var(--green); font-weight: 700; }
.chapters small { color: var(--ink-soft); white-space: nowrap; }

/* instagram widget */
.insta-feed { margin: 28px auto 8px; max-width: var(--max); }

/* lightbox */
.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,12,16,.88); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 900px); max-height: 92vh; width: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 42px; line-height: 1; cursor: pointer; }

/* about: link row */
.card .links a { font-weight: 600; }

/* press page */
.press-hero { max-width: var(--read); }
.press-hero h1 { margin-top: 0; }
.press-hero .lead { font-size: 21px; color: #2c3038; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.press-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, transform .2s; }
.press-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(22,24,29,.35); }
.press-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.press-media { font-size: 22px; font-weight: 700; font-style: italic; }
.press-date { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.press-card h3 { font-size: 18px; font-weight: 600; margin: 0; color: #2c3038; }
.press-card blockquote { margin: 4px 0; padding: 0 0 0 14px; border-left: 3px solid var(--green); color: var(--ink-soft); font-size: 17px; font-style: italic; }
.press-link { margin-top: auto; font-weight: 600; text-decoration: none; padding-top: 6px; }
.press-link--off { color: var(--ink-soft); font-weight: 500; }

/* avoid double underline when the old content wraps links in <u> */
u:has(a) { text-decoration: none; }
a u { text-decoration: none; }

/* article: justified text, author sidebar */

.side-label { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--green); margin: 0 0 14px; }
.avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; font-weight: 700; font-size: 30px; }

/* collaboration */
.collab-hero { max-width: 820px; }
.collab-hero h1 { margin-top: 0; }
.collab-hero .lead { font-size: 22px; color: #2c3038; }
.collab-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-block: 1px solid var(--line); padding: 28px 0; }
.collab-facts div { display: flex; flex-direction: column; gap: 4px; }
.collab-facts b { font-size: 52px; line-height: 1; color: var(--blue); }
.collab-facts span { color: var(--ink-soft); font-size: 17px; }
.offer-grid, .partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.offer { background: var(--paper); border-radius: var(--radius); padding: 28px; }
.offer-num { font-weight: 700; color: var(--green); font-size: 15px; letter-spacing: .1em; }
.offer h3 { margin: 6px 0 10px; }
.offer p { margin: 0; }
.partner { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.partner h3 { margin: 0 0 6px; font-style: italic; }
.partner p { color: var(--ink-soft); margin: 0 0 12px; }
.partner ul { margin: 0; padding-left: 1.1em; }
.partner li { margin-bottom: 4px; }
.collab-cta { background: var(--blue); color: #fff; border-radius: 28px; padding: 48px; text-align: center; }
.collab-cta h2 { margin-top: 0; }
.collab-cta .cta { justify-content: center; }
@media (max-width: 760px) {
  .collab-facts { grid-template-columns: 1fr; }
  .collab-cta { padding: 32px 20px; }
}

/* press page v2 */
.press-featured { background: var(--paper); border-radius: 28px; padding: 48px 56px; position: relative; }
.press-featured blockquote { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; line-height: 1.35; }
.press-featured-src { margin: 18px 0 0; color: var(--ink-soft); }
.press-year h2 { display: flex; align-items: center; gap: 16px; font-size: 28px; margin: 0 0 18px; }
.press-year h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.collab-cta a:not(.btn) { color: #fff; }
@media (max-width: 760px) { .press-featured { padding: 36px 22px 28px; } }

/* justified text across the site */
main p, main li, main blockquote { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
main .btn-row, main .cta, main .post-head p, main .author-card p, main .side-label, main .post-card *,
main .chapters li, main .scale li, main .press li, main .press p, main .videos-cta p, main .collab-cta p,
main .home-videos p, main .eyebrow, main .book-meta, main .book-sub, main .press-date, main .press-featured blockquote,
main .press-featured-src, main .collab-facts span, main .chips, main .card .links, main .card h6 + p strong { text-align: inherit; hyphens: manual; }

/* zoomable images */
.zoomable, main figure img:not(a img), .post-body img:not(a img) { cursor: zoom-in; }

/* narrow text sections: keep a readable width but align on the page's left edge */
.flow, .mission, .press-hero, .collab-hero { margin-left: 0; margin-right: auto; }
.flow figure img { margin-left: 0; }

/* book cover: show the whole cover (its own 5:7 ratio), no cropping */
img.book-cover { aspect-ratio: auto; height: auto; object-fit: contain; border-radius: 4px; }

/* text sections use the full content width, like the rest of the page */
.flow, .mission, .press-hero, .collab-hero { max-width: none; }

/* real superscripts in the scale strip */
.scale sup { font-size: .55em; vertical-align: super; line-height: 0; margin-left: 1px; }

/* language switch */
.site-header nav li.lang { display: flex; align-items: center; gap: 2px; margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.site-header nav li.lang a, .site-header nav li.lang span { padding: 4px 6px; border-radius: 6px; border: 0; font-size: 13px; }
.site-header nav li.lang span[aria-current] { background: var(--ink); color: #fff; }
.site-header nav li.lang a { color: var(--ink-soft); }
.site-header nav li.lang a:hover { color: var(--blue); }
@media (max-width: 760px) { .site-header nav li.lang { border-left: 0; padding-left: 0; margin: 6px 0 0; } }

/* about: cards of equal height, link row aligned at the bottom */
.card { display: flex; flex-direction: column; }
.card > .text { flex: 1; display: flex; flex-direction: column; }
.card .links { margin-top: auto; padding-top: 4px; }

/* mobile: scale strip as a vertical timeline */
@media (max-width: 760px) {
  .scale ol { grid-template-columns: 1fr; row-gap: 0; border-top: 0; border-left: 2px solid var(--ink); margin-left: 7px; }
  .scale li { padding: 0 0 18px 24px; display: flex; align-items: baseline; gap: 14px; }
  .scale li:last-child { padding-bottom: 0; }
  .scale li::before { top: 6px; left: -8px; }
  .scale b { font-size: 22px; min-width: 96px; white-space: nowrap; }
  .scale span { font-size: 16px; }
}

/* Arthur's portrait: keep the whole head in square / round crops */
img[src*="unnamed-m7v31zd1eetylex0"] { object-position: 50% 12%; }
