:root {
  color-scheme: light;
  --paper: #f4efe5;
  --paper-deep: #e9e0d1;
  --ink: #17213a;
  --muted: #687083;
  --blue: #075dff;
  --cyan: #00aeca;
  --coral: #f43f52;
  --pink: #ed63a8;
  --acid: #d9ed35;
  --line: rgba(23, 33, 58, 0.16);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button, input { font: inherit; }
textarea { font: inherit; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(400px, 0.72fr);
}

.art-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.art-panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  transform: scale(1.025);
}

.art-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 11, 32, 0.1), rgba(7, 14, 39, 0.02) 38%, rgba(6, 13, 36, 0.72)),
    linear-gradient(90deg, rgba(4, 11, 32, 0.18), transparent 55%);
}

.art-title {
  position: absolute;
  z-index: 2;
  left: clamp(30px, 6vw, 88px);
  right: clamp(30px, 8vw, 120px);
  bottom: clamp(55px, 9vh, 110px);
  color: white;
  text-shadow: 0 3px 28px rgba(2, 8, 25, 0.28);
}

.eyebrow, .card-label {
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.art-title .eyebrow { color: white; }

.art-title h1 {
  max-width: 750px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8.2vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -0.062em;
  line-height: 0.78;
}

.art-title > p:last-child {
  max-width: 590px;
  margin: 34px 0 0;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.58;
}

.art-caption {
  position: absolute;
  z-index: 2;
  top: 30px;
  left: 30px;
  padding: 8px 11px;
  border-radius: 999px;
  color: white;
  background: rgba(8, 16, 42, 0.42);
  backdrop-filter: blur(12px);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trivia-panel {
  position: relative;
  min-height: 100vh;
  padding: clamp(32px, 6vw, 82px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, transparent 0 83%, rgba(0,174,202,.1) 83% 84%, transparent 84%),
    var(--paper);
}

.portal-signature {
  position: absolute;
  top: 40px;
  left: clamp(32px, 6vw, 82px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-signature span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font: 700 1.05rem Georgia, serif;
}

.portal-signature i {
  width: 74px;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue) 0 33%, var(--coral) 33% 66%, var(--acid) 66%);
}

.login-card { width: min(100%, 500px); margin: auto; }

.card-label { color: var(--coral); }

.login-card h2 {
  margin: 0 0 46px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

label {
  display: block;
  margin: 0 0 9px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 58px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.64);
  box-shadow: inset 5px 0 0 var(--cyan);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus { border-color: var(--blue); box-shadow: inset 5px 0 0 var(--blue), 0 0 0 4px rgba(7,93,255,.1); }

.form-error { min-height: 20px; margin: 9px 0; color: #b02337; font-size: 0.82rem; }

.login-card button {
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border: 0;
  border-radius: 3px;
  color: white;
  background: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.login-card button:hover { background: var(--blue); transform: translateY(-2px); }
.login-card button span { margin-left: 8px; color: var(--acid); }
.privacy-note { margin: 17px 0 0; color: var(--muted); font-size: 0.77rem; text-align: center; }

.memory-line {
  position: absolute;
  right: clamp(32px, 6vw, 82px);
  bottom: 36px;
  left: clamp(32px, 6vw, 82px);
  margin: 0;
  color: #7b7e85;
  font: italic 0.83rem Georgia, serif;
  text-align: center;
}

a { color: inherit; }

.topbar {
  min-height: 78px;
  padding: 17px clamp(22px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 229, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font: 700 1.05rem Georgia, serif;
}

.quiet-button, .quiet-link, .back-button {
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.quiet-link + .quiet-link { margin-left: 22px; }
.share-story-button { display: flex; width: fit-content; min-width: 236px; min-height: 58px; margin: 0 auto 30px; padding: 0 20px; align-items: center; justify-content: center; border: 0; color: white; background: var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.share-story-button:hover { background: var(--blue); }
.share-story-button span { margin-left: 8px; }
.story-shell { width: min(760px, calc(100% - 44px)); margin: 0 auto; padding: clamp(60px, 10vw, 120px) 0; }
.story-shell h1 { max-width: 680px; margin: 0; font: 500 clamp(3rem, 8vw, 6rem)/.9 Georgia, serif; letter-spacing: -.055em; }
.story-intro { max-width: 640px; margin: 28px 0 44px; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.story-form { padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); background: rgba(255,255,255,.48); }
.story-form input, .story-form textarea { width: 100%; margin: 0 0 25px; border: 1px solid var(--line); border-radius: 3px; outline: none; color: var(--ink); background: white; box-shadow: inset 5px 0 0 var(--cyan); }
.story-form textarea { min-height: 220px; padding: 16px 17px; resize: vertical; line-height: 1.55; }
.story-form input:focus, .story-form textarea:focus { border-color: var(--blue); box-shadow: inset 5px 0 0 var(--blue), 0 0 0 4px rgba(7,93,255,.1); }
.story-prompt { margin: 0 0 20px; padding: 18px 20px; border-left: 5px solid var(--coral); background: rgba(255,255,255,.72); }
.story-prompt-label { display: block; margin-bottom: 6px; color: var(--coral); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.story-prompt p { margin: 0; font: 500 clamp(1.15rem, 2.4vw, 1.45rem)/1.2 Georgia, serif; }
.story-prompt-button { margin-top: 13px; padding: 0; border: 0; color: var(--blue); background: transparent; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.story-prompt-button:hover { color: var(--ink); }
.story-modal[hidden] { display: none; }
.story-modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 12px; }
.story-modal-backdrop { position: absolute; inset: 0; background: rgba(9, 17, 38, .56); backdrop-filter: blur(4px); }
.story-modal-dialog { position: relative; width: min(900px, 100%); max-height: calc(100vh - 24px); overflow: hidden; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); background: var(--paper); box-shadow: 0 24px 80px rgba(4, 11, 32, .32); }
.story-modal-dialog .story-form { padding: 0; border: 0; background: transparent; }
.story-modal-dialog .story-form input { margin-bottom: 16px; }
.story-modal-dialog .story-form textarea { min-height: 150px; margin-bottom: 16px; }
.story-modal-dialog .story-prompt { margin-bottom: 14px; padding: 14px 16px; }
.story-modal-dialog .story-prompt-button { margin-top: 8px; }
.story-modal-dialog .story-note { margin-top: 8px; }
.story-modal-close { position: absolute; top: 16px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--ink); background: rgba(23, 33, 58, .08); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.story-modal-close:hover { color: white; background: var(--blue); }
.story-modal-open { overflow: hidden; }
@media (max-height: 620px), (max-width: 560px) {
  .story-modal { align-items: start; overflow: auto; }
  .story-modal-dialog { max-height: none; overflow: visible; }
}
.story-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dictate-button, .save-story { width: 210px; min-height: 58px; padding: 0 20px; border: 0; border-radius: 3px; font-weight: 800; cursor: pointer; }
.dictate-button { color: white; background: var(--ink); }
.dictate-button:hover { background: var(--blue); }
.dictate-button[aria-pressed="true"] { color: white; background: var(--coral); }
.save-story { color: white; background: var(--ink); }
.save-story:hover { background: var(--blue); }
.story-status { min-height: 22px; margin: 18px 0 0; color: var(--blue); line-height: 1.45; }
.story-note { margin: 10px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }

.quiet-button:hover, .quiet-link:hover { color: var(--blue); }

.portal-shell {
  width: min(100% - 44px, 1400px);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 118px) 0 58px;
}

.welcome {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(58px, 8vw, 108px);
}

.welcome-copy .eyebrow, .art-chat-heading .eyebrow, .coming-soon-shell .eyebrow {
  color: var(--coral);
}

.welcome-copy .eyebrow { display: flex; align-items: center; gap: 9px; }
.welcome-copy .eyebrow span { width: 28px; height: 3px; background: var(--coral); }

.welcome-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 7.5vw, 7.8rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.79;
}

.welcome-copy h1 em { color: var(--blue); font-weight: inherit; }

.welcome-copy > p:last-child {
  max-width: 460px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.welcome-index { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 18px 30px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.welcome-index span { display: inline-flex; align-items: center; gap: 9px; }
.welcome-index b { color: var(--blue); font: 700 1.05rem Georgia, serif; }

.art-ribbon {
  position: relative;
  width: min(100%, 820px);
  height: clamp(320px, 36vw, 520px);
}

.art-ribbon figure {
  position: absolute;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 28px 65px rgba(23, 33, 58, 0.18);
}

.art-ribbon figure:nth-child(1) { inset: 10% 42% 12% 0; transform: rotate(-4deg); }
.art-ribbon figure:nth-child(2) { inset: 0 17% 21% 33%; transform: rotate(3deg); }
.art-ribbon figure:nth-child(3) { inset: 20% 0 0 62%; transform: rotate(-2deg); }
.art-ribbon img { width: 100%; height: 100%; object-fit: cover; }

.art-ribbon > span {
  position: absolute;
  right: 2%;
  bottom: -34px;
  color: var(--muted);
  font: italic 0.79rem Georgia, serif;
}

.collection-intro { display: grid; grid-template-columns: minmax(150px, .42fr) minmax(270px, .8fr) minmax(360px, 1.3fr); gap: 25px; align-items: center; margin-bottom: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.collection-intro .eyebrow { margin: 0; color: var(--coral); }
.collection-intro h2 { margin: 0; font: 500 clamp(2.1rem, 4vw, 4rem)/.93 Georgia, serif; letter-spacing: -.05em; }
.heinz-quote { min-height: 5.4rem; width: min(100%, 620px); margin: 0 0 0 auto; color: var(--muted); }
.heinz-quote blockquote { margin: 0; font: italic clamp(.93rem, 1.25vw, 1.08rem)/1.4 Georgia, serif; transition: opacity 220ms ease, transform 220ms ease; }
.heinz-quote figcaption { margin-top: 7px; color: var(--coral); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.heinz-quote figcaption a { display: inline-block; min-height: 36px; padding: 9px 11px; color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.heinz-quote figcaption a:hover { color: var(--blue); }
.heinz-quote.is-changing blockquote, .heinz-quote.is-changing figcaption { opacity: 0; transform: translateY(4px); }

.destination-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.destination {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: white;
  background: var(--ink);
  text-decoration: none;
  isolation: isolate;
}

.destination.gallery-card, .destination.archive-card { grid-column: span 6; }
.destination.gallery-card, .destination.archive-card { margin-top: 0; }
.destination > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 550ms ease; }
.destination::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3,8,23,.04) 20%, rgba(5,10,27,.88) 100%); }
.destination:hover > img { transform: scale(1.045); }

.destination-label {
  position: absolute;
  inset: 0;
  padding: clamp(24px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-number { position: absolute; top: 28px; left: clamp(24px, 3vw, 42px); padding-bottom: 8px; border-bottom: 2px solid var(--acid); font: 700 .78rem/1 Georgia, serif; }
.card-kicker { margin: 0 0 9px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.destination h2 { margin: 0; font: 500 clamp(2.2rem, 3.7vw, 4.15rem)/.91 Georgia, serif; letter-spacing: -.055em; }
.destination-label p:last-child { max-width: 350px; margin: 17px 0 0; color: rgba(255,255,255,.83); font-size: .9rem; line-height: 1.58; }
.card-action { position: absolute; top: 23px; right: clamp(24px, 3vw, 42px); display: inline-flex; align-items: center; gap: 11px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card-action i { font-style: normal; }
.card-action b { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--acid); font-size: 1rem; transition: transform 180ms ease, background 180ms ease; }
.destination:hover .card-action b { transform: translate(4px, -2px); background: white; }

.family-note {
  margin-top: 36px;
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: italic .82rem Georgia, serif;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
/* The closed chat container must not intercept taps on the page beneath it. */
.heinz-widget { pointer-events: none; position: fixed; right: 24px; bottom: 24px; z-index: 10; width: min(390px, calc(100vw - 32px)); }
.heinz-widget-toggle { pointer-events: auto; position: absolute; right: 0; bottom: 0; z-index: 1; display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 7px; border: 0; border-radius: 999px; color: white; background: var(--ink); box-shadow: 0 12px 30px rgba(5,10,27,.28); font: 800 .74rem Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.heinz-widget-toggle img, .heinz-widget-header > img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: center 35%; }
.heinz-widget-panel { height: min(560px, calc(100dvh - 48px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 20px 60px rgba(5,10,27,.25); opacity: 0; transform: translateY(18px) scale(.98); pointer-events: none; transition: opacity 160ms ease, transform 160ms ease; }
.heinz-widget.is-open .heinz-widget-panel { opacity: 1; transform: none; pointer-events: auto; }
.heinz-widget.is-open .heinz-widget-toggle { display: none; }
.heinz-widget-header { flex: 0 0 auto; display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.heinz-widget-header > img { width: 42px; height: 42px; }
.heinz-widget-header strong, .heinz-widget-header span { display: block; }
.heinz-widget-header strong { font: 600 1.05rem Georgia, serif; }
.heinz-widget-header span { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.heinz-widget-close { margin-left: auto; width: 32px; height: 32px; border: 0; color: var(--ink); background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.heinz-widget .messages { flex: 1; height: auto; min-height: 0; padding: 18px; overflow-y: auto; overflow-wrap: anywhere; }
.heinz-widget .message { max-width: 88%; margin-bottom: 13px; padding: 13px 14px; }
.heinz-widget .composer { flex: 0 0 auto; padding: 12px; }
.heinz-widget .composer-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.heinz-widget .composer textarea { min-width: 0; min-height: 52px; height: 52px; padding: 10px 12px; resize: none; }
.heinz-widget .composer button { min-width: 62px; }
.heinz-widget .composer .voice-input { min-width: 52px; }
.heinz-widget .chat-status { height: 1.4em; margin: 6px 0 0; }

.chat-shell {
  width: min(100% - 44px, 1120px);
  margin: 0 auto;
  padding: 58px 0 48px;
}

.art-chat-heading {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(330px, 1.2fr);
  min-height: 370px;
  background: var(--paper-deep);
}

.art-chat-heading > img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.art-chat-heading > div { padding: clamp(38px, 6vw, 76px); align-self: center; }
.art-chat-heading h1 { margin: 0; font: 500 clamp(3.2rem, 6vw, 6.2rem)/.83 Georgia, serif; letter-spacing: -.06em; }
.art-chat-heading div > p:last-child { max-width: 520px; margin: 27px 0 0; color: var(--muted); line-height: 1.6; }

.conversation { border: 1px solid var(--line); background: rgba(255,255,255,.48); }
.messages { height: clamp(240px, 45vh, 520px); padding: clamp(22px, 4vw, 44px); overflow-y: auto; overscroll-behavior-y: contain; overflow-anchor: none; scrollbar-gutter: stable; }
.message { max-width: 76%; margin: 0 0 22px; padding: 18px 20px; border-left: 5px solid var(--cyan); background: white; box-shadow: 0 8px 25px rgba(23,33,58,.07); }
.message.user-message { margin-left: auto; border-left-color: var(--coral); background: var(--ink); color: white; }
.speaker { display: block; margin-bottom: 7px; color: var(--blue); font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.user-message .speaker { color: var(--acid); }
.message p { margin: 0; line-height: 1.58; }
.listen-button { display: block; margin-top: 14px; padding: 8px 11px; border: 1px solid var(--blue); border-radius: 3px; color: var(--blue); background: white; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.listen-button:hover { color: white; background: var(--blue); }
.listen-button:disabled { opacity: .65; cursor: wait; }
.bot-message audio { display: block; width: min(100%, 330px); margin-top: 14px; }
.message details { margin-top: 13px; color: var(--muted); font-size: .78rem; }
.message summary { cursor: pointer; font-weight: 700; }
.archive-matches .archive-results { margin: 10px 0 0; padding-left: 20px; }
.archive-matches .archive-results a { color: var(--blue); }
.archive-matches .archive-results p { margin-top: 4px; font-size: 0.9rem; }

.composer { padding: 22px; border-top: 1px solid var(--line); background: var(--paper-deep); }
.composer-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; }
.composer textarea { min-height: 70px; resize: vertical; padding: 14px 16px; border: 1px solid var(--line); border-radius: 0; outline: none; color: var(--ink); background: white; font: inherit; }
.composer textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,93,255,.1); }
.composer button { min-width: 105px; border: 0; color: white; background: var(--ink); font-weight: 800; cursor: pointer; }
.composer button:hover { background: var(--blue); }
.composer .voice-input { display: grid; min-width: 62px; padding: 0; place-items: center; color: var(--ink); background: white; border: 1px solid var(--ink); }
.composer .voice-input:hover { color: white; background: var(--blue); border-color: var(--blue); }
.composer .voice-input[aria-pressed="true"] { color: white; background: var(--coral); border-color: var(--coral); animation: voice-pulse 1.15s ease-in-out infinite; }
.voice-input svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@keyframes voice-pulse { 50% { box-shadow: 0 0 0 5px rgba(244,63,82,.18); } }
.composer button:disabled { opacity: .55; cursor: wait; }
.chat-status { height: 3em; overflow-y: auto; margin: 8px 0 0; color: var(--muted); font-size: .76rem; }
.simulation-note { margin: 17px auto 0; color: var(--muted); font-size: .76rem; text-align: center; }

.coming-soon-shell {
  width: min(100% - 44px, 1120px);
  min-height: 620px;
  margin: clamp(40px, 7vw, 90px) auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper-deep);
  box-shadow: 0 28px 75px rgba(23,33,58,.13);
}

.coming-soon-shell > img { width: 100%; height: 100%; object-fit: cover; }
.coming-soon-shell > section { padding: clamp(40px, 7vw, 86px); align-self: center; }
.chess-piece { margin-bottom: 20px; color: var(--blue); font-size: 3.2rem; line-height: 1; }
.coming-soon-shell h1 { margin: 0; font: 500 clamp(3rem, 5vw, 5.6rem)/.88 Georgia, serif; letter-spacing: -.055em; }
.coming-soon-shell section > p:not(.eyebrow) { margin: 28px 0 35px; color: var(--muted); line-height: 1.67; }
.back-button { display: inline-flex; padding: 17px 20px; color: white; background: var(--ink); }
.back-button:hover { background: var(--blue); }

.gallery-shell {
  width: min(100% - 44px, 1460px);
  margin: 0 auto;
  padding: clamp(58px, 8vw, 116px) 0 70px;
}

.gallery-hero {
  margin-bottom: clamp(48px, 7vw, 90px);
  display: grid;
  grid-template-columns: minmax(340px, 1.25fr) minmax(280px, .75fr);
  align-items: end;
  gap: clamp(30px, 8vw, 120px);
}

.gallery-hero .eyebrow { color: var(--coral); }
.gallery-hero h1 { margin: 0; font: 500 clamp(4rem, 8vw, 8.4rem)/.79 Georgia, serif; letter-spacing: -.065em; }
.gallery-hero h1 em { color: var(--blue); font-weight: inherit; }
.gallery-intro { padding: 0 0 10px 24px; border-left: 6px solid var(--acid); }
.gallery-intro span { display: block; margin-bottom: 18px; color: var(--coral); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.gallery-intro p { max-width: 430px; margin: 0; color: var(--muted); line-height: 1.68; }
.party-toggle { margin-top: 27px; padding: 15px 18px; border: 0; color: white; background: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background 150ms ease, transform 150ms ease; }
.party-toggle b { margin-right: 8px; color: var(--acid); }
.party-toggle:hover { background: var(--blue); transform: translateY(-2px); }
.party-toggle:disabled { opacity: .5; cursor: wait; transform: none; }
.party-hint { display: block; margin-top: 10px; color: var(--muted); font-size: .68rem; }
.party-running { overflow: hidden; }
.party-running .topbar,
.party-running .gallery-shell { visibility: hidden; pointer-events: none; }

.gallery-wall { columns: 4 260px; column-gap: 17px; }
.gallery-item { position: relative; width: 100%; margin: 0 0 17px; padding: 0; display: block; break-inside: avoid; overflow: hidden; border: 0; color: white; background: var(--ink); cursor: zoom-in; }
.gallery-item img { display: block; width: 100%; height: auto; transition: transform 450ms ease, filter 450ms ease; }
.gallery-item span { position: absolute; right: 0; bottom: 0; left: 0; padding: 42px 16px 15px; background: linear-gradient(transparent, rgba(4,9,24,.78)); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; opacity: 0; transform: translateY(5px); transition: opacity 180ms ease, transform 180ms ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.025); filter: saturate(1.06); }
.gallery-item:hover span, .gallery-item:focus-visible span { opacity: 1; transform: translateY(0); }
.gallery-item:focus-visible { outline: 5px solid var(--acid); outline-offset: -5px; }
.gallery-status { min-height: 40px; color: var(--muted); text-align: center; }

.art-viewer { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 24px; border: 0; color: white; background: rgba(5,10,25,.96); }
.art-viewer[open] { display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; align-items: center; }
.art-viewer::backdrop { background: rgba(5,10,25,.96); }
.art-viewer figure { min-width: 0; margin: 0; display: grid; justify-items: center; }
.art-viewer img { display: block; max-width: 100%; max-height: calc(100vh - 125px); object-fit: contain; box-shadow: 0 28px 90px rgba(0,0,0,.38); opacity: 1; transform: scale(1); transition: opacity 500ms ease, transform 500ms ease; }
.art-viewer img.changing { opacity: 0; transform: scale(.985); }
.art-viewer #viewer-image[hidden], .art-viewer #viewer-video[hidden] { display: none; }
.art-viewer.video-party-viewer[open] { display: block; padding: 0; background: #000; }
.video-party-viewer figure { width: 100%; height: 100%; }
.video-party-viewer #viewer-video { width: 100%; height: 100vh; object-fit: contain; background: #000; }
.video-party-viewer figcaption, .video-party-viewer .viewer-arrow { display: none; }
.art-viewer.party-viewer { background: #02050e; }
.art-viewer.party-viewer::backdrop { background: #02050e; }
.art-viewer.party-viewer[open] { display: block; padding: 0; overflow: hidden; }
.art-viewer.party-viewer figure { width: 100%; height: 100%; }
.art-viewer.party-viewer img { width: 100%; height: 100vh; max-height: 100%; object-fit: contain; box-shadow: none; }
.art-viewer.party-viewer figcaption { display: none; }
.party-viewer .viewer-arrow { position: fixed; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(5,10,25,.55); }
.party-viewer .viewer-previous { left: 20px; }
.party-viewer .viewer-next { right: 20px; }
.party-viewer .viewer-close, .party-viewer .viewer-arrow { opacity: 0; pointer-events: none; transition: opacity 150ms ease; }
.party-viewer.controls-visible .viewer-close, .party-viewer.controls-visible .viewer-arrow,
.party-viewer .viewer-close:focus-visible, .party-viewer .viewer-arrow:focus-visible { opacity: 1; pointer-events: auto; }
.party-viewer:not(.controls-visible) { cursor: none; }
.art-viewer figcaption { width: min(100%, 900px); padding-top: 15px; display: flex; justify-content: space-between; gap: 20px; font: italic .85rem Georgia, serif; }
.art-viewer figcaption small { color: rgba(255,255,255,.55); font: 700 .65rem "Avenir Next", Avenir, "Segoe UI", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.viewer-close { position: fixed; top: 22px; right: 25px; z-index: 2; padding: 10px 13px; border: 1px solid rgba(255,255,255,.28); color: white; background: rgba(5,10,25,.55); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.viewer-arrow { width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: white; background: transparent; font: 300 2.4rem/1 Georgia, serif; cursor: pointer; }
.viewer-arrow:hover, .viewer-close:hover { color: var(--ink); background: var(--acid); }

@media (max-width: 880px) {
  .login-shell { grid-template-columns: 1fr; }
  .art-panel { min-height: 53vh; }
  .trivia-panel { min-height: 47vh; padding-top: 100px; padding-bottom: 90px; }
  .art-title h1 { font-size: clamp(3.8rem, 15vw, 7rem); }
  .art-title { bottom: 50px; }
  .art-ribbon { width: min(100%, 720px); }
  .destination.gallery-card, .destination.archive-card { grid-column: span 6; }
  .collection-intro { grid-template-columns: 1fr 1fr; }
  .heinz-quote { grid-column: 1 / -1; margin: 0 auto; }
  .art-chat-heading, .coming-soon-shell { grid-template-columns: 1fr; }
  .art-chat-heading > img, .coming-soon-shell > img { height: 340px; }
  .gallery-hero { grid-template-columns: 1fr; }
  .gallery-intro { max-width: 560px; }
}

@media (max-width: 520px) {
  .art-panel { min-height: 48vh; }
  .art-caption { top: 18px; left: 18px; }
  .art-title { left: 22px; right: 22px; bottom: 30px; }
  .art-title h1 { font-size: 3.65rem; }
  .art-title > p:last-child { display: none; }
  .trivia-panel { min-height: 52vh; padding: 100px 22px 78px; }
  .portal-signature { top: 28px; left: 22px; }
  .login-card h2 { margin-bottom: 32px; font-size: 2.35rem; }
  .memory-line { right: 22px; bottom: 24px; left: 22px; }
  .brand span { display: none; }
  .topbar { min-height: 70px; padding: 13px 18px; }
  .portal-shell, .chat-shell, .coming-soon-shell, .gallery-shell { width: min(100% - 28px, 1400px); }
  .welcome-copy h1 { font-size: 3.85rem; }
  .art-ribbon { height: 270px; }
  .art-ribbon > span { display: none; }
  .collection-intro { display: grid; grid-template-columns: 1fr; margin-bottom: 18px; padding-top: 20px; text-align: center; }
  .collection-intro .eyebrow { margin-bottom: 3px; }
  .heinz-quote { min-height: 6.8rem; margin: 8px auto 0; }
  .destination { min-height: 430px; }
  .destination.gallery-card, .destination.archive-card { grid-column: span 12; }
  .destination.archive-card { margin-top: 0; }
  .family-note { display: block; }
  .art-chat-heading > img, .coming-soon-shell > img { height: 260px; }
  .art-chat-heading > div, .coming-soon-shell > section { padding: 34px 24px; }
  .art-chat-heading h1, .coming-soon-shell h1 { font-size: 3.55rem; }
  .message { max-width: 92%; }
  .composer-row { grid-template-columns: 1fr auto auto; }
  .composer textarea { grid-column: 1 / -1; }
  .composer button { min-height: 50px; }
  .gallery-hero h1 { font-size: 3.8rem; }
  .gallery-wall { columns: 2 145px; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .gallery-item span { display: none; }
  .art-viewer { padding: 50px 10px 15px; }
  .art-viewer[open] { grid-template-columns: 42px minmax(0, 1fr) 42px; }
  .viewer-arrow { width: 38px; height: 38px; font-size: 1.8rem; }
  .art-viewer figcaption { display: block; text-align: center; }
  .art-viewer figcaption small { display: block; margin-top: 6px; }
  .heinz-widget { right: 14px; bottom: 14px; width: calc(100vw - 28px); }
  .heinz-widget-panel { height: min(560px, calc(100dvh - 28px)); }
}

.chat-page {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-page .topbar { flex: 0 0 auto; }
.chat-page .chat-shell {
  flex: 1;
  min-height: 0;
  padding: 16px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-page .art-chat-heading {
  flex: 0 0 100px;
  min-height: 0;
  margin: 0;
  grid-template-columns: 120px minmax(0, 1fr);
  overflow: hidden;
}
.chat-page .art-chat-heading > img { height: 100px; }
.chat-page .art-chat-heading > div { padding: 12px 18px; }
.chat-page .art-chat-heading .eyebrow { margin-bottom: 8px; }
.chat-page .art-chat-heading h1 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; }
.chat-page .art-chat-heading div > p:last-child { display: none; }
.chat-page .conversation { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-page .messages { flex: 1; height: auto; min-height: 0; overflow-wrap: anywhere; }
.chat-page .composer { flex: 0 0 auto; padding: 12px; }
.chat-page .composer-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.chat-page .composer textarea { min-width: 0; height: 70px; resize: none; }
.chat-page .composer button { min-width: 64px; }
.chat-page .composer .voice-input { min-width: 54px; }
.chat-page .simulation-note { flex: 0 0 auto; margin: 0; }
@media (max-height: 600px) {
  .chat-page .art-chat-heading { display: none; }
  .chat-page .chat-shell { padding-top: 8px; gap: 6px; }
  .chat-page .topbar { min-height: 50px; padding-top: 4px; padding-bottom: 4px; }
  .chat-page .composer textarea { height: 48px; min-height: 48px; padding: 8px; }
  .chat-page .composer { padding: 8px; }
  .chat-page .chat-status { height: 1.3em; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.gallery-collections { display: flex; gap: 12px; margin: 0 0 34px; flex-wrap: wrap; }
.gallery-collections button { padding: 17px 24px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.gallery-collections button[aria-pressed="true"] { background: var(--ink); color: white; }
.gallery-collections button:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; }
.gallery-collections span { margin-left: 10px; opacity: .7; }
.gallery-shell h2 { font: 500 2.4rem Georgia, serif; margin: 0 0 22px; }
.video-intro { color: var(--muted); margin: -10px 0 28px; }
.video-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.video-card { margin: 0; background: var(--ink); color: white; }
.video-card video { display: block; width: 100%; aspect-ratio: 4 / 3; background: #10121a; object-fit: contain; }
.video-card figcaption { padding: 18px 20px; font-weight: 700; }
[hidden] { display: none !important; }
