@import url('./show-invitation.css');

.show-renderer {
  --show-paper: #f3efe7;
  --show-muted: #aaa49b;
  --show-line: rgba(255, 255, 255, .14);
  --show-surface: #090b0e;
  --show-surface-alt: #101318;
  --show-accent: #f28c28;
  --show-serif: "Songti SC", "Noto Serif SC", STSong, serif;
  --show-heading: var(--show-serif);
  --show-title-weight: 400;
  --show-title-tracking: .02em;
  --show-space: clamp(56px, 7cqw, 112px);
  --show-gap: clamp(28px, 5cqw, 88px);
  container: show-renderer / inline-size;
  width: 100%; min-width: 0; max-width: 100%;
  min-height: 100%;
  overflow: hidden;
  background: var(--show-surface);
  color: var(--show-paper);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  text-rendering: optimizeLegibility;
}

.show-section,
.show-renderer-empty {
  position: relative;
  min-height: var(--show-section-height, 100svh);
  display: grid;
  grid-template-columns: minmax(260px, .76fr) minmax(0, 1.24fr);
  align-items: center;
  gap: var(--show-gap);
  padding: var(--show-space) clamp(22px, 6cqw, 112px) clamp(56px, 6cqw, 88px);
  border-bottom: 1px solid var(--show-line);
  background: var(--show-surface);
  isolation: isolate;
}

.show-section:nth-child(even) { background: var(--show-surface-alt); }
.show-section-index { position: absolute; z-index: 3; top: 30px; left: clamp(22px,6cqw,112px); color: var(--show-muted); font-family: ui-monospace,monospace; font-size: 11px; letter-spacing: .12em; }
.show-section.is-text-only { grid-template-columns: minmax(0,1fr); }
.show-section.is-text-only .show-section-copy { grid-column: 1 / -1; width: min(900px,100%); margin-inline: auto; }
.show-section[data-module="text"] .show-section-body { max-width: 64ch; }
.show-section:nth-child(even) .show-section-copy { order: 2; }
.show-section:nth-child(even) .show-section-media { order: 1; }
.show-section-copy { position: relative; z-index: 2; min-width: 0; max-width: 100%; }
.show-section-eyebrow { margin: 0 0 22px; color: var(--show-accent); font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.show-section-title {
  max-width: min(760px, 100%); margin: 0; font-family: var(--show-heading);
  font-size: clamp(30px,4.4cqw,68px); font-weight: var(--show-title-weight);
  letter-spacing: var(--show-title-tracking); line-height: 1.18; overflow-wrap: anywhere; text-wrap: balance;
}
.show-section-body {
  max-width: 62ch; margin: 28px 0 0; color: var(--show-muted);
  font-size: clamp(16px,1.4cqw,19px); line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere;
}
.show-section-list { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--show-paper); }
.show-section-list li { border-top: 1px solid var(--show-line); padding-top: 12px; }
.show-section-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.show-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px;
  border: 1px solid currentColor; border-radius: 12px; padding: 12px 20px;
  color: var(--show-accent); text-decoration: none; font-size: 14px;
  transition: transform 160ms ease, background-color 160ms ease;
}
.show-action:hover { transform: translateY(-2px); background: color-mix(in srgb,var(--show-accent) 10%,transparent); }
.show-action:active { transform: scale(.98); }
.show-action:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.show-timeline-time, .show-timeline-label { display: block; }
.show-section-media { min-height: min(70svh, 780px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 12px; }
.show-section-media img { border-radius: 8px; width: 100%; height: 100%; max-height: 74svh; display: block; object-fit: cover; background: var(--show-surface-alt); }
.show-section-media > :only-child { grid-column: 1 / -1; }
.show-section-caption { max-width: calc(100% - 52px); overflow-wrap: anywhere; position: absolute; left: clamp(22px, 6cqw, 112px); bottom: 24px; margin: 0; color: #74706a; font-size: 13px; line-height: 1.6; letter-spacing: .04em; }

.show-section[data-module="hero"] { grid-template-columns: minmax(0, 1fr); align-content: end; background: var(--show-surface); }
.show-section[data-module="hero"] .show-section-copy { width: 100%; max-width: 880px; padding-bottom: clamp(16px, 4cqw, 56px); }
.show-section[data-module="hero"] .show-section-title { font-size: clamp(40px, 6cqw, 88px); }
.show-section.is-long-title .show-section-title { font-size: clamp(28px, 3.8cqw, 56px); }
.show-section[data-module="hero"].is-long-title .show-section-title { font-size: clamp(34px, 5cqw, 72px); }
.show-section[data-module="hero"] .show-section-media { position: absolute; inset: 0; z-index: -2; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); align-content: stretch; gap: 0; opacity: .78; }
.show-section[data-module="hero"] .show-section-media:has(> img:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.show-section[data-module="hero"] .show-section-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,9,.84), rgba(5,7,9,.16)), linear-gradient(0deg, rgba(5,7,9,.9), transparent 65%); }
.show-section[data-module="hero"] .show-section-media img { min-height: 0; max-height: none; }
.show-section[data-module="gallery"] { grid-template-columns: .55fr 1.45fr; }
.show-section[data-module="gallery"] .show-section-media { grid-template-columns: repeat(12, 1fr); }
.show-section[data-module="gallery"] .show-section-media img:nth-child(3n + 1) { grid-column: span 7; }
.show-section[data-module="gallery"] .show-section-media img:nth-child(3n + 2) { grid-column: span 5; }
.show-section[data-module="gallery"] .show-section-media img:nth-child(3n + 3) { grid-column: 3 / span 8; }
.show-section[data-align="center"] { grid-template-columns: minmax(0, 1fr); text-align: center; }
.show-section[data-align="center"] .show-section-copy { margin: auto; }
.show-section[data-align="center"] .show-section-body { margin-inline: auto; }

.show-renderer[data-template="proposal-cinema"] { --show-accent: #f6b05f; --show-surface: #090807; --show-surface-alt: #14100c; }
.show-renderer[data-template="report-narrative"] { --show-accent: #7ed6c4; --show-surface: #081010; --show-surface-alt: #0d1919; }
.show-renderer[data-template="portfolio-editorial"] { --show-accent: #e9974d; }

.show-renderer [data-show-section-id][role="button"] { cursor: pointer; outline: none; transition: box-shadow 160ms ease, filter 160ms ease; }
.show-renderer [data-show-section-id][role="button"]:hover { filter: brightness(1.055); }
.show-renderer [data-show-section-id][role="button"]:focus-visible,
.show-renderer [data-show-section-id].is-selected { box-shadow: inset 0 0 0 3px var(--show-accent); }

.show-spatial-section {
  padding: var(--show-space) clamp(22px, 6cqw, 112px);
  border-bottom: 1px solid var(--show-line);
  background: #07090c;
}
.show-spatial-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); gap: 24px 72px; align-items: end; margin-bottom: 42px; }
.show-spatial-heading .show-section-eyebrow { grid-column: 1 / -1; margin-bottom: -6px; }
.show-spatial-heading .show-section-title { font-size: clamp(32px, 4.6cqw, 64px); }
.show-spatial-heading .show-section-body { margin: 0; }
.show-spatial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.show-spatial-card { overflow: hidden; border: 1px solid var(--show-line); border-radius: 18px; background: #101318; }
.show-spatial-card iframe,
.show-spatial-card > img { width: 100%; height: clamp(260px, 42cqw, 620px); display: block; border: 0; object-fit: cover; background: #050608; }
.show-spatial-card > div { padding: 22px 24px 26px; }
.show-spatial-card h3 { margin: 6px 0 0; font-family: var(--show-heading); font-size: clamp(24px, 2.7cqw, 38px); font-weight: 500; }
.show-spatial-kind { margin: 0; color: var(--show-accent); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.show-spatial-summary { margin: 14px 0 0; color: var(--show-muted); line-height: 1.75; }
.show-spatial-state { display: block; margin-top: 16px; color: #8c8881; font-size: 12px; }
.show-spatial-card.is-unavailable { min-height: 280px; display: flex; align-items: end; background: linear-gradient(145deg, #11151a, #090b0e); }
.show-spatial-card.is-unavailable > div { width: 100%; }

@container show-renderer (max-width: 820px) {
  .show-section,
  .show-section[data-module="gallery"] { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 92px 22px 68px; }
  .show-section:nth-child(even) .show-section-copy,
  .show-section:nth-child(even) .show-section-media { order: initial; }
  .show-section-title { font-size: clamp(30px, 6cqw, 44px); }
  .show-section-body { font-size: 16px; line-height: 1.85; }
  .show-section-index { top: 24px; left: 22px; }
  .show-section-media { min-height: 32svh; }
  .show-section[data-module="hero"] { min-height: var(--show-section-height, 100svh); }
  .show-section[data-module="hero"] .show-section-copy { width: 100%; }
  .show-section[data-module="gallery"] .show-section-media { grid-template-columns: 1fr; }
  .show-section[data-module="gallery"] .show-section-media img { grid-column: auto; }
  .show-spatial-section { padding: 86px 20px 64px; }
  .show-spatial-heading,
  .show-spatial-grid { grid-template-columns: 1fr; }
  .show-spatial-card iframe,
  .show-spatial-card > img { height: min(68vh, 520px); }
}

@media (prefers-reduced-motion: reduce) {
  .show-renderer *, .show-renderer *::before, .show-renderer *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
