:root {
  color-scheme: light;
  --ivory: #fbf7ee;
  --ivory-deep: #f3ecdd;
  --paper: #fffdf8;
  --navy: #102a43;
  --navy-deep: #071b2d;
  --ink: #183044;
  --muted: #60717e;
  --teal: #157d7f;
  --teal-bright: #52b9b2;
  --coral: #e06f5f;
  --gold: #c99a40;
  --line: rgba(16, 42, 67, 0.14);
  --shadow: 0 24px 70px rgba(16, 42, 67, 0.13);
  --soft-shadow: 0 12px 36px rgba(16, 42, 67, 0.08);
  --radius-sm: 0.8rem;
  --radius: 1.35rem;
  --radius-lg: 2rem;
  --content: 76rem;
  --reading: 49rem;
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { background: var(--ivory); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--teal); text-underline-offset: 0.22em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; border-radius: 0.2rem; }
.skip-link { position: fixed; z-index: 100; top: 0.75rem; left: 0.75rem; padding: 0.7rem 1rem; color: var(--navy); background: white; border-radius: var(--radius-sm); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 2.5rem), var(--content)); margin-inline: auto; }
.reading { width: min(100%, var(--reading)); }

.site-header { position: sticky; z-index: 30; top: 0; background: rgba(251, 247, 238, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--navy); font-size: 1.08rem; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
.brand-spark { position: relative; width: 1.7rem; height: 1.7rem; flex: 0 0 auto; }
.brand-spark::before, .brand-spark::after { content: ""; position: absolute; inset: 50% auto auto 50%; background: var(--gold); border-radius: 999px; transform: translate(-50%, -50%); }
.brand-spark::before { width: 0.25rem; height: 1.55rem; }
.brand-spark::after { width: 1.55rem; height: 0.25rem; }
.desktop-nav { display: flex; align-items: center; gap: 1.65rem; }
.desktop-nav a { position: relative; color: #465d6d; font-size: 0.92rem; font-weight: 700; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--navy); }
.desktop-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.72rem; height: 0.16rem; background: var(--coral); border-radius: 1rem; }
.mobile-nav { display: none; }
.mobile-nav summary { cursor: pointer; list-style: none; color: var(--navy); font-weight: 800; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; top: calc(100% - 0.2rem); left: 1rem; right: 1rem; display: grid; gap: 0.1rem; padding: 0.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.mobile-nav nav a { padding: 0.75rem; color: var(--navy); font-weight: 700; text-decoration: none; border-radius: 0.65rem; }
.mobile-nav nav a:hover { background: var(--ivory-deep); }

h1, h2, h3 { margin-top: 0; color: var(--navy); font-family: var(--display-font); font-weight: 700; letter-spacing: -0.045em; line-height: 0.99; text-wrap: balance; }
h1 { margin-bottom: 1.4rem; font-size: clamp(3rem, 7vw, 6.6rem); }
h2 { margin-bottom: 1.1rem; font-size: clamp(2.35rem, 4.5vw, 4.4rem); }
h3 { margin-bottom: 0.7rem; font-size: clamp(1.55rem, 2.4vw, 2.15rem); line-height: 1.06; }
p { margin-top: 0; }
.eyebrow { margin: 0 0 0.85rem; color: var(--teal); font-size: 0.74rem; font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase; }
.lede { margin: 0; color: #4d6270; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.62; }
.large-copy { font-size: clamp(1.14rem, 2vw, 1.4rem); line-height: 1.62; }
.section { padding-block: clamp(4.6rem, 9vw, 8rem); }
.section-soft { background: var(--ivory-deep); }
.section-heading { max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4.25rem); }
.section-heading > p:last-child { max-width: 43rem; color: var(--muted); font-size: 1.12rem; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 1.8rem; }
.button { display: inline-flex; min-height: 3.15rem; align-items: center; justify-content: center; padding: 0.78rem 1.25rem; color: white; background: var(--teal); border: 1px solid transparent; border-radius: 999px; font-size: 0.94rem; font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px rgba(21, 125, 127, 0.16); }
.button:hover { color: white; background: var(--navy); transform: translateY(-1px); }
.button-secondary { color: var(--navy); background: transparent; border-color: rgba(16, 42, 67, 0.35); box-shadow: none; }
.button-secondary:hover { color: var(--navy); background: white; }
.button-secondary.light { color: white; border-color: rgba(255, 255, 255, 0.5); }
.button-secondary.light:hover { color: var(--navy); }
.text-link { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--navy); font-weight: 850; text-decoration: none; }
.text-link span { color: var(--coral); transition: transform 160ms ease; }
.text-link:hover span { transform: translateX(0.22rem); }
.product-name { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; color: var(--navy); font-size: 0.8rem; font-weight: 850; letter-spacing: 0.04em; }
.product-name img { width: 3.4rem; height: 3.4rem; border-radius: 22%; box-shadow: 0 8px 22px rgba(16, 42, 67, 0.18); }

/* Homepage */
.home-hero { position: relative; min-height: 48rem; overflow: hidden; background: radial-gradient(circle at 10% 10%, rgba(82, 185, 178, 0.13), transparent 28rem), var(--ivory); }
.hero-layout { position: relative; z-index: 1; min-height: 48rem; display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(34rem, 1.22fr); align-items: center; gap: clamp(2.5rem, 5vw, 5rem); padding-block: clamp(4rem, 7vw, 6.7rem); }
.hero-copy-block h1 { font-size: clamp(3.6rem, 6.4vw, 6.45rem); }
.hero-copy-block .lede { max-width: 38rem; }
.portfolio-collage { position: relative; min-height: 39rem; isolation: isolate; }
.collage-item { position: absolute; overflow: hidden; background: var(--paper); border: 0.45rem solid var(--paper); border-radius: 1.55rem; box-shadow: 0 24px 55px rgba(16, 42, 67, 0.18); }
.collage-item picture, .collage-item img { display: block; width: 100%; height: 100%; }
.collage-item img { object-fit: cover; object-position: top center; }
.collage-item figcaption { position: absolute; left: 0.65rem; bottom: 0.65rem; padding: 0.32rem 0.55rem; color: var(--navy); background: rgba(255, 253, 248, 0.92); border-radius: 999px; font-size: 0.67rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.collage-vita { z-index: 4; width: 11.4rem; height: 24.4rem; left: 5%; top: 4%; transform: rotate(-6deg); }
.collage-trigger { z-index: 3; width: 10.5rem; height: 22.5rem; left: 32%; top: 13%; transform: rotate(3deg); }
.collage-logic { z-index: 5; width: 10.2rem; height: 21.8rem; right: 3%; top: 1%; transform: rotate(7deg); }
.collage-marsupia { z-index: 2; width: 24rem; height: 13.5rem; left: 3%; bottom: 1%; transform: rotate(2deg); }
.collage-pitstorm { z-index: 6; width: 23rem; height: 12.9rem; right: 1%; bottom: 3%; transform: rotate(-3deg); }
.collage-marsupia img, .collage-pitstorm img { object-position: center; }
.apps-home { background: var(--paper); }
.home-products { display: grid; gap: 1.25rem; }
.apps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-product { overflow: hidden; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--soft-shadow); }
.home-product-media { position: relative; height: 23rem; overflow: hidden; background: #dfe9e2; }
.home-product-media::after { content: ""; position: absolute; inset: auto 0 0; height: 6rem; background: linear-gradient(transparent, rgba(7, 27, 45, 0.18)); pointer-events: none; }
.home-product-media picture, .home-product-media img { width: 100%; height: 100%; }
.home-product-media img { object-fit: cover; object-position: top center; }
.home-product-copy { padding: 1.6rem; }
.home-product-copy h3 { font-size: 2rem; }
.home-product-copy p { color: var(--muted); }
.home-product-triggerscan .home-product-media { height: 27rem; background: #d8f4e9; }
.home-product-logiclevel { margin-top: 2.2rem; }
.home-product-logiclevel .home-product-media { height: 20.8rem; background: #0b253d; }
.games-home { color: #dce7ed; background: var(--navy-deep); }
.games-home .eyebrow { color: #7cd5cd; }
.games-home h2, .games-home h3 { color: white; }
.games-home .section-heading > p:last-child { color: #b7c6d0; }
.games-home .home-product { background: #0f3049; border-color: rgba(255,255,255,0.13); }
.games-home .home-product-media { height: 20rem; }
.games-home .home-product-copy p { color: #bdcbd4; }
.games-home .product-name, .games-home .text-link { color: white; }
.home-product-pitstorm { margin-top: 3rem; }
.product-help { padding-block: 0; background: var(--ivory-deep); }
.help-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 2rem; padding: clamp(2.5rem, 6vw, 4.5rem); color: #dae5ec; background: var(--navy); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.help-panel h2 { color: white; }
.help-panel .eyebrow { color: #7cd5cd; }
.help-panel p { max-width: 39rem; }
.help-panel .button-row { position: relative; z-index: 1; justify-content: flex-end; }

/* Landing and editorial pages */
.simple-hero { position: relative; overflow: hidden; padding-block: clamp(5rem, 10vw, 9rem); background: var(--ivory-deep); border-bottom: 1px solid var(--line); }
.simple-hero h1 { font-size: clamp(3.4rem, 7vw, 6.8rem); }
.listing-section { background: var(--paper); }
.listing-stack { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.listing-feature { display: grid; grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); overflow: hidden; min-height: 34rem; padding: clamp(1.3rem, 4vw, 3.5rem); background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.listing-feature.reverse .listing-media { order: 2; }
.listing-media { display: grid; place-items: center; min-height: 27rem; padding: 2rem; overflow: hidden; background: var(--navy); border-radius: var(--radius); }
.listing-media picture { display: grid; place-items: center; height: 100%; }
.listing-media img { width: auto; max-height: 31rem; border-radius: 1.15rem; box-shadow: 0 20px 50px rgba(0,0,0,0.28); }
.games-page .listing-media img { width: 100%; max-height: none; border-radius: 0.7rem; }
.listing-copy p { max-width: 34rem; color: var(--muted); font-size: 1.08rem; }
.theme-sage .listing-media { background: #dbe9dd; }
.theme-mint .listing-media { background: #cdeee4; }
.theme-navy .listing-media { background: #071f38; }
.theme-outback .listing-media { background: #efd29b; }
.theme-stage .listing-media { background: #0a1828; }

/* Product pages */
.product-hero { position: relative; overflow: hidden; min-height: 44rem; background: var(--ivory-deep); }
.product-hero-layout { position: relative; z-index: 1; min-height: 44rem; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(30rem, 1.08fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); padding-block: clamp(4.5rem, 8vw, 7rem); }
.product-hero-copy h1 { font-size: clamp(3.25rem, 6.4vw, 6rem); }
.product-hero-copy .text-link { margin-left: 0.35rem; }
.product-hero-art { position: relative; min-height: 36rem; }
.hero-screen { position: absolute; overflow: hidden; background: white; border: 0.48rem solid white; border-radius: 1.5rem; box-shadow: var(--shadow); }
.hero-screen picture, .hero-screen img { display: block; width: 100%; height: 100%; }
.hero-screen img { object-fit: cover; object-position: top center; }
.phone-art .hero-screen.primary { z-index: 2; width: 17rem; height: 35rem; left: 7%; top: 0; transform: rotate(-4deg); }
.phone-art .hero-screen.secondary { z-index: 1; width: 15rem; height: 31rem; right: 4%; bottom: 0; transform: rotate(5deg); }
.landscape-art { min-height: 31rem; }
.landscape-art .hero-screen.primary { z-index: 2; width: 31rem; height: 17.4rem; left: 0; top: 2.2rem; transform: rotate(-3deg); }
.landscape-art .hero-screen.secondary { z-index: 1; width: 28rem; height: 15.75rem; right: 0; bottom: 2.4rem; transform: rotate(4deg); }
.landscape-art .hero-screen img { object-position: center; }
.product-hero.theme-sage { background: #e6efe5; }
.product-hero.theme-mint { background: #ddf2eb; }
.product-hero.theme-navy { color: #dce7ed; background: #09243b; }
.product-hero.theme-navy h1, .product-hero.theme-navy .product-name, .product-hero.theme-navy .text-link { color: white; }
.product-hero.theme-navy .lede { color: #bed0db; }
.product-hero.theme-navy .eyebrow { color: #79d8d3; }
.product-hero.theme-outback { background: #f1d6a1; }
.product-hero.theme-stage { color: #dce7ed; background: radial-gradient(circle at 80% 20%, rgba(212, 59, 48, 0.25), transparent 28rem), #071827; }
.product-hero.theme-stage h1, .product-hero.theme-stage .product-name, .product-hero.theme-stage .text-link { color: white; }
.product-hero.theme-stage .lede { color: #c4d0d7; }
.product-hero.theme-stage .eyebrow { color: #7de5df; }
.feature-section { background: var(--paper); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid article { min-height: 18rem; padding: clamp(1.5rem, 3vw, 2.4rem); background: var(--ivory); }
.feature-number { display: inline-block; margin-bottom: 4rem; color: var(--coral); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.12em; }
.feature-grid p { color: var(--muted); }
.value-section { background: var(--ivory-deep); }
.value-layout { max-width: 64rem; }
.value-section.theme-navy, .value-section.theme-stage { color: #dce7ed; background: var(--navy); }
.value-section.theme-navy h2, .value-section.theme-stage h2 { color: white; }
.value-section.theme-navy .eyebrow, .value-section.theme-stage .eyebrow { color: #7cd5cd; }
.gallery-section { background: var(--paper); }
.product-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.product-gallery figure { padding: 1rem; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.product-gallery picture { display: grid; place-items: center; min-height: 31rem; padding: 1rem; overflow: hidden; background: var(--navy); border-radius: var(--radius); }
.product-gallery img { width: auto; max-height: 32rem; border-radius: 0.8rem; box-shadow: 0 16px 42px rgba(0,0,0,0.25); }
.product-gallery figcaption { padding: 0.85rem 0.25rem 0.2rem; color: var(--muted); font-size: 0.9rem; }
.landscape-gallery picture { min-height: 15rem; padding: 0.65rem; }
.landscape-gallery img { width: 100%; max-height: none; border-radius: 0.55rem; }
.product-help { background: var(--paper); }

/* Support and privacy */
.support-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.directory-card { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; color: var(--navy); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: var(--soft-shadow); }
.directory-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.directory-card img { width: 4rem; height: 4rem; border-radius: 22%; }
.directory-card span { display: grid; flex: 1; }
.directory-card strong { font-family: var(--display-font); font-size: 1.4rem; line-height: 1.1; }
.directory-card small { color: var(--muted); }
.directory-card b { color: var(--coral); font-size: 1.4rem; }
.support-other, .support-detail { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(20rem, 1.15fr); gap: clamp(3rem, 7vw, 7rem); }
.support-other ul { columns: 2; margin: 0; padding: 0; list-style: none; }
.support-other li { margin-bottom: 0.65rem; }
.contact-panel { padding: clamp(1.6rem, 4vw, 2.7rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--soft-shadow); }
.check-list { display: grid; gap: 1rem; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.75rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }
.privacy-directory { display: grid; gap: 1rem; }
.privacy-row { scroll-margin-top: 6rem; display: grid; grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.3fr); gap: 2rem; padding: clamp(1.3rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.privacy-row .product-name { margin: 0; }
.privacy-row p { margin: 0.35rem 0; color: var(--muted); }
.plain-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; padding: 0; list-style: none; }
.plain-directory li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.95rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.plain-directory li span:last-child { color: var(--muted); font-size: 0.84rem; text-align: right; }
.not-found { position: relative; min-height: 67vh; display: grid; align-items: center; overflow: hidden; }

/* Footer */
.site-footer { color: #c8d4dc; background: var(--navy-deep); }
.footer-top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding-block: 3.2rem 2.5rem; }
.footer-promise { display: flex; align-items: center; gap: 0.8rem; }
.footer-promise p { margin: 0; color: white; font-family: var(--display-font); font-size: clamp(1.45rem, 3vw, 2.2rem); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem 1.35rem; }
.footer-links a { color: #c8d4dc; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: white; }
.legal-copy { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding-block: 1.2rem 1.7rem; border-top: 1px solid rgba(255,255,255,0.12); }
.legal-copy p { margin: 0; color: #91a5b2; font-size: 0.78rem; }
.legal-copy p:first-child { max-width: 52rem; }

@media (max-width: 1060px) {
  .hero-layout, .product-hero-layout { grid-template-columns: 1fr; }
  .home-hero, .hero-layout { min-height: auto; }
  .hero-copy-block { max-width: 47rem; }
  .portfolio-collage { min-height: 38rem; max-width: 46rem; width: 100%; margin-inline: auto; }
  .product-hero-art { width: min(100%, 38rem); margin-inline: auto; }
  .feature-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .apps-grid, .product-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-product-logiclevel { margin-top: 0; grid-column: 1 / -1; }
  .home-product-logiclevel .home-product-media { height: 25rem; }
  .support-other, .support-detail { grid-template-columns: 1fr; }
  .listing-feature { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: auto; }
  .feature-number { margin-bottom: 2rem; }
  .privacy-row { grid-template-columns: 1fr; gap: 1rem; }
  .plain-directory { grid-template-columns: 1fr; }
  .footer-top, .legal-copy { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 1.25rem), var(--content)); }
  .header-inner { min-height: 4.3rem; }
  h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  h2 { font-size: clamp(2.25rem, 10vw, 3.4rem); }
  .section { padding-block: 4.2rem; }
  .hero-layout { padding-block: 3.7rem; }
  .hero-copy-block h1 { font-size: clamp(3.15rem, 14.5vw, 4.7rem); }
  .button-row { align-items: stretch; }
  .button { text-align: center; }
  .portfolio-collage { min-height: 27rem; margin-top: 1.3rem; }
  .collage-item { border-width: 0.3rem; border-radius: 1rem; }
  .collage-item figcaption { display: none; }
  .collage-vita { width: 7.2rem; height: 15.5rem; left: 1%; top: 2%; }
  .collage-trigger { width: 6.9rem; height: 14.8rem; left: 33%; top: 9%; }
  .collage-logic { width: 6.8rem; height: 14.6rem; right: 2%; top: 1%; }
  .collage-marsupia { width: 15rem; height: 8.5rem; left: 0; bottom: 2%; }
  .collage-pitstorm { width: 14.5rem; height: 8.2rem; right: 0; bottom: 1%; }
  .apps-grid, .games-grid, .product-gallery, .support-directory { grid-template-columns: 1fr; }
  .home-product-triggerscan .home-product-media, .home-product-logiclevel .home-product-media { height: 23rem; }
  .home-product-pitstorm { margin-top: 0; }
  .help-panel { grid-template-columns: 1fr; padding: 2rem 1.25rem; border-radius: var(--radius) var(--radius) 0 0; }
  .help-panel .button-row { justify-content: flex-start; }
  .listing-feature { grid-template-columns: 1fr; padding: 1rem; }
  .listing-feature.reverse .listing-media { order: 0; }
  .listing-media { min-height: 23rem; padding: 1rem; }
  .listing-copy { padding: 0.6rem 0.45rem 1rem; }
  .product-hero-layout { min-height: auto; padding-block: 3.8rem; }
  .product-hero-art { min-height: 26rem; }
  .phone-art .hero-screen.primary { width: 12.4rem; height: 25.5rem; left: 2%; }
  .phone-art .hero-screen.secondary { width: 10.8rem; height: 22rem; right: 1%; }
  .landscape-art { min-height: 21rem; }
  .landscape-art .hero-screen.primary { width: 20rem; max-width: 91%; height: 11.25rem; left: 0; }
  .landscape-art .hero-screen.secondary { width: 18rem; max-width: 84%; height: 10.1rem; right: 0; }
  .feature-grid.four { grid-template-columns: 1fr; }
  .product-gallery picture { min-height: 25rem; }
  .landscape-gallery picture { min-height: auto; }
  .support-other ul { columns: 1; }
  .plain-directory li { display: grid; }
  .plain-directory li span:last-child { text-align: left; }
}

@media (max-width: 380px) {
  .brand { font-size: 0.97rem; }
  .brand-spark { width: 1.45rem; height: 1.45rem; }
  .mobile-nav summary { font-size: 0.9rem; }
  .hero-copy-block h1 { font-size: 3.05rem; }
  .collage-vita { width: 6.6rem; height: 14.2rem; }
  .collage-trigger { width: 6.4rem; height: 13.7rem; }
  .collage-logic { width: 6.3rem; height: 13.5rem; }
  .collage-marsupia { width: 13.8rem; height: 7.8rem; }
  .collage-pitstorm { width: 13.2rem; height: 7.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .button-row, .site-footer { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; }
}


/* Experience-first media presentation */
.portfolio-collage {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 1rem;
  min-height: 0;
  padding: 1rem;
  background: rgba(255, 253, 248, 0.62);
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: var(--radius-lg);
}
.collage-item {
  position: relative;
  display: grid;
  gap: 0.6rem;
  width: auto;
  height: auto;
  inset: auto;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.collage-item picture {
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: var(--navy);
  border: 0.34rem solid var(--paper);
  border-radius: 1.15rem;
  box-shadow: 0 16px 38px rgba(16, 42, 67, 0.17);
}
.collage-item img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.collage-item figcaption {
  position: static;
  padding: 0;
  color: var(--navy);
  background: transparent;
  border-radius: 0;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: none;
}
.collage-vita, .collage-trigger, .collage-logic { grid-column: span 2; grid-row: 1; }
.collage-vita picture, .collage-trigger picture, .collage-logic picture { height: 20rem; padding: 0.4rem; }
.collage-vita { gap: 0.25rem; }
.collage-vita picture { height: 20.35rem; background: #dbe9dd; }
.collage-trigger picture { background: #d8f4e9; }
.collage-logic picture { background: #071f38; }
.collage-marsupia, .collage-pitstorm { grid-column: span 3; grid-row: 2; }
.collage-marsupia picture, .collage-pitstorm picture { aspect-ratio: 16 / 9; padding: 0; }
.collage-marsupia img, .collage-pitstorm img { width: 100%; }

.home-product-media {
  display: grid;
  place-items: center;
  height: auto;
  min-height: 30rem;
  padding: 1rem;
  overflow: hidden;
}
.home-product-media::after { display: none; }
.home-product-media picture { display: grid; place-items: center; width: 100%; height: auto; }
.home-product-media img { width: auto; max-width: 100%; height: auto; max-height: 32rem; object-fit: contain; object-position: center; }
.home-product-vitacounta .home-product-media { height: auto; background: #dbe9dd; }
.home-product-vitacounta .home-product-media img { max-width: 15rem; }
.home-product-triggerscan .home-product-media { height: auto; background: #d8f4e9; }
.home-product-triggerscan .home-product-media img,
.home-product-logiclevel .home-product-media img { max-width: 16rem; }
.home-product-logiclevel { margin-top: 0; }
.home-product-logiclevel .home-product-media { height: auto; background: #071f38; }
.games-home .home-product-media {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0.75rem;
}
.games-home .home-product-media img { width: 100%; max-height: none; }
.home-product-pitstorm { margin-top: 0; }

.games-title-hero { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.games-title-hero h1 { margin: 0; }
.listing-feature { min-height: 0; }
.listing-media picture { width: 100%; height: auto; }
.apps-page .listing-media { min-height: 34rem; padding: 1.25rem; }
.apps-page .listing-media img { max-width: 100%; max-height: 32rem; object-fit: contain; }
.games-page .listing-media {
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0.75rem;
}
.games-page .listing-media picture,
.games-page .listing-media img { display: block; width: 100%; height: auto; max-height: none; }

.product-hero-art {
  position: relative;
  display: grid;
  gap: 1rem;
  min-height: 0;
}
.hero-screen {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  transform: none;
}
.hero-screen picture, .hero-screen img { display: block; width: 100%; height: auto; }
.hero-screen img { object-fit: contain; object-position: center; }
.phone-art { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.phone-art .hero-screen.primary,
.phone-art .hero-screen.secondary {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  transform: none;
}
.phone-art .hero-screen img { width: 100%; max-height: 37rem; object-fit: contain; }
.landscape-art {
  grid-template-columns: 1fr;
  min-height: 0;
}
.landscape-art .hero-screen.primary,
.landscape-art .hero-screen.secondary {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  transform: none;
}
.landscape-art .hero-screen { border-radius: 1rem; }
.landscape-art .hero-screen img { width: 100%; object-position: center; }

.product-gallery picture { min-height: 0; padding: 0.75rem; }
.product-gallery img { width: 100%; max-height: none; height: auto; object-fit: contain; }
.landscape-gallery picture { aspect-ratio: 16 / 9; min-height: 0; padding: 0.5rem; }
.landscape-gallery img { width: 100%; }

@media (max-width: 1060px) {
  .portfolio-collage { min-height: 0; max-width: 46rem; }
  .product-hero-art { width: min(100%, 46rem); }
}

@media (max-width: 680px) {
  .portfolio-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; min-height: 0; padding: 0.7rem; }
  .collage-item { border: 0; border-radius: 0; }
  .collage-item figcaption { display: block; font-size: 0.61rem; }
  .collage-vita { grid-column: 1; grid-row: 1; }
  .collage-trigger { grid-column: 2; grid-row: 1; }
  .collage-logic { grid-column: 1 / -1; grid-row: 2; width: min(100%, 11.5rem); justify-self: center; }
  .collage-marsupia { grid-column: 1 / -1; grid-row: 3; }
  .collage-pitstorm { grid-column: 1 / -1; grid-row: 4; }
  .collage-vita picture, .collage-trigger picture { height: 17.5rem; }
  .collage-vita picture { height: 17.85rem; }
  .collage-logic picture { height: 22rem; }
  .home-product-media,
  .home-product-triggerscan .home-product-media,
  .home-product-logiclevel .home-product-media { height: auto; min-height: 27rem; }
  .games-home .home-product-media { min-height: 0; }
  .listing-media { min-height: 0; }
  .apps-page .listing-media { min-height: 29rem; }
  .product-hero-art { min-height: 0; }
  .phone-art { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landscape-art { min-height: 0; }
  .product-gallery picture { min-height: 0; }
}

@media (max-width: 380px) {
  .collage-vita picture, .collage-trigger picture { height: 15.5rem; }
  .collage-vita picture { height: 15.85rem; }
  .collage-logic picture { height: 20rem; }
}
