/* Page compositions shared by the gallery, contact and 404 pages. */
.error-page { --lost-sun: #e5b67d; }
.gallery-page .gallery-intro,
.contact-page .contact-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: end;
  gap: clamp(32px, 7vw, 100px);
  padding-block: clamp(64px, 9vw, 120px) 64px;
}
:is(.gallery-page, .contact-page) .display-title {
  font-size: clamp(44px, 6.5vw, 88px);
  letter-spacing: -.055em;
  line-height: 1.08;
  text-wrap: balance;
}
:is(.gallery-page, .contact-page) .display-title > span:last-child { display: block; }
:is(.gallery-intro-copy, .contact-intro-copy) .lead-text { max-width: 650px; font-size: 16px; line-height: 1.85; }
.gallery-ledger, .contact-status { border-top: 1px solid var(--border-strong); padding-top: 20px; }
.gallery-ledger-kicker, .gallery-section-rule, .contact-rule,
.contact-status-clock > span, .contact-label, .map-card-head,
.lost-folio, .lost-routes-label, .lost-caption {
  font: 10px/1.7 var(--font-mono, monospace);
  letter-spacing: .07em;
  color: var(--fg-muted);
}
.gallery-ledger-kicker, .gallery-section-rule, .contact-rule, .map-card-head, .lost-folio {
  display: flex; justify-content: space-between; gap: 20px;
}
.gallery-ledger-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-block: 28px; }
.gallery-ledger-stats dt { font-size: 12px; color: var(--fg-muted); }
.gallery-ledger-stats dd { margin: 0; font-size: 42px; letter-spacing: -.05em; }
.gallery-ledger-note, .contact-status-note { font-size: 13px; line-height: 1.8; color: var(--fg-muted); }
.gallery-section-rule, .contact-rule { border-top: 1px solid var(--border-strong); padding-top: 16px; margin-bottom: 28px; }
.gallery-desk-section { padding-bottom: 70px; }
.gallery-page .gf-desk { position: relative; isolation: isolate; border: 1px solid var(--border); border-radius: 24px; background: var(--bg-elevated); }
.gallery-page .gf-desk-dots { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: radial-gradient(var(--border-strong) .8px, transparent .8px); background-size: 18px 18px; opacity: .45; }
.gallery-page .gf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); justify-items: center; gap: 24px; padding: 70px 20px 25px; }
.gallery-page .gf-caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; list-style: none; }
.gallery-page .gf-caption { position: relative; padding: 20px; color: var(--fg-muted); font-size: 11px; }
.gallery-page .gf-caption li { display: flex; align-items: center; gap: 7px; }
.gallery-page .gf-caption svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; flex-shrink: 0; }
.gallery-index-head { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 30px; }
.gallery-index-head .section-subtitle { max-width: 380px; }
.gf-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gf-index-grid > * { min-width: 0; }
.gallery-page .gf-index-grid .ring-frame { background: var(--bg-elevated); }

.contact-status-row { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.contact-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald, #34a875); }
.contact-status-clock { display: grid; gap: 6px; margin-block: 28px; }
.contact-status-clock strong { font: 36px/1.2 var(--font-mono, monospace); letter-spacing: -.05em; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); }
.contact-letter, .contact-side { position: relative; min-width: 0; }
.contact-heading { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.035em; margin-bottom: 30px; }
.contact-form .float-field { display: flex; flex-direction: column; gap: 9px; }
.contact-form .float-field .form-label { order: -1; }
.contact-form :is(input, textarea) { width: 100%; min-width: 0; }
.contact-submit-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.contact-submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.contact-submit-hint { color: var(--fg-muted); font-size: 11px; }
.contact-sent-bird { width: 48px; height: 24px; fill: none; stroke: var(--fg-muted); stroke-width: 1; margin-top: 28px; }
.channel-list { list-style: none; margin: 0; padding: 0; }
.channel { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); padding-block: 20px; }
.channel:first-child { padding-top: 0; }
.channel-icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.3; }
.channel-body { flex: 1; min-width: 0; }
.contact-value, .contact-value-mono, .contact-value-email { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; margin-top: 5px; }
.contact-value-mono { font-family: var(--font-mono, monospace); }
.copy-control { flex-shrink: 0; }
.map-card { margin: 28px 0 0; }
.map-card-head { margin-bottom: 12px; }
.contact-page .map-frame { position: relative; height: 260px; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; }
.map-fallback { position: absolute; inset: 0; color: var(--fg-muted); background: var(--bg-elevated); }
.map-fallback svg { width: 100%; height: 100%; fill: none; stroke: currentColor; opacity: .25; }
.map-pin { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.contact-page .map-frame iframe { position: relative; z-index: 1; }

.lost-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 35px; min-height: 75vh; padding-block: 70px; }
.lost-folio { border-top: 1px solid var(--border-strong); padding-top: 16px; margin-bottom: 35px; }
.error-page .display-title { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.08; letter-spacing: -.05em; }
.lost-lead { margin-top: 28px; max-width: 440px; font-size: 16px; line-height: 1.8; }
.lost-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lost-routes { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 35px; font-size: 12px; }
.lost-routes-label { flex-basis: 100%; }
.lost-scene { margin: 0; min-width: 0; color: var(--fg); }
.lost-svg { display: block; width: 100%; height: auto; overflow: visible; }
.lost-grid { stroke: var(--border); stroke-width: 1; }
.lost-numerals { stroke: currentColor; stroke-width: 2; opacity: .35; }
.lost-flock { color: var(--fg); }
.lost-trail { stroke: currentColor; stroke-width: 1; stroke-dasharray: 3 7; opacity: .35; }
.lost-bird-moving, .lost-bird-static { color: var(--accent); }
.lost-bird-static { display: none; }
.lost-notes { fill: var(--fg-muted); font: 9px var(--font-mono, monospace); letter-spacing: 1px; }
.lost-notes path { fill: none; stroke: var(--fg-muted); stroke-width: .7; }
.lost-caption { text-align: center; margin-top: 10px; }

@media (max-width: 760px) {
  .gallery-page .gallery-intro, .contact-page .contact-intro,
  .contact-layout, .lost-stage { grid-template-columns: 1fr; }
  .gallery-page .gallery-intro, .contact-page .contact-intro { padding-block: 60px 40px; gap: 32px; }
  .gallery-ledger-stats { margin-block: 15px; }
  .gallery-ledger-stats dd { font-size: 30px; }
  .contact-status-clock { margin-block: 16px; }
  .gallery-index-head { display: block; }
  .gallery-index-head .section-subtitle { margin-top: 15px; }
  .gf-index-grid { grid-template-columns: 1fr; }
  .gallery-section-rule > span:last-child { max-width: 50%; text-align: right; }
  .gallery-page .gf-caption { gap: 12px; }
  .contact-layout { gap: 48px; }
  .contact-page .form-grid { grid-template-columns: 1fr; }
  .contact-submit-row .btn { width: 100%; }
  .channel { gap: 10px; }
  .lost-stage { padding-block: 50px; gap: 20px; }
  .lost-scene { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .lost-bird-moving { display: none; }
  .lost-bird-static { display: inline; }
}
@media (max-width: 420px) {
  .gallery-page .gf-grid { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
  .gallery-page .gf-root { zoom: .78; }
  .channel { flex-wrap: wrap; }
  .channel .copy-control { margin-left: 32px; }
}
@media (forced-colors: active) {
  .contact-status-dot, .map-pin { background: CanvasText; }
}
