/* Phase 5 structure, restored Phase 4 colours (1.6.1).
 * The unchanged beyond-timelines.css supplies the complete Phase 4 palette.
 * Retain Phase 5 layouts, typography, photographs, accessibility and motion rules.
 * New photo/About elements use existing Phase 4 text, frame and accent colours.
 */
:where(a, button, summary, input, textarea, select):focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.site-header { border-bottom: 1px solid var(--line); }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"], .footer-nav a:hover, .footer-nav a:focus-visible { text-decoration: underline; text-underline-offset: 0.3em; }
.hero { min-height: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); padding: 10rem clamp(1.5rem, 4.5vw, 5.5rem) 5rem; }
.hero::after { content: none; }
.hero-copy { width: 100%; }
.hero h1 { font-size: clamp(4rem, 8.4vw, 8.2rem); line-height: 1.02; }
.hero-intro { line-height: 1.8; }
.hero-landscape { min-width: 0; margin: 0; }
.hero-landscape img { display: block; width: 100%; height: auto; border: 1px solid rgba(157, 177, 221, 0.2); border-radius: 0.2rem; }
.hero-landscape figcaption { margin-top: 0.75rem; color: #a8b7d0; font-size: 0.76rem; line-height: 1.6; }
.explore-card { min-height: 30rem; }
.journey-chapter-controls button:disabled { opacity: 0.65; }
.journey-within::after { content: none; }
.editorial-pause img { border-radius: 0.2rem; }
.experiences-content > .editorial-pause { width: 100%; margin: 2.75rem 0 0; padding: 0; }
.editorial-pause figcaption { padding-top: 1.2rem; }
.pause-question { font-style: normal; }
.creator-introduction { max-width: 66ch; }
.creator-introduction > p, .creator-story > p { color: #b9c5dc; font-size: 1.05rem; line-height: 1.85; }
.creator-introduction > .overline { color: var(--blue); }
.creator-introduction .creator-opening { color: var(--paper); font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.6; }
.creator-introduction .creator-qualification-note, .creator-introduction .creator-link-note { color: #a8b7d0; font-size: 0.88rem; }
.creator-story > p { margin-top: 1.3rem; }
.creator-project-note { padding-left: 1.25rem; border-left: 2px solid var(--gold); }
.creator-introduction .creator-signature { color: var(--paper); font-family: var(--serif); font-size: 1.5rem; font-style: italic; }
.creator-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-block: 1.75rem 1rem; }
.creator-links a { display: inline-flex; min-height: 44px; align-items: center; gap: 0.7rem; color: #c7d6ff; border-bottom: 1px solid var(--line); }
.creator-links a:hover { color: var(--gold); border-color: var(--gold); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-top: 9rem; }
  .hero-copy { max-width: 44rem; }
  .hero-landscape { width: 100%; max-width: 62rem; }
}

@media (max-width: 640px) {
  .hero { padding: 7.5rem 1.5rem 4rem; gap: 2.25rem; }
  .hero h1 { font-size: clamp(3.4rem, 15vw, 6rem); }
  .section { padding-block: 4.5rem; }
  .explore { padding-top: 1.5rem; }
  .explore-card { min-height: auto; }
  .creator-links { flex-direction: column; align-items: flex-start; }
  .creator-introduction > p { font-size: 1rem; }
}

@media (max-width: 390px) {
  .hero { padding-inline: 1.25rem; }
}

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

/* Phase 6: a modest, static image group within the existing About reading width. */
.creator-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.creator-photos figure { min-width: 0; margin: 0; }
.creator-photos img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border: 1px solid var(--line); border-radius: 0.2rem; background: #0b1224; }
.creator-photos figcaption { margin-top: 0.65rem; color: #a8b7d0; font-size: 0.8rem; line-height: 1.6; overflow-wrap: anywhere; }
.creator-introduction .creator-photo-credit { margin-top: 1rem; color: var(--muted); font-size: 0.8rem; line-height: 1.65; }

@media (max-width: 640px) {
  .creator-photos { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; margin-top: 2rem; }
}

/* Contact alignment: one shared 42rem (672px) content column, no palette changes. */
.contact-panel { display: grid; grid-template-columns: minmax(0, 42rem); justify-content: center; }
.contact-panel > * { min-width: 0; }
.contact-panel > .overline { margin: 0; }
.contact-panel > h2 { overflow-wrap: anywhere; }
.contact-panel > p:not(.overline) { max-width: none; margin: 0; }
.contact-panel > .contact-form { width: 100%; margin: 2.25rem 0 0; }
.contact-panel > .contact-feedback { width: 100%; margin: 1.5rem 0 0; }

/* Phase 7: existing entry point, visible focus and short-screen Observer access. */
.hero-actions > .button-primary { border-color: var(--gold); }
.hero-actions > .button-primary:not(:hover):not(:focus-visible) { background: rgba(var(--accent-rgb), 0.14); }
.collection-card > a:focus-visible,
.observer-experience .observer-choices button:focus-visible { outline-offset: -3px; }
.observer-experience .observer-steps { min-height: 0; max-height: 100%; overflow-y: auto; overscroll-behavior-y: contain; }
.observer-experience .observer-steps:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }

/* Phase 8: compact, responsive doorway and per-load reflection. */
.doorway.section { border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 6rem); }
.doorway-feature { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); min-width: 0; padding: clamp(1.25rem, 2.8vw, 2.5rem); border: 1px solid var(--line); background: linear-gradient(118deg, rgba(27, 43, 86, 0.3), rgba(20, 17, 47, 0.34) 64%, rgba(8, 14, 28, 0.55)); }
.doorway-figure { width: 100%; margin: 0; }
.doorway-figure img { display: block; width: 100%; height: auto; border: 1px solid rgba(138, 174, 255, 0.3); border-radius: 0.2rem; background: var(--ink-soft); }
.doorway-copy { min-width: 0; }
.doorway-copy > .overline { margin: 0; color: var(--blue); }
.doorway-copy h2 { max-width: 17ch; margin: 0.55rem 0 0.8rem; color: #d9e0ff; font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.025em; }
.doorway-copy > p:not(.overline) { max-width: 42ch; margin: 0 0 1.2rem; color: #b9c5dc; }
.doorway-button { min-height: 44px; transition: none; }
.doorway-button:hover, .doorway-button:focus-visible { transform: none; }
.doorway-reflection { max-width: 46rem; margin-top: clamp(1.5rem, 3vw, 2.35rem); padding: 0.3rem 0 0.2rem 1rem; border-left: 2px solid var(--gold); }
.doorway-reflection > .overline { margin: 0 0 0.35rem; color: var(--muted); }
.doorway-question { margin: 0; color: var(--paper); font-family: var(--serif); font-size: clamp(1.08rem, 1.7vw, 1.35rem); font-style: italic; line-height: 1.55; }
.doorway-noscript { grid-column: 2; color: var(--muted); font-size: 0.85rem; }
.observer-guidance { max-width: 44rem; margin: clamp(1.4rem, 2.8vw, 2.2rem) 0 0; color: #aebbd2; font-size: 0.95rem; line-height: 1.7; }
.observer-guidance a { color: #d9e0ff; text-decoration: underline; text-decoration-color: rgba(0, 233, 235, 0.55); text-underline-offset: 0.22em; }
.observer-guidance a:hover, .observer-guidance a:focus-visible { color: var(--gold); text-decoration-color: currentColor; }
.reflection-copy-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem 0.8rem; margin-block: 0.75rem; }
.copy-reflection { display: inline-flex; min-height: 44px; align-items: center; padding: 0.6rem 0.8rem; border: 1px solid rgba(168, 188, 250, 0.32); color: #cbd7ef; background: rgba(18, 27, 55, 0.5); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.07em; text-transform: uppercase; cursor: pointer; }
.copy-reflection:hover, .copy-reflection:focus-visible { border-color: var(--gold); color: var(--gold); }
.artwork-experience-link { margin: 0; padding: 0.1rem 1rem 0.85rem; }
.artwork-experience-link a { display: inline-flex; align-items: baseline; gap: 0.45rem; color: #aebfe0; font-size: 0.72rem; line-height: 1.5; text-decoration: underline; text-decoration-color: rgba(0, 233, 235, 0.35); text-underline-offset: 0.18em; }
.artwork-experience-link a:hover, .artwork-experience-link a:focus-visible { color: var(--gold); text-decoration-color: currentColor; }

@media (max-width: 640px) {
  .doorway.section { padding-block: 3.5rem; }
  .doorway-feature { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .doorway-figure { width: min(100%, 12rem); margin-inline: auto; }
  .doorway-copy h2 { max-width: 20ch; }
  .doorway-noscript { grid-column: 1; }
}
