/* ===== Tokens (change colours/sizes here) ===== */
:root {
  --bg: #000000;            /* Page background */
  --text: #ffffff;          /* Captions, buttons */
  --text-muted: #c4c4c4;    /* Small lines */
  --gold: #FFC65C;          /* Tagline accent, same gold as the link pages */
  --tile: #151515;          /* Tile background while a photo loads or is missing */
  --line: rgba(255,255,255,.18); /* Dividers */
  --radius: 18px;           /* Tile corner radius */
  --gap: clamp(14px, 2.4vw, 30px); /* Space between tiles */
  --max: 1120px;            /* Content width */
}
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.5; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus { outline: none; }
html[data-kbd] :focus-visible { outline: 3px solid var(--text); outline-offset: 4px; border-radius: 8px; }

/* ===== Hero ===== */
.hero { text-align: center; padding: clamp(64px, 11vw, 140px) 24px clamp(48px, 7vw, 96px); }
.logo { width: min(90vw, 820px); margin: 0 auto; }
.tagline { margin: clamp(22px, 3vw, 36px) auto 0; font-size: min(.95rem, 3.9vw); white-space: nowrap; font-weight: 400; letter-spacing: -.035em; color: var(--text); line-height: 1.1; }
.tagline em { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: -.01em; color: var(--gold); font-size: 1.12em; line-height: .9; }

/* ===== Story tiles ===== */
.stories { max-width: var(--max); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px) clamp(64px, 9vw, 120px); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(22px, 3.4vw, 40px) var(--gap); }
@media (min-width: 640px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.tile { display: block; }
.frame { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: linear-gradient(150deg, #1f1f1f, #0b0b0b); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.25,.1,.25,1), opacity .4s; }
.caption { display: block; margin-top: 12px; font-weight: 700; font-size: clamp(.95rem, 1.5vw, 1.15rem); line-height: 1.25; color: var(--text); }
/* Play badge */
.play { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .3s, background .3s; }
.play svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
@media (hover: hover) {
  .tile:hover .frame img { transform: scale(1.06); }
  .tile:hover .play { transform: scale(1.12); background: rgba(0,0,0,.75); }
}
.tile:active .frame { opacity: .85; }
/* Slot with no photo yet: shows the first letter so the grid still looks intentional */
.frame.no-photo img { display: none; }
.frame.no-photo::before { content: attr(data-initial); position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: clamp(3rem, 9vw, 5.5rem); color: #2b2b2b; }

.tile.soon .caption { text-align: center; }
@media (min-width: 1000px) { .tagline { font-size: clamp(.95rem, 1.5vw, 1.15rem); } }

/* Social buttons: same pills as the KurtisWin link page */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px; background: #000; box-shadow: 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; transition: box-shadow .25s ease; }
.pill:hover { box-shadow: 0 0 0 2px var(--gold); }
svg.i { width: 20px; height: 20px; flex: none; color: var(--gold); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); text-align: center; padding: 36px 24px 48px; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; }
.socials a { font-size: 1rem; font-weight: 500; color: var(--text); padding: 8px 2px; opacity: .9; }
@media (hover: hover) { .socials a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; } }
.legal { margin: 14px 0 0; font-size: .85rem; color: var(--text-muted); }

/* ===== Motion (off when the visitor prefers reduced motion) ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.25,.1,.25,1), transform .7s cubic-bezier(.25,.1,.25,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .logo, .js .hero .tagline { animation: rise .9s cubic-bezier(.25,.1,.25,1) both; }
.js .hero .tagline { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero .logo, .js .hero .tagline { animation: none; }
  .frame img, .play { transition: none; }
}
