/* AstroTracker Gallery, direction "Full frame": dark by design, so the pictures set the colour.
   Display type is Archivo, narrowed; data and labels are DM Mono. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("fonts/dm-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #070708;
  --panel: #0e0e10;
  --card: #111113;
  --line: #1c1c1f;
  --rule: rgba(245, 243, 239, 0.12);
  --text: #f5f3ef;
  --text-2: #d9d4cc;
  --muted: #b9b4ac;
  --faint: #8e8a83;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --pad: 40px;
  --header: 68px;
  --f-l: #dad5cd;
  --f-r: #b8453c;
  --f-g: #4e9a5c;
  --f-b: #4f7fd9;
  --f-ha: #e8553e;
  --f-oiii: #3db5b0;
  --f-sii: #9e3653;
  --f-none: #b8a27a;
  --f-other: #9a948a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 12px 16px;
  background: var(--text); color: var(--bg); font-family: var(--mono); font-size: 13px;
}
.skip:focus { top: 12px; }

/* type */
.label {
  margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.display {
  margin: 0; font-weight: 700; font-stretch: 68%; line-height: 0.9;
  letter-spacing: 0.005em; text-transform: uppercase; text-wrap: balance;
}
.line {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.subtle { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.note { font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* header */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--header);
  padding: 0 28px 0 var(--pad); display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
  background: rgba(7, 7, 8, 0.62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 243, 239, 0.07);
}
.brand {
  min-height: 44px; display: inline-flex; align-items: center;
  font-weight: 700; font-stretch: 75%; font-size: 21px; letter-spacing: 0.22em;
  text-transform: uppercase;
}
.brand-logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a, .menu summary, .menu nav a {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
}
.nav a {
  height: 44px; padding: 0 14px; display: inline-flex; align-items: center;
  color: var(--muted); box-shadow: inset 0 -1px 0 transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--text); }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; height: 44px; padding: 0 16px; display: inline-flex;
  align-items: center; border: 1px solid rgba(245, 243, 239, 0.35); border-radius: 2px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: absolute; right: 0; top: 52px; min-width: 210px; padding: 6px;
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
}
.menu nav a { padding: 14px; color: var(--text-2); }
.menu nav a[aria-current="page"] { color: var(--text); box-shadow: inset 2px 0 0 var(--text); }

/* layout */
.wrap { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--pad); }
.block { padding-top: 112px; }
.block-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 24px;
}
.block-head .label { font-size: 13px; }
.more {
  min-height: 44px; display: inline-flex; align-items: center; font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
}
.more:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.page-head { padding-top: calc(var(--header) + 68px); }
.page-title { margin-top: 14px; font-size: clamp(56px, 8vw, 112px); line-height: 0.85; font-stretch: 66%; }
.lede { margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* buttons */
.btn {
  height: 44px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(245, 243, 239, 0.7); border-radius: 2px; background: transparent;
  color: var(--text); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--text); color: var(--bg); }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(245, 243, 239, 0.4); border-radius: 2px; background: transparent;
  color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--text); }
.no-js [data-prev], .no-js [data-next], .no-js [data-open] { display: none; }

/* filter colours */
.f-l { background: var(--f-l); }
.f-r { background: var(--f-r); }
.f-g { background: var(--f-g); }
.f-b { background: var(--f-b); }
.f-ha { background: var(--f-ha); }
.f-oiii { background: var(--f-oiii); }
.f-sii { background: var(--f-sii); }
.f-none { background: var(--f-none); }
.f-other { background: var(--f-other); }
.edge span, .strip span, .bar span { flex-basis: 0; min-width: 0; }

/* the band of figures under a picture */
.band {
  padding: 26px var(--pad) 24px; display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: 24px 48px;
}
.band-title { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.band-side { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; }
.figs { margin: 0; display: flex; flex-wrap: wrap; gap: 20px 40px; }
.figs div { display: flex; flex-direction: column; gap: 7px; }
.figs dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.figs dd {
  margin: 0; font-weight: 600; font-stretch: 80%; font-size: 30px; line-height: 1;
  white-space: nowrap;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.edge { display: flex; height: 6px; }

/* home: the featured pictures */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; background: #000; overflow: hidden; }
.slide { position: absolute; inset: 0; }
.slide[hidden] { display: none; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide .band {
  position: absolute; left: 0; right: 0; bottom: 6px; background: rgba(7, 7, 8, 0.8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.slide .edge { position: absolute; left: 0; right: 0; bottom: 0; }
.hero-title { font-size: clamp(48px, 6.2vw, 88px); }

.intro { padding-top: 104px; }
.intro p {
  max-width: 1040px; font-weight: 500; font-stretch: 85%; font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1; text-wrap: balance;
}

.stats {
  margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid rgba(245, 243, 239, 0.14);
}
.stat { padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.stat-value { font-weight: 700; font-stretch: 68%; font-size: clamp(64px, 7vw, 104px); line-height: 0.85; }
.block .note { margin-top: 28px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--card); }
.card[hidden] { display: none; }
.card-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #000; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.strip { display: flex; height: 3px; }
.card-text { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.card-title {
  font-weight: 700; font-stretch: 72%; font-size: 24px; line-height: 1; letter-spacing: 0.01em;
  text-transform: uppercase;
}
.card-meta { font-family: var(--mono); font-size: 12px; line-height: 1.4; color: var(--muted); }

/* gallery: one row of a filter dropdown, a sort menu and the filters in use; then the pictures */
.toolbar {
  position: relative; margin: 30px 0 24px; display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 14px;
}
.no-js .toolbar { display: none; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown[open] > summary { background: var(--text); color: var(--bg); }
.tool-n {
  min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 10px; background: var(--f-oiii); color: var(--bg);
  font-size: 11px; letter-spacing: 0;
}
.tool-n[hidden] { display: none; }
.dropdown-panel {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 15; width: min(820px, 100%);
  padding: 20px; display: flex; flex-direction: column; gap: 14px; background: var(--panel);
  border: 1px solid rgba(245, 243, 239, 0.14); border-radius: 12px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.dropdown-foot {
  display: flex; justify-content: flex-end; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line);
}
.btn-quiet { border-color: transparent; color: var(--muted); }
.btn-quiet:hover { background: transparent; color: var(--text); border-color: rgba(245, 243, 239, 0.4); }
.tool-sort { display: inline-flex; align-items: center; gap: 10px; }
.tool-sort select {
  height: 44px; padding: 0 38px 0 16px; border: 1px solid rgba(245, 243, 239, 0.7); border-radius: 2px;
  color: var(--text); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer; -webkit-appearance: none; appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23f5f3ef' stroke-width='1.5'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.tool-sort select:hover { border-color: var(--text); }
.tool-sort option { background: var(--panel); color: var(--text); text-transform: none; }
.tool-active { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid rgba(245, 243, 239, 0.3);
  background: transparent; color: var(--text); font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em; cursor: pointer;
}
.pill:hover { border-color: var(--text); }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip-row > .label { width: 104px; flex-shrink: 0; font-size: 11px; }
.chip {
  height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid rgba(245, 243, 239, 0.22);
  background: transparent; color: var(--text-2); font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.06em; white-space: nowrap; cursor: pointer;
}
.chip:hover { border-color: rgba(245, 243, 239, 0.55); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-n { margin-left: 4px; opacity: 0.7; }
.empty { padding: 64px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.empty[hidden] { display: none; }
.empty p { font-size: 18px; color: var(--muted); }

/* a picture's page */
.viewer {
  height: 100vh; height: 100svh; min-height: 680px; display: flex; flex-direction: column;
  padding-top: var(--header); background: #000;
}
.viewer-frame { position: relative; flex: 1 1 auto; min-height: 0; }
.viewer-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.nav-arrow {
  position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; display: flex;
  align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(7, 7, 8, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 243, 239, 0.18);
}
.nav-arrow:hover { border-color: var(--text); }
.nav-arrow.prev { left: 20px; }
.nav-arrow.next { right: 20px; }
.band-static { background: var(--bg); padding-top: 22px; padding-bottom: 20px; }
.picture-title { font-size: clamp(44px, 5.4vw, 76px); }

.record .block-head { margin-bottom: 40px; }
.section-title { font-size: clamp(44px, 5vw, 64px); }
.record-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 56px;
}
.total-row {
  margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: baseline; gap: 8px;
}
.big { font-weight: 600; font-stretch: 78%; font-size: 64px; line-height: 0.9; }
.bar { margin-top: 20px; display: flex; gap: 2px; height: 10px; }
.rows { margin: 10px 0 0; padding: 0; list-style: none; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid rgba(245, 243, 239, 0.1);
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.row-name { width: 84px; flex-shrink: 0; font-size: 15px; }
.row-subs { flex: 1; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.row-time { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.nights-line { margin-top: 18px; font-size: 17px; }
.nights { margin-top: 28px; height: 120px; display: flex; align-items: flex-end; gap: 3px; }
.nights span { flex: 1 1 0; min-width: 2px; max-width: 28px; background: var(--text); opacity: 0.88; }
.nights-axis {
  margin-top: 10px; display: flex; justify-content: space-between; font-family: var(--mono);
  font-size: 11px; color: var(--faint);
}
.best { margin-top: 18px; }
.kv {
  margin: 18px 0 0; display: grid; grid-template-columns: 104px minmax(0, 1fr); row-gap: 20px;
  column-gap: 16px;
}
.kv dt {
  padding-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.kv dd { margin: 0; display: flex; flex-direction: column; gap: 5px; }
.kv .v { font-size: 17px; }
.kv .s { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.kv-tight { row-gap: 12px; grid-template-columns: 120px minmax(0, 1fr); }
.kv-tight .v { font-size: 15px; }

/* telescopes */
.scopes { margin-top: 40px; }
.scope {
  padding: 48px 0; border-top: 1px solid var(--line); display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 40px;
}
.scope-info { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.scope-kicker { display: flex; align-items: center; gap: 12px; }
.tag {
  padding: 3px 8px; background: var(--muted); color: var(--bg); font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.scope-names { display: flex; flex-direction: column; gap: 8px; }
.scope-name { font-size: clamp(56px, 6vw, 80px); line-height: 0.88; }
.scope-full { font-size: 17px; color: var(--text-2); }
.scope-stats { display: flex; gap: 40px; padding-top: 8px; }
.scope-stat { display: flex; flex-direction: column; gap: 6px; }
.scope-stat .stat-value { font-size: 56px; }
.scope-stat .label { font-size: 11px; }
.scope-thumbs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start;
}
.scope-thumbs .card-title { font-size: 20px; }

/* about */
.about {
  margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 56px; align-items: start;
}
.about-solo { grid-template-columns: minmax(0, 760px); }
.about-text { display: flex; flex-direction: column; gap: 20px; }
.about-text p { font-size: 22px; line-height: 1.5; color: var(--text-2); }
.about-text a { overflow-wrap: anywhere; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.about-box {
  padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  background: var(--panel); border: 1px solid var(--line);
}
.about-box .label { font-size: 13px; }
.about-box p { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.about-side { display: flex; flex-direction: column; gap: 32px; }
.about-picture { width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
.lost { margin-top: 28px; }

/* a picture's page: full screen (the browser's own, or filling the window where a phone has
   none for pictures) */
.fs-btn {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 44px; height: 44px; display: flex;
  align-items: center; justify-content: center; border-radius: 50%; cursor: pointer;
  background: rgba(7, 7, 8, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 243, 239, 0.18); color: var(--text);
}
.fs-btn:hover { border-color: var(--text); }
.fs-btn .i-exit, .fs-on .fs-btn .i-enter { display: none; }
.fs-on .fs-btn .i-exit { display: block; }
.no-js .fs-btn { display: none; }
.viewer-img { cursor: zoom-in; }
.viewer-frame:fullscreen { background: #000; }
.viewer-frame:-webkit-full-screen { width: 100%; height: 100%; background: #000; }
.viewer-frame.is-full {
  position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100vh; height: 100dvh; background: #000;
}
.viewer-frame.fs-on .viewer-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; cursor: zoom-out;
}
.fs-on .nav-arrow { display: none; }
body.no-scroll { overflow: hidden; }

/* product-page blocks for a site's own pages (blastrophoto.com's AstroTracker page) */
.product a:not(.btn) { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(245, 243, 239, 0.4); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { background: #ffffff; color: var(--bg); }
.p-hero {
  padding-top: calc(var(--header) + 72px); display: grid; align-items: center; gap: 56px;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.p-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.p-brand { display: flex; align-items: center; gap: 14px; font-weight: 700; font-stretch: 85%; font-size: 24px; }
.p-brand img { border-radius: 12px; }
.p-h1 {
  margin: 0; font-weight: 700; font-stretch: 75%; font-size: clamp(44px, 5vw, 72px);
  line-height: 0.98; letter-spacing: -0.005em; text-wrap: balance;
}
.p-lede { max-width: 560px; font-size: 19px; line-height: 1.6; color: var(--text-2); }
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.p-meta span + span::before { content: "·"; margin-right: 22px; color: var(--muted); }
.shot {
  margin: 0; overflow: hidden; border-radius: 10px; background: #0b0d12;
  border: 1px solid rgba(245, 243, 239, 0.12);
  box-shadow: 0 40px 90px -50px rgba(61, 181, 176, 0.45), 0 24px 60px -32px rgba(0, 0, 0, 0.9);
}
.shot img { width: 100%; height: auto; }
.p-proof { padding-top: 104px; }
.p-figures {
  margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid rgba(245, 243, 239, 0.14); border-bottom: 1px solid rgba(245, 243, 239, 0.14);
}
.p-figures div { padding: 26px 24px 26px 0; display: flex; flex-direction: column-reverse; gap: 10px; }
.p-figures dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.p-figures dd { margin: 0; font-weight: 700; font-stretch: 70%; font-size: clamp(48px, 5vw, 72px); line-height: 0.9; }
.p-features { padding-top: 40px; }
.p-row {
  padding: 88px 0; display: grid; align-items: center; gap: 64px;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-bottom: 1px solid var(--line);
}
.p-row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.p-row.flip .p-row-text { order: 2; }
.p-row-text { display: flex; flex-direction: column; gap: 18px; }
.p-row-text > p:not(.label) { font-size: 18px; line-height: 1.6; color: var(--text-2); }
.p-h2 {
  margin: 0; font-weight: 700; font-stretch: 78%; font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1; text-wrap: balance;
}
.p-list { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.p-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.45; color: var(--text); }
.p-check { flex-shrink: 0; margin-top: 3px; color: var(--f-oiii); }
.p-more { padding-top: 104px; }
.p-center { text-align: center; }
.p-tiles { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-tile { padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 10px; }
.p-tile h3 { margin: 0; font-weight: 700; font-stretch: 85%; font-size: 22px; }
.p-tile p { font-size: 16px; line-height: 1.55; color: var(--text-2); }
.p-privacy {
  padding-top: 112px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.p-privacy svg { color: var(--f-oiii); }
.p-privacy p { max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.p-cta { padding-top: 104px; }
.p-cta-box {
  padding: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 36px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
}
.p-cta-box img { border-radius: 18px; }
.p-cta-text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 10px; }
.p-cta-text > p:not(.label) { font-size: 17px; line-height: 1.55; color: var(--text-2); }
.p-soon {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--f-oiii); color: var(--f-oiii); font-family: var(--mono); font-size: 12px;
  font-weight: 500; font-stretch: 100%; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.p-status { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.p-status p { max-width: 560px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* a dialog over the page (data-open="<its id>" opens it), and a form in it that sends to a form
   service in place (data-send) */
.dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto;
  color: var(--text); background: var(--panel); border: 1px solid rgba(245, 243, 239, 0.14);
  border-radius: 14px; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
}
.dialog::backdrop {
  background: rgba(7, 7, 8, 0.74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.dialog-body { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog-x { flex-shrink: 0; margin: -6px -8px 0 0; }
.dialog p { font-size: 16px; line-height: 1.55; color: var(--text-2); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form[hidden], .form-done[hidden] { display: none; }
.form-done { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.field em { font-style: normal; letter-spacing: 0.04em; text-transform: none; color: var(--faint); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; line-height: 1.4;
  color: var(--text); background: var(--bg); border: 1px solid rgba(245, 243, 239, 0.22);
  border-radius: 6px;
}
.field textarea { min-height: 124px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--f-oiii); box-shadow: 0 0 0 3px rgba(61, 181, 176, 0.25);
}
.dialog .form-note { font-family: var(--mono); font-size: 12px; line-height: 1.55; color: var(--faint); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.form-status { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.dialog .form-status.is-error { color: #f2a493; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* footer */
.foot {
  margin-top: 128px; padding: 28px var(--pad); border-top: 1px solid var(--line); display: flex;
  flex-wrap: wrap; gap: 12px; justify-content: space-between; font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
}

/* narrow screens: the pictures keep their shape instead of being cropped to the screen */
@media (max-width: 1000px) {
  .p-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-hero, .p-row, .p-row.flip { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .p-row.flip .p-row-text { order: 0; }
  .p-row { padding: 64px 0; }
}
@media (max-width: 900px) {
  :root { --pad: 20px; }
  .block { padding-top: 80px; }
  .intro { padding-top: 72px; }
}
@media (max-width: 700px) {
  .nav { display: none; }
  .menu { display: block; }
  .top { padding: 0 12px 0 var(--pad); }
  .brand { font-size: 18px; letter-spacing: 0.18em; }
  .brand-logo img { height: 32px; }
  .dialog-body { padding: 24px 20px; }
  .hero { height: auto; min-height: 0; padding-top: var(--header); }
  .slide { position: static; }
  .slide-img { position: static; height: auto; aspect-ratio: 3 / 2; }
  .slide .band, .slide .edge { position: static; }
  .slide .band { background: var(--bg); }
  .band { padding: 20px var(--pad) 22px; gap: 20px; }
  .band-side { gap: 20px; }
  .figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
  .figs dd { font-size: 24px; white-space: normal; }
  .viewer { height: auto; min-height: 0; }
  .viewer-frame { flex: none; }
  .viewer-img { position: static; height: auto; }
  .nav-arrow { width: 44px; height: 44px; margin-top: -22px; }
  .nav-arrow.prev { left: 10px; }
  .nav-arrow.next { right: 10px; }
  .chip-row > .label { width: 100%; }
  /* the filter button and the sort menu side by side, half the row each */
  .toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dropdown > summary { width: 100%; justify-content: center; }
  .tool-sort { min-width: 0; }
  .tool-sort .label { display: none; }
  .tool-sort select { width: 100%; }
  .tool-active { grid-column: 1 / -1; }
  .tool-active:empty { display: none; }
  .p-tiles { grid-template-columns: minmax(0, 1fr); }
  .p-cta-box { padding: 24px; }
  .p-meta { flex-direction: column; gap: 6px; }
  .p-meta span + span::before { content: none; }
  .big { font-size: 52px; }
  .foot { margin-top: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .card-img img { transition: none; }
  .card:hover .card-img img { transform: none; }
}

/* home as a slideshow ([home] slideshow; site.js puts is-showing on the hero when it runs it):
   the pictures crossfade with a slow zoom, each one's record reads out over it (no bar), and
   the filter strip fills as the picture's clock */
.hero.is-showing { height: 100vh; height: 100svh; min-height: 560px; }
.is-showing .slide { opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.is-showing .slide.is-current { opacity: 1; pointer-events: auto; }
.is-showing .slide:nth-child(4n + 1) .slide-img { transform-origin: 30% 42%; }
.is-showing .slide:nth-child(4n + 2) .slide-img { transform-origin: 72% 38%; }
.is-showing .slide:nth-child(4n + 3) .slide-img { transform-origin: 42% 68%; }
.is-showing .slide:nth-child(4n + 4) .slide-img { transform-origin: 64% 60%; }
.is-showing .slide.is-current .slide-img, .is-showing .slide.is-leaving .slide-img {
  animation: show-zoom calc(var(--show) + 1.4s) linear both;
}
@keyframes show-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
/* a shade behind the record while it shows */
.is-showing .slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(115% 85% at 0% 100%, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.38) 36%, rgba(0, 0, 0, 0) 64%);
  transition: opacity 1.2s ease;
}
.is-showing .slide.is-caption::before { opacity: 1; }
.is-showing .slide .band {
  z-index: 2; left: var(--pad); right: auto; bottom: 70px; width: min(1000px, calc(100% - 2 * var(--pad)));
  padding: 0; flex-direction: column; align-items: flex-start; gap: 20px;
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 28px rgba(0, 0, 0, 0.45);
}
.is-showing .band-title { gap: 12px; }
.is-showing .band-side { flex-direction: column; align-items: flex-start; gap: 22px; }
.is-showing .hero-title { font-size: clamp(56px, 7.4vw, 118px); }
.is-showing .label { color: rgba(245, 243, 239, 0.8); }
.is-showing .line { color: rgba(245, 243, 239, 0.86); }
.is-showing .figs { gap: 0; }
.is-showing .figs > div { padding: 0 28px; border-left: 1px solid rgba(245, 243, 239, 0.28); }
.is-showing .figs > div:first-child { padding-left: 0; border-left: 0; }
.is-showing .figs dd { font-variant-numeric: tabular-nums; }
.is-showing .band [data-prev], .is-showing .band [data-next] { display: none; }
.is-showing .actions .btn { background: rgba(7, 7, 8, 0.35); }
/* the readout: a rule draws, the parts come in one after another, and all go together */
.show-rule { display: none; }
.is-showing .show-rule {
  display: block; width: min(560px, 100%); height: 1px; background: rgba(245, 243, 239, 0.7);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s ease;
}
.is-showing .slide.is-caption .show-rule { transform: scaleX(1); transition: transform 0.9s cubic-bezier(0.6, 0, 0.2, 1); }
.is-showing .slide.is-leaving .show-rule { transform-origin: right; }
.is-showing .show-part { opacity: 0; transform: translateX(-14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.is-showing .slide.is-caption .show-part {
  opacity: 1; transform: none;
  transition: opacity 0.9s ease calc(var(--i) * 110ms + 450ms),
    transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i) * 110ms + 450ms);
}
.is-showing .slide.is-leaving .show-part { opacity: 0; transform: translateY(-12px); transition: opacity 0.8s ease, transform 0.9s ease; }
/* the filter strip is the picture's clock */
.is-showing .slide .edge { z-index: 2; height: 4px; clip-path: inset(0 100% 0 0); }
.is-showing .slide.is-current .edge { animation: show-clock var(--show) linear both; }
@keyframes show-clock { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.is-still .slide .edge, .is-still .slide-img { animation-play-state: paused; }
/* its controls, lower right */
.show-controls {
  position: absolute; z-index: 3; right: 28px; bottom: 26px; display: flex; align-items: center; gap: 8px;
  opacity: 0.55; transition: opacity 0.3s ease;
}
.show-controls[hidden] { display: none; }
.hero:hover .show-controls, .show-controls:focus-within { opacity: 1; }
.show-count { margin-right: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: rgba(245, 243, 239, 0.85); }
.show-controls .icon-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(7, 7, 8, 0.35); border-color: rgba(245, 243, 239, 0.3); }
.show-controls .icon-btn:hover { border-color: var(--text); }
.show-controls .i-play, .is-paused .show-controls .i-pause { display: none; }
.is-paused .show-controls .i-play { display: block; }
@media (max-width: 700px) {
  .hero.is-showing { height: 80vh; height: 80svh; min-height: 520px; padding-top: 0; }
  .is-showing .slide { position: absolute; }
  .is-showing .slide-img { position: absolute; height: 100%; aspect-ratio: auto; }
  .is-showing .slide .band {
    position: absolute; left: var(--pad); bottom: 46px; width: calc(100% - 2 * var(--pad)); gap: 14px;
    padding: 0; background: none;
  }
  .is-showing .slide .edge { position: absolute; }
  .is-showing .slide::before { background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 38%, rgba(0, 0, 0, 0) 62%); }
  .is-showing .hero-title { font-size: 44px; }
  .is-showing .figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
  .is-showing .figs > div { padding: 0; border: 0; }
  .is-showing .figs dd { font-size: 22px; }
  .show-controls { right: 12px; bottom: 12px; }
  .show-count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .is-showing .slide.is-current .slide-img, .is-showing .slide.is-leaving .slide-img { animation: none; }
  .is-showing .show-part, .is-showing .slide.is-caption .show-part, .is-showing .slide.is-leaving .show-part { transform: none; }
}
