/* The studio site (jollygoodfellows.co): phone first at 375 wide, no sideways scroll, targets at least 44 px. */
@font-face { font-family: Bungee; src: url(/fonts/bungee-latin.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/figtree-latin.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

:root { --ink: #14304a; --soft: #3a5671; --mute: #6b8096; --gold: #f6c64a; --red: #e2262f; --night: #0d1330; --sky: #cfeeff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: linear-gradient(var(--sky), #f4fbff 900px) no-repeat, #f4fbff;
  font: 16px/1.5 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: Bungee, Impact, sans-serif; font-weight: 400; line-height: 1.05; margin: 0 0 10px; }
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 15px; font-family: inherit; font-weight: 800; margin: 0; }
p { margin: 0 0 14px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { left: 8px; top: 8px; z-index: 9; background: #fff; padding: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 12px; max-width: 1200px; margin: 0 auto; }
.logo { font-family: Bungee, Impact, sans-serif; font-size: 16px; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.bar nav { display: flex; overflow-x: auto; }
.bar nav a { display: none; min-height: 44px; align-items: center; padding: 0 10px; font-weight: 700; text-decoration: none; font-size: 15px; }
.bar nav a[href="#work"] { display: flex; }

.hero { padding: 6px 0 8px; }
.hero-text { padding: 0 16px; }
.hero-text p { color: var(--soft); font-size: 17px; }
.go { display: flex; align-items: center; justify-content: center; min-height: 52px; background: var(--red); color: #fff; font-weight: 800;
  font-size: 17px; border-radius: 14px; text-decoration: none; box-shadow: 0 4px 0 #9b141b; }
.mini { position: relative; margin: 16px 10px 0; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 26px -18px #14304a99; background: #39a6dc; }
.mini img { width: 100%; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, 1%); } }
.pin { position: absolute; left: 50%; top: 22%; background: #fff; border: 2px solid var(--ink); border-radius: 99px; padding: 3px 10px;
  font-weight: 800; font-size: 13px; box-shadow: 0 2px 0 var(--ink); }
.watch { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
  background: #0d1330e6; color: #fff; border-radius: 99px; font-weight: 800; text-decoration: none; font-size: 15px; }
.watch::before { content: ""; border: 7px solid transparent; border-left: 11px solid var(--gold); border-right: 0; }

.dark { background: var(--night); color: #fff; padding: 30px 0 32px; margin-top: 28px; }
.dark h2 { color: var(--gold); }
.dark p { color: #c9cde6; }
.board { list-style: none; margin: 14px 0 0; padding: 10px; background: #050817; border-radius: 14px; }
.board li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px solid #ffffff14; }
.board li:last-child { border: 0; }
.flaps { display: flex; gap: 2px; font: 400 16px/1 Bungee, Impact, sans-serif; color: #e9ecff; }
.flaps i { font-style: normal; display: inline-grid; place-items: center; width: 20px; height: 28px; background: #1b2150; border-radius: 3px;
  box-shadow: inset 0 -14px 0 #ffffff08; }
.board .st { font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 6px; background: #ffffff1a; color: #c9cde6; white-space: nowrap; }
.board .live .flaps i { color: var(--gold); }
.board .live .st { background: var(--gold); color: var(--night); }
.board .next .st { background: #ffd23f33; color: var(--gold); }

.sec { padding-top: 34px; }
.sec > .wrap > p { color: var(--soft); max-width: 62ch; }
.cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.city { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 0 #14304a1a; }
.city.live { grid-column: 1 / -1; }
.cimg { position: relative; aspect-ratio: 1; overflow: hidden; background: #dfe9f2; }
.city.live .cimg { aspect-ratio: 16 / 10; }
.cimg img { width: 100%; height: 100%; object-fit: cover; }
.sign { position: absolute; left: 8px; bottom: 8px; font-size: 12px; padding: 4px 9px; border-radius: 6px; border: 2px solid var(--ink);
  background: #fff; box-shadow: 0 2px 0 var(--ink); }
.city.live .sign { background: var(--gold); }
.sign.next { background: #ffd23f; }
.ctxt { padding: 8px 10px 12px; font-size: 13px; color: var(--soft); }
.ctxt p { margin: 2px 0 0; }
.ctxt small { display: block; color: var(--mute); font-size: 11.5px; margin-top: 4px; }

.player { border-radius: 18px; overflow: hidden; background: #050817; box-shadow: 0 16px 24px -16px #14304a99; }
.player video { width: 100%; aspect-ratio: 16 / 9; }
.still { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.still img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.still span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 0 22px 0 18px; background: #0d1330e6; color: #fff; border-radius: 99px; font-weight: 800; font-size: 17px; white-space: nowrap; }
.still span::before { content: ""; border: 8px solid transparent; border-left: 13px solid var(--gold); border-right: 0; }

.apps { list-style: none; margin: 0; padding: 4px 16px 10px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; max-width: 100%; }
.apps li { flex: 0 0 200px; scroll-snap-align: start; }
.apps img { width: 200px; aspect-ratio: 375 / 812; object-fit: cover; border-radius: 22px; border: 6px solid #050817; background: #050817; }
.apps h3 { margin-top: 10px; font-size: 16px; }
.apps p { font-size: 14px; color: var(--soft); margin: 2px 0 0; }
.note { color: var(--mute); font-size: 13px; margin-top: 6px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; counter-reset: s; }
.steps li { background: #fff; border-radius: 12px; padding: 12px; font-weight: 700; font-size: 14px; box-shadow: 0 3px 0 #14304a1a; counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-family: Bungee, Impact, sans-serif; font-size: 20px; color: var(--red); }

.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.posts a { display: block; background: #fff; border-radius: 14px; overflow: hidden; text-decoration: none; box-shadow: 0 3px 0 #14304a1a; min-height: 44px; }
.posts small { display: block; color: var(--mute); font-size: 12px; padding: 10px 12px 0; }
.posts b { display: block; padding: 2px 12px 12px; font-size: 16px; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--red); margin-top: 6px; }

.team-img { border-radius: 18px; margin-bottom: 14px; width: 100%; }
.founders { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.founders li { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 3px 0 #14304a1a; }
.founders b { display: block; font-size: 16px; }
.founders span { color: var(--soft); font-size: 14px; }
/* Text the owner confirms before the domain switch: shown with a dashed edge and a label on the preview.
   scripts/check-studio.mjs --final refuses the site while any is left. */
.confirm { position: relative; border: 2px dashed var(--red); border-radius: 12px; padding: 22px 12px 2px; margin: 0 0 14px; }
.confirm::before { content: "Owner to confirm: " attr(data-confirm); position: absolute; top: -11px; left: 10px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }

.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.doors a { display: flex; align-items: center; justify-content: center; min-height: 52px; background: var(--gold); color: var(--night); font-weight: 800;
  border-radius: 12px; text-decoration: none; }
.mail a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 700; margin-top: 8px; }
.foot { background: var(--night); color: #9aa3cf; font-size: 14px; padding: 18px 0 26px; border-top: 1px solid #ffffff1a; }
.foot p { margin: 0; }
.foot a { display: inline-flex; min-height: 44px; align-items: center; }

@media (min-width: 760px) {
  .bar { padding: 14px 32px; }
  .logo { font-size: 22px; }
  .bar nav a { display: flex; }
  .wrap { padding: 0 32px; }
  h1 { font-size: clamp(40px, 4vw, 52px); }
  h2 { font-size: 40px; }
  .hero { max-width: 1200px; margin: 0 auto; padding: 16px 32px 20px; }
  .hero-text { padding: 0; }
  .hero-text p { font-size: 20px; max-width: 30ch; }
  .go { display: inline-flex; padding: 0 40px; }
  .mini { margin: 24px 0 0; border-radius: 30px; }
  .player { max-width: 900px; }
  .team-img { max-width: 900px; }
  .dark { padding: 48px 0; margin-top: 44px; }
  .board { padding: 16px 18px; }
  .flaps i { width: 30px; height: 42px; font-size: 24px; }
  .board .st { font-size: 16px; padding: 7px 14px; }
  .sec { padding-top: 56px; }
  .cities { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .city.live { grid-column: auto; }
  .city.live .cimg { aspect-ratio: 1; }
  .apps { padding: 4px 32px 10px; max-width: 1264px; margin: 0 auto; }
  .apps li { flex-basis: 220px; }
  .apps img { width: 220px; }
  .steps { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .posts { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .founders { grid-template-columns: repeat(4, 1fr); }
  .doors { max-width: 720px; gap: 16px; }
}

@media (min-width: 960px) {
  .hero { display: grid; grid-template-columns: 1.1fr 1.3fr; gap: 40px; align-items: center; }
  .mini { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mini img { animation: none; }
  .board.turning .flaps i { transition: none; }
}
