/* WordPress integration; the visual composition remains in cinematic.css. */
@view-transition { navigation: auto; }
:root { --wp-toolbar-offset: 0px; }
body.admin-bar { --wp-toolbar-offset: 32px; }
html:has(body[data-page="home"].has-scenes) { margin-top: 0 !important; }
body[data-page="home"].has-scenes #site-header { top: var(--wp-toolbar-offset); }
body[data-page="home"].has-scenes .scene-deck { top: var(--wp-toolbar-offset); height: calc(100dvh - var(--wp-toolbar-offset)); }
body[data-page="inner"].admin-bar #site-header { top: var(--wp-toolbar-offset); }
body[data-page="home"] .zone-switch a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 24px; font-size: 12px; padding-inline: 14px; color: inherit; white-space: nowrap; }
body[data-page="home"] .zone-switch a[aria-current="true"], body[data-page="home"] .zone-switch a[aria-current="page"] { color: var(--scene-ink); border: 1px solid var(--scene-line); }
body[data-page="inner"] .zone-switch a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 24px; font-size: 13px; padding-inline: 14px; }
body[data-page="inner"] .zone-switch a[aria-current="true"], body[data-page="inner"] .zone-switch a[aria-current="page"] { color: white; background: var(--accent); }
.language-menu a { min-height: 44px; display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 12px; white-space: nowrap; }
.language-menu a:hover, .language-menu a[aria-current="true"], .language-menu a[aria-current="page"] { background: var(--accent-soft); }
.language-control > summary { cursor: pointer; list-style: none; min-height: 44px; padding: 0; font-weight: 400; }
.language-control > summary::after { content: none; }
.language-control > summary::-webkit-details-marker { display: none; }
.scene-chapters a { position: relative; min-height: 44px; padding: 0 8px 10px; display: flex; gap: 10px; align-items: center; font-size: 12px; color: inherit; opacity: .6; border-radius: 0; white-space: nowrap; }
.scene-chapters a[aria-current="step"] { opacity: 1; }
.collection-selector { overflow-x: auto; scrollbar-width: thin; }
.collection-selector a { display: flex; flex: 0 0 auto; gap: 9px; align-items: center; min-height: 44px; padding: 0 0 14px; border-bottom: 1px solid transparent; color: var(--muted); font: 400 12px/1.5 Sora, sans-serif; }
.collection-selector a > span { font-size: 10px; }
.collection-selector a[aria-pressed="true"], .collection-selector a[aria-current="true"] { color: var(--ink); border-color: var(--ink); }
.collection-product { display: block; cursor: zoom-in; }
.cover-type h1 { letter-spacing: 0; }
.collection-spec .woocommerce-Price-amount { white-space: nowrap; }
.homepage-review { max-width: 540px; margin: 0 0 24px; padding: 0; }
.homepage-review > p { font-size: 16px; line-height: 1.8; margin-bottom: 12px; }
.homepage-review cite { font-style: normal; font-size: 12px; }
.homepage-review cite span { margin-left: 12px; color: var(--muted); }
.panel-links a { gap: 20px; }
.zoom-dialog > .icon-btn { position: absolute; right: 12px; top: 12px; background: #fff; z-index: 1; }
.zoom-dialog > img { display: block; width: 100%; height: min(760px, calc(100dvh - 48px)); object-fit: contain; padding: 48px 24px 24px; background: #f1f5f3; }
/* Small interaction details share the existing chapter palette. */
.scene-heading:focus-visible, .cover-type h1:focus-visible { outline: 2px solid currentColor; outline-offset: 8px; }
.skip-link:focus { top: calc(12px + var(--wp-toolbar-offset)); z-index: 100000; }
.scene-chapters a:focus-visible { opacity: 1; }
.scene-position, .cart-count, .woocommerce-Price-amount, .product-bottom, .collection-spec { font-variant-numeric: tabular-nums; }
.language-control > summary { border-radius: 6px; touch-action: manipulation; }
.language-control > summary svg:last-child { transition: transform var(--fast) var(--ease); }
.language-control[open] > summary svg:last-child { transform: rotate(180deg); }
.zone-switch a { transition: background var(--fast), color var(--fast); }
.panel-dialog, .zoom-dialog, .panel-body { overscroll-behavior: contain; }
.panel-body { min-height: 0; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.panel-head { padding-top: max(22px, env(safe-area-inset-top)); }
.panel-head, .panel-body { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
body[data-page="home"] .header-main { padding-left: max(var(--scene-pad), env(safe-area-inset-left)); padding-right: max(var(--scene-pad), env(safe-area-inset-right)); }
@media (hover: hover) {
  .language-control > summary:hover, body[data-page="inner"] .zone-switch a:not([aria-current="true"]):hover { background: var(--accent-soft); }
  body[data-page="home"] .zone-switch a:hover, body[data-page="home"] .language-control > summary:hover { background: #88888818; }
  .scene-chapters a:hover, .scene-chapters a:focus-visible { opacity: 1; }
  .scene-cta:focus-visible .cta-circle { transform: rotate(45deg); }
}
/* Navigation and every chapter remain readable if JavaScript is unavailable. */
body[data-page="home"]:not(.has-scenes) { overflow: auto; }
body[data-page="home"]:not(.has-scenes) #site-header { position: absolute; }
body[data-page="home"]:not(.has-scenes) .scene-deck { position: relative; inset: auto; height: auto; overflow: visible; scroll-snap-type: none; }
body[data-page="home"]:not(.has-scenes) .brand-scene { height: max(800px, 100svh); min-height: 800px; }
body[data-page="home"]:not(.has-scenes) .scene-navigation { position: sticky; background: #fff; color: #18221f; margin: 0; inset: auto; padding: 12px var(--scene-pad); }
body[data-page="home"]:not(.has-scenes) .scene-arrows { display: none; }
body[data-page="home"]:not(.has-scenes) .scene-content, body[data-page="home"]:not(.has-scenes) .scene-background { transform: none; opacity: 1; }
body:not(.has-site-js) .language-control:focus-within .language-menu, body:not(.has-site-js) .language-control:hover .language-menu { display: block !important; }
body[data-page="home"] .brand-scene { scroll-margin-top: 0; }
.scene-navigation { bottom: max(24px, env(safe-area-inset-bottom)); left: max(var(--scene-pad), env(safe-area-inset-left)); right: max(var(--scene-pad), env(safe-area-inset-right)); }
@media (max-width: 1180px) { body[data-page="home"] .zone-switch a { padding-inline: 10px; } }
@media (max-width: 980px) { .collection-selector a { font-size: 11px; gap: 5px; } }
@media (max-width: 782px) { body.admin-bar { --wp-toolbar-offset: 46px; } }
@media (max-width: 700px) {
  body[data-page="home"] .zone-switch a { flex: 0 1 auto; padding-inline: 16px; }
  .scene-chapters a { gap: 0; padding-inline: 3px; font-size: 11px; }
  .scene-arrows .scene-prev { display: none; }
  .has-products .collection-selector a { min-height: 44px; }
  .has-products .collection-heading .scene-heading { font-size: 28px; }
  .scene-navigation { bottom: max(18px, env(safe-area-inset-bottom)); }
  .homepage-review > p { font-size: 13px; }
}
@media (max-width: 375px) { .has-products .collection-heading .scene-heading { font-size: 26px; } }
@media (max-width: 600px) { body.admin-bar #wpadminbar { position: fixed; } }
/* The toolbar can consume most of a short mobile viewport: use document flow. */
@media (max-height: 620px) {
  body[data-page="home"].has-scenes { overflow: auto; }
  body[data-page="home"].has-scenes #site-header { position: fixed; }
  body[data-page="home"].has-scenes #site-header[data-tone="light"] .header { background: #ffffffed; }
  body[data-page="home"].has-scenes #site-header[data-tone="dark"] .header { background: #352034ed; }
  body[data-page="home"].has-scenes .scene-deck { position: relative; inset: auto; height: auto; overflow: visible; scroll-snap-type: none; }
  body[data-page="home"].has-scenes .brand-scene { height: 800px; min-height: 800px; }
  body[data-page="home"].has-scenes .scene-navigation { position: fixed; bottom: 0; padding: 6px 20px max(6px, env(safe-area-inset-bottom)); left: 0; right: 0; border: 0; background: #fff; color: #18221f; }
  body[data-page="home"].has-scenes .scene-content, body[data-page="home"].has-scenes .scene-background { transform: none; opacity: 1; }
  .scene-support { bottom: 85px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
}
