@font-face {
  font-family: Outfit;
  src: url("fonts/outfit.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Parisienne;
  src: url("fonts/parisienne.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --base: #080610;
  --surface: #13101d;
  --raised: #171121;
  --ink: #fff8f1;
  --body: #d9cdec;
  --muted: #b9aacb;
  --orange: #ff8615;
  --peach: #ffb36d;
  --violet: #8a4cff;
  --lavender: #c7a7ff;
  --hair: rgba(197, 171, 237, .20);
  --edge: clamp(16px, 39.10px, 70px);
  --ease: cubic-bezier(.2,.74,.22,1);
  --mast-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--mast-h) + 18px); }
body {
  margin: 0;
  background: radial-gradient(ellipse 76% 570px at 94% 210px, #221534 0%, transparent 90%), var(--base);
  color: var(--ink);
  font: 400 1rem/1.6 Outfit, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
h1,h2,h3,h4,p,figure,dl,dd { margin: 0; }
h1,h2,h3,h4 { text-wrap: balance; }
a { color: inherit; }
button,summary { font: inherit; }
button { color: inherit; cursor: pointer; }
button,a,summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 4px; }
::selection { background: #62429d; color: white; }
[hidden] { display: none !important; }
.wrap, .mast-inner { width: min(calc(100% - var(--edge) * 2), 1200px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; inset: 10px auto auto 10px; padding: 10px 20px; background: var(--ink); color: var(--base); z-index: 30; }
.mast {
  position: sticky; top: 0; z-index: 10; background: rgba(11,9,18,.93);
  border-bottom: 1px solid var(--hair);
}
@supports (backdrop-filter: blur(14px)) { .mast { background: rgba(11,9,18,.82); backdrop-filter: blur(14px); } }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--mast-h); }
.brand { display: inline-flex; align-items: center; gap: .63rem; font-size: 1.1rem; font-weight: 650; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand-mark { position: relative; width: 27px; height: 23px; background: var(--orange); border-radius: 4px; overflow: hidden; transform: skewX(-7deg); }
.brand-mark::before { content: ""; position: absolute; inset: 0 0 56% 0; background: repeating-linear-gradient(119deg, var(--orange) 0 5px, #25101b 5px 9px); border-bottom: 2px solid var(--base); }
.brand-mark i:first-child { position: absolute; right: 4px; bottom: 4px; width: 8px; height: 3px; border-radius: 2px; background: #361a24; }
.mast nav { display: flex; gap: clamp(16px,24.96px,38px); align-self: stretch; }
.mast nav a { display: flex; position: relative; align-items: center; text-decoration: none; font-weight: 500; font-size: .94rem; color: var(--muted); }
.mast nav a[aria-current],.mast nav a:hover { color: var(--ink); }
.mast nav a[aria-current]::after { content: ""; position: absolute; bottom: 0; height: 2px; background: var(--orange); width: 100%; }
.eyebrow,.chapter-no { color: var(--peach); font-size: .78rem; font-weight: 620; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.rule { display: flex; align-items: center; gap: .65rem; }
.rule::before { content:""; width: 24px; height: 2px; background: var(--orange); flex: none; }
.hairslash { color: var(--muted); font-weight: 350; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.35fr); align-items: center; gap: clamp(24px,33.28px,72px); padding-block: clamp(44px,48.26px,90px) clamp(38px,39.94px,72px); }
.hero-copy { position: relative; z-index: 1; }
.hero .eyebrow { gap: .48rem; color: var(--body); }
.hero .eyebrow::before { margin-right: 3px; }
.display { margin: 20px 0 0; font-size: clamp(4.15rem,64.48px,7.65rem); letter-spacing: -.067em; font-weight: 770; line-height: .86; }
.display span { display: block; width: fit-content; padding-right: .045em; }
.display span:first-child { color: var(--orange); }
.display span:last-child { color: var(--violet); background: linear-gradient(110deg, #b990ff, #8a4cff 88%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.signature { font: 400 clamp(1.75rem,24.96px,2.72rem)/1.16 Parisienne, cursive; color: var(--ink); margin-top: 15px; }
.hero-deck,.section-intro>p:last-child:not(.eyebrow),.export p:not(.eyebrow),.feature-copy>p:not(.eyebrow),.edition-grid article>p:last-child,.guide-heading>p:not(.eyebrow),.chapter>p:not(.chapter-no) { color: var(--body); }
.hero-deck { max-width: 42ch; margin-top: 15px; font-size: clamp(1.02rem,11.23px,1.13rem); line-height: 1.55; }
.actions { margin-top: 23px; display: flex; align-items: center; gap: 14px 23px; flex-wrap: wrap; }
.button,.text-link,.transport,.demo-drawer summary,.swatch { touch-action: manipulation; }
.button,.text-link { font-size: .96rem; font-weight: 600; }
.button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 10px 19px; border-radius: 8px; text-decoration: none; }
.primary { color: #241207; background: linear-gradient(115deg,#ffb570,#ff8615 72%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35),0 3px 16px #ff861516; }
.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg,transparent 28%,#fff7 48%,transparent 66%); transform: translateX(-110%); pointer-events: none; }
.text-link { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); text-underline-offset: .3em; text-decoration-color: #88748c; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-color: var(--peach); }
.hero-stage { position: relative; isolation: isolate; min-width: 0; }
.hero-stage::before {
  content: ""; position: absolute; inset: -7% -2%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 78% 34%,#8a4cff38,transparent 62%),radial-gradient(ellipse at 16% 95%,#ff861520,transparent 60%); filter: blur(22px);
}
.film { position: relative; min-width: 0; overflow: hidden; align-self: start; background: #0b0912; border: 1px solid var(--hair); border-radius: 12px; }
.film-image { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #13101d; }
.film-image>img { display: block; width: 100%; height: 100%; object-fit: contain; }
.film figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 10px 5px 15px; min-height: 46px; }
.film-title { font-weight: 520; font-size: .91rem; color: var(--body); }
.transport { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 4px 11px; border: 1px solid var(--hair); background: #21192c; border-radius: 7px; font: 550 .85rem/1.2 Outfit,Arial,sans-serif; text-decoration: none; white-space: nowrap; }
.transport:hover { color: white; border-color: var(--lavender); }
.play-symbol { display: inline-block; width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; flex: none; }
.film[data-playing] .play-symbol,.film[data-loading] .play-symbol { width: 8px; height: 8px; border: 0; background: currentColor; }
.hero-film { padding: clamp(5px,5.32px,9px); border-color: #78678b; border-radius: 17px; background: linear-gradient(132deg,#38303e,#16131c 30%,#221a2d); box-shadow: 0 16px 44px -16px #000b, inset 0 1px 0 #d4bde03b; }
.hero-film .film-image { border-radius: 10px; }
.hero-film figcaption { padding: 8px 5px 0; min-height: 43px; }
.hero-film .film-title { display: inline-flex; align-items: center; gap: .55rem; }
.hero-film .film-title::before { content:""; width: 14px; height: 10px; border: 1.5px solid var(--peach); border-radius: 2px; }
.viewfinder { display: none; position: absolute; inset: 8%; pointer-events: none; opacity: .65; }
.hero-film .viewfinder,.guide-image .viewfinder { display: block; }
.viewfinder i { position: absolute; width: 15px; height: 15px; border: solid #fff8f1; filter: drop-shadow(0 1px 2px #0008); }
.viewfinder i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; }
.viewfinder i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.viewfinder i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.viewfinder i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.metrics { border-block: 1px solid var(--hair); }
.metrics dl { display: grid; grid-template-columns: repeat(4,1fr); padding-block: 19px; }
.metrics dl>div { display: flex; flex-direction: column-reverse; padding-inline: clamp(10px,19.97px,38px); border-left: 1px solid var(--hair); }
.metrics dl>div:first-child { padding-left: 0; border: 0; }
.metrics dd { letter-spacing: -.05em; font-size: clamp(1.65rem,27.46px,3rem); font-weight: 620; line-height: 1.08; font-variant-numeric: tabular-nums; }
.metrics dt { margin-top: 4px; color: var(--muted); font-size: .91rem; line-height: 1.3; }
.metrics em { color: var(--orange); font-weight: 320; font-style: normal; }
.metrics dd>span:not(.rgb) { color: var(--lavender); font-weight: 400; }
.rgb { color: var(--lavender); }
.zone { padding-top: clamp(50px,54.08px,94px); }
.section-intro { margin-bottom: clamp(20px,23.30px,34px); }
.section-intro>p:last-child:not(.eyebrow) { margin-top: 10px; }
.section-intro h2,.export h2,.guide-heading h1 { margin-top: .14em; }
.zone h2,.guide-heading h1 { font-size: clamp(2.35rem,41.60px,4.5rem); letter-spacing: -.059em; line-height: 1.07; font-weight: 620; }
.period { color: var(--orange); }
.collection { padding: clamp(12px,19.14px,28px); background: linear-gradient(120deg,#191320,#100c17 64%,#181022); border: 1px solid var(--hair); border-radius: 17px; }
.tabstrip { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 13px; border-bottom: 1px solid var(--hair); }
.tab { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; border-radius: 6px; padding: 6px clamp(10px,11.65px,21px); text-decoration: none; font-size: .93rem; font-weight: 510; color: var(--body); }
.tab:hover { background: #ffffff0b; color: var(--ink); }
.tab[aria-selected=true] { background: #f7eaff; color: #231432; }
.tabstrip.compact { display: inline-flex; padding: 4px; border: 1px solid var(--hair); background: #100c17; border-radius: 9px; }
.feature-panel { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); align-items: start; gap: clamp(18px,24.96px,46px); }
.feature-panel + .feature-panel:not([role]) { margin-top: 35px; border-top: 1px solid var(--hair); padding-top: 30px; }
.feature-panel:focus-visible,.look-panel:focus-visible { outline-offset: 6px; border-radius: 6px; }
.feature-copy h3 { margin: 6px 0 11px; font-size: clamp(1.6rem,23.30px,2.65rem); line-height: 1.1; font-weight: 600; letter-spacing: -.045em; }
.feature-copy .eyebrow { color: var(--lavender); }
.feature-copy .text-link { margin-top: 7px; font-size: .9rem; }
.note { border-left: 2px solid var(--violet); margin-top: 16px; padding: 2px 0 2px 13px; }
.note b { color: var(--lavender); font-weight: 570; }
.note p { color: var(--body); font-size: .97rem; margin-top: 2px; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,125px),1fr)); gap: clamp(9px,12.06px,23px); }
.swatch { display: block; border-radius: 9px; text-decoration: none; min-width: 0; }
.swatch img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--hair); border-radius: 9px; }
.swatch span { display: block; margin-top: 8px; font-size: .93rem; color: var(--body); }
.export { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(180px,.6fr); align-items: center; gap: clamp(20px,41.60px,100px); }
.export p:not(.eyebrow) { max-width: 60ch; margin-top: 12px; }
.export .text-link { margin-top: 10px; }
.panel-still { display: flex; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(ellipse at center,#2d2038,#100d17 78%); border: 1px solid var(--hair); border-radius: 12px; }
.panel-still img { display:block; max-width: 100%; width: 214px; height:auto; }
.edition-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.edition-grid article { padding: clamp(20px,24.96px,38px); border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); }
.edition-grid article:last-child { border-color: #6d4536; background: radial-gradient(ellipse at top right,#39201c77,transparent 75%),var(--surface); }
.edition-grid article:first-child .eyebrow { color: var(--lavender); }
.edition-grid h3 { font-size: clamp(1.6rem,23.30px,2.5rem); margin: 5px 0 10px; line-height: 1.16; letter-spacing: -.04em; font-weight: 610; }
.edition-grid em { font-family: Parisienne,cursive; font-style: normal; font-weight: 400; color: var(--peach); }
.foot { margin-top: clamp(44px,49.92px,84px); border-top: 1px solid var(--hair); }
.foot>.wrap { display:flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; min-height: 78px; padding-block: 16px; }
.foot-credit,.foot a { color: var(--muted); font-size: .9rem; }
.foot-credit { margin-inline-start: 5px; }
.foot a { text-underline-offset:.3em; }
.lightbox { position: fixed; width: min(560px,calc(100% - 28px)); max-height: calc(100dvh - 30px); border: 1px solid #78608f; border-radius: 14px; padding: 16px; color: var(--ink); background: var(--surface); }
.lightbox::backdrop { background: #080610d9; }
.lightbox-head { display:flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.lightbox h2 { font-size: 1.3rem; letter-spacing: -.035em; }
.lightbox button { min-height: 40px; border: 1px solid var(--hair); border-radius: 7px; padding: 7px 13px; background: #241c2c; }
.lightbox>img { display:block; object-fit:contain; max-height: 64dvh; width:100%; background:#0b0912; border-radius: 8px; }
.lightbox .original { margin-top: 5px; font-size: .88rem; }
.guide-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(25px,33.28px,60px); align-items: center; padding-block: clamp(36px,41.60px,72px); }
.guide-heading h1 { font-size: clamp(3.3rem,57.41px,6rem); color: var(--ink); line-height: 1; }
.guide-heading h1 em { color: var(--lavender); font: 400 1.15em/.9 Parisienne,cursive; }
.guide-heading>p:not(.eyebrow) { max-width: 42ch; font-size: 1.12rem; margin-top: 15px; }
.requirements { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 18px; font-size: .88rem; color: var(--muted); }
.requirements span+span { border-left: 1px solid var(--hair); padding-left: 14px; }
.guide-image { overflow: hidden; position: relative; border: 1px solid var(--hair); border-radius: 12px; }
.guide-image img { display: block; width:100%; height:auto; }
.guide-layout { display: grid; grid-template-columns: minmax(165px,.38fr) minmax(0,1fr); gap: clamp(20px,41.60px,80px); border-top: 1px solid var(--hair); padding-top: 34px; align-items: start; }
.guide-index { position: sticky; top: calc(var(--mast-h) + 14px); max-height: calc(100dvh - var(--mast-h) - 32px); overflow-y: auto; scrollbar-width: thin; }
.guide-index summary { font-size: 1.04rem; font-weight: 620; cursor: pointer; color: var(--ink); padding: 5px 0 10px; }
.guide-index nav { display: grid; gap: 2px; margin: 1px 8px 0 0; }
.guide-index nav a { display: flex; align-items: baseline; gap: .7rem; text-decoration: none; padding: 6px 10px; line-height: 1.35; border-left: 2px solid transparent; color: var(--body); font-size: .96rem; }
.guide-index nav span,.chapter-no { font-variant-numeric: tabular-nums; }
.guide-index nav span { color: var(--muted); font-size: .8rem; }
.guide-index nav a[aria-current] { border-color: var(--orange); background: #ff861510; color: var(--ink); }
.chapter { padding-bottom: 34px; max-width: 76ch; }
.chapter + .chapter { padding-top: 30px; border-top: 1px solid var(--hair); }
.chapter h2 { font-size: clamp(1.8rem,28.29px,2.8rem); letter-spacing: -.045em; font-weight: 600; line-height: 1.14; margin: 6px 0 13px; }
.chapter-no { color: var(--lavender); }
.chapter-no span { color: #a282aa; margin-inline: 4px; }
.chapter>p+p { margin-top: 11px; }
.chapter strong { color: var(--ink); font-weight: 560; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 12px 0 0; }
.steps li { counter-increment: step; display: flex; align-items: baseline; gap: 14px; margin-top: 14px; }
.steps li::before { content: counter(step,decimal-leading-zero); display: inline-block; flex: none; min-width: 2.1em; color: var(--peach); border-top: 1px solid var(--peach); padding-top: 3px; font-size: .9rem; }
.steps b { font-weight: 580; font-size: 1.04rem; }
.steps p,.terms dd { color: var(--body); }
kbd { padding: 0 6px; border: 1px solid #78678b; border-bottom-width: 2px; border-radius: 4px; font-family: Outfit,sans-serif; color: var(--ink); }
.terms { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 22px; margin-top: 18px; }
.terms>div { border-top: 1px solid var(--hair); padding-top: 8px; }
.terms dt { color: var(--lavender); font-weight: 570; }
.demo-drawer { margin-top: 18px; border: 1px solid var(--hair); border-radius: 9px; background: #15101c; }
.demo-drawer summary { cursor: pointer; padding: 12px 14px; font-weight: 510; color: var(--body); }
.demo-drawer summary .play-symbol { display: none; }
.demo-drawer[open] summary { color: var(--ink); }
.demo-drawer .film { margin: 0 10px 10px; }
.doc-output { display: block; max-width: calc(100% - 20px); height: auto; margin: 0 auto 10px; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .primary:hover::after { transform: translateX(110%); transition: transform .52s var(--ease); }
  .swatch img { transition: transform .28s var(--ease), border-color .24s; }
  .swatch:hover img { transform: translateY(-3px); border-color: var(--lavender); }
  .hero-film { transition: border-color .3s; }
  .hero-film:hover { border-color: #b295c9; }
}
@keyframes arrive { from { opacity: .01; transform: translateY(11px); } to { opacity: 1; transform: translateY(0); } }
@keyframes settle { from { opacity: .1; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion:no-preference) {
  .hero-copy>.eyebrow,.display span,.signature,.hero-stage,.guide-heading,.guide-image { animation: arrive .65s var(--ease) backwards; }
  .display span:nth-child(2) { animation-delay: .055s; }
  .signature { animation-delay: .10s; }
  .hero-stage,.guide-image { animation-delay: .14s; }
  .zone.entered .section-intro,.export.entered>div { animation: arrive .5s var(--ease); }
  .feature-panel[role]:not([hidden]),.look-panel[role]:not([hidden]),.lightbox[open],.demo-drawer[open] .film { animation: settle .27s var(--ease); }
}

  .feature-panel { grid-template-columns: 1fr; gap: 18px; }
  .feature-panel .film { width: 100%; }
  .feature-copy { max-width: 68ch; }
  .hero { grid-template-columns: 1fr 1.1fr; gap: 20px; }
  .display { font-size: clamp(3.5rem,70.72px,5.4rem); }
  .swatch-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }



@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
}
.film-image>.live-frames { position: absolute; inset: 0; opacity: 0; }
.film[data-playing] .live-frames { opacity: 1; }
.film-image .viewfinder { z-index: 1; }
.film .source-link { color: var(--peach); font-size: .85rem; text-underline-offset: .2em; }
@media (prefers-reduced-motion:no-preference) {
  .film-image>.live-frames { transition: opacity .24s var(--ease); }
}
@media (prefers-reduced-motion:no-preference) {
  :root { view-transition-name: none; }
  .switching .feature-panel:not([hidden]) { view-transition-name: workflow-panel; animation: none; }
  .switching .look-panel:not([hidden]) { view-transition-name: look-panel; animation: none; }
  ::view-transition-group(workflow-panel),::view-transition-group(look-panel) { animation-duration: .22s; animation-timing-function: var(--ease); }
  ::view-transition-old(workflow-panel),::view-transition-old(look-panel) { animation-duration: .13s; }
  ::view-transition-new(workflow-panel),::view-transition-new(look-panel) { animation-duration: .22s; }
}

.mast{position:relative}
.guide-index{position:static;max-height:none;overflow:visible}
html{scroll-padding-top:18px}
/* keep the page height constant whichever tab is open, so the fixed-height frame always fits */
.demo-drawer>summary{pointer-events:none;list-style:none}.demo-drawer>summary::-webkit-details-marker{display:none}
.feature-panel[role]{min-height:776px}
.look-panel[role]{min-height:850px}
