:root {
  --navy: #132139;
  --navy-panel: #263a61;
  --navy-card: #17243b;
  --paper: #f8f7fc;
  --ink: #242032;
  --muted: #8390aa;
  --orange: #f5a715;
  --purple: #6047be;
  --purple-soft: #e8e3f6;
  --green: #43e0a5;
  --green-bg: #061008;
  --line-light: rgba(255,255,255,.75);
  --line-dark: rgba(35,31,48,.16);
  --content: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #eef2ff;
  background: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.shell { width: min(var(--content), calc(100% - 56px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 76px; position: sticky; top: 0; z-index: 50; background: var(--navy); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px; background: linear-gradient(to bottom, var(--navy), transparent); pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 30px; border-radius: 6px; color: #101827; background: var(--orange); font-size: 13px; font-weight: 900; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: inherit; text-decoration: none; font-size: 13px; font-weight: 650; letter-spacing: .03em; opacity: .72; }
.site-nav a:hover, .site-nav a:focus-visible { opacity: 1; }
.eyebrow { margin: 0 0 16px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.08; }
h1 { font-size: clamp(52px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: clamp(25px, 3vw, 32px); }
p { margin: 0; }
.skip-link { position: absolute; left: -999px; top: 10px; z-index: 100; padding: 10px 14px; background: white; color: black; }
.skip-link:focus { left: 10px; }

/* Home */
.home-page { min-height: 100vh; background: var(--navy); }
.home-hero { padding: 62px 0 42px; }
.home-hero h1 { max-width: 760px; }
.home-hero h1 span { display: block; color: var(--orange); }
.home-intro { max-width: 830px; margin-top: 26px; color: #93a0b9; font-size: 19px; line-height: 1.58; }
.primary-button { display: inline-flex; align-items: center; min-height: 54px; margin-top: 34px; padding: 0 26px; border-radius: 999px; color: #111a2a; background: var(--orange); text-decoration: none; font-size: 13px; font-weight: 850; letter-spacing: .02em; }
.divider { height: 1px; background: var(--line-light); opacity: .9; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 28px auto 58px; padding: 32px 14px; border-radius: 22px; background: var(--navy-panel); }
.metric { padding: 0 22px; text-align: center; }
.metric + .metric { border-left: 1px solid rgba(255,255,255,.1); }
a.metric { display: block; text-decoration: none; color: inherit; transition: opacity .15s ease; }
a.metric:hover { opacity: .78; }
.metric strong { display: block; color: white; font-size: clamp(30px, 4vw, 40px); line-height: 1; letter-spacing: -.03em; }
.metric span { display: block; max-width: 240px; margin: 12px auto 0; color: #bdc6d9; font-size: 14px; line-height: 1.35; }
.home-section { padding: 60px 0; }
.section-title { margin-bottom: 34px; }
.section-title .eyebrow { margin-bottom: 10px; }
.section-title p:last-child { margin-top: 10px; color: #7f8ba3; }
.project-list { display: grid; gap: 28px; }
.project-card { display: grid; grid-template-columns: 56% 44%; height: 300px; overflow: hidden; border-radius: 18px; color: white; text-decoration: none; background: var(--navy-card); transition: transform .18s ease, box-shadow .18s ease; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.project-card.guidance { color: #2a2336; background: #ded7f0; }
.project-card.games { background: #17172b; }
.project-card.vr { background: #0e1812; }
.project-card.navigation { color: #16233a; background: #e7edfb; }
.navigation .project-meta, .navigation .project-copy p { color: #4b5670; }
.navigation .tag { color: #1d4ed8; background: rgba(47,111,237,.13); }
.navigation .project-link { color: #1d4ed8; }
.project-media { position: relative; height: 300px; overflow: hidden; }
.project-media video, .project-media > img { width: 100%; height: 100%; object-fit: cover; }
.games .project-media { display: grid; place-items: center; background: #1b0d4a; }
.games .project-media video { width: auto; height: 278px; aspect-ratio: 720 / 1558; object-fit: cover; border: 8px solid #05070b; border-radius: 27px; background: #1b0d4a; box-shadow: 0 12px 34px rgba(0,0,0,.32); }
.guidance-media { display: flex; align-items: end; justify-content: center; gap: 18px; padding: 52px 30px 0; background: #bcaee3; }
.guidance-media img { width: 31%; height: 220px; object-fit: cover; object-position: top; border-radius: 16px 16px 0 0; box-shadow: 0 10px 28px rgba(55,37,84,.2); }
.guidance-media img:nth-child(2) { height: 238px; }
.nav-card-media { display: flex; align-items: end; justify-content: center; gap: 18px; padding: 52px 30px 0; background: #dbe6fb; }
.nav-card-media img { width: 40%; height: 230px; object-fit: cover; object-position: top; border-radius: 16px 16px 0 0; box-shadow: 0 10px 28px rgba(30,58,138,.18); }
.media-label { position: absolute; top: 16px; left: 18px; z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.media-label.right { right: 18px; left: auto; }
.guidance-media .media-label, .nav-card-media .media-label { color: #1a1523; }
.project-copy { display: flex; flex-direction: column; justify-content: center; padding: 34px; }
.project-meta { color: #8794aa; font-size: 13px; }
.project-copy h3 { margin-top: 8px; }
.project-copy p { margin-top: 14px; color: #aeb8ca; line-height: 1.45; }
.project-card.guidance .project-meta, .project-card.guidance .project-copy p { color: #635a72; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { padding: 7px 13px; border-radius: 999px; color: #ff8545; background: #2d4266; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.guidance .tag { color: #5c43ad; background: rgba(96,71,190,.13); }
.vr .tag { color: var(--green); }
.project-link { margin-top: 15px; color: #ff8545; font-size: 12px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.guidance .project-link { color: #5c43ad; }
.vr .project-link { color: var(--green); }
.story { max-width: 880px; }
.story p { margin-top: 22px; color: #94a0b7; font-size: 17px; }
.story .personal-note { margin-top: 30px; padding: 22px 26px; border-left: 5px solid var(--orange); border-radius: 14px; background: var(--navy-card); color: #bdc6d9; }
.contact { padding: 58px 0 62px; }
.contact-copy { max-width: 590px; margin-top: 18px; color: #94a0b7; font-size: 18px; }
.contact-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.text-link { color: #dce4f5; text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px 0; color: #526078; border-top: 1px solid var(--line-light); font-size: 12px; text-transform: uppercase; }

/* Project pages */
.project-page { min-height: 100vh; }
.project-page .site-header { min-height: 68px; }
.project-hero { padding: 44px 0 30px; }
.project-hero .eyebrow { margin-bottom: 18px; }
.project-hero .subtitle { max-width: 800px; margin-top: 12px; color: #a7afc1; font-size: 19px; }
.hero-media { margin-top: 28px; overflow: hidden; border: 16px solid #17243b; border-radius: 26px; background: #14102b; }
.hero-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #05060d; }
.caption { margin-top: 8px; color: #7d899f; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.summary-card { margin: 34px 0 54px; padding: 30px 36px; border-left: 5px solid currentColor; border-radius: 14px; }
.summary-card .eyebrow { color: currentColor; margin-bottom: 16px; }
.summary-card p:last-child { color: #eef1fb; font-size: 18px; font-weight: 650; line-height: 1.55; }
.project-section { padding: 44px 0; }
.project-section + .project-section { border-top: 1px solid rgba(255,255,255,.12); }
.project-section h2 { font-size: 32px; }
.project-section p { max-width: 820px; margin-top: 14px; color: #a8b0c0; font-size: 17px; }
.project-section p.caption { max-width: none; font-size: 11px; color: #7d899f; letter-spacing: .04em; text-transform: uppercase; }
.callout { max-width: 820px; margin-top: 28px; padding: 22px 26px; border-left: 5px solid currentColor; border-radius: 10px; background: rgba(255,255,255,.05); }
.callout .eyebrow { margin: 0 0 8px; color: currentColor; }
.callout p { margin-top: 0; color: #eef1f8; font-size: 16px; }
.wide-image { width: 100%; margin-top: 28px; border-radius: 18px; }
.wide-video { width: 100%; margin-top: 28px; border-radius: 18px; background: #05060d; }
.image-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 28px; }
.image-grid figure, .compare figure { margin: 0; }
.image-grid img { width: 100%; aspect-ratio: 1.5; object-fit: contain; background: #05060d; border-radius: 14px; }
figcaption { margin-top: 8px; color: #77849a; font-size: 11px; }
.compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; margin-top: 28px; padding: 26px; border-radius: 18px; background: #17243b; }
.compare img { width: 100%; aspect-ratio: 1.5; object-fit: cover; border-radius: 12px; }
.compare-arrow { color: #ff7e39; font-size: 30px; }
.lightbox-overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 40px; background: rgba(5,6,13,.92); z-index: 999; cursor: zoom-out; }
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay .lightbox-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; cursor: default; }
.lightbox-close { position: absolute; top: 24px; right: 28px; width: 44px; height: 44px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.lightbox-close::before, .lightbox-close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lightbox-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lightbox-close:hover { background: rgba(255,255,255,.22); }

.next-project { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 38px 0 46px; border-top: 1px solid rgba(255,255,255,.72); text-decoration: none; }
.next-project span { display: block; color: #7c899e; font-size: 11px; text-transform: uppercase; }
.next-project strong { display: block; margin-top: 4px; font-size: 24px; }
.next-arrow { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #152039; background: #ff7e39; }

/* Star field pages */
.stars { background-color: #0d1528; background-image: radial-gradient(circle at 11% 18%, rgba(255,255,255,.5) 0 1px, transparent 1.5px), radial-gradient(circle at 73% 33%, rgba(255,255,255,.35) 0 1px, transparent 1.5px), radial-gradient(circle at 37% 76%, rgba(255,255,255,.3) 0 1px, transparent 1.5px), radial-gradient(circle at 92% 83%, rgba(255,255,255,.4) 0 1px, transparent 1.5px); background-size: 230px 220px, 310px 280px, 260px 300px, 370px 330px; }
.games-page { color: #f3f4fb; }
.games-page .site-header { background: #0d1528; }
.games-page .site-header::after { background: linear-gradient(to bottom, #0d1528, transparent); }
.games-page .project-hero .eyebrow, .games-page .callout, .games-page .summary-card { color: #ff7e39; }
.games-page .summary-card { background: #241f2d; }
.games-page .vertical-video { display: grid; place-items: center; min-height: 650px; background: #190d49; }
.games-page .vertical-video video { width: auto; height: min(650px, 72vh); aspect-ratio: auto; object-fit: contain; }
.current-stills img { aspect-ratio: 1170 / 2532; object-position: center; }
.comparison-image { width: 100%; margin-top: 28px; border-radius: 18px; }

/* Guidance */
.guidance-page { color: var(--ink); background: var(--paper); }
.guidance-page .site-header { background: var(--paper); }
.guidance-page .site-header::after { background: linear-gradient(to bottom, var(--paper), transparent); }
.guidance-page .site-nav a, .guidance-page .brand { color: var(--ink); }
.guidance-page .project-hero .eyebrow { color: var(--purple); }
.guidance-page .project-hero .subtitle { color: #5e5969; }
.guidance-page .hero-media { display: flex; align-items: end; justify-content: center; gap: 18px; min-height: 500px; padding: 30px 30px 0; border: 0; border-radius: 20px; background: #e9e4f4; }
.guidance-page .hero-media img { width: 31%; height: 440px; object-fit: cover; object-position: top; border-radius: 16px 16px 0 0; box-shadow: 0 10px 28px rgba(55,37,84,.2); }
.guidance-page .hero-media img:nth-child(2) { height: 470px; }
.guidance-page .summary-card { color: var(--purple); background: var(--purple-soft); }
.guidance-page .summary-card p:last-child { color: #272334; }
.guidance-page .project-section + .project-section { border-color: var(--line-dark); }
.guidance-page .project-section p { color: #5f5a6a; }
.guidance-page .project-section p.caption { color: #7d899f; }
.guidance-page .callout { color: var(--purple); background: #e3dcf5; }
.guidance-page .callout p { color: #292436; }
.guidance-page .wide-image { border: 1px solid rgba(35,31,48,.12); }
.guidance-content-row { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 54px; }
.phone-shot { justify-self: center; width: 240px; max-height: 510px; margin: 0 auto; object-fit: cover; object-position: top; border-radius: 16px; box-shadow: 0 18px 45px rgba(48,34,78,.16); }
.phone-shot-figure { margin: 0; justify-self: center; text-align: center; }
.before-after { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 28px; padding: 30px; border-radius: 18px; background: #e9e4f4; }
.before-after figure { margin: 0; text-align: center; }
.before-after img { width: 100%; max-width: 210px; height: 440px; margin: auto; object-fit: cover; object-position: top; border-radius: 14px; }
.guidance-page .next-project { border-color: var(--line-dark); }
.guidance-page .next-arrow { color: white; background: var(--purple); }

/* VR */
.vr-page { color: #f1f5f2; background-color: var(--green-bg); background-image: radial-gradient(circle at 15% 25%, rgba(82,230,174,.45) 0 1px, transparent 1.5px), radial-gradient(circle at 75% 38%, rgba(255,255,255,.35) 0 1px, transparent 1.5px), radial-gradient(circle at 41% 73%, rgba(82,230,174,.3) 0 1px, transparent 1.5px), radial-gradient(circle at 91% 87%, rgba(255,255,255,.35) 0 1px, transparent 1.5px); background-size: 260px 250px, 320px 300px, 280px 330px, 390px 360px; }
.vr-page .site-header { background: var(--green-bg); }
.vr-page .site-header::after { background: linear-gradient(to bottom, var(--green-bg), transparent); }
.vr-page .project-hero .eyebrow, .vr-page .summary-card, .vr-page .callout { color: var(--green); }
.vr-page .hero-media { border-color: #13231b; background: #020503; }
.vr-page .summary-card { background: #12221a; }
.vr-page .side-image { display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: 44px; }
.vr-page .side-image.reverse { grid-template-columns: .82fr 1.18fr; }
.vr-page .side-image img { width: 100%; border-radius: 16px; }
.vr-page .circle-image { width: min(560px, 70vw); aspect-ratio: 1; margin: 32px auto 0; object-fit: cover; border: 3px solid var(--green); border-radius: 50%; }
.vr-page .next-arrow { background: var(--green); }

/* Navigation redesign */
.nav-page { color: var(--ink); background-color: #f3f6fc; background-image: linear-gradient(rgba(47,111,237,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(47,111,237,.07) 1px, transparent 1px); background-size: 34px 34px, 34px 34px; }
.nav-page .site-header { background: #f3f6fc; }
.nav-page .site-header::after { background: linear-gradient(to bottom, #f3f6fc, transparent); }
.nav-page .site-nav a, .nav-page .brand { color: var(--ink); }
.nav-page .project-hero .eyebrow { color: #2f6fed; }
.nav-page .project-hero .subtitle { color: #4b5670; }
.nav-page .hero-media { display: grid; place-items: center; min-height: 480px; padding: 30px; border: 0; border-radius: 20px; background: #e7edfb; }
.nav-page .hero-media img { width: 260px; height: auto; border-radius: 20px; box-shadow: 0 18px 45px rgba(30,58,138,.18); }
.nav-page .summary-card { color: #1d4ed8; background: #e7edfb; }
.nav-page .summary-card p:last-child { color: #23324d; }
.nav-page .project-section + .project-section { border-color: rgba(35,45,66,.12); }
.nav-page .project-section p { color: #4b5670; }
.nav-page .project-section p.caption { color: #7d899f; }
.nav-page .wide-image { border: 1px solid rgba(35,45,66,.12); }
.nav-page .next-project { border-color: rgba(35,45,66,.12); }
.nav-page .next-arrow { color: white; background: #2f6fed; }
.nav-page .image-grid img { background: #e7edfb; }

@media (max-width: 760px) {
  .shell { width: min(100% - 34px, var(--content)); }
  .site-header { min-height: 64px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 11px; }
  .site-nav a:nth-child(2) { display: none; }
  .home-hero { padding-top: 40px; }
  h1 { font-size: clamp(42px, 13vw, 62px); }
  .metrics { grid-template-columns: 1fr; padding: 8px 22px; }
  .metric { padding: 22px 0; }
  .metric + .metric { border-top: 1px solid rgba(255,255,255,.1); border-left: 0; }
  .project-card { grid-template-columns: 1fr; }
  .project-card { height: auto; }
  .project-media { height: 260px; }
  .games .project-media video { width: auto; height: 244px; border-width: 7px; border-radius: 23px; }
  .project-copy { padding: 28px; }
  .guidance-media img { height: 190px; }
  .nav-card-media img { height: 195px; }
  .guidance-media img:nth-child(2) { height: 205px; }
  .contact-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .site-footer { flex-direction: column; }
  .project-hero { padding-top: 28px; }
  .hero-media { border-width: 8px; border-radius: 18px; }
  .games-page .vertical-video { min-height: 520px; }
  .games-page .vertical-video video { height: min(520px, 70vh); }
  .summary-card { padding: 24px; }
  .summary-card p:last-child { font-size: 16px; }
  .image-grid, .before-after, .guidance-content-row, .vr-page .side-image, .vr-page .side-image.reverse { grid-template-columns: 1fr; }
  .current-stills img { width: 200px; margin: 0 auto; }
  .compare { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); text-align: center; }
  .guidance-page .hero-media { min-height: 340px; }
  .guidance-page .hero-media img { height: 300px; }
  .guidance-page .hero-media img:nth-child(2) { height: 320px; }
  .before-after img { height: 390px; }
}
