:root {
  --ink: #0a1019;
  --navy: #0d1521;
  --navy-2: #121d2c;
  --paper: #ece7dc;
  --cream: #f4f0e8;
  --gold: #c99b4a;
  --gold-light: #e1bf77;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(10, 16, 25, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell { width: min(1360px, calc(100% - 96px)); margin-inline: auto; }
.hero { min-height: 100svh; position: relative; display: flex; flex-direction: column; overflow: hidden; background: #101927 url('public/hero-castle.jpg') center center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 12, 22, .96) 0%, rgba(7, 14, 24, .74) 36%, rgba(7, 14, 24, .1) 69%, rgba(7, 14, 24, .08) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -180px 150px -100px #0a1019; pointer-events: none; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,10,17,.25), transparent 38%, rgba(5,10,17,.45)); }
.site-header { position: relative; z-index: 2; min-height: 112px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line-dark); }
.brand { display: inline-flex; align-items: center; gap: 14px; width: max-content; }
.brand-logo { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; mix-blend-mode: screen; }
.brand-name { font: 600 21px/1 Georgia, 'Times New Roman', serif; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.brand-name i { color: var(--gold-light); font-style: normal; }
.main-nav { display: flex; gap: 42px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.main-nav a, .footer-links a { transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible, .footer-links a:hover, .footer-links a:focus-visible { color: var(--gold-light); }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 12px 10px; border: 1px solid rgba(255,255,255,.38); background: rgba(7,11,17,.38); color: var(--cream); cursor: pointer; }
.nav-toggle span { display: block; height: 1px; background: currentColor; }
.nav-toggle span + span { margin-top: 6px; }
.header-cta { justify-self: end; border: 1px solid rgba(255,255,255,.38); padding: 15px 20px; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; transition: background .2s, color .2s; }
.header-cta:hover, .header-cta:focus-visible { background: var(--cream); color: var(--ink); }

.hero-content { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 70px 110px; }
.eyebrow { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; display: flex; align-items: center; gap: 13px; margin-bottom: 27px; }
.eyebrow span { width: 35px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--gold-light); }
.hero h1, .section-heading h2, .studio-statement h2, .journey-content h2 { margin: 0; font: 400 clamp(58px, 7.2vw, 112px)/.88 Georgia, 'Times New Roman', serif; letter-spacing: -.055em; }
.hero h1 em, h2 em, .role-copy h3 em { color: var(--gold-light); font-style: italic; font-weight: 400; }
.hero-content > p { max-width: 585px; margin: 32px 0 0; color: rgba(244,240,232,.77); font: 400 17px/1.75 Arial, sans-serif; }
.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 38px; }
.button { min-height: 56px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 38px; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; transition: transform .2s, background .2s, color .2s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: var(--ink); }
.button-gold:hover, .button-gold:focus-visible { background: var(--gold-light); }
.text-link, .dark-link { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 5px; }
.text-link { color: rgba(255,255,255,.8); }
.hero-meta { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.hero-meta > div { min-height: 94px; padding: 22px 28px 18px 0; border-right: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 8px; }
.hero-meta > div + div { padding-left: 28px; }
.hero-meta small { color: rgba(255,255,255,.48); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero-meta strong { font: 400 17px/1.2 Georgia, serif; letter-spacing: .02em; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: #e59543; border-radius: 50%; margin-right: 7px; box-shadow: 0 0 0 4px rgba(229,149,67,.13); }

.project-section { background: var(--navy); padding: 150px 0 130px; border-top: 1px solid rgba(255,255,255,.04); }
.development-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: end; margin-bottom: 64px; }
.development-heading h2 { margin: 0; font: 400 clamp(52px, 6.2vw, 92px)/.93 Georgia, 'Times New Roman', serif; letter-spacing: -.05em; }
.development-heading h2 em { color: var(--gold-light); }
.development-heading > p { max-width: 540px; margin: 0 0 7px; padding-left: 34px; border-left: 1px solid var(--line-dark); color: rgba(244,240,232,.62); font-size: 15px; line-height: 1.8; }
.development-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.development-card { min-height: 560px; position: relative; isolation: isolate; overflow: hidden; padding: 42px 46px; background: #111c2a; display: flex; flex-direction: column; justify-content: space-between; }
.development-card::before { content: ""; position: absolute; z-index: -2; inset: 0; background-position: center top; background-size: cover; }
.development-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(7,11,17,.06) 0%, rgba(7,11,17,.32) 33%, rgba(7,11,17,.92) 63%, #070b11 100%); }
.idle-card { grid-column: 1 / -1; min-height: 650px; }
.idle-card::before { background-image: url('public/idle/press/keyart/library_hero.png'); background-position: center 48%; }
.x-card { background: #191716; }
.x-card::before { background-image: url('public/project-lair.jpg'); background-position: 50% 18%; }
.parrot-card { background: #0c1715; }
.parrot-card::before { background: radial-gradient(circle at 50% 26%, rgba(67,172,128,.19), transparent 34%), url('public/prigod-games-mark.png') center 21% / 48% auto no-repeat; opacity: .28; }
.parrot-card::after { background: linear-gradient(180deg, rgba(7,11,17,.28), rgba(7,11,17,.9) 62%, #070b11); }
.parrot-card { min-height: 410px; }
.parrot-card .development-copy { padding-top: 72px; }
.parrot-card .development-copy h3 { font-size: clamp(36px, 4vw, 52px); }
.card-watermark { display: none; position: absolute; z-index: -1; top: 45px; right: -20px; color: rgba(255,255,255,.055); font: italic 400 clamp(110px, 15vw, 230px)/.75 Georgia, serif; letter-spacing: -.09em; text-transform: uppercase; pointer-events: none; }
.parrot-card .card-watermark { display: block; }
.x-card .card-watermark { right: 36px; color: rgba(225,191,119,.075); }
.parrot-card .card-watermark { right: 10px; color: rgba(108,211,158,.07); }
.card-topline { display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.32); font: 400 11px Georgia, serif; }
.card-topline strong { color: var(--gold-light); font: 800 9px Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.card-topline .status-dot { margin-right: 9px; }
.development-copy { max-width: 510px; margin-top: auto; padding-top: 130px; }
.game-type { margin: 0 0 12px; color: var(--gold-light); font-size: 9px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.development-copy h3 { margin: 0 0 22px; font: 400 clamp(42px, 5vw, 66px)/.95 Georgia, serif; letter-spacing: -.035em; }
.development-copy > p:not(.game-type) { min-height: 74px; margin: 0; color: rgba(244,240,232,.59); font-size: 14px; line-height: 1.75; }
.upcoming-links { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.steam-cta { width: 100%; min-height: 56px; display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 18px; border: 1px solid rgba(225,191,119,.48); background: rgba(201,155,74,.12); color: var(--cream); font: 800 9px Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.steam-cta small { color: var(--gold-light); font-size: 8px; letter-spacing: .12em; }
.steam-cta:disabled { cursor: not-allowed; opacity: .9; }
.quiet-note { color: rgba(255,255,255,.4); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.idle-gallery { margin-top: 130px; }
.gallery-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: end; margin-bottom: 52px; }
.gallery-heading h2 { margin: 0; font: 400 clamp(52px, 6vw, 88px)/.93 Georgia, 'Times New Roman', serif; letter-spacing: -.05em; }
.gallery-heading h2 em { color: var(--gold-light); }
.gallery-intro { max-width: 520px; padding-left: 34px; border-left: 1px solid var(--line-dark); }
.gallery-intro .lede { margin: 0 0 14px; color: var(--cream); font: 400 21px/1.5 Georgia, serif; }
.gallery-intro > p:not(.lede) { margin: 0; color: rgba(244,240,232,.58); font-size: 14px; line-height: 1.75; }
.idle-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 60px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.idle-facts article { min-height: 190px; padding: 30px 28px 30px 0; }
.idle-facts article + article { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.idle-facts span { color: var(--gold); font: 400 11px Georgia, serif; }
.idle-facts h3 { margin: 24px 0 10px; font: 400 20px/1.1 Georgia, serif; }
.idle-facts p { margin: 0; color: rgba(255,255,255,.48); font-size: 12px; line-height: 1.65; }
.screenshot-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.screenshot-grid figure { grid-column: span 2; margin: 0; padding: 8px; border: 1px solid rgba(201,155,74,.28); background: #080d14; }
.screenshot-grid figure:nth-child(n+4) { grid-column: span 3; }
.screenshot-open { position: relative; width: 100%; display: block; padding: 0; overflow: hidden; border: 0; background: transparent; color: var(--cream); cursor: zoom-in; }
.screenshot-open img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.desktop-screenshot-grid figure { grid-column: span 3; }
.desktop-screenshot-grid figure:first-child { grid-column: 1 / -1; }
.screenshot-open > span { position: absolute; right: 14px; bottom: 14px; padding: 10px 12px; background: rgba(7,11,17,.9); border: 1px solid rgba(225,191,119,.55); color: var(--gold-light); font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.screenshot-open:hover img, .screenshot-open:focus-visible img { transform: scale(1.025); filter: brightness(.72); }
.screenshot-open:hover > span, .screenshot-open:focus-visible > span { opacity: 1; transform: translateY(0); }
.screenshot-open:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.screenshot-grid figcaption { display: flex; gap: 13px; padding: 14px 5px 6px; color: rgba(255,255,255,.5); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.screenshot-grid figcaption span { color: var(--gold); font-family: Georgia, serif; }
.lightbox { width: min(900px, calc(100% - 24px)); max-width: none; max-height: calc(100svh - 24px); padding: 58px 18px 18px; overflow: auto; border: 1px solid rgba(225,191,119,.5); background: #070b11; color: var(--cream); }
.lightbox::backdrop { background: rgba(3,6,10,.88); backdrop-filter: blur(6px); }
.lightbox img { width: auto; max-width: 100%; max-height: calc(100svh - 155px); margin-inline: auto; object-fit: contain; }
.lightbox p { margin: 14px 0 0; color: rgba(255,255,255,.65); font-size: 9px; font-weight: 800; letter-spacing: .18em; text-align: center; text-transform: uppercase; }
.lightbox-close { position: absolute; z-index: 2; top: 10px; right: 10px; min-width: 92px; height: 38px; padding: 0 13px; border: 1px solid rgba(225,191,119,.65); background: #0d1521; color: var(--cream); font: 800 9px/1 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.lightbox-close span { margin-left: 7px; font-size: 18px; vertical-align: -2px; }
.lightbox-close:hover, .lightbox-close:focus-visible { background: var(--gold); color: var(--ink); }
body.lightbox-open { overflow: hidden; }
.project-divider { display: flex; align-items: center; gap: 24px; margin: 120px 0 72px; color: rgba(255,255,255,.36); font-size: 9px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.project-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-dark); }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 100px; margin-bottom: 80px; }
.project-kicker { margin: 0 0 14px; color: rgba(255,255,255,.42); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.section-heading h2 { font-size: clamp(62px, 7vw, 105px); }
.project-intro { padding: 0 0 8px 36px; border-left: 1px solid var(--line-dark); }
.project-intro .lede { margin: 0 0 22px; color: var(--cream); font: 400 25px/1.45 Georgia, serif; }
.project-intro > p:not(.lede) { color: rgba(244,240,232,.58); font-size: 15px; line-height: 1.75; max-width: 550px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tag-row span { border: 1px solid var(--line-dark); padding: 9px 12px; color: rgba(255,255,255,.64); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.project-frame { margin: 0; position: relative; border: 1px solid rgba(201,155,74,.4); padding: 11px; background: #060a10; }
.project-frame::before, .project-frame::after { content: ""; position: absolute; width: 40px; height: 40px; border-color: var(--gold); pointer-events: none; z-index: 2; }
.project-frame::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.project-frame::after { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid; }
.project-frame img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.project-frame figcaption { display: flex; justify-content: space-between; color: rgba(255,255,255,.42); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 15px 8px 4px; }
.roles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); margin-top: 90px; }
.role-card { min-height: 490px; position: relative; overflow: hidden; padding: 52px; background: #111c2a; display: flex; align-items: end; }
.role-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(106,167,201,.16), transparent 48%); }
.overlord-role { background: #191716; }
.overlord-role::after { background: radial-gradient(circle at 80% 0%, rgba(210,104,39,.2), transparent 52%); }
.role-card > img { position: absolute; width: 56%; max-width: 385px; right: -3%; top: 15px; opacity: .62; filter: saturate(.78); }
.overlord-role > img { width: 53%; right: 0; top: 24px; }
.role-number { position: absolute; z-index: 1; top: 44px; left: 50px; color: rgba(255,255,255,.28); font: 400 13px Georgia, serif; }
.role-copy { position: relative; z-index: 2; max-width: 440px; }
.role-label { color: var(--gold-light); margin: 0 0 14px; font-size: 9px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.role-copy h3 { margin: 0 0 18px; font: 400 40px/1.02 Georgia, serif; }
.role-copy > p:last-child { margin: 0; color: rgba(244,240,232,.56); font-size: 14px; line-height: 1.7; max-width: 390px; }
.games-list { margin-top: 84px; border-top: 1px solid var(--line-dark); }
.games-list article { min-height: 150px; display: grid; grid-template-columns: 70px 1fr 1fr; gap: 28px; align-items: center; border-bottom: 1px solid var(--line-dark); }
.games-list .game-count { color: var(--gold); font: 400 12px Georgia, serif; }
.games-list small { color: rgba(255,255,255,.42); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.games-list h3 { margin: 8px 0 0; font: 400 32px/1 Georgia, serif; }
.games-list p { margin: 0; color: rgba(255,255,255,.5); font-size: 13px; line-height: 1.7; max-width: 430px; }

.studio-section { background: var(--paper); color: var(--ink); padding: 145px 0 125px; }
.studio-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 130px; align-items: end; }
.studio-statement h2 { font-size: clamp(52px, 5.6vw, 84px); line-height: .98; }
.studio-statement h2 em { color: #9b6d25; }
.studio-logo { width: min(430px, 86%); margin-top: 50px; mix-blend-mode: multiply; }
.studio-copy { max-width: 510px; padding-bottom: 7px; }
.studio-copy p { color: rgba(10,16,25,.62); font-size: 15px; line-height: 1.8; }
.studio-copy .dropcap { color: var(--ink); font: 400 23px/1.55 Georgia, serif; margin-top: 0; }
.dark-link { display: inline-block; margin-top: 26px; color: var(--ink); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 110px; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.principles article { padding: 32px 42px 36px 0; min-height: 190px; }
.principles article + article { border-left: 1px solid var(--line-light); padding-left: 42px; }
.principles span { color: #9b6d25; font: 400 11px Georgia, serif; }
.principles h3 { margin: 25px 0 10px; font: 400 23px Georgia, serif; }
.principles p { margin: 0; color: rgba(10,16,25,.54); font-size: 13px; line-height: 1.6; }

.journey-section { position: relative; min-height: 810px; background: #080d14; overflow: hidden; display: flex; align-items: center; }
.journey-bg { position: absolute; inset: 0; background: url('public/hero-castle.jpg') center 48% / cover no-repeat; opacity: .28; filter: saturate(.65); }
.journey-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #080d14 0%, rgba(8,13,20,.94) 40%, rgba(8,13,20,.52) 72%, rgba(8,13,20,.8)); z-index: 1; }
.journey-content { position: relative; z-index: 2; padding-block: 130px; }
.journey-content h2 { font-size: clamp(60px, 6.5vw, 98px); }
.journey-content > p { max-width: 560px; color: rgba(255,255,255,.6); font-size: 16px; line-height: 1.75; margin: 28px 0 34px; }
.button-outline { border: 1px solid rgba(255,255,255,.48); }
.button-outline:hover, .button-outline:focus-visible { background: var(--cream); color: var(--ink); }
.social-links { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 28px; }
.social-links a { min-width: 180px; display: inline-flex; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.74); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; transition: color .2s, border-color .2s; }
.social-links a:hover, .social-links a:focus-visible { color: var(--gold-light); border-color: var(--gold); }
.milestones { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 100px; border-top: 1px solid var(--line-dark); }
.milestone { position: relative; display: flex; gap: 16px; padding: 26px 20px 0 0; opacity: .35; }
.milestone + .milestone { padding-left: 22px; }
.milestone::before { content: ""; position: absolute; width: 100%; height: 2px; background: rgba(255,255,255,.24); top: -1px; left: 0; }
.milestone.complete, .milestone.current { opacity: 1; }
.milestone.complete::before { background: var(--gold); }
.milestone.current::before { background: linear-gradient(90deg, var(--gold) 55%, rgba(255,255,255,.24) 55%); }
.milestone > span { color: var(--gold-light); font: 400 11px Georgia, serif; }
.milestone strong { display: block; font: 400 17px Georgia, serif; margin-bottom: 6px; }
.milestone small { color: rgba(255,255,255,.5); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

footer { background: #070b11; color: var(--cream); }
.footer-top { min-height: 240px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-bottom: 1px solid var(--line-dark); }
.footer-top > p { margin: 0; color: rgba(255,255,255,.48); font: 400 19px/1.45 Georgia, serif; }
.footer-top > p small { color: rgba(255,255,255,.3); font: 700 8px Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { justify-self: end; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 22px 30px; max-width: 470px; font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.footer-bottom { min-height: 72px; display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.32); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 16px; min-height: 92px; }
  .nav-toggle { display: block; order: 3; }
  .main-nav { position: absolute; z-index: 10; top: calc(100% - 1px); left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: 12px 20px; border: 1px solid var(--line-dark); background: rgba(7,11,17,.98); box-shadow: 0 24px 45px rgba(0,0,0,.35); }
  .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line-dark); }
  .main-nav a:last-child { border-bottom: 0; }
}

@media (max-width: 1000px) {
  .page-shell { width: min(100% - 48px, 900px); }
  .development-heading, .gallery-heading, .section-heading, .studio-grid { grid-template-columns: 1fr; gap: 55px; }
  .development-heading > p { max-width: 650px; }
  .gallery-intro { max-width: 650px; }
  .project-intro { max-width: 650px; }
  .roles-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshot-grid figure, .screenshot-grid figure:nth-child(n+4) { grid-column: auto; }
  .desktop-screenshot-grid figure, .desktop-screenshot-grid figure:first-child { grid-column: auto; }
  .screenshot-grid figure:last-child { grid-column: 1 / -1; width: calc(50% - 9px); justify-self: center; }
  .desktop-screenshot-grid figure:last-child { grid-column: auto; width: auto; justify-self: stretch; }
  .idle-facts { grid-template-columns: 1fr 1fr; }
  .idle-facts article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-dark); }
  .idle-facts article:nth-child(4) { border-top: 1px solid var(--line-dark); }
  .games-list article { grid-template-columns: 55px 1fr; padding: 28px 0; }
  .games-list p { grid-column: 2; }
  .principles { grid-template-columns: 1fr; }
  .principles article, .principles article + article { padding: 30px 0; border-left: 0; border-top: 1px solid var(--line-light); min-height: auto; }
  .principles article:first-child { border-top: 0; }
}

@media (max-width: 820px) {
  .development-grid { grid-template-columns: 1fr; }
  .idle-card { grid-column: auto; }
}

@media (max-width: 680px) {
  .page-shell { width: calc(100% - 36px); }
  .header-cta { display: none; }
  .site-header { display: grid; grid-template-columns: 1fr auto; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-name { font-size: 17px; }
  .hero { min-height: 680px; background-position: 58% center; }
  .hero::before { background: linear-gradient(90deg, rgba(6,12,22,.94), rgba(7,14,24,.5)), linear-gradient(0deg, rgba(6,12,22,.8), transparent 60%); }
  .hero-content { padding-block: 36px 48px; justify-content: flex-end; }
  .hero h1 { font-size: clamp(50px, 14vw, 66px); }
  .hero-content > p { font-size: 15px; line-height: 1.65; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 24px; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta > div { display: none; }
  .hero-meta > div:nth-child(-n+2) { display: flex; min-height: 72px; padding: 16px 14px 14px 0; }
  .hero-meta > div:nth-child(2) { padding-left: 14px; border-right: 0; }
  .project-section, .studio-section { padding: 95px 0 80px; }
  .development-heading { margin-bottom: 44px; }
  .development-heading h2 { font-size: 52px; }
  .development-heading > p { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .development-card { min-height: 520px; padding: 30px 26px; }
  .idle-card { min-height: 590px; }
  .parrot-card { min-height: 340px; }
  .development-copy { padding-top: 110px; }
  .parrot-card .development-copy { padding-top: 54px; }
  .development-copy h3 { font-size: 48px; }
  .development-copy > p:not(.game-type) { min-height: 0; }
  .idle-gallery { margin-top: 80px; }
  .gallery-heading { margin-bottom: 38px; }
  .gallery-heading h2 { font-size: 50px; }
  .gallery-intro { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .project-divider { margin: 78px 0 52px; }
  .section-heading { margin-bottom: 55px; }
  .section-heading h2 { font-size: 58px; }
  .project-intro { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .project-intro .lede { font-size: 21px; }
  .project-frame { padding: 6px; }
  .project-frame figcaption span:first-child { display: none; }
  .roles-grid { margin-top: 58px; }
  .role-card { min-height: 465px; padding: 32px 27px; }
  .role-card > img { width: 82%; right: -13%; opacity: .52; }
  .overlord-role > img { width: 78%; right: -10%; }
  .role-number { left: 28px; top: 30px; }
  .role-copy h3 { font-size: 37px; }
  .games-list { margin-top: 58px; }
  .games-list article { grid-template-columns: 36px 1fr; gap: 14px; }
  .games-list h3 { font-size: 27px; }
  .studio-statement h2 { font-size: 48px; }
  .studio-copy .dropcap { font-size: 20px; }
  .principles { margin-top: 65px; }
  .journey-section { min-height: 920px; }
  .journey-content { padding-block: 95px; }
  .journey-content h2 { font-size: 58px; }
  .milestones { grid-template-columns: 1fr 1fr; gap: 35px 0; margin-top: 70px; }
  .milestone + .milestone { padding-left: 15px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding-block: 58px; }
  .footer-links { justify-self: start; justify-content: flex-start; }
  .footer-bottom { min-height: 90px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 8px; }
}

@media (max-width: 520px) {
  .idle-facts { grid-template-columns: 1fr; }
  .idle-facts article, .idle-facts article + article { min-height: auto; padding: 26px 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .idle-facts article:first-child { border-top: 0; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .screenshot-grid figure, .screenshot-grid figure:last-child { grid-column: auto; width: auto; max-width: 390px; margin-inline: auto; }
  .desktop-screenshot-grid figure, .desktop-screenshot-grid figure:first-child { grid-column: auto; }
  .milestones { grid-template-columns: 1fr; }
  .milestone + .milestone { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }

.legal-body { min-height: 100svh; background: var(--paper); color: var(--ink); }
.legal-header-wrap { background: var(--navy); color: var(--cream); }
.legal-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-dark); }
.legal-back { color: rgba(255,255,255,.7); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; transition: color .2s; }
.legal-back:hover, .legal-back:focus-visible { color: var(--gold-light); }
.legal-main { padding-block: 105px 125px; }
.legal-main h1 { margin: 0; font: 400 clamp(60px, 8vw, 100px)/.9 Georgia, 'Times New Roman', serif; letter-spacing: -.055em; }
.legal-intro { margin: 25px 0 0; color: rgba(10,16,25,.58); font-size: 14px; line-height: 1.7; }
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 70px; border: 1px solid var(--line-light); background: var(--line-light); }
.legal-card { min-height: 260px; padding: 42px; background: var(--cream); }
.legal-card h2 { margin: 0 0 28px; color: #9b6d25; font: 400 25px/1.1 Georgia, serif; }
.legal-card p { margin: 0; color: rgba(10,16,25,.7); font-size: 15px; line-height: 1.8; }
.legal-card a { border-bottom: 1px solid rgba(10,16,25,.4); }
.legal-footer { background: #070b11; color: var(--cream); }
.legal-footer .footer-bottom { border-top: 0; }
.legal-prose { max-width: 720px; margin-top: 70px; }
.legal-prose section + section { margin-top: 52px; }
.legal-prose h2 { margin: 0 0 18px; color: #9b6d25; font: 400 27px/1.15 Georgia, serif; }
.legal-prose h3 { margin: 28px 0 12px; font: 800 11px/1.4 var(--sans, inherit); letter-spacing: .16em; text-transform: uppercase; color: rgba(10,16,25,.55); }
.legal-prose p, .legal-prose li { color: rgba(10,16,25,.72); font-size: 15px; line-height: 1.8; }
.legal-prose p + p { margin-top: 16px; }
.legal-prose ul { margin: 16px 0 0; padding-left: 20px; }
.legal-prose li + li { margin-top: 10px; }
.legal-prose a { border-bottom: 1px solid rgba(10,16,25,.4); }
.legal-intro a { border-bottom: 1px solid rgba(10,16,25,.4); }
.legal-prose .lede { font-size: 17px; color: rgba(10,16,25,.82); }
.legal-note { margin-top: 22px; padding: 22px 26px; background: var(--cream); border-left: 3px solid var(--gold, #c8a24a); }
.legal-note p { margin: 0; }
.legal-updated { margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line-light); font-size: 13px; color: rgba(10,16,25,.5); }

@media (max-width: 680px) {
  .legal-header { min-height: 82px; }
  .legal-header .brand-name { display: none; }
  .legal-main { padding-block: 75px 90px; }
  .legal-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .legal-card { min-height: auto; padding: 30px 25px; }
  .legal-prose { margin-top: 48px; }
  .legal-prose section + section { margin-top: 40px; }
}

/* --- Game pages (prigod-idle.html / break-the-seal.html) --- */
.hero-page { min-height: auto; }
.prigod-hero { background-image: url('public/idle/press/keyart/library_hero.png'); background-position: center 54%; }
.hero-page .hero-content { padding-block: 100px 120px; }
.hero-page h1 { font-size: clamp(52px, 6.2vw, 98px); }
.steam-note { color: rgba(255,255,255,.45); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
a.steam-cta { width: auto; transition: background .2s, border-color .2s; }
a.steam-cta:hover, a.steam-cta:focus-visible { background: rgba(201,155,74,.28); border-color: var(--gold-light); }
.hero-steam-cta { width: auto; min-width: 300px; cursor: default; }
.card-page-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); border-bottom: 1px solid rgba(225,191,119,.4); padding-bottom: 6px; width: max-content; transition: color .2s, border-color .2s; }
.card-page-link:hover, .card-page-link:focus-visible { color: var(--cream); border-color: currentColor; }
.upcoming-links a.steam-cta { width: 100%; }
.game-page-section { padding-top: 110px; }
.page-steam-cta { position: relative; margin-top: 120px; padding: 12px; border: 1px solid rgba(201,155,74,.45); background: linear-gradient(145deg, #101b2a, #070d15); display: grid; grid-template-columns: minmax(320px, .95fr) 1.05fr; gap: 0; align-items: stretch; overflow: hidden; box-shadow: 0 26px 70px rgba(0,0,0,.28); }
.steam-cta-art { position: relative; min-height: 360px; overflow: hidden; background: #080d14; }
.steam-cta-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, rgba(7,13,21,.76) 100%), linear-gradient(0deg, rgba(7,13,21,.62), transparent 45%); pointer-events: none; }
.steam-cta-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.steam-cta-art > span { position: absolute; z-index: 1; left: 22px; bottom: 20px; padding: 10px 13px; border: 1px solid rgba(225,191,119,.65); background: rgba(7,13,21,.88); color: var(--gold-light); font-size: 8px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.steam-cta-content { padding: 48px 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.page-steam-cta h2 { margin: 0 0 18px; font: 400 clamp(38px, 4vw, 64px)/.95 Georgia, 'Times New Roman', serif; letter-spacing: -.04em; }
.page-steam-cta h2 em { color: var(--gold-light); }
.page-steam-cta p { max-width: 520px; margin: 0; color: rgba(244,240,232,.62); font-size: 15px; line-height: 1.75; }
.steam-platform-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.steam-platform-row span { padding: 10px 12px; border: 1px solid rgba(201,155,74,.25); background: rgba(201,155,74,.07); color: rgba(244,240,232,.6); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.steam-platform-row strong { color: var(--gold-light); }
.page-steam-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 28px; }

/* Rich store-description cards and the date-free post-launch roadmap. */
.game-page-section .game-store-section { margin-top: 120px; padding: 72px 0 0; }
.game-page-section .game-store-section > h2, .game-page-section .roadmap-section > h2 { max-width: 700px; margin-bottom: 28px; }
.game-page-section .store-intro { max-width: 820px; margin-bottom: 36px; }
.game-page-section .store-intro p { margin: 0; color: rgba(244,240,232,.74); font: 400 19px/1.65 Georgia, serif; }
.store-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.store-feature-card { min-width: 0; border: 1px solid rgba(201,155,74,.26); background: linear-gradient(160deg, #111c2a, #0a111b); overflow: hidden; box-shadow: 0 16px 42px rgba(0,0,0,.2); }
.store-feature-card:first-child { grid-column: span 2; }
.store-feature-card > img { display: block; width: 100%; height: 176px; object-fit: cover; border-bottom: 1px solid rgba(201,155,74,.22); filter: saturate(.92) contrast(1.03); }
.store-feature-card:first-child > img { height: 210px; }
.store-feature-body { padding: 24px 24px 26px; }
.game-page-section .store-feature-card .store-head { min-height: 2.6em; margin: 0 0 16px; color: var(--gold-light); font-size: 10px; line-height: 1.45; letter-spacing: .15em; }
.game-page-section .store-feature-card .store-list { padding-left: 18px; color: rgba(244,240,232,.68); line-height: 1.75; }
.store-demo-banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 18px; padding: 22px 26px; border: 1px solid rgba(225,191,119,.4); background: rgba(201,155,74,.09); color: rgba(244,240,232,.76); transition: background .2s, border-color .2s; }
.store-demo-banner:hover, .store-demo-banner:focus-visible { background: rgba(201,155,74,.17); border-color: var(--gold-light); }
.store-demo-banner strong { flex: none; color: var(--gold-light); font-size: 9px; letter-spacing: .17em; text-transform: uppercase; }
.game-page-section .roadmap-section { margin-top: 120px; padding: 0; }
/* --- Visual roadmap: quest plaques --- */
.roadmap-section { padding-top: 0; border-top: 0; }
.roadmap-intro { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; margin-bottom: 30px; padding: 0 4px; }
.roadmap-intro p { margin: 0; color: rgba(244,240,232,.72); font-size: 15px; line-height: 1.7; }
.roadmap-intro p:first-child { color: var(--cream); font: 400 21px/1.45 Georgia, serif; }
.roadmap-intro p:last-child { color: var(--gold-light); font-weight: 700; }
.roadmap-panel { position: relative; overflow: hidden; color: #f7f0dc; background: radial-gradient(ellipse at 4% 74%, rgba(211,157,61,.16), transparent 28%), radial-gradient(ellipse at 95% 72%, rgba(86,144,180,.17), transparent 30%), linear-gradient(145deg, #0a1825, #102a3e 55%, #07131f); border: 1px solid rgba(212,163,76,.4); box-shadow: 0 22px 55px rgba(0,0,0,.34); font-family: 'Cinzel', Georgia, serif; }
.roadmap-head { position: relative; z-index: 40; min-height: 158px; padding: 24px 24px 20px; text-align: center; background: linear-gradient(180deg, rgba(5,15,25,.995), rgba(8,25,38,.985)); border-bottom: 1px solid rgba(212,163,76,.5); box-shadow: 0 9px 18px rgba(0,0,0,.38); }
.roadmap-head > span { color: #f1d38a; font-size: 11px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.roadmap-section .roadmap-head h2 { margin: 5px 0 0; color: #f7f0dc; font: 400 clamp(30px, 4vw, 48px)/1.05 'Cinzel', Georgia, serif; letter-spacing: .06em; }
.roadmap-head img { display: block; width: min(350px, 66%); height: 36px; margin: -2px auto -8px; object-fit: fill; opacity: .78; }
.roadmap-head p { margin: 0; color: #d6cdb9; font-size: 13px; }
.roadmap-stage { position: relative; z-index: 3; height: 650px; }
.roadmap-sentinel { position: absolute; z-index: 1; bottom: -45px; width: 285px; opacity: .22; filter: saturate(.82) drop-shadow(0 16px 24px rgba(0,0,0,.5)); pointer-events: none; }
.roadmap-king { left: -58px; }
.roadmap-dragon { right: -48px; transform: scaleX(-1); }
.roadmap-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.roadmap-trail-shadow, .roadmap-trail-gold, .roadmap-trail-future { fill: none; stroke-linecap: round; }
.roadmap-trail-shadow { stroke: rgba(0,0,0,.68); stroke-width: 14; }
.roadmap-trail-gold, .roadmap-trail-future { stroke-width: 4; stroke-dasharray: 3 13; }
.roadmap-trail-gold { stroke: #d4a34c; filter: drop-shadow(0 0 5px rgba(212,163,76,.35)); }
.roadmap-trail-future { stroke: #f1d38a; opacity: .68; }
.roadmap-node { position: absolute; z-index: 8; display: grid; grid-template-columns: 48px 1fr; align-items: center; width: 174px; min-height: 58px; padding: 7px 12px 7px 9px; transform: translate(-50%, -50%); color: #f7f0dc; text-align: left; background: linear-gradient(105deg, rgba(8,23,35,.97), rgba(17,45,63,.94)); border-top: 1px solid rgba(240,205,130,.58); border-bottom: 1px solid rgba(153,101,34,.7); clip-path: polygon(8px 0,calc(100% - 8px) 0,100% 50%,calc(100% - 8px) 100%,8px 100%,0 50%); box-shadow: 0 9px 20px rgba(0,0,0,.33); }
.roadmap-node.roadmap-major { width: 210px; min-height: 96px; grid-template-columns: 55px 1fr; }
.roadmap-node img { width: 43px; height: 43px; object-fit: contain; }
.roadmap-node.roadmap-major img { width: 50px; height: 50px; }
.roadmap-node strong, .roadmap-node span { display: block; }
.roadmap-node strong { font-size: 13px; font-weight: 500; line-height: 1.3; }
.roadmap-node span { margin-top: 3px; color: #d6cdb9; font: 12px/1.35 Georgia, serif; }
.roadmap-pink-armor { filter: sepia(.55) saturate(5) hue-rotate(285deg) brightness(1.35); }
.roadmap-p1 { left: 13%; top: 18%; } .roadmap-p2 { left: 39%; top: 18%; }
.roadmap-p3 { left: 65%; top: 18%; } .roadmap-p4 { left: 86%; top: 35%; }
.roadmap-p5 { left: 80%; top: 57%; } .roadmap-p6 { left: 59%; top: 57%; }
.roadmap-p7 { left: 37%; top: 57%; } .roadmap-p8 { left: 15%; top: 66%; }
.roadmap-p9 { left: 24%; top: 86%; } .roadmap-p10 { left: 46%; top: 86%; }
.roadmap-p11 { left: 68%; top: 86%; } .roadmap-p12 { left: 89%; top: 78%; }
.roadmap-p12 strong { color: #f1d38a; letter-spacing: .07em; text-transform: uppercase; }
@media (min-width: 1001px) {
  .screenshot-grid.grid-9 figure:nth-child(n+4) { grid-column: span 2; }
}
@media (max-width: 1000px) {
  .page-steam-cta { grid-template-columns: 1fr; }
  .steam-cta-art { min-height: 300px; }
  .steam-cta-content { padding: 38px 32px 34px; }
  .store-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-feature-card:first-child { grid-column: span 2; }
  .hero-page .hero-content { padding-block: 70px 90px; }
  .roadmap-node { width: 150px; }
  .roadmap-node.roadmap-major { width: 185px; }
  .roadmap-node strong { font-size: 11px; }
  .roadmap-node span { font-size: 11px; }
}

/* --- Trailer + gameplay clips (prigod-idle.html) --- */
.trailer-section h2 { margin: 14px 0 34px; font: 400 clamp(44px, 5vw, 76px)/.95 Georgia, 'Times New Roman', serif; letter-spacing: -.05em; }
.trailer-section h2 em { color: var(--gold-light); }
.video-frame { padding: 8px; border: 1px solid rgba(201,155,74,.28); background: #080d14; }
.video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 60px; }
.media-grid figure { margin: 0; padding: 8px; border: 1px solid rgba(201,155,74,.28); background: #080d14; }
.media-grid video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.media-grid figcaption { display: flex; gap: 13px; padding: 14px 5px 6px; color: rgba(255,255,255,.5); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.media-grid figcaption span { color: var(--gold); font-family: Georgia, serif; }
@media (max-width: 680px) {
  .media-grid { grid-template-columns: 1fr; }
  .trailer-section h2 { font-size: 44px; }
  .hero-page { min-height: auto; }
  .hero-page .hero-content { padding-block: 48px 58px; }
  .prigod-hero { background-position: 52% center; }
  .game-page-section .game-store-section, .game-page-section .roadmap-section { margin-top: 88px; padding-top: 52px; }
  .game-page-section .roadmap-section { padding-top: 0; }
  .store-feature-grid { grid-template-columns: 1fr; }
  .store-feature-card:first-child { grid-column: auto; }
  .store-feature-card > img, .store-feature-card:first-child > img { height: 176px; }
  .store-demo-banner { align-items: flex-start; flex-direction: column; }
  .steam-cta-art { min-height: 220px; }
  .steam-cta-content { padding: 32px 22px 28px; }
  .roadmap-intro { grid-template-columns: 1fr; gap: 10px; }
  .roadmap-head { min-height: 170px; padding-inline: 16px; }
  .roadmap-head img { width: 82%; }
  .roadmap-stage { display: grid; gap: 16px; height: auto; padding: 34px 20px 42px; }
  .roadmap-stage::before { content: ''; position: absolute; z-index: 2; top: 34px; bottom: 42px; left: 42px; border-left: 3px dotted rgba(212,163,76,.7); }
  .roadmap-trail { display: none; }
  .roadmap-sentinel { width: 210px; opacity: .12; }
  .roadmap-node, .roadmap-node.roadmap-major { position: relative; left: auto; top: auto; width: 100%; min-height: 72px; margin: 0; padding: 10px 14px 10px 10px; grid-template-columns: 55px 1fr; transform: none; }
  .roadmap-node img, .roadmap-node.roadmap-major img { width: 46px; height: 46px; }
  .roadmap-node strong { font-size: 12px; }
  .roadmap-node span { font-size: 12px; }
}
