/* Tranquility · Ether Night
   Layout: 12-column marketing page (hero, timers, stats, play styles, joining steps), then a quieter members area
   built from the same tokens. Deliberately one dark theme: the night sky is the brand. */
@import url("https://fonts.googleapis.com/css2?family=Marcellus&family=Hanken+Grotesk:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  color-scheme: dark;
  --night: #050a17;
  --night-2: #0a1226;
  --panel: #070d1d;
  --veil: rgba(255, 255, 255, 0.04);
  --hair: rgba(255, 255, 255, 0.12);
  --hair-strong: rgba(255, 255, 255, 0.22);
  --ink: #eef1fa;
  --ink-2: #b7bfd6;
  --ink-3: #7c86a3;
  --ether: #9fd8ff;
  --ether-deep: #4f8fd6;
  --live: #ffb86b;
  --danger: #ff8a7a;
  --display: "Marcellus", "Trajan Pro", Georgia, serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
html { background: var(--night); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--night); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ether); outline-offset: 3px; }
.inner { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); }
h1, h2, h3 { text-wrap: balance; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px;
  font: 600 14px/1 var(--body); letter-spacing: 0.02em; text-decoration: none; border: 1px solid transparent;
  border-radius: 2px; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; white-space: nowrap; }
.btn-primary { background: var(--ink); color: var(--night); }
.btn-primary:hover { background: var(--ether); }
.btn-ghost { border-color: var(--hair-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ether); color: var(--ether); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--night); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--night); }
nav.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(5, 10, 23, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
nav.top .inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 19px; letter-spacing: 0.08em; }
.brand svg { width: 26px; height: 26px; color: var(--ether); }
.navlinks { display: flex; gap: 24px; font-size: 14px; color: var(--ink-2); }
.navlinks a { text-decoration: none; }
.navlinks a:hover { color: var(--ink); }
.navuser { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-2); min-width: 0; }
.navuser .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navuser a.who { color: var(--ink); text-decoration: none; }
.navuser a.who:hover { color: var(--ether); }
.badge { font-family: var(--mono); font-size: 11px; color: var(--ether); border: 1px solid rgba(159, 216, 255, 0.4); padding: 1px 6px; margin-left: 6px; }
@media (max-width: 720px) {
  nav.top .inner { flex-wrap: wrap; gap: 8px 18px; padding-block: 10px; }
  .navlinks { order: 3; width: 100%; gap: 20px; }
  .navuser .who { max-width: 46vw; }
  .navuser .badge { display: none; }
}

/* flash */
.flash { background: #121a33; border-bottom: 1px solid var(--hair); color: var(--ink); font-size: 14px; }
.flash .inner { padding-block: 10px; }
.flash-error { background: #2a1520; color: #ffd4cc; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--hair); }
.hero canvas, .hero .sky, .hero .shot { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .sky { background:
  radial-gradient(80% 60% at 72% 38%, rgba(79, 143, 214, 0.22), transparent 70%),
  radial-gradient(60% 50% at 20% 100%, rgba(159, 216, 255, 0.08), transparent 70%),
  linear-gradient(180deg, #060c1c 0%, #08112a 55%, var(--night) 100%); }
.hero .shot { background-size: cover; background-position: center; opacity: 0.55; }
.hero .shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, rgba(5, 10, 23, 0.6) 55%, rgba(5, 10, 23, 0.2) 100%); }
.hero .inner { position: relative; padding-block: clamp(72px, 12vw, 136px) clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.hero .copy { grid-column: 1 / span 8; display: grid; gap: 22px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(54px, 10vw, 128px); line-height: 0.92; letter-spacing: 0.02em; }
.hero .eyebrow { display: block; font-family: var(--mono); font-size: clamp(12px, 1.3vw, 15px); letter-spacing: 0.18em; color: var(--ether); margin-bottom: 18px; }
.hero .lede { margin: 0; font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 46ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .hero .copy { grid-column: 1 / -1; } }

/* timers */
.ticker { border-bottom: 1px solid var(--hair); background: var(--night-2); }
.ticker .inner { display: grid; grid-template-columns: auto 1fr; }
.ticker .tl { padding: 14px 20px 14px 0; border-right: 1px solid var(--hair); display: flex; align-items: center; }
.ticker ul { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.ticker li { padding: 12px 14px; border-right: 1px solid var(--hair); display: grid; gap: 1px; min-width: 0; white-space: nowrap; }
.ticker li:last-child { border-right: 0; }
.ticker li b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) {
  .ticker ul { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ticker li { padding-inline: 22px; border-top: 1px solid var(--hair); }
  .ticker li:nth-child(4n) { border-right: 0; }
  .ticker li:nth-child(-n+4) { border-top: 0; }
}
.ticker li span { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ticker li.live span { color: var(--live); }
.ticker li.live span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--live); margin-right: 7px; vertical-align: 1px; }
@media (max-width: 640px) {
  .ticker .inner { grid-template-columns: 1fr; }
  .ticker .tl { border-right: 0; border-bottom: 1px solid var(--hair); padding-block: 10px; }
  .ticker ul { grid-template-columns: 1fr 1fr; }
  .ticker li { padding: 10px 16px 10px 0; border: 0; }
}

/* stats */
.proof .inner { padding-block: 64px; display: grid; grid-template-columns: repeat(4, 1fr); }
.proof .stat { padding: 4px 24px; border-left: 1px solid var(--hair); display: grid; gap: 6px; align-content: start; }
.proof .stat:first-child { border-left: 0; padding-left: 0; }
.proof .num { font-family: var(--display); font-size: clamp(34px, 4.6vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.proof .num small { font-size: 0.45em; color: var(--ink-3); margin-left: 4px; }
.proof p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 24ch; }
@media (max-width: 760px) {
  .proof .inner { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .proof .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* section headings */
.sechead { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.sechead h2 { grid-column: 1 / span 7; margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; }
.sechead p { grid-column: 8 / span 5; margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .sechead h2, .sechead p { grid-column: 1 / -1; } }

/* play styles */
.play { border-top: 1px solid var(--hair); }
.play .inner { padding-block: 88px; display: grid; gap: 40px; }
.modes { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.mode { background: var(--night); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.mode .pic { aspect-ratio: 4 / 3; max-width: 100%; border-bottom: 1px solid var(--hair); background-size: cover; background-position: center; }
.mode:first-child .pic { aspect-ratio: 16 / 10; }
.pic-abyss { background-image: radial-gradient(70% 80% at 30% 20%, #2b1c4d 0%, transparent 60%), radial-gradient(60% 60% at 80% 90%, #0f3a5c 0%, transparent 70%); background-color: #080d1e; }
.pic-arena { background-image: radial-gradient(50% 70% at 50% 110%, #5a3a1c 0%, transparent 70%), linear-gradient(180deg, #0b1124, #121a33); }
.pic-group { background-image: radial-gradient(60% 60% at 70% 30%, #1c4a5c 0%, transparent 70%), linear-gradient(160deg, #0a1428, #050a17); }
.mode .txt { padding: 22px 22px 26px; display: grid; gap: 10px; align-content: start; }
.mode h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; }
.mode p { margin: 0; color: var(--ink-2); font-size: 15px; }
.mode .meta { font-family: var(--mono); font-size: 12px; color: var(--ether); }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } }

/* joining steps: a real sequence, so it is numbered */
.join { background: var(--night-2); border-block: 1px solid var(--hair); }
.join .inner { padding-block: 88px; display: grid; gap: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li { border-top: 1px solid var(--hair-strong); padding-top: 18px; display: grid; gap: 8px; align-content: start; counter-increment: step; }
.steps li::before { content: "Step " counter(step); font-family: var(--mono); font-size: 12px; color: var(--ether); }
.steps h3 { margin: 0; font-size: 19px; font-weight: 600; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 34ch; }
.steps-stacked { grid-template-columns: 1fr; margin-top: 32px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* members area */
.page .inner { padding-block: 48px 72px; }
.page h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.page .lede { color: var(--ink-2); max-width: 60ch; }
.narrow .inner { max-width: 720px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }

.grouplist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.grouplist a { display: grid; grid-template-columns: 76px 1fr auto auto; gap: 8px 24px; align-items: center; padding: 18px 4px;
  border-bottom: 1px solid var(--hair); text-decoration: none; transition: background 0.15s; }
.grouplist a:hover { background: var(--veil); }
.grouplist .kind { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.grouplist .title { font-family: var(--display); font-size: 22px; min-width: 0; overflow-wrap: anywhere; }
.grouplist time { color: var(--ink-2); font-size: 14px; }
.grouplist .count { font-family: var(--mono); font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.grouplist .count.full { color: var(--ether); }
@media (max-width: 640px) {
  .grouplist a { grid-template-columns: 1fr auto; }
  .grouplist .kind { grid-column: 1 / -1; }
}
.empty { border: 1px dashed var(--hair-strong); padding: 40px 24px; display: grid; justify-items: start; gap: 14px; color: var(--ink-2); }
.empty p { margin: 0; }

/* forms */
.form { display: grid; gap: 10px; margin-top: 24px; }
.form label, .form legend { font-weight: 600; font-size: 14px; margin-top: 10px; }
.optional { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.form input, .form textarea, .form select, .joinform select {
  width: 100%; font: 16px/1.4 var(--body); color: var(--ink); background: var(--panel);
  border: 1px solid var(--hair-strong); border-radius: 2px; padding: 11px 12px; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--ether); outline: none; box-shadow: 0 0 0 3px rgba(159, 216, 255, 0.15); }
.form button { justify-self: start; margin-top: 14px; }
.hint { margin: 0; font-size: 13px; color: var(--ink-3); }
.when-preview:empty { display: none; }
.when-preview b { color: var(--ether); font-weight: 600; }
.when-preview .bad { color: var(--danger); }
.error, .notice { margin: 0 0 6px; padding: 10px 12px; border-left: 2px solid var(--danger); background: rgba(255, 138, 122, 0.08); color: #ffd4cc; font-size: 14px; }
.kinds { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kinds legend { padding: 0; margin-bottom: 8px; }
.kind-option { margin: 0 !important; font-weight: 400 !important; }
.kind-option input { position: absolute; opacity: 0; }
.kind-option span { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--hair-strong); cursor: pointer; color: var(--ink-2); font-size: 14px; }
.kind-option b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--ink); }
.kind-option input:checked + span { border-color: var(--ether); background: rgba(159, 216, 255, 0.06); }
.kind-option input:focus-visible + span { outline: 2px solid var(--ether); outline-offset: 3px; }
@media (max-width: 480px) { .kinds { grid-template-columns: 1fr; } }

/* group page */
.frame { border: 1px solid var(--hair-strong); background: var(--panel); border-radius: 4px; }
.frame .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 18px 20px; border-bottom: 1px solid var(--hair); }
.frame .bar h1 { font-size: clamp(26px, 3vw, 34px); overflow-wrap: anywhere; min-width: 0; }
.frame .kind { font-family: var(--mono); font-size: 12px; border: 1px solid var(--hair-strong); padding: 4px 8px; color: var(--ink-2); }
.frame .when { color: var(--ink-2); font-size: 14px; }
.frame .status { font-family: var(--mono); font-size: 12px; color: var(--live); border: 1px solid var(--live); padding: 4px 8px; }
.frame .actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.frame .actions form { margin: 0; }
.joinform { display: flex; gap: 8px; align-items: center; }
.joinform select { width: auto; max-width: 220px; height: 36px; padding: 0 10px; font-size: 14px; }
.full-note { font-size: 13px; color: var(--ink-3); }
.frame .sub { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 20px; border-bottom: 1px solid var(--hair); font-size: 13px; color: var(--ink-3); }
.frame .sub b { color: var(--ink-2); font-weight: 500; }
.frame .desc { margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--hair); color: var(--ink-2); white-space: pre-line; }
.caption { color: var(--ink-3); font-size: 13.5px; margin: 0; padding: 14px 20px 16px; border-top: 1px solid var(--hair); }
#lineup > .notice, #lineup > .pending { margin: 12px 20px; }
.pending { padding: 8px 12px; border-left: 2px solid var(--ether); background: rgba(159, 216, 255, 0.06); color: var(--ether); font-size: 13px; }

details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
.form-popover { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; width: min(360px, calc(100vw - 32px));
  background: var(--night-2); border: 1px solid var(--hair-strong); padding: 16px; margin: 0; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7); }
.form-popover.confirm p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
@media (max-width: 640px) { .form-popover { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; } }

.force { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hair); }
.force-party { grid-template-columns: minmax(0, 420px); background: transparent; padding: 0; }
@media (max-width: 980px) { .force-force { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .force-force { grid-template-columns: 1fr; } }
.pty { background: var(--panel); padding: 16px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.pty header { display: flex; justify-content: space-between; align-items: baseline; }
.pty header b { font-weight: 600; font-size: 14px; }
.pty header span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pty header span.full { color: var(--ether); }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.slot { position: relative; display: grid; grid-template-columns: 14px 1fr auto; gap: 0 10px; align-items: center; padding: 9px 10px;
  border: 1px solid var(--hair); background: var(--veil); min-height: 56px; }
[data-editable="true"] .slot:not(.open) { cursor: grab; touch-action: none; }
.slot:hover { border-color: var(--hair-strong); }
.slot .grip { grid-row: 1 / span 2; width: 8px; height: 14px; background-image: radial-gradient(var(--ink-3) 1px, transparent 1.4px); background-size: 4px 4px; opacity: 0.7; }
.slot .who { grid-column: 2; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .cls { grid-column: 2; font-size: 12.5px; color: var(--ink-3); }
.slot .st { grid-column: 3; grid-row: 1 / span 2; text-align: right; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); line-height: 1.45; font-variant-numeric: tabular-nums; }
.slot.host .who::after { content: "Host"; margin-left: 8px; font-family: var(--mono); font-size: 10px; color: var(--ether);
  border: 1px solid rgba(159, 216, 255, 0.4); padding: 1px 5px; vertical-align: 2px; }
.slot.open { grid-template-columns: 1fr; place-items: center; border-style: dashed; background: transparent; color: var(--ink-3); font-size: 12.5px; }
.slot.drag { border-color: var(--ether); background: rgba(159, 216, 255, 0.08); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8); }
.slot.target { border-color: var(--ether); border-style: dashed; color: var(--ether); }
.slot .remove { position: absolute; top: 4px; right: 4px; font: 500 11px/1 var(--body); color: var(--ink-3); background: var(--panel);
  border: 1px solid var(--hair); padding: 3px 6px; cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.slot:hover .remove, .slot:focus-within .remove, .remove[data-armed="1"] { opacity: 1; }
.remove[data-armed="1"] { color: var(--danger); border-color: var(--danger); }
@media (hover: none) { .slot .remove { opacity: 1; position: static; grid-column: 1 / -1; justify-self: end; margin-top: 6px; } }

/* gallery */
.linkbtn { font: 500 13px/1 var(--body); color: var(--ink-2); background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--ether); }
.linkbtn.danger:hover { color: var(--danger); }

.me-sections { display: grid; gap: 48px; }
.me-section h2 { margin: 0 0 16px; font-family: var(--display); font-weight: 400; font-size: 26px; }
.me-upload { max-width: 560px; padding: 24px; border: 1px solid var(--hair); background: var(--panel); }
.upload-form { margin-top: 0; align-content: start; }
.upload-form label:first-of-type { margin-top: 0; }
.upload-form input[type="file"] { padding: 10px; cursor: pointer; }
.upload-form input[type="file"]::file-selector-button { font: 600 13px/1 var(--body); color: var(--night); background: var(--ink); border: 0; padding: 9px 14px; margin-right: 12px; cursor: pointer; }
.mine-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.mine-list img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--hair); }
.mine-list .waiting img { opacity: 0.55; }
.mine-meta { display: grid; gap: 2px; padding-top: 6px; font-size: 13px; color: var(--ink-2); }
.mine-meta .state { font-family: var(--mono); font-size: 11.5px; color: var(--ether); }
.mine-meta .cap { overflow-wrap: anywhere; }
@media (max-width: 640px) { .me-upload { padding: 18px; } }

.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 20px; }
.gallery-grid figure { margin: 0; display: grid; gap: 10px; min-width: 0; }
.gallery-grid .shot { display: block; overflow: hidden; border: 1px solid var(--hair); background: var(--night-2); }
.gallery-grid .shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease, filter 0.4s ease; filter: saturate(0.92); }
.gallery-grid .shot:hover img, .gallery-grid .shot:focus-visible img { transform: scale(1.03); filter: saturate(1.05); }
.gallery-grid figcaption { display: grid; gap: 2px; font-size: 14px; }
.gallery-grid .cap { color: var(--ink); overflow-wrap: anywhere; }
.gallery-grid .credit { color: var(--ink-3); font-size: 13px; }
.officer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding-top: 8px; border-top: 1px dashed var(--hair); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; }
.pager a:only-child:last-child { margin-left: auto; }

.review-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.review-list li { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--hair); }
.review-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--hair); }
.review-who { margin: 0; color: var(--ink-2); font-size: 14px; }
.review-who b { color: var(--ink); font-weight: 600; }
.review-form { margin-top: 8px; max-width: 520px; }
.review-actions { display: flex; gap: 10px; margin-top: 8px; }
.review-actions .btn { margin-top: 0; }
@media (max-width: 640px) { .review-list li { grid-template-columns: 1fr; gap: 14px; } }

.strip { border-top: 1px solid var(--hair); }
.strip .inner { padding-block: 88px; display: grid; gap: 40px; }
.carousel { --per-view: 6; container-type: inline-size; overflow-x: auto; overscroll-behavior-x: contain; background: var(--hair); border: 1px solid var(--hair); }
.strip-grid { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; }
/* Each tile carries its own 1px divider so the doubled row is exactly twice one copy and loops without a seam. */
.strip-grid li { flex: 0 0 calc(100cqw / var(--per-view) - 1px); margin-right: 1px; }
.strip-grid a { display: block; background: var(--night); }
.strip-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; opacity: 0.85; transition: opacity 0.2s; }
.strip-grid a:hover img, .strip-grid a:focus-visible img { opacity: 1; }
.carousel.marquee { overflow: hidden; }
.carousel.marquee .strip-grid { animation: strip-scroll var(--duration, 60s) linear infinite; }
.carousel.marquee:hover .strip-grid, .carousel.marquee:focus-within .strip-grid { animation-play-state: paused; }
@keyframes strip-scroll { to { transform: translateX(-50%); } }
@media (max-width: 860px) { .carousel { --per-view: 3; } }

dialog.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); }
dialog.lightbox::backdrop { background: rgba(5, 10, 23, 0.94); }
dialog.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; padding: 64px 72px 24px; max-width: 100%; }
.lightbox img { display: block; max-width: min(100%, 1600px); max-height: calc(100vh - 160px); width: auto; height: auto; border: 1px solid var(--hair); }
.lightbox figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 14px; text-align: center; }
.lightbox .credit, .lightbox .count { color: var(--ink-3); }
.lightbox .count { font-family: var(--mono); font-size: 12px; }
.lightbox button { position: fixed; font: 600 13px/1 var(--body); color: var(--ink); background: rgba(5, 10, 23, 0.6); border: 1px solid var(--hair-strong); padding: 12px 16px; cursor: pointer; }
.lightbox button:hover { border-color: var(--ether); color: var(--ether); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@media (max-width: 640px) {
  .lightbox figure { padding: 64px 12px 84px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 16px; transform: none; }
}

/* footer */
footer.site { border-top: 1px solid var(--hair); }
footer.site .inner { padding-block: 32px 40px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; color: var(--ink-3); font-size: 13px; }
footer.site .brand-small { font-family: var(--display); font-size: 16px; color: var(--ink-2); letter-spacing: 0.06em; }
footer.site a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
