/* Compact dock only. One accessible brand link; artwork keeps its own ratio. */
@media ((max-width: 1024px) or ((max-width: 1320px) and ((max-height: 560px) or (pointer: coarse)))) {
  html body[class] .site-nav.is-menu-dock {
    --mobile-menu-size: 44px;
    --mobile-dock-gap: 8px;
    --mobile-dock-gutter: max(12px, env(safe-area-inset-left), env(safe-area-inset-right));
    top: max(12px, env(safe-area-inset-top));
    width: calc(100% - 2 * var(--mobile-dock-gutter));
    max-width: calc(100% - 2 * var(--mobile-dock-gutter));
    display: grid;
    grid-template-columns: var(--mobile-menu-size) minmax(0, 1fr) var(--mobile-menu-size);
    column-gap: var(--mobile-dock-gap);
    row-gap: 0;
    align-items: center;
    min-height: 66px;
    padding: 10px 12px;
    box-sizing: border-box;
    /* Keep the compact shell shape while its menu height changes. */
    border-radius: 33px;
    overflow: clip;
  }
  html body[class] .site-nav.is-menu-dock .brand.lg-btn {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    width: 100% !important;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    translate: none !important;
    touch-action: manipulation;
  }
  html body[class] .site-nav.is-menu-dock .brand.lg-btn::before,
  html body[class] .site-nav.is-menu-dock .brand.lg-btn::after,
  html body[class] .site-nav.is-menu-dock .brand > :is(.lg-layers, .lg-gl, .lg-reflection, .dock-feedback, .lg-ripple) {
    display: none !important;
  }
  html body[class] .site-nav.is-menu-dock .brand > .lg-content {
    position: relative;
    display: block;
    width: 100% !important;
    height: 44px;
    padding: 0;
    transform: none !important;
  }
  html body[class] .site-nav.is-menu-dock .brand .brand-avatar {
    position: absolute;
    left: 0;
    top: 50%;
    width: 32px;
    height: 40px;
    transform: translateY(-50%);
  }
  /* Prepared HTML paints before the module moves the word into its home link.
     The brand starts 13px inside the shell (12px padding + 1px border). */
  html body[class] .site-nav.is-menu-dock .brand .dock-wordmark {
    position: absolute;
    left: calc(50vw - var(--mobile-dock-gutter) - 13px);
    max-width: none;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    pointer-events: none;
  }
  html body[class] .site-nav.is-menu-dock .dock-mobile-home {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 8px;
    z-index: 3;
    touch-action: manipulation;
    text-decoration: none;
    background: none;
    border: 0;
    box-shadow: none;
  }
  html body[class] .site-nav.is-menu-dock .dock-mobile-home .dock-wordmark {
    font-size: 1.5rem;
    pointer-events: none;
  }
  html body[class] .site-nav.is-menu-dock .dock-mobile-home:focus-visible {
    outline: 2px solid #d5f6ff;
    outline-offset: 2px;
    border-radius: 6px;
  }
  html body[class] .site-nav.is-menu-dock .brand:focus-visible {
    outline: 2px solid #d5f6ff !important;
    outline-offset: 2px;
  }
  html body[class] .site-nav.is-menu-dock .dock-menu-toggle.lg-btn {
    grid-column: 3;
    grid-row: 1;
    width: var(--mobile-menu-size);
    height: var(--mobile-menu-size);
    min-width: 44px;
    min-height: 44px;
    margin: 0;
  }
  html body[class] .site-nav.is-menu-dock .music-toggle { display: none !important; }
  html body[class] .site-nav.is-menu-dock .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    position: static;
    inset: auto;
    width: auto;
    height: auto !important;
    min-width: 0;
    box-sizing: border-box;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 0 2px;
    margin: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html body[class] .site-nav.is-menu-dock .nav-links li { padding: 4px; min-width: 0; overflow: clip; border-radius: 1.4rem; }
  html body[class] .site-nav.is-menu-dock .nav-links a.lg-btn { width: 100%; min-height: 44px; height: auto; box-sizing: border-box; }
  html body[class] .site-nav.is-menu-dock .nav-links .lg-content { max-width: 100%; }
  html body[class] .site-nav.is-menu-dock.is-menu-open .nav-links {
    max-height: min(19rem, calc(100dvh - 7rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
}




@media ((max-width: 1024px) or ((max-width: 1320px) and ((max-height: 560px) or (pointer: coarse)))) {
  html body[class] .site-nav.is-menu-dock.is-menu-open .nav-links,
  html body[class] .site-nav.is-menu-dock.is-menu-open .nav-links li,
  html body[class] .site-nav.is-menu-dock.is-menu-open .nav-links a {
    animation-duration: 200ms !important;
    animation-delay: 0ms !important;
  }
}

@media ((max-width: 1024px) or ((max-width: 1320px) and ((max-height: 560px) or (pointer: coarse)))) {
  html body[class] .site-nav.is-menu-dock .nav-links .lg-content > span { overflow-wrap: anywhere; hyphens: auto; line-height: 1.35; }
  html body[class] .site-nav.is-menu-dock .nav-links a:focus-visible { outline-offset: 1px; }
}

/* Rounded glass icons share an optical silhouette across themes. Only the sheet for this page is fetched. */
#mainNav { --sculptures: url(images/sculptures-home-page.da03b07b.webp); }
.project-page #mainNav { --sculptures: url(images/sculptures-project-page.94b4b245.webp); }
.tutorials-page #mainNav { --sculptures: url(images/sculptures-tutorials-page.3837042a.webp); }
.contacts-page #mainNav { --sculptures: url(images/sculptures-contacts-page.1c8b2be0.webp); }
.cv-page #mainNav { --sculptures: url(images/sculptures-cv-page.6b7633cc.webp); }
/* The theme is known before the browser reaches the navigation. */
.project-detail[data-dock-theme="launchguard"] #mainNav { --sculptures: url(images/sculptures-launchguard.8ddd1b42.webp); }
.project-detail[data-dock-theme="olilap-os"] #mainNav { --sculptures: url(images/sculptures-olilap-os.a3ba8721.webp); }
.project-detail[data-dock-theme="vorcyx"] #mainNav { --sculptures: url(images/sculptures-vorcyx.904fdb33.webp); }
#mainNav .dock-sculpture { display: none; }
@media screen and (forced-colors: none) {
  #mainNav .dock-icon { align-content: center; }
  #mainNav .dock-sculpture {
    --column: 0%;
    pointer-events: none; display: block; position: relative; isolation: isolate;
    width: 2.46rem; height: 2.46rem;
    background: var(--sculptures) var(--column) center / 600% 100% no-repeat;
  }
  #mainNav [data-shape="tools"]  { --column: 20%; }
  #mainNav [data-shape="cap"]    { --column: 40%; }
  #mainNav [data-shape="people"] { --column: 60%; }
  #mainNav [data-shape="brain"]  { --column: 80%; }
  #mainNav [data-shape="music"]  { --column: 100%; width: 1.78rem; height: 1.78rem; }

  #mainNav .dock-sculpture::before, #mainNav .dock-sculpture::after {
    content: ''; position: absolute; inset: 0; mix-blend-mode: screen;
    mask: url(images/sculptures-reflets.1a907dd0.webp) var(--column) var(--side) / 600% 200% no-repeat;
  }
  #mainNav .dock-sculpture::before { --side: 0%; background: var(--light-left, rgba(206,232,255,.28)); }
  #mainNav .dock-sculpture::after { --side: 100%; background: var(--light-right, rgba(240,210,230,.16)); }

  #mainNav .dock-icon:has(.dock-sculpture) svg,
  #mainNav .music-toggle:not([data-music-state="active"],[data-music-state="silent"]) .music-toggle-symbol:has(.dock-sculpture) > i,
  #mainNav .music-toggle:is([data-music-state="active"],[data-music-state="silent"]) .dock-sculpture { display: none; }
  #mainNav .music-toggle-symbol:has(.dock-sculpture) { display: grid; place-content: center; }
  @media (max-width: 1024px) {
    #mainNav .dock-icon .dock-sculpture { width: 32px; height: 32px; }
  }
}

/* A touch control has one glass face and its page-coloured relief. The
   second rotating rim and travelling glare otherwise run even behind it. */
@media (pointer: coarse) {
  .lg-btn .lg-rimIdle::before { animation: none; transform: translate(-50%, -50%) rotate(26deg); }
  .lg-btn .lg-glare::before { content: none; }
  html:not(.music-active) .lg-btn > .lg-reflection::before { animation-play-state: paused; }
  html body .ambient-orbs > span {
    filter: none;
    opacity: .14;
  }
  /* While the shell changes dimensions a backdrop blur would resample
     everything scrolling beneath the menu at every intermediate size. */
  html body[class] #mainNav:is([data-dock-state="closing"],[data-dock-state="opening"]) {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  html body[class] #mainNav:is([data-dock-state="bubble"],[data-dock-state="docked"]):not(.dock-measuring)
    > :is(.nav-links,.dock-menu-toggle,.music-toggle) { display: none !important; }
}
@media (scripting: enabled) {
  .hack-catalogue:not([data-catalogue-ready]) .hack-card:nth-of-type(n+13) { display: none; }
}
@media screen {
  :where(html, body, body *) { scrollbar-width: none; }
  ::-webkit-scrollbar { display: none; }
}
/* When the touch renderer repeatedly misses its budget, retain the tinted
   glass faces, artwork, reading ring and sampled highlights. Avoid resampling
   the wallpaper or running ornamental sweeps behind the controls. */
@media (max-width: 1024px) and (pointer: coarse) {
  html[data-mobile-effects="economy"] :is(.ambient-orbs,.lg-glare,.lg-surface__glare,.lg-surface__rim-idle,.dock-contour-aura,.brand-aura__light) { display: none !important; }
  html[data-mobile-effects="economy"] :is(.lg-btn,.lg-surface,.lg-surface__material,.nav-links,.nav-links li) {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important; filter: none !important;
  }
  html[data-mobile-effects="economy"] :is(.site-nav,.lg-surface,.lg-btn,.brand-aura,.home-wordmark)::before,
  html[data-mobile-effects="economy"] :is(.site-nav,.lg-surface,.lg-btn,.brand-aura,.home-wordmark)::after {
    filter: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  html[data-mobile-effects="economy"] .site-nav .nav-links li { animation: none !important; }
}

/* The idle dock follows the diameter of each glyph control. Text mode uses
   the natural caption widths already defined by the navigation. */
@media screen and (min-width: 1025px) and ((min-width: 1321px) or ((min-height: 561px) and (pointer: fine))) and (forced-colors: none) {
  html body[class] #mainNav { --dock-icon-diameter: 3.8rem; }
  html body[class] #mainNav:is([data-dock-state="full"],[data-dock-state="opening"],[data-dock-state="closing"],.dock-measuring):not([data-dock-labels="true"]),
  html body[class] #mainNav:not([data-dock-ready]):not(:hover):not(:focus-within) {
    & :is(.brand.dock-brand.lg-btn,.nav-links a.lg-btn,.music-toggle,.dock-menu-toggle) {
      width: var(--dock-icon-diameter) !important;
      min-width: var(--dock-icon-diameter) !important;
      height: var(--dock-icon-diameter) !important;
      max-width: var(--dock-icon-diameter) !important; flex: 0 0 var(--dock-icon-diameter) !important; padding: 0 !important; border-radius: 50% !important;
    }
  }

}

@media (min-width: 1025px) and ((min-width: 1321px) or ((min-height: 561px) and (pointer: fine))) {
  #mainNav .dock-label { overflow: clip; }
}

@media ((max-width: 1024px) or ((max-width: 1320px) and ((max-height: 560px) or (pointer: coarse)))) {
  #mainNav .dock-menu-toggle__bars span { transition: transform 145ms ease-out, opacity 100ms ease-out; }
  #mainNav .dock-menu-toggle__bars span:nth-child(1),
  #mainNav .dock-menu-toggle__bars span:nth-child(3) { top: calc(50% - .07rem); }
  #mainNav:not(.is-menu-open) .dock-menu-toggle__bars span:nth-child(1) { transform: translateY(-.43rem); }
  #mainNav:not(.is-menu-open) .dock-menu-toggle__bars span:nth-child(3) { transform: translateY(.43rem); }
}
@media ((max-width: 1024px) or ((max-width: 1320px) and ((max-height: 560px) or (pointer: coarse)))) and (pointer: coarse) {
  html body[class] #mainNav.dock-adaptive {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  html body[class] #mainNav.dock-adaptive > .lg-surface__material {
    background: linear-gradient(145deg,rgba(17,36,48,.42),rgba(13,14,27,.28)) !important;
    filter: none !important;
  }
  html body[class] #mainNav.dock-adaptive > .lg-surface__material > *,
  html body[class] #mainNav.dock-adaptive > .lg-surface__material::after { display: none !important; }
  #mainNav[data-dock-flight] .dock-sculpture::before, #mainNav[data-dock-flight] .dock-sculpture::after { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  #mainNav .dock-menu-toggle__bars span { transition: none; }
}

/* Flatten the existing circular glass face on touch. Icon, live page tint,
   focus ring, labels and the menu glyph remain independent. */
@media screen and ((max-width: 1024px) or ((max-width: 1320px) and ((max-height: 560px) or (pointer: coarse)))) and (pointer: coarse) and (forced-colors: none) {
  html body[class] #mainNav.dock-adaptive :is(.nav-links a,.dock-menu-toggle).lg-btn {
    background: url(images/verre-tactile.421c07eb.webp) center / 100% 100% no-repeat !important;
    border-color: transparent !important; box-shadow: none !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  html body[class] #mainNav.dock-adaptive :is(.nav-links a,.dock-menu-toggle).lg-btn > :is(.lg-layers,.lg-reflection,.lg-gl),
  html body[class] #mainNav.dock-adaptive :is(.nav-links a,.dock-menu-toggle).lg-btn::before,
  html body[class] #mainNav.dock-adaptive :is(.nav-links a,.dock-menu-toggle).lg-btn::after {
    display: none !important;
  }
  html body[class] #mainNav.dock-adaptive .dock-menu-toggle__halo { animation: none !important; }
  html body[class] #mainNav[data-dock-flight] {
    background: transparent !important; box-shadow: none !important; border-color: transparent !important;
    pointer-events: none; overflow: visible;
  }
  html body[class] #mainNav[data-dock-flight] > .lg-surface__material {
    transform-origin: top left; overflow: hidden; filter: none !important; animation: none !important;
  }
  html body[class] #mainNav[data-dock-flight] > :is(.brand,.dock-menu-toggle,.dock-reopen,.nav-links):not([inert]) { pointer-events: auto; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html body[class] #mainNav.dock-adaptive[data-dock-state="full"] .nav-links a.lg-btn {
    transition: scale 125ms ease-out !important;
  }
  html body[class] #mainNav.dock-adaptive[data-dock-state="full"] .nav-links a.lg-btn:is(:hover,:focus-visible) { scale: 1.035; }
}

/* Commit layout only at the endpoints; the browser interpolates the clip and translation. */
html body[class] #mainNav.dock-adaptive {
  --dock-corner-x: clamp(16px, 1.5vw, 24px);
  --dock-bubble-size: calc(5.4rem + 2px);
  --dock-rest-top: max(1.05rem, env(safe-area-inset-top));
}
html body[class] #mainNav[data-dock-flight] {
  position: fixed; left: var(--flight-left) !important; top: var(--flight-top) !important;
  width: var(--flight-width) !important; height: var(--flight-height) !important;
  min-height: 0 !important; margin: 0 !important; transform: none !important;
  align-content: start; overflow: clip; transition: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
/* The fixed shell keeps its hit-test geometry. Only the material draws a border. */
html body[class] #mainNav.dock-adaptive[data-dock-flight] {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html body[class] #mainNav.dock-adaptive[data-dock-flight]::before,
html body[class] #mainNav.dock-adaptive[data-dock-flight]::after { content: none !important; }
html body[class] #mainNav.dock-adaptive[data-dock-flight] > .lg-surface__material {
  transform-origin: top left;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px rgb(210 224 237 / .34);
  pointer-events: none;
}
html body[class] #mainNav[data-dock-flight] :is(.lg-btn,.lg-surface__material,.nav-links,.nav-links li) {
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
html body[class] #mainNav[data-dock-flight] :is(.lg-rimIdle,.lg-glare,.lg-surface__glare,.lg-surface__rim-idle)::before {
  animation-play-state: paused !important;
}
html body[class] #mainNav[data-dock-state="bubble"] {
  position: fixed; left: var(--dock-corner-x); top: var(--dock-rest-top);
  width: var(--dock-bubble-size) !important; height: var(--dock-bubble-size) !important; min-height: 0;
  display: grid; grid-template: 1fr / 1fr; place-items: center; padding: 0; margin: 0;
  transform: none; border-radius: 50%; overflow: clip; transition: none !important;
}
html body[class] #mainNav[data-dock-state="bubble"] > :is(.nav-links,.dock-menu-toggle,.music-toggle) { display: none !important; }
html body[class] #mainNav[data-dock-state="bubble"] .brand.dock-brand { grid-area: 1 / 1; justify-self: center; width: var(--dock-brand-base) !important; min-width: 0; }
html body[class] #mainNav .dock-reopen { inset: 0 auto auto 0; width: var(--dock-bubble-size); height: var(--dock-bubble-size); transform: none; }
html body[class] #mainNav .dock-reopen[hidden] { position: fixed; left: var(--dock-corner-x); top: var(--dock-rest-top); }
html body[class] #mainNav .dock-icon, html body[class] #mainNav .dock-label {
  transition: opacity 120ms ease-out, transform 145ms ease-out;
}
@media ((max-width: 1024px) or ((max-width: 1320px) and ((max-height: 560px) or (pointer: coarse)))) {
  html body[class] #mainNav.dock-adaptive { --dock-corner-x: var(--mobile-dock-gutter); --dock-bubble-size: 74px; --dock-rest-top: max(12px, env(safe-area-inset-top)); }
  html body[class] #mainNav.is-menu-dock .nav-links { transition: none !important; }
  html body[class] #mainNav.is-menu-dock :is(.nav-links li,.lg-surface__material) { animation: none !important; }
  html body[class] #mainNav.is-menu-dock[data-dock-menu-closing] .nav-links {
    display: grid !important; visibility: visible !important; opacity: 1; transform: none !important;
    pointer-events: none !important; max-height: min(19rem,calc(100dvh - 7rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
    margin-top: .36rem; padding: .72rem !important;
  }
}

@media screen and (min-width: 1025px) and ((min-width: 1321px) or ((min-height: 561px) and (pointer: fine))) and (forced-colors: none) {
  html body[class] #mainNav.dock-adaptive {
    --dock-caption-time: 240ms;
    --dock-caption-ease: cubic-bezier(.3,.08,.19,1);
  }
  html body[class] #mainNav[data-dock-labels="true"] :is(.brand.dock-brand,.nav-links a,.music-toggle).lg-btn {
    height: var(--dock-icon-diameter);
  }
  html body[class] #mainNav.dock-adaptive[data-dock-state="full"][data-dock-labels="false"] { gap: 1.15rem; }
  html body[class] #mainNav.dock-adaptive[data-dock-state="full"][data-dock-labels="false"] .nav-links { gap: 1.15rem; }
  /* The unframed symbol occupies only the centre of its 3.8rem hit target. */
  html body[class] #mainNav.dock-adaptive[data-dock-state="full"][data-dock-labels="false"] > .brand.dock-brand {
    margin-inline-end: -1rem !important;
  }
  html body[class] #mainNav.dock-adaptive[data-dock-labels="true"] { gap: .55rem; }
  html body[class] #mainNav[data-dock-labels="true"] .nav-links { gap: .35rem; }
  html body[class] #mainNav[data-dock-labels="true"] .brand.dock-brand.lg-btn { width: 5.85rem; }
  html body[class] #mainNav[data-dock-labels="true"] .nav-links a.lg-btn {
    width: max-content;
    min-width: var(--dock-icon-diameter) !important;
    padding-inline: clamp(.62rem,.78vw,.76rem) !important;
  }
  html body[class] #mainNav[data-dock-labels="true"] .nav-links a.lg-btn > .lg-content {
    width: max-content !important; max-width: none;
  }
  html body[class] #mainNav[data-dock-labels="true"] .music-toggle.lg-btn {
    width: var(--dock-icon-diameter);
  }
  html body[class] #mainNav.dock-adaptive .nav-links a.lg-btn > .lg-content {
    display: grid;
    place-items: center;
    padding: 0;
  }
  html body[class] #mainNav.dock-adaptive .dock-label {
    position: relative;
    grid-area: 1 / 1;
    width: max-content;
    max-width: none;
    overflow: visible;
    justify-self: center;
  }
  html body[class] #mainNav.dock-adaptive:is([data-dock-state="full"],[data-dock-state="opening"]) .brand.dock-brand .brand-avatar {
    display: grid;
  }
  html body[class] #mainNav.dock-adaptive:is([data-dock-state="full"],[data-dock-state="opening"]) .brand.dock-brand .dock-brand-tail {
    display: block;
    width: 4.85rem;
    max-width: none;
  }
  html body[class] #mainNav.dock-adaptive .dock-brand-lockup {
    grid-template-columns: minmax(0,1fr);
  }
  html body[class] #mainNav.dock-adaptive[data-dock-ready] :is(.dock-icon,.brand-avatar) {
    opacity: 1;
    transform: none;
  }
  html body[class] #mainNav.dock-adaptive[data-dock-ready] :is(.dock-label,.dock-brand-tail) {
    opacity: 0;
    transform: translateY(4px) scale(.96);
  }
  html body[class] #mainNav[data-dock-labels="true"]:is([data-dock-state="full"],[data-dock-state="opening"]) :is(.dock-icon,.dock-brand .brand-avatar) {
    opacity: 0;
    transform: translateY(-4px) scale(.92);
  }
  html body[class] #mainNav[data-dock-labels="true"]:is([data-dock-state="full"],[data-dock-state="opening"]) :is(.dock-label,.dock-brand-tail) {
    opacity: 1;
    transform: none;
  }
  html body[class] #mainNav.dock-adaptive :is(.dock-label,.dock-icon,.brand.dock-brand .brand-avatar,.brand.dock-brand .dock-brand-tail) {
    transition: opacity var(--dock-caption-time) var(--dock-caption-ease), transform var(--dock-caption-time) var(--dock-caption-ease);
  }
  @media (prefers-reduced-motion: reduce) {
    html body[class] #mainNav.dock-adaptive :is(.dock-label,.dock-icon,.brand.dock-brand .brand-avatar,.brand.dock-brand .dock-brand-tail) {
      transition: none;
    }
  }
}

/* Keep the lens within its own face. The enclosure supplies the backdrop. */
html body[class] #mainNav.dock-adaptive .lg-btn.lg-gl-on {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body[class] #mainNav .lg-btn > .lg-gl {
  clip-path: inset(var(--lg-canvas-margin, 56px) round 999px);
}



@media screen and (forced-colors: none) {
  html body[class] #mainNav.dock-adaptive.lg-surface {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  html body[class] #mainNav.dock-adaptive.lg-surface > .lg-surface__material {
    background: linear-gradient(145deg,#18263c70,#080d1a58) !important;
  }
  html body[class] #mainNav.dock-adaptive > .lg-surface__material > * { display: none !important; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  :root { --motion-settle: cubic-bezier(.22,.78,.22,1); --motion-time: 210ms; }

  /* Native same-origin navigation retains download, history and fragment behavior. */
  ::view-transition-group(root) { animation-duration: 185ms; }
  ::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
  ::view-transition-new(root) { animation: olilap-page-in 185ms var(--motion-settle) both; mix-blend-mode: normal; }

  :is(.project-record,.welcome-preferences,.cv-personal-disclosure)::details-content {
    opacity: 0; translate: 0 -3px;
    transition: opacity 150ms ease-out, translate var(--motion-time) var(--motion-settle), content-visibility 160ms allow-discrete;
  }
  :is(.project-record,.welcome-preferences,.cv-personal-disclosure)[open]::details-content { opacity: 1; translate: 0 0; }

  .tutorial-dialog { opacity: 0; translate: 0 8px; }
  .tutorial-dialog[open] { opacity: 1; translate: 0 0; }
  .tutorial-dialog[open], .tutorial-dialog[open]::backdrop {
    transition: opacity 150ms ease-out, translate var(--motion-time) var(--motion-settle);
  }
  .tutorial-dialog[open]::backdrop { opacity: 1; }
  @starting-style {
    .tutorial-dialog[open] { opacity: 0; translate: 0 8px; }
    .tutorial-dialog[open]::backdrop { opacity: 0; }
  }
  .tutorial-dialog[open][data-leaving], .tutorial-dialog[open][data-leaving]::backdrop {
    opacity: 0; translate: 0 0; transition: opacity 115ms ease-out;
  }
  .career-stop .career-glyph { transition: scale 170ms var(--motion-settle), border-color 150ms ease-out; }
  .career-stop input:checked + .career-glyph { scale: 1.06; }
  html .home-page #cv .career-entry:has(input:checked) > .career-note { animation: olilap-detail-in 175ms var(--motion-settle); }
  .cv-skill-tabpanel:not([hidden]), .hack-card:not([hidden]), .hack-empty:not([hidden]) {
    @starting-style { opacity: 0; }
    transition: opacity 150ms ease-out;
  }

  @keyframes olilap-page-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes olilap-detail-in { from { opacity: 0; translate: 0 3px; } to { opacity: 1; translate: 0 0; } }
}

/* Preserve the original coloured silhouette. On a small touch screen the glow
   is prefiltered once; only the opacity of this small bitmap changes. */
@media screen and (max-width: 1024px) and (pointer: coarse) {
  .project-page .brand-aura { --touch-aura: url(images/aura-tactile-projets.121c99d8.webp); }
  .tutorials-page .brand-aura { --touch-aura: url(images/aura-tactile-tutoriels.b6f229c9.webp); }
  .contacts-page .brand-aura { --touch-aura: url(images/aura-tactile-contacts.3e754ce8.webp); }
  .cv-page .brand-aura { --touch-aura: url(images/aura-tactile-cv.41b6be9b.webp); }
  html body[class] .brand-aura .brand-aura__light--diffuse {
    background: var(--touch-aura) center / contain no-repeat;
    filter: none; opacity: .82; inset: 2%;
  }
  html body[class] .brand-aura .brand-aura__light--near,
  html body[class] .brand-aura .brand-aura__contour { display: none; }
}


@media screen and (max-width: 1024px) and (pointer: coarse) {
  html body.home-page::before { background-image: url(images/fond-tactile-home.c6f615ca.webp); }
  html body.project-page::before { background-image: url(images/fond-tactile-projets.e7e8b405.webp); }
  html body.tutorials-page::before { background-image: url(images/fond-tactile-tutoriels.1c5a34ee.webp); }
  html body.contacts-page::before { background-image: url(images/fond-tactile-contacts.55654807.webp); }
  html body.cv-page::before { background-image: url(images/fond-tactile-cv.048a6d0c.webp); }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .welcome-preferences::details-content, .welcome-preferences[open]::details-content { translate: none; }
  @supports (interpolate-size: allow-keywords) {
    .project-record::details-content {
      interpolate-size: allow-keywords; overflow: clip; block-size: 0;
      transition: block-size var(--motion-time) var(--motion-settle), opacity 150ms ease-out,
        translate var(--motion-time) var(--motion-settle), content-visibility var(--motion-time) allow-discrete;
    }
    .project-record[open]::details-content { block-size: auto; overflow: visible; }
  }
  .home-project-link {
    transition: translate var(--motion-time) var(--motion-settle), scale 150ms var(--motion-settle),
      background-color 150ms ease-out, border-color 150ms ease-out;
  }
  @media (hover: hover) {
    .home-project-link:is(:hover,:focus-visible) { translate: 0 -2px; }
  }
  .home-project-link:active { scale: .99; }
}


/* Keep the reading indicator accessible while its paint follows the actual logo box. */
.site-nav .dock-reading-aura {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}
.site-nav .dock-reading-trace { display: none; }
html body[class] #mainNav[data-dock-state="bubble"] .brand-avatar > .dock-reading-trace {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transform: scale(1.065);
  filter: blur(.85px) saturate(1.25) brightness(1.25);
}
@media (prefers-reduced-motion: reduce) {
  .dock-reading-trace { transition: none; }
}
@media (forced-colors: active) {
  html body[class] #mainNav[data-dock-state="bubble"] .brand-avatar > .dock-reading-trace { display: none; }
  .site-nav[data-dock-state="bubble"] .dock-reading-aura {
    width: auto;
    height: auto;
    clip-path: none;
    top: 78%;
    color: CanvasText;
    background: Canvas;
    font: .75rem/1 system-ui;
  }
  .site-nav[data-dock-state="bubble"] .dock-reading-aura::after { content: attr(aria-valuenow) "%"; }
}

/* Labels and icons share the same inset on each side of the painted content. */
#mainNav { --control-inset: 14px; }
#mainNav .dock-settings-trigger { color: inherit; font: inherit; cursor: pointer; }
#mainNav .dock-settings-trigger .dock-icon svg { width: 1.65rem; height: 1.65rem; }
html body[class] #mainNav.dock-adaptive .brand.dock-brand.lg-btn {
  background: transparent !important; box-shadow: none !important; border: 0 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
#mainNav .brand.dock-brand::before, #mainNav .brand.dock-brand::after,
#mainNav .brand.dock-brand > :is(.lg-layers,.lg-gl,.lg-reflection,.dock-feedback,.lg-ripple) { display: none !important; }

@media (min-width: 1025px) and ((min-width: 1321px) or ((min-height: 561px) and (pointer: fine))) {
  html body[class] #mainNav.dock-adaptive[data-dock-labels="true"] .nav-links :is(a,.dock-settings-trigger).lg-btn {
    display: inline-grid; place-items: center; box-sizing: border-box;
    width: max-content !important; min-width: 0 !important; max-width: none !important;
    height: auto !important; min-height: 0 !important; padding: var(--control-inset) !important;
    flex: none !important; border-radius: 999px;
  }
  html body[class] #mainNav.dock-adaptive[data-dock-labels="true"] .nav-links .lg-btn > .lg-content,
  html body[class] #mainNav.dock-adaptive[data-dock-labels="true"] .nav-links .dock-label {
    display: grid; place-items: center; position: relative; inset: auto;
    width: max-content !important; height: auto !important; min-height: 0; padding: 0; margin: 0; line-height: 1.25;
  }
  html body[class] #mainNav.dock-adaptive[data-dock-labels="true"] .nav-links .dock-label > span { line-height: inherit; }
  html body[class] #mainNav.dock-adaptive:not([data-dock-labels="true"]) .dock-settings-trigger {
    width: var(--dock-icon-diameter); height: var(--dock-icon-diameter); padding: 0; border-radius: 50%;
  }
  #mainNav .dock-settings-trigger .lg-content { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
  html body[class] #mainNav.dock-adaptive .music-toggle.lg-btn { padding: 0 !important; aspect-ratio: 1; }
}

@media ((max-width: 1024px) or ((max-width: 1320px) and ((max-height: 560px) or (pointer: coarse)))) {
  html body[class] #mainNav { --dock-icon-diameter: 46px; }
  html body[class] #mainNav.is-menu-dock .dock-menu-toggle.lg-btn { width: 46px !important; height: 46px !important; min-width: 46px; padding: 0 !important; aspect-ratio: 1; }
  html body[class] #mainNav.is-menu-dock.dock-adaptive:not([data-dock-state="bubble"]):not([data-dock-state="docked"]) {
    grid-template-columns: minmax(0,1fr) auto;
  }
  html body[class] #mainNav.is-menu-dock .dock-menu-toggle { grid-column: 2; justify-self: end; }
  html body[class] #mainNav.is-menu-dock.is-menu-open.dock-adaptive:not([data-dock-state="bubble"]) .brand.dock-brand.lg-btn {
    grid-column: 1; justify-self: start; width: 5.5rem !important; min-width: 0 !important;
    max-width: none !important; height: 44px !important; flex: none !important;
  }
  html body[class] #mainNav.is-menu-dock.is-menu-open.dock-adaptive:not([data-dock-state="bubble"]) .brand.dock-brand .brand-avatar { display: none; }
  html body[class] #mainNav.is-menu-dock.is-menu-open.dock-adaptive:not([data-dock-state="bubble"]) .brand.dock-brand .dock-brand-tail {
    display: block; width: 5rem; max-width: 100%; opacity: 1; transform: none;
  }
  html body[class] #mainNav.is-menu-dock.is-menu-open.dock-adaptive[data-dock-flight]:is([data-dock-state="opening"],[data-dock-state="closing"]) .brand.dock-brand .brand-avatar { display: grid; }
  html body[class] #mainNav.is-menu-dock.is-menu-open .nav-links {
    display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3,minmax(0,1fr));
    gap: clamp(6px,1.4vw,12px); padding: 4px !important; margin: 5px 0 0; list-style: none;
  }
  html body[class] #mainNav.is-menu-dock .nav-links li { min-width: 0; padding: 0; overflow: visible; }
  html body[class] #mainNav.dock-adaptive.is-menu-dock .nav-links :is(a,.dock-settings-trigger).lg-btn {
    display: grid; place-items: center; width: 100% !important; min-width: 0 !important; max-width: none !important;
    min-height: 44px; height: auto !important; box-sizing: border-box; flex: 1 1 auto !important;
    margin: 0 !important; padding: clamp(10px,1.55vw,14px) !important; border-radius: 999px !important;
    border: 1px solid transparent !important;
    border-image: url(images/verre-tactile.421c07eb.webp) 79 fill / 1.4rem stretch !important;
    background: linear-gradient(176deg,rgba(225,248,255,.13),rgba(116,148,178,.09) 42%,rgba(21,32,51,.28) 64%,rgba(135,172,193,.15)) padding-box,
                linear-gradient(125deg,rgba(218,239,249,.54),rgba(85,156,183,.18) 25%,rgba(118,135,180,.16) 56%,color-mix(in srgb,var(--word-fluid-b) 53%,transparent) 86%,rgba(224,245,253,.24)) border-box !important;
    box-shadow: inset 0 1px 2px #f0faff55,inset 0 -2px 3px #b1d9f052,0 2px 4px #01050e55 !important;
    color: #f7f9ff; font: 750 clamp(.875rem,2.8vw,1rem)/1.25 system-ui,sans-serif;
  }
  html body[class] #mainNav.dock-adaptive.is-menu-dock .nav-links .lg-btn > :is(.lg-gl,.lg-reflection,.lg-layers),
  html body[class] #mainNav.dock-adaptive.is-menu-dock .nav-links .lg-btn::before,
  html body[class] #mainNav.dock-adaptive.is-menu-dock .nav-links .lg-btn::after,
  html body[class] #mainNav.dock-adaptive.is-menu-dock .nav-links .dock-icon { display: none !important; }
  html body[class] #mainNav.dock-adaptive.is-menu-dock .nav-links .lg-btn > .lg-content,
  html body[class] #mainNav.dock-adaptive.is-menu-dock .nav-links .dock-label {
    display: block !important; position: static !important; inset: auto !important; opacity: 1 !important;
    transform: none !important; translate: none; width: auto !important; height: auto !important;
    min-height: 0; min-width: 0; margin: 0; padding: 0; white-space: nowrap; text-align: center; font: inherit;
  }
  #mainNav .nav-links .dock-label > span { font: inherit; }
  html body[class] #mainNav.is-menu-dock .dock-menu-toggle:focus-visible,
  html body[class] #mainNav .nav-links :is(a,button):focus-visible { outline: 2px solid #e8f6ff; outline-offset: 1px; }
  @media (max-width: 350px) { html body[class] #mainNav.is-menu-dock.is-menu-open .nav-links { grid-template-columns: repeat(2,minmax(0,1fr)); } }
}

#dock-options {
  position: fixed; inset: auto; z-index: 99; margin: 0; width: min(19rem,calc(100vw - 24px));
  max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; box-sizing: border-box;
  border: 1px solid #708399; border-radius: 1rem; padding: .85rem 1rem 1rem;
  color: #f5f7fb; background: #101826; box-shadow: 0 .6rem 2.5rem #02050c77;
  font: 500 .94rem/1.4 system-ui,sans-serif; text-align: start; color-scheme: dark;
}
#dock-options[hidden], #dock-options [hidden], .cv-page [hidden].cv-story-heart, #cv-personal-story[hidden] { display: none !important; }
.dock-options-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
#dock-options h2 { font: 700 1.15rem/1.3 system-ui,sans-serif; margin: 0; color: inherit; }
#dock-options .dock-options-close { font: 400 1.5rem/1 system-ui; width: 44px; height: 44px; color: inherit; background: transparent; border: 0; cursor: pointer; }
#dock-options label { display: grid; gap: .25rem; margin-top: .5rem; font-weight: 600; }
#dock-options select { appearance: auto; width: 100%; border-radius: .65rem; border: 1px solid #657488; padding: .45rem .65rem; min-height: 44px; color: inherit; background: #1c2938; font: inherit; }
#dock-options [data-motion-note] { font: 400 .86rem/1.4 system-ui; color: #d3dbe8; margin: .65rem 0 0; }
#dock-options :focus-visible, .cv-story-heart:focus-visible { outline: 2px solid var(--word-fluid-b,#efce80); outline-offset: 2px; }

@media ((max-width: 1024px) or ((max-width: 1320px) and ((max-height: 560px) or (pointer: coarse)))) {
  html body { --hero-inset: var(--dock-expanded-space,13rem); }
  html body:has(#mainNav.is-menu-dock[data-dock-state="full"][data-dock-at-top="true"]:not(.is-menu-open)) {
    --hero-inset: calc(max(12px,env(safe-area-inset-top)) + 82px);
  }
  html body[class] main > section.collection-hero:is(#projet,#tutoriel,#contact) {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: min(calc(100% - 2rem),34rem); min-height: 100svh; height: auto; box-sizing: border-box;
    padding: var(--hero-inset) 0 max(1rem,env(safe-area-inset-bottom)); margin-inline: auto;
    gap: clamp(.65rem,2svh,1.25rem); text-align: center;
  }
  html body[class] .collection-hero .collection-symbol {
    flex: none; order: -1; container-type: normal; align-self: center;
    width: clamp(6rem,min(32vw,23svh),12rem); height: auto; aspect-ratio: 1; min-height: 0; margin: 0;
  }
  html body[class] .collection-symbol .brand-aura {
    position: absolute; width: 127%; max-width: none; height: auto; left: 50%; top: 50%; right: auto; translate: -50% -50%; margin: 0;
  }
  html body[class] .collection-hero .collection-copy { width: min(100%,clamp(13rem,62vw,20rem)); flex: none; align-self: center; }
  html body[class] .collection-copy .collection-title { text-align: center; }
  html body[class] .collection-copy .collection-actions { justify-content: center; }
  html body.home-page main > section#home.hero {
    display: grid; align-content: center; justify-items: center; box-sizing: border-box;
    min-height: 100svh; padding-block: var(--hero-inset) max(1rem,env(safe-area-inset-bottom));
  }
  html body.project-detail main {
    display: grid; align-content: center; justify-items: center; min-height: 100svh; box-sizing: border-box;
    padding: var(--hero-inset) 1rem max(1rem,env(safe-area-inset-bottom));
  }
  html body.project-detail .featured-project {
    display: grid; grid-template-columns: minmax(0,1fr); justify-items: center; text-align: center;
    gap: 1rem; padding: 0; width: min(100%,34rem); margin: 0 auto;
  }
  html body.project-detail .featured-project-logo { width: clamp(6rem,min(32vw,23svh),12rem); }
  html body.project-detail .featured-project p { margin-inline: auto; }
  html body.cv-page main > section.cv-hero#cv {
    display: grid; place-items: center; box-sizing: border-box; min-height: 100svh; height: auto;
    padding-block: var(--hero-inset) max(1rem,env(safe-area-inset-bottom));
  }
  html body.cv-page #cv .page-hero-copy { display: grid; justify-items: center; text-align: center; margin-inline: auto; }
  html body.cv-page #cv .cv-hero-intro { display: flex; flex-direction: column; text-align: center; }
  html body.cv-page #cv .cv-hero-intro .brand-aura { order: -1; width: clamp(5.5rem,19svh,10rem); margin: 0; }
  html body.cv-page #cv :is(.hero-text,.cv-identity,.page-hero-actions,.cv-section-links) { margin-inline: auto; justify-content: center; }
}

@media (500px <= width <= 1320px) and (max-height: 560px) {
  html body[class] main > section.collection-hero:is(#projet,#tutoriel,#contact) {
    padding-block: calc(var(--hero-inset) - .75rem) max(.75rem,env(safe-area-inset-bottom)); gap: .35rem;
  }
  html body[class] .collection-hero .collection-symbol { width: clamp(2.5rem,calc(24svh - .24 * var(--hero-inset)),4.25rem); }
  html body[class] .collection-hero .collection-copy { width: min(100%,22rem); gap: .35rem; justify-items: center; }
  html body[class] .collection-copy .collection-title { width: clamp(8rem,calc(65svh - .65 * var(--hero-inset)),13rem); justify-self: center; }
  html body[class] .collection-copy .collection-actions:has(> :only-child) { width: min(100%,13rem); }
  html body[class] .collection-copy .collection-actions > a:is(.cta,.secondary-cta) { padding: .35rem .55rem; min-height: 44px; font-size: .875rem; }
}

/* Carry the CV tint behind the footer and its bottom margin. */
@media screen {
  html body.cv-page main { background-color: transparent; }
  html body.cv-page main::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: rgba(5, 8, 15, .58);
  }
}

.cv-page { --cv-contact-column: min(calc(100% - 2rem),46rem); }
html body.cv-page #coordonnees, html body.cv-page footer.lg-surface {
  box-sizing: border-box; width: var(--cv-contact-column) !important;
  min-width: 0; max-width: none !important; margin-inline: auto !important;
}
html body.cv-page[data-native-panels] main > #coordonnees {
  padding-inline: 0; display: grid; grid-template-columns: minmax(0,1fr); justify-content: stretch;
}
html body.cv-page #coordonnees > :is(.cv-contact-heading,.cv-experience-grid) {
  justify-self: stretch; width: 100%; max-width: none; margin-inline: 0;
}
html body.cv-page #coordonnees .cv-contact-heading > div { container-type: inline-size; width: 100%; }
html body.cv-page #coordonnees #cv-contact-title {
  width: 100%; max-width: none; margin: 0; font-size: clamp(1.65rem,6.8cqi,3.6rem);
  line-height: 1.04; text-align: center; text-wrap: balance;
}
.cv-title-ending { white-space: nowrap; }
/* Inline middle centres the target on the x-height. Lift it to the cap
   height of the title, including when the touch target is taller. */
.cv-story-heart {
  --heart-size: max(44px, 1em);
  --heart-cycle: 2.2s;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  width: var(--heart-size);
  height: var(--heart-size);
  margin-inline-start: max(4px, .12em);
  padding: 0;
  border: 0;
  border-radius: .3em;
  background: transparent;
  color: #ffcf64;
  cursor: pointer;
  font: inherit;
  line-height: 0;
  overflow: hidden;
  vertical-align: middle;
  top: -.1em;
  top: calc((1ex - 1cap) / 2);
}
.cv-story-heart svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.cv-story-heart[aria-expanded="true"] svg { filter: drop-shadow(0 1px 4px #ebb83a55); }
.cv-story-heart use { transform-box: view-box; transform-origin: center; }
.cv-heart-wave { fill: none; stroke: #ffda82; stroke-width: .7; stroke-linejoin: round; opacity: 0; }

@keyframes cv-heart-beat {
  0%, 43%, 100% { transform: scale(1); }
  12% { transform: scale(1.10); }
  24% { transform: scale(1); }
  31% { transform: scale(1.045); }
}
@keyframes cv-heart-wave {
  0% { transform: scale(1.02); opacity: 0; }
  9% { opacity: .82; }
  61%, 100% { transform: scale(1.60); opacity: 0; }
}
@media screen and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  html:not([data-graphics="lite"]) .cv-heart-core {
    animation: cv-heart-beat var(--heart-cycle) ease-in-out infinite;
  }
  html:not([data-graphics="lite"]) .cv-heart-wave {
    animation: cv-heart-wave var(--heart-cycle) cubic-bezier(.22, .54, .35, 1) infinite;
  }
  html:not([data-graphics="lite"]) .cv-heart-wave--echo { animation-delay: .32s; }
  html:not([data-graphics="lite"]) .motion-paused .cv-story-heart use { animation-play-state: paused; }
}
#interets #cv-personal-story { max-width: 65ch; margin: .5rem 0; }
html body.cv-page #interets .cv-personal-explorations {
  width: 100%; padding: .8rem 0 0; margin: .45rem 0 0; min-height: 0; box-sizing: border-box;
}
.cv-page .cv-exploration-list {
  list-style: none; padding: 0; margin: 1rem 0 0; display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap: .3rem 1.25rem;
}
.cv-page .cv-exploration-list li {
  display: flex; align-items: center; gap: .75rem; padding: .65rem 0; border-top: 1px solid #e6c87838;
  color: #eef0f5; font-size: 1rem; line-height: 1.35; text-align: start;
}
.cv-page .cv-exploration-list svg { width: 1.4rem; height: 1.4rem; flex: none; color: #e8c678; }
@media (forced-colors: active) {
  #mainNav .dock-settings-trigger, #dock-options, .cv-story-heart { border: 1px solid ButtonText; }
  .cv-heart-core { fill: ButtonText; stroke: ButtonText; }
}
@media print { #dock-options, .cv-story-heart { display: none; } html #cv-personal-story[hidden] { display: block !important; } }

