:root {
  --bg: #0f1720;
  --bg-soft: #f5f7f8;
  --ink: #111827;
  --muted: #5f6b76;
  --line: rgba(17, 24, 39, 0.12);
  --white: #ffffff;
  --accent: #7e5f42;
  --accent-dark: #513c2b;
  --blue: #cddde8;
  --shadow: 0 24px 80px rgba(15, 23, 32, 0.18);
  --radius: 28px;
  --max: 1160px;
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg-soft);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -0.045em; }
h1 { font-size: clamp(3.4rem, 9vw, 8.8rem); max-width: 900px; }
h2 { font-size: clamp(2.1rem, 4.8vw, 4.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 99;
  padding: .65rem 1rem;
  background: var(--white);
  border-radius: 999px;
}
.skip-link:focus { left: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  color: var(--white);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  color: var(--ink);
  background: rgba(245, 247, 248, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.site-nav { display: flex; gap: clamp(.7rem, 2vw, 1.35rem); align-items: center; font-size: .95rem; }
.site-nav a { opacity: .86; transition: opacity .2s ease; }
.site-nav a:hover { opacity: 1; }
.nav-toggle { display: none; }

.hero {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  padding: calc(var(--header-height) + 2rem) clamp(1rem, 5vw, 5rem) clamp(3rem, 9vh, 6rem);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url('assets/jean-francois-ouellet.jpg');
  background-size: cover;
  background-position: 67% center;
  transform: scale(1.02);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 14, 22, .82) 0%, rgba(7, 14, 22, .62) 36%, rgba(7, 14, 22, .1) 70%),
    linear-gradient(0deg, rgba(7, 14, 22, .75) 0%, rgba(7, 14, 22, 0) 42%);
}
.hero-content { max-width: 860px; }
.hero-copy {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  max-width: 750px;
  margin: 1.1rem 0 1.8rem;
  color: rgba(255,255,255,.86);
}
.eyebrow, .kicker, .label {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 800;
}
.eyebrow { color: var(--accent); margin-bottom: .75rem; }
.hero .eyebrow { color: var(--blue); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-weight: 750;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--white); color: var(--ink); border-color: var(--white); }
.button.secondary { background: transparent; color: inherit; }
.hero-actions, .link-row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.scroll-cue {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: 2rem;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .7;
  writing-mode: vertical-rl;
}

.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.narrow { max-width: 840px; }
.panel { padding: clamp(4rem, 10vw, 8rem) 0; }
.intro { background: var(--ink); color: var(--white); }
.intro p:not(.kicker) { font-size: clamp(1.35rem, 2.6vw, 2.45rem); line-height: 1.18; letter-spacing: -0.04em; }
.kicker { color: var(--blue); margin-bottom: 1.1rem; }
.section { padding: clamp(4.5rem, 11vw, 9rem) 0; }
.alt { background: #fff; }
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}
.section-body { font-size: clamp(1.04rem, 1.45vw, 1.22rem); color: var(--muted); }
.section-body p:first-child { color: var(--ink); font-size: clamp(1.22rem, 1.75vw, 1.55rem); line-height: 1.36; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .3rem;
  color: var(--accent-dark);
  font-weight: 800;
  border-bottom: 1px solid rgba(126,95,66,.35);
}
.text-link::after { content: '↗'; font-size: .8em; }
.text-link:hover { border-bottom-color: currentColor; }

.books-section { background: linear-gradient(180deg, #f5f7f8 0%, #ebf0f3 100%); }
.section-heading.wide { max-width: 850px; margin-bottom: 2rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card {
  display: block;
  min-height: 330px;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  border-radius: var(--radius);
  background: rgba(255,255,255,.85);
  box-shadow: 0 1px 0 var(--line);
  border: 1px solid rgba(255,255,255,.8);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: var(--white); }
.card .label { color: var(--accent); display: inline-block; margin-bottom: 1rem; }
.card p { color: var(--muted); margin-top: 1rem; }

.speaker-band {
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(205,221,232,.24), transparent 34%), linear-gradient(135deg, #101820, #243544 62%, #7e5f42);
}
.speaker-band .eyebrow { color: var(--blue); }
.speaker-band p { font-size: clamp(1.13rem, 1.7vw, 1.45rem); color: rgba(255,255,255,.82); margin: 1.1rem 0 1.7rem; }

.personal h2 { margin-bottom: 1rem; }
.personal p:last-child { font-size: clamp(1.16rem, 1.8vw, 1.55rem); color: var(--muted); }

.contact-section { background: var(--ink); color: var(--white); }
.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
}
.contact-card p { color: rgba(255,255,255,.78); }
.contact-actions { display: grid; gap: .65rem; justify-items: start; }
.email-display { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin: 0; }

.site-footer { padding: 2rem 0; color: rgba(255,255,255,.72); background: #0a1016; font-size: .92rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--white); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: inherit;
    background: transparent;
  }
  .nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; background: currentColor; }
  .site-nav {
    position: fixed;
    inset: var(--header-height) 1rem auto 1rem;
    display: grid;
    gap: .25rem;
    padding: 1rem;
    background: rgba(245,247,248,.97);
    color: var(--ink);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .site-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .site-nav a { padding: .75rem .5rem; }
  .hero { min-height: 94svh; }
  .hero-bg { background-position: 61% center; }
  .hero-scrim { background: linear-gradient(90deg, rgba(7,14,22,.82), rgba(7,14,22,.46)), linear-gradient(0deg, rgba(7,14,22,.82), transparent 54%); }
  .split-grid, .contact-card { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .contact-actions { justify-items: stretch; }
}

@media (max-width: 520px) {
  :root { --header-height: 68px; }
  h1 { font-size: clamp(3rem, 16vw, 4.9rem); }
  .hero { padding-inline: 1rem; }
  .hero-actions .button, .contact-actions .button { width: 100%; }
  .scroll-cue { display: none; }
}

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


.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: .45rem .75rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 800;
  opacity: .95 !important;
}
.lang-switch:hover { opacity: 1 !important; transform: translateY(-1px); }
@media (max-width: 860px) {
  .lang-switch { width: max-content; margin-top: .25rem; }
}
