/* ============================================================
   raevr.com — internal pages
   Same direction as the home page: ink ground, Georgia display,
   self-hosted Satoshi and JetBrains Mono, hairline grids.
   Zero external requests.
   ============================================================ */

@font-face { font-family: 'Satoshi'; src: url('/fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/satoshi-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrainsmono-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* the arrow (U+2192) is outside Google's latin subset — 744-byte companion file */
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrainsmono-400-arrow.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+2192; }

:root {
  --ink: #08070d;
  --ink-2: #0f0d17;
  --ink-3: #15121e;
  --paper: #eeeae2;
  --muted: #9c98a5;
  --warm: #baa892;
  --line: rgba(238, 234, 226, .13);
  --line-strong: rgba(238, 234, 226, .24);
  --lime: #d8ff45;
  --header-h: 82px;
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Satoshi', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); color-scheme: dark; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
[hidden] { display: none !important; }

.shell { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }

.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 60;
  padding: 10px 16px; transform: translateY(-200%);
  background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.skip-link:focus { transform: none; }

/* ============================================================
   HEADER — same furniture as the home page, sitting on the ink
   ============================================================ */
.site-header {
  position: relative;
  z-index: 20;
  height: 82px;
  padding: 0 38px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.wordmark { font-size: 20px; font-weight: 900; letter-spacing: -.04em; }
.wordmark span { color: var(--lime); }
.main-nav { display: flex; gap: 31px; }
.main-nav a, .footer-links a {
  color: rgba(238,234,226,.68);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.main-nav a:hover, .footer-links a:hover { color: var(--paper); }
.main-nav a[aria-current="page"] { color: var(--lime); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 22px; }

.languages { display: flex; gap: 9px; }
.languages a {
  color: rgba(238,234,226,.45);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .17em;
  transition: color .2s ease;
}
.languages a:hover { color: var(--paper); }
.languages a[aria-current="page"] { color: var(--lime); }

/* ============================================================
   BUTTONS
   ============================================================ */
.button {
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: #fff; }
.button-small { min-height: 42px; padding: 0 19px; font-size: 11px; }
.button-lime { background: var(--lime); color: var(--ink); }
.button-lime:hover { background: #e4ff74; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: rgba(238,234,226,.72); font-size: 12px; transition: color .2s ease; }
.text-link:hover { color: var(--paper); }
.icon { flex: none; }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 118px 0 96px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 82% 12%, rgba(93,74,126,.24), transparent 58%);
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 78px 78px;
  -webkit-mask-image: linear-gradient(to left, black, transparent 68%);
  mask-image: linear-gradient(to left, black, transparent 68%);
}
.page-hero > .shell { position: relative; z-index: 2; }
.eyebrow, .index, .section-index {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  line-height: 1.5;
  text-transform: uppercase;
}
h1 {
  max-width: 880px;
  margin: 26px 0 0;
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 104px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .88;
}
.lede {
  max-width: 760px;
  margin-top: 34px;
  color: rgba(238,234,226,.88);
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.42;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section { padding: 110px 0; border-bottom: 1px solid var(--line); }
.content-section:last-of-type { border-bottom: 0; }
.section-heading {
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}
.section-intro { max-width: 720px; margin-top: 28px; color: var(--muted); font-size: 15px; }

.grid { margin-top: 76px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.card {
  min-height: 260px;
  padding: 28px 26px 34px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}
.card:nth-child(2n) { border-right: 0; }
.card:nth-child(2n+1) { border-left: 1px solid var(--line); }

/* three-up, carrying the same three cases as the home page and the same
   furniture: the client's mark on the index line, a lime rule over the result,
   and subgrid to put the three results on one line. */
.grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.is-three .card { border-left: 0; border-right: 1px solid var(--line); }
.grid.is-three .card:first-child { border-left: 1px solid var(--line); }
.grid.is-three .card:last-child { border-right: 0; }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 20px; }
.card-head .index { margin: 0; }
/* Both marks are sized on their letterforms, not on their SVG boxes: WWG's caps
   fill its box, ISIFID's wordmark is 17.99 of its 24.41 ink height, so equal box
   heights made ISIFID read almost half the size. --letter-h is the height the
   letters actually occupy in both; ISIFID's box is scaled up around it and its
   colour blocks sit above the wordmark, as they do in the logo. */
.card-brand {
  --letter-h: 20px;
  flex: none;
  opacity: .65;
  background-color: rgba(238,234,226,.92);
  -webkit-mask: var(--brand) no-repeat center / contain;
  mask: var(--brand) no-repeat center / contain;
  transition: opacity .25s ease;
}
.card:hover .card-brand {
  opacity: 1;
  background: var(--brand) no-repeat center / contain;
  -webkit-mask: none;
  mask: none;
}
.card-brand.is-wwg {
  --brand: url('/img/wwg.svg');
  height: var(--letter-h);
  width: calc(var(--letter-h) * 3.1444);
}
.card-brand.is-isifid {
  --brand: url('/img/isifid.svg');
  height: calc(var(--letter-h) * 1.3569);
  width: calc(var(--letter-h) * 3.7176);
}
.card-brand-text {
  flex: none;
  height: 20px;
  display: flex;
  align-items: center;
  color: var(--paper);
  opacity: .65;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  white-space: nowrap;
  transition: opacity .25s ease;
}
.card:hover .card-brand-text { opacity: 1; }
.card-copy { flex: 1; padding-bottom: 22px; }

@supports (grid-template-rows: subgrid) {
  .grid.is-three { grid-template-rows: auto auto 1fr auto; }
  .grid.is-three .card { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  .grid.is-three .card-result { margin-top: 0; }
}
.card:hover { background: rgba(216,255,69,.045); }
.index { display: block; color: var(--lime); font-size: 9px; letter-spacing: .15em; }
.card h2, .card h3 { margin: 58px 0 14px; font-family: var(--display); font-size: clamp(24px, 2.4vw, 30px); font-weight: 400; line-height: 1.08; }
.card p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.card p + p { margin-top: 12px; }
.card strong { color: var(--paper); font-weight: 400; }

/* result line, kept identical to the home page cases */
.card-result { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--lime); }
.card-result dt { color: rgba(238,234,226,.42); font-family: var(--mono); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; }
.card-result dd { margin-top: 8px; color: var(--paper); font-family: var(--display); font-size: 17px; line-height: 1.35; }
.card-result dd .todo { color: var(--lime); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }

/* ============================================================
   FACTS
   ============================================================ */
.facts { margin-top: 60px; border-top: 1px solid var(--line-strong); }
.fact { display: grid; grid-template-columns: minmax(160px, .35fr) 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.fact dt { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .17em; text-transform: uppercase; padding-top: 4px; }
.fact dd { font-family: var(--display); font-size: 19px; line-height: 1.4; }
.fact dd a { border-bottom: 1px solid var(--line-strong); transition: border-color .2s ease; }
.fact dd a:hover { border-color: var(--lime); }

.actions { margin-top: 46px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* ============================================================
   FOOTER — identical to the home page
   ============================================================ */
.site-footer { padding: 70px 0 32px; background: #07060b; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr auto; align-items: start; gap: 30px; }
.footer-top > p { font-family: var(--display); font-size: 24px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 17px 34px; }
.footer-bottom { margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: rgba(238,234,226,.35); font-family: var(--mono); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }

/* ============================================================
   404
   ============================================================ */
.error-page { min-height: calc(100vh - 82px); display: grid; place-items: center; padding: 90px 0; text-align: center; }
.error-page h1 { margin-inline: auto; }
.error-page .lede { margin-inline: auto; }
.error-page .actions { justify-content: center; }

/* ============================================================
   MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; }
}


/* ============================================================
   MOBILE NAVIGATION
   The control and the panel are inert above the breakpoint.
   ============================================================ */
.nav-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(238,234,226,.68);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease;
}
.nav-toggle:hover { color: var(--paper); }
.nav-toggle [data-nav-close] { display: none; }
:root[data-nav="open"] .nav-toggle [data-nav-open] { display: none; }
:root[data-nav="open"] .nav-toggle [data-nav-close] { display: inline; }

.mobile-nav { display: none; }
.mobile-nav ul { list-style: none; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav a {
  display: block;
  padding: 22px 0;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -.03em;
}
.mobile-nav a[aria-current="page"] { color: var(--lime); }
.mobile-nav .mobile-nav-group + .mobile-nav-group { margin-top: 34px; }
.mobile-nav .mobile-nav-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE — la dernière media query mobile reste en fin de feuille
   ============================================================ */
@media (max-width: 980px) {
  /* the header must stay reachable for the menu control to be usable */
  .site-header { position: sticky; top: 0; background: rgba(8,7,13,.94); border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-block; }
  :root[data-nav="open"] { overflow: hidden; }
  :root[data-nav="open"] .mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 30;
    display: block;
    padding: 34px clamp(16px, 5vw, 40px) 60px;
    background: var(--ink);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-header { grid-template-columns: 1fr auto; padding: 0 24px; }
  .main-nav { display: none; }
  .header-actions { gap: 16px; }
  .shell { width: min(100% - 40px, 760px); }
  .page-hero { padding: 90px 0 76px; }
  .grid.is-three { grid-template-columns: 1fr; }
  .grid.is-three .card { border-left: 1px solid var(--line); border-right: 0; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  :root { --header-h: 70px; }
  .site-header { height: 70px; padding: 0 16px; }
  .button-small { min-height: 38px; padding: 0 14px; }
  .page-hero { padding: 68px 0 60px; }
  h1 { font-size: clamp(44px, 13vw, 62px); }
  .lede { font-size: 19px; }
  .content-section { padding: 76px 0; }
  .section-heading { font-size: 34px; }
  .grid, .grid.is-three { margin-top: 52px; grid-template-columns: 1fr; }
  .card, .grid.is-three .card { min-height: 0; padding-bottom: 30px; border-right: 0; border-left: 1px solid var(--line); }
  .card h2, .card h3 { margin-top: 42px; }
  .fact { grid-template-columns: 1fr; gap: 8px; }
  .fact dt { padding-top: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { margin-top: 55px; flex-direction: column; gap: 12px; }
}
