/* SMACSS · Modules: self-contained components. */
.eyebrow {
  font: 500 0.8rem/1.7 var(--font);
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 22px;
}
.meta {
  font-size: 0.8rem;
  color: var(--muted);
}
.identity {
  display: flex;
  align-items: center;
  gap: 25px;
  text-decoration: none;
}
.wordmark {
  font: 600 3.1rem/1 var(--serif);
  letter-spacing: -0.07em;
  text-decoration: none;
}
.wordmark > span {
  color: var(--accent);
}
.identity-caption {
  font: 400 0.8rem/1.7 var(--font);
  letter-spacing: 0.04em;
}
.l-nav a,
.header-contact {
  font-size: 0.875rem;
  text-decoration: none;
}
.l-nav a:hover,
.text-link:hover {
  color: var(--accent);
}
.header-end {
  display: flex;
  align-items: center;
  gap: 18px;
}
.theme-menu {
  position: relative;
  font-size: 0.875rem;
}
.theme-menu summary {
  list-style: none;
  padding: 8px 4px;
}
.theme-menu summary::-webkit-details-marker {
  display: none;
}
.theme-menu summary::after {
  content: " ▾";
  color: var(--accent);
}
.theme-menu ul {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
  min-width: 190px;
  margin: 8px 0 0;
  padding: 8px 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.theme-menu a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
}
.theme-menu a:hover {
  color: var(--accent);
  background: var(--raised);
}
.header-contact {
  border: 1px solid var(--line);
  padding: 8px 19px;
  border-radius: var(--radius);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding-block: 25px;
}
.hero-intro {
  margin-top: 30px;
  max-width: 450px;
}
.hero-note {
  max-width: 430px;
  margin-top: 17px;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 20px;
  min-height: 46px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.button-primary {
  color: var(--button-ink);
  background: var(--button);
  border-color: var(--button);
}
.button-primary:hover {
  background-color: var(--button-hover);
}
.button-outline {
  border-color: var(--line);
  margin-top: 28px;
}
.button-outline:hover {
  background: var(--raised);
  border-color: var(--accent);
}
.text-link {
  font-size: 0.875rem;
}
.hero-footnote {
  margin-top: 30px;
  font: italic 1.15rem/1.6 var(--serif);
  color: var(--muted);
}
.artwork {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 550px;
  margin-inline: auto;
  align-self: stretch;
}
.art-surround {
  width: 100%;
  max-width: 550px;
  margin-inline: auto;
  aspect-ratio: 10/13;
  position: relative;
  background: var(--frame-night);
  box-shadow: 0 28px 70px var(--shadow-deep), 0 4px 12px var(--shadow);
  isolation: isolate;
}
.art-stage {
  position: absolute;
  /* L'ouverture du SVG conserve les proportions 416 × 520 du portrait. */
  inset: 5.128205% 6.666667% 11.538462%;
  overflow: hidden;
  background: var(--art-bg);
}
.art-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 3px 14px 4px var(--art-shadow);
  pointer-events: none;
  z-index: 2;
}
.art-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
.frame-stop--light { stop-color: var(--frame-light); }
.frame-stop--bronze { stop-color: var(--frame-bronze); }
.frame-stop--shade { stop-color: var(--frame-shade); }
.frame-stop--wood-lit { stop-color: var(--frame-wood-lit); }
.frame-stop--wood { stop-color: var(--frame-wood); }
.frame-stop--night { stop-color: var(--frame-night); }
.frame-timber { fill: url(#countess-wood); }
.frame-grain { fill: url(#countess-toolmarks); }
.frame-toolmark { fill: none; stroke: var(--frame-grain); stroke-width: .6; }
.frame-outer-lip { stroke: url(#countess-bronze); stroke-width: 5; }
.frame-outer-light { stroke: var(--frame-shade); stroke-width: 1; }
.frame-groove { stroke: var(--frame-night); stroke-width: 4; }
.frame-fillet { stroke: var(--frame-bronze); stroke-width: 1; opacity: .6; }
.frame-inner-shadow { stroke: var(--frame-night); stroke-width: 6; }
.frame-inner-lip { stroke: url(#countess-bronze); stroke-width: 3; }
.frame-inner-light { stroke: var(--frame-light); stroke-width: .7; opacity: .65; }
.frame-join { stroke: var(--frame-night); stroke-width: 1; }
.frame-ornament { fill: url(#countess-bronze); stroke: var(--frame-night); stroke-width: 1.2; }
.frame-relief { fill: none; stroke: var(--frame-light); stroke-width: .65; opacity: .65; }
.frame-recess { fill: var(--frame-night); }
.frame-rivet { fill: var(--frame-bronze); stroke: var(--frame-light); stroke-width: .5; }
.frame-incision { fill: none; stroke: var(--frame-patina); stroke-width: .7; opacity: .7; }
.frame-gem { fill: var(--frame-blood); stroke: var(--frame-bronze); stroke-width: 1; }
.frame-gem-light { fill: none; stroke: var(--frame-blood-light); stroke-width: 1; }
.frame-plaque { fill: var(--frame-plaque); stroke: var(--frame-shade); stroke-width: 1; }
.frame-plaque-edge { fill: none; stroke: var(--frame-bronze); stroke-width: .6; }
.art-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: pan-y;
}
.art-edition {
  position: absolute;
  top: 94.070513%;
  left: 50%;
  transform: translate(-50%, -50%);
  font: 400 clamp(.625rem, .9vw, .75rem)/1.5 var(--font);
  letter-spacing: .08em;
  white-space: nowrap;
  color: var(--frame-plaque-ink);
  pointer-events: none;
  z-index: 4;
}
.artwork figcaption {
  padding-top: 18px;
}
.art-caption {
  display: flex;
  flex-direction: column;
}
.art-caption .eyebrow {
  font-size: 0.75rem;
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.art-title {
  font: 400 1.7rem/1.4 var(--serif);
  margin-top: 3px;
}
.artwork figcaption > p:not(.sr-only) {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 5px;
}
.art-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.art-controls button {
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 12px;
  min-height: 38px;
}
.art-controls button:hover {
  border-color: var(--accent);
  background: var(--raised);
}
.artwork .art-credit {
  font-size: 0.75rem;
  max-width: 50ch;
  margin-top: 12px !important;
}
.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.filters {
  display: flex;
  gap: 5px;
}
.filters button {
  color: var(--muted);
  font-size: 0.875rem;
  min-height: 42px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
}
.filters button:hover {
  color: var(--ink);
  border-color: var(--line);
}
.section-intro {
  margin-top: 25px;
  color: var(--muted);
}
.transmission {
  background: linear-gradient(100deg, var(--transmission-wash), var(--transmission-bg));
}
.transmission .l-section {
  border-top: 0;
}
.large-number {
  font: 400 6.2rem/1 var(--serif);
  color: var(--accent);
}
.transmission-detail > p,
.transmission-detail #ai-description > p {
  color: var(--muted);
  margin: 15px 0;
}
.transmission-detail > p:first-of-type {
  color: var(--ink);
}
.transmission-detail hr {
  margin: 30px 0;
}
.timeline-date {
  font: 400 0.75rem/1.8 var(--font);
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 5px;
}
.timeline-company {
  font: 400 2rem/1.3 var(--serif);
}
.timeline-role {
  margin-top: 4px;
}
.timeline-context {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 7px 0 17px;
}
.timeline-description {
  color: var(--muted);
}
.experience-details {
  margin-top: 17px;
}
.experience-details summary,
.stack-details summary {
  font-size: 0.875rem;
  color: var(--accent);
  padding: 8px 0;
}
.experience-details ul {
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.925rem;
}
.experience-details li + li {
  margin-top: 9px;
}
.timeline-projects {
  font: 400 0.75rem/1.7 var(--font);
  color: var(--gold);
  margin-top: 17px;
}
.education-item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.education-item h3 {
  font-size: 1.05rem;
  margin-bottom: 9px;
}
.education-item p {
  font-size: 0.875rem;
  color: var(--muted);
}
.stack-details {
  margin-top: 22px;
  border: 1px solid var(--line);
  padding: 15px 22px;
  border-radius: var(--radius);
}
.stack-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding: 20px 0;
}
.stack-list h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.stack-list p {
  font-size: 0.875rem;
  color: var(--muted);
}
.personal-notes {
  padding-top: 8px;
}
.personal-notes article {
  display: flex;
  gap: 25px;
  margin: 25px 0 35px;
}
.personal-notes h3 {
  font: 400 1.8rem/1.2 var(--serif);
}
.personal-notes p {
  color: var(--muted);
  font-size: 0.925rem;
  margin-top: 12px;
}
.note-symbol {
  color: var(--gold);
  font: 400 3.5rem/1 var(--serif);
  min-width: 60px;
  text-align: center;
}
.note-code {
  font: 400 1.4rem var(--mono);
  padding-top: 10px;
}
.personal-notes .personal-aside {
  font: italic 1.2rem/1.6 var(--serif);
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.terminal {
  border: 1px solid var(--terminal-edge);
  background: var(--terminal-bg);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 20px 65px var(--shadow-soft);
}
.terminal-bar {
  background: var(--terminal-bar);
  padding: 12px 21px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font: 400 0.8rem/1.6 var(--mono);
}
.terminal-status {
  color: var(--muted);
}
.terminal-output {
  height: 340px;
  overflow-y: auto;
  padding: 22px;
  font: 400 0.9rem/1.85 var(--mono);
  scroll-behavior: auto;
  overflow-wrap: anywhere;
  scrollbar-color: var(--terminal-edge) var(--scroll-track);
}
.terminal-entry {
  white-space: pre-wrap;
  margin-bottom: 14px;
}
.terminal-command {
  color: var(--accent);
  margin-bottom: 8px;
}
.terminal-text {
  color: var(--terminal-text);
  white-space: pre-wrap;
}
.terminal-text a {
  color: var(--gold);
}
.terminal-form {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  font: 400 0.9rem/1.7 var(--mono);
}
.terminal-form label {
  color: var(--accent);
  flex-shrink: 0;
}
.terminal-form input {
  background: none;
  border: 0;
  outline-offset: 1px;
  min-width: 0;
  flex: 1;
  min-height: 42px;
  border-radius: 2px;
}
.terminal-form button {
  padding: 6px 12px;
  font-size: 0.8rem;
  border: 1px solid var(--terminal-edge);
  border-radius: var(--radius);
  min-height: 38px;
}
.terminal-shortcuts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 13px;
}
.terminal-shortcuts button {
  font: 400 0.8rem/1.6 var(--mono);
  border: 1px solid var(--edge);
  padding: 7px 13px;
  border-radius: var(--radius);
}
.terminal-shortcuts button:hover {
  background: var(--raised);
}
code {
  font-family: var(--mono);
  color: var(--accent);
}
.contact-section {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 90% 70%, var(--contact-glow), transparent 65%), var(--contact-bg);
}
.contact-content {
  padding-block: 75px;
}
.contact-content > p:not(.eyebrow) {
  margin-top: 25px;
  color: var(--muted);
}
.contact-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.l-footer .wordmark {
  font-size: 2.2rem;
}
.l-footer button {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.dialog-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  padding: 0;
  line-height: 1;
}
.dialog-close svg { display: block; width: 18px; height: 18px; }
.dialog-body h2 {
  font-size: 2.7rem;
  margin: 10px 0 22px;
}
.dialog-body p {
  color: var(--muted);
}
.dialog-body h3 {
  font-size: 1.1rem;
  margin: 25px 0 10px;
}
.dialog-body .button {
  margin-top: 28px;
}
.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.tags span {
  font-size: 0.75rem;
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 3px;
}
.familiar {
  position: fixed;
  right: 22px;
  bottom: 14px;
  z-index: 10;
  max-width: calc(100vw - 32px);
}
.familiar-toggle {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 112px;
  padding: 0;
  margin-left: auto;
  position: relative;
}
.familiar-toggle img {
  width: 100%;
  height: 114px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px var(--shadow));
  transform-origin: 50% 90%;
  transition: transform var(--duration) var(--ease);
}
.familiar-toggle:hover img {
  transform: rotate(-6deg);
}
.familiar-toggle > span {
  font: 400 0.75rem/1.5 var(--font);
  background: var(--surface);
  border: 1px solid var(--familiar-edge);
  padding: 3px 11px;
  border-radius: 20px;
  margin-top: -4px;
}
.familiar-panel {
  width: 320px;
  max-width: 100%;
  max-height: min(520px, 70dvh);
  overflow: auto;
  border: 1px solid var(--familiar-edge);
  background: var(--familiar-bg);
  box-shadow: 0 20px 70px var(--shadow-deep);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 5px;
}
.familiar-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
}
.familiar-panel-header h2 {
  font-size: 1.8rem;
  letter-spacing: 0;
}
.familiar-panel-header button {
  font-size: 1.5rem;
  min-width: 36px;
  min-height: 36px;
}
.familiar-panel > p {
  font-size: 0.875rem;
  min-height: 70px;
}
.familiar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.familiar-actions button {
  text-align: left;
  font-size: 0.8rem;
  padding: 8px 11px;
  min-height: 40px;
  border: 1px solid var(--terminal-edge);
  border-radius: var(--radius);
}
.familiar-actions button:hover {
  background: var(--familiar-hover);
}
.familiar-hide {
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: underline;
  min-height: 40px;
  margin-top: 10px;
  padding: 5px 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  background: var(--button);
  color: var(--button-ink);
  padding: 10px 15px;
  transform: translateY(-180%);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
/* Cathedral light and particles share the image's camera transform. */
.cathedral-world,
.cathedral-atmosphere,
.cathedral-dust,
.cathedral-vignette,
.cathedral-shadow,
.cathedral-aura {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cathedral-world {
  overflow: hidden;
  background: var(--scene-void);
}
.cathedral-image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform-origin: 50% 34%;
  transform: translate3d(var(--look-x), var(--look-y), 0) scale(calc(1.045 + var(--p) * 0.16 + var(--breath-zoom, 0)));
  filter: saturate(0.66) brightness(calc(0.65 + var(--awakening) * 0.16));
}
.cathedral-atmosphere {
  mix-blend-mode: screen;
}
.cathedral-aura {
  background: radial-gradient(ellipse 30% 38% at 50% 32%, color-mix(in srgb, var(--scene-ember) 20%, transparent), transparent);
  opacity: calc((0.18 + var(--awakening) * 0.65) * var(--breath, 1));
  mix-blend-mode: screen;
}
.cathedral-shadow {
  background: radial-gradient(ellipse 47% 70% at 12% 17%, var(--scene-void), transparent 85%),
    radial-gradient(ellipse 36% 62% at 88% 26%, var(--scene-void), transparent 86%);
  opacity: var(--shadow-density, .42);
  transform: translate3d(var(--shadow-x, 0px), 0, 0) scale(1.08);
}
.cathedral-vignette {
  background:
    linear-gradient(var(--bg), transparent 20%, transparent 60%, color-mix(in srgb, var(--scene-void) 82%, transparent) 89%, var(--surface)),
    linear-gradient(90deg, color-mix(in srgb, var(--scene-void) 48%, transparent), transparent 32%, transparent 68%, color-mix(in srgb, var(--scene-void) 48%, transparent));
}
.cathedral-heading {
  position: absolute;
  top: clamp(42px, 7svh, 80px);
  left: max(5%, calc((100% - 1280px) / 2));
  right: 5%;
  display: flex;
  align-items: center;
  gap: 22px;
  pointer-events: none;
  text-shadow: 0 2px 22px var(--scene-void);
}
.cathedral-index {
  display: grid;
  place-items: center;
  width: 48px;
  height: 76px;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  border-radius: 48% 48% 0 0;
  color: var(--gold);
  font: 400 1.7rem var(--serif);
}
.cathedral-heading .eyebrow {
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}
.cathedral-heading h2 {
  font-size: clamp(2.8rem, 4.4vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.cathedral-dedication {
  color: var(--ink);
  font: italic 1rem/1.5 var(--serif);
  margin-top: 9px;
}
.cathedral-depth {
  position: absolute;
  right: max(5%, calc((100% - 1280px) / 2));
  top: 39%;
  bottom: 27%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  color: var(--gold);
  font-size: 0.57rem;
  letter-spacing: 0.2em;
  pointer-events: none;
}
.cathedral-depth i {
  position: relative;
  width: 1px;
  flex: 1;
  background: color-mix(in srgb, var(--gold) 28%, transparent);
}
.cathedral-depth b {
  position: absolute;
  top: calc(var(--p) * 100%);
  left: -2px;
  width: 5px;
  height: 5px;
  rotate: 45deg;
  background: var(--gold);
  box-shadow: 0 0 14px var(--scene-ember);
}
.cathedral-footer {
  position: absolute;
  bottom: clamp(32px, 7svh, 74px);
  left: max(5%, calc((100% - 1280px) / 2));
  right: max(5%, calc((100% - 1280px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cathedral-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cathedral-controls button {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--cathedral-border);
  background: var(--cathedral-control);
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.cathedral-awaken span {
  color: var(--gold);
  font-size: 1.2rem;
  margin-right: 9px;
}
.cathedral-continue {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 46px;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: 110px;
}
.cathedral-continue span {
  color: var(--gold);
  font-size: 1.5rem;
}
@media (max-width: 650px) {
  .cathedral-heading {
    top: 38px;
    gap: 14px;
  }
  .cathedral-index {
    width: 34px;
    height: 61px;
    font-size: 1.3rem;
    flex-shrink: 0;
  }
  .cathedral-heading .eyebrow {
    font-size: 0.52rem;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
  }
  .cathedral-heading h2 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  .cathedral-dedication {
    font-size: 0.9rem;
  }
  .cathedral-depth {
    display: none;
  }
  .cathedral-footer {
    bottom: 30px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .cathedral-controls {
    width: 100%;
    gap: 8px;
  }
  .cathedral-controls button {
    padding-inline: 14px;
    font-size: 0.75rem;
  }
  .cathedral-continue {
    align-self: flex-start;
    min-height: 44px;
    margin-right: 0;
  }
}
@media (max-width: 400px) {
  .header-end {
    gap: 8px;
  }
}
/* Scenes of passage. scenes.js writes --p (0 to 1) on the stage; every plane derives its
   transform from it. Only transform and opacity change, so the SVG is rasterised once. */
.scene {
  position: relative;
  background: var(--scene-void);
}
.scene + .l-section {
  border-top: 0;
}
.scene--cathedrale {
  --anchor: 0.5;
  --travel: 60svh;
  --lift: -20svh;
  --zoom: 0.2;
}
.scene--remparts {
  --anchor: 1;
  --travel: 32svh;
  --lift: 0svh;
  --zoom: 0;
}
.scene--remparts .l-scene-stage {
  --open: clamp(0, (var(--p) - 0.6) * 3.4, 1);
}
.scene-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.scene-layer,
.scene-fog,
.scene-edge {
  --shift-from: calc((0 - var(--anchor)) * (var(--depth) * var(--travel) + var(--lift)));
  --shift-to: calc((1 - var(--anchor)) * (var(--depth) * var(--travel) + var(--lift)));
  --shift: calc(
    (var(--p) - var(--anchor)) * (var(--depth) * var(--travel) + var(--lift))
  );
  --scale: calc(1 + (var(--p) - var(--anchor)) * var(--depth) * var(--zoom));
  position: absolute;
}
/* Each plane keeps the 16:10 ratio of its viewBox and covers the stage, so the glows placed
   in % of the plane stay on their SVG. Content past the viewBox fills the travel margin. */
.scene-layer {
  left: 50%;
  top: 50%;
  width: max(100%, 160svh);
  aspect-ratio: 16 / 10;
  transform: translate3d(-50%, calc(-50% + var(--shift)), 0) scale(var(--scale));
}
.scene-layer svg {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  overflow: visible;
}
.scene-fog {
  inset: -12% -5%;
  transform: translate3d(0, var(--shift), 0);
}
.scene-fog--low {
  background: linear-gradient(
    transparent 50%,
    color-mix(in srgb, var(--scene-haze) 45%, transparent) 64%,
    color-mix(in srgb, var(--scene-blood) 14%, transparent) 71%,
    transparent 84%
  );
}
.scene-fog--mid {
  background: linear-gradient(
    transparent 58%,
    color-mix(in srgb, var(--scene-haze) 55%, transparent) 76%,
    transparent 94%
  );
}
.scene-fog--cold {
  background: linear-gradient(
    transparent 44%,
    color-mix(in srgb, var(--scene-mist) 60%, transparent) 60%,
    transparent 74%
  );
}
.scene-fog--smoke {
  background:
    radial-gradient(
      ellipse 40% 12% at 22% 66%,
      color-mix(in srgb, var(--scene-ember) 14%, transparent),
      transparent
    ),
    radial-gradient(
      ellipse 40% 12% at 80% 66%,
      color-mix(in srgb, var(--scene-ember) 12%, transparent),
      transparent
    ),
    linear-gradient(
      transparent 56%,
      color-mix(in srgb, var(--scene-mist) 45%, transparent) 68%,
      transparent 80%
    );
}
.scene-edge {
  top: -40%;
  bottom: -40%;
  width: clamp(44px, 10vw, 190px);
  transform: translate3d(
      calc(var(--side) * (var(--p) - var(--anchor)) * 70%),
      var(--shift),
      0
    )
    scale(var(--scale));
}
.scene-edge svg {
  display: block;
  width: 100%;
  height: 100%;
}
.scene-edge--left {
  --side: -1;
  left: 0;
}
.scene-edge--right {
  --side: 1;
  right: 0;
}
.scene-edge--right svg {
  transform: scaleX(-1);
}
.scene-glow {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--scene-flame) 70%, transparent),
    color-mix(in srgb, var(--scene-ember) 30%, transparent) 30%,
    color-mix(in srgb, var(--scene-blood) 12%, transparent) 60%,
    transparent
  );
  mix-blend-mode: screen;
  animation: scene-flicker calc(var(--d, 2.4s) * 2.5) ease-in-out infinite alternate;
}
.scene-glow--fire {
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--scene-flame) 80%, transparent),
    color-mix(in srgb, var(--scene-ember) 45%, transparent) 25%,
    color-mix(in srgb, var(--scene-blood) 18%, transparent) 55%,
    transparent
  );
}
/* The rose window's bloom peaks when the camera passes under it (p ≈ 0.45). */
.scene-glow--rose {
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--scene-glass) 55%, transparent),
    color-mix(in srgb, var(--scene-blood) 30%, transparent) 40%,
    transparent
  );
  animation: none;
  opacity: calc(1 - max(var(--p) - 0.45, 0.45 - var(--p)) * 1.3);
}
.scene-glow--floor {
  aspect-ratio: 3.2;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--scene-glass) 16%, transparent),
    transparent
  );
  animation: none;
}
.scene-beams {
  mix-blend-mode: screen;
  opacity: calc(0.95 - max(var(--p) - 0.45, 0.45 - var(--p)) * 1.2);
}
.scene-layer--rim {
  mix-blend-mode: screen;
  opacity: var(--open);
}
.scene-banner {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  translate: -50% 0;
  transform-origin: 50% 0;
  animation: scene-sway calc(var(--d) * 1.5) ease-in-out infinite alternate;
}
.scene-banner svg {
  display: block;
  width: 100%;
  height: 100%;
}
.scene-portal {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  translate: -50% -50%;
}
.scene-portal__glow {
  position: absolute;
  inset: -110% -260%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--scene-portal) 60%, transparent),
    color-mix(in srgb, var(--scene-blood) 35%, transparent) 35%,
    transparent
  );
  mix-blend-mode: screen;
  opacity: var(--open);
}
.scene-portal__rift {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 49% 49% 46% 46%;
  background:
    radial-gradient(ellipse at 50% 92%, var(--scene-portal-core), transparent 28%),
    radial-gradient(ellipse at 50% 58%, var(--scene-portal-dark) 28%, var(--scene-blood) 56%, var(--scene-portal) 77%, var(--scene-portal-core) 91%, transparent 99%);
  box-shadow: 0 0 16px var(--scene-portal), inset 0 0 18px var(--scene-portal);
  transform: scale(var(--open));
  opacity: min(1, calc(var(--open) * 4));
}
.scene-portal__swirl {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 14% 42% at 31% 28%, color-mix(in srgb, var(--scene-portal-core) 50%, transparent), transparent 75%),
    radial-gradient(ellipse 22% 40% at 72% 67%, var(--scene-portal), transparent 70%),
    conic-gradient(from 35deg, transparent 12%, color-mix(in srgb, var(--scene-portal) 60%, transparent) 24%, transparent 35% 55%, color-mix(in srgb, var(--scene-rim) 60%, transparent) 72%, transparent 89%);
  mix-blend-mode: screen;
  animation: scene-turn 48s linear infinite;
}
.scene-portal__veil {
  position: absolute;
  inset: 8% 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 42%, var(--scene-night), color-mix(in srgb, var(--scene-portal-dark) 85%, transparent) 40%, transparent 72%);
}
.scene-portal__rift::before,
.scene-portal__rift::after {
  content: "";
  position: absolute;
  inset: 2% 4%;
  border: 1px solid color-mix(in srgb, var(--scene-portal-core) 65%, transparent);
  border-radius: 48% 52% 44% 47%;
  box-shadow: 0 0 7px var(--scene-portal), inset 0 0 8px var(--scene-rim);
  rotate: -4deg;
}
.scene-portal__rift::after {
  inset: 5% 2% 3% 7%;
  rotate: 5deg;
  opacity: .45;
}
.scene--remparts .scene-glow--fire {
  opacity: .8;
}
.scene-portal > svg {
  position: absolute;
  inset: -9% -12%;
  width: 124%;
  height: 118%;
  opacity: var(--open);
}
.scene-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scene-light {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--bg), transparent 16%, transparent 78%, var(--surface)),
    radial-gradient(
      ellipse 85% 80% at 50% 45%,
      transparent 50%,
      color-mix(in srgb, var(--scene-void) 80%, transparent)
    );
}
.scene--remparts .scene-light {
  background:
    linear-gradient(var(--bg), transparent 16%),
    radial-gradient(
      ellipse 85% 80% at 50% 45%,
      transparent 50%,
      color-mix(in srgb, var(--scene-void) 70%, transparent)
    );
}
/* The portal's light floods the bottom edge, then .scene-spill carries it under the terminal. */
.scene--remparts .scene-light::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(
    transparent,
    color-mix(in srgb, var(--scene-blood) 30%, transparent) 60%,
    color-mix(in srgb, var(--scene-portal) 23%, transparent)
  );
  mix-blend-mode: screen;
  opacity: var(--open);
}
.scene-spill {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 90svh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 75% 60% at 50% 0,
      color-mix(in srgb, var(--scene-portal) 26%, transparent),
      color-mix(in srgb, var(--scene-blood) 16%, transparent) 45%,
      transparent
    ),
    linear-gradient(
      color-mix(in srgb, var(--scene-blood) 30%, transparent),
      transparent 55%
    );
}
.scene-caption {
  position: absolute;
  z-index: 1;
  left: max(5%, calc((100% - 1280px) / 2));
  bottom: clamp(26px, 7svh, 64px);
  display: flex;
  flex-direction: column;
  max-width: min(34ch, 90%);
  text-shadow: 0 1px 14px var(--scene-void);
}
.scene--remparts .scene-caption {
  top: clamp(26px, 9svh, 80px);
  bottom: auto;
}
.scene-caption .eyebrow {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.scene-title {
  font: 400 clamp(1.8rem, 3vw, 2.5rem) / 1.2 var(--serif);
}
.scene-credit {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}
.k-void { stop-color: var(--scene-void); }
.k-rim { stop-color: var(--scene-rim); }
.k-portal { stop-color: var(--scene-portal); }
.f-blood { fill: var(--scene-blood); }
.f-glass-core { fill: var(--scene-glass-core); }
.f-wall-lit { fill: var(--scene-wall-lit); }
.s-stone-3 { stroke: var(--scene-stone-3); }
.k-stone-1 { stop-color: var(--scene-stone-1); }
.k-stone-2 { stop-color: var(--scene-stone-2); }
.k-glass-core { stop-color: var(--scene-glass-core); }
.k-glass { stop-color: var(--scene-glass); }
.k-blood { stop-color: var(--scene-blood); }
.k-haze { stop-color: var(--scene-haze); }
.k-flame { stop-color: var(--scene-flame); }
.k-ember { stop-color: var(--scene-ember); }
.k-night { stop-color: var(--scene-night); }
.k-sky { stop-color: var(--scene-sky); }
.k-mist { stop-color: var(--scene-mist); }
.k-moon { stop-color: var(--scene-moon); }
.k-ice { stop-color: var(--scene-ice); }
.k-ice-shadow { stop-color: var(--scene-ice-shadow); }
.k-rock { stop-color: var(--scene-rock); }
.k-wall { stop-color: var(--scene-wall); }
.k-wall-lit { stop-color: var(--scene-wall-lit); }
.k-wall-face { stop-color: var(--scene-wall-face); }
.k-banner { stop-color: var(--scene-banner); }
.k-banner-lit { stop-color: var(--scene-banner-lit); }
.k-brass { stop-color: var(--scene-brass); }
.k-brass-shadow { stop-color: var(--scene-brass-shadow); }
.f-stone-1 { fill: var(--scene-stone-1); }
.f-stone-2 { fill: var(--scene-stone-2); }
.f-stone-3 { fill: var(--scene-stone-3); }
.f-stone-4 { fill: var(--scene-stone-4); }
.f-rim { fill: var(--scene-rim); }
.f-iron { fill: var(--scene-iron); }
.f-wax { fill: var(--scene-wax); }
.f-moon { fill: var(--scene-moon); }
.f-sky { fill: var(--scene-sky); }
.f-night { fill: var(--scene-night); }
.f-foothill { fill: var(--scene-foothill); }
.f-fire { fill: var(--scene-ember); }
.f-wall { fill: var(--scene-wall); }
.f-wall-near { fill: var(--scene-wall-near); }
.f-wall-face { fill: var(--scene-wall-face); }
.f-ice { fill: var(--scene-ice); }
.f-flame { fill: var(--scene-flame); }
.f-parapet { fill: var(--scene-wall-near); }
.f-banner { fill: var(--scene-banner); }
.s-rim { stroke: var(--scene-rim); }
.s-iron { stroke: var(--scene-iron); }
.s-ember { stroke: var(--scene-ember); }
.s-portal { stroke: var(--scene-portal); }
.s-stone { stroke: var(--scene-wall-lit); }
.s-ice { stroke: var(--scene-ice); }
.s-night { stroke: var(--scene-night); }
.s-brass { stroke: var(--scene-brass); }
.s-wall-face { stroke: var(--scene-wall-face); }
.s-portal-core { stroke: var(--scene-portal-core); }
.u-candelabrum {
  fill: var(--scene-stone-3);
  color: var(--scene-wax);
}
.u-candelabrum--far {
  fill: var(--scene-stone-2);
}
.u-candelabrum--near {
  fill: var(--scene-stone-4);
}
@keyframes scene-flicker {
  from { opacity: .62; transform: scale(.98); }
  45% { opacity: .78; transform: scale(1.025); }
  to { opacity: .68; transform: scale(1); }
}
@keyframes scene-sway {
  from {
    transform: rotate(-1.1deg) skewY(.5deg);
  }
  to {
    transform: rotate(1.3deg) skewY(-.7deg);
  }
}
@keyframes scene-turn {
  to {
    rotate: 360deg;
  }
}
@media (max-aspect-ratio: 1/1) {
  .scene-layer {
    width: max(100%, 100svh);
  }
  .scene--remparts .scene-layer {
    width: max(100%, 120svh);
  }
}
@media (max-width: 1100px) {
  .identity-caption {
    display: none;
  }
  .hero-actions {
    gap: 20px;
  }
  .hero-footnote {
    max-width: 340px;
  }
  .hero-copy .eyebrow {
    max-width: 30ch;
  }
  .hero-copy {
    padding-right: 18px;
  }
  .art-caption .eyebrow {
    max-width: 30ch;
  }
}
@media (max-width: 650px) {
  .wordmark {
    font-size: 2.7rem;
  }
  .l-nav a {
    font-size: 0.8rem;
  }
  .header-contact {
    font-size: 0.8rem;
    padding: 7px 12px;
  }
  .hero-copy {
    padding: 0;
  }
  .hero-copy .eyebrow {
    max-width: none;
    letter-spacing: 0.055em;
  }
  h1 {
    font-size: clamp(3.65rem, 15.8vw, 5.5rem);
  }
  .hero-intro {
    margin-top: 23px;
  }
  .hero-note {
    font-size: 0.925rem;
  }
  .hero-actions {
    margin-top: 25px;
    gap: 20px;
  }
  .hero-footnote {
    font-size: 1.1rem;
    margin-top: 25px;
    max-width: 95%;
  }
  .artwork {
    margin-top: 35px;
  }
  .art-caption .eyebrow {
    max-width: none;
  }
  .art-controls button {
    min-height: 42px;
  }
  .project-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
  .filters {
    gap: 0;
  }
  .filters button {
    padding-inline: 10px;
    font-size: 0.8rem;
  }
  .large-number {
    font-size: 5.5rem;
  }
  .transmission-detail {
    margin-top: 10px;
  }
  .stack-list {
    grid-template-columns: 1fr;
  }
  .personal-notes {
    margin-top: 20px;
  }
  .personal-notes article {
    gap: 17px;
  }
  .note-symbol {
    min-width: 40px;
  }
  .terminal-output {
    padding: 17px;
    height: 340px;
    font-size: 0.8rem;
  }
  .terminal-form {
    padding: 10px 13px;
    gap: 8px;
    font-size: 0.8rem;
  }
  .terminal-form button {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
  .terminal-bar {
    padding-inline: 15px;
  }
  .terminal-shortcuts {
    gap: 7px;
  }
  .contact-content {
    padding-block: 55px;
  }
  .contact-content br {
    display: none;
  }
  .contact-links {
    gap: 20px;
  }
  .familiar {
    right: 12px;
    bottom: 12px;
  }
  .familiar-toggle {
    width: 78px;
  }
  .familiar-toggle img {
    height: 80px;
  }
  .familiar-panel {
    width: 300px;
  }
  .familiar-panel > p {
    min-height: 0;
  }
  dialog {
    padding: 38px 25px;
  }
  .dialog-body h2 {
    font-size: 2.2rem;
  }
}
/* Éclipse : le décor porte la lumière, le voile garantit la lecture. */
.eclipse-world,
.eclipse-world::after,
.eclipse-image,
.eclipse-light,
.eclipse-corona,
.eclipse-mist,
.eclipse-shadow,
.eclipse-embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.eclipse-world { z-index: -1; background: var(--bg); }
.eclipse-image {
  object-fit: cover;
  object-position: 66% 40%;
  transform: translate3d(var(--eclipse-x, 0px), var(--eclipse-y, 0px), 0) scale(var(--eclipse-zoom, 1.055));
  filter: saturate(.66) brightness(.76);
}
.eclipse-world::after {
  content: "";
  background: linear-gradient(90deg, var(--eclipse-shade), var(--eclipse-clear) 75%),
    linear-gradient(0deg, var(--bg), var(--eclipse-clear) 38%, var(--eclipse-clear) 80%, var(--eclipse-shade));
}
.eclipse-light {
  background: radial-gradient(circle calc(var(--eclipse-radius, 110px) * 1.65) at var(--eclipse-source-x, 69%) var(--eclipse-source-y, 27%),
    var(--eclipse-clear) 54%, var(--eclipse-halo) 65%, var(--eclipse-clear));
  mix-blend-mode: screen;
  opacity: calc((.48 + var(--eclipse-awakening, 0) * .5 + var(--eclipse-hover, 0) * .28) * var(--eclipse-breath, 1));
}
.eclipse-mist::before,
.eclipse-mist::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 37%;
  left: -20%;
  bottom: 9%;
  background: var(--eclipse-ash);
  mask: url("../assets/atmosphere.svg") center / 100% 100% no-repeat;
  opacity: calc(.16 * var(--eclipse-breath, 1));
  transform: translate3d(var(--mist-back-x, 0px), var(--mist-back-y, 0px), 0);
}
.eclipse-mist::after {
  bottom: -5%;
  height: 32%;
  opacity: .21;
  transform: translate3d(var(--mist-front-x, 0px), var(--mist-front-y, 0px), 0) scaleX(-1);
}
.eclipse-shadow {
  background: var(--eclipse-night);
  mask: url("../assets/atmosphere.svg") center / 140% 100% no-repeat;
  opacity: var(--eclipse-shadow-density, .26);
  transform: translate3d(var(--mist-front-x, 0px), var(--mist-back-y, 0px), 0) scale(1.15);
}
.eclipse-embers { z-index: 1; }
.l-hero .hero-copy { padding-block: 150px 110px; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 15px; text-transform: uppercase; color: var(--ink); }
.hero-sigil { color: var(--gold); font: 2rem/1 var(--serif); }
.hero-copy h1 {
  font-size: clamp(10rem, 20vw, 22rem);
  line-height: .95;
  letter-spacing: -.075em;
  margin: 24px 0 48px -8px;
  width: fit-content;
  text-shadow: 0 6px 50px var(--bg);
}
.hero-copy h1 > span { color: var(--accent); font-size: .72em; }
.hero-role { font: 400 clamp(1.5rem, 2.3vw, 2.3rem)/1.2 var(--serif); color: var(--gold); }
.hero-copy .hero-intro {
  max-width: 440px;
  font-size: .95rem;
  color: var(--muted);
  margin-top: 24px;
  text-shadow: 0 2px 15px var(--bg);
}
.hero-actions .button { gap: 34px; }
.hero-actions .text-link { color: var(--ink); }
.eclipse-footer {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--folio-line);
  padding-top: 22px;
  font: .7rem/1.5 var(--font);
}
.eclipse-scroll { display: flex; gap: 16px; align-items: center; text-decoration: none; }
.eclipse-scroll > span { font: 1.5rem/1 var(--serif); color: var(--gold); }
.eclipse-controls { display: flex; gap: 10px; }
.eclipse-controls button {
  min-height: 44px;
  padding: 9px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--eclipse-shade);
}
.eclipse-caption { color: var(--muted); font-size: .6rem; letter-spacing: .12em; }
.gallery-copy { position: relative; isolation: isolate; }
.gallery-mark {
  position: absolute;
  font: 30rem/.7 var(--serif);
  color: var(--folio-wash);
  top: -120px;
  left: -40px;
  pointer-events: none;
  z-index: -1;
}
.gallery-copy h2 { font-size: clamp(4rem, 7.4vw, 8rem); }
.gallery-quote {
  padding-top: 26px;
  border-top: 1px solid var(--metal-dim);
}
.gallery-quote blockquote {
  margin: 0;
  color: var(--ink);
  font: italic clamp(1.25rem, 1.8vw, 1.5rem)/1.55 var(--serif);
  text-wrap: pretty;
}
.gallery-quote figcaption {
  margin-top: 16px;
  color: var(--gold);
  font: .75rem/1.6 var(--font);
  letter-spacing: .06em;
}
.gallery-quote cite { font-style: normal; }
.gallery-instruction { color: var(--muted); font-size: .9rem; margin: 25px 0 36px; max-width: 36ch; }
.l-heading h2 { font-size: clamp(4rem, 8vw, 8rem); }
.transmission { background: radial-gradient(ellipse at 70% 30%, var(--folio-wash), var(--eclipse-clear) 65%), var(--surface); }
.large-number { font-size: clamp(7rem, 13vw, 13rem); line-height: .85; color: var(--gold); }
.transmission h2 { font-size: clamp(3.6rem, 6vw, 6rem); }
.timeline-company { font-size: clamp(2.1rem, 3vw, 3.2rem); }
.l-timeline { padding-block: 45px; }
.contact-section {
  position: relative;
  background: radial-gradient(ellipse at 50% 100%, var(--folio-wash), var(--eclipse-clear) 70%), var(--surface);
  border-block: 1px solid var(--line);
}
.contact-content h2 { font-size: clamp(5rem, 12vw, 12rem); }
@media (max-width: 1024px) and (min-width: 651px) {
  .eclipse-caption { display: none; }
  .hero-copy .hero-intro { max-width: 400px; }
}
@media (max-width: 650px) {
  .l-header .identity-caption { display: none; }
  .l-hero .hero-copy { padding-block: 310px 165px; }
  .eclipse-image { object-position: 68% 0; }
  .eclipse-world::after {
    background: linear-gradient(0deg, var(--bg) 5%, var(--eclipse-shade) 45%, var(--eclipse-clear) 80%, var(--eclipse-shade));
  }
  .hero-copy .eyebrow { font-size: .65rem; margin-bottom: 28px; opacity: calc(1 - var(--eclipse-awakening, 0)); }
  .hero-copy h1 { font-size: clamp(7.5rem, 30vw, 12rem); margin: 0 0 25px -3px; }
  .hero-role { font-size: 1.7rem; }
  .hero-copy .hero-intro { font-size: .875rem; line-height: 1.7; margin-top: 19px; }
  .hero-actions { gap: 20px; margin-top: 26px; }
  .hero-actions .button { padding-inline: 15px; gap: 17px; }
  .hero-actions .text-link { font-size: .8rem; }
  .eclipse-footer { flex-wrap: wrap; bottom: 22px; gap: 12px; padding-top: 15px; }
  .eclipse-scroll { width: 100%; }
  .eclipse-controls { gap: 8px; }
  .eclipse-controls button { font-size: .65rem; padding: 8px 10px; }
  .eclipse-caption { display: none; }
  .gallery-copy h2 { font-size: 4.5rem; }
  .gallery-mark { font-size: 23rem; top: -45px; left: auto; right: 0; }
  .gallery-copy .section-intro { max-width: 40ch; }
  .gallery-instruction { margin-bottom: 25px; }
  .l-projects { gap: 0; }
  .large-number { font-size: 8rem; }
  .l-timeline { padding-block: 30px; }
}
@media (max-width: 650px) {
  .l-header .wordmark { font-size: 2.35rem; }
  .l-header .l-nav a, .l-header .theme-menu, .l-header .header-contact { font-size: .73rem; }
  .theme-menu summary { white-space: nowrap; }
  .header-contact { padding-inline: 10px; }
  .familiar-toggle { width: 72px; }
  .familiar-toggle img { height: 76px; }
  .familiar-toggle > span { font-size: .65rem; padding: 2px 8px; }
  .l-gallery .artwork { margin-top: 0; }
}
/* Folio : compositions typographiques montées dans un cadre de cuivre. */
.svg-definitions { position: absolute; overflow: hidden; }
.sigil { fill: none; stroke: currentColor; stroke-width: .8; width: 70px; height: 70px; color: var(--gold); }
.hero-copy .hero-sigil { width: 36px; height: 36px; flex: 0 0 36px; }
.section-label { font: 500 .8rem/1.6 var(--font); color: var(--gold); letter-spacing: .04em; margin-bottom: 18px; }
.folio-section { position: relative; }
.folio-section::before {
  content: ""; position: absolute; height: 70px; width: 1px; left: 50%; top: 0;
  background: linear-gradient(var(--metal-glint), transparent);
}
.project-feature {
  display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 5%;
  padding: 44px; margin: 0; min-height: 0; overflow: visible;
  background: radial-gradient(ellipse at 5% 0, var(--folio-wash), transparent 75%), var(--surface);
  border: 1px solid var(--metal-dim); box-shadow: 0 22px 65px var(--folio-shadow);
}
.project-feature::before, .project-feature::after { content: none; }
.project-copy { min-width: 0; }
.project-index { display: flex; gap: 18px; align-items: center; margin-bottom: 21px; }
.project-number { font: 2.7rem/1 var(--serif); color: var(--gold); padding: 0; opacity: 1; }
.project-category { font: .8rem/1.7 var(--font); color: var(--muted); letter-spacing: .025em; margin: 0; }
.project-copy h3 { font: 400 clamp(2rem, 2.7vw, 3rem)/1.05 var(--serif); letter-spacing: -.025em; max-width: none; }
.project-feature h3 { font-size: clamp(2.6rem, 4.1vw, 4.8rem); }
.project-copy > p { margin-top: 20px; max-width: 48ch; color: var(--muted); font-size: .9rem; }
.project-copy .project-personal { color: var(--ink); font: italic 1.2rem/1.5 var(--serif); margin-top: 22px; max-width: 32ch; }
.project-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.project-medium { font: .65rem/1.7 var(--font); color: var(--muted); }
.project-more { min-height: 44px; padding: 0; border: 0; display: inline-flex; gap: 28px; align-items: center; font-size: .85rem; white-space: nowrap; }
.project-more > span { font-size: 1.3rem; color: var(--gold); transition: transform var(--duration) var(--ease); }
.project-visual { display: block; width: 100%; min-width: 0; padding: 0; text-align: left; }
.project-mount {
  display: block; position: relative; container-type: inline-size; padding: 14px; background: var(--mount);
  border: 1px solid var(--metal-dim); outline: 1px solid var(--engraving); outline-offset: 5px;
  box-shadow: inset 0 1px var(--metal-glint), 0 16px 45px var(--folio-shadow);
}
.project-mount::before, .project-mount::after {
  content: ""; position: absolute; pointer-events: none; z-index: 1; width: 25px; height: 25px;
  border-color: var(--metal); border-style: solid; transition: border-color var(--duration);
}
.project-mount::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.project-mount::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.project-caption { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font: .62rem/1.6 var(--font); letter-spacing: .04em; margin-top: 18px; padding-inline: 2px; }
.project-feature .project-caption { margin-bottom: 0; }
.project-plate { display: flex; flex-direction: column; min-width: 0; }
.project-plate .project-visual { order: -1; margin-bottom: 28px; }
.project-plate .project-copy { flex: 1; display: flex; flex-direction: column; }
.project-plate .project-copy > p { margin-bottom: 22px; }
.project-plate .project-bottom { margin-top: auto; }
.project-plate .project-index { margin-bottom: 12px; }
.project-poster { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; aspect-ratio: 3/2; padding: 7% 6% 11%; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, var(--folio-wash), transparent 75%), var(--surface); color: var(--gold); }
.project-poster .sigil { width: 11cqw; height: 11cqw; margin-bottom: 4cqw; flex-shrink: 0; }
.poster-name { font: 8.5cqw/1.05 var(--serif); text-align: center; max-width: 17ch; text-wrap: balance; }
.poster-category { font: clamp(.52rem, 1.65cqw, .7rem)/1.8 var(--font); margin-top: 3cqw; color: var(--muted); text-align: center; }
.poster-staff { position: absolute; bottom: 12%; height: 25px; width: 80%; border-block: 1px solid var(--engraving); background: repeating-linear-gradient(0deg, transparent 0 5px, var(--engraving) 5px 6px); transform: rotate(-8deg); }
/* La lumière reste un accent sur les surfaces, sans éclaircir le fond des textes. */
.button { position: relative; gap: 24px; transition: background var(--duration), border-color var(--duration), box-shadow var(--duration); }
.button-primary { background-color: var(--button); background-image: linear-gradient(115deg, var(--button-hover), transparent 75%); box-shadow: inset 0 1px var(--button-hover), 0 4px 20px var(--folio-wash); }
.button-outline { border-color: var(--metal-dim); box-shadow: inset 0 1px var(--engraving); }
.filters button { min-height: 44px; }
.gallery-copy h2 { color: var(--ink); }
.transmission { border-block: 1px solid var(--metal-dim); }
.transmission-detail { border-left: 1px solid var(--metal-dim); padding-left: 35px; }
.career-section .l-timeline { position: relative; border-top-color: var(--metal-dim); }
.career-section .l-timeline::before { content: ""; position: absolute; width: 5px; height: 5px; border: 1px solid var(--metal); top: -3px; left: 0; transform: rotate(45deg); background: var(--bg); }
.education-item { background: linear-gradient(135deg, var(--engraving), transparent 60%); padding: 25px 22px; border: 1px solid var(--line); }
.education-item h3 { font: 1.5rem/1.2 var(--serif); }
.stack-details { border-radius: 0; background: var(--surface); }
.music-section { border-top: 1px solid var(--metal-dim); }
.music-room { position: relative; isolation: isolate; min-height: min(940px, 95svh); display: flex; align-items: center; overflow: hidden; }
.music-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; filter: saturate(.72) brightness(.84); z-index: -2; }
.music-room::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--music-veil), var(--music-shade) 35%, transparent 65%), linear-gradient(0deg, var(--bg), transparent 25%, transparent 80%, var(--bg)); }
.music-copy { padding-block: 100px 120px; }
.music-copy h2 { font-size: clamp(5rem, 10vw, 10rem); }
.music-copy .section-intro { max-width: 38ch; font-size: .95rem; color: var(--ink); margin-block: 28px 32px; }
.music-copy .button { margin: 0; background: var(--music-veil); }
.music-instruments { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 60px; }
.music-instruments > span { display: flex; gap: 12px; align-items: baseline; font: .85rem/1.6 var(--font); }
.music-project { max-width: 40rem; }
.music-project-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; margin-top: 28px; }
.music-project-heading h3 { font: 500 clamp(2.5rem, 5vw, 4rem)/1 var(--serif); }
.music-project-heading p { font-size: .85rem; color: var(--gold); }
.music-copy .music-project .section-intro { max-width: 42ch; margin-block: 20px; }
.music-recordings { max-width: 44ch; margin-bottom: 28px; }
.music-recordings > div { border-top: 1px solid var(--line); padding-block: 16px; }
.music-recordings dt { color: var(--gold); font-size: .85rem; font-weight: 500; }
.music-recordings dd { margin: 8px 0 0; color: var(--ink); font-size: .9rem; line-height: 1.7; }
.music-description { max-width: 44ch; margin-top: 32px; color: var(--muted); font-size: .85rem; line-height: 1.7; }
.music-instruments i { color: var(--gold); font: 1.4rem/1 var(--serif); }
.music-caption { position: absolute; right: 6%; bottom: 25px; color: var(--muted); font: .6rem/1.6 var(--font); letter-spacing: .07em; }
.personal-heading { padding-top: 16px; }
.personal-heading .sigil { margin-bottom: 40px; }
.personal-heading h2 { font-size: clamp(3.2rem, 5.2vw, 5.5rem); }
.l-personal .personal-notes { padding: 0; }
.l-personal .personal-notes > .eyebrow { display: none; }
.personal-notes article { border-top: 1px solid var(--line); padding-top: 25px; margin-block: 0 30px; }
.personal-notes article:first-child { border-top: 0; padding-top: 0; }
.personal-notes .note-symbol { font-size: 2.2rem; opacity: .8; padding-top: 2px; }
.terminal { border-radius: 0; border-color: var(--metal); box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--metal-dim), 0 25px 70px var(--folio-shadow); }
.terminal-bar { background: linear-gradient(100deg, var(--raised), var(--terminal-bar)); padding-block: 16px; }
.contact-content { position: relative; isolation: isolate; padding-block: 100px 110px; }
.nyx-seal { position: absolute; top: 100px; right: 0; width: 230px; display: grid; justify-items: center; gap: 18px; }
.nyx-seal .sigil { width: 100%; height: auto; aspect-ratio: 1; opacity: .65; }
.nyx-seal .wordmark { font-size: 3rem; color: var(--ink); }
.contact-content > p { max-width: min(68ch, 70%); }
.familiar-toggle { width: 88px; }
.familiar-toggle img { height: 93px; }
.familiar-toggle::before { content: ""; position: absolute; width: 115px; height: 6px; bottom: 24px; right: -16px; border-block: 1px solid var(--metal-dim); background: var(--mount); z-index: -1; }
.familiar-toggle > span { border-radius: 0; border-color: var(--metal-dim); background: var(--mount); }
.familiar-panel { border-radius: 0; border-color: var(--metal-dim); box-shadow: inset 0 1px var(--metal-glint), 0 20px 70px var(--shadow-deep); }
#project-dialog { width: min(1180px, 94vw); padding: 0; border-color: var(--metal); border-radius: 0; max-height: 90dvh; box-shadow: 0 30px 100px var(--shadow-deep); }
.dialog-close { position: sticky; top: 12px; margin-left: auto; margin-right: 12px; margin-top: 12px; margin-bottom: -56px; z-index: 3; display: grid; place-items: center; background: var(--mount); border: 1px solid var(--metal-dim); }
.dialog-header { padding: 45px 85px 35px 45px; }
.dialog-header .eyebrow { margin-bottom: 12px; }
.dialog-header h2 { font-size: clamp(2.4rem, 4.5vw, 4.5rem); max-width: 20ch; }
.dialog-images { min-width: 0; }
.dialog-plate { padding: 12px; border: 1px solid var(--metal-dim); background: var(--mount); container-type: inline-size; }
.dialog-plate .project-poster { min-height: 0; }
.dialog-plate figcaption { margin-top: 10px; font: .65rem/1.7 var(--font); color: var(--muted); }
.dialog-body { padding-top: 0; }
.dialog-body .dialog-summary { color: var(--ink); }
.dialog-body h3 { font: 1.7rem/1.3 var(--serif); margin-top: 26px; }
.dialog-body .button { margin-top: 30px; }
.tags span { border-radius: 0; }
/* Objets votifs : une lumière basse laisse la porcelaine et la gravure dans l'ombre. */
.ritual-lines { stroke: var(--ritual-ink, var(--occult-ritual)); }
.ritual-scars { stroke: var(--bg); stroke-width: 3; }
.ritual-ground {
  position: absolute;
  width: var(--eclipse-seal-size, min(520px, 40vw));
  height: auto;
  left: var(--eclipse-seal-x, calc(59% + min(260px, 20vw)));
  top: var(--eclipse-seal-y, calc(100% + 70px - min(260px, 20vw)));
  transform: translate(-50%, -50%) perspective(700px) rotateX(var(--eclipse-seal-tilt, 63deg)) rotateZ(var(--eclipse-seal-turn, -16deg));
  --ritual-ink: color-mix(in srgb, var(--occult-ritual), var(--eclipse-blood) var(--eclipse-seal-red, 0%));
  opacity: var(--eclipse-seal-opacity, .24);
  filter: drop-shadow(0 0 calc(var(--eclipse-awakening, 0) * 8px) var(--eclipse-blood-glow));
  pointer-events: none;
}
.candle-wax { fill: var(--occult-wax); }
.candle-drips { stroke: var(--occult-wax-shadow); }
.candle-top { fill: var(--occult-wax-shadow); }
.candle-wick { stroke: var(--bg); }
.candle-shadow { fill: var(--shadow-deep); }
.candle-fire { fill: var(--occult-flame); }
.candle-core { fill: var(--occult-flame-core); }
.candle-holder { fill: var(--metal-dim); }
.candle-flame {
  transform-origin: 30px 49px;
  animation: votive-flame 3.7s ease-in-out infinite alternate;
  animation-delay: var(--candle-offset, 0s);
  animation-play-state: var(--occult-play, paused);
}
@keyframes votive-flame {
  from { transform: rotate(-4deg) scale(.93, 1.03); opacity: .74; }
  45% { transform: rotate(3deg) scale(1, .94); opacity: .94; }
  to { transform: rotate(-1deg) scale(.96, 1.06); opacity: .82; }
}
.votive-niche {
  position: relative;
  isolation: isolate;
  height: 330px;
  max-width: 360px;
  margin-top: 38px;
  border: 1px solid var(--metal-dim);
  border-bottom: 0;
  border-radius: 48% 48% 0 0;
  background: radial-gradient(ellipse at 45% 75%, var(--folio-wash), transparent 65%), var(--mount);
  mask-image: linear-gradient(to bottom, var(--shadow) 82%, transparent);
  pointer-events: none;
}
.votive-doll {
  position: absolute;
  height: 310px;
  width: auto;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  filter: saturate(.65) brightness(.72);
}
.niche-seal { position: absolute; width: 240px; height: 240px; top: 28px; left: 50%; transform: translateX(-50%); opacity: .16; }
.niche-candle { position: absolute; width: 34px; height: 125px; bottom: 5px; }
.niche-candle--left { left: 13%; --candle-offset: -1.3s; }
.niche-candle--right { right: 10%; height: 96px; --candle-offset: -2.7s; }
.grave-face { fill: var(--occult-stone); }
.grave-edge { stroke: var(--occult-stone-edge); stroke-width: 2; }
.grave-carving { stroke: var(--occult-stone-edge); stroke-width: 2; opacity: .55; }
.grave-cross { fill: none; stroke: var(--occult-stone-edge); stroke-width: 9; }
.grave-earth { fill: none; stroke: var(--scene-wall-near); stroke-width: 9; opacity: .65; }
/* Le cimetière reste au sol pendant que la caméra déplace les remparts. */
.scene-layer--graves {
  --travel: 6svh;
  top: 96%;
  translate: 0 -45%;
  opacity: .88;
}
#terminal { position: relative; }
.terminal-altar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  height: 150px;
  margin-top: -45px;
  margin-bottom: 46px;
  pointer-events: none;
}
.altar-seal { position: absolute; top: -80px; left: 50%; width: 260px; height: 260px; transform: translateX(-50%); opacity: .14; }
.altar-candle { position: relative; width: 32px; height: 126px; --candle-offset: -2.2s; }
.altar-candle--short { width: 25px; height: 88px; --candle-offset: -.8s; }
.altar-candle:last-child { height: 106px; --candle-offset: -1.7s; }
.terminal-altar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: min(580px, 85%);
  height: 25px;
  transform: translateX(-50%);
  background: linear-gradient(var(--occult-stone-edge), var(--occult-stone) 30%);
  clip-path: polygon(4% 0, 96% 0, 100% 35%, 99% 100%, 1% 100%, 0 35%);
}
@media (max-width: 650px) {
  .ritual-ground { width: var(--eclipse-seal-size, 270px); left: var(--eclipse-seal-x, calc(30% + 135px)); top: var(--eclipse-seal-y, calc(100% - 100px)); opacity: var(--eclipse-seal-opacity, .19); }
  .votive-niche { max-width: 270px; height: 310px; margin: 34px auto 0; }
  .votive-doll { height: 295px; }
  .terminal-altar { height: 115px; margin-top: -15px; margin-bottom: 32px; }
  .altar-seal { width: 220px; height: 220px; top: -80px; }
  .altar-candle { height: 100px; }
  .altar-candle--short { height: 72px; }
  .altar-candle:last-child { height: 88px; }
}
/* Une même lumière cuivrée accompagne les interactions dans toutes les sections. */
.l-nav a, .text-link, .header-contact, .theme-menu summary, .theme-menu a,
.filters button, .art-controls button, .eclipse-controls button, .cathedral-controls button,
.terminal-shortcuts button, .terminal-form button, .familiar-actions button, .dialog-close,
.experience-details summary, .stack-details summary, .cathedral-continue, .project-more {
  transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease),
    border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.button {
  transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.l-nav a {
  padding-block: 8px;
  background: linear-gradient(var(--metal), var(--metal)) left bottom / 0 1px no-repeat;
  transition: color var(--duration) var(--ease), background-size var(--duration) var(--ease);
}
.project-mount {
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}
.project-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--metal-glint), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-atmosphere) var(--ease);
}
.project-poster > * { position: relative; }
.project-poster .poster-staff { position: absolute; }
.theme-menu::details-content {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--duration-fast) var(--ease), transform var(--duration) var(--ease),
    content-visibility var(--duration) allow-discrete;
}
.theme-menu[open]::details-content { opacity: 1; transform: translateY(0); }
.familiar-panel {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration-fast) var(--ease), transform var(--duration) var(--ease),
    display var(--duration) allow-discrete;
}
.familiar-panel:not([hidden]) { opacity: 1; transform: translateY(0); }
#project-dialog {
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease-reveal),
    display var(--duration) allow-discrete, overlay var(--duration) allow-discrete;
}
#project-dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
#project-dialog::backdrop {
  opacity: 0;
  backdrop-filter: none;
  transition: opacity var(--duration) var(--ease), display var(--duration) allow-discrete,
    overlay var(--duration) allow-discrete;
}
#project-dialog[open]::backdrop { opacity: 1; }
@starting-style {
  #project-dialog[open], .familiar-panel:not([hidden]) { opacity: 0; transform: translateY(12px); }
  #project-dialog[open]::backdrop { opacity: 0; }
  .theme-menu[open]::details-content { opacity: 0; transform: translateY(6px); }
}
@supports (interpolate-size: allow-keywords) {
  .experience-details, .stack-details { interpolate-size: allow-keywords; }
  .experience-details::details-content, .stack-details::details-content {
    block-size: 0;
    opacity: 0;
    overflow: clip;
    transition: block-size var(--duration) var(--ease), opacity var(--duration) var(--ease),
      content-visibility var(--duration) allow-discrete;
  }
  .experience-details[open]::details-content, .stack-details[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}
@media (max-width: 1024px) {
  .project-feature { padding: 30px; gap: 30px; }
  .project-feature h3 { font-size: 3.1rem; }
  .project-caption { font-size: .56rem; }
  .project-mount { padding: 10px; }
  .music-room { min-height: 780px; }
  .music-copy .section-intro { max-width: 35ch; }
  .nyx-seal { width: 160px; }
}
@media (max-width: 900px) {
  .project-feature { grid-template-columns: 1fr; }
  .project-feature .project-visual { order: -1; }
  .project-feature .project-copy h3 { max-width: 15ch; }
  .project-feature .project-copy > p { max-width: 60ch; }
  .project-copy h3 { font-size: 2.2rem; }
  .project-category { font-size: .6rem; }
  .project-bottom { gap: 12px; }
  .project-more { gap: 14px; }
  .project-mount { padding: 8px; }
}
@media (max-width: 650px) {
  .folio-section::before { height: 30px; }
  .section-label { font-size: .62rem; margin-bottom: 12px; }
  .project-feature { padding: 20px; gap: 25px; }
  .project-feature h3 { font-size: 2.65rem; }
  .project-copy > p { font-size: .875rem; margin-top: 15px; }
  .project-feature .project-copy .project-personal { font-size: 1.1rem; }
  .project-number { font-size: 2.4rem; }
  .project-feature .project-caption { flex-wrap: wrap; margin-top: 12px; gap: 4px; }
  .project-caption { font-size: .56rem; }
  .project-index { gap: 14px; margin-bottom: 15px; }
  .project-plate .project-visual { margin-bottom: 22px; }
  .project-bottom { margin-top: 20px; padding-top: 12px; }
  .project-plate .project-bottom { margin-top: 15px; }
  .transmission-detail { padding-left: 0; border-left: 0; border-top: 1px solid var(--metal-dim); padding-top: 32px; }
  .education-item { padding: 24px; }
  .music-room { min-height: 0; display: block; }
  .music-image { height: 530px; object-position: 73% 40%; }
  .music-room::after { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) 35%, var(--music-shade) 58%, transparent 80%, var(--music-shade)), linear-gradient(90deg, var(--music-shade), transparent); }
  .music-copy { padding-block: 420px 75px; }
  .music-copy h2 { font-size: 5.1rem; }
  .music-copy .section-intro { margin-block: 22px 28px; font-size: .9rem; max-width: 100%; }
  .music-copy .button { font-size: .8rem; padding-inline: 16px; }
  .music-instruments { gap: 20px; margin-top: 35px; }
  .music-instruments > span { gap: 8px; font-size: .65rem; }
  .music-caption { right: auto; left: 6%; bottom: 20px; font-size: .54rem; }
  .personal-heading { display: flex; gap: 22px; align-items: center; padding: 0; }
  .personal-heading .sigil { width: 54px; height: 54px; margin: 0; flex-shrink: 0; }
  .personal-heading h2 { font-size: 2.6rem; }
  .l-personal .personal-notes { margin-top: 14px; }
  .personal-notes .note-symbol { min-width: 25px; font-size: 1.7rem; }
  .personal-notes h3 { font-size: 1.7rem; }
  .contact-content { padding-block: 65px 80px; }
  .contact-content > p { max-width: 100%; }
  .nyx-seal { position: static; width: 120px; gap: 12px; margin: 0 auto 30px; }
  .nyx-seal .wordmark { font-size: 2.2rem; }
  .familiar { right: 10px; bottom: 10px; }
  .familiar-toggle { width: 56px; }
  .familiar-toggle img { height: 59px; }
  .familiar-toggle::before { width: 72px; right: -10px; bottom: 20px; height: 4px; }
  .familiar-toggle > span { font-size: .56rem; }
  .dialog-header { padding: 30px 70px 25px 22px; }
  .dialog-header h2 { font-size: 2.5rem; }
  .dialog-header .eyebrow { font-size: .65rem; }
  .dialog-body h3 { font-size: 1.6rem; }
  .dialog-body p { font-size: .9rem; }
  #project-dialog { width: 94vw; }
}
/* Passage gothique : projection de l'éclipse et sceau tracé en deux matières. */
.gothic-portal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  contain: strict;
}
.gothic-portal[hidden] { display: none; }
.portal-veil, .portal-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.portal-veil { background: var(--portal-night); opacity: 0; }
.portal-disc {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: var(--portal-night);
  box-shadow: 0 0 12px 2px var(--portal-flame), 0 0 3px 1px var(--portal-core);
  will-change: transform;
}
.portal-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(62vw, 58vh, 540px);
  height: auto;
  overflow: visible;
  transform: translate(-50%, -50%);
  opacity: 0;
  filter: drop-shadow(0 0 4px var(--portal-blood-dark));
}
.portal-seal path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.portal-ink { stroke: var(--portal-blood); stroke-width: 4.5; }
.portal-ink--fine { stroke-width: 2.4; }
.portal-metal { stroke: url(#portal-metal); stroke-width: 1.25; }
.portal-metal--fine { stroke-width: .75; }
.portal-trace { fill: var(--portal-core); filter: drop-shadow(0 0 3px var(--portal-flame)); }
.portal-drip { stroke: var(--portal-blood); stroke-width: 2.3; }
@media (max-width: 767px) { .portal-seal { width: min(78vw, 55vh); } }

.portal-world { position: absolute; overflow: hidden; will-change: transform; }
.portal-world-image { width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* Les gravures signent les projets ; le nom et le travail réalisé portent la lecture. */
.grimoire-notes { display: none; }
.project-feature { grid-template-columns: minmax(0, 1fr) 250px; gap: 45px; padding: 35px; }
.project-copy h3 { font-size: clamp(2rem, 2.6vw, 2.8rem); line-height: 1.12; }
.project-feature h3 { font-size: clamp(2.6rem, 3.8vw, 4rem); }
.project-index { gap: 12px; flex-wrap: wrap; margin-bottom: 15px; }
.project-number { font-size: 1.6rem; }
.project-category { font: .75rem/1.5 var(--font); letter-spacing: 0; }
.project-feature-label { color: var(--gold); font-size: .75rem; padding-left: 12px; border-left: 1px solid var(--metal-dim); }
.project-copy > p { font-size: 1rem; margin-top: 18px; max-width: 65ch; }
.project-copy .project-contribution { color: var(--ink); }
.project-copy .project-summary { color: var(--muted); }
.project-bottom { gap: 12px 20px; flex-wrap: wrap; margin-top: 22px; padding-top: 12px; }
.project-medium { font-size: .8125rem; }
.project-actions { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.project-more, .project-site { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .875rem; text-decoration: none; }
.project-more { color: var(--gold); }
.project-more > span { font-size: 1rem; }
.project-site { color: var(--muted); }
.project-site > span { color: var(--gold); }
.project-visual { align-self: center; pointer-events: none; }
.project-plate { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 25px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.project-plate .project-copy { display: block; }
.project-plate .project-visual { order: 0; margin: 0; align-self: start; }
.project-plate .project-copy > p { margin-bottom: 0; }
.project-plate .project-bottom { margin-top: 22px; }
.project-mount { padding: 8px; outline: none; box-shadow: inset 0 1px var(--metal-glint); }
.project-poster { aspect-ratio: 4/5; padding: 12%; gap: 8%; }
.poster-number { font: 400 22cqw/.9 var(--serif); color: var(--gold); letter-spacing: -.06em; }
.project-engraving { width: 72%; height: auto; aspect-ratio: 1; fill: none; stroke: var(--metal); stroke-width: 1.25; }
.project-engraving circle:first-child { stroke-dasharray: 2 5; }
.project-poster .poster-staff { width: 70%; height: 10%; bottom: 8%; opacity: .55; }
.project-poster--oiseau .project-engraving { width: 82%; }
.project-poster--mmg .poster-staff { transform: rotate(-18deg); }
.project-poster--lvde .poster-staff { transform: rotate(0); }
.project-poster--pierre { background: linear-gradient(125deg, var(--folio-wash), transparent 70%), var(--mount); }
.project-filters { position: relative; }
.project-filters summary { min-height: 44px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .875rem; list-style: none; }
.project-filters summary::-webkit-details-marker { display: none; }
.project-filters summary::after { content: "+"; color: var(--gold); }
.project-filters .filters { position: absolute; right: 0; top: calc(100% + 4px); z-index: 6; padding: 8px; border: 1px solid var(--metal-dim); background: var(--surface); box-shadow: 0 12px 30px var(--shadow-deep); white-space: nowrap; }
.project-toolbar { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 12px; }
.project-toolbar .meta { font-size: .875rem; }
#project-dialog { width: min(1000px, 94vw); }
.dialog-header h2 { font-size: clamp(2.3rem, 4vw, 3.8rem); }
.dialog-header .button { margin-top: 24px; gap: 18px; }
.dialog-body p { font-size: 1rem; }
.dialog-body h3 { margin-top: 24px; }
.dialog-images .tags { margin-top: 20px; gap: 8px; }
.dialog-images .tags span { font-size: .8125rem; }
.dialog-plate { padding: 8px; }
.transmission h2 { font-size: clamp(3rem, 4.5vw, 4.5rem); }
.transmission-stat { display: flex; align-items: center; gap: 20px; padding-left: 30px; border-left: 1px solid var(--metal-dim); }
.transmission-stat .large-number { font-size: clamp(5rem, 7vw, 7rem); white-space: nowrap; }
.transmission-stat > p { font-size: .875rem; color: var(--muted); }
.transmission-topic { padding-top: 22px; border-top: 1px solid var(--metal-dim); }
.transmission-topic h3 { font: 1.65rem/1.2 var(--serif); }
.transmission-topic p { margin-top: 16px; color: var(--muted); font-size: 1rem; }
.transmission-notes { margin-top: 14px; }
.transmission-notes summary { min-height: 44px; color: var(--gold); font-size: .875rem; }
.transmission-notes p { margin-top: 5px; }
.timeline-highlight { margin-top: 18px; padding-left: 18px; border-left: 2px solid var(--metal); color: var(--ink); max-width: 65ch; }
.timeline-current .timeline-company { color: var(--gold); }
.reading-nav { background: var(--cathedral-control); border: 1px solid var(--metal-dim); box-shadow: 0 6px 30px var(--shadow-deep); }
.reading-nav a { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 20px; text-decoration: none; font-size: .875rem; color: var(--muted); }
.reading-nav a:last-child { color: var(--gold); border-left: 1px solid var(--line); }
.cathedral-options { position: relative; }
.cathedral-options summary { min-height: 44px; display: flex; align-items: center; gap: 10px; padding-inline: 14px; font-size: .8125rem; list-style: none; background: var(--cathedral-control); border: 1px solid var(--cathedral-border); }
.cathedral-options summary::-webkit-details-marker { display: none; }
.cathedral-options summary::after { content: "+"; color: var(--gold); }
.cathedral-settings { position: absolute; bottom: calc(100% + 10px); left: 0; width: 235px; padding: 10px; border: 1px solid var(--cathedral-border); background: var(--cathedral-control); box-shadow: 0 10px 35px var(--shadow-deep); display: grid; gap: 8px; z-index: 3; }
.cathedral-settings button { text-align: left; }
.cathedral-controls > .lantern-toggle { white-space: nowrap; }
.cathedral-continue { margin: 0 0 0 15px; }
.cathedral-continue .continue-label { color: var(--ink); font-size: .875rem; }
.cathedral-heading .eyebrow { font-size: .75rem; letter-spacing: .08em; }
.cathedral-depth { font-size: .75rem; letter-spacing: .08em; }
.lantern-exploration { gap: 6px 14px; }
.lantern-help { font-size: .8125rem; }
.sound-mute { bottom: 88px; }
.scene--remparts .scene-art::after { content: ""; position: absolute; inset: 0; background: url("../assets/grain.svg"); opacity: .2; mix-blend-mode: soft-light; }
.scene--remparts .scene-light { background: linear-gradient(var(--bg), transparent 24%, transparent 62%, var(--bg)), radial-gradient(ellipse 70% 75% at 50% 48%, transparent 35%, var(--scene-void)); }
.scene--remparts .scene-layer--fortress { filter: saturate(.65) contrast(1.15); }
.scene--remparts .scene-layer--gate { filter: drop-shadow(0 10px 20px var(--scene-void)); }
.scene--remparts .scene-caption { top: 30px; }
.scene-credit, .music-caption, .art-credit { font-size: .75rem; }
@media (max-width: 900px) {
  .project-feature { grid-template-columns: minmax(0, 1fr) 170px; padding: 28px; gap: 28px; }
  .project-feature .project-visual { order: 0; }
  .project-feature .project-copy h3 { max-width: none; }
  .transmission-stat { padding-left: 20px; }
}
@media (max-width: 650px) {
  .project-feature { position: relative; display: block; padding: 22px; }
  .project-feature h3 { font-size: 2.6rem; }
  .project-copy h3 { max-width: none; }
  .project-index { min-height: 72px; align-content: center; align-items: center; gap: 6px 10px; padding-right: 80px; margin-bottom: 10px; }
  .project-category { flex: 1 1 calc(100% - 38px); font-size: .75rem; }
  .project-feature-label { padding: 0; border: 0; }
  .project-feature .project-visual, .project-plate .project-visual { position: absolute; width: 65px; top: 24px; right: 0; }
  .project-feature .project-visual { right: 22px; }
  .project-mount { padding: 4px; }
  .project-mount::before, .project-mount::after { width: 12px; height: 12px; }
  .project-plate { display: block; padding-block: 22px; }
  .project-copy > p { font-size: .9375rem; margin-top: 16px; }
  .project-bottom { display: block; margin-top: 18px; padding-top: 8px; }
  .project-actions { gap: 8px 20px; }
  .project-more, .project-site { font-size: .8125rem; }
  .project-filters .filters { padding: 5px; }
  .filters button { padding-inline: 9px; font-size: .8125rem; }
  .l-heading { margin-bottom: 20px; }
  .l-heading h2 { font-size: 3.8rem; }
  .l-projects { gap: 8px; }
  .dialog-header { padding: 25px 65px 25px 22px; }
  .dialog-header .eyebrow { font-size: .75rem; }
  .dialog-header .button { font-size: .875rem; margin-top: 20px; }
  .dialog-body p { font-size: .9375rem; }
  .dialog-images { display: flex; align-items: center; gap: 22px; }
  .dialog-plate { flex: 0 0 85px; }
  .dialog-images .tags { margin: 0; }
  .gallery-copy h2 { font-size: 3.5rem; }
  .gallery-copy h2 br, .gallery-mark, .votive-niche { display: none; }
  .gallery-copy .section-intro { margin-top: 18px; font-size: .9375rem; }
  .transmission h2 { font-size: 3rem; }
  .transmission-stat { padding-left: 0; border-left: 0; gap: 18px; }
  .transmission-stat .large-number { font-size: 4.5rem; }
  .transmission-topic { padding-top: 18px; }
  .transmission-topic p { font-size: .9375rem; }
  .reading-nav { border-width: 1px 0 0; }
  .reading-nav a { padding-inline: 10px; font-size: .8125rem; gap: 6px; }
  .reading-nav a:last-child { border-left: 0; }
  .familiar { z-index: 30; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); }
  .familiar-toggle { width: 48px; min-height: 44px; }
  .familiar-toggle img { height: 45px; }
  .familiar-toggle > span { font-size: .625rem; padding: 1px 6px; }
  .familiar-toggle::before { display: none; }
  .familiar-panel { margin-bottom: 14px; }
  .cathedral-options summary { font-size: .8125rem; padding-inline: 10px; gap: 6px; }
  .cathedral-settings { left: auto; right: 0; width: 225px; }
  .cathedral-heading .eyebrow { font-size: .6875rem; letter-spacing: .04em; }
  .cathedral-continue { margin-left: 0; width: 36px; justify-content: center; }
  .cathedral-continue .continue-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .lantern-exploration { max-width: none; grid-template-columns: auto 1fr; gap: 4px 12px; }
  .lantern-help { max-width: none; font-size: .8125rem; }
  .lantern-counter { font-size: .9375rem; }
  .lantern-route { min-height: 44px; }
  .sound-mute { bottom: 78px; left: 12px; padding: 8px 12px; }
}

/* The second image shares the camera; the light reveals its stone rather than washing it out. */
.lantern-reveal, .lantern-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.lantern-reveal {
  mask-image: radial-gradient(circle var(--lantern-radius, 200px) at var(--lantern-x, 50%) var(--lantern-y, 60%), var(--shadow) 15%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle var(--lantern-radius, 200px) at var(--lantern-x, 50%) var(--lantern-y, 60%), var(--shadow) 15%, transparent 100%);
}
.lantern-reveal .lantern-image { filter: saturate(.88) brightness(1.32) sepia(.16); }
.lantern-glow { background: radial-gradient(circle calc(var(--lantern-radius, 200px) * .8) at var(--lantern-x, 50%) var(--lantern-y, 60%), var(--lantern-halo), transparent 100%); mix-blend-mode: screen; }
.lantern-flame {
  position: absolute; left: var(--lantern-x, 50%); top: var(--lantern-y, 60%);
  width: 10px; height: 19px; border-radius: 80% 25% 65% 35%; background: var(--occult-flame);
  box-shadow: 0 0 12px var(--occult-flame), 0 0 36px var(--lantern-halo);
  transform: translate(-50%, -50%) rotate(-20deg) scaleY(var(--lantern-breath, 1));
  pointer-events: none; opacity: 0;
}
.lantern-flame-core { position: absolute; inset: 42% 25% 8%; border-radius: 60% 35% 45% 45%; background: var(--lantern-heart); }
.lantern-carving { position: absolute; aspect-ratio: 1; translate: -50% -50%; color: var(--lantern-carving); opacity: calc(.45 + var(--seal-charge, 0) * .55); filter: drop-shadow(0 1px 1px var(--lantern-night)); }
.lantern-carving svg, .lantern-choice svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; }
.lantern-carving svg { stroke-width: 1.6; }
.lantern-exploration { max-width: 590px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; }
.lantern-exploration[hidden], .lantern-route[hidden] { display: none; }
.lantern-counter { display: inline; color: var(--gold); font: 500 1rem/1.4 var(--serif); }
.lantern-choices { display: inline-flex; gap: 8px; }
.lantern-choice { width: 44px; height: 44px; padding: 7px; border: 1px solid var(--cathedral-border); color: var(--muted); background: var(--cathedral-control); }
.lantern-help { grid-column: 1 / -1; max-width: 60ch; margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; text-shadow: 0 1px 6px var(--lantern-night); }
.lantern-route { grid-column: 1 / -1; width: fit-content; min-height: 32px; font-size: .875rem; }
.scene-layer .remparts-ritual-seal { position: absolute; width: 86%; height: auto; aspect-ratio: 1; left: 7%; top: 20%; color: var(--portal-core); filter: drop-shadow(0 0 7px var(--scene-portal)); animation: scene-turn 60s linear infinite; animation-play-state: paused; }
.remparts-ritual-seal .ritual-lines { stroke: var(--portal-core); }
.sound-mute { position: fixed; z-index: 20; bottom: 22px; left: 22px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--cathedral-border); color: var(--ink); background: var(--cathedral-control); font-size: .875rem; }

#ritual-dialog {
  --ritual-darkness: 0; --ritual-scene: 0; --ritual-power: 0; --ritual-shadow: 0;
  --ritual-eyes: 0; --ritual-raven: 0; --ritual-bow: 0; --ritual-drift: 0;
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: transparent;
  color: var(--ink); overscroll-behavior: contain;
}
#ritual-dialog::backdrop { background: transparent; }
.ritual-darkness { position: absolute; inset: 0; background: var(--ritual-night); opacity: var(--ritual-darkness); pointer-events: none; }
.ritual-world { position: absolute; inset: 0; opacity: var(--ritual-scene); overflow: hidden; pointer-events: none; background: var(--ritual-night); }
.ritual-crypt {
  width: 100%; height: 88%; object-fit: cover; object-position: 50% 100%;
  transform: scale(calc(1.015 + var(--ritual-power) * .025)) translateY(calc(var(--ritual-drift) * 2px));
  filter: saturate(.55) brightness(calc(.38 + var(--ritual-power) * .25));
}
.ritual-door { position: absolute; top: 12%; left: 50%; width: min(29vw, 520px); height: 52%; transform: translateX(-50%); background: radial-gradient(ellipse, var(--ritual-night) 30%, transparent 71%); opacity: var(--ritual-power); }
.ritual-apparition {
  position: absolute; top: 8%; left: 50%; height: 63%; aspect-ratio: 2 / 3;
  transform: translateX(-50%) translateY(calc(var(--ritual-bow) * 12px)) rotate(calc(var(--ritual-bow) * 3deg));
  mask-image: linear-gradient(var(--shadow) 72%, transparent 100%);
}
.ritual-raven { width: 100%; height: 100%; object-fit: contain; opacity: var(--ritual-raven); filter: saturate(.45) brightness(.55); }
.ritual-eyes { position: absolute; left: 54.3%; top: 7.8%; width: 5px; height: 3px; border-radius: 50%; background: var(--ritual-copper); box-shadow: 0 0 8px 2px var(--occult-flame), 0 0 28px var(--ritual-glow); opacity: var(--ritual-eyes); transform: rotate(-15deg); }
.ritual-shadow {
  position: absolute; left: 50%; top: 47%; width: min(70vw, 1050px); height: 67%; max-width: none;
  object-fit: fill; transform-origin: 50% 0; transform: translateX(-50%) perspective(500px) rotateX(55deg) scaleY(calc(.35 + var(--ritual-shadow) * 1.3));
  filter: brightness(0) blur(5px); opacity: calc(var(--ritual-shadow) * .88); mix-blend-mode: multiply;
}
.ritual-fog { position: absolute; inset: 45% -15% -12%; background: radial-gradient(ellipse at 45% 50%, var(--ritual-mist), transparent 58%); opacity: calc(.3 + var(--ritual-power) * .22); transform: translateX(calc(var(--ritual-drift) * 3%)); }
.ritual-ash { position: absolute; inset: 0; width: 100%; height: 100%; }
.ritual-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 47%, transparent 22%, var(--ritual-veil) 100%), linear-gradient(0deg, var(--ritual-night), transparent 42%, transparent 77%, var(--ritual-veil)); }
.ritual-heading { opacity: var(--ritual-scene); }
.ritual-caption { font: .6875rem/1.8 var(--font); letter-spacing: .17em; text-transform: uppercase; color: var(--ritual-copper); margin-bottom: 7px; }
.ritual-heading h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.ritual-close { display: flex; gap: 16px; align-items: center; min-height: 44px; padding: 5px 12px; font-size: .8125rem; background: var(--ritual-veil); border: 1px solid var(--metal-dim); }
.ritual-close span { font: 1.7rem/1 var(--serif); }
.ritual-seal-button {
  position: absolute; top: 55%; left: 50%; transform: translateX(-50%); width: min(54vw, 380px); height: 16%;
  opacity: var(--ritual-scene); z-index: 3; padding: 0; border-radius: 50%; touch-action: none; user-select: none;
  background: radial-gradient(ellipse, var(--ritual-glow), transparent 69%);
}
.ritual-seal-button:disabled { cursor: default; opacity: var(--ritual-scene); }
.ritual-seal-button svg { position: absolute; inset: 50% 0 auto; width: 100%; height: auto; transform: translateY(-50%) scaleY(.36); overflow: visible; }
.ritual-seal-base { color: var(--ritual-copper); opacity: .34; }
.ritual-seal-fire { fill: none; stroke: var(--ritual-copper); stroke-width: 3; filter: drop-shadow(0 0 7px var(--occult-flame)); }
.ritual-seal-fire > * { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--ritual-power)); }
.ritual-seal-fire path { stroke-dashoffset: calc(1 - max(0, (var(--ritual-power) - .15) / .85)); }
.ritual-seal-heart { position: absolute; top: 48%; left: 50%; width: 5px; height: 3px; border-radius: 50%; background: var(--occult-flame-core); box-shadow: 0 0 18px 4px var(--occult-flame); opacity: calc(.32 + var(--ritual-power) * .68); }
.ritual-status { min-height: 1.5em; font: 400 clamp(1.3rem, 2.2vw, 1.8rem)/1.3 var(--serif); }
.ritual-interaction { width: 100%; display: grid; justify-items: center; gap: 10px; }
.ritual-interaction > p { max-width: 39ch; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.ritual-progress { width: 95px; height: 2px; background: var(--line); overflow: hidden; }
.ritual-progress span { display: block; width: 100%; height: 100%; transform: scaleX(var(--ritual-power)); transform-origin: left; background: var(--ritual-copper); }
.ritual-reveal { min-height: 44px; padding: 8px 12px; font-size: .75rem; color: var(--muted); text-decoration: underline; text-underline-offset: 5px; }
.ritual-return { min-height: 44px; padding: 12px 24px; border: 1px solid var(--ritual-copper); color: var(--ink); background: var(--ritual-night); font-size: .875rem; }
.ritual-return span { margin-left: 18px; color: var(--ritual-copper); }
.ritual-settings { display: flex; gap: 8px 20px; justify-content: center; flex-wrap: wrap; align-items: center; }
.ritual-settings button { min-height: 44px; padding: 8px 2px; font-size: .75rem; color: var(--muted); }
.ritual-escape { font: .625rem/1.6 var(--font); color: var(--muted); }
.terminal { position: relative; overflow: visible; }
.terminal-feather { position: absolute; right: 38px; top: -43px; width: 54px; height: 108px; transform: rotate(32deg); pointer-events: none; z-index: 2; filter: drop-shadow(0 3px 6px var(--shadow)); }
.feather-vane { fill: var(--metal-dim); stroke: var(--ritual-copper); stroke-width: 1; }
.feather-shaft { fill: none; stroke: var(--ritual-copper); stroke-width: 2; }
.terminal:has(.terminal-feather:not([hidden])) .terminal-bar { padding-right: 112px; }
@media (max-width: 650px) {
  .ritual-crypt { height: 80%; object-position: 50% 100%; }
  .ritual-apparition { top: 14%; height: 48%; }
  .ritual-shadow { top: 42%; width: 130vw; height: 55%; }
  .ritual-seal-button { top: 53%; width: 84vw; height: 18%; }
  .ritual-heading h2 { font-size: 2.3rem; }
  .ritual-caption { font-size: .625rem; }
  .l-ritual-footer { gap: 8px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .ritual-status { font-size: 1.4rem; }
  .ritual-escape { display: none; }
  .terminal-feather { right: 22px; width: 40px; height: 80px; top: -30px; }
  .terminal:has(.terminal-feather:not([hidden])) .terminal-bar { padding-right: 74px; }
}
@media (max-height: 520px) {
  .ritual-heading h2 { font-size: 1.8rem; }
  .ritual-caption { margin-bottom: 0; }
  .ritual-apparition { top: 5%; left: 56%; height: 68%; }
  .ritual-seal-button { top: 48%; left: 30%; width: 35vw; }
  .l-ritual-footer { left: 72%; width: 45%; bottom: 12px; gap: 4px; }
  .ritual-status { font-size: 1.2rem; }
  .ritual-interaction > p { font-size: .75rem; }
  .ritual-escape { display: none; }
}
@media (min-height: 521px) and (max-height: 800px) {
  .l-ritual-footer { gap: 6px; width: min(600px, calc(100% - 40px)); }
  .ritual-status { font-size: 1.3rem; min-height: 0; }
  .ritual-interaction { gap: 4px; }
  .ritual-interaction > p { max-width: none; font-size: .75rem; }
}
@media (max-width: 650px) {
  .lantern-exploration { gap: 4px 12px; }
  .lantern-choices { gap: 6px; }
  .lantern-counter { font-size: .9375rem; }
  .lantern-help { max-width: none; font-size: .8125rem; }
}
@media (max-width: 400px) {
  .l-header .wordmark { font-size: 2.1rem; }
  .l-header .header-contact { padding-inline: 9px; }
}

/* Le volume conserve les cartes et leur ordre de lecture dans chaque présentation. */
.hero-paths { position: absolute; right: 6%; bottom: 175px; z-index: 2; width: 240px; padding: 22px 25px; border-left: 1px solid var(--metal-dim); background: linear-gradient(90deg, var(--eclipse-shade), var(--eclipse-clear)); }
.hero-paths > p { color: var(--muted); font: .75rem/1.5 var(--font); letter-spacing: .08em; margin-bottom: 12px; }
.hero-paths > a { display: flex; gap: 18px; align-items: baseline; font: 400 1.8rem/1.3 var(--serif); min-height: 44px; text-decoration: none; padding-block: 5px; }
.hero-paths > a > span { color: var(--gold); font-size: .875rem; width: 20px; }
.hero-paths > a:hover { color: var(--gold); }
@media (max-width: 900px) { .hero-paths { display: none; } }
.grimoire-index { min-width: 0; padding-block: 20px; }
.grimoire-caption { font: 1.9rem/1.1 var(--serif); color: var(--gold); padding-bottom: 25px; }
.grimoire-chapters { display: grid; gap: 5px; scrollbar-width: thin; scrollbar-color: var(--metal-dim) var(--grimoire-spine); }
.grimoire-chapter { display: flex; align-items: baseline; gap: 14px; width: 100%; min-height: 60px; text-align: left; padding: 15px 12px; color: var(--muted); border-left: 1px solid var(--metal-dim); font-size: .875rem; line-height: 1.5; }
.grimoire-chapter > span:first-child { color: var(--gold); font: 1.2rem/1 var(--serif); }
.grimoire-mode { min-height: 44px; margin-top: 25px; padding: 8px 0; font-size: .8125rem; color: var(--gold); text-align: left; text-decoration: underline; text-underline-offset: 6px; }
.grimoire-volume { min-width: 0; }
.is-grimoire .grimoire-volume { position: relative; padding: 10px; border: 1px solid var(--metal-dim); background: var(--grimoire-spine); box-shadow: 0 30px 70px var(--shadow-soft), inset 0 1px var(--metal-glint); }
.is-grimoire .grimoire-volume::before { content: ""; position: absolute; inset: 4px; pointer-events: none; border: 1px solid var(--line); }
.is-grimoire #project-grid { display: block; }
.is-grimoire #project-grid > article { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 30%; gap: 0; min-height: 580px; padding: 0; border: 0; background: var(--grimoire-page); }
.is-grimoire .project-copy { padding: clamp(24px, 3vw, 46px); background: radial-gradient(ellipse at 0 0, var(--grimoire-wash), transparent 70%); }
.is-grimoire .project-index { margin-bottom: 28px; padding: 0; min-height: 0; }
.is-grimoire .project-feature-label { display: none; }
.is-grimoire .project-copy h3 { font-size: clamp(2.3rem, 3.2vw, 3.8rem); font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; line-height: 1.06; max-width: 12ch; }
.is-grimoire .project-copy .project-contribution { margin-top: 28px; line-height: 1.8; }
.is-grimoire .grimoire-notes { display: block; margin-top: 28px; }
.grimoire-notes h4 { margin: 20px 0 8px; font: 400 1.4rem/1.2 var(--serif); color: var(--gold); }
.grimoire-notes p { color: var(--muted); font-size: .9375rem; line-height: 1.75; }
.grimoire-notes .tags { margin-top: 25px; gap: 8px; }
.grimoire-notes .tags span { background: transparent; border: 1px solid var(--line); font-size: .75rem; padding: 4px 8px; }
.is-grimoire .project-visual { position: relative; inset: auto; width: auto; height: 100%; margin: 0; padding: clamp(15px, 2.2vw, 35px); display: flex; align-items: center; justify-content: center; order: 0; border-left: 1px solid var(--line); background: linear-gradient(90deg, var(--grimoire-spine), transparent 9%, var(--grimoire-wash)), var(--grimoire-page); }
.is-grimoire .project-visual::before { content: ""; position: absolute; inset: 0; background: url("../assets/grain.svg"); opacity: .065; pointer-events: none; }
.is-grimoire .project-mount { width: 100%; padding: 8px; background: var(--mount); }
.is-grimoire .project-poster { min-height: 0; }
.is-grimoire .poster-number { font-size: 32cqw; }
.is-grimoire .project-engraving { width: 90%; }
.is-grimoire .project-bottom { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.is-grimoire .project-actions { gap: 8px 20px; }
.grimoire-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--metal-dim); }
.grimoire-pagination button { min-height: 44px; padding: 8px 0; color: var(--gold); font-size: .875rem; }
.grimoire-pagination button:disabled { cursor: default; opacity: .35; }
.grimoire-page { color: var(--muted); font: italic 1.15rem/1 var(--serif); text-align: center; }
.grimoire-pagination-state { display: grid; justify-items: center; gap: 2px; }
.grimoire-pagination .grimoire-motion { font-size: .75rem; min-height: 32px; padding: 5px 12px; color: var(--muted); }
.grimoire-effects { position: absolute; z-index: 4; overflow: hidden; pointer-events: none; isolation: isolate; }
.grimoire-ghost { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.grimoire-fire, .grimoire-burn { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.grimoire-ember { fill: none; stroke-linejoin: round; }
.grimoire-charred { stroke: var(--grimoire-char); stroke-width: 12; }
.grimoire-glow { stroke: var(--grimoire-fire); stroke-width: 2; filter: drop-shadow(0 0 7px var(--grimoire-fire)); }
.grimoire-core { stroke: var(--grimoire-fire-core); stroke-width: .5; }
.grimoire-pen { position: absolute; width: clamp(20px, 2.6vw, 32px); height: clamp(69px, 9vw, 110px); transform: translate(-50%, -100%) rotate(28deg); transform-origin: 50% 100%; opacity: 0; filter: drop-shadow(3px 4px 3px var(--shadow-deep)); }
.pen-barrel { fill: var(--grimoire-pen); stroke: var(--grimoire-pen-gold); stroke-width: .8; }
.pen-trim, .pen-nib { fill: var(--grimoire-pen-gold); stroke: var(--grimoire-pen-light); stroke-width: .6; }
.pen-engraving { fill: none; stroke: var(--grimoire-pen-light); stroke-width: .6; }
.pen-slit { fill: none; stroke: var(--grimoire-pen); stroke-width: 1; }
.is-catalog .grimoire-index { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 12px 25px; }
.is-catalog .grimoire-caption { padding: 0; }
.is-catalog .grimoire-chapters { display: none; }
.is-catalog .grimoire-mode { margin: 0; }
.places-trigger { min-height: 44px; text-decoration: underline; text-underline-offset: 6px; padding: 8px 0; }
.places-dialog { width: min(1140px, 94vw); max-height: 90dvh; padding: 35px; background: var(--bg); border-color: var(--metal-dim); }
.places-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 30px; }
.places-heading h2 { font-size: clamp(3rem, 5vw, 4.6rem); margin-top: 10px; }
.places-close { min-height: 44px; font-size: .875rem; color: var(--gold); padding: 8px 0; }
.places-close > span { margin-left: 12px; }
.place-card { position: relative; display: flex; align-items: end; min-width: 0; height: 220px; padding: 22px; overflow: hidden; isolation: isolate; border: 1px solid var(--metal-dim); text-decoration: none; background: var(--grimoire-page); }
.place-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, var(--bg), transparent 85%); }
.place-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease); }
.place-card[href="#projets"] > img { object-position: 62% 45%; }
.place-card[href="#galerie"] > img { object-position: center 35%; }
.place-card > span { display: grid; gap: 7px; font: 400 1.75rem/1 var(--serif); }
.place-card small { font: .75rem/1.5 var(--font); color: var(--muted); }
.places-shortcuts { display: flex; flex-wrap: wrap; gap: 10px 25px; border-top: 1px solid var(--line); margin-top: 25px; padding-top: 18px; }
.places-shortcuts a { display: flex; min-height: 44px; align-items: center; font-size: .875rem; color: var(--gold); }

.contact-section.sanctuary { position: relative; isolation: isolate; overflow: clip; min-height: 100svh; background: var(--bg); border-top-color: var(--metal-dim); }
.sanctuary-world { position: absolute; inset: 0 0 auto; height: clamp(620px, 56.25vw, 1080px); z-index: -1; pointer-events: none; }
.sanctuary-image, .sanctuary-dust, .sanctuary-veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.sanctuary-image { max-width: none; object-fit: cover; object-position: center; }
.sanctuary-veil { background: linear-gradient(0deg, var(--bg), transparent 38%, transparent 82%, var(--sanctuary-veil)), linear-gradient(90deg, var(--sanctuary-veil), transparent 30%, transparent 70%, var(--sanctuary-veil)); }
.sanctuary-aura { position: absolute; width: calc(var(--sanctuary-radius, 120px) * 4); aspect-ratio: 1; left: var(--sanctuary-x, 50%); top: var(--sanctuary-y, 32.5%); transform: translate(-50%, -50%); background: radial-gradient(circle, transparent 28%, var(--sanctuary-glow) 40%, transparent 65%); opacity: calc((.3 + var(--sanctuary-power, 0) * .7) * var(--sanctuary-breath, 1)); mix-blend-mode: screen; }
.sanctuary-heart { position: absolute; left: var(--sanctuary-x, 50%); top: var(--sanctuary-y, 32.5%); width: calc(var(--sanctuary-radius, 120px) * 1.62); aspect-ratio: 1; transform: translate(-50%, -50%) rotate(var(--sanctuary-turn, 0deg)); opacity: var(--sanctuary-power, 0); --ritual-ink: var(--sanctuary-copper); }
.sanctuary-heart svg { width: 100%; height: 100%; fill: none; stroke: var(--sanctuary-copper); filter: drop-shadow(0 0 8px var(--sanctuary-glow)); }
.sanctuary-open { position: absolute; z-index: 2; left: var(--sanctuary-x, 50%); top: var(--sanctuary-y, 200px); width: calc(var(--sanctuary-radius, 100px) * 1.55); aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; color: var(--gold); background: transparent; padding: 14px; text-align: center; }
.sanctuary-open > span { display: block; max-width: 10ch; font: 400 1.5rem/1.1 var(--serif); text-shadow: 0 2px 10px var(--shadow); padding: 10px; background: var(--eclipse-shade); }
.sanctuary-heading { position: absolute; top: 35px; left: 0; right: 0; }
.sanctuary-heading > p:last-child { font: italic 1.1rem/1.5 var(--serif); color: var(--muted); margin-top: 10px; }
.sanctuary .contact-content { position: relative; padding-block: clamp(510px, 38vw, 720px) 100px; text-align: center; display: grid; justify-items: center; }
.sanctuary .contact-content h2 { font-size: clamp(5rem, 9vw, 9rem); }
.sanctuary .contact-content > p { max-width: 57ch; margin-top: 22px; font-size: 1rem; color: var(--muted); }
.sanctuary .contact-links { justify-content: center; margin-top: 30px; }
.sanctuary-controls { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 30px; }
.sanctuary-controls button { color: var(--muted); min-height: 44px; padding: 8px 0; font-size: .875rem; }
.sanctuary-controls .sanctuary-pause { min-width: 80px; border: 1px solid var(--metal-dim); padding-inline: 15px; }
@media (max-width: 1100px) {
  .is-grimoire #project-grid > article { grid-template-columns: minmax(0, 1fr) 25%; }
  .is-grimoire .project-visual { padding: 15px; }
  .is-grimoire .project-copy { padding: 28px; }
}
@media (max-width: 900px) {
  .grimoire-index { padding: 0; }
  .grimoire-caption { padding-bottom: 15px; font-size: 1.65rem; }
  .grimoire-chapters { display: flex; overflow-x: auto; gap: 8px; padding: 6px; scroll-padding-inline: 6px; border-block: 1px solid var(--line); }
  .grimoire-chapter { width: auto; flex: 0 0 auto; max-width: 220px; min-height: 55px; padding: 10px 14px; border: 1px solid transparent; align-items: center; }
  .grimoire-chapter > span:last-child { max-width: 17ch; }
  .grimoire-mode { margin-top: 8px; }
  .is-grimoire #project-grid > article { grid-template-columns: minmax(0, 1fr) 30%; min-height: 520px; }
  .is-grimoire .project-copy { padding: 32px; }
  .is-grimoire .project-visual { padding: 24px; }
  .place-card { height: 190px; padding: 16px; }
}
@media (max-width: 650px) {
  .grimoire-caption { display: none; }
  .grimoire-chapter { font-size: .875rem; }
  .is-grimoire .grimoire-volume { padding: 6px; }
  .is-grimoire #project-grid > article { display: block; min-height: 0; }
  .is-grimoire .project-copy { padding: 25px 20px; }
  .is-grimoire .project-index { padding-right: 62px; min-height: 60px; margin-bottom: 22px; }
  .is-grimoire .project-copy h3 { font-size: 2.8rem; max-width: none; }
  .is-grimoire .project-visual { position: absolute; width: 55px; height: auto; top: 22px; right: 18px; padding: 0; border: 0; background: none; }
  .is-grimoire .project-mount { padding: 4px; }
  .is-grimoire .project-copy .project-contribution { font-size: 1rem; margin-top: 22px; line-height: 1.75; }
  .grimoire-notes p { font-size: 1rem; }
  .grimoire-pagination { padding-inline: 15px; }
  .grimoire-pagination button { font-size: .8125rem; }
  .is-catalog .grimoire-index { justify-content: end; }
  .places-dialog { padding: 23px 18px; }
  .places-heading { margin-bottom: 22px; gap: 10px; }
  .places-heading .eyebrow { font-size: .75rem; letter-spacing: .02em; }
  .place-card { height: 180px; padding: 14px; }
  .place-card > span { font-size: 1.6rem; }
  .place-card small { font-size: .75rem; }
  .places-shortcuts { gap: 4px 20px; margin-top: 20px; padding-top: 14px; }
  .sanctuary-heading { top: 28px; }
  .sanctuary-heading .eyebrow { font-size: .75rem; }
  .sanctuary-heading > p:last-child { font-size: 1rem; max-width: 23ch; }
  .sanctuary .contact-content { padding-block: 440px 100px; }
  .sanctuary .contact-content h2 { font-size: 5.5rem; }
  .sanctuary .contact-content > p { margin-top: 18px; }
  .sanctuary .contact-links { flex-direction: column; gap: 18px; }
  .sanctuary-open > span { font-size: 1.3rem; }
}
