:root {
  --ink: #070b11;
  --ink-soft: #101823;
  --paper: #eaf0f3;
  --muted: #9ba8b2;
  --ice: #7ce9ff;
  --ice-deep: #174a68;
  --link: #aebdca;
  --mars: #ff8b3e;
  --mars-deep: #592718;
  --line: rgba(255, 255, 255, 0.16);
  --page: min(1180px, calc(100vw - 48px));
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--body); line-height: 1.6; overflow-x: hidden; }
body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { font: inherit; }
a { color: inherit; }
::selection { background: var(--ice); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-160%); background: var(--paper); color: var(--ink); padding: 10px 16px; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1440px) / 2)); transition: background .25s ease, height .25s ease, border-color .25s ease; border-bottom: 2px solid transparent; }
.site-header.is-scrolled { height: 66px; background: rgba(7, 11, 17, .88); border-color: var(--line); backdrop-filter: blur(14px); }
.brand { width: 180px; height: 36px; display: grid; align-items: center; overflow: hidden; }
.brand img { width: 180px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { color: #dbe4e8; text-decoration: none; letter-spacing: .08em; font-size: .76rem; font-weight: 700; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--link); }
.menu-toggle { display: none; }

.hero { min-height: 100svh; position: relative; display: grid; align-items: end; isolation: isolate; padding: 160px max(24px, calc((100vw - 1440px) / 2)) 10vh; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,11,17,.98) 0%, rgba(7,11,17,.84) 36%, rgba(7,11,17,.12) 68%), linear-gradient(0deg, var(--ink) 0%, transparent 32%); }
.hero-art { position: absolute; inset: 0; z-index: -2; background: #06090d; }
.hero-panel { position: absolute; inset: 0; background-position: center; background-size: cover; }
.hero-panel--ice { right: 30%; background-image: url("images/IceCaves/screenshot02_laser.png"); clip-path: polygon(0 0, 75% 0, 52% 100%, 0 100%); filter: saturate(.8) brightness(.7); }
.hero-panel--mars { left: 42%; background-image: url("images/MarsFlightVR/screenshot01.png"); clip-path: polygon(33% 0, 100% 0, 100% 100%, 0 100%); filter: saturate(.75) brightness(.58); }
.hero-content { position: relative; z-index: 2; width: min(500px, 70vw); display: flex; align-items: flex-end; gap: 28px; }
.hero-logo { width: 100%; height: auto; }
.hero-jump { flex: 0 0 48px; height: 48px; display: grid; place-items: center; border: 2px solid rgba(124, 233, 255, .5); color: var(--ice); text-decoration: none; font-size: 1.25rem; transition: background .2s ease, color .2s ease; }
.hero-jump:hover, .hero-jump:focus-visible { background: var(--ice); color: var(--ink); }
.eyebrow { margin: 0 0 24px; color: var(--ice); text-transform: uppercase; letter-spacing: .2em; font-size: .68rem; font-weight: 800; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(4.3rem, 10.2vw, 9.7rem); line-height: .82; letter-spacing: -.065em; text-transform: uppercase; font-weight: 850; }
.hero h1 em { color: transparent; -webkit-text-stroke: 1px rgba(234, 240, 243, .72); font-style: normal; }
.hero-copy { max-width: 620px; margin: 40px 0 32px; color: #b7c2c8; font-size: clamp(1rem, 1.5vw, 1.25rem); }
.text-link { display: inline-flex; gap: 14px; align-items: center; color: var(--paper); text-transform: uppercase; letter-spacing: .13em; font-size: .75rem; font-weight: 800; text-underline-offset: 7px; }
.text-link span { color: var(--ice); font-size: 1.25rem; }
.hero-coordinate { position: absolute; right: max(24px, calc((100vw - 1440px) / 2)); bottom: 10vh; margin: 0; writing-mode: vertical-rl; color: rgba(255,255,255,.36); letter-spacing: .14em; font-family: monospace; font-size: .65rem; }
.orbit { position: absolute; border: 2px solid rgba(124, 233, 255, .16); border-radius: 50%; pointer-events: none; }
.orbit--one { width: 78vw; height: 78vw; right: -35vw; top: -42vw; }
.orbit--two { width: 30vw; height: 30vw; right: -9vw; top: 12vh; border-color: rgba(255, 139, 62, .2); }

.game { position: relative; padding: 140px 0 160px; overflow: hidden; }
.game::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent); }
.game--ice { background: radial-gradient(circle at 85% 22%, rgba(23,74,104,.42), transparent 32%), #080e15; }
.game--mars { background: radial-gradient(circle at 12% 15%, rgba(89,39,24,.54), transparent 32%), #110c0a; }
.game-inner { width: var(--page); margin: 0 auto; position: relative; }
.game-marker { position: absolute; left: 0; top: 86px; width: 100%; height: 2px; background: var(--line); }
.game-marker span { position: absolute; left: max(24px, calc((100vw - 1440px) / 2)); top: -17px; background: inherit; color: var(--muted); font-family: monospace; font-size: .72rem; letter-spacing: .15em; padding: 6px 12px; }
.game-heading { display: flex; justify-content: center; align-items: center; margin-bottom: 74px; }
.game-heading .eyebrow { margin: 0; }
.game--mars .game-heading .eyebrow { color: var(--mars); }
.capsule { justify-self: start; width: min(467px, 100%); height: auto; border-radius: 5px; }
.capsule--ice { mix-blend-mode: screen; }
.game-story { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .8fr); gap: clamp(50px, 8vw, 120px); align-items: start; }
.game-lede { margin: 0; font-family: var(--display); font-weight: 620; font-size: clamp(1rem, 2vw, 2rem); line-height: 1.3; letter-spacing: -.02em; }
.game-details { padding-top: 10px; color: #b9c3c9; }
.game-details p { margin: 0 0 32px; }
.store-button { width: 100%; display: block; position: relative; padding: 18px 52px 18px 18px; border: 2px solid rgba(124,233,255,.4); color: var(--paper); text-decoration: none; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.game--mars .store-button { border-color: rgba(255,139,62,.46); }
.store-button__label { grid-row: 1; text-transform: uppercase; font-size: .58rem; letter-spacing: .17em; color: var(--muted); }
.store-button strong { font-size: 1.2rem; }
.store-button__arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; }
.store-button:hover, .store-button:focus-visible { background: var(--ice); border-color: var(--ice); color: var(--ink); }
.game--mars .store-button:hover, .game--mars .store-button:focus-visible { background: var(--mars); border-color: var(--mars); }
.store-button:hover .store-button__label, .store-button:focus-visible .store-button__label { color: currentColor; }
.quote { margin: 110px auto 140px; max-width: 820px; padding: 66px 48px 0; border-top: 2px solid rgba(124,233,255,.4); position: relative; text-align: center; }
.quote::before { content: "“"; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); color: var(--ice); font-family: Georgia, serif; font-size: 5rem; line-height: 1; }
.quote blockquote { margin: 0; font-family: Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.7rem); font-style: italic; line-height: 1.35; }
.quote figcaption { margin-top: 20px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }
.quote figcaption span { color: var(--paper); margin-right: 8px; }
.mission-strip { margin: 120px 0 140px; border-top: 2px solid rgba(255,139,62,.38); border-bottom: 2px solid rgba(255,139,62,.38); display: grid; grid-template-columns: repeat(3, 1fr); }
.mission-strip div { min-height: 150px; padding: 26px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px; align-content: center; }
.mission-strip div + div { border-left: 2px solid rgba(255,139,62,.38); }
.mission-strip span { grid-row: 1 / 3; color: var(--mars); font-family: monospace; }
.mission-strip strong { font-family: var(--display); font-size: 1.7rem; text-transform: uppercase; }
.mission-strip small { color: #aa9a92; }
.gallery-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 30px; border-bottom: 2px solid var(--line); }
.gallery-heading > p:last-child { color: var(--muted); font-family: monospace; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; }
.ice-gifs { width: min(960px, 100%); margin: 0 auto 54px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1.2vw, 14px); }
.ice-gifs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; }
.video-embed { width: min(960px, 100%); margin: 0 auto 54px; aspect-ratio: 16 / 9; border: 2px solid rgba(124,233,255,.4); background: #020304; }
.game-story + .video-embed { margin-top: 120px; }
.game--mars .video-embed { border-color: rgba(255,139,62,.46); }
.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.carousel { display: grid; grid-template-columns: 50px minmax(0, 1fr) 50px; gap: 14px; align-items: center; }
.game-story + .carousel { margin-top: 120px; }
.carousel-nav { width: 50px; height: 50px; display: grid; place-items: center; border: 2px solid var(--line); background: rgba(255,255,255,.02); color: var(--paper); cursor: pointer; font-size: 1.2rem; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.carousel-nav:hover, .carousel-nav:focus-visible { border-color: var(--ice); color: var(--ice); background: rgba(124,233,255,.07); }
.game--mars .carousel-nav:hover, .game--mars .carousel-nav:focus-visible { border-color: var(--mars); color: var(--mars); background: rgba(255,139,62,.07); }
.gallery { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 clamp(240px, 31vw, 390px); position: relative; margin: 0; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: #020304; aspect-ratio: 16 / 9; scroll-snap-align: start; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) brightness(.85); transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.gallery-item::after { content: "+"; position: absolute; right: 16px; bottom: 12px; color: white; font-size: 1.5rem; opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.025); filter: saturate(1) brightness(1); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; transform: translateY(0); }
.game--mars .eyebrow { color: var(--mars); }

.ios-games { padding: 140px 0; background: radial-gradient(circle at 88% 12%, rgba(124,233,255,.1), transparent 30%), #090d12; border-top: 2px solid var(--line); }
.ios-games-inner { width: var(--page); margin: 0 auto; }
.ios-games-heading { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr); gap: clamp(50px, 10vw, 150px); align-items: start; margin-bottom: 76px; }
.ios-games-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(3rem, 7vw, 6.4rem); line-height: .9; letter-spacing: -.05em; }
.ios-games-heading p { max-width: 660px; margin: 0; color: #c3cdd2; font-size: clamp(1rem, 1.5vw, 1.24rem); line-height: 1.8; }
.old-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.old-game { min-width: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; grid-template-rows: 1fr auto; gap: 20px 28px; align-items: center; padding: 34px; color: var(--paper); text-decoration: none; transition: background .2s ease; }
.old-game + .old-game { border-left: 2px solid var(--line); }
.old-game:hover, .old-game:focus-visible { background: rgba(124,233,255,.07); }
.old-game-icon { grid-row: 1 / 3; width: 112px; aspect-ratio: 1; border-radius: 18px; }
.old-game-logo { width: min(100%, 360px); max-height: 62px; object-fit: contain; object-position: left center; }
.old-game span { min-width: 0; color: var(--link); font-size: .7rem; text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; }
.old-game strong { grid-column: 3; grid-row: 1 / 3; color: var(--link); font-size: 1.2rem; }

.about { position: relative; overflow: hidden; padding: 140px 0; background: radial-gradient(circle at 12% 20%, rgba(23,74,104,.26), transparent 34%), #05080c; border-top: 2px solid var(--line); }
.about-inner { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr); gap: clamp(50px, 10vw, 150px); align-items: start; }
.about-inner h2 { margin: 0; font-family: var(--display); font-size: clamp(3rem, 7vw, 6.4rem); line-height: .9; letter-spacing: -.05em; }
.about-copy p { max-width: 760px; margin: 0; color: #c3cdd2; font-size: clamp(1rem, 1.5vw, 1.24rem); line-height: 1.8; }
.about-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 38px; color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 7px; font-size: .82rem; overflow-wrap: anywhere; }
.about-link span { font-size: 1.1rem; }

.contact { padding: 100px 0; background: #08090c; border-top: 2px solid var(--line); }
.contact-inner { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr); gap: clamp(50px, 10vw, 150px); align-items: start; }
.contact-inner h2 { margin: 0; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .95; letter-spacing: -.045em; }
.contact-copy { border-top: 2px solid var(--line); }
.contact-copy p { margin: 0; padding: 22px 0; color: #c3cdd2; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.contact-copy p + p { border-top: 2px solid var(--line); }
.contact-copy a { color: var(--link); text-underline-offset: 5px; }

.site-footer { min-height: 150px; width: var(--page); margin: 0 auto; display: flex; align-items: center; color: #75828b; border-top: 2px solid var(--line); }
.brand--footer { width: 145px; opacity: .7; }
.brand--footer img { width: 145px; }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 72px clamp(16px, 5vw, 80px) 36px; border: 0; background: rgba(3, 5, 8, .96); color: white; overflow: hidden; }
.lightbox[open] { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 24px; }
.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lightbox figure { margin: 0; min-width: 0; max-height: 88vh; display: grid; justify-items: center; gap: 14px; }
.lightbox figure img { max-width: 100%; max-height: calc(88vh - 50px); object-fit: contain; }
.lightbox figcaption { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; }
.lightbox-close, .lightbox-nav { border: 0; background: transparent; color: white; cursor: pointer; }
.lightbox-close { position: absolute; right: 24px; top: 14px; font-size: 2.2rem; }
.lightbox-nav { width: 48px; height: 48px; border: 2px solid rgba(255,255,255,.3); font-size: 1.2rem; }
.lightbox button:hover, .lightbox button:focus-visible { color: var(--ice); border-color: var(--ice); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  :root { --page: min(100% - 32px, 1180px); }
  .site-header { height: 68px; padding-inline: 16px; }
  .brand { width: 145px; }
  .brand img { width: 145px; }
  .menu-toggle { display: grid; width: 44px; height: 44px; place-content: center; gap: 7px; border: 0; background: transparent; color: white; }
  .menu-toggle:hover, .menu-toggle:focus-visible, .menu-toggle[aria-expanded="true"] { color: var(--link); }
  .menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: absolute; inset: 68px 0 auto; display: none; padding: 24px; background: rgba(7,11,17,.98); border-bottom: 2px solid var(--line); flex-direction: column; align-items: flex-start; gap: 22px; }
  .site-nav.is-open { display: flex; }
  .hero { padding-inline: 20px; padding-bottom: 12vh; }
  .hero::after { background: linear-gradient(90deg, rgba(7,11,17,.93), rgba(7,11,17,.25)), linear-gradient(0deg, var(--ink), transparent 45%); }
  .hero-panel--ice { right: 0; clip-path: polygon(0 0, 100% 0, 80% 58%, 0 82%); }
  .hero-panel--mars { left: 0; clip-path: polygon(20% 45%, 100% 28%, 100% 100%, 0 100%); }
  .hero-content { width: min(78vw, 400px); gap: 18px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 6rem); letter-spacing: -.075em; }
  .hero-copy { margin-top: 28px; }
  .hero-coordinate { display: none; }
  .game { padding: 110px 0 110px; }
  .game-marker { top: 64px; }
  .game-heading { margin-bottom: 50px; }
  .capsule { width: min(100%, 467px); }
  .game-story { grid-template-columns: 1fr; gap: 34px; }
  .game-lede { font-size: clamp(1rem, 5vw, 1.6rem); }
  .quote { margin: 80px auto 100px; padding: 58px 14px 0; }
  .quote::before { font-size: 4rem; }
  .mission-strip { margin: 80px 0 100px; grid-template-columns: 1fr; }
  .mission-strip div { min-height: 118px; }
  .mission-strip div + div { border-left: 0; border-top: 2px solid rgba(255,139,62,.38); }
  .gallery-heading { align-items: flex-end; }
  .gallery-heading > p:last-child { text-align: right; max-width: 140px; }
  .carousel { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 6px; }
  .carousel-nav { width: 40px; height: 40px; }
  .gallery-item { flex-basis: min(76vw, 320px); }
  .ios-games { padding: 100px 0; }
  .ios-games-heading { grid-template-columns: 1fr; gap: 32px; margin-bottom: 54px; }
  .ios-games-heading h2 { font-size: clamp(3rem, 17vw, 5rem); }
  .old-games { grid-template-columns: 1fr; }
  .old-game { grid-template-columns: 82px minmax(0, 1fr) auto; padding: 24px 12px; gap: 14px 18px; }
  .old-game + .old-game { border-left: 0; border-top: 2px solid var(--line); }
  .old-game-icon { width: 82px; border-radius: 14px; }
  .old-game-logo { max-height: 48px; }
  .about { padding: 100px 0; }
  .about-inner { grid-template-columns: 1fr; gap: 34px; }
  .about-inner h2 { font-size: clamp(3rem, 17vw, 5rem); }
  .contact { padding: 80px 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-inner h2 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .site-footer { padding: 38px 0; }
  .site-footer p { margin: 0; }
  .lightbox { padding: 60px 14px 26px; }
  .lightbox[open] { grid-template-columns: 40px 1fr 40px; gap: 5px; }
  .lightbox-nav { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
