/* Pandore: the same white editorial direction, now fluid rather than 1440px boxed. */
:root {
  --header-h: clamp(72px, 5vw, 100px);
  --gutter: clamp(24px, 5vw, 160px);
  --max: none;
  --section-space: clamp(64px, 7vw, 160px);
  --body-size: clamp(14px, .85vw, 19px);
  scroll-behavior: smooth;
}
.container { width: 100%; max-width: none; padding-inline: var(--gutter); }
.site-header {
  height: var(--header-h); max-width: none; padding-inline: var(--gutter);
  position: sticky; top: 0; z-index: 30;
  background:#fff;
}
.brand-mark { width: clamp(32px, 2.4vw, 44px); height: auto; }
.brand > span { font-size: clamp(15px, 1.05vw, 21px); }
.desktop-nav { font-size: clamp(12px, .78vw, 17px); gap: clamp(24px, 2.5vw, 64px); }
.button.small { font-size: clamp(12px, .8vw, 17px); padding: clamp(13px, 1vw, 21px) clamp(18px, 1.4vw, 30px); }
.nav-right { gap: 16px; }
.eyebrow, .surface-tag { font-size: clamp(10px, .65vw, 13px); }

/* A short scroll takeover: headline clears; the world occupies the center.
   The canvas dimensions stay fixed while the camera is reframed. */
.hero.world-story {
  --story-travel:90svh;
  height:calc(100svh - var(--header-h) + var(--story-travel));
  overflow:visible; position:relative;
}
.story-pin {
  height:calc(100svh - var(--header-h));min-height:350px;
  position:sticky;top:var(--header-h);display:block;background:#fff;overflow:hidden;
}
.hero-intro {
  position:absolute;top:0;left:0;z-index:3;width:100%;
  padding-top:clamp(24px,3.4svh,52px);padding-bottom:0;
  pointer-events:none;transform-origin:left top;
}
.hero h1 {
  font-family:'Inter Display',Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size:clamp(48px,min(5.65vw,11.8svh),154px);
  font-weight:420;letter-spacing:-.055em;line-height:1.035;
  margin:clamp(14px,1.5svh,24px) 0 0;
}
/* One supporting sentence, in the existing intro so it shares the scroll fade.
   The scene already measures this block via ResizeObserver before framing. */
.hero-description {
  max-width: 60ch;
  margin: clamp(14px, 1.8svh, 24px) 0 0;
  font-size: clamp(14px, 1.08vw, 21px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -.012em;
  color: #65706b;
}
.world-stage {position:absolute;inset:0;isolation:isolate;width:100%;height:100%;max-width:none;margin:0;background:#fff;}
.world-stage canvas {
  display:block;position:absolute;inset:0;z-index:1;width:100%;height:100%;
  pointer-events:none;touch-action:pan-y;opacity:0;transition:opacity .24s ease;
}
.world-stage.rendered canvas {opacity:1;pointer-events:auto;cursor:grab;}
.world-stage.rendered canvas.is-dragging {cursor:grabbing;}
.world-fallback {position:absolute;inset:0;z-index:0;height:100%;width:100%;object-fit:contain;background:#fff;pointer-events:none;}
.world-stage.rendered .world-fallback {opacity:0;}
.world-loader {display:none!important;}
.story-media {position:absolute;inset:0;z-index:0;pointer-events:none;transform-origin:center;}
.world-stage:not(.rendered) .story-media {z-index:2;}
.story-media > img,.story-media > video {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff;opacity:0;pointer-events:none;}
.story-media > img:first-child,.story-media > video:first-child {opacity:1;}
.story-meta {
  position:absolute;bottom:0;left:0;z-index:4;width:100%;
  height:clamp(44px,5svh,64px);display:flex;justify-content:space-between;align-items:center;
  padding-block:8px clamp(12px,1.6svh,22px);pointer-events:none;
  font-size:clamp(12px,.8vw,17px);color:#67716d;line-height:1.4;
  background:linear-gradient(transparent,#ffffff 90%);
}
.story-meta button {pointer-events:auto;}
.story-current {display:flex;align-items:center;gap:14px;font-weight:450;color:var(--ink);}
.story-count {color:var(--blue);font-size:.8em;letter-spacing:.04em;font-variant-numeric:tabular-nums;}
.story-scroll {display:flex;align-items:center;gap:15px;font-size:.9em;color:#78807c;transition:opacity .3s ease;}
.story-scroll > span {color:var(--blue);font-size:17px;}
.world-story.has-scrolled .story-scroll {opacity:0;}
.sr-only {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
.story-skip {position:absolute;top:12px;left:var(--gutter);z-index:35;transform:translateY(-200vh);padding:12px 16px;background:#fff;border:1px solid var(--blue);font-size:13px;}
.story-skip:focus {transform:none;}
.hero.world-story:not(.story-ready) {height:calc(100svh - var(--header-h));}
.world-story:not(.story-ready) .story-pin {position:relative;top:0;}

/* Three equally weighted visual stories; no new explanatory panel. */
.creation-section { border-top: 1px solid var(--line); padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section-head { display: block; margin-bottom: clamp(30px, 3vw, 64px); }
.section-head h2, .team-copy h2, .faq-section h2 { font-size: clamp(38px, 3.9vw, 96px); line-height: 1.08; }
.creation-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px, 2vw, 44px); }
.creation-item { min-width: 0; }
.image-trigger { aspect-ratio: 1.36; }
.image-trigger img { object-fit: cover; }
.image-trigger:hover img { transform: none; }
.creation-copy { display: block; padding-top: clamp(18px, 1.7vw, 34px); }
.creation-copy h3 { font-size: clamp(19px, 1.35vw, 30px); font-weight: 450; }
.creation-copy p { max-width: 38ch; font-size: var(--body-size); margin-top: 10px; line-height: 1.65; }

/* Let the remaining sections and their typography breathe on large displays. */
.surfaces-section { padding-bottom: var(--section-space); }
.surface-grid > article { padding: clamp(36px, 3.3vw, 76px) clamp(40px, 5vw, 120px) clamp(36px, 3.6vw, 80px) 0; }
.surface-grid > article + article { padding-left: clamp(36px, 5vw, 120px); }
.surface-grid h3 { font-size: clamp(30px, 2.35vw, 56px); max-width: 18ch; }
.surface-grid p { max-width: 38ch; line-height: 1.7; font-size: var(--body-size); }
.surface-icon { right: clamp(24px, 4vw, 90px); top: clamp(36px, 3.3vw, 76px); }
.text-link { font-size: clamp(13px, .9vw, 19px); }
.teams-section { padding-bottom: var(--section-space); }
.teams-layout { grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 150px); }
.team-visual { aspect-ratio: 1.2; }
.team-copy > p { max-width: 38ch; margin: 0 0 20px; line-height: 1.75; font-size: var(--body-size); }
.team-copy .text-link { margin-bottom: 0; }
.faq-section { padding-top: clamp(56px, 5vw, 120px); padding-bottom: var(--section-space); gap: clamp(40px, 7vw, 150px); }
.faq-list summary { font-size: clamp(15px, 1.03vw, 22px); padding-block: clamp(22px, 2vw, 44px); }
.faq-list details p { font-size: var(--body-size); max-width: 65ch; }
.final-cta { padding-bottom: var(--section-space); }
.final-cta h2 { font-size: clamp(50px, 6.5vw, 150px); }
.final-cta-bottom { justify-content: flex-start; margin-top: 34px; }
.button.large { font-size: clamp(15px, 1vw, 22px); padding: 22px 28px; }
.footer-top .privacy-link { margin-left: auto; }
.footer-wordmark { font-size: 17.15vw; }
.check-label button { font-size: inherit; color: inherit; padding: 0; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width:1100px) {
  :root { --gutter: clamp(24px, 4.3vw, 48px); }
  .hero h1 { font-size: clamp(48px, 6.4vw, 72px); }
  .creation-grid { gap: 22px; }
  .surface-icon { right: 24px; }
}
@media (max-width:900px) {
  /* Two columns, with the reconstruction image given a deliberate full-width row. */
  .creation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 38px 24px; }
  .creation-item:last-child { grid-column: 1 / -1; }
  .creation-item:last-child .image-trigger { aspect-ratio: 2; }
  .creation-item:last-child .creation-copy { max-width: 60ch; }
  .surface-grid h3 { font-size: 29px; }
  .teams-layout { gap: 36px; }
}
@media (max-width:760px) {
  :root { --header-h:72px; --gutter:24px; --section-space:68px; }
  .brand > span { font-size: 15px; }
  .button.small { font-size: 12px; padding: 13px 16px; }
  .hero.world-story { --story-travel:80svh; }
  .story-pin { min-height: 400px; }
  .hero-intro { padding-top: 30px; }
  .hero h1 { font-size: clamp(39px, 9.8vw, 66px); margin-top: 15px; }
  .hero-intro .eyebrow { font-size: 9px; }
  .story-meta { flex-basis: 46px; padding-bottom: 16px; font-size: 11px; }
  .story-current { gap: 10px; }
  .story-scroll { font-size: 10px; gap: 9px; }
  .section-head h2, .team-copy h2, .faq-section h2 { font-size: clamp(34px, 7.7vw, 52px); }
  .section-head { margin-bottom: 28px; }
  .creation-grid { grid-template-columns: minmax(0,1fr); gap: 38px; }
  .creation-item:last-child { grid-column: auto; }
  .image-trigger, .creation-item:last-child .image-trigger { aspect-ratio: 1.35; }
  .creation-copy p { max-width: 42ch; }
  .surface-grid > article, .surface-grid > article + article { padding: 36px 0; border-left: 0; }
  .surface-icon { right: 4px; top: 35px; }
  .surface-grid h3 { font-size: 31px; }
  .surface-grid p { max-width: 36ch; }
  .teams-layout { grid-template-columns: 1fr; }
  .team-visual { aspect-ratio: 1.24; }
  .team-copy > p { max-width: 38ch; }
  .faq-section { display:block; padding-top:56px; }
  .faq-list summary { font-size: 15px; }
  .final-cta h2 { font-size:clamp(39px, 9vw, 66px); }
  .button.large { font-size: 14px; padding: 18px 22px; }
  .story-skip { top: 6px; }
  .mobile-nav { position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 29; background: #fffffff5; backdrop-filter: blur(12px); }
  /* Wider authored renders need art-directed cropping in the no-GPU fallback. */
  .world-stage.fallback-artwork .story-media > img, .world-stage > .world-fallback { width: 185%; max-width:none; left:-42.5%; object-fit:contain; }
}
@media (max-height:700px) and (min-width:761px) {
  .hero-intro { padding-top: 18px; }
  .hero h1 { font-size: clamp(44px, 8.9svh, 64px); margin-top: 10px; }
  .story-meta { flex-basis: 34px; padding-bottom: 8px; }
  .story-pin { min-height: 350px; }
}
@media (max-height:500px) and (orientation:landscape) {
  :root { --header-h:60px; }
  .hero-intro { padding-top:10px; }
  .hero-intro .eyebrow { display:none; }
  .hero h1 { font-size:clamp(30px, 7svh, 42px); margin-top:0; }
  .story-pin { min-height:290px; }
  .story-meta { flex-basis:30px; padding-bottom:6px; }
}
@media (prefers-reduced-motion:reduce) {
  :root { scroll-behavior:auto; }
  .world-stage canvas, .world-fallback, .story-scroll { transition:none; }
  .reveal:not(.site-visible) { opacity:1; transform:none; }
}

/* Status is shown only if live rendering actually fails. */
.preview-notice {font-size:12px;line-height:1.4;text-decoration:underline;text-underline-offset:3px;color:#687674;margin-left:auto;padding:4px 0;}
#preview-diagnostics p {font-size:14px;line-height:1.65;color:#717977;}
#preview-report {display:block;width:100%;height:240px;margin:20px 0;padding:14px;font:12px/1.55 ui-monospace,monospace;border:1px solid #dfe5e2;background:#f9fbfa;color:#28312f;resize:vertical;}
.diagnostic-actions {display:flex;gap:24px;align-items:center;flex-wrap:wrap;}


/* Editorial entrances; no blur, parallax, layout animation or scroll hijacking. */
.enter-item {transition:opacity 560ms cubic-bezier(.2,.7,.2,1),transform 650ms cubic-bezier(.2,.7,.2,1);}
.enter-item.enter-pending {opacity:0;transform:translate3d(0,24px,0);}
.enter-item.enter-visible {opacity:1;transform:none;}
@media (prefers-reduced-motion:reduce) {
 .enter-item,.enter-item.enter-pending {opacity:1!important;transform:none!important;transition:none!important;}
 .hero-intro,.story-media,.world-fallback {transition:none!important;}
}
@media print {
 .enter-item,.enter-item.enter-pending {opacity:1!important;transform:none!important;}
 .hero.world-story {height:auto!important;}
 .story-pin {position:relative!important;top:0!important;}
}
