/* yonyc.app homepage: "Good evening, New York." The living city, four films, and each app's story. No frameworks. */
:root {
  --night: #0c1a46; --ink: #f4ede1; --ink-2: rgba(244, 237, 225, 0.78); --ink-3: rgba(244, 237, 225, 0.55);
  --glass: rgba(14, 18, 34, 0.55); --line: rgba(244, 237, 225, 0.16);
  --yellow: #fbc102; --amber: #f2b15c;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --gut: max(18px, env(safe-area-inset-left));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.x { min-height: 100svh; background: var(--night); color: var(--ink); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased;
  display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.nowrap { white-space: nowrap; }

/* ---------- the city ---------- */
#city { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 12, 34, 0.30) 0%, rgba(6, 12, 34, 0.0) 28%, rgba(6, 12, 34, 0.0) 62%, rgba(4, 8, 22, 0.40) 100%); }

/* ---------- top ---------- */
.top { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; padding: max(16px, env(safe-area-inset-top)) var(--gut) 0; }
.mark { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.mark-yo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: #17151d;
  font: 800 15px/1 var(--display); letter-spacing: -0.02em; }
.mark-nyc { font: 800 21px/1 var(--display); letter-spacing: -0.02em; }
.mark-accent { margin: 0; color: var(--ink-3); font-size: 13.5px; letter-spacing: 0.01em; }
.dir-open { margin-left: auto; }
.top .dir-open { border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
.top .dir-open:hover { border-color: rgba(244, 237, 225, 0.4); }

/* ---------- hello: the greeting keeps its personality, at a size that hands the stage to the films ---------- */
.stage { position: relative; z-index: 2; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 2.6vh, 30px);
  padding: clamp(6px, 2vh, 24px) var(--gut) 18px; max-width: 1400px; width: 100%; margin: 0 auto; }
.hello { max-width: 900px; margin: 0 auto; text-align: center; }
.clock { margin: 0 0 6px; color: var(--amber); font: 600 13px/1.2 var(--body); letter-spacing: 0.14em; text-transform: uppercase; text-shadow: 0 1px 10px rgba(6, 12, 34, 0.8); }
.hello-title { margin: 0; font: 700 clamp(32px, 3.5vw, 52px)/1.02 var(--display); letter-spacing: -0.03em; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(6, 12, 34, 0.55); }
.hello-sub { margin: 10px auto 0; max-width: 780px; color: rgba(244, 237, 225, 0.92); font-size: clamp(15.5px, 1.25vw, 18px); text-wrap: balance;
  text-shadow: 0 1px 12px rgba(6, 12, 34, 0.9); }

/* ---------- the reel: five premieres, equal billing ---------- */
.reel { --gap: clamp(16px, 2vw, 30px);
  --pw: min(calc((100vw - 2 * var(--gut) - 4 * var(--gap)) / 5), calc((100svh - 400px) * 9 / 16), 300px);
  list-style: none; margin: 0; padding: 0 0 18px; display: grid; grid-template-columns: repeat(5, var(--pw)); justify-content: center; gap: var(--gap); }
.reel-item { position: relative; display: flex; }
.reel-item > .film { flex: 1; }
.reel-item::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; height: 36px; z-index: -1; pointer-events: none;   /* the film's light on the street */
  background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); filter: blur(10px); opacity: 0.75; }
.film { position: relative; display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left; cursor: pointer; border: 0; background: none;
  border-radius: 18px; isolation: isolate; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 0 1px rgba(255, 236, 200, 0.22), 0 26px 60px rgba(2, 6, 22, 0.55), 0 0 70px -18px var(--accent);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s; }
.film:hover, .film:focus-visible { transform: translateY(-6px);
  box-shadow: 0 0 0 2px var(--accent), 0 34px 70px rgba(2, 6, 22, 0.6), 0 0 90px -10px var(--accent); }
.film:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.frame { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 18px 18px 0 0; overflow: hidden; background: #0c1020; }
.film .poster { display: block; width: 100%; height: 100%; }
.film .poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.film:hover .poster img { transform: scale(1.03); }
.frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 62%, rgba(4, 8, 24, 0.55)); }
.play { position: absolute; left: 50%; bottom: 9%; z-index: 1; width: 64px; height: 64px; margin-left: -32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.95); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(255, 255, 255, 0.18); transition: transform 0.25s, box-shadow 0.25s; }
.play svg { width: 26px; height: 26px; fill: #0d1020; margin-left: 4px; }
.film:hover .play, .film:focus-visible .play { transform: scale(1.1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 6px var(--accent); }
.film-tag { margin-left: auto; align-self: center; flex: none; padding: 3px 9px; border-radius: 999px; background: var(--amber); color: #1b1408;
  font: 700 11px/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.film-meta { flex: 1; display: grid; align-content: start; gap: 3px; padding: 13px 16px 15px; border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, rgba(16, 22, 48, 0.94), rgba(10, 14, 34, 0.96)); border-top: 2px solid var(--accent); }
.film-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.film-no { flex: none; color: var(--accent); font: 700 12px/1 var(--body); letter-spacing: 0.16em; filter: brightness(1.25); }
.film-title { font: 700 clamp(18px, 1.45vw, 22px)/1.15 var(--display); letter-spacing: -0.015em; }
.film-app { color: rgba(244, 237, 225, 0.82); font-size: clamp(12.5px, 0.95vw, 14px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.film-avail { display: inline-flex; align-items: center; gap: 7px; color: rgba(244, 237, 225, 0.82); font-size: clamp(12px, 0.9vw, 13px); font-weight: 600; white-space: nowrap; }
.film-avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); flex: none; }
.film-avail.is-live::before { background: #4ade80; box-shadow: 0 0 10px #4ade80; }

/* the film that isn't made yet: a marquee */
.marquee { display: grid !important; place-items: center; align-content: center; gap: 6px; padding: 12px; text-align: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(242, 193, 78, 0.22), rgba(12, 14, 28, 0.95) 70%) !important; }
.marquee::before { content: ""; position: absolute; inset: 7px; border-radius: 12px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 214, 120, 0.95) 0 2px, transparent 2.6px) 0 0 / 14px 14px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 5px;
  animation: bulbs 1.6s steps(2) infinite; opacity: 0.85; }
@keyframes bulbs { 50% { background-position: 7px 0; } }
.marquee-icon { width: clamp(44px, 4.4vw, 64px); height: auto; border-radius: 22%; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.marquee-now { font: italic 600 clamp(18px, 1.7vw, 24px)/1 var(--serif); color: #ffd27a; text-shadow: 0 0 18px rgba(255, 196, 90, 0.6); }
.marquee-pitch { font-size: 12.5px; color: var(--ink-2); max-width: 22ch; }

/* ---------- also made in New York ---------- */
.also { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.also-label { color: var(--ink-2); font-size: 13px; text-shadow: 0 1px 8px rgba(4, 8, 22, 0.9); letter-spacing: 0.06em; text-transform: uppercase; }
.also ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.also img { display: block; width: 40px; height: 40px; border-radius: 22%; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); transition: transform 0.2s; }
.also a:hover img, .also a:focus-visible img { transform: translateY(-3px); }

.foot { position: relative; z-index: 2; padding: 10px var(--gut) max(14px, env(safe-area-inset-bottom)); color: var(--ink-2); font-size: 12.5px; text-shadow: 0 1px 8px rgba(4, 8, 22, 0.9); }
.foot p { margin: 0; }
.linklike { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: inherit; font-size: inherit; }
.stories { display: none; }
.noscript { position: relative; z-index: 3; padding: 0 var(--gut); }

/* ---------- the theater ---------- */
.theater, .dir { position: fixed; inset: 0; z-index: 50; }
.theater[hidden], .dir[hidden] { display: none; }
.theater-backdrop, .dir-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 10, 0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fade 0.3s ease both; }
.theater-frame { position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: max(12px, env(safe-area-inset-top)) var(--gut) max(28px, env(safe-area-inset-bottom)); animation: rise 0.45s cubic-bezier(.2, .8, .2, 1) both; }
.theater-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; max-width: 1100px; margin: 0 auto; padding: 4px 0 12px; }
.theater-title { margin: 0; font: 700 clamp(16px, 1.6vw, 20px)/1.25 var(--display); }
.theater-title small { display: block; color: var(--ink-3); font: 500 13px/1.3 var(--body); }
.theater-close { margin-left: auto; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20, 24, 40, 0.8);
  display: grid; place-items: center; cursor: pointer; }
.theater-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.screen { max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 120px -30px var(--accent); }
.screen iframe, .screen video { display: block; width: 100%; height: 100%; border: 0; background: #000; }
/* the end of a film (and a YouTube-only film that can't play here): the poster again, with one button */
.screen-end { width: 100%; height: 100%; display: grid; place-items: center; background: #000 center / cover no-repeat; }
.screen-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.35);
  background: rgba(10, 12, 24, 0.72); color: #fff; font: 600 17px/1 inherit; text-decoration: none; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.screen-btn svg { width: 18px; height: 18px; fill: currentColor; }
.screen-btn:hover, .screen-btn:focus-visible { background: var(--accent, #f4c95d); color: #0b0d18; border-color: transparent; }
.screen-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.screen.is-portrait { aspect-ratio: 9 / 16; height: min(78svh, 1000px); width: auto; max-width: 100%; }
.screen.is-empty { display: none; }
.theater-story { max-width: 1100px; margin: 26px auto 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- an app's story ---------- */
.story { display: grid; gap: 18px; }
.story-head { display: flex; gap: 18px; align-items: center; }
.story-icon { width: 84px; height: 84px; border-radius: 22%; flex: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.story-eyebrow { margin: 0; color: var(--accent); font: 700 12px/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase; }
.story-name { margin: 2px 0 0; font: 800 clamp(28px, 3.4vw, 44px)/1 var(--display); letter-spacing: -0.03em; }
.story-pitch { margin: 6px 0 0; color: var(--ink-2); font-size: 18px; }
.story-desc { margin: 0; max-width: 760px; color: var(--ink-2); font-size: 17px; }
.story-buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.story-price { margin: 0; color: var(--ink-3); font-size: 14px; }
.store { display: inline-grid; padding: 9px 18px 10px; border-radius: 12px; background: #000; border: 1px solid rgba(255, 255, 255, 0.55); text-decoration: none; line-height: 1.05; }
.store-small { font-size: 11px; }
.store-big { font: 600 22px/1 var(--body); letter-spacing: -0.01em; }
.soon { margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; }
.soon-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.story-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 22px; }
.story-feats li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.story-feats li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.story-feats b { color: var(--ink); display: block; }
.story-shots { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.story-shots figure { margin: 0; flex: none; width: clamp(150px, 18vw, 210px); scroll-snap-align: start; }
.story-shots img { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.story-shots figcaption { margin-top: 6px; color: var(--ink-3); font-size: 12.5px; }
.story-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; font-weight: 600; }
.story-links a { text-decoration: none; border-bottom: 1px solid var(--line); }
.story-links a:hover { border-color: var(--accent); }
.story-fine { margin: 0; color: var(--ink-3); font-size: 12.5px; max-width: 820px; }
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.topics li { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(242, 193, 78, 0.3); background: rgba(242, 193, 78, 0.06); font-weight: 700; }
.topics span { display: block; font-weight: 400; color: var(--ink-3); font-size: 13.5px; }

/* each app in its own voice */
.theater[data-theme="subway"] .theater-title { background: #121212; padding: 10px 16px 12px; border-radius: 8px; position: relative; }
.theater[data-theme="subway"] .theater-title::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: #fff; }
.theater[data-theme="subway"] .theater-backdrop { background:
  repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 34px), repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 68px), rgba(8, 9, 12, 0.9); }
.theater[data-theme="wherewuzi"] .story-name, .theater[data-theme="wherewuzi"] .theater-title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.theater[data-theme="wherewuzi"] .story-pitch { font-family: var(--serif); font-style: italic; color: var(--amber); }
.theater[data-theme="wherewuzi"] .theater-backdrop { background: radial-gradient(ellipse at 50% 20%, rgba(242, 177, 92, 0.14), rgba(6, 9, 20, 0.92) 65%); }
.theater[data-theme="bathroom"] .theater-backdrop { background: radial-gradient(ellipse at 50% 15%, rgba(0, 147, 60, 0.20), rgba(4, 8, 8, 0.9) 60%); }
.theater[data-theme="imow"] .story-name, .theater[data-theme="imow"] .theater-title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
.theater[data-theme="imow"] .story-pitch { font-family: var(--serif); font-style: italic; color: #e8c27a; }
.theater[data-theme="imow"] .theater-backdrop { background: radial-gradient(ellipse at 50% 15%, rgba(224, 122, 95, 0.18), rgba(18, 12, 8, 0.93) 62%); }   /* candlelight, the film's own */
.theater[data-theme="trivia"] .theater-backdrop { background: radial-gradient(ellipse at 50% 10%, rgba(242, 193, 78, 0.16), rgba(10, 8, 4, 0.92) 60%); }
.theater[data-theme="trivia"] .story-name { font-family: var(--serif); font-style: italic; font-weight: 600; color: #ffd27a; }

/* ---------- directory ---------- */
.dir-sheet { position: absolute; right: 0; top: 0; bottom: 0; width: min(560px, 100%); overflow-y: auto; overscroll-behavior: contain;
  background: rgba(10, 13, 26, 0.97); border-left: 1px solid var(--line); padding: max(16px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
  animation: slide 0.35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.dir-head { display: flex; align-items: center; }
.dir-head h2 { margin: 0; font: 800 26px/1.1 var(--display); letter-spacing: -0.02em; }
.dir-lede { color: var(--ink-2); margin: 10px 0 18px; }
.dir-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dir-list li { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dir-list img { width: 52px; height: 52px; border-radius: 22%; flex: none; }
.dir-list b { display: block; }
.dir-list span { display: block; color: var(--ink-3); font-size: 14px; }
.dir-links { display: flex !important; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; color: var(--ink) !important; font-weight: 600; }
.dir-links em { color: var(--amber); font-style: normal; }
.dir-foot { margin-top: 18px; color: var(--ink-2); }
.dir-fine { color: var(--ink-3); font-size: 12px; }

/* ---------- phones: four premieres in a 2×2 billing, all on the first screen ---------- */
@media (orientation: portrait) and (max-width: 820px) {
  .mark-accent { display: none; }
  .stage { justify-content: flex-start; gap: 14px; padding-top: 10px; }
  .clock { font-size: 11.5px; margin-bottom: 4px; }
  .hello-title { font-size: clamp(25px, 7.4vw, 36px); }
  .hello-sub { font-size: 14.5px; margin-top: 6px; max-width: 34ch; }
  .reel { --gap: 12px; grid-template-columns: repeat(2, minmax(0, min(260px, calc((100svh - 330px) / 2 * 0.68)))); padding-bottom: 8px; }
  /* five films: the newest premiere alone on the last row, centred, the same size as the others */
  .reel-item:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - var(--gap) / 2); }
  .frame { aspect-ratio: 7 / 10; border-radius: 14px 14px 0 0; }
  .film { border-radius: 14px; }
  .film .poster img { object-position: 50% 22%; }
  .film-meta { padding: 8px 10px 10px; gap: 1px; border-radius: 0 0 14px 14px; }
  .film-no { font-size: 10.5px; letter-spacing: 0.1em; }
  .film-head { flex-wrap: wrap; row-gap: 3px; }
  .film-title { font-size: 14.5px; line-height: 1.15; }
  .film-app { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .film-dur { display: none; }
  .film-avail { font-size: 11px; gap: 5px; }
  .film-avail::before { width: 6px; height: 6px; }
  .play { width: 44px; height: 44px; margin-left: -22px; bottom: 4%; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(255, 255, 255, 0.18); }
  .play svg { width: 20px; height: 20px; margin-left: 3px; }
  .film-tag { display: none; }
  .reel-item::after { height: 24px; }
  .also { gap: 10px; }
  .also-label { width: 100%; }
  .screen.is-portrait { height: min(76svh, 760px); margin: 0 auto; }
  .story-head { align-items: flex-start; }
  .story-icon { width: 64px; height: 64px; }
}
@media (max-height: 760px) and (orientation: landscape) { .hello-title { font-size: clamp(28px, 3vw, 40px); } .hello-sub { margin-top: 6px; } .stage { gap: 14px; }
  .reel { --pw: min(calc((100vw - 2 * var(--gut) - 3 * var(--gap)) / 4), calc((100svh - 318px) * 9 / 16), 320px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
