/* Product identity and studio contact details. */
.hero .wrap{grid-template-columns:1fr 1.15fr;gap:52px}
.hero p.lead{font-size:22px;line-height:1.55;margin-bottom:14px}.hero-detail{color:var(--hero-muted);line-height:1.7;margin:0 0 25px;max-width:52ch}
.product-shot{margin:0;min-width:0;border:1px solid #ffffff30;border-radius:12px;overflow:hidden;background:#131b2c;box-shadow:0 24px 70px #0005}.product-shot img{width:100%;height:auto;display:block}.product-shot figcaption{padding:15px 18px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--hero-muted)}.product-shot a{color:var(--hero-accent)}
.hero .stats{gap:20px;flex-wrap:wrap}.hero .stats b{font-size:23px}
.support-section{background:var(--accent-soft);border-top:1px solid var(--border)}.support-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}.section-label{text-transform:uppercase;font-size:12px;letter-spacing:.12em;color:var(--accent);font-weight:700}.support-grid h2{margin-top:12px}.support-grid p,.support-grid li{line-height:1.75}.support-grid .panel{background:var(--surface)}.support-email{display:inline-block;margin-top:14px;font-size:clamp(18px,2vw,24px);font-weight:650;color:var(--accent)}.support-grid ul{padding-left:22px}.footer-studio{display:inline-flex;align-items:center;gap:12px;text-decoration:none;font-weight:650;color:var(--text)}
.availability{color:var(--muted)}.store-action{margin-bottom:25px}.store-action button{font-size:13px;padding:8px 14px}
@media(max-width:1000px){.hero .wrap{grid-template-columns:1fr}.product-shot{max-width:850px}.support-grid{gap:30px}}
@media(max-width:720px){header.top nav{order:3;width:100%;justify-content:space-between;gap:12px}header.top #theme{margin-left:auto}.hero{padding:40px 0 48px}.hero .wrap{gap:30px}.hero p.lead{font-size:20px}.support-grid{grid-template-columns:1fr}.product-shot figcaption{font-size:11px}.hero .cta{gap:10px}}

/* Reuse the handwritten subtitle from Unity's DemoLogoLine.png. */
.hero h1 .toolbox-logo-line{display:block;width:4.9em;max-width:100%;height:auto;margin-top:10px}

/* Match full rows to the gallery's 340px tracks and 20px gaps. */
#screenshots .wrap{container-type:inline-size;container-name:screenshot-gallery}
#screenshots .shots>figure:nth-child(n+9){display:none}
@container screenshot-gallery (min-width:1060px){
  #screenshots .shots>figure:nth-child(9){display:block}
}

/* Section rhythm uses the studio's teal with the product's existing theme colors. */
:root{--section-teal:#287a80}
section.block{padding:44px 0}
#screenshots{padding:52px 0;background:var(--accent-soft)}
#learn{background:var(--accent-soft)}
section.block h2:after{content:"";display:block;width:64px;height:3px;margin-top:14px;background:var(--section-teal);border-radius:3px}
section.block p.sub{margin-bottom:24px}
.support-section{background:var(--bg)}
.shots figure{transition:box-shadow .2s,border-color .2s}
.shots figure:hover{border-color:var(--section-teal);box-shadow:0 8px 24px #0002}
.shots .view-count{display:block;margin-top:8px;color:var(--accent);font-size:12px;font-weight:650}
dialog.zoom{width:min(1180px,94vw);max-height:94dvh;padding:20px;border:1px solid var(--border);background:var(--surface);color:var(--text);overflow:auto}
dialog.zoom .preview-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}
dialog.zoom .preview-heading h2{font-size:24px;margin:0}
dialog.zoom .preview-heading h2:after{display:none}
dialog.zoom button{margin:0;background:var(--bg);color:var(--text);border:1px solid var(--border);cursor:pointer;font-size:14px}
dialog.zoom button:disabled{opacity:.4;cursor:default}
dialog.zoom button[hidden],dialog.zoom [hidden]{display:none}
dialog.zoom .preview-image{width:100%;height:auto;max-width:100%;max-height:62dvh;object-fit:contain;background:#0a0f1a}
.preview-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.preview-status{margin:0;flex:1;text-align:center;font-size:14px}
.preview-thumbnails{display:flex;justify-content:center;gap:12px;margin-top:14px}
dialog.zoom .preview-thumbnails button{padding:5px;width:140px}
dialog.zoom .preview-thumbnails img{width:100%;height:65px;object-fit:contain;border-radius:3px}
.preview-thumbnails span{display:block;margin-top:5px;font-size:12px}
dialog.zoom .preview-thumbnails button[aria-pressed="true"]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
@media(max-width:720px){section.block{padding:34px 0}#screenshots{padding:38px 0}dialog.zoom{padding:12px}.preview-navigation{flex-wrap:wrap}.preview-status{order:-1;flex-basis:100%}dialog.zoom .preview-heading h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){.shots figure{transition:none}}

/* Keep the studio's original identity together in its own footer. */
.studio-footer{--studio-gold:#d8b56c;background:linear-gradient(115deg,#10172d 35%,#123c42);border-top:2px solid var(--studio-gold);padding:36px 0;color:#bcc6c9}
.studio-footer .studio-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:32px}
.studio-kicker{color:var(--studio-gold);font-size:11px;letter-spacing:.12em;text-transform:uppercase;margin:0 0 14px}
.studio-footer .footer-studio{gap:5px;width:fit-content;color:var(--studio-gold)}
.studio-signature{position:relative;width:267px;max-width:100%;flex-shrink:0}
.studio-signature .footer-studio{display:block;width:100%;max-width:100%}
.studio-signature .footer-studio img{display:block;width:100%;height:auto}
@media(max-width:480px){.studio-signature{width:233px}}
.studio-footer-links{display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.studio-footer-links p{margin:0;color:#e3e7ee;font-weight:600}
.studio-footer-links nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px 20px}
.studio-footer a{color:#c7d3d5;text-underline-offset:4px}
.studio-footer a:hover{color:#fff9ed}
.studio-footer .studio-visit{color:var(--studio-gold)}
.studio-footer a:focus-visible{outline-color:var(--studio-gold)}
@media(max-width:720px){.studio-footer .studio-footer-inner{align-items:flex-start;flex-direction:column}.studio-footer-links{align-items:flex-start;border-top:1px solid #d8b56c40;padding-top:24px;width:100%}.studio-footer-links nav{justify-content:flex-start}}
/* The light accent is darker than the shared one, so links on the accent-soft sections reach a 4.5:1 contrast. The dark theme rules win over this rule. */
:root{--accent:#2a64c4;color-scheme:light;background:var(--bg)}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){color-scheme:dark}}
:root[data-theme="dark"]{color-scheme:dark}
@view-transition{navigation:auto}
@media(prefers-reduced-motion:reduce){@view-transition{navigation:none}}
.not-found-page{background:var(--hero-bg)}

.build-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0 32px}.build-paths a{display:flex;flex-direction:column;gap:8px;padding:22px;border:1px solid var(--border);border-top:3px solid var(--section-teal);border-radius:10px;background:var(--surface);text-decoration:none;color:var(--text)}.build-paths strong{font-size:19px}.build-paths span{font-size:14px;color:var(--muted)}.build-paths span:first-child{font-size:11px;letter-spacing:.1em;color:var(--accent);font-weight:700}.build-paths a:hover{border-color:var(--accent)}
.control-finder{max-width:640px;margin:0 0 28px}.control-finder label{display:block;font-weight:650;margin-bottom:8px}.control-search-row{display:flex;gap:10px}.control-search-row input{flex:1;min-width:0;padding:12px 14px;font:inherit;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text)}.control-search-row button{padding:10px 16px;font:inherit;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);cursor:pointer}.control-finder p{font-size:14px;color:var(--muted);min-height:24px;margin:10px 0 0}.control-finder[hidden],#control-catalog [hidden]{display:none}.control-search-row :focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:720px){.build-paths{grid-template-columns:1fr}.build-paths a{padding:18px}}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#language{height:30px;padding:0 6px;border:1px solid #ffffff2a;border-radius:6px;background:var(--hero-bg);color:var(--hero-text);font:inherit;font-size:14px;cursor:pointer}
@media(max-width:720px){header.top .language{margin-left:auto}header.top #theme{margin-left:0}#language{max-width:9em}}
