/* Playground — "the lab". Its own look on purpose: floating glass windows over a drifting aura,
   tilt and light that follow the pointer, windows you can drag. The thin thread back to the main site:
   the same accent, the same mono labels, and the Guaranteed Human footer. */
:root {
  --bg: #040407; --ink: #f4f5fa; --text: #b9bccb; --muted: #7d8194;
  --glass: rgba(22,22,32,.42); --glass-strong: rgba(30,30,44,.6);
  --edge: rgba(255,255,255,.11); --edge-hi: rgba(255,255,255,.24); --shadow: rgba(0,0,0,.7);
  --accent: #ff5fb4; --accent-ink: #0b0b10;
  --blob-1: #8a0d55; --blob-2: #2a1a5e; --blob-3: #5b0f3f; --blob-4: #1a1440;
  --font: "Inter", "SF Pro Display", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --px: 0; --py: 0; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.label { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Glass surface */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 var(--edge-hi), 0 40px 80px -30px var(--shadow), 0 8px 24px -12px var(--shadow);
}

/* Aura: drifting colour behind everything, nudged by the pointer */
.aura { position: fixed; inset: -10%; z-index: -2; pointer-events: none; overflow: hidden;
  transform: translate3d(calc(var(--px) * -40px), calc(var(--py) * -40px), 0); transition: transform .6s ease-out; }
.blob { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .5; mix-blend-mode: normal; }
.b1 { background: var(--blob-1); left: -6%; top: -8%; animation: drift1 26s ease-in-out infinite alternate; }
.b2 { background: var(--blob-2); right: -10%; top: 4%; animation: drift2 31s ease-in-out infinite alternate; }
.b3 { background: var(--blob-3); left: 18%; bottom: -18%; opacity: .35; animation: drift3 29s ease-in-out infinite alternate; }
.b4 { background: var(--blob-4); right: 8%; bottom: -10%; opacity: .45; animation: drift1 35s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, 16vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(10vw, -14vh) scale(1.1); } }

/* Light that follows the pointer */
.glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--edge-hi) 60%, transparent) 0%, transparent 65%); opacity: 0; transition: opacity .4s; }
body.pointer .glow { opacity: .35; }

/* Floating nav pill */
.bar { position: sticky; top: 12px; z-index: 50; width: min(calc(100% - 32px), 520px); margin: 12px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 4px 10px; border-radius: 999px; }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { height: 34px; width: auto; display: block; }
.bar nav { display: flex; gap: 4px; }
.bar nav a { padding: 5px 11px; border-radius: 999px; font-size: .8rem; color: var(--text); transition: background .2s, color .2s; }
.bar nav a:hover { background: var(--glass-strong); color: var(--ink); }
.bar nav a[aria-current] { background: var(--ink); color: var(--bg); }

/* Hero */
.hero { text-align: center; padding: clamp(28px, 6vh, 56px) 20px 0; display: grid; gap: 8px; justify-items: center; }
.hero h1 { margin: 0; font-weight: 300; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; padding: 0 .06em .14em; margin-bottom: -.14em; letter-spacing: -.045em; color: var(--ink);
  background: linear-gradient(100deg, var(--ink) 30%, var(--accent) 50%, var(--ink) 70%); background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 9s ease-in-out infinite; }
@keyframes shimmer { 50% { background-position: 0% 0; } }
.lede { max-width: 30rem; margin: 0; font-size: .95rem; color: var(--muted); }
.hint { display: none; align-items: center; gap: 8px; }
.hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
body.pointer .hint { display: inline-flex; }

/* Stage of floating windows */
.stage { max-width: 1240px; margin: 0 auto; padding: clamp(24px, 5vh, 48px) 20px clamp(64px, 12vh, 120px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; perspective: 1600px; }
.col { display: grid; gap: clamp(20px, 3vw, 36px); }
.win { position: relative; transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0); touch-action: auto; }
.win.dragging { z-index: 40; cursor: grabbing; }
.win.dragging .pane { box-shadow: inset 0 1px 0 var(--edge-hi), 0 70px 120px -30px var(--shadow); }
.float { animation: bob 7s ease-in-out infinite; }
.col .win:nth-child(2) .float { animation-duration: 8.5s; animation-delay: -3s; }
.col .win:nth-child(3) .float { animation-duration: 9.5s; animation-delay: -5s; }
.stage > .win .float { animation-delay: -1.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.pane { position: relative; display: block; border-radius: 30px; padding: 14px; transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .4s; will-change: transform; }
.pane.live { transition: transform .12s ease-out, box-shadow .4s; }
.pane::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.45), transparent 45%); mix-blend-mode: soft-light; }
.pane:hover::after { opacity: 1; }
body.pointer .win { cursor: grab; user-select: none; -webkit-user-select: none; }
.grabber { width: 72px; height: 5px; border-radius: 99px; margin: 12px auto 0; background: var(--edge-hi); opacity: .8; transition: width .25s, opacity .25s; }
.win:hover .grabber { width: 96px; opacity: 1; }

/* Window contents */
.titlebar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 16px; padding: 4px 8px 12px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--edge-hi); }
.shot { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 11; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 30%; transform: scale(1.04); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.shot.slot { display: grid; place-items: center; border: 1px dashed var(--edge-hi); background: color-mix(in srgb, var(--glass-strong) 60%, transparent); }
.shot.square { aspect-ratio: 1 / 1; }
.shot.square img { object-position: 50% 50%; }
.pane:hover .shot img { transform: scale(1.09); }
.body { display: grid; gap: 10px; padding: 20px 10px 8px; }
.body h2 { margin: 0; font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; letter-spacing: -.035em; color: var(--ink); }
.body p { margin: 0; color: var(--text); max-width: 32rem; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent); transition: transform .25s, box-shadow .25s; }
.pane:hover .pill { transform: translateY(-2px); box-shadow: 0 16px 40px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--edge); color: var(--text); }

/* Small widgets */
.widget .body { padding: 10px 10px 8px; }
.widget h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.pulse { display: inline-flex; align-items: center; gap: 8px; }
.pulse::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.clock { font-weight: 200; font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.stats div { border-radius: 16px; padding: 12px 14px; background: var(--glass-strong); border: 1px solid var(--edge); }
.stats b { display: block; font-weight: 300; font-size: 2rem; line-height: 1; letter-spacing: -.04em; color: var(--ink); }

/* Footer — the Guaranteed Human thread */
.foot { width: min(calc(100% - 32px), 760px); margin: 0 auto 32px; border-radius: 28px; padding: 22px 24px; display: grid; gap: 16px; }
.human-badge { display: flex; align-items: center; gap: 16px; }
.seal { width: 64px; height: 64px; flex: none; color: var(--ink); }
.seal-text { font-family: var(--mono); font-size: 9px; fill: currentColor; }
.seal .print { stroke: var(--accent); }
.human-badge p { margin: 0; font-size: .9rem; line-height: 1.5; }
.human-badge strong { color: var(--ink); font-weight: 600; }
.foot-row { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--edge); }
.foot-row nav { display: flex; gap: 18px; font-size: .9rem; }
.foot-row nav a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .bar { padding-left: 16px; }
  .bar nav a { padding: 7px 10px; }
}
@media (max-width: 420px) { .logo img { height: 28px; } .bar nav a:not([aria-current]):first-child { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .blob, .float, .hero h1, .pulse::before { animation: none !important; }
  .aura, .pane, .shot img { transition: none !important; }
}

/* ---------- Photography: a light table of floating prints ---------- */
.table { max-width: 1240px; margin: 0 auto; padding: clamp(24px, 5vh, 48px) 20px clamp(48px, 8vh, 96px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 34px); align-items: start; perspective: 1600px; }
.print { grid-column: span 3; margin-inline: 0; margin-bottom: 0; }
.print.wide { grid-column: 4 / span 6; margin-top: 2vh; }
.print:nth-child(1) { margin-top: 3vh; }
.print:nth-child(3) { margin-top: 6vh; }
.print:nth-child(4) { margin-top: -2vh; }
.print .win { transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) rotate(var(--rot, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.print .win.dragging { transition: none; }
.print .pane { padding: 10px 10px 12px; border-radius: 22px; }
.print .frame { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 2 / 3; background: #000; }
.print.wide .frame { aspect-ratio: 3 / 2; }
.print .frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s; }
.print .pane:hover .frame img { transform: scale(1.08); }
.print figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 10px 4px 0; }
.print:nth-child(2n+1) .float { animation-duration: 8s; animation-delay: -2s; }
.print:nth-child(3n) .float { animation-duration: 9.5s; animation-delay: -4s; }

/* Booking note */
.booking { width: min(calc(100% - 32px), 760px); margin: 0 auto clamp(48px, 8vh, 88px); border-radius: 28px; padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.booking p { margin: 0; max-width: 34rem; }
.booking strong { color: var(--ink); font-weight: 600; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; color: var(--text); overflow: hidden; }
.lightbox::backdrop { background: rgba(2,2,5,.72); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.lightbox[open] { display: grid; place-items: center; }
.lb-pane { position: relative; display: grid; gap: 12px; padding: 12px; border-radius: 26px; max-width: min(92vw, 1100px); animation: rise .45s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.lb-pane img { max-width: 100%; max-height: 76vh; width: auto; height: auto; border-radius: 16px; margin: 0 auto; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 4px; }
.lb-btns { display: flex; gap: 6px; }
.lb-btns button { width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font: 400 1rem var(--font); color: var(--ink);
  background: var(--glass-strong); border: 1px solid var(--edge); transition: background .2s, color .2s; }
.lb-btns button:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

@media (max-width: 900px) {
  .print, .print.wide { grid-column: span 6; }
  .print.wide { grid-column: 1 / -1; }
  .print:nth-child(n) { margin-top: 0; }
}
@media (max-width: 520px) {
  .print, .print.wide { grid-column: span 12; }
  .print .win { --rot: 0deg !important; }
}

/* ---------- Life: Dad's User Manual ---------- */
.hero h1 span { -webkit-text-fill-color: var(--accent); }
.manual { max-width: 1240px; margin: 0 auto; padding: clamp(24px, 5vh, 48px) 20px 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 36px); align-items: start; perspective: 1600px; }
.panel { padding: clamp(20px, 3vw, 30px); border-radius: 30px; display: grid; gap: 18px; }
.panel h2 { margin: 0; font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
.panel p { margin: 0; }
.panel .big { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink); line-height: 1.55; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rules div { border-radius: 16px; padding: 14px; background: var(--glass-strong); border: 1px solid var(--edge); border-top: 2px solid var(--accent); }
.rules b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.rules p { font-size: .9rem; line-height: 1.45; }
.x { font-family: var(--mono); font-size: .75rem; padding: 1px 6px; border-radius: 5px; background: var(--ink); color: var(--bg); }

.toc-wrap { max-width: 1240px; margin: 0 auto; padding: clamp(20px, 3vw, 36px) 20px 0; perspective: 1600px; }
.toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 28px; }
.toc section { display: grid; gap: 6px; align-content: start; }
.toc .label { padding-bottom: 8px; border-bottom: 1px solid var(--edge-hi); }
.toc .dek { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--edge); color: var(--ink); }
.toc li i { font-style: normal; font-family: var(--mono); font-size: .72rem; color: var(--accent); min-width: 1.4em; }

.section-title { max-width: 1240px; margin: clamp(48px, 8vh, 88px) auto 0; padding: 0 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-title h2 { margin: 0; font-weight: 300; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.04em; color: var(--ink); }
.table.pages .print { grid-column: span 4; margin-top: 0; }
.print.page .frame { aspect-ratio: auto; background: #fff; }
.print.page .frame img { height: auto; object-fit: contain; transform: none; }
.print.page .pane:hover .frame img { transform: none; }

.verse { width: min(calc(100% - 32px), 760px); margin: 0 auto clamp(48px, 8vh, 88px); border-radius: 28px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 12px; text-align: center; }
.verse p { margin: 0; font-weight: 300; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.5; letter-spacing: -.01em; color: var(--ink); }

@media (max-width: 900px) {
  .manual, .toc { grid-template-columns: minmax(0, 1fr); }
  .table.pages .print { grid-column: span 6; }
}
@media (max-width: 620px) {
  .rules { grid-template-columns: minmax(0, 1fr); }
  .table.pages .print { grid-column: span 12; }
}
