@font-face {
  font-family: 'Prism Galerie'; src: url('type/prism-titles.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display'; src: url('type/playfair-display-latin-900-normal.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Open Sans'; src: url('type/text-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Open Sans'; src: url('type/text-semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f7fa; --surface: #ffffff; --soft: #e9eff5; --line: #ccd7e1;
  --ink: #162638; --muted: #4c6074; --accent: #264e72; --on-accent: #ffffff;
  --accent-soft: #dbe7f1; --ring: #366a91; --shadow: 0 12px 32px #213a5524;
  --mast-height: 70px; --display: 'Prism Galerie', 'Open Sans', sans-serif;
  --sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root[data-scheme="dark"] {
  color-scheme: dark;
  --paper: #101923; --surface: #16222e; --soft: #1d2c3b; --line: #344353;
  --ink: #edf3f8; --muted: #b3c1cf; --accent: #c1d9eb; --on-accent: #142639;
  --accent-soft: #293c50; --ring: #aecde7; --shadow: 0 12px 40px #0006;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--mast-height) + 12px); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.5 var(--sans); -webkit-text-size-adjust: 100%; }
body.modal-open { overflow: hidden; }
[hidden], dialog:not([open]) { display: none !important; }
h1,h2,h3,p,ol,fieldset { margin: 0; }
h1,h2 {
  font-family: var(--display); font-weight: 400; font-synthesis: none;
  text-transform: uppercase; line-height: 1.12; letter-spacing: .012em;
}
h1 em,h2 em { font-style: normal; }
h2 { font-size: clamp(29px, 3.4vw, 46px); }
h3 { font-size: 17px; line-height: 1.3; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button,input { font: inherit; }
button { color: inherit; cursor: pointer; border: 0; background: transparent; padding: 0; }
a,button,summary,label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .65; }
button svg,.appearance-panel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.button {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 19px; background: var(--accent); color: var(--on-accent);
  border-radius: 8px; font-size: 14px; font-weight: 650; line-height: 1.35;
}
.button.outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.skip { position: fixed; top: 5px; left: 8px; z-index: 30; padding: 9px 15px; background: var(--accent); color: var(--on-accent); transform: translateY(-150%); }
.skip:focus { transform: none; }

.mast { position: sticky; z-index: 12; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.header,.brand,.header-tools,.sticky-brand { display: flex; align-items: center; }
.header { min-height: calc(var(--mast-height) - 1px); justify-content: space-between; gap: 14px; }
.mast .brand { min-height: 44px; }
.wordmark {
  font: 900 27px/1.05 'Playfair Display',Georgia,serif;
  letter-spacing: -.025em; font-synthesis: none;
}
.footer .wordmark { font-size: 31px; }
.header-tools { position: relative; gap: 3px; }
.tool-button { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 8px; }
.tool-button svg { width: 22px; height: 22px; }
.tool-button[aria-expanded="true"] { background: var(--soft); }
#appearanceButton .icon-moon, :root[data-scheme="dark"] #appearanceButton .icon-sun { display: none; }
:root[data-scheme="dark"] #appearanceButton .icon-moon { display: block; }
.icon-menu path { transform-origin: 12px 12px; transition: transform .16s,opacity .16s; }
.bar-top { transform: translateY(-5px); } .bar-bottom { transform: translateY(5px); }
[aria-expanded="true"] .bar-top { transform: rotate(45deg); }
[aria-expanded="true"] .bar-mid { opacity: 0; }
[aria-expanded="true"] .bar-bottom { transform: rotate(-45deg); }
.tool-panel { position: absolute; top: calc(100% + 7px); right: 0; z-index: 5; width: min(258px,calc(100vw - 30px)); padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); max-height: calc(100vh - 88px); overflow: auto; }
.appearance-panel { width: 174px; }
.appearance-panel fieldset { padding: 0; border: 0; }
.appearance-panel legend { padding: 4px 10px 6px; color: var(--muted); font-size: 12px; }
.appearance-panel label,.menu-panel a,.menu-panel summary { display: flex; align-items: center; gap: 10px; padding: 8px 11px; min-height: 39px; font-size: 14px; cursor: pointer; border-radius: 7px; }
.appearance-panel input { margin: 0; accent-color: var(--accent); }
.menu-panel a[aria-current],.menu-panel summary:hover,.tool-button:hover { background: var(--soft); }
.menu-panel summary { list-style: none; justify-content: space-between; }
.menu-panel summary::after { content: '+'; }
.menu-panel details[open] summary::after { content: '−'; }
.menu-categories { border-left: 1px solid var(--line); margin-left: 17px; padding-left: 5px; }

/* The video fills the mobile cover, with the text and controls over the picture. */
.cover-hero {
  --slide-in: calc(100% - 2px); --slide-out: calc(-100% + 2px);
  isolation: isolate; position: relative; overflow: hidden;
  background: var(--paper); color: #fff; touch-action: pan-y pinch-zoom;
}
.cover-hero[data-direction="previous"] { --slide-in: calc(-100% + 2px); --slide-out: calc(100% - 2px); }
.hero-scenes,.hero-slide,.hero-scenes::after { position: absolute; inset: 0; pointer-events: none; }
.hero-scenes {
  inset: -1px; overflow: hidden; z-index: 0;
  -webkit-mask-image: linear-gradient(to top, transparent 3px, #000 17px);
  mask-image: linear-gradient(to top, transparent 3px, #000 17px);
}
.hero-slide { --focus: 50% 50%; opacity: 0; background: #1c2c37; }
.hero-slide[data-scene="dragon-orage"] { --focus: 50% 44%; }
.hero-slide[data-scene="meduse-boreale"] { --focus: 50% 34%; }
.hero-slide[data-scene="torrent-au-couchant"] { --focus: 45% 48%; }
.hero-slide[data-scene="danse-une-goutte"] { --focus: 50% 55%; }
.hero-slide.is-current { opacity: 1; z-index: 1; }
.hero-slide.is-entering { animation: cover-in .53s cubic-bezier(.4,0,.2,1) both; }
.hero-slide.is-leaving { opacity: 1; animation: cover-out .53s cubic-bezier(.4,0,.2,1) both; }
@keyframes cover-in { from { transform: translate3d(var(--slide-in),0,0); } to { transform: none; } }
@keyframes cover-out { from { transform: none; } to { transform: translate3d(var(--slide-out),0,0); } }
.hero-slide video {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus);
}
.hero-scenes::after {
  content: ''; z-index: 2;
  background: linear-gradient(180deg,#0814220a 3%,#09132025 23%,#0a15215c 43%,#07101cba 72%,#06101bdb);
}
.hero-inner {
  position: relative; z-index: 1; display: grid; grid-template-rows: 1fr auto;
  min-height: clamp(385px,36vw,505px);
}
.hero-copy {
  align-self: center; justify-self: center; width: min(100%,860px);
  padding: 36px 0 5px; text-align: center;
}
#heroTitle {
  font-size: clamp(43px,4.35vw,65px); line-height: 1.04; letter-spacing: .016em;
  text-shadow: 0 2px 12px #0008;
}
#heroTitle span { display: block; }
.intro { max-width: 54ch; margin: 13px auto 18px; font-size: 15px; line-height: 1.5; color: #f1f5f8; text-shadow: 0 1px 5px #0009; }
.hero-actions { display: flex; justify-content: center; }
.hero-actions .button { min-height: 48px; padding-inline: 23px; font-size: 16px; color: #142639; background: #c9dfef; box-shadow: 0 2px 9px #0003; }
.scene-controls { display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-height: 53px; padding-bottom: 5px; }
.scene-dot { display: grid; place-items: center; width: 29px; height: 44px; }
.scene-dot span { width: 8px; height: 8px; border: 1px solid white; border-radius: 12px; transition: width .2s,background .2s; }
.scene-dot[aria-pressed="true"] span { width: 23px; background: white; }
.cover-hero :focus-visible { outline-color: white; }
@media (min-width: 801px) {
  .cover-hero { width: min(1720px,calc(100% - 64px)); margin: 8px auto 0; border-radius: 14px; }
  .hero-slide[data-scene="dragon-orage"] { --focus: 53% 46%; }
  .hero-slide[data-scene="meduse-boreale"] { --focus: 50% 19%; }
  .hero-slide[data-scene="torrent-au-couchant"] { --focus: 45% 49%; }
  .hero-slide::before {
    content: ''; position: absolute; inset: 0; background-image: var(--scene-image);
    background-size: cover; background-position: var(--focus);
  }
  .hero-slide video {
    position: absolute; inset: 0 0 0 auto; width: 76%; max-width: 1350px;
    -webkit-mask-image: linear-gradient(90deg,transparent,#000 33%); mask-image: linear-gradient(90deg,transparent,#000 33%);
  }
  .hero-scenes::after {
    background: linear-gradient(90deg,#0c182253,#0b162479 48%,#0914202e),
      linear-gradient(0deg,#08131fc2,transparent 36%,transparent 78%,#111e2819);
  }
}

.collection { padding-block: clamp(29px,4.2vw,52px) 40px; }
#collectionTitle:focus { outline: none; }
.collection-status,.small-note,.faq-list p,.steps p { color: var(--muted); }
.collection-status { font-size: 14px; }
.filters { display: flex; gap: 6px; margin: 21px 0 24px; overflow-x: auto; scrollbar-width: none; padding-block: 3px; }
.filters::-webkit-scrollbar { display: none; }
.filters a { flex: none; display: grid; place-items: center; min-height: 37px; border: 1px solid var(--line); padding: 5px 14px; border-radius: 22px; font-size: 13px; }
.filters a[aria-current] { color: var(--on-accent); border-color: var(--accent); background: var(--accent); font-weight: 650; }
.collection-status,#retryCollection { margin-bottom: 16px; }
.gallery { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 24px 18px; }
.gallery-card { display: block; width: 100%; min-width: 0; text-align: left; align-self: start; border-radius: 10px; }
.phone-shell { position: relative; display: block; container-type: inline-size; width: 100%; aspect-ratio: 9/16; color: white; border-radius: 12px; overflow: hidden; isolation: isolate; background: var(--soft); }
.gallery .phone-shell { aspect-ratio: 3/4; }
.phone-screen,.phone-screen video,.phone-screen .art-still { position: absolute; inset: 0; display: block; height: 100%; width: 100%; }
.phone-screen { overflow: hidden; }
.phone-screen video,.phone-screen .art-still { object-fit: cover; pointer-events: none; }
.phone-shell,.hero-scenes { -webkit-touch-callout: none; user-select: none; }
.lock-face { position: absolute; inset: 0; z-index: 1; pointer-events: none; text-align: center; color: white; background: linear-gradient(180deg,#0d182134,transparent 42%,transparent 87%,#07101a35); }
.lock-caption { position: absolute; top: 13%; left: 3%; right: 3%; display: flex; flex-direction: column; align-items: center; text-shadow: 0 1px 6px #0009; }
.lock-date { font-size: 10px; font-size: clamp(8px,4cqw,16px); line-height: 1.3; }
.lock-time { font-size: 30px; font-size: 17cqw; line-height: 1.04; font-weight: 350; font-variant-numeric: tabular-nums; letter-spacing: -.06em; }
.lock-face .lock-icon { margin-top: 3px; width: 5cqw; height: 5cqw; fill: none; stroke: white; stroke-width: 1.6; }
.home-indicator { position: absolute; left: 36%; right: 36%; bottom: 2.1%; height: 3px; border-radius: 5px; background: #fff; }
.card-name {
  display: block; padding-top: 9px; min-width: 0; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 620; line-height: 1.45;
}
#pageControls { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 21px; }
.pagination { display: grid; grid-template-columns: 1.55fr repeat(4,1fr) 1.55fr; gap: 6px; max-width: 490px; margin-inline: auto; }
.pagination button { min-width: 0; min-height: 42px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.pagination button[aria-current] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.how,.faq { border-top: 1px solid var(--line); padding-block: clamp(28px,4vw,54px); }
.steps { list-style: none; counter-reset: steps; padding: 0; margin-top: 23px; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.steps li { counter-increment: steps; border-top: 1px solid var(--line); padding: 12px 0; }
.steps li::before { content: counter(steps,decimal-leading-zero); display: block; margin-bottom: 5px; color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: 7px; }
.steps p,.faq-list p { font-size: 14px; line-height: 1.6; }
.download-section { margin-bottom: 35px; }
.download-panel { min-height: 310px; display: grid; align-items: center; isolation: isolate; padding: 35px 6%; position: relative; overflow: hidden; border-radius: 12px; background: #182734; color: #f5f9fc; }
.download-scene,.download-scene video,.download-panel::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.download-scene { background: var(--end-poster,none) center 46%/cover; }
.download-scene video { object-fit: cover; object-position: center 46%; opacity: 0; }
.download-scene video.has-frame { opacity: 1; }
.download-panel::after { content: ''; background: linear-gradient(90deg,#0b1725f5,#0b1725a8 44%,#0b172508); }
.download-copy { position: relative; z-index: 1; }
.download-copy h2 { font-size: clamp(42px,5.4vw,76px); margin: 0 0 17px; }
.download-copy em { color: #d1e3f0; font-weight: 400; }
.faq { display: grid; grid-template-columns: 1fr 1.35fr; gap: 24px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 49px; padding: 9px 0; font-size: 15px; cursor: pointer; list-style: none; }
.faq-list summary::after { content: '+'; font-size: 21px; color: var(--accent); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { margin: 0 0 15px; }
.footer { display: flex; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding-block: 21px; }
.footer small { color: var(--muted); font-size: 12px; }
.sticky-brand { gap: 7px; flex: none; }
.sticky-brand img { width: 34px; height: 34px; border-radius: 8px; }
.sticky-brand .wordmark { font-size: 23px; }
.back-to-top { margin-left: auto; border: 1px solid var(--line); border-radius: 25px; display: grid; place-items: center; padding: 7px 13px; min-height: 40px; font-size: 13px; }
.sticky-download { position: fixed; z-index: 10; bottom: 0; inset-inline: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 15px max(8px,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.sticky-download .button { min-height: 42px; padding: 8px 13px; font-size: 13px; }
body.modal-open .sticky-download,body.navigation-open .sticky-download { display: none; }
dialog { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0; border-radius: 15px; box-shadow: var(--shadow); }
dialog::backdrop { background: #08111cd9; }
.close { position: absolute; top: 8px; right: 8px; z-index: 3; width: 39px; height: 39px; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); border-radius: 50%; font-size: 25px; line-height: 1; display: grid; place-items: center; }
.art-dialog { width: min(790px,calc(100% - 28px)); height: min(660px,90vh); overflow: auto; max-height: calc(100% - 16px); }
.art-dialog[open] { display: grid; grid-template-columns: 1fr .95fr; }
.preview-stage { container-type: size; min-width: 0; min-height: 0; padding: 16px; display: grid; place-items: center; background: var(--soft); }
.preview-phone { width: min(89%,calc(44vh - 44px)); width: min(93cqw,54cqh); background: #101a24; border-radius: 10% / 5.63%; box-shadow: 0 0 0 1px #ffffff38,0 5px 15px #0003; }
.preview-phone .phone-screen { inset: 1.5%; width: auto; height: auto; border-radius: 8% / 4.5%; }
.preview-media { position: absolute; inset: 0; }
.preview-phone.art-only,.preview-phone.art-only .phone-screen { border-radius: 4px; }
.preview-phone.art-only .phone-screen { inset: 0; }
.art-only video { object-fit: contain; }
.art-only .lock-face { display: none; }
.preview-info { align-self: center; display: grid; gap: 12px; padding: 35px 25px 20px; min-width: 0; }
.preview-quality-heading { display: flex; align-items: center; gap: 8px; min-width: 0; }
.preview-info h2,.info-dialog h2 { font-size: clamp(24px,2.8vw,34px); }
.preview-info h2 { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quality-options { margin-left: auto; flex: none; display: inline-flex; gap: 3px; }
.quality-options button { min-width: 38px; min-height: 34px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; font-weight: 700; }
.quality-options button[aria-pressed=true],.preview-modes button[aria-pressed=true] { background: var(--accent-soft); color: var(--ink); }
.preview-play { text-align: left; color: var(--accent); font-size: 14px; min-height: 34px; }
.preview-modes { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; }
.preview-modes button { flex: 1; min-height: 36px; font-size: 13px; border-radius: 5px; }
.small-note,#downloadStatus { font-size: 12px; }
.info-dialog { width: min(405px,calc(100% - 24px)); padding: 25px; }
.info-dialog h2 { margin: 0 0 10px; padding-right: 30px; }
.info-dialog p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.info-dialog .button { margin-top: 14px; }
#handoffLink { width: 100%; margin-top: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); color: var(--ink); }
#downloadStatus:not(:empty) { margin-top: 10px; }

@media (hover:hover) {
  .button:hover { filter: brightness(1.08); }
  .gallery-card:hover .card-name { text-decoration: underline; text-underline-offset: 3px; }
  .menu-panel a:hover,.appearance-panel label:hover,.filters a:not([aria-current]):hover { background: var(--soft); }
}
@media (max-width: 1040px) { .gallery { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 40px); }
  .gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }

}
@media (min-width: 761px) { .sticky-download { display: none; } }
@media (max-width: 760px) {
  :root { --mast-height: 57px; }
  .wrap { width: calc(100% - 32px); }
  .mast .wordmark { font-size: 24px; }
  .hero-inner { min-height: clamp(445px,62vh,555px); min-height: clamp(445px,62svh,555px); }
  .hero-copy { align-self: end; width: min(100%,540px); padding: 64px 0 7px; }
  #heroTitle { font-size: clamp(34px,10.1vw,48px); line-height: 1.06; }
  .intro { max-width: 39ch; margin: 10px auto 15px; font-size: 14px; line-height: 1.5; }
  .hero-actions .button { font-size: 15px; }
  .scene-controls { min-height: 49px; }
  .collection { padding-block: 24px 25px; }
  .filters { margin: 11px 0 15px; }
  .filters a { min-height: 35px; padding: 4px 12px; }
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 17px; }
  .steps li { display: grid; grid-template-columns: 29px 1fr; gap: 0 9px; }
  .steps li::before { grid-row: span 2; }
  .steps h3 { margin-bottom: 4px; }
  .download-panel { min-height: 255px; padding: 22px; }
  .faq { grid-template-columns: 1fr; gap: 12px; }
  .footer { gap: 10px; }
  .art-dialog { width: min(440px,calc(100% - 12px)); height: min(835px,calc(100vh - 12px)); height: min(835px,calc(100dvh - 12px)); }
  .art-dialog[open] { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto; }
  .preview-stage { padding: 8px; }
  .preview-phone { width: min(80%,calc((100vh - 265px)*.53)); width: min(93cqw,55cqh); }
  .preview-info { padding: 10px 14px 13px; gap: 4px; }
  .preview-info .button { min-height: 41px; }
}
@media (max-width: 679px) {
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 12px; }
  .card-name { font-size: 14px; }
}
@media (max-width: 355px) {
  .wrap { width: calc(100% - 24px); }
  .tool-button { width: 36px; }
  .scene-dot { width: 25px; }
  .footer small { display: none; }
}
@media (orientation: landscape) and (max-height: 620px) {
  .hero-inner { min-height: 370px; }
  .art-dialog { width: min(770px,calc(100% - 16px)); height: calc(100vh - 14px); }
  .art-dialog[open] { grid-template-columns: 44% minmax(0,1fr); grid-template-rows: minmax(0,1fr); }
  .preview-info { padding: 15px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
