/* The Image Village – site styles.
   The studio shell is dark and quiet; each game brings its own colours.
   To change the shell colours, edit the :root block below. */

@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-latin-opsz-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-latin-wght-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
/* Game fonts (only downloaded on pages that use them) */
@font-face { font-family: "Fredoka"; src: url(fonts/fredoka-bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url(fonts/bricolage.ttf) format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Old Standard"; src: url(fonts/oldstandard-regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Old Standard"; src: url(fonts/oldstandard-bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Special Elite"; src: url(fonts/specialelite.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "La Belle Aurore"; src: url(fonts/labelleaurore.ttf) format("truetype"); font-display: swap; }

:root {
  --bg: #0D0E11;
  --surface: #15171C;
  --ink: #F3EEE4;
  --muted: #A8A49B;
  --line: #2B2E36;
  --accent: #F2B552;
  --accent-dark: #FFCB73;
  --on-accent: #16130C;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
picture { display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 8vw, 6rem); letter-spacing: -0.025em; font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-variation-settings: "opsz" 100; }
h2 em { color: var(--accent); font-style: italic; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.lede { font-size: clamp(1.125rem, 2vw, 1.375rem); color: var(--ink); }
.text-link { font-weight: 600; color: var(--accent); }
.num { font: 400 1rem/1 var(--serif); font-variant-numeric: tabular-nums; opacity: .8; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: var(--bg); }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--w-accent, var(--accent)); color: var(--on-accent); }
.btn-primary:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: var(--w-ink, var(--ink)); border-color: var(--w-ink, var(--ink)); color: var(--w-inv, var(--bg)); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px; border: 1px solid currentColor; border-radius: 999px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 1.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: .85; }
.meta li:not(:last-child)::after { content: "·"; margin-inline: 0.7em; opacity: .7; }

/* Header */
.site-header { position: relative; z-index: 6; }
.has-overlay-header .site-header { position: absolute; inset: 0 0 auto 0; color: #FFF8EA; }
.has-overlay-header .site-header::before { content: ""; position: absolute; inset: 0 0 -40px 0; background: linear-gradient(rgba(8, 10, 14, .6), transparent); pointer-events: none; }
.site-header-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding-block: 22px; }
.logo { font: 600 1.375rem/1 var(--serif); letter-spacing: -0.01em; text-decoration: none; margin: 0; }
.site-header nav ul { display: flex; gap: clamp(16px, 3vw, 32px); }
.site-header nav a { text-decoration: none; padding-block: 12px; display: inline-block; font-weight: 500; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

/* Ink: light text on dark art, or dark text on light art */
.ink-light { --w-ink: #FFF8EA; --w-inv: #14110B; --w-chip: rgba(10, 12, 16, .38); }
.ink-dark { --w-ink: #123F3D; --w-inv: #F4FBFF; --w-chip: rgba(255, 255, 255, .6); }
.font-fredoka { --w-font: "Fredoka", var(--sans); --w-weight: 700; }
.font-bricolage { --w-font: "Bricolage Grotesque", var(--sans); --w-weight: 700; }
.font-oldstandard { --w-font: "Old Standard", Georgia, serif; --w-weight: 400; }

/* ---------- Opening showreel ---------- */
.reel { position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: #000; }
.reel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.reel-slide.is-active { opacity: 1; }
.reel-slide picture, .reel-slide img { width: 100%; height: 100%; }
.reel-slide img { object-fit: cover; object-position: var(--focus, 50% 50%); transform: scale(1.04); }
.motion .reel-slide.is-active img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(1.5%, 0, 0); } to { transform: scale(1.04); } }
.reel-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 10, 14, .62) 0%, rgba(8, 10, 14, .2) 42%, transparent 68%), linear-gradient(0deg, rgba(8, 10, 14, .8) 0%, transparent 34%); }
.reel-slide.ink-dark::after { background: linear-gradient(90deg, rgba(244, 251, 255, .7) 0%, rgba(244, 251, 255, .3) 40%, transparent 62%), linear-gradient(0deg, rgba(8, 10, 14, .78) 0%, transparent 30%); }

.reel-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 80px; padding-bottom: 120px; }
.reel-kicker { font: 600 0.8125rem/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: #FFF8EA; margin: 0 0 clamp(16px, 3vh, 28px); transition: color .6s; }
.reel-kicker span { opacity: .7; }
.reel[data-ink="dark"] .reel-kicker { color: #123F3D; }
.reel-panel { color: var(--w-ink); max-width: 36rem; }
.reel-panel[hidden] { display: none; }
.reel-logo { width: auto; height: auto; max-width: min(560px, 78vw); max-height: 36svh; margin: 0 0 clamp(14px, 2.5vh, 24px) -6px; filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .35)); }
.ink-dark .reel-logo { filter: drop-shadow(0 6px 18px rgba(255, 255, 255, .6)); }
.reel-line { font: var(--w-weight, 400) clamp(1.375rem, 2.6vw, 2rem)/1.2 var(--w-font, var(--serif)); margin: 0 0 clamp(10px, 1.6vh, 16px); text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.ink-dark .reel-line { text-shadow: 0 0 18px rgba(255, 255, 255, .8); }
.motion .reel-panel.is-active > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.motion .reel-panel.is-active > :nth-child(2) { animation-delay: .1s; }
.motion .reel-panel.is-active > :nth-child(3) { animation-delay: .2s; }
.motion .reel-panel.is-active > :nth-child(4) { animation-delay: .3s; }
.reel-panel .meta { margin-bottom: clamp(18px, 3vh, 28px); text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.reel-tabs { display: none; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: 0 var(--gutter) 22px; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: clamp(10px, 2vw, 28px); }
.js .reel-tabs { display: grid; }
.reel-tab { all: unset; box-sizing: border-box; cursor: pointer; color: #FFF8EA; opacity: .62; padding: 14px 0 0; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 12px; align-items: baseline; transition: opacity .3s; min-height: 48px; }
.reel-tab:hover, .reel-tab.is-active { opacity: 1; }
.reel-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.reel-tab-num { font: 400 0.9375rem/1 var(--serif); opacity: .7; }
.reel-tab-name { font: 600 clamp(0.8125rem, 1.4vw, 1rem)/1.25 var(--sans); }
.reel-tab-bar { grid-column: 1 / -1; grid-row: 1; height: 2px; background: rgba(255, 248, 234, .3); overflow: hidden; }
.reel-tab-bar i { display: block; height: 100%; width: 0; background: #FFF8EA; }
.reel-tab.is-active .reel-tab-bar i { width: 100%; }
.motion .reel.is-playing .reel-tab.is-active .reel-tab-bar i { animation: fill 7s linear both; }
.motion .reel.is-paused .reel-tab.is-active .reel-tab-bar i { animation-play-state: paused; }
@keyframes fill { from { width: 0; } to { width: 100%; } }

/* ---------- Game worlds ---------- */
.world { --p: 1; position: relative; color: var(--w-ink); }
.world-stage { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: center; isolation: isolate; }
.motion .world:not(.world--page) { height: 170svh; }
.motion .world:not(.world--page) .world-stage { position: sticky; top: 0; height: 100svh; }
.world-art { position: absolute; inset: 0; z-index: -2; }
.world-art picture, .world-art img { width: 100%; height: 100%; }
.world-art img { object-fit: cover; object-position: var(--focus, 50% 50%); will-change: transform; }
.world-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.world-content { position: relative; padding-block: 110px 90px; }
.world-copy { max-width: 34rem; }
.world-status { font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.14em; padding: 5px 9px 4px; border: 1px solid currentColor; border-radius: 999px; color: var(--w-ink); align-self: center; white-space: nowrap; }
.world-eyebrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; font: 600 0.8125rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 clamp(14px, 2.4vh, 24px); }
.world-logo { margin: 0 0 clamp(14px, 2.4vh, 24px) -6px; }
.world-logo img { width: auto; height: auto; max-width: min(520px, 80vw); max-height: 32svh; filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .35)); }
.ink-dark .world-logo img { filter: drop-shadow(0 6px 18px rgba(255, 255, 255, .7)); }
.world-title { font: var(--w-weight, 400) clamp(2.75rem, 7vw, 5.5rem)/1 var(--w-font, var(--serif)); margin: 0 0 1rem; }
.world-line { font: var(--w-weight, 400) clamp(1.5rem, 2.8vw, 2.125rem)/1.18 var(--w-font, var(--serif)); margin: 0 0 0.75rem; text-wrap: balance; }
.world-text { font-size: clamp(1.0625rem, 1.35vw, 1.1875rem); line-height: 1.55; margin: 0 0 1.25rem; max-width: 38ch; text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }
.world--page .world-stage { min-height: min(92svh, 900px); }

/* Canvas Wings: an old photograph that comes to life */
.world--sepia .world-stage { background: #1F1510; }
.world--sepia .world-stage::before { background: linear-gradient(90deg, rgba(20, 13, 8, .78) 0%, rgba(20, 13, 8, .35) 44%, transparent 70%); }
.world--sepia .world-art { inset: calc((1 - var(--p)) * 11svh) calc((1 - var(--p)) * 10vw); border: calc((1 - var(--p)) * 12px) solid #EBDDBF; transform: rotate(calc((1 - var(--p)) * -1.6deg)); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); overflow: hidden; }
.world--sepia .world-art img { filter: grayscale(calc(1 - var(--p))) sepia(calc((1 - var(--p)) * .35)) contrast(calc(1.12 - .12 * var(--p))) brightness(calc(.8 + .2 * var(--p))); transform: scale(calc(1.1 - .06 * var(--p))); }
.world-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: calc(.12 + (1 - var(--p)) * .4); mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%); }
.world--sepia .world-eyebrow { font-family: "Special Elite", "Courier New", monospace; letter-spacing: 0.1em; font-weight: 400; color: var(--w-accent); }
.world--sepia .world-line { font-style: italic; }
.world-note { position: absolute; right: var(--gutter); bottom: 12svh; margin: 0; font: 400 clamp(1.75rem, 3.4vw, 2.75rem)/1 "La Belle Aurore", cursive; color: #EBDDBF; transform: rotate(-5deg); opacity: calc((1 - var(--p)) * 1.4); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }

/* Bear Squad: a tilted, toy-box world that pops */
.world--confetti { z-index: 2; margin-block: -5vw; clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%); }
.world--confetti.world--page { margin-block: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%); }
.world--confetti .world-stage { background: #3F8BE0; }
.world--confetti .world-stage::before { background: linear-gradient(90deg, rgba(18, 44, 108, .72) 0%, rgba(18, 44, 108, .4) 34%, transparent 58%); }
.world--confetti .world-copy { max-width: 29rem; transform: rotate(-2.2deg); transform-origin: left center; }
.world--confetti .world-text { font-weight: 500; }
.world--confetti .world-art img { transform: scale(calc(1.16 - .08 * var(--p))) rotate(calc((1 - var(--p)) * -2.5deg)); }
.world--confetti .world-copy { text-shadow: 0 2px 0 rgba(26, 40, 84, .55), 0 6px 22px rgba(20, 40, 100, .5); }
.world--confetti .btn, .world--confetti .world-status { text-shadow: none; }
.world--confetti .world-eyebrow { color: #FFE27A; }
.world--confetti .btn-primary { box-shadow: 0 5px 0 #2A3550; }
.world--confetti .btn-primary:hover { box-shadow: 0 7px 0 #2A3550; }
.world-confetti { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.motion .world--confetti .world-logo img { transform: scale(.5) rotate(-8deg); opacity: 0; }
.motion .world--confetti.in .world-logo img { animation: pop .75s cubic-bezier(.2, 1.7, .4, 1) .1s both; }
@keyframes pop { from { transform: scale(.5) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* Cityhood: daylight turns to blue hour and the windows light up */
.world--dusk .world-stage { background: #0E1B33; }
.world--dusk .world-stage::before { background: linear-gradient(0deg, rgba(7, 12, 28, .94) 0%, rgba(7, 12, 28, .7) 26%, transparent 58%); }
.world--dusk.world--page .world-stage::before { background: linear-gradient(90deg, rgba(9, 16, 34, .82) 0%, rgba(9, 16, 34, .45) 40%, transparent 66%); }
.world--dusk:not(.world--page) .world-stage { align-items: flex-end; }
.world--dusk:not(.world--page) .world-content { padding-block: 110px clamp(40px, 7vh, 72px); }
.world--dusk:not(.world--page) .world-copy { max-width: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.world--dusk:not(.world--page) .world-logo { margin-bottom: 0; }
.world--dusk:not(.world--page) .world-logo img { max-width: min(760px, 100%); max-height: 34svh; }
.world--dusk:not(.world--page) .world-body > :last-child { margin-bottom: 6px; }
.world-night img { filter: contrast(1.08) saturate(1.12) brightness(1.1); }
.world--dusk .world-art img { transform: scale(calc(1.12 - .08 * var(--p))); }
.world-night { position: absolute; inset: 0; opacity: var(--p); }
.world--dusk .world-eyebrow { color: var(--w-accent); }
.world--dusk .world-line { letter-spacing: -0.01em; }

/* ---------- 3D models from the games ---------- */
canvas[data-stage] { opacity: 0; transition: opacity .8s ease; }
canvas[data-stage].is-ready { opacity: 1; }
.world-3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.parade { height: clamp(180px, 26vw, 320px); margin-bottom: clamp(24px, 5vw, 64px); border-bottom: 1px solid var(--line); overflow: hidden; }
.parade-canvas { width: 100%; height: 100%; }
.models-hint { margin-top: -0.75rem; }
.street { height: clamp(200px, 20vw, 300px); border-bottom: 1px solid var(--line); overflow: hidden; }
.street-canvas { width: 100%; height: 100%; pointer-events: none; }
.models-stage { position: relative; border-radius: 14px; background: radial-gradient(ellipse at 50% 38%, #262A36 0%, var(--surface) 62%); border: 1px solid var(--line); overflow: hidden; }
.models-canvas { width: 100%; height: clamp(260px, 34vw, 440px); cursor: grab; }
.models-canvas:active { cursor: grabbing; }
.models-names { display: grid; grid-template-columns: repeat(var(--n), 1fr); padding: 0 0 18px; text-align: center; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Studio + newsletter ---------- */
.studio { padding-block: clamp(40px, 6vw, 80px) clamp(72px, 11vw, 150px); }
.studio-inner, .newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 96px); align-items: start; }
.newsletter { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(56px, 8vw, 104px); }
.newsletter h2 { margin-bottom: 1rem; }
.newsletter-soon { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 0; font-size: 1.125rem; color: var(--muted); }
.newsletter-soon strong { display: block; font: 400 1.5rem/1.2 var(--serif); margin-bottom: 6px; color: var(--ink); }
.newsletter-soon a { color: var(--ink); }

/* MailerLite embedded form, restyled to match the site */
.newsletter-form .ml-form-embedContainer, .newsletter-form .ml-form-align-center, .newsletter-form .ml-form-embedWrapper, .newsletter-form .ml-form-embedBody { background: transparent !important; padding: 0 !important; margin: 0 !important; max-width: none !important; width: 100% !important; text-align: left !important; border: 0 !important; }
.newsletter-form .ml-form-embedContent { display: none !important; }
.newsletter-form input[type="email"], .newsletter-form input[type="text"] { width: 100% !important; min-height: 52px !important; padding: 0 18px !important; border: 1.5px solid var(--line) !important; border-radius: var(--radius) !important; background: var(--bg) !important; color: var(--ink) !important; font: 400 1rem/1.2 var(--sans) !important; }
.newsletter-form button[type="submit"], .newsletter-form .ml-form-embedSubmit button { width: auto !important; min-height: 52px !important; padding: 0 28px !important; border: 0 !important; border-radius: 999px !important; background: var(--accent) !important; color: var(--on-accent) !important; font: 600 1rem/1 var(--sans) !important; cursor: pointer; }
.newsletter-form label, .newsletter-form p, .newsletter-form .ml-form-checkboxRow, .newsletter-form .ml-form-embedPermissions p { font: 400 0.9375rem/1.5 var(--sans) !important; color: var(--muted) !important; text-align: left !important; }
.newsletter-form h4 { font: 600 1rem/1.3 var(--sans) !important; color: var(--ink) !important; }
.newsletter-form input[type="checkbox"] { accent-color: var(--accent); width: 20px; height: 20px; }
.newsletter-form a { color: var(--accent) !important; }

/* ---------- Game page ---------- */
.game-section { padding-block: clamp(48px, 7vw, 96px) 0; }
.game-section h2 { margin-bottom: clamp(20px, 3vw, 36px); }
.game { padding-bottom: clamp(56px, 8vw, 104px); }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1.125rem; color: #D9D4CA; }
.prose ul { list-style: disc; padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose a:not(.btn) { color: var(--accent); }

.trailer-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 12px; }
.trailer-frame iframe, .trailer-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: var(--on-accent); }
.trailer-play picture, .trailer-play img { width: 100%; height: 100%; }
.trailer-play img { object-fit: cover; filter: brightness(.8); transition: filter .3s; }
.trailer-play:hover img { filter: brightness(.65); }
.play-icon { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.play-icon svg { margin-left: 4px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 1.6vw, 20px); }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s cubic-bezier(.2, .6, .2, 1); }
.gallery a:hover img { transform: scale(1.03); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(5, 6, 8, .92); }
.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.lightbox button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #fff; background: transparent; color: #fff; font: 600 0.9375rem/1 var(--sans); cursor: pointer; }

/* Game tiles (games overview, "more from the village") */
.tiles-section { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 9vw, 120px); }
.tiles-title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 28px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(14px, 2vw, 24px); }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; color: #FFF8EA; text-decoration: none; background: var(--surface); }
.tile:hover { color: #FFF8EA; }
.tile picture, .tile > picture img { width: 100%; height: 100%; }
.tile > picture img { object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform .9s cubic-bezier(.2, .6, .2, 1); }
.tile:hover > picture img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 14, .85) 0%, rgba(8, 10, 14, .1) 55%, transparent); }
.tile-body { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.tile-logo { width: auto; height: auto; max-width: 62%; max-height: 84px; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5)); }
.tile.ink-dark .tile-logo { filter: brightness(0) invert(1) drop-shadow(0 4px 14px rgba(0, 0, 0, .5)); }
.more-title { font: 400 1.5rem/1.2 var(--serif); }

/* Text pages */
.page-head { padding-block: clamp(40px, 7vw, 88px) clamp(24px, 4vw, 48px); }
.page-body { padding-bottom: clamp(64px, 9vw, 120px); }
.contact-email { font: 400 clamp(1.5rem, 4.4vw, 2.75rem)/1.2 var(--serif); overflow-wrap: anywhere; }

/* Footer */
.site-footer { padding-block: 48px; }
.site-footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 48px; flex-wrap: wrap; }
.site-footer .logo { margin-bottom: 8px; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer nav a { display: inline-block; padding-block: 10px; }
.site-footer p { margin: 0; }
.site-footer .small { flex-basis: 100%; }

/* Fade-in for ordinary sections */
.motion .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .6, .2, 1); }
.motion .reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .studio-inner, .newsletter-inner { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  /* Phones: the picture fills the top of the screen, the words sit below it. */
  .reel { background: #0B0C10; }
  .reel-slide picture, .reel-slide img { height: 66svh; }
  .reel-content { justify-content: flex-end; padding-bottom: 104px; }
  .reel-slide::after, .reel-slide.ink-dark::after { background: linear-gradient(0deg, #0B0C10 0%, #0B0C10 34%, rgba(11, 12, 16, .55) 50%, transparent 68%), linear-gradient(rgba(8, 10, 14, .45), transparent 22%); }
  .reel-tabs { gap: 10px; }
  .js .reel-tabs { display: flex; }
  .reel-tab { flex: 0 0 44px; }
  .reel-tab.is-active { flex: 1 1 auto; }
  .reel-tab:not(.is-active) .reel-tab-name { display: none; }
  .site-header-inner { padding-block: 14px; }
  .logo { font-size: 1.1875rem; }
  .site-header nav ul { gap: 18px; }
  .site-header nav a { font-size: 0.9375rem; }
  .reel-panel.ink-dark { --w-ink: #FFF8EA; }
  .reel-panel.ink-dark .reel-logo { filter: brightness(0) invert(1) drop-shadow(0 6px 18px rgba(0, 0, 0, .5)); }
  .reel-panel.ink-dark .reel-line { text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
  .reel[data-ink="dark"] .reel-kicker { color: #FFF8EA; }
  .reel-logo { max-height: 22svh; }
  .world-stage { align-items: flex-end; }
  .world-content, .world--dusk:not(.world--page) .world-content { padding-block: 100px 40px; }
  .world-stage::before, .world--sepia .world-stage::before, .world--confetti .world-stage::before { background: linear-gradient(0deg, rgba(8, 10, 14, .94) 0%, rgba(8, 10, 14, .7) 28%, transparent 64%); }
  .world--confetti .world-stage::before { background: linear-gradient(0deg, rgba(16, 30, 78, .96) 0%, rgba(16, 30, 78, .72) 28%, transparent 64%); }
  .world--dusk .world-stage::before { background: linear-gradient(0deg, rgba(7, 12, 28, .95) 0%, rgba(7, 12, 28, .7) 28%, transparent 64%); }
  .world--dusk:not(.world--page) .world-copy { display: block; }
  .world--dusk:not(.world--page) .world-logo { margin-bottom: 16px; }
  .world--confetti .world-copy { transform: none; }
  .world:not(.world--page) .world-text, .world:not(.world--page) .meta { display: none; }
  .world-line { margin-bottom: 1.25rem; }
  .world-eyebrow { text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 16px rgba(0, 0, 0, .75); }
  .world-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 34% at 0% 62%, rgba(8, 10, 20, .55), transparent 70%); }
  .world-logo img { max-height: 20svh; }
  .world-note, .world-3d { display: none; }
  .models-canvas { height: calc((var(--n) + 1) / 2 * 140px); } /* taller when there are more models */
  .models-names { display: none; }
  .world--sepia .world-art { inset: calc((1 - var(--p)) * 9svh) calc((1 - var(--p)) * 6vw); }
  .btn-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Low or narrow windows (small laptops, split screens): keep each game's words clear of the picture. */
@media (min-width: 761px) and (max-height: 680px) {
  .world-content { padding-block: 84px 56px; }
  .world-logo img { max-height: 27svh; }
  .world-text { font-size: 1rem; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .world--confetti .world-copy { max-width: 23rem; }
}
