/* The home page showcase: a trailer that plays the games we're building, then
   a big feature row for each. On black, like the rest of the site. Each game brings its own accent (--acc, --acc2). */

.showcase {
  --sc-bg: #000;
  --sc-text: #eef2f8;
  --sc-muted: #A8A29A;
  --sc-line: rgba(220, 228, 236, 0.10);
  --acc: #F5B42D; --acc2: #FF9800;
  position: relative; overflow: hidden; color: var(--sc-text);
  background: var(--sc-bg);
  padding: 76px 0 40px;
  isolation: isolate;
}
.showcase::before {           /* the room's glow follows whichever game is on */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 38%, color-mix(in srgb, var(--glow, #F5B42D) 16%, transparent), transparent 70%);
  transition: background 1.2s ease;
}

/* ── Heading ── */
.sc-head { max-width: 1400px; margin: 0 auto 26px; padding: 0 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sc-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: #ff5d5d; margin-bottom: 14px; }
.sc-rec { width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 12px #ff3b3b; animation: sc-rec 1.6s ease-in-out infinite; }
@keyframes sc-rec { 50% { opacity: 0.25; box-shadow: none; } }
.sc-title { font-size: clamp(40px, 6vw, 84px); font-weight: 900; line-height: 0.95; letter-spacing: -0.03em; color: #fff; }
.sc-title .sc-sweep {
  background: linear-gradient(100deg, #fff 0%, #fff 40%, var(--acc2) 50%, #fff 60%, #fff 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sc-sweep 6s ease-in-out infinite;
}
@keyframes sc-sweep { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }
.sc-sub { max-width: 380px; font-size: 0.98rem; color: var(--sc-muted); line-height: 1.7; }

/* ── The theater ── */
.theater {
  position: relative; width: min(1400px, calc(100% - 48px), calc((100vh - 215px) * 16 / 9)); min-width: min(720px, calc(100% - 48px)); margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--sc-line), 0 40px 120px -30px color-mix(in srgb, var(--glow, #F5B42D) 55%, transparent);
  transition: box-shadow 1.2s ease;
}
.act { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s; }
.act.on { opacity: 1; visibility: visible; transition: opacity 0.9s ease; z-index: 1; }
.act video, .act .act-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.act.on video, .act.on .act-poster { animation: sc-push 16s linear both; }
@keyframes sc-push { from { transform: scale(var(--z0, 1)); } to { transform: scale(var(--z1, 1.07)); } }
.act-gideon video, .act-gideon .act-poster { --z0: 1.14; --z1: 1.2; transform-origin: 50% 85%; }
.act-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.72) 0%, transparent 20%),
    linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 38%, transparent 62%),
    linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 45%),
    radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(0,0,0,0.6) 100%);
}
.act-copy { position: absolute; left: clamp(20px, 4.5vw, 64px); bottom: clamp(20px, 5vw, 64px); max-width: min(620px, 70%); z-index: 2; }
.act-copy > * { opacity: 0; }
.act.on .act-copy > * { animation: sc-rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
.act.on .act-kicker { animation-delay: 0.35s; }
.act.on .act-name { animation: sc-slam 1.1s cubic-bezier(.16,.9,.24,1) 0.55s both; }
.act.on .act-tag { animation-delay: 1.05s; }
.act.on .act-ctas { animation-delay: 1.3s; }
@keyframes sc-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes sc-slam { 0% { opacity: 0; transform: scale(1.25); filter: blur(14px); } 60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: scale(1); filter: blur(0); } }
.act-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc); margin-bottom: 14px; }
.act-kicker::before { content: ''; width: 28px; height: 2px; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.act-name { margin-bottom: 12px; line-height: 1; }
.act-tag { font-size: clamp(15px, 1.7vw, 21px); color: #dfe5ee; margin-bottom: 22px; text-shadow: 0 2px 12px rgba(0,0,0,0.8); }
.act-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* titles, one voice per game */
.t-gideon img { width: clamp(200px, 30vw, 420px); height: auto; filter: drop-shadow(0 0 24px rgba(232, 182, 90, 0.45)) drop-shadow(0 6px 18px rgba(0,0,0,0.9)); }
.t-tenfold { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: clamp(40px, 6vw, 88px); letter-spacing: 0.16em; margin-right: -0.16em;
  background: linear-gradient(180deg, #fbe7b8 0%, #e2b46a 45%, #a8702c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(226, 180, 106, 0.35)); }
.t-tenfold-sub { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500; }
.t-asylum { font-family: 'Playfair Display', Georgia, serif; color: #efe6d2; text-shadow: 0 0 30px rgba(239, 230, 210, 0.25), 0 4px 16px rgba(0,0,0,0.9); }
.t-asylum small { display: block; font-size: clamp(12px, 1.5vw, 20px); font-weight: 700; letter-spacing: 0.32em; margin-bottom: 6px; }
.t-asylum span { display: block; font-size: clamp(38px, 6.6vw, 96px); font-weight: 900; letter-spacing: 0.04em; }
.act.on .t-asylum span { animation: sc-flicker 2.4s linear 1.4s both; }
.t-tides { position: relative; display: inline-block; font-family: 'Caveat', 'Segoe Print', cursive; font-weight: 700; font-size: clamp(54px, 8.4vw, 124px); line-height: 0.9; color: #fff6e8;
  text-shadow: 0 0 34px rgba(255, 176, 114, 0.55), 0 4px 18px rgba(0,0,0,0.75); padding-bottom: 0.22em; }
.t-tides svg { position: absolute; left: 2%; bottom: 0; width: 96%; height: 0.2em; overflow: visible; }
.t-tides path { fill: none; stroke: #7fe3d6; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(127, 227, 214, 0.8)); stroke-dasharray: 340; stroke-dashoffset: 340; }
.act.on .t-tides path { animation: sc-wave 1.6s cubic-bezier(.4,0,.2,1) 1.1s forwards; }
@keyframes sc-wave { to { stroke-dashoffset: 0; } }
@keyframes sc-flicker { 0%, 9%, 12%, 30%, 33%, 60%, 100% { opacity: 1; } 10%, 31%, 32% { opacity: 0.15; } 61% { opacity: 0.6; } }

/* buttons */
.sc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-size: 0.86rem; font-weight: 800; letter-spacing: 0.02em; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s; }
.sc-btn-main { background: var(--acc); color: #0a0d14; box-shadow: 0 10px 30px -8px var(--acc); }
.sc-btn-main:hover { color: #0a0d14; transform: translateY(-2px); box-shadow: 0 16px 36px -8px var(--acc); }
.sc-btn-ghost { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(8px); }
.sc-btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.14); transform: translateY(-2px); }

/* film furniture: grain, letterbox, the cut flash, the corner slate */
.theater-grain { position: absolute; inset: -50%; z-index: 3; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: sc-grain 0.9s steps(5) infinite; }
@keyframes sc-grain { 0% { transform: translate(0,0); } 20% { transform: translate(-6%,4%); } 40% { transform: translate(5%,-3%); } 60% { transform: translate(-3%,-6%); } 80% { transform: translate(6%,5%); } }
.theater::before, .theater::after { content: ''; position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 4; transition: height 0.45s cubic-bezier(.6,0,.2,1); }
.theater::before { top: 0; } .theater::after { bottom: 0; }
.theater.cut::before, .theater.cut::after { height: 50.5%; }
.theater-flash { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--glow, #fff) 70%, #fff) 50%, transparent 100%); background-size: 40% 3px; background-repeat: no-repeat; background-position: -40% 50%; }
.theater.cut .theater-flash { animation: sc-streak 0.5s ease-out 0.2s both; }
@keyframes sc-streak { 0% { opacity: 1; background-position: -40% 50%; } 100% { opacity: 1; background-position: 140% 50%; } }
.theater-slate { position: absolute; top: clamp(14px, 2.4vw, 28px); left: clamp(20px, 4.5vw, 64px); right: clamp(20px, 4.5vw, 64px); z-index: 2; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.62); pointer-events: none; }
.theater-count { font-variant-numeric: tabular-nums; letter-spacing: 0.18em; }
.theater-count b { color: #fff; }

/* the timeline under the screen */
.sc-tabs { width: min(1400px, calc(100% - 48px)); margin: 18px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sc-tab { --acc: #fff; display: block; text-align: left; background: none; border: 0; padding: 12px 2px 0; cursor: pointer; color: var(--sc-muted); font: inherit; }
.sc-tab-bar { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.12); overflow: hidden; margin-bottom: 10px; }
.sc-tab-bar i { display: block; height: 100%; width: 0; background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.sc-tab-name { display: block; font-size: 0.92rem; font-weight: 800; color: #c8d0dd; transition: color 0.3s; }
.sc-tab-meta { display: block; font-size: 0.72rem; letter-spacing: 0.06em; color: #8F8A82; margin-top: 2px; }
.sc-tab:hover .sc-tab-name, .sc-tab[aria-pressed="true"] .sc-tab-name { color: #fff; }
.sc-tab.done .sc-tab-bar i { width: 100%; }

/* ── Feature rows ── */
.sc-features { max-width: 1400px; margin: 0 auto; padding: 120px 24px 40px; display: grid; gap: clamp(90px, 12vw, 160px); }
.feat { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.feat.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); }
.feat.flip .feat-media { order: 2; }
.feat-media { position: relative; clip-path: inset(0 100% 0 0 round 16px); transition: clip-path 1.2s cubic-bezier(.7,0,.2,1); }
.feat.flip .feat-media { clip-path: inset(0 0 0 100% round 16px); }
.feat.seen .feat-media { clip-path: inset(0 0 0 0 round 16px); }
.feat-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; cursor: zoom-in; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.4s ease-out;
  box-shadow: 0 0 0 1px var(--sc-line), 0 50px 100px -40px color-mix(in srgb, var(--acc) 50%, transparent); }
.feat-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.feat-stage img.on { opacity: 1; }
.feat-stage img.on { animation: sc-kb-a 7s linear both; }
.feat-stage img:nth-child(even).on { animation-name: sc-kb-b; }
@keyframes sc-kb-a { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2.5%, -1.5%); } }
@keyframes sc-kb-b { from { transform: scale(1.14) translate(2.5%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
.feat-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(130% 110% at 50% 50%, transparent 60%, rgba(0,0,0,0.55) 100%); }
.feat-zoom { position: absolute; right: 14px; top: 14px; z-index: 2; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.18); padding: 6px 10px; border-radius: 6px; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.feat-stage:hover .feat-zoom { opacity: 1; }
.feat-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.feat-thumbs::-webkit-scrollbar { display: none; }
.feat-thumbs button { flex: 0 0 auto; width: clamp(64px, 8vw, 104px); aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: #111; opacity: 0.45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity 0.3s, outline-color 0.3s; }
.feat-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-thumbs button:hover { opacity: 0.85; }
.feat-thumbs button.on { opacity: 1; outline-color: var(--acc); }

.feat-copy { position: relative; }
.feat-copy > * { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.feat.seen .feat-copy > * { opacity: 1; transform: none; }
.feat.seen .feat-copy > :nth-child(2) { transition-delay: 0.15s; }
.feat.seen .feat-copy > :nth-child(3) { transition-delay: 0.25s; }
.feat.seen .feat-copy > :nth-child(4) { transition-delay: 0.35s; }
.feat.seen .feat-copy > :nth-child(5) { transition-delay: 0.45s; }
.feat.seen .feat-copy > :nth-child(6) { transition-delay: 0.55s; }
.feat.seen .feat-copy > :nth-child(7) { transition-delay: 0.65s; }
.feat-num { position: absolute !important; top: -0.62em; right: 0; z-index: -1; font-size: clamp(110px, 14vw, 200px); font-weight: 900; line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--acc) 40%, transparent); }
.feat.seen .feat-copy > .feat-num { opacity: 0.8; }
.feat-kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc); margin-bottom: 14px; }
.feat-title { font-size: clamp(32px, 3.8vw, 52px); font-weight: 900; line-height: 1.02; letter-spacing: -0.02em; color: #fff; margin-bottom: 12px; }
.feat-tag { font-size: 1.12rem; color: var(--acc2); font-weight: 600; margin-bottom: 16px; }
.feat-desc { font-size: 1rem; line-height: 1.8; color: var(--sc-muted); margin-bottom: 22px; }
.feat-facts { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.feat-facts li { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; color: #d6dce6; background: rgba(255,255,255,0.05); border: 1px solid var(--sc-line); }
.feat-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.feat-gideon .feat-title { font-family: 'Cinzel', Georgia, serif; letter-spacing: 0.01em; }
.feat-tenfold .feat-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; letter-spacing: 0.22em; }
.feat-asylum .feat-title { font-family: 'Playfair Display', Georgia, serif; }
.feat-tides .feat-title { font-family: 'Caveat', 'Segoe Print', cursive; font-weight: 700; font-size: clamp(46px, 5vw, 72px); line-height: 0.95; letter-spacing: 0; }
.sc-soon { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px; font-size: 0.86rem; font-weight: 800; color: var(--acc); border: 1px dashed color-mix(in srgb, var(--acc) 60%, transparent); background: color-mix(in srgb, var(--acc) 8%, transparent); }
.sc-soon::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); animation: sc-rec 1.8s ease-in-out infinite; }

.sc-outro { text-align: center; padding: 70px 24px 60px; color: var(--sc-muted); font-size: 0.95rem; }
.sc-outro a { font-weight: 700; }

/* ── The full-size viewer ── */
.sc-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(3, 5, 9, 0.94); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s linear 0.3s; }
.sc-lightbox.open { opacity: 1; visibility: visible; transition: opacity 0.3s; }
.sc-lightbox img { max-width: min(1920px, 94vw); max-height: 84vh; border-radius: 10px; box-shadow: 0 30px 90px rgba(0,0,0,0.7); transform: scale(0.96); transition: transform 0.35s cubic-bezier(.2,.7,.2,1); }
.sc-lightbox.open img { transform: none; }
.sc-lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; transition: background 0.2s; }
.sc-lb-btn:hover { background: rgba(255,255,255,0.16); }
.sc-lb-close { top: 18px; right: 18px; }
.sc-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.sc-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.sc-lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 0.82rem; color: #aab4c4; }

/* ── Phones ── */
@media (max-width: 760px) {
  .showcase { padding-top: 72px; }
  .theater, .sc-tabs { width: 100%; }
  .theater { border-radius: 0; aspect-ratio: 4 / 5; }
  .act-copy { max-width: none; right: 20px; }
  .act-tag { font-size: 15px; margin-bottom: 16px; }
  .sc-tabs { padding: 0 16px; gap: 4px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-tab-meta { display: none; }
  .sc-tab-name { font-size: 0.78rem; }
  .feat, .feat.flip { grid-template-columns: minmax(0, 1fr); }
  .feat.flip .feat-media { order: 0; }
  .sc-features { padding: 80px 16px 20px; }
  .sc-head { padding: 0 16px; }
  .sc-lb-prev, .sc-lb-next { top: auto; bottom: 56px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .act.on video, .act.on .act-poster, .feat-stage img.on, .theater-grain, .sc-title .sc-sweep, .sc-rec { animation: none !important; }
  .act.on .act-copy > *, .act.on .t-asylum span { animation: none !important; opacity: 1; }
  .t-tides path { animation: none !important; stroke-dashoffset: 0; }
  .sc-soon::before { animation: none; }
  .feat-media, .feat.flip .feat-media { clip-path: none; }
  .feat-copy > * { opacity: 1; transform: none; }
}
