:root {
  color-scheme: light;
  --ink: #292f38;
  --muted: #596575;
  --subtle: #768292;
  --paper: #f7f9fc;
  --white: #fff;
  --line: #e1e6eb;
  --blue: #01255d;
  --blue-hover: #073778;
  --blue-soft: #eaf2ff;
  --gold: #bd9552;
  --gold-light: #d2b175;
  --shell: 1180px;
  font-family: Inter, "Aptos", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-size: 16px; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--blue); }
button, summary { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 20; padding: 10px 14px; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 12px; }
.shell { width: min(var(--shell), calc(100% - 56px)); margin-inline: auto; }

.site-header { position: relative; z-index: 10; background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 102px; width: min(1420px, calc(100% - 48px)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.brand { display: block; flex: 0 0 auto; width: clamp(225px, 25vw, 340px); background: transparent; }
.brand img { width: 100%; height: auto; }
.desktop-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(17px, 2.4vw, 36px); }
.desktop-nav a, .mobile-nav a { color: #3c4653; font-size: 13px; font-weight: 600; letter-spacing: .015em; text-decoration: none; transition: color .18s ease; }
.desktop-nav a:hover, .mobile-nav a:hover, .desktop-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--blue); }
.desktop-nav .nav-contact { padding: 0; border: 0; color: var(--blue); font-weight: 700; }
.mobile-menu { display: none; }

.eyebrow { margin: 0 0 16px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 560; letter-spacing: -.045em; line-height: 1.08; }
h1 { font-size: clamp(46px, 6.1vw, 78px); }
h2 { font-size: clamp(34px, 4.2vw, 54px); }
h3 { font-size: 22px; }
.lead { max-width: 670px; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.65; }
.section { padding-block: clamp(64px, 7vw, 92px); }
.section--compact-top { padding-top: clamp(40px, 4.5vw, 56px); }
.section--tint { background: var(--paper); }
.section-heading { max-width: 720px; margin-bottom: 44px; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading > p:last-child { max-width: 590px; margin-bottom: 0; color: var(--muted); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 11px; padding: 12px 19px; border: 1px solid var(--blue); border-radius: 4px; color: var(--white); background: var(--blue); font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); background: var(--blue-hover); border-color: var(--blue-hover); color: var(--white); box-shadow: 0 5px 14px rgba(1,37,93,.16); }
.button--light { background: var(--white); color: var(--blue); border-color: #b8c8de; }
.button--light:hover { background: var(--blue-soft); border-color: #9bb5dc; color: var(--blue); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link span { color: var(--blue); transition: transform .18s ease; }
.text-link:hover span { transform: translateX(3px); }

.hero { padding: clamp(54px, 6.3vw, 82px) 0 clamp(42px, 4.4vw, 56px); background: var(--white); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: center; gap: clamp(38px, 6vw, 80px); }
.hero h1 { max-width: 780px; margin-bottom: 22px; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero .lead { margin-bottom: 0; }
.hero-aside { padding: 30px 32px 28px; border: 1px solid #d9e6f8; border-radius: 5px; background: var(--blue-soft); color: var(--ink); }
.hero-aside .eyebrow { color: var(--blue); }
.hero-aside h2 { margin-bottom: 20px; color: var(--ink); font-size: clamp(26px, 3vw, 34px); }
.hero-aside ul { margin: 0; padding: 0; list-style: none; }
.hero-aside li { display: flex; gap: 18px; padding: 13px 0; border-top: 1px solid #cbdaf0; color: #414c5b; font-size: 14px; }
.hero-aside li span { color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.hero-aside .aside-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; }

.capability-grid, .feature-grid, .store-grid, .contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.store-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.capability-card { min-height: 205px; padding: 25px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); box-shadow: 0 3px 14px rgba(28,48,75,.035); }
.capability-card .card-index { display: block; margin-bottom: 25px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.capability-card h3 { margin-bottom: 12px; font-size: 21px; }
.capability-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.feature-card { display: flex; min-height: 230px; flex-direction: column; align-items: flex-start; padding: 27px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); box-shadow: 0 3px 14px rgba(28,48,75,.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: #c8d8ef; box-shadow: 0 10px 24px rgba(28,48,75,.09); }
.feature-card .eyebrow { margin-bottom: 20px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.feature-card .text-link { margin-top: auto; }

.callout { display: flex; align-items: center; justify-content: space-between; gap: 34px; padding: clamp(28px, 4.5vw, 48px); border: 1px solid #dbe7f7; border-radius: 5px; background: var(--blue-soft); color: var(--ink); }
.callout h2 { max-width: 620px; margin-bottom: 12px; color: var(--ink); font-size: clamp(30px, 4vw, 46px); }
.callout p { max-width: 650px; margin-bottom: 0; color: var(--muted); }
.callout .button { flex: 0 0 auto; }

.page-hero { padding: clamp(54px, 6.5vw, 76px) 0 clamp(48px, 5.5vw, 66px); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 930px; margin-bottom: 19px; }
.page-hero .lead { margin-bottom: 0; }
.page-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.page-kicker::before { width: 24px; height: 1px; background: var(--gold); content: ""; }

.project-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-card { display: grid; grid-template-columns: minmax(145px, .72fr) minmax(0, 1.28fr); min-height: 250px; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--white); box-shadow: 0 3px 14px rgba(28,48,75,.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.project-card:hover { transform: translateY(-2px); border-color: #c8d8ef; box-shadow: 0 9px 22px rgba(28,48,75,.08); }
.project-card--wide { grid-column: 1 / -1; grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr); }
.project-image { min-height: 100%; background: #f1f5fb; }
.project-image--placeholder { display: grid; min-height: 250px; place-items: center; padding: 24px; background: var(--blue-soft); color: var(--blue); text-align: center; }
.project-image--placeholder span { color: var(--blue); font-size: 17px; font-weight: 650; letter-spacing: .04em; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-image--contain img { object-fit: contain; padding: 16px; }
.project-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 25px; }
.project-copy .eyebrow { margin-bottom: 14px; font-size: 10px; }
.project-copy h2 { margin-bottom: 11px; font-size: clamp(25px, 3vw, 35px); }
.project-copy p { margin-bottom: 20px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.project-copy .project-status { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; color: #596575; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.project-status::before { width: 7px; height: 7px; border-radius: 50%; background: #8895a2; content: ""; }
.project-status--live::before { background: #5f856e; }
.project-copy .text-link { margin-top: auto; }
.project-card--wide .project-copy { padding: clamp(28px, 5vw, 58px); }
.game-section-heading { margin: 0 0 28px; }
.game-section-heading h2 { max-width: 760px; margin: 0; color: var(--navy); font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
.game-feature { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr); align-items: center; gap: clamp(28px, 5vw, 64px); overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--white); box-shadow: 0 3px 14px rgba(28,48,75,.04); }
.game-promo { display: flex; justify-content: center; margin: 0; padding: 24px; background: #f1f5fb; }
.game-promo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 680px; object-fit: contain; }
.game-copy { padding: clamp(24px, 5vw, 58px); }
.game-copy h3 { margin: 0 0 10px; color: var(--navy); font-size: clamp(34px, 4vw, 48px); line-height: 1.05; letter-spacing: -.045em; }
.game-copy p:not(.eyebrow) { max-width: 570px; color: var(--soft); line-height: 1.7; }
.game-copy .game-tagline { margin: 0 0 16px; color: var(--blue); font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.game-copy .text-link { margin-top: 12px; }

.store-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--white); box-shadow: 0 3px 14px rgba(28,48,75,.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.store-card:hover, .store-card:focus-within { transform: translateY(-2px); border-color: #c8d8ef; box-shadow: 0 9px 22px rgba(28,48,75,.08); }
.store-card__image-link { display: block; width: 100%; overflow: hidden; aspect-ratio: 1672 / 941; }
.store-card__image-link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.store-card__image-link:hover img, .store-card__image-link:focus-visible img { transform: scale(1.015); }
.store-art { display: grid; width: 100%; height: 190px; flex: 0 0 190px; place-items: center; object-fit: contain; background: #f7f9fc; }
.store-card > .project-image--placeholder { min-height: 190px; }
.store-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px 22px 22px; }
.store-copy h2 { margin-bottom: 10px; font-size: 23px; }
.store-copy p { color: var(--muted); font-size: 14px; }
.store-copy .text-link { margin-top: auto; }
.notice { margin-top: 24px; padding: 18px 21px; border-left: 3px solid var(--blue); background: var(--blue-soft); color: #4e5b69; font-size: 14px; }
.notice strong { color: var(--ink); }

.tech-feature { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); align-items: stretch; overflow: hidden; border: 1px solid #dbe7f7; border-radius: 5px; background: var(--blue-soft); color: var(--ink); }
.tech-feature img { width: 100%; height: 100%; min-height: 360px; object-fit: contain; background: #f2f6fc; }
.tech-copy { padding: clamp(30px, 5vw, 62px); }
.tech-copy .eyebrow { color: var(--blue); }
.tech-copy h2 { color: var(--ink); }
.tech-copy p { color: var(--muted); }
.tech-copy .text-link { color: var(--blue); }
.tech-note { padding: 22px 25px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.tech-note strong { color: var(--ink); }
.inquiry-panel { padding: clamp(28px, 5vw, 44px); border: 1px solid #dbe7f7; border-radius: 5px; background: var(--blue-soft); }
.inquiry-panel--spaced { margin-top: 28px; }
.inquiry-panel h2 { margin-bottom: 14px; font-size: clamp(29px, 4vw, 42px); }
.inquiry-panel p { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.app-item { display: flex; min-width: 0; align-items: flex-start; gap: 17px; padding: 22px 0; border-top: 1px solid var(--line); }
.app-item img { width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; }
.app-item h3 { margin: 0 0 6px; font-size: 20px; }
.app-item p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.app-item .text-link { font-size: 14px; }
.app-disclaimer { margin: 22px 0 0; color: var(--subtle); font-size: 13px; line-height: 1.65; }
.licensing-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; gap: clamp(32px, 7vw, 88px); }
.licensing-layout h2 { margin-bottom: 16px; }
.licensing-layout .lead { color: var(--muted); font-size: 17px; }
.licensing-offerings { padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.licensing-offerings ul { display: grid; gap: 12px; margin: 0 0 18px; padding-left: 20px; color: var(--ink); font-weight: 600; }
.licensing-offerings p { margin-bottom: 20px; color: var(--muted); font-size: 14px; }

.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(38px, 8vw, 100px); }
.about-aside { padding: 30px; border-top: 2px solid var(--blue); background: var(--paper); }
.about-aside p { margin-bottom: 0; color: var(--muted); }
.about-copy p { color: var(--muted); }
.about-copy p:first-child { color: var(--ink); font-size: 19px; }

.contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-card { padding: 28px; border: 1px solid var(--line); }
.contact-card .eyebrow { margin-bottom: 24px; }
.contact-card h2 { margin-bottom: 12px; font-size: 24px; }
.contact-card p { color: var(--muted); font-size: 14px; }
.contact-card .text-link { margin-top: 8px; }
.contact-email { overflow-wrap: anywhere; }

.site-footer { padding: 40px 0 20px; background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.2fr); gap: 50px; align-items: start; padding-bottom: 38px; }
.footer-brand { width: min(100%, 280px); background: transparent; }
.footer-brand img { width: 100%; height: auto; }
.footer-main p { max-width: 480px; margin: 4px 0 17px; color: var(--muted); font-size: 14px; }
.footer-main a { color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 19px; }
.footer-nav a { color: var(--muted); font-size: 12px; text-decoration: none; }
.footer-nav a:hover, .footer-main a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 11px; }
.footer-bottom p { margin: 0; }

@media (max-width: 960px) {
  .header-inner { min-height: 90px; }
  .brand { width: min(280px, 32vw); }
  .desktop-nav { gap: 15px; }
  .desktop-nav a { font-size: 12px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(270px, .9fr); gap: 38px; }
  .capability-grid, .feature-grid, .store-grid, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 840px) {
  .shell { width: min(var(--shell), calc(100% - 40px)); }
  .header-inner { width: calc(100% - 32px); min-height: 76px; gap: 12px; }
  .brand { width: min(190px, 53vw); }
  .desktop-nav { display: none; }
  .mobile-menu { position: relative; display: block; }
  .mobile-menu summary { display: flex; min-width: 48px; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--blue); cursor: pointer; list-style: none; transition: background .18s ease; }
  .mobile-menu summary:hover { background: var(--blue-soft); }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-bars { display: grid; gap: 4px; }
  .menu-bars i { display: block; width: 15px; height: 1px; background: var(--blue); }
  .menu-word { font-size: 11px; font-weight: 700; }
  .mobile-nav { position: absolute; top: calc(100% + 8px); right: -8px; display: grid; width: min(300px, calc(100vw - 32px)); gap: 0; padding: 8px 18px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); box-shadow: 0 12px 28px rgba(28,48,75,.14); }
  .mobile-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .mobile-nav a:last-child { border-bottom: 0; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-aside { max-width: 600px; }
  .project-list { grid-template-columns: 1fr; }
  .project-card--wide { grid-column: auto; }
  .game-feature { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 0; }
  .game-promo { padding: 18px; }
  .game-promo img { max-height: 620px; }
  .game-copy { padding: 28px; }
  .tech-feature { grid-template-columns: 1fr; }
  .tech-feature img { min-height: 0; max-height: 340px; }
  .app-grid, .licensing-layout { grid-template-columns: 1fr; gap: 14px; }
  .app-item { padding: 18px 0; }
  .callout { align-items: flex-start; flex-direction: column; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 540px) {
  .shell { width: calc(100% - 36px); }
  h1 { font-size: clamp(43px, 13vw, 58px); }
  h2 { font-size: clamp(31px, 9vw, 40px); }
  .hero { padding: 48px 0 40px; }
  .hero-aside { padding: 25px 22px; }
  .capability-grid, .feature-grid, .store-grid, .contact-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 0; }
  .capability-card .card-index { margin-bottom: 20px; }
  .project-card, .project-card--wide { grid-template-columns: 1fr; }
  .project-image { min-height: 0; max-height: none; }
  .project-image--placeholder { min-height: 220px; }
  .project-image img { display: block; width: 100%; height: auto; object-fit: contain; }
  .project-image--contain img { object-fit: contain; }
  .project-image--contain { max-height: none; }
  .project-image--contain img { display: block; width: 100%; height: auto; max-height: none; padding: 0; }
  .project-copy { padding: 22px; }
  .game-feature { grid-template-columns: 1fr; }
  .game-promo { padding: 18px; }
  .game-promo img { width: 100%; max-width: 100%; height: auto; max-height: none; }
  .game-copy { padding: 24px; }
  .tech-feature img { width: 100%; height: auto; min-height: 0; max-height: none; object-fit: contain; }
  .store-art { height: 190px; flex-basis: 190px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
