/* Shared layout for both brands. Colours and fonts come from the theme file (themes/*.css). */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; text-wrap: balance; color: var(--heading); }
p { margin: 0; }
img { max-width: 100%; }
a { color: inherit; }
.icon { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- slide content (shared by both views) ---------- */
.slide { position: relative; background: var(--bg); color: var(--fg); overflow: hidden; }
.slide.tone-light { background: var(--paper); color: var(--paper-fg); --heading: var(--paper-heading); --soft: var(--paper-soft); --card: var(--paper-card); --card-border: var(--paper-card-border); --eyebrow: var(--paper-eyebrow); }
.slide.tone-brand { background: var(--brand-bg); }
.eyebrow { font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--eyebrow); font-size: var(--fs-eyebrow); }
.lede { color: var(--soft); font-size: var(--fs-lede); line-height: 1.45; }
.head { display: flex; flex-direction: column; gap: var(--gap-s); }
h1 { font-size: var(--fs-h1); line-height: 1.04; font-weight: 700; }
h2 { font-size: var(--fs-h2); line-height: 1.1; font-weight: 700; }
h3 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 600; }
.points { display: flex; flex-direction: column; gap: var(--gap-s); }
.point { display: flex; gap: 0.7em; align-items: flex-start; font-size: var(--fs-body); line-height: 1.4; }
.point .icon { color: var(--accent); margin-top: 0.15em; font-size: 1.2em; }
.cards { display: grid; gap: var(--gap-s); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: var(--pad-card); display: flex; flex-direction: column; gap: 0.5em; }
.card .icon { color: var(--accent); font-size: calc(var(--fs-h3) * 1.1); }
.card h3 { font-size: var(--fs-card-title); }
.card p { color: var(--soft); font-size: var(--fs-small); line-height: 1.45; }
.badge { align-self: flex-start; font-size: var(--fs-small); font-weight: 600; padding: 0.15em 0.6em; border-radius: 6px; background: var(--badge-bg); color: var(--badge-fg); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: var(--gap-l); align-items: center; }
.split .copy { display: flex; flex-direction: column; gap: var(--gap-m); }
.shot { width: 100%; height: auto; border-radius: var(--radius); background: #fff; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28); display: block; }
.devices { display: flex; gap: var(--gap-m); justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.device { display: flex; flex-direction: column; align-items: center; gap: 0.6em; width: var(--device-w); }
.device img { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35)); }
.device p { font-size: var(--fs-small); color: var(--soft); text-align: center; line-height: 1.35; }
.dev-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: var(--gap-l); align-items: center; }
.dev-layout .copy { display: flex; flex-direction: column; gap: var(--gap-m); }
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.6fr); gap: var(--gap-l); align-items: center; }
.hero .copy { display: flex; flex-direction: column; gap: var(--gap-m); }
.hero .device { width: 100%; max-width: var(--hero-device-w); justify-self: end; }
.logo-primary { height: var(--logo-h); width: auto; display: block; align-self: flex-start; object-fit: contain; }
.about-brand img { align-self: flex-start; }
.close-logos img { object-fit: contain; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h3); color: var(--heading); }
.about-brand { display: flex; align-items: center; gap: 0.6em; }
.about-brand img { height: 1.6em; width: auto; }
.close-logos { display: flex; gap: var(--gap-l); align-items: center; flex-wrap: wrap; }
.close-logos img { height: var(--logo-h); width: auto; }
.contacts { display: flex; gap: var(--gap-l); flex-wrap: wrap; font-size: var(--fs-lede); color: var(--soft); }
.footnote { color: var(--soft); font-size: var(--fs-small); }
.contact-card { align-self: flex-start; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: var(--pad-card) calc(var(--pad-card) * 1.3); display: flex; flex-direction: column; gap: 0.35em; }
.contact-name { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h3); color: var(--heading); }
.contact-line { font-size: var(--fs-lede); color: var(--fg); }
.contact-line a { color: inherit; text-decoration: none; }
.contact-line a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.view-page .contact-card { margin-inline: 0; }

/* ---------- slides view: fixed 1920x1080 stage scaled to the window ---------- */
.view-slides {
  --fs-h1: 104px; --fs-h2: 72px; --fs-h3: 44px; --fs-card-title: 34px; --fs-lede: 32px; --fs-body: 30px; --fs-small: 24px; --fs-eyebrow: 24px;
  --gap-s: 24px; --gap-m: 36px; --gap-l: 72px; --pad-card: 32px; --radius: 16px; --device-w: 320px; --hero-device-w: 400px; --logo-h: 150px;
  overflow: hidden; height: 100vh; background: #0b0c0e;
}
.view-slides .stage { position: fixed; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: center; }
.view-slides .slide { position: absolute; inset: 0; padding: 112px 128px; display: none; flex-direction: column; justify-content: center; gap: var(--gap-m); }
.view-slides .slide.active { display: flex; }
.view-slides .slide.active > * { animation: rise 500ms ease-out both; }
.view-slides .slide.active > *:nth-child(2) { animation-delay: 100ms; }
.view-slides .slide.active > *:nth-child(3) { animation-delay: 200ms; }
.view-slides .shot { width: auto; max-width: 100%; max-height: 760px; object-fit: contain; justify-self: center; }
.view-slides .dev-layout .shot { max-height: 420px; }
.view-slides .slide > .devices { --device-w: 270px; gap: 72px; }
.view-page .shot { max-height: 80vh; width: auto; max-width: 100%; object-fit: contain; justify-self: center; }
.view-slides .brandmark { position: absolute; right: 64px; bottom: 44px; height: 44px; width: auto; opacity: 0.85; }
.controls { position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); font: 14px/1 system-ui, sans-serif; color: #c9cfd8; opacity: 0.25; transition: opacity 200ms; z-index: 5; }
.controls:hover, .controls:focus-within { opacity: 1; }
.controls button, .controls a { background: rgba(255, 255, 255, 0.1); color: #fff; border: 0; border-radius: 8px; padding: 9px 14px; font: inherit; cursor: pointer; text-decoration: none; }
.controls button:focus-visible, .controls a:focus-visible { outline: 2px solid #fff; }
.progress { position: fixed; left: 0; top: 0; height: 4px; background: var(--accent); transition: width 250ms; z-index: 5; }

/* ---------- page view: responsive scroll page ---------- */
.view-page {
  --fs-h1: clamp(36px, 5.6vw, 80px); --fs-h2: clamp(30px, 3.8vw, 56px); --fs-h3: clamp(22px, 2.2vw, 32px); --fs-card-title: clamp(20px, 1.7vw, 26px);
  --fs-lede: clamp(18px, 1.6vw, 24px); --fs-body: clamp(17px, 1.4vw, 21px); --fs-small: clamp(15px, 1.1vw, 17px); --fs-eyebrow: clamp(13px, 1vw, 15px);
  --gap-s: clamp(14px, 1.4vw, 20px); --gap-m: clamp(18px, 2vw, 28px); --gap-l: clamp(24px, 4vw, 56px); --pad-card: clamp(18px, 2vw, 26px); --radius: 14px;
  --device-w: clamp(150px, 20vw, 260px); --hero-device-w: 320px; --logo-h: clamp(48px, 7vw, 96px);
}
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); background: var(--topbar-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--card-border); }
body.view-page::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--topbar-bg); }
.topbar img { height: 36px; width: auto; display: block; }
.topbar .present { background: var(--accent); color: var(--accent-fg); border-radius: 8px; padding: 10px 16px; font-weight: 600; text-decoration: none; font-size: 15px; white-space: nowrap; }
.topbar .present:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.view-page .slide { padding-block: clamp(56px, 8vw, 112px); padding-left: max(16px, env(safe-area-inset-left, 0px), 6vw); padding-right: max(16px, env(safe-area-inset-right, 0px), 6vw); display: flex; flex-direction: column; gap: var(--gap-m); }
.view-page .slide > * { max-width: 1280px; width: 100%; margin-inline: auto; }
.view-page .brandmark { display: none; }
@media (max-width: 860px) {
  .split, .dev-layout, .hero { grid-template-columns: 1fr; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .hero .device { justify-self: center; max-width: 240px; }
}
@media (min-width: 861px) and (max-width: 1100px) { .view-page .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view-slides .slide.active > * { animation: none; } .progress, .controls { transition: none; } }
