: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); }
.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: repeat(3, 1fr); 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: radial-gradient(circle at 90% 10%, rgba(86,157,178,.21), transparent 43%), linear-gradient(145deg, transparent 35%, rgba(5,10,17,.36)); }
.development-card::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .38; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.x-card { background: #191716; }
.x-card::before { background: radial-gradient(circle at 90% 10%, rgba(210,104,39,.25), transparent 45%), linear-gradient(145deg, transparent 35%, rgba(5,10,17,.42)); }
.parrot-card { background: #12201d; }
.parrot-card::before { background: radial-gradient(circle at 90% 10%, rgba(67,172,128,.24), transparent 45%), linear-gradient(145deg, transparent 35%, rgba(5,10,17,.4)); }
.card-watermark { 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; }
.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: 480 / 853; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.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(780px, calc(100% - 40px)); max-width: none; max-height: calc(100svh - 40px); padding: 18px; overflow: visible; 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 - 125px); 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: -15px; right: -15px; width: 44px; height: 44px; border: 1px solid rgba(225,191,119,.65); border-radius: 50%; background: #0d1521; color: var(--cream); font-size: 25px; line-height: 1; cursor: pointer; }
.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: 1000px) {
  .page-shell { width: min(100% - 48px, 900px); }
  .site-header { grid-template-columns: 1fr auto; min-height: 92px; }
  .main-nav { display: none; }
  .development-heading, .gallery-heading, .section-heading, .studio-grid { grid-template-columns: 1fr; gap: 55px; }
  .development-heading > p { max-width: 650px; }
  .development-grid { grid-template-columns: 1fr; }
  .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; }
  .screenshot-grid figure:last-child { grid-column: 1 / -1; width: calc(50% - 9px); justify-self: center; }
  .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: 680px) {
  .page-shell { width: calc(100% - 36px); }
  .header-cta { display: none; }
  .site-header { display: flex; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-name { font-size: 17px; }
  .hero { min-height: 790px; 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: 64px 80px; justify-content: flex-end; }
  .hero h1 { font-size: clamp(54px, 16vw, 74px); }
  .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; }
  .hero-meta > div { display: none; }
  .hero-meta > div:nth-child(-n+2) { display: flex; 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; }
  .development-copy { padding-top: 110px; }
  .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; }
  .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; }
.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 { margin-top: 120px; padding: 64px 60px; border: 1px solid rgba(201,155,74,.35); background: linear-gradient(145deg, #101b2a, #0b1420); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: 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 p { max-width: 520px; margin: 0; color: rgba(244,240,232,.62); font-size: 15px; line-height: 1.75; }
.page-steam-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; justify-self: end; }
@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; padding: 44px 34px; }
  .page-steam-actions { justify-self: start; }
  .hero-page .hero-content { padding-block: 70px 90px; }
}

/* --- 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; }
.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; }
}
