:root {
  color-scheme: dark;
  --brand-steel: #809cac;
  --brand-turquoise: #5edac1;
  --page: #101820;
  --paper: #17252f;
  --alt: #213340;
  --input: #111f29;
  --ink: #eff6f8;
  --muted: #b1c6d1;
  --accent: var(--brand-turquoise);
  --line: #405968;
  --control-line: #668494;
  --panel-ink: var(--ink);
  --panel-muted: var(--muted);
  --panel-accent: var(--accent);
  --alt-ink: var(--ink);
  --alt-muted: var(--muted);
  --alt-accent: var(--accent);
  --input-ink: var(--ink);
  --input-muted: var(--muted);
  --input-accent: var(--accent);
  --button: #293d4b;
  --button-ink: var(--ink);
  --primary: var(--brand-turquoise);
  --primary-ink: #102a2a;
  --display: "Arial Black", "Segoe UI", "Noto Sans", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  font-family: "Segoe UI", "Noto Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#presentation, #guide, #windows { scroll-margin-block-start: 7.5rem; }

.skip-link:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 20;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  padding: .8rem 1rem;
  background: var(--paper);
  color: var(--accent);
}
.shell { width: min(85rem, calc(100% - clamp(1.75rem, 7vw, 7rem))); margin-inline: auto; }

.page-header {
  position: sticky;
  z-index: 10;
  inset-block-start: 0;
  border-block-end: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 96%, transparent);
}
.navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.65rem;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .58rem;
  font-size: 1.19rem;
  font-weight: 820;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  inline-size: 3.55rem;
  block-size: 2.75rem;
  flex: 0 0 auto;
  border-radius: .52rem;
  background: #101b24;
}
.brand-mark img { width: calc(100% - .45rem); height: auto; }
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .2rem clamp(.8rem, 2.5vw, 2rem); }
nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-weight: 650;
  font-size: .94rem;
}
nav a:hover, .credit:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .22em; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: min(45rem, calc(100svh - 4.65rem));
  padding-block: clamp(2.4rem, 6vw, 5.6rem);
}
.intro { position: relative; z-index: 1; min-width: 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--accent);
  font: 650 .84rem/1.35 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; inline-size: 1.45rem; block-size: 1px; background: currentColor; flex: none; }
h1, .guide-heading h2, .download h2 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.07em;
}
h1 {
  margin-block: .85rem 1.25rem;
  font-size: clamp(2.85rem, 5.75vw, 6rem);
  line-height: .96;
  overflow-wrap: anywhere;
}
h1 > span, h1 > em { display: block; }
h1 > span > span, h1 > em > span { display: inline-block; }
h1 em { color: var(--accent); font-style: normal; }
.intro:lang(fr) h1 > em { font-size: .86em; }
:lang(ar) h1, :lang(ar) h2, :lang(ja) h1, :lang(zh-Hans) h1 { letter-spacing: 0; line-height: 1.1; }
.intro-description { max-width: 34ch; color: var(--muted); font-size: clamp(1.08rem, 1.75vw, 1.28rem); line-height: 1.58; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-block: 1.55rem 1.35rem; }
.intro-actions .button { min-height: 3.45rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  min-height: 2.85rem;
  padding: .6rem 1rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}
.primary { background: var(--primary); color: var(--primary-ink); }
.primary:hover { outline: 1px solid var(--accent); outline-offset: 3px; }
.secondary { background: var(--paper); color: var(--panel-ink); border-color: var(--control-line); }
.secondary:hover { border-color: var(--panel-accent); }
.hero-formats {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .7rem;
  width: fit-content;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-formats li {
  padding: .35rem .62rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  color: var(--muted);
  font: 650 .82rem/1 var(--mono);
}

.guide { padding-block: clamp(2.6rem, 6vw, 5rem); border-block: 1px solid var(--line); background: var(--paper); }
.guide-heading { margin-block-end: clamp(1.4rem, 4vw, 2.5rem); }
.guide-heading h2, .download h2 { margin-block-start: .35rem; font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.06; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 2.5vw, 1.8rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step { display: grid; grid-template-rows: 1fr auto; gap: 1rem; min-width: 0; padding-block-start: 1rem; border-block-start: 1px solid var(--line); }
.step-body { display: grid; align-content: start; gap: .4rem; }
.step-body h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -.025em; }
.step-body p { color: var(--panel-muted); line-height: 1.55; }
.shot {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #131d25;
}
.shot:hover { border-color: var(--panel-accent); }
.shot img { width: 100%; height: 8rem; object-fit: contain; }
.expand { 
  position: absolute;
  display: grid;
  place-items: center;
  inset-block-end: .6rem;
  inset-inline-end: .6rem;
  width: 1.9rem;
  aspect-ratio: 1;
  border: 1px solid var(--brand-steel);
  border-radius: .3rem;
  color: #eaf5f9;
  background: #101d27;
}
.expand span { width: .72rem; aspect-ratio: 1; border: 1.5px dashed currentColor; }

.download { padding-block: clamp(2.9rem, 8vw, 7.2rem); }
.download-panel {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, auto);
  align-items: end;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(1.5rem, 6vw, 5rem);
  border: 1px solid #4d6978;
  border-radius: 1rem;
  color: #eff7fa;
  background: radial-gradient(ellipse at 86% 105%, #2970688c 0%, transparent 60%), #142730;
}
.download-panel::before {
  position: absolute;
  z-index: -1;
  inset: -85% -25% -90% 36%;
  border-radius: 50%;
  content: "";
  background: repeating-radial-gradient(circle at center, transparent 0 2.45rem, #5edac135 2.5rem 2.54rem);
  transform: rotate(-24deg) scaleX(.8);
  mask-image: radial-gradient(ellipse, #000 0%, transparent 68%);
}
.download-panel h2 { max-width: 20ch; margin-block: 0 1rem; }
.download-panel p { max-width: 53ch; color: #c9dde4; line-height: 1.55; }
.download-panel .requirements { margin-block-start: .45rem; font-size: .93rem; }
.download-action { text-align: center; }
.download-button { min-height: 3.45rem; padding-inline: 1.3rem; }
.download-panel .download-button { background: var(--brand-turquoise); color: #102a2a; }
.download-panel .download-button:hover, .download-panel .download-button:focus-visible { outline-color: var(--brand-turquoise); }
.download-icon { position: relative; width: .95rem; height: .88rem; border: solid currentColor; border-width: 0 1.5px 1.5px; border-radius: 0 0 .16rem .16rem; }
.download-icon::before, .download-icon::after { content: ""; position: absolute; inset-inline-start: 50%; }
.download-icon::before { width: 1.5px; height: .62rem; background: currentColor; top: -.25rem; transform: translateX(-50%); }
.download-icon::after { width: .4rem; height: .4rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; top: .05rem; transform: translateX(-50%) rotate(45deg); }
.release { margin-block-start: .5rem; font-size: .875rem; }
.page-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1.5rem;
  padding-block: 1.3rem;
  border-block-start: 1px solid var(--line);
}
.credit, .copyright { color: var(--muted); font-size: .875rem; }
.support-link { display: grid; gap: .15rem; min-width: 0; color: var(--ink); font-size: .875rem; }
.support-link span { font-weight: 720; }
.support-link bdi { color: var(--accent); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: .2em; }

dialog {
  width: min(calc(100% - 2rem), 75rem);
  max-height: 94vh;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--paper);
  color: var(--panel-ink);
}
dialog::backdrop { background: #08121add; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: .65rem .85rem; }
.dialog-head h2 { font-size: clamp(1rem, 3vw, 1.35rem); }
#capture-image { width: 100%; }

@media (min-width: 55rem) and (prefers-reduced-motion: no-preference) {
  .intro h1 > span > span { translate: 0 calc(var(--hero-travel, 0) * -10px); }
  .intro h1 > em > span { translate: 0 calc(var(--hero-travel, 0) * 13px); }
}
@media (prefers-reduced-motion: no-preference) {
  .intro h1 > * { animation: headline-in .72s cubic-bezier(.15,.83,.3,1) both; }
  .intro h1 > em { animation-delay: .11s; }
  .motion-enter { animation: section-in .65s cubic-bezier(.16,.76,.33,1) both; }
  .shot img { transition: transform .24s ease; }
  .shot:hover img { transform: scale(1.045); }

  @keyframes headline-in {
    from { opacity: 0; transform: translateY(.35em) skewY(-5deg); }
    to { opacity: 1; transform: translateY(0) skewY(0); }
  }
  @keyframes section-in {
    from { opacity: .7; transform: translateY(.2em) skewY(-3deg); }
    to { opacity: 1; transform: translateY(0) skewY(0); }
  }
}
@media (max-width: 55rem) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: clamp(1.6rem, 5vw, 2.4rem); }
  h1 { font-size: clamp(3rem, 9.3vw, 5.4rem); }
  .intro-description { max-width: 45ch; }
}
@media (max-width: 43rem) {
  .intro:lang(fr) h1 > em { font-size: .77em; }
  .navigation { grid-template-columns: minmax(0, 1fr) auto; gap: 0 .65rem; padding-block: .35rem .1rem; }
  .navigation nav { grid-row: 2; grid-column: 1 / -1; gap: 0 clamp(.55rem, 4vw, 1.5rem); }
  .navigation nav a { min-height: 2.5rem; font-size: .86rem; }
  .header-controls { grid-column: 2; grid-row: 1; }
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .step { grid-template-rows: auto auto; }
  .download-panel { grid-template-columns: 1fr; gap: 1.25rem; }
  .download-action { text-align: start; }
}
@media (max-width: 24rem) {
  h1 { font-size: clamp(2.65rem, 13vw, 3.15rem); }
  .brand { gap: .38rem; font-size: 1.04rem; }
  .brand-mark { inline-size: 2.8rem; block-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
