:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eef6f1;
  background: #0b1110;
  --muted: #a4b8af;
  --line: #2a3934;
  --mint: #a9f2d1;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
.shell { width: min(calc(100% - 80px), 1160px); margin-inline: auto; }
.skip { position: absolute; z-index: 2; left: 20px; top: 12px; padding: 10px; background: #19251f; transform: translateY(-160%); }
.skip:focus { transform: none; }

.masthead { min-height: 76px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); gap: 18px; }
.masthead nav { display: flex; gap: clamp(14px, 3vw, 32px); align-items: center; }
.masthead nav a, .site-footer a { color: var(--muted); }
.masthead nav a:hover, .site-footer a:hover { color: var(--mint); }
.masthead nav a { display: grid; min-height: 44px; align-items: center; font-size: .875rem; }
.brand { display: flex; align-items: center; gap: 13px; font-weight: 680; white-space: nowrap; }
.mark { position: relative; width: 23px; height: 23px; flex: none; color: var(--mint); }
.mark::before, .mark::after { content: ""; position: absolute; width: 16px; height: 13px; border: 1px solid currentColor; border-radius: 2px; }
.mark::before { top: 2px; left: 0; }
.mark::after { bottom: 2px; right: 0; background: #15231d; }

.hero { min-height: 510px; display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(30px, 5.5vw, 80px); align-items: center; padding-block: 64px; }
.eyebrow { margin: 0 0 19px; color: var(--mint); font: 500 .825rem/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(3.5rem, 7.6vw, 7rem); font-weight: 650; line-height: .86; letter-spacing: -.078em; }
h1 span { display: block; margin-top: .09em; }
.intro { max-width: 33ch; margin-bottom: 27px; color: #c2d0c9; font-size: clamp(1rem, 1.65vw, 1.18rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.launch { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border: 1px solid transparent; background: var(--mint); color: #10231a; border-radius: 5px; font-weight: 720; }
.launch:hover { background: #cafbe4; }
.launch-source { border-color: #4a6257; background: transparent; color: var(--mint); font-weight: 620; }
.launch-source:hover { border-color: var(--mint); background: #14221b; }
.play-modes { margin: 13px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }

.specimen { margin: 0; min-width: 0; min-height: 252px; aspect-ratio: 1.58; position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden; border: 1px solid #32463d; border-radius: 10px; background: radial-gradient(ellipse at 40% 53%, #1b3c2c9e, transparent 73%), repeating-linear-gradient(to right, #a9f2d113 0 1px, transparent 1px 32px), repeating-linear-gradient(to bottom, #a9f2d113 0 1px, transparent 1px 32px), #101a16; }
.specimen-windows { position: absolute; inset: 22% 7% 24%; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.specimen-windows div { min-width: 0; border: 1px solid #a9f2d14a; border-radius: 6px; background: #09130f90; }
.specimen-windows div::before { content: ""; display: block; height: 17px; border-bottom: 1px solid #a9f2d139; background: radial-gradient(circle at 11px center, #8fbfa37a 2px, transparent 2.5px), radial-gradient(circle at 21px center, #8fbfa35c 2px, transparent 2.5px); }
.specimen-photo { position: relative; width: 95%; height: auto; aspect-ratio: 3.8; margin-inline: auto; object-fit: cover; object-position: center 53%; mix-blend-mode: screen; filter: brightness(1.22) contrast(1.12); }
.specimen-photo.is-motion { object-fit: contain; filter: brightness(1.15); }
.specimen figcaption { position: absolute; inset: auto 17px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #bad0c4; font: 400 .75rem/1.4 var(--mono); }
.specimen button { min-height: 34px; padding-inline: 10px; border: 1px solid #517061; border-radius: 4px; background: #12231b; color: var(--mint); font: inherit; cursor: pointer; }
.specimen button:hover { background: #203b2d; }

.archive { padding-block: 35px 46px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 28px; flex-wrap: wrap; margin-bottom: 21px; }
.section-heading h2 { margin: 0; font-size: clamp(1.65rem, 3.2vw, 2.4rem); font-weight: 620; line-height: 1.16; letter-spacing: -.04em; }
.archive-copy p { color: var(--muted); line-height: 1.55; }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.archive-copy h3 { margin: 0 0 5px; font-size: clamp(1.16rem, 2.3vw, 1.4rem); font-weight: 630; letter-spacing: -.02em; }

.archive-card { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #111816; }
.archive-card:hover, .archive-card:focus-within { border-color: #749382; }
.archive-demo { display: flex; flex-direction: column; height: 100%; }
.archive-demo:focus-visible { outline-offset: -3px; }
.archive-photo { aspect-ratio: 2.4; overflow: hidden; background: #141921; }
.archive-photo img { width: 100%; height: 100%; object-fit: cover; }
.bell img { width: 150%; margin-left: -50%; object-position: center 55%; }
.eclipse img { object-position: center 53%; }
.archive-copy { padding: 20px; display: flex; flex: 1; flex-direction: column; }
.archive-copy p { margin-bottom: 7px; }
.archive-copy .archive-index { margin-bottom: 5px; color: var(--mint); font: 400 .75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .045em; }
.archive-play, .archive-source { display: inline-flex; align-items: center; min-height: 44px; color: var(--mint); font-size: .875rem; font-weight: 640; }
.archive-play { margin-top: auto; margin-right: 70px; align-self: flex-start; }
.archive-source { position: absolute; right: 20px; bottom: 20px; color: var(--muted); }
.archive-demo:hover .archive-play, .archive-source:hover { text-decoration: underline; text-underline-offset: .2em; }
.site-footer { min-height: 80px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .875rem; }

@media (min-width: 1180px) {
  .archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .shell { width: min(calc(100% - 44px), 640px); }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 29px; padding-block: 42px 36px; }
  h1 { font-size: clamp(3.5rem, 12vw, 5.25rem); }
}

@media (max-width: 540px) {
  .shell { width: calc(100% - 32px); }
  .hero-actions .launch { padding-inline: 16px; }
  .masthead { min-height: 64px; }
  .brand { gap: 7px; }
  .masthead nav { gap: 12px; }
  .specimen { min-height: 185px; }
  .specimen figcaption { inset: auto 10px 10px; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive { padding-block: 29px 35px; }
}
