:root {
  color-scheme: dark;
  --bg: #0A0A0A;
  --panel: #121212;
  --raised: #1A1A1A;
  --ink: #FFFFFF;
  --muted: #B3B3B3;
  --dim: #9A9A9A;
  --line: #2A2A2A;
  --stamp: #FFFB00;
  --on-stamp: #0A0A0A;
  --grey: #4A4A4A;
  --ok: #4FC488;
  --warn: #E8A94A;
  --bad: #F07B73;
  --focus: #FFFB00;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.55 "Instrument Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -0.015em; margin: 0; line-height: 1.1; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 20px 0; }
a:not(.btn):not(.vt):hover { color: var(--stamp); }


.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn { border-radius: 999px; }
.btn.primary { background: var(--stamp); border-color: var(--stamp); color: var(--on-stamp); font-weight: 700; }
.btn.primary:hover { background: #FFFFFF; border-color: #FFFFFF; }
.btn:disabled { opacity: .55; cursor: default; }

/* stamp: the one bold element */
.stamp { width: 168px; height: 168px; color: var(--stamp); transform: rotate(-12deg); flex: none; }
.stamp text { font: 700 13px "Instrument Sans", system-ui; fill: currentColor; }
.stamp .big { font: 700 30px "Bricolage Grotesque", system-ui; letter-spacing: 0; }

/* forms */
form { margin: 8px 0 60px; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend, .label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 15.5px; padding: 0; }
.hint { display: block; color: var(--muted); font-size: 14px; font-weight: 400; margin-top: -4px; margin-bottom: 8px; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=tel], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); color: var(--ink); font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid2 > label { display: block; }
label.field { display: block; margin-bottom: 18px; }
label.field > span { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
label.field > span.hint { font-weight: 400; font-size: 14px; margin-top: -2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); font-size: 14.5px; user-select: none; }
.chips input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.chips.cards span { border-radius: 10px; padding: 11px 14px; }
.chips small { display: block; color: var(--muted); font-size: 12.5px; }
.chips input:checked + span small { color: inherit; opacity: .75; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: var(--bad); margin: 0 0 14px; min-height: 1.2em; }
.done { padding: 40px 0 80px; }
.done h1 { font-size: 34px; margin-bottom: 10px; }
.done p { max-width: 52ch; color: var(--muted); }


@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .stamp { width: 132px; height: 132px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ───────── visuals ───────── */
/* icon tiles (video type, timeline) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.tiles label { position: relative; }
.tiles input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tiles span { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); color: var(--ink); }
.tiles svg { width: 28px; height: 28px; color: var(--stamp); }
.tiles b { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.tiles input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tiles input:checked + span svg { color: var(--bg); }
.tiles input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.tiles.row3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.tiles.row3 span { flex-direction: row; align-items: center; }

/* video tiles */
.vt { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); aspect-ratio: 16 / 9; padding: 0; cursor: pointer; color: var(--ink); text-decoration: none; }
.vt.tall { aspect-ratio: 9 / 16; }
.vt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt .site { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: var(--muted); background: repeating-linear-gradient(135deg, var(--panel) 0 10px, var(--raised) 10px 20px); }
.vt .pl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(15, 17, 22, .72); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.vt .pl svg { width: 20px; height: 20px; margin-left: 3px; }
.vt .pl.lk svg { margin-left: 0; width: 18px; height: 18px; }
.vt .cap { position: absolute; left: 8px; bottom: 8px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(15, 17, 22, .72); color: #FFFFFF; }
.vt .cap:empty { display: none; }
.vt:hover .pl { background: var(--stamp); color: var(--on-stamp); }
.strip { display: flex; flex-wrap: wrap; gap: 10px; }
.strip .vt { height: 170px; width: auto; flex: none; }
.strip .vt.tall { width: auto; }
@media (max-width: 560px) { .strip .vt { height: 140px; } }
.vt .site { padding-top: 58px; }
.vt:not(:has(img)) .pl { top: 40%; background: var(--raised); color: var(--ink); border: 1px solid var(--line); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(8, 9, 12, .86); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lb[hidden] { display: none; }
.lb-frame { width: min(960px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.lb-frame.tall { width: min(400px, 100%); aspect-ratio: 9 / 16; max-height: 86vh; }
.lb-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lb-x { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #FFFFFF; font-size: 26px; cursor: pointer; }

/* fit meter */
.fitm { margin: 16px 0 0; display: grid; gap: 8px; }
.fitm div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: center; }
.fitm dt { font-size: 13.5px; color: var(--muted); }
.fitm dd { margin: 0; display: flex; align-items: center; gap: 10px; }
.fitm .track { flex: 1; height: 8px; border-radius: 999px; background: #3A3A3A; overflow: hidden; }
.fitm .fill { display: block; height: 100%; background: #FFFFFF; border-radius: 999px; }
.fitm .w { font-size: 12.5px; font-weight: 600; width: 52px; }

/* avatars */
.av { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; background: var(--panel); }
.av-i { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--dim); border: 2px solid var(--dim); background: var(--raised); }

/* photo picker */
.photo-pick { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.photo-pick .btn { padding: 10px 16px; font-size: 14.5px; }
.photo-pick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.vt:not(:has(img)) .cap { display: none; }

/* ───────── site header and footer ───────── */
.site { position: sticky; top: 0; z-index: 20; background: rgba(10, 10, 10, .92); backdrop-filter: blur(10px); border-bottom: 1px solid #262626; }
.site-in, .foot-in { max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink) !important; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.site nav { display: flex; gap: 28px; }
.site nav a, .foot nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site nav a:hover, .foot nav a:hover { color: var(--ink) !important; }
.site-cta { display: flex; gap: 6px; align-items: center; }
.site-cta .plain { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 14px; }
.pill { background: var(--stamp); color: var(--on-stamp); text-decoration: none; font-weight: 700; padding: 11px 18px; border-radius: 999px; white-space: nowrap; }
.pill:hover { background: #FFFFFF; color: var(--on-stamp) !important; }
.site [aria-current="page"] { color: var(--ink); }
.foot { border-top: 1px solid #262626; margin-top: 40px; }
.foot-in { align-items: flex-start; padding: 36px 24px 48px; flex-wrap: wrap; }
.foot .brand svg { width: 24px; height: 24px; }
.foot .brand span { font-size: 18px; }
.foot small { display: block; color: var(--dim); font-size: 14px; margin-top: 8px; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
@media (max-width: 880px) { .site nav { display: none; } }
@media (max-width: 440px) {
  .site-in { padding: 12px 16px; gap: 10px; }
  .brand span { font-size: 19px; }
  .site-cta .plain { padding: 8px 8px; }
  .pill { padding: 10px 14px; font-size: 15px; }
}
