/* =========================================================
   Baptiste Mirevaud — « Sequel » design system
   Cinematic blackbox, 100% achromatic. Bradford + VisueltPro
   substitutes: Fraunces (editorial serif) + Inter (geometric sans)
   ========================================================= */

:root {
  /* Colors */
  --color-void-black: #000000;
  --color-carbon: #202020;
  --color-graphite: #333333;
  --color-bone: #c0c0c0;
  --color-smoke: #999999;
  --color-ash: #b3b3b3;
  --color-fog: #cccccc;
  --color-chalk: #ffffff;
  --color-linen: #f5f5f0;

  /* Fonts */
  --font-visueltpro: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-bradford: 'Fraunces', 'Tiempos Headline', Georgia, 'Times New Roman', serif;

  /* Type scale */
  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body: 18px;
  --text-subheading: 22px;
  --text-heading: 32px;
  --text-heading-lg: 58px;
  --text-display: 128px;

  /* Spacing */
  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-28: 28px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-64: 64px;
  --spacing-80: 80px;
  --spacing-96: 96px;

  /* Layout */
  --page-max-width: 1280px;
  --measure: 620px;
  --section-gap: 96px;

  /* Radius */
  --radius-lg: 10px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xl: rgba(0, 0, 0, 0.35) 0px 10px 30px 0px, rgba(255, 255, 255, 0.08) 0px 1px 0px 0px inset;
  --shadow-lg: rgba(0, 0, 0, 0.15) 0px 4px 20px 0px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--color-void-black);
  color: var(--color-chalk);
  font-family: var(--font-visueltpro);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--page-max-width); margin: 0 auto; padding: 0 24px; }
.section { padding-block: var(--section-gap); }
.section--tight { padding-block: 64px; }
.center { text-align: center; }
.measure { max-width: var(--measure); margin-inline: auto; }

/* ---------- Typography ---------- */
.serif { font-family: var(--font-bradford); font-weight: 500; }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-smoke);
  display: inline-block;
}

.display {
  font-family: var(--font-bradford);
  font-weight: 500;
  font-size: clamp(46px, 9vw, 118px);
  line-height: 1.0;
  letter-spacing: -0.05em;
}
.h-lg {
  font-family: var(--font-bradford);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.h-md {
  font-family: var(--font-bradford);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.lead {
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.5;
  color: var(--color-bone);
  font-weight: 300;
}
.body { color: var(--color-bone); font-weight: 300; }
.muted { color: var(--color-smoke); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-full);
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-chalk); color: #000; box-shadow: var(--shadow-lg); }
.btn--primary:hover { background: var(--color-linen); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.5); color: var(--color-chalk); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--inverted { background: var(--color-linen); color: #000; }
.btn--inverted:hover { background: #fff; }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0);
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-graphite);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; font-size: 19px; letter-spacing: -0.01em; }
.logo__bars { display: inline-flex; gap: 3px; }
.logo__bars span { width: 2px; height: 15px; background: #fff; display: block; }
.logo__bars span:nth-child(2) { height: 11px; align-self: center; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--color-bone); transition: color .2s ease; }
.nav__links a:hover, .nav__links a.active { color: #fff; }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: #fff; display: block; transition: .3s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.62); }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(0,0,0,.15), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.85) 100%);
}
.hero__content { padding-bottom: clamp(56px, 9vh, 110px); padding-top: 120px; max-width: 960px; }
.hero .display { margin-top: 18px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; color: var(--color-ash); font-size: 14px; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--color-smoke); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08);
  box-shadow: rgba(255,255,255,.08) 0 1px 0 inset;
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; color: #fff;
}

/* ---------- Section head ---------- */
.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head p { margin-top: 20px; color: var(--color-bone); }

/* ---------- Manifesto ---------- */
.manifesto p { font-size: clamp(22px, 3vw, 32px); line-height: 1.4; letter-spacing: -0.02em; color: var(--color-fog); font-weight: 300; }
.manifesto strong { color: #fff; font-weight: 400; }

/* ---------- About / portrait split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split--rev .split__media { order: 2; }
.split__body .h-lg { margin-bottom: 24px; }
.split__body p + p { margin-top: 18px; }
.split__body .body { color: var(--color-bone); }
.stats { display: flex; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.stat .num { font-family: var(--font-bradford); font-weight: 500; font-size: 40px; letter-spacing: -0.03em; }
.stat .lab { font-size: 13px; color: var(--color-smoke); margin-top: 4px; }

/* ---------- Photo card (author spots) ---------- */
.photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4 / 5;
  background: var(--color-carbon);
}
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04) brightness(.92); }
.photo__tag {
  position: absolute; left: 16px; bottom: 16px;
  font-size: 12px; color: var(--color-fog);
  background: rgba(0,0,0,.5); backdrop-filter: blur(6px);
  padding: 8px 12px; border-radius: var(--radius-full);
}
.photo__badge { position: absolute; top: 16px; right: 16px; }

/* ---------- Expertise cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-carbon);
  border: 1px solid var(--color-graphite);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: #4a4a4a; }
.card__no { font-size: 12px; color: var(--color-smoke); letter-spacing: 0.1em; }
.card h3 { font-family: var(--font-bradford); font-weight: 500; font-size: 24px; letter-spacing: -0.02em; margin: 14px 0 12px; }
.card p { color: var(--color-bone); font-size: 15px; line-height: 1.55; }
.card__meter { margin-top: 20px; height: 3px; background: var(--color-graphite); border-radius: 3px; overflow: hidden; }
.card__meter i { display: block; height: 100%; background: #fff; }

/* ---------- Editorial image cards ---------- */
.imgcard {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.imgcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.05) brightness(.7); transition: transform .5s ease; }
.imgcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.85)); }
.imgcard:hover img { transform: scale(1.05); }
.imgcard__body { padding: 24px; }
.imgcard__body h3 { font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.imgcard__body p { color: var(--color-ash); font-size: 14px; margin-top: 8px; }
.imgcard .badge { position: absolute; top: 16px; left: 16px; z-index: 1; }

/* ---------- Timeline ---------- */
.timeline { max-width: 820px; margin: 0 auto; }
.tl-group + .tl-group { margin-top: 56px; }
.tl-group h3 { font-family: var(--font-bradford); font-weight: 500; font-size: 26px; letter-spacing: -0.02em; margin-bottom: 28px; }
.tl-item { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--color-graphite); }
.tl-item .yr { color: var(--color-smoke); font-size: 14px; font-variant-numeric: tabular-nums; }
.tl-item .role { font-size: 17px; color: #fff; }
.tl-item .org { color: var(--color-bone); font-size: 14px; margin-top: 4px; }

/* ---------- Testimonials ---------- */
.quote { background: var(--color-carbon); border: 1px solid var(--color-graphite); border-radius: var(--radius-lg); padding: 32px; }
.quote p { font-family: var(--font-bradford); font-weight: 500; font-size: 22px; line-height: 1.35; letter-spacing: -0.02em; }
.quote .who { margin-top: 20px; font-size: 14px; color: var(--color-smoke); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-top: 1px solid var(--color-graphite); }
.faq__item:last-child { border-bottom: 1px solid var(--color-graphite); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; color: #fff; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-size: 18px; font-weight: 400; font-family: inherit; letter-spacing: -0.02em; }
.faq__q .ic { flex: 0 0 auto; width: 22px; height: 22px; position: relative; }
.faq__q .ic::before, .faq__q .ic::after { content: ""; position: absolute; background: #fff; transition: .3s ease; }
.faq__q .ic::before { top: 10px; left: 0; width: 22px; height: 2px; }
.faq__q .ic::after { left: 10px; top: 0; width: 2px; height: 22px; }
.faq__item.open .ic::after { transform: rotate(90deg); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__a p { color: var(--color-bone); font-size: 15px; line-height: 1.6; padding-bottom: 24px; max-width: 680px; }

/* ---------- Inverted panel (responsible gaming) ---------- */
.inverted { background: var(--color-linen); color: #000; border-radius: var(--radius-lg); }
.inverted .eyebrow { color: #555; }
.inverted .h-lg { color: #000; }
.inverted p { color: #333; }
.inverted a { text-decoration: underline; text-underline-offset: 3px; }
.rg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.rg-item { border-top: 1px solid rgba(0,0,0,.18); padding-top: 18px; }
.rg-item strong { display: block; font-size: 15px; margin-bottom: 6px; }
.rg-item span { font-size: 14px; color: #444; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.social { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; }
.social a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-top: 1px solid var(--color-graphite); font-size: 16px; transition: padding .25s ease; }
.social a:last-child { border-bottom: 1px solid var(--color-graphite); }
.social a:hover { padding-left: 10px; color: #fff; }
.social a span { color: var(--color-smoke); font-size: 13px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--color-graphite); padding-block: 56px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__nav a { font-size: 14px; color: var(--color-bone); }
.footer__nav a:hover { color: #fff; }
.footer__legal { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--color-graphite); color: var(--color-smoke); font-size: 13px; line-height: 1.7; }
.footer__legal .r18 { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--color-smoke); border-radius: 50%; font-size: 12px; color: #fff; margin-bottom: 14px; }

/* ---------- Blog listing ---------- */
.subhero { padding-top: 140px; padding-bottom: 56px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-xl); min-height: 400px; display: flex; align-items: flex-end; isolation: isolate;
  transition: transform .3s ease;
}
.post:hover { transform: translateY(-5px); }
.post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.05) brightness(.68); transition: transform .5s ease; }
.post::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.1) 30%, rgba(0,0,0,.9)); }
.post:hover img { transform: scale(1.05); }
.post .badge { position: absolute; top: 16px; left: 16px; z-index: 1; }
.post__body { padding: 26px; }
.post__meta { font-size: 12px; color: var(--color-smoke); display: flex; gap: 14px; margin-bottom: 12px; }
.post__body h3 { font-family: var(--font-bradford); font-weight: 500; font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; }
.post__body p { color: var(--color-ash); font-size: 14px; margin-top: 10px; }
.post--soon { pointer-events: none; }
.post--soon .post__body h3 { color: var(--color-fog); }

/* ---------- Article ---------- */
.article-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; }
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.05) brightness(.55); }
.article-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.2) 40%, rgba(0,0,0,.92)); }
.article-hero__body { padding-bottom: 56px; padding-top: 120px; max-width: 860px; }
.article-hero__meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--color-ash); font-size: 14px; margin-top: 22px; }
.prose { max-width: 720px; margin: 0 auto; }
.prose > * + * { margin-top: 24px; }
.prose p { color: var(--color-bone); font-size: 18px; line-height: 1.7; }
.prose h2 { font-family: var(--font-bradford); font-weight: 500; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; margin-top: 56px; line-height: 1.1; }
.prose h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-top: 36px; color: #fff; }
.prose ul { padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; color: var(--color-bone); font-size: 17px; line-height: 1.6; margin-top: 12px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; background: #fff; border-radius: 50%; }
.prose strong { color: #fff; font-weight: 500; }
.prose blockquote { border-left: 2px solid #fff; padding: 4px 0 4px 24px; }
.prose blockquote p { font-family: var(--font-bradford); font-weight: 500; font-size: 24px; color: #fff; letter-spacing: -0.02em; line-height: 1.35; }
.prose .callout { background: var(--color-carbon); border: 1px solid var(--color-graphite); border-radius: var(--radius-lg); padding: 26px; }
.prose .callout p { color: var(--color-bone); font-size: 15px; margin: 0; }
.prose .callout strong { color: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose table th, .prose table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--color-graphite); }
.prose table th { color: #fff; font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.prose table td { color: var(--color-bone); }
.article-foot { border-top: 1px solid var(--color-graphite); margin-top: 64px; padding-top: 32px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .post-grid, .rg-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { grid-template-columns: 1fr; gap: 40px; }
  .split--rev .split__media { order: 0; }
  .tl-item { grid-template-columns: 100px 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  :root { --section-gap: 72px; }
  .nav__links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: flex-start;
    background: rgba(0,0,0,.96); border-bottom: 1px solid var(--color-graphite); padding: 20px 24px; gap: 4px;
    transform: translateY(-120%); transition: transform .35s ease; }
  .nav__links a { padding: 12px 0; width: 100%; font-size: 16px; }
  .nav.open .nav__links { transform: none; }
  .nav__burger { display: flex; }
  .nav__cta .btn { display: none; }
  .grid-3, .grid-2, .post-grid, .rg-grid { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .hero__meta { gap: 14px; }
}
