/* One calm white sheet on a full-screen photo. Black type, hairline borders, one black button. Nothing glows. */
:root {
  --ink: #0a0a0a; --ink-2: #52525b; --ink-3: #8a8a93; --line: #e4e4e7; --line-strong: #d0d0d6;
  --sheet: #ffffff; --wash: #fafafa; --danger: #c8102e; --focus: #0a0a0a;
  --font: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 14px/1.45 var(--font); color: var(--ink); background: #111; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }

/* Three photos, cross-fading; a dark veil keeps the sheet's edge crisp on the bright ones.
   The first photo shows at once. The other two load, and the slider starts, when the page
   has loaded (form.js adds .run), and not at all with reduced motion. */
.photo { position: fixed; inset: 0; background: #0b0f14; }
.photo i { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; }
.photo i:nth-child(1) { opacity: 1; background-image: url("/img/photo-1-900.jpg"); background-image: image-set(url("/img/photo-1-900.webp") type("image/webp"), url("/img/photo-1-900.jpg") type("image/jpeg")); }
.photo::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .32); }
@media (min-width: 901px) {
  .photo i:nth-child(1) { background-image: url("/img/photo-1.jpg"); background-image: image-set(url("/img/photo-1.webp") type("image/webp"), url("/img/photo-1.jpg") type("image/jpeg")); }
}
@media (prefers-reduced-motion: no-preference) {
  /* 27 s cycle, 9 s per photo, 1.5 s fade. The negative delay starts the first photo fully visible. */
  .photo.run i { animation: fade 27s infinite; }
  .photo.run i:nth-child(1) { animation-delay: -1.35s; }
  .photo.run i:nth-child(2) { animation-delay: 7.65s; background-image: url("/img/photo-2-900.jpg"); background-image: image-set(url("/img/photo-2-900.webp") type("image/webp"), url("/img/photo-2-900.jpg") type("image/jpeg")); }
  .photo.run i:nth-child(3) { animation-delay: 16.65s; background-image: url("/img/photo-3-900.jpg"); background-image: image-set(url("/img/photo-3-900.webp") type("image/webp"), url("/img/photo-3-900.jpg") type("image/jpeg")); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
  .photo.run i:nth-child(2) { background-image: url("/img/photo-2.jpg"); background-image: image-set(url("/img/photo-2.webp") type("image/webp"), url("/img/photo-2.jpg") type("image/jpeg")); }
  .photo.run i:nth-child(3) { background-image: url("/img/photo-3.jpg"); background-image: image-set(url("/img/photo-3.webp") type("image/webp"), url("/img/photo-3.jpg") type("image/jpeg")); }
}
@keyframes fade { 0% { opacity: 0; } 5% { opacity: 1; } 33% { opacity: 1; } 39% { opacity: 0; } 100% { opacity: 0; } }

.wrap { position: relative; min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 56px 16px 72px; }
.sheet { width: 100%; max-width: 520px; background: var(--sheet); border-radius: 10px; box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 24px 60px rgba(0, 0, 0, .35); }
.head { padding: 28px 32px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.brand img { width: 26px; height: 26px; display: block; }
h1 { margin: 22px 0 4px; font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.lede { margin: 0; color: var(--ink-2); }

form { padding: 24px 32px 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 520px) { .row.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.rule { height: 1px; background: var(--line); margin: 2px 0; }

label, .label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 500; margin: 0 0 6px; }
label span, .label span { font-weight: 400; color: var(--ink-3); }
input[type=text], input[type=email], input[type=url], textarea {
  display: block; width: 100%; height: 38px; padding: 0 11px; font: inherit; color: var(--ink);
  background: var(--sheet); border: 1px solid var(--line-strong); border-radius: 7px; outline: none;
  transition: border-color .12s; appearance: none; }
textarea { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #a1a1aa; }
input:hover, textarea:hover { border-color: #b4b4bc; }
input:focus-visible, textarea:focus-visible { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.invalid input, input.invalid { border-color: var(--danger); }
.invalid input:focus-visible, input.invalid:focus-visible { box-shadow: 0 0 0 1px var(--danger); }
.msg { display: none; margin: 6px 0 0; font-size: 12.5px; color: var(--danger); overflow-wrap: anywhere; }
.invalid .msg, .msg.on { display: block; }
.note { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.note button { all: unset; cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.note button:focus-visible { box-shadow: 0 0 0 1px var(--focus); border-radius: 2px; }

/* Tracks: a plain list. The drop area is one quiet row, not a billboard. */
.drop { display: flex; align-items: center; justify-content: center; gap: 6px; height: 64px; border: 1px dashed var(--line-strong); border-radius: 7px; background: var(--wash); color: var(--ink-2); cursor: pointer; transition: border-color .12s, background .12s; }
.drop:hover, .drop.over { border-color: var(--ink); background: #f4f4f5; }
.drop u { color: var(--ink); text-underline-offset: 2px; font-weight: 500; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { border-color: var(--ink); border-style: solid; }
.linkrow { margin-top: 8px; }
.tracks { list-style: none; margin: 0 0 10px; padding: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.tracks:empty { display: none; }
.track { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; padding: 9px 8px 9px 12px; border-top: 1px solid var(--line); }
.track:first-child { border-top: 0; }
.track .n { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.track input { height: 26px; padding: 0 6px; margin-left: -6px; border-color: transparent; font-weight: 500; background: transparent; }
.track input:hover { border-color: var(--line-strong); }
.track input.invalid { border-color: var(--danger); }
.track input { text-overflow: ellipsis; }
.track input::placeholder { font-weight: 400; }
.track .src { grid-column: 2; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track.failed .src { color: var(--danger); }
.track .rm { all: unset; cursor: pointer; grid-row: 1 / span 2; grid-column: 3; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: var(--ink-3); }
.track .rm:hover, .track .rm:focus-visible { background: #f4f4f5; color: var(--ink); }
.track .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--ink); transition: width .2s linear; }
.track.done .bar { opacity: 0; transition: opacity .3s .2s; }
.track.failed .bar { opacity: 0; }

.checks { display: grid; gap: 9px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 400; margin: 0; cursor: pointer; justify-content: flex-start; }
.check input { width: 15px; height: 15px; margin: 0; flex: none; accent-color: var(--ink); }

/* Honeypot: people never see or reach it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* The Turnstile check only takes room when it needs a click. */
.human:empty { display: none; }
.human { min-width: 0; overflow: hidden; }
.formmsg { margin: -8px 0 -8px; }

.submit { all: unset; box-sizing: border-box; display: block; width: 100%; height: 40px; border-radius: 7px; background: var(--ink); color: #fff; font-weight: 500; text-align: center; cursor: pointer; transition: background .12s; }
.submit:hover { background: #27272a; }
.submit:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.submit[aria-busy=true] { background: #27272a; cursor: default; }
.fine { margin: -8px 0 0; font-size: 12.5px; color: var(--ink-3); text-align: center; }

.received { display: none; padding: 8px 32px 36px; }
.received h2 { margin: 18px 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; outline: none; }
.received p { margin: 0 0 4px; color: var(--ink-2); overflow-wrap: anywhere; }
.sent form, .sent .lede, .sent h1 { display: none; }
.sent .received { display: block; }

@media (max-width: 560px) { .wrap { padding: 20px 12px 40px; } .head { padding: 22px 20px 0; } form { padding: 20px 20px 24px; } .received { padding: 4px 20px 28px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
