.page-width { max-width: 1240px; margin-inline: auto; padding-inline: 32px; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
a { color: inherit; text-underline-offset: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
.skip-link { position: absolute; top: 12px; left: 24px; z-index: 20; padding: 12px 20px; background: var(--accent); color: var(--on-accent); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { padding-block: 28px; justify-content: space-between; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-family: var(--label); font-size: 13px; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }
.site-header nav .badge:hover { color: var(--on-accent); background: #deb084; }
.wordmark { font-size: 30px; line-height: 1; font-weight: 750; letter-spacing: -.04em; }
.brand-pixels { width: 26px; height: 26px; border: 3px solid var(--accent); position: relative; flex: none; }
.brand-pixels::after { content: ''; position: absolute; top: 4px; left: 6px; width: 10px; height: 12px; background: var(--text); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.badge { border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--shadow); background: var(--accent); color: var(--on-accent); padding: 7px 14px; font: 600 13px var(--label); text-transform: uppercase; letter-spacing: .04em; }
.hero-region { padding-block: 72px 80px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.hero-copy, .watch-column { min-width: 0; }
h1, h2 { font-family: var(--display); text-wrap: balance; }
h1 { font-weight: 850; font-size: clamp(40px, 4.1vw, 58px); line-height: 1.06; letter-spacing: -.04em; text-transform: uppercase; margin: 0 0 28px; }
h1 span { color: var(--accent); }
.hero-description { font-size: 17px; line-height: 1.7; max-width: 43ch; color: var(--secondary); margin: 0 0 32px; }
.hero-copy .button { text-decoration: none; padding: 12px 24px; }
.preview-window { margin: 0; }
.preview-media { position: relative; border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--shadow); aspect-ratio: 16 / 9; background: var(--shadow); }
.preview-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.preview-toggle { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; border: 0; background: transparent; }
.preview-toggle .icon { width: 64px; height: 52px; padding: 14px 20px; border: 2px solid var(--line); background: var(--surface); fill: var(--text); }
.preview-toggle:hover .icon { background: var(--raised); }
.preview-window figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-top: 20px; font-size: 13px; color: var(--secondary); line-height: 1.6; }
.preview-window.is-playing .preview-toggle { opacity: 0; }
.preview-window.is-playing .preview-toggle:hover, .preview-window.is-playing .preview-toggle:focus-visible { opacity: 1; }
.fidelity-section { padding-block: 72px 80px; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.section-heading { margin-bottom: 32px; }
h2 { font-weight: 700; font-size: clamp(28px, 3vw, 38px); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 16px; }
.section-heading p, .section-copy { color: var(--secondary); font-size: 17px; line-height: 1.7; margin: 0; max-width: 60ch; }
.product-region { background: var(--surface); }
.product-section { padding-block: 64px; }
.product-intro { max-width: 65ch; }
.product-intro p { font-size: 17px; line-height: 1.7; color: var(--secondary); margin: 0 0 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; margin-top: 48px; }
.feature-grid h3 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0 0 14px; }
.feature-grid p { font-size: 16px; line-height: 1.7; color: var(--secondary); margin: 0; }
.format-facts { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 40px; font: 500 14px/1.5 var(--label); color: var(--accent); }
.comparison-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.comparison-grid figure { margin: 0; min-width: 0; }
.comparison-media { aspect-ratio: 16 / 9; background: var(--shadow); }
.comparison-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.comparison-grid figcaption { margin-top: 16px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.comparison-play { position: absolute; top: calc(50% - 20px); left: 50%; transform: translate(-50%,-50%); }
.comparison-preview.is-playing .comparison-play { opacity: 0; }
.comparison-preview.is-playing:hover .comparison-play, .comparison-play:focus-visible { opacity: 1; }
.comparison-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 24px; font-size: 14px; }
.comparison-actions [data-preview-status] { color: var(--secondary); }
.comparison-actions [data-preview-status]:empty { display: none; }
.comparison-actions > a { margin-left: auto; }
.build-region { background: var(--surface); }
.build-section { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 64px; }
.build-section .section-copy { max-width: 43ch; }
.build-links { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.build-links .button { text-decoration: none; }
.editorial-link { font-size: 14px; text-decoration: none; }
.editorial-link:hover { color: var(--accent); }
.command-window { min-width: 0; }
.command-window pre { font: 400 14px/2 var(--mono); overflow-x: auto; padding: 24px; margin: 0; background: var(--background); border: 2px solid var(--line); }
.resources-section { padding-block: 56px; }
.resource-links { display: flex; flex-wrap: wrap; gap: 24px 40px; font-size: 16px; line-height: 1.5; }
.resources-section p { font-size: 14px; color: var(--secondary); line-height: 1.7; margin: 28px 0 0; }
.site-footer { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); padding-block: 36px 48px; }
.footer-top { display: flex; justify-content: space-between; align-items: start; gap: 32px; }
.footer-top p { color: var(--secondary); font-size: 13px; margin: 10px 0 0; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 13px; padding-top: 8px; }
.footer-top nav a { text-decoration: none; }
.footer-top nav a:hover { color: var(--accent); }
.footer-notes { display: flex; align-items: start; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; color: var(--secondary); font-size: 13px; }
.footer-notes details { max-width: 60ch; }
.footer-notes summary, .footer-notes > a { min-height: 36px; padding-block: 8px; }
.footer-notes p { line-height: 1.8; margin: 8px 0 0; }
.footer-notes .shortcuts { margin: 0; }
@media (max-width: 1000px) { .hero-layout, .build-section { gap: 40px; } .feature-grid { gap: 24px; } }
@media (max-width: 800px) {
  .hero-region { padding-block: 40px 56px; }
  .hero-layout, .build-section { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 560px; }
  h1 { font-size: 48px; }
  .hero-description { max-width: 48ch; }
  .watch-column { width: 100%; }
  .build-section { padding-block: 48px; }
  .feature-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .page-width { padding-inline: 24px; }
  .site-header { padding-block: 24px; }
  .wordmark { font-size: 27px; gap: 8px; }
  .brand-pixels { width: 22px; height: 22px; }
  .brand-pixels::after { top: 3px; left: 4px; width: 8px; height: 10px; }
  .site-header nav { gap: 16px; }
  .badge { border-width: 2px; padding: 7px 10px; }
  h1 { font-size: clamp(34px, 9.6vw, 46px); }
  .hero-description, .section-copy, .section-heading p { font-size: 16px; }
  .preview-media { border-width: 2px; }
  .fidelity-section, .product-section { padding-block: 48px; }
  .comparison-grid { grid-template-columns: 1fr; gap: 28px; }
  .comparison-play { top: calc(25% - 20px); }
  .command-window pre { font-size: 13px; padding: 18px 14px; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-top nav { gap: 24px; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
