:root {
  --ink: #0d0f12;
  --surface: #14171c;
  --surface-raised: #1d2229;
  --paper: #f4f0e8;
  --muted: #b2b0aa;
  --line: #333943;
  --ember: #db5047;
  --sps-blue: #4b89ff;
  --content: min(1180px, calc(100% - 64px));
  color: var(--paper);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--ink); }
body, button { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.skip-link { position: fixed; z-index: 60; top: 0; left: 1rem; padding: .7rem 1rem; color: var(--ink); background: var(--paper); transform: translateY(-130%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; z-index: 20; inset: 0 0 auto; display: flex; width: var(--content); min-height: 88px; margin: auto; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: baseline; gap: .28rem; color: var(--paper); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 700; white-space: nowrap; }
.brand-mark { color: var(--ember); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; font-weight: 700; }
.desktop-nav { display: flex; gap: 1.65rem; margin-left: auto; color: var(--paper); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.desktop-nav a:hover { color: var(--ember); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.language-switch { display: flex; border: 1px solid rgba(244, 240, 232, .36); }
.language-button { min-width: 31px; min-height: 31px; border: 0; color: var(--muted); background: transparent; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .63rem; }
.language-button.is-active { color: var(--ink); background: var(--paper); }
.header-cta, .button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; padding: .75rem 1.05rem; border: 1px solid transparent; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.header-cta { color: var(--paper); background: var(--ember); }
.header-cta:hover { background: #ee6257; }
.menu-button, .mobile-navigation { display: none; }

.hero { position: relative; display: flex; min-height: min(800px, 100vh); overflow: hidden; align-items: end; isolation: isolate; }
.hero-art { position: absolute; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; z-index: -2; inset: 0; background: rgba(4, 6, 8, .5); }
.hero-content { width: var(--content); margin: 0 auto; padding: 10.4rem 0 4.4rem; }
.eyebrow, .section-label, .project-meta, .project-tag { color: var(--ember); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.eyebrow { margin-bottom: 1.35rem; }
h1 { max-width: 680px; margin-bottom: 1rem; color: var(--paper); font-family: Georgia, "Times New Roman", serif; font-size: clamp(4.8rem, 10vw, 9.2rem); font-weight: 700; line-height: .78; }
.hero-summary { max-width: 540px; margin-bottom: 2.1rem; color: var(--paper); font-size: clamp(1rem, 1.5vw, 1.23rem); line-height: 1.58; }
.quiet-link { display: inline-flex; align-items: center; gap: .8rem; color: var(--paper); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.quiet-link::before { width: 33px; height: 1px; background: var(--ember); content: ""; }
.hero-note { position: absolute; right: max(32px, calc((100% - 1180px) / 2)); bottom: 4.4rem; max-width: 300px; padding-left: 1.25rem; border-left: 1px solid rgba(244, 240, 232, .72); color: var(--paper); }
.hero-note .eyebrow { margin-bottom: .55rem; }
.hero-note p { margin-bottom: 1.5rem; line-height: 1.5; }
.hero-note small { display: block; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; }

.section { width: var(--content); margin: auto; padding: 7.5rem 0; border-top: 1px solid var(--line); }
.section-label { margin-bottom: 2.5rem; }
h2 { margin-bottom: 1.5rem; color: var(--paper); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 5vw, 5.2rem); font-weight: 500; line-height: .9; }
h2 em { font-weight: 400; }
.studio-layout, .contact-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .72fr); gap: clamp(2.5rem, 9vw, 10rem); }
.studio-copy, .section-heading > p, .contact-copy { color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.studio-copy > p { margin-bottom: 2.8rem; }
.studio-copy ol { display: grid; gap: 1rem; padding: 0; list-style: none; counter-reset: studio; }
.studio-copy li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.studio-copy li::before { color: var(--ember); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; counter-increment: studio; content: "0" counter(studio); }

.section-heading { max-width: 740px; }
.games-section { padding-bottom: 5.5rem; }
.project-card { display: grid; grid-template-columns: .8fr 1.25fr .8fr; gap: 2rem; min-height: 300px; margin-top: 3.2rem; padding: 2rem; border: 1px solid #4c535e; background: var(--surface); }
.project-meta { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; color: var(--muted); }
.project-meta span:last-child { color: var(--ember); }
.project-tag { margin-bottom: .85rem; color: var(--muted); }
.project-card h3 { margin-bottom: 0; color: var(--paper); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4vw, 4.1rem); font-weight: 500; line-height: .93; }
.project-card > p { align-self: end; margin: 0; color: var(--muted); line-height: 1.65; }

.technology-section { padding-bottom: 2rem; }
.sps-panel { display: grid; grid-template-columns: minmax(250px, .68fr) minmax(0, 1.32fr); gap: clamp(2.2rem, 7vw, 7rem); margin-top: 3.2rem; padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid #31589d; background: #101a2a; }
.sps-branding { display: flex; min-height: 330px; flex-direction: column; justify-content: space-between; }
.sps-branding p, .sps-branding span { margin: 0; color: #a9c8ff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.sps-branding strong { color: var(--sps-blue); font-family: Georgia, "Times New Roman", serif; font-size: clamp(5rem, 12vw, 9rem); font-weight: 500; line-height: .8; }
.sps-copy { color: #d3dce9; line-height: 1.7; }
.sps-copy > p { max-width: 630px; margin-bottom: 2rem; font-size: 1.08rem; }
.sps-copy ul { display: grid; gap: 1rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.sps-copy li { display: grid; grid-template-columns: minmax(120px, .55fr) 1.45fr; gap: 1rem; padding-top: .9rem; border-top: 1px solid rgba(166, 198, 255, .25); }
.sps-copy li strong { color: var(--sps-blue); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.button-blue { color: #e7f0ff; background: #276fe9; }
.button-blue:hover { background: #4c8dff; }
.technology-note { max-width: 680px; margin: 1.4rem 0 4.9rem; color: var(--muted); font-size: .88rem; line-height: 1.6; }

.contact-section { padding: 7rem max(32px, calc((100% - 1180px) / 2)); background: var(--paper); }
.contact-section h2 { color: var(--ink); }
.contact-copy { color: #565b62; }
.contact-copy p { margin-bottom: 1.5rem; }
.email-link { display: inline-block; margin-bottom: 1.4rem; padding-bottom: .25rem; border-bottom: 1px solid var(--ember); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(.86rem, 1.6vw, 1.05rem); overflow-wrap: anywhere; }
.button-light { margin-left: 1rem; border-color: var(--ink); color: var(--ink); }
.button-light:hover { color: var(--paper); background: var(--ink); }

.site-footer { display: flex; width: var(--content); min-height: 130px; margin: auto; align-items: center; justify-content: space-between; gap: 1.5rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .69rem; letter-spacing: .04em; }
.site-footer p { margin: 0; }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: .9rem; }
.footer-links a:hover { color: var(--paper); }

.inner-page .site-header { position: relative; width: var(--content); }
.inner-page .site-header::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--line); content: ""; }
.inner-page .site-footer { border-top: 1px solid var(--line); }
.page-hero { width: var(--content); margin: auto; padding: 8.4rem 0 5.5rem; border-bottom: 1px solid var(--line); }
.page-hero--sps { width: 100%; padding-right: max(32px, calc((100% - 1180px) / 2)); padding-left: max(32px, calc((100% - 1180px) / 2)); border-bottom-color: #31589d; background: #101a2a; }
.page-hero--contact { width: 100%; padding-right: max(32px, calc((100% - 1180px) / 2)); padding-left: max(32px, calc((100% - 1180px) / 2)); background: var(--paper); }
.page-hero--contact h1, .page-hero--contact .page-lede { color: var(--ink); }
.page-hero--contact .eyebrow { color: #b43f38; }
.page-kicker { margin-bottom: 1.4rem; color: var(--ember); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.page-hero h1 { max-width: 880px; font-size: clamp(4rem, 8vw, 8.4rem); line-height: .82; }
.page-lede { max-width: 670px; margin-bottom: 0; color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.38rem); line-height: 1.58; }
.page-content { width: var(--content); margin: auto; padding: 5.5rem 0 7rem; }
.policy-content { max-width: 900px; }
.policy-updated { margin-bottom: 2.2rem; color: var(--sps-blue); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.policy-document { display: grid; gap: 1rem; }
.policy-document h2 { margin: 3.3rem 0 .25rem; font-size: clamp(2.2rem, 4vw, 4rem); }
.policy-document h2:first-child { margin-top: 0; }
.policy-document p { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 1rem; line-height: 1.76; }
.content-grid, .detail-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .78fr); gap: clamp(2.5rem, 8vw, 9rem); }
.content-grid + .content-grid, .detail-grid + .detail-grid { margin-top: 6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.content-grid h2, .detail-grid h2 { margin-bottom: 0; font-size: clamp(2.5rem, 4.5vw, 4.7rem); }
.content-copy { color: var(--muted); font-size: 1.03rem; line-height: 1.72; }
.content-copy p:last-child { margin-bottom: 0; }
.statement-list, .process-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.statement-list li, .process-list li { display: grid; grid-template-columns: 2.35rem 1fr; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.58; }
.statement-list li::before, .process-list li::before { color: var(--ember); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; font-weight: 700; }
.statement-list li::before { content: "//"; }
.process-list { counter-reset: process; }
.process-list li::before { counter-increment: process; content: "0" counter(process); }
.detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.detail-block { min-height: 240px; padding: 1.6rem; background: var(--surface); }
.detail-block p:first-child { margin-bottom: 3.2rem; color: var(--ember); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.detail-block h3 { margin-bottom: .8rem; color: var(--paper); font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 500; }
.detail-block p:last-child { margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.status-panel, .download-panel, .contact-panel { padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid var(--line); background: var(--surface); }
.status-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.status-panel p { max-width: 640px; margin-bottom: 0; color: var(--muted); line-height: 1.7; }
.status-label { display: inline-flex; margin-bottom: 1rem; padding: .35rem .55rem; color: #f6c0ba; background: rgba(219, 80, 71, .17); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .67rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.sps-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3rem; background: #31589d; }
.sps-flow > div { min-height: 190px; padding: 1.5rem; background: #101a2a; }
.sps-flow span { display: block; margin-bottom: 2.8rem; color: var(--sps-blue); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.sps-flow h3 { margin-bottom: .75rem; color: #e7f0ff; font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; font-weight: 500; }
.sps-flow p { margin-bottom: 0; color: #afbed2; line-height: 1.62; }
.download-panel { max-width: 850px; border-color: #31589d; background: #101a2a; }
.download-panel h2 { max-width: 590px; font-size: clamp(2.6rem, 5vw, 5rem); }
.download-panel > p { max-width: 650px; color: #c2cfdf; line-height: 1.68; }
.download-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.8rem 0; }
.download-step { padding-top: 1rem; border-top: 1px solid rgba(166, 198, 255, .3); }
.download-step span { display: block; margin-bottom: .8rem; color: var(--sps-blue); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .68rem; font-weight: 700; letter-spacing: .07em; }
.download-step p { margin: 0; color: #c2cfdf; line-height: 1.55; }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(220px, .6fr); gap: 3rem; border-color: #bbb4aa; background: var(--paper); }
.contact-panel h2 { color: var(--ink); font-size: clamp(2.5rem, 4.4vw, 4.6rem); }
.contact-panel p { color: #565b62; line-height: 1.65; }
.contact-panel aside { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.back-link { display: inline-flex; margin-top: 2.4rem; color: var(--paper); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.back-link::before { width: 28px; height: 1px; margin: auto .8rem auto 0; background: var(--ember); content: ""; }
.page-hero--contact .back-link { color: var(--ink); }

@media (max-width: 760px) {
  :root { --content: min(100% - 40px, 1180px); }
  .site-header { min-height: 76px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-button { display: grid; width: 40px; height: 40px; padding: 10px; gap: 5px; border: 1px solid rgba(244, 240, 232, .4); background: transparent; }
  .menu-button span { display: block; width: 100%; height: 1px; background: var(--paper); }
  .mobile-navigation { position: fixed; z-index: 15; inset: 76px 20px auto; display: grid; padding: 1rem; border: 1px solid var(--line); background: #13171d; box-shadow: 0 18px 36px rgba(0, 0, 0, .35); }
  .mobile-navigation[hidden] { display: none; }
  .mobile-navigation a { padding: .85rem .4rem; border-bottom: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
  .mobile-navigation a:last-child { border-bottom: 0; color: var(--ember); }
  .hero { min-height: 700px; }
  .hero-art { object-position: 62% center; }
  .hero-content { padding: 8.5rem 0 3rem; }
  h1 { font-size: clamp(4.3rem, 19vw, 6rem); }
  .hero-note { position: relative; right: auto; bottom: auto; width: var(--content); margin: 0 auto 2.8rem; }
  .studio-layout, .contact-layout, .sps-panel, .project-card { grid-template-columns: 1fr; }
  .section { padding: 5.5rem 0; }
  .project-card { min-height: auto; gap: 2.2rem; }
  .project-meta { flex-direction: row; }
  .project-card > p { align-self: auto; }
  .sps-branding { min-height: 190px; }
  .sps-copy li { grid-template-columns: 1fr; gap: .4rem; }
  .contact-section { padding: 5.5rem 20px; }
  .button-light { margin-left: 0; }
  .site-footer { min-height: 150px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .inner-page .site-header { width: var(--content); }
  .page-hero { padding: 5.6rem 0 4rem; }
  .page-hero--sps, .page-hero--contact { padding-right: 20px; padding-left: 20px; }
  .page-hero h1 { font-size: clamp(3.6rem, 15vw, 5.6rem); }
  .content-grid, .detail-grid, .status-panel, .contact-panel, .sps-flow, .download-steps { grid-template-columns: 1fr; }
  .content-grid + .content-grid, .detail-grid + .detail-grid { margin-top: 4rem; }
  .page-content { padding: 4rem 0 5.5rem; }
  .detail-block { min-height: 0; }
  .status-panel { align-items: start; }
}

@media (max-width: 420px) {
  :root { --content: min(100% - 32px, 1180px); }
  .brand { font-size: 1.07rem; }
  .header-actions { gap: .55rem; }
  .language-button { min-width: 29px; }
  .hero { min-height: 650px; }
  .hero-summary { font-size: .98rem; }
  .contact-section { padding-inline: 16px; }
}
