:root {
  color-scheme: dark;
  --bg: #100d17;
  --ink: #faf6ff;
  --muted: #c9c0d2;
  --accent: #d6b9ff;
  --line: #dbc0ff31;
  --glide: cubic-bezier(.2, .72, .24, 1);
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --sans: "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 88px);
  --header: 72px;
  --radius: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 22px); }
body { margin: 0; isolation: isolate; color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
#contenu:focus { outline: 0; }
::selection { background: var(--accent); color: #21142d; }
p, h1, h2, h3, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: min(1312px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: fixed; z-index: 10; inset: 12px auto auto 12px; padding: 12px; color: #21142d; background: var(--accent); clip-path: inset(50%); }
.skip:focus { clip-path: none; }

.site-header { position: sticky; top: 0; z-index: 5; padding-top: env(safe-area-inset-top); background: #100d17c7; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: calc(var(--header) - 1px); display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.brand { display: flex; justify-self: start; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.brand-icon { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #d6b9ff49; background: #d6b9ff18; color: var(--accent); border-radius: 10px; }
.brand-icon svg { width: 22px; height: 22px; }
.brand small { display: block; color: var(--muted); font: 9px var(--mono); text-transform: uppercase; letter-spacing: .12em; margin-top: 3px; }
.chapter-nav { display: flex; align-items: center; gap: 4px; padding: 4px; background: #1c1427bc; border: 1px solid var(--line); border-radius: 100px; }
.chapter-nav a { position: relative; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 100px; min-height: 44px; color: var(--muted); font-size: 12px; transition: color .2s, background .25s; }
.chapter-nav a .icon { display: none; }
.chapter-nav a:hover { color: var(--ink); }
.chapter-nav a[aria-current] { color: var(--ink); background: #d6b9ff24; }
.header-link { display: inline-flex; justify-self: end; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 12px; font-weight: 650; }
.header-link:hover { border-color: var(--accent); }
.header-link .icon { width: 14px; height: 14px; }
.reading-progress { position: absolute; inset: auto 0 -1px; height: 2px; background: linear-gradient(90deg, #8e63ce, #e6ceff); transform: scaleX(0); transform-origin: left; pointer-events: none; }

.hero { display: grid; align-content: center; position: relative; min-height: calc(100svh - var(--header)); padding-block: clamp(42px, 6svh, 80px) clamp(100px, 13svh, 155px); }
.hero-copy { width: min(100%, 680px); }
.eyebrow, .scroll-cue, .hero-annotation { display: flex; align-items: center; gap: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font: 11px/1.45 var(--mono); letter-spacing: .105em; }
.eyebrow i { width: 6px; height: 6px; flex: none; background: var(--accent); border-radius: 50%; }
.hero-kicker span { width: 20px; height: 1px; background: #d6b9ff7c; }
.hero h1 { margin: clamp(16px, 2vw, 27px) 0 20px -.06em; font-size: clamp(82px, min(13.7vw, 18svh), 184px); font-weight: 730; line-height: .81; letter-spacing: -.07em; }
.hero-line { display: block; overflow: hidden; padding: .07em .09em; margin: -.07em -.09em; }
.hero-line > span { display: block; }
.hero-line + .hero-line { margin-top: -.014em; }
.hero-line b, h2 span { color: var(--accent); font-weight: inherit; }
.hero-role { font-size: clamp(20px, 2.9vw, 36px); font-weight: 650; letter-spacing: -.048em; }
.hero-description { max-width: 41ch; margin-block: 10px 23px; color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.56; }
.button { width: fit-content; max-width: 100%; display: inline-flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 46px; padding: 11px 14px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 700; line-height: 1.25; transition: background .25s, color .25s, border-color .25s; }
.button.primary { background: var(--accent); color: #21142d; }
.button.primary:hover { background: #eddbff; }
.button.secondary { background: #c29af01b; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { border-color: var(--accent); background: #c29af030; }
.button .icon { transition: translate .24s var(--glide); }
.button:hover .icon { translate: 2px -1px; }
.hero-annotation { position: absolute; top: 43%; right: 0; gap: 10px; width: min(33%, 400px); justify-content: end; }
.hero-annotation > span:first-child { width: 100%; height: 1px; background: linear-gradient(90deg, #d7baff09, #d7baff80); }
.hero-annotation i { width: 9px; height: 9px; flex: none; border: 1px solid var(--accent); border-radius: 50%; box-shadow: 0 0 15px #d7baff88; }
.hero-annotation > span:last-child { white-space: nowrap; padding: 8px 10px; background: #181022bd; border: 1px solid var(--line); border-radius: 7px; }
.hero-annotation b { display: block; font: inherit; color: var(--ink); }
.hero-footer { position: absolute; inset: auto 0 20px; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.scroll-cue { min-height: 44px; }
.scroll-cue:hover { color: var(--ink); }
.scroll-cue .icon { width: 15px; height: 15px; color: var(--accent); }

.metrics dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 17px; background: #1b1426c7; overflow: hidden; }
.metrics dl > div { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 21px clamp(12px, 2.4vw, 32px); }
.metrics dl > div + div { border-left: 1px solid var(--line); }
.metrics dt { color: var(--muted); font-size: 13px; line-height: 1.3; }
.metrics dd { order: -1; white-space: nowrap; font-size: clamp(24px, 3.55vw, 48px); letter-spacing: -.055em; line-height: 1; font-weight: 700; }
.metrics dd span { color: var(--accent); font-size: .72em; margin-left: 2px; }

.chapter { padding-block: clamp(69px, 9vw, 133px); }
.chapter-heading, .contact-row { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.chapter-heading { margin-bottom: clamp(24px, 4vw, 44px); }
.chapter-heading > p, .contact-row p, .about-copy > p + p { max-width: 37ch; color: var(--muted); font-size: 16px; line-height: 1.6; }
h2 { margin-top: 13px; font-size: clamp(49px, 7.3vw, 106px); letter-spacing: -.064em; line-height: .93; }

.project-explorer { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(10px, 2vw, 22px); background: linear-gradient(145deg, #24182eea, #130e1af5 77%); box-shadow: 0 30px 90px #08050c65; }
.project-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: clamp(13px, 2.5vw, 23px); }
.project-tabs button { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; text-align: left; align-items: center; gap: 9px; min-height: 52px; background: #d6b9ff0c; border: 1px solid var(--line); border-radius: 11px; padding: 8px 11px; cursor: pointer; transition: background .25s, border-color .25s; }
.project-tabs button:hover { background: #d6b9ff1f; }
.project-tabs button[aria-selected="true"] { border-color: #d6b9ff90; background: #d6b9ff28; }
.project-tabs button span { color: var(--accent); font: 10px var(--mono); }
.project-tabs button strong { font-size: clamp(13px, 1.6vw, 17px); line-height: 1.15; }
.project-tabs button .icon { color: var(--accent); }
.project-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3vw, 50px); align-items: stretch; }
.project-panel + .project-panel { margin-top: 18px; }
.project-tabs:not([hidden]) ~ .project-panel { margin-top: 0; }
.project-info { display: flex; flex-direction: column; align-items: start; padding: clamp(8px, 2.4vw, 29px); }
.project-info h3 { margin: 12px 0 10px; font-size: clamp(33px, 4.7vw, 66px); line-height: .98; letter-spacing: -.068em; overflow-wrap: anywhere; }
.project-info > p:not(.eyebrow) { max-width: 47ch; color: var(--muted); line-height: 1.56; padding-bottom: 19px; }
.project-info .button { margin-top: auto; }
.project-signal { --tone: #cfb5ff; display: grid; align-content: space-between; gap: 24px; min-width: 0; min-height: clamp(232px, 25vw, 360px); border: 1px solid #d6b9ff37; border-radius: 16px; padding: clamp(13px, 2.4vw, 29px); background: radial-gradient(ellipse at 88% 15%, #8d5bb64a, transparent 73%), linear-gradient(90deg, #d2b4ff16 1px, transparent 1px), linear-gradient(#d2b4ff16 1px, transparent 1px), #1b1226; background-size: auto, 22px 22px, 22px 22px, auto; }
.project-data .project-signal { --tone: #f2bfff; background-color: #241226; }
.project-macscope .project-signal { --tone: #b9d8ff; background-color: #141c2b; }
.project-signal .eyebrow { color: var(--tone); }
.project-number { font-size: clamp(39px, 6.7vw, 96px); white-space: nowrap; letter-spacing: -.075em; line-height: .9; font-weight: 720; }
.project-number > span { color: var(--tone); font-size: .66em; }
.project-number small { display: block; font: 12px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 9px; }
.flow { --flow-gap: clamp(7px, 1.25vw, 18px); list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--flow-gap); }
.flow li { position: relative; display: flex; justify-content: center; align-items: center; gap: 4px; padding: 8px 3px; border: 1px solid #dec4ff50; border-radius: 6px; background: #1e142a; color: var(--tone); font: 11px/1.2 var(--mono); text-align: center; }
.flow li::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 100%; top: 50%; width: var(--flow-gap); height: 1px; background: var(--tone); opacity: .55; transform-origin: left; }

.about { background: #1b1326bd; border-block: 1px solid var(--line); }
.about-inner { display: grid; grid-template-columns: .85fr 1fr; align-items: start; gap: clamp(23px, 7vw, 100px); }
.lead { font-size: clamp(23px, 3.2vw, 43px); line-height: 1.12; font-weight: 600; letter-spacing: -.045em; }
.about-copy > p + p { margin-top: 16px; }
.stack { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.stack ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.stack li { font: 11px var(--mono); background: #dec4ff14; border: 1px solid var(--line); padding: 7px 9px; border-radius: 6px; }
.contact-panel { border-block: 1px solid var(--line); padding-block: clamp(24px, 5vw, 68px); }
.contact-row p { margin-top: 12px; }
.contact-row .button { flex: none; }
.site-footer { background: #100d17d9; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 65px; font: 11px/1.4 var(--mono); color: var(--muted); }
.footer-inner a { display: flex; align-items: center; gap: 4px; padding-block: 12px; }
.footer-inner .icon { width: 14px; height: 14px; }

@media (max-width: 850px) {
  .hero-annotation { right: 0; top: 25%; }
  .hero-annotation > span:first-child { display: none; }
  .project-signal { padding: 14px; }
  .flow li { font-size: 10px; }
}
@media (min-width: 681px) and (max-height: 540px) {
  .hero { padding-block: 26px 72px; }
  .hero h1 { display: flex; flex-wrap: wrap; gap: .17em; font-size: clamp(58px, 14svh, 94px); margin-block: 14px; }
  .hero-line + .hero-line { margin-top: -.07em; }
  .hero-annotation { display: none; }
  .hero-footer { bottom: 7px; }
}
@media (max-width: 680px) {
  :root { --header: 56px; --radius: 17px; }
  html { scroll-padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .site-header { backdrop-filter: none; background: #100d17f5; }
  .header-inner { grid-template-columns: 1fr auto; }
  .brand-icon { width: 34px; height: 34px; }
  .brand small { display: none; }
  .chapter-nav { position: fixed; inset: auto max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; border-radius: 15px; padding: 4px; background: #21172ff5; box-shadow: 0 9px 24px #07030bbf; }
  .chapter-nav a { flex-direction: column; gap: 4px; border-radius: 11px; padding: 5px 1px; min-height: 48px; font-size: 10px; }
  .chapter-nav a .icon { display: block; width: 16px; height: 16px; }
  .hero { min-height: calc(100svh - var(--header) - 69px - env(safe-area-inset-bottom)); padding-block: clamp(57px, 12svh, 115px) 80px; }
  .hero h1 { font-size: clamp(67px, min(21vw, 15svh), 126px); margin-block: 17px 16px; }
  .hero-role { font-size: clamp(19px, 5.4vw, 32px); }
  .hero-description { margin-block: 8px 17px; }
  .hero-annotation { display: none; }
  .hero-footer { bottom: 8px; }
  .metrics dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics dl > div { padding: 14px 10px; }
  .metrics dl > div:nth-child(3) { border-left: 0; }
  .metrics dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .metrics dt { font-size: 12px; }
  .metrics dd { font-size: clamp(27px, 8.3vw, 41px); }
  .chapter-heading, .contact-row { flex-direction: column; align-items: start; gap: 12px; }
  h2 { font-size: clamp(41px, 10.6vw, 66px); margin-top: 9px; }
  .project-panel, .about-inner { grid-template-columns: minmax(0, 1fr); }
  .project-signal { min-height: 176px; gap: 17px; }
  .project-number { font-size: clamp(42px, 12vw, 70px); }
}
@media (max-width: 440px) {
  .project-tabs button { gap: 5px; padding-inline: 7px; grid-template-columns: auto minmax(0, 1fr); }
  .project-tabs button .icon { display: none; }
}
@media (max-width: 380px) {
  .flow li::before { display: none; }
}
