:root {
  --bg: #f4f3f1;
  --ink: #111110;
  --muted: #76746f;
  --line: rgba(17, 17, 16, .1);
  --tile: #ebeae7;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1320px;
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: clip;
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Geist, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, p, ul, figure { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- nav ---------- */
.nav {
  position: absolute; z-index: 50; top: 0; left: 0; right: 0; height: 64px; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: block; width: 86px; aspect-ratio: 1227 / 576; background: var(--ink);
  -webkit-mask: url(parlay-logo-white.png) center / contain no-repeat; mask: url(parlay-logo-white.png) center / contain no-repeat;
}
.logo-light { background: #f4f3f1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 16px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  transition: opacity .2s;
}
.btn:hover { opacity: .82; }
.btn-small { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-light { background: #f4f3f1; color: var(--ink); }
.link { font-size: 16px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 84px 0 48px; display: flex; align-items: center; overflow: clip; }
.hero-copy { position: relative; z-index: 1; width: 44vw; max-width: 560px; margin-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); }
h1 { font-size: clamp(44px, 5.4vw, 84px); line-height: .96; font-weight: 500; letter-spacing: -.05em; text-wrap: balance; }
.lede { margin-top: 28px; max-width: 30em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; color: var(--muted); }
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 28px; }
/* one frame, sliding in from the right; its temples run off the edge of the screen */
.hero-media { position: absolute; right: 0; top: 50%; width: min(50vw, calc((100svh - 150px) * 1.125)); translate: 0 -47%; }
.hero-frame {
  display: block; width: 100%; height: auto;
  animation: frame-in 1.7s cubic-bezier(.16, .84, .24, 1) both;
}
.hero-note {
  position: absolute; left: 0; top: 80%; width: 13.5em; font-size: clamp(13px, 1vw, 15px); line-height: 1.35; font-weight: 500; letter-spacing: -.01em;
  animation: note-in .8s ease 1.3s both;
}
.hero-note svg { display: block; width: 62px; height: 62px; margin: 0 0 6px 10px; }
@keyframes note-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes frame-in { from { transform: translateX(40%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- blocks ---------- */
.block { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 168px) var(--pad) 0; }
.block-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(16px, 5vw, 80px); align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1; font-weight: 500; letter-spacing: -.045em; text-wrap: balance; }
.block-head p { max-width: 30em; color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; }

/* ---------- picker ---------- */
.picker { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; margin-bottom: 22px; min-height: 30px; }
.picker-center { justify-content: center; margin: 22px 0 0; }
.pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.pick-name { font-size: 16px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); opacity: .32; transition: opacity .2s; padding: 4px 0; }
.pick-name:hover { opacity: .6; }
.pick-name[aria-pressed="true"] { opacity: 1; }
.pick-dots { gap: 12px; }
.pick-dot { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(17, 17, 16, .16); transition: box-shadow .2s; }
.pick-dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.pick-label { font-size: 13px; color: var(--muted); min-width: 7em; }

/* ---------- pack shots: sliding preview + full gallery ---------- */
.reel { width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; }
.reel-track { display: flex; gap: 10px; width: max-content; will-change: transform; }
.reel-track button { flex: none; width: clamp(210px, 25vw, 400px); aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--tile); }
.reel-track img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel-foot { margin-top: 28px; }

.gallery { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--bg); animation: gallery-in .35s ease both; }
.gallery[hidden] { display: none; }
@keyframes gallery-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gallery-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px var(--pad) 14px; }
.gallery-bar .picker { margin: 0; }
.gallery-close { flex: none; width: 44px; height: 44px; margin: -6px -10px 0 0; border-radius: 50%; display: grid; place-items: center; }
/* a collage that scrolls sideways: two rows, every fifth picture double size */
.gallery-strip {
  --cell: 300px; display: grid; grid-template-rows: repeat(2, var(--cell)); grid-auto-columns: var(--cell); grid-auto-flow: column dense; gap: 8px;
  align-content: center; padding: 0 var(--pad) 24px; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; scrollbar-width: none; cursor: grab;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip.dragging { cursor: grabbing; }
.gallery-strip div { border-radius: 6px; overflow: hidden; background: var(--tile); }
.gallery-strip div.big { grid-row: span 2; grid-column: span 2; }
.gallery-strip img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; -webkit-user-drag: none; user-select: none; }
.gallery-strip img.in { opacity: 1; }

/* ---------- 360 ---------- */
.spin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.spin-copy p { margin-top: 22px; max-width: 24em; color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; }
.spin-copy .picker { flex-direction: column; align-items: flex-start; gap: 16px; margin: 36px 0 0; }
.spin {
  position: relative; width: 100%; aspect-ratio: 3 / 2; max-height: calc(100svh - 120px); overflow: hidden;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.spin.dragging { cursor: grabbing; }
/* the pictures are square with the frame sitting low: show the middle band */
.spin canvas { position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 1; transform: translate(-50%, -52%); }
.spin-hint {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 500; pointer-events: none; transition: opacity .4s;
}
.spin.touched .spin-hint { opacity: 0; }

/* ---------- try-on ---------- */
.tryon-stage { position: relative; aspect-ratio: 16 / 10; max-height: calc(100svh - 110px); width: 100%; border-radius: 6px; overflow: hidden; background: #0c0c0c; color: #f4f3f1; }
.tryon-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 46%; }
.tryon-idle {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px;
  padding: 28px; text-align: center; background: linear-gradient(to top, rgba(12, 12, 12, .55), rgba(12, 12, 12, 0) 55%);
}
.tryon-idle p { max-width: 26em; font-size: 13px; line-height: 1.4; opacity: .86; }
.tryon-idle[hidden], .tryon-root[hidden] { display: none; }
/* the try-on engine draws into this box instead of a full-screen dialog */
.ptry-root.tryon-root { position: absolute; inset: 0; z-index: 2; display: block; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-family: inherit; }
.tryon-root .ptry-stage { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.tryon-frames { display: flex; gap: 2px; max-width: 100%; padding: 4px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; background: rgba(20, 20, 20, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tryon-frames::-webkit-scrollbar { display: none; }
.tryon-frames button { flex: none; padding: 8px 13px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; opacity: .8; }
.tryon-frames button[aria-pressed="true"] { background: #fff; color: #111; opacity: 1; }

/* ---------- what you get ---------- */
.dark { margin-top: clamp(80px, 11vw, 168px); background: #0e0e0d; color: #f4f3f1; }
.dark-inner { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 150px) var(--pad) clamp(64px, 8vw, 120px); }
.rows { list-style: none; margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid rgba(244, 243, 241, .16); }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(16px, 5vw, 80px); padding: 22px 0; border-bottom: 1px solid rgba(244, 243, 241, .16); }
.rows span:first-child { font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.rows span:last-child { color: rgba(244, 243, 241, .62); max-width: 30em; align-self: center; }
.statement { margin-top: clamp(56px, 8vw, 120px); max-width: 21em; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.06; font-weight: 500; letter-spacing: -.04em; text-wrap: balance; }
.cta { margin-top: 40px; scroll-margin-top: 50vh; }
.foot { max-width: var(--max); margin: 0 auto; padding: 28px var(--pad) 36px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(244, 243, 241, .5); }
.foot .logo { width: 72px; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .nav { height: 56px; }
  .hero { display: block; min-height: 0; padding: 84px 0 0; }
  .hero-media { position: static; translate: none; width: 88vw; margin: 44px 0 0 auto; }
  .hero-note { position: static; width: auto; max-width: 17em; margin: -44px 0 0 calc(var(--pad) - 12vw); font-size: 13px; }
  .hero-note svg { width: 40px; height: 40px; margin-left: 30px; }
  .hero-copy { width: auto; max-width: none; margin: 0 var(--pad); }
  .lede { margin-top: 18px; }
  .hero-actions { margin-top: 24px; }
  .block-head { grid-template-columns: 1fr; gap: 14px; }
  .spin-layout { grid-template-columns: 1fr; gap: 8px; }
  .spin-copy p { margin-top: 14px; }
  .spin-copy .picker { margin-top: 22px; gap: 12px; }
  .reel-track { gap: 6px; }
  .reel-track button { width: 62vw; }
  .reel-foot { margin-top: 22px; }
  /* phones: the collage scrolls down instead, two across */
  .gallery-bar { padding-top: 14px; }
  .gallery-strip { grid-template-rows: none; grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; grid-auto-columns: auto; grid-auto-rows: calc((100vw - 2 * var(--pad) - 5px) / 2); gap: 5px; align-content: start; overflow-x: hidden; overflow-y: auto; cursor: auto; padding-bottom: 40px; }
  .picker { gap: 14px 24px; margin-bottom: 20px; }
  .pick-row { gap: 8px 18px; }
  .block { padding-top: 88px; }
  .dark { margin-top: 88px; }
  .picker-center { margin-top: 18px; }
  .picker-side { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }
  .picker-side .pick-names { flex-direction: row; gap: 4px 16px; }
  .picker-side .pick-name { font-size: 18px; }
  .tryon-stage { aspect-ratio: 3 / 4; max-height: 74svh; }
  .rows li { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-frame, .hero-note, .gallery { animation: none; }
  .reel { overflow-x: auto; }
}

.ptry-root.tryon-root[hidden] { display: none; }

/* ---------- booking page ---------- */
.book { max-width: 880px; margin: 0 auto; padding: 120px var(--pad) 96px; }
.book-head .lede { margin-top: 18px; }
.book-step { margin-top: 52px; }
.book-step h2, .admin-card h2 { font-size: 20px; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 16px; }
.book-days, .book-times { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.book-chip { min-width: 78px; padding: 12px 16px; border-radius: 10px; background: var(--tile); color: var(--ink); font-size: 16px; font-weight: 500; letter-spacing: -.01em; text-align: left; transition: background .15s, color .15s; }
.book-chip span { display: block; font-size: 12px; font-weight: 400; opacity: .6; }
.book-chip:hover { background: #dfddd9; }
.book-chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.book-tz { margin-top: 12px; font-size: 13px; color: var(--muted); }
.book-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(20px, 4vw, 48px); }
.book-fields label span { display: block; font-size: 13px; color: var(--muted); }
.book-fields input, .book-fields textarea, .admin-key input {
  display: block; width: 100%; margin-top: 2px; padding: 8px 0 10px; border: 0; border-bottom: 1px solid rgba(17, 17, 16, .25); border-radius: 0;
  background: none; color: var(--ink); font: inherit; font-size: 18px; outline: 0; resize: vertical; -webkit-appearance: none; appearance: none;
}
.book-fields input:focus, .book-fields textarea:focus, .admin-key input:focus { border-bottom-color: var(--ink); }
.book-wide { grid-column: 1 / -1; }
.book-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.book-foot { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.book-status { font-size: 15px; color: var(--muted); }
.btn[disabled] { opacity: .35; cursor: default; }
.book-done .lede { margin: 20px 0 32px; }
[hidden] { display: none !important; }
.admin-key { display: flex; gap: 14px; align-items: flex-end; max-width: 420px; margin: 28px 0 14px; }
.admin-card { padding: 22px 0; border-top: 1px solid var(--line); }
.admin-card.past { opacity: .5; }
.admin-card h2 { margin-bottom: 8px; }
.admin-card p { display: flex; gap: 14px; font-size: 15px; }
.admin-card p span { flex: none; width: 120px; color: var(--muted); }
@media (max-width: 820px) {
  .book { padding-top: 92px; }
  .book-step { margin-top: 40px; }
  .book-fields { grid-template-columns: 1fr; gap: 20px; }
  .book-chip { min-width: 0; flex: 1 0 30%; }
}

/* ---------- admin: visitors ---------- */
.admin { max-width: 1040px; }
.admin h1 { font-size: clamp(34px, 4vw, 52px); }
.admin-block { margin-bottom: 88px; }
.admin-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.admin-range { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tile); }
.admin-range button { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.admin-range button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; color: var(--muted); }
.admin-tile { padding: 18px 20px 20px; border-radius: 10px; background: var(--tile); color: var(--ink); }
.admin-tile span { display: block; font-size: 13px; color: var(--muted); }
.admin-tile strong { display: block; margin-top: 6px; font-size: 34px; font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.admin-funnel { margin: 36px 0 44px; display: grid; gap: 10px; }
.admin-bar { position: relative; display: grid; grid-template-columns: 190px 1fr 96px; align-items: center; gap: 14px; font-size: 15px; }
.admin-bar i { display: block; height: 10px; min-width: 2px; border-radius: 5px; background: var(--ink); }
.admin-bar b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.admin-visit { border-top: 1px solid var(--line); }
.admin-visit summary { display: grid; grid-template-columns: 150px 1.1fr 1fr 1fr 130px; gap: 6px 16px; align-items: baseline; padding: 16px 0; font-size: 14px; color: var(--muted); cursor: pointer; list-style: none; }
.admin-visit summary::-webkit-details-marker { display: none; }
.admin-visit summary strong { color: var(--ink); font-weight: 500; }
.admin-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.admin-tags i { padding: 3px 10px; border-radius: 999px; background: var(--tile); color: var(--ink); font-size: 12px; font-style: normal; font-weight: 500; }
.admin-tags i.hot { background: var(--ink); color: var(--bg); }
.admin-timeline { margin: 0 0 20px; padding: 0; list-style: none; font-size: 14px; }
.admin-timeline li { display: flex; gap: 16px; padding: 4px 0; }
.admin-timeline li span { flex: none; width: 70px; color: var(--muted); font-variant-numeric: tabular-nums; }
.admin-ignore { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 820px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-bar { grid-template-columns: 130px 1fr 78px; font-size: 13px; }
  .admin-visit summary { grid-template-columns: 1fr 1fr; }
}
