/* The Chamber Group — editorial About / Contact panels.
   Loaded after the site's inline CSS. The site owns panel placement and motion. */

.panel {
  padding: clamp(22px, 4vh, 38px) 24px 18px;
}
#panelM.panel { padding-top: clamp(22px, 4vh, 38px); }

.panel .p-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 23px;
  color: #aaa397;
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.panel .p-label::before { content: none; }
.panel .label-rule {
  display: block;
  flex: 0 0 22px;
  height: 1px;
  background: var(--pink);
  transform-origin: left;
}
.panel .label-copy { display: inline-block; }

.panel .p-hero {
  margin: 0 0 27px;
  color: var(--chamber-ink);
  font-family: "ivypresto-display", Georgia, serif;
  font-size: clamp(44px, 4.25vw, 55px);
  font-style: normal;
  font-weight: 300;
  line-height: .9;
  letter-spacing: -.04em;
  text-transform: none;
}
.panel .p-hero .first,
.panel .p-hero .second { display: block; }
.panel .p-hero .second {
  margin-left: 23px;
  font-style: italic;
  font-weight: 300;
  font-size: .94em;
}
.panel .p-hero .out {
  color: inherit;
  -webkit-text-stroke: 0;
  text-stroke: 0;
}

.panel .narrative .body,
.panel p.body {
  margin: 0;
  max-width: none;
  color: #bdb6ab;
  font-size: 13.8px;
  line-height: 1.5;
}
.panel .narrative .body + .body { margin-top: 10px; }
.panel p.body b,
.panel .narrative .body b { color: var(--chamber-ink); font-weight: 400; }
.panel .dc { display: none; }
.panel .ser-i {
  color: #cc77be;
  font-family: "ivypresto-display", Georgia, serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0;
  margin-top: 17px !important;
}
#panelM.panel .ser-i { margin-top: 17px !important; }

.panel .p-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.panel .p-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--chamber-ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.3;
}
.panel .p-list li b { font-weight: 400; }
.panel .p-list .rn {
  flex: 0 0 24px;
  width: 24px;
  color: var(--pink);
  font-size: 15px;
  line-height: 1;
}
.panel .pill {
  margin-top: 15px;
  padding: 8px 14px;
  font-size: 9px;
  letter-spacing: .23em;
}

.panel h2:not(.p-hero) {
  color: var(--chamber-ink);
  font-family: var(--sans);
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  margin: 0 0 22px;
}
.panel .field { margin-bottom: 24px; }
.panel .field label { margin-bottom: 8px; }
.panel .field input,
.panel .field textarea {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
}

/* Only descendants move. The gallery owns .panel transforms. */
@keyframes tcgEditorialRule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes tcgEditorialHeading {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes tcgEditorialText {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
.panel.editorial-enter .label-rule {
  animation: tcgEditorialRule 760ms cubic-bezier(.22,.61,.21,1) 0ms both;
}
.panel.editorial-enter .label-copy {
  animation: tcgEditorialText 430ms ease-out 0ms both;
}
.panel.editorial-enter .p-hero .first,
.panel.editorial-enter .p-hero .second {
  animation: tcgEditorialHeading 720ms cubic-bezier(.22,.61,.21,1) both;
}
.panel.editorial-enter .p-hero .first { animation-delay: 0ms; }
.panel.editorial-enter .p-hero .second { animation-delay: 160ms; }
.panel.editorial-enter .editorial-text {
  animation: tcgEditorialText 500ms cubic-bezier(.22,.61,.21,1) both;
  animation-delay: var(--editorial-delay, 620ms);
}
.panel.editorial-enter form:focus-within .editorial-text {
  animation: none;
  opacity: 1;
  transform: none;
}

/* Narrow desktop: preserve room for the full About narrative. */
@media (min-width: 821px) and (max-width: 1100px) {
  .panel { padding-left: 20px; padding-right: 20px; }
  .panel .p-hero { font-size: clamp(40px, 4.1vw, 48px); }
  .panel .narrative .body { font-size: 13.5px; line-height: 1.45; }
  .panel .narrative .body + .body { margin-top: 8px; }
}
@media (min-width: 821px) and (max-height: 650px) {
  .panel, #panelM.panel { padding-top: 20px; }
  .panel .p-label { margin-bottom: 11px; }
  .panel .p-hero { font-size: clamp(36px, 4vw, 46px); margin-bottom: 14px; }
  .panel .narrative .body { font-size: 12.5px; line-height: 1.4; }
  .panel .narrative .body + .body { margin-top: 6px; }
  .panel .ser-i, #panelM.panel .ser-i { margin-top: 10px !important; }
  .panel .p-list li { margin-bottom: 10px; font-size: 12px; }
  .panel .pill { margin-top: 8px; }
  .panel .field { margin-bottom: 12px; }
}

/* Portrait phone: each panel occupies one half-screen band. */
@media (max-width: 820px) and (orientation: portrait) {
  .panel, #panelM.panel { padding: 17px 8% 13px; }
  .panel .p-label { margin-bottom: 11px; font-size: 8px; }
  .panel .label-rule { flex-basis: 17px; }
  .panel .p-hero {
    font-size: clamp(35px, 10.8vw, 45px);
    line-height: .87;
    margin-bottom: 10px;
  }
  .panel .p-hero .second { margin-left: 16px; }
  .panel .p-body,
  .panel p.body { font-size: 13.3px; line-height: 1.5 !important; margin-top: 8px; }
  .panel .p-list li { margin-bottom: 5px; font-size: 12.5px; line-height: 1.2; }
  .panel .p-list .rn { flex-basis: 19px; width: 19px; font-size: 12px; }
  .panel .pill, .panel .ser-i { display: none; }
  .panel form, .panel .mform { margin-top: 2px; }
  .panel .field { margin-bottom: 8px; }
  .panel .field label { font-size: 8px; margin-bottom: 2px; }
  .panel .field input,
  .panel .field textarea { font-size: 16px; line-height: 1.15; padding: 2px 0 4px; }
  .panel .field textarea { height: 32px; }
  .panel .send { margin-top: 1px; }
}

/* Small portrait screens keep the form's send button inside its own band. */
@media (max-width: 820px) and (orientation: portrait) and (max-height: 700px) {
  .panel, #panelM.panel { padding-top: 10px; padding-bottom: 8px; }
  .panel .p-hero { font-size: 32px; margin-bottom: 6px; }
  .panel .p-label { margin-bottom: 7px; }
  .panel .field { margin-bottom: 6px; }
  .panel .field textarea { height: 28px; }
}
@media (max-width: 820px) and (orientation: portrait) and (max-height: 600px) {
  .panel .p-hero .first, .panel .p-hero .second { display: inline-block; }
  .panel .p-hero .second { margin-left: 5px; }
  .panel .p-body { font-size: 12.5px; line-height: 1.45 !important; }
  .panel .p-list li { margin-bottom: 4px; }
}

/* Landscape phone / very short desktop uses the site's shorter copy. */
@media (max-height: 560px) {
  .panel, #panelM.panel { padding: 10px 7% 7px; }
  .panel .p-label { font-size: 7px; margin-bottom: 5px; }
  .panel .label-rule { flex-basis: 14px; }
  .panel .p-hero { font-size: clamp(27px, 4.2vw, 38px); line-height: .87; margin-bottom: 7px; }
  .panel .p-hero .second { margin-left: 11px; }
  .panel .p-body,
  .panel p.body { font-size: 10.5px; line-height: 1.36 !important; margin-top: 4px; }
  .panel .p-list li { margin-bottom: 2px; font-size: 10px; line-height: 1.12; }
  .panel .p-list .rn { flex-basis: 15px; width: 15px; font-size: 10px; }
  .panel .pill, .panel .ser-i { display: none; }
  .panel form, .panel .mform { margin-top: 0; }
  .panel .field { margin-bottom: 4px; }
  .panel .field label { font-size: 7px; margin-bottom: 1px; }
  .panel .field input,
  .panel .field textarea { font-size: 16px; line-height: 1; padding: 0 0 2px; }
  .panel .field textarea { height: 22px; }
  .panel .send { font-size: 8px; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .panel.editorial-enter .label-rule,
  .panel.editorial-enter .label-copy,
  .panel.editorial-enter .p-hero .first,
  .panel.editorial-enter .p-hero .second,
  .panel.editorial-enter .editorial-text {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Measurement snapshots must see the settled text and no inner motion. */
.measure-gallery .panel.editorial-enter .label-rule,
.measure-gallery .panel.editorial-enter .label-copy,
.measure-gallery .panel.editorial-enter .p-hero .first,
.measure-gallery .panel.editorial-enter .p-hero .second,
.measure-gallery .panel.editorial-enter .editorial-text {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Prepare only scripted panels; if scripting fails, the readable default remains. */
.panel.editorial-wait .label-rule { transform: scaleX(0); }
.panel.editorial-wait .label-copy,
.panel.editorial-wait .p-hero .first,
.panel.editorial-wait .p-hero .second,
.panel.editorial-wait .editorial-text { opacity: 0; }
.panel.editorial-wait form:focus-within .editorial-text { opacity: 1; }
/* Keyboard focus must never land on a still-revealing field or link. */
.panel:is(:focus-within, .editorial-interacted) .label-rule,
.panel:is(:focus-within, .editorial-interacted) .label-copy,
.panel:is(:focus-within, .editorial-interacted) .p-hero .first,
.panel:is(:focus-within, .editorial-interacted) .p-hero .second,
.panel:is(:focus-within, .editorial-interacted) .editorial-text {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .panel.editorial-wait .label-rule { transform: none; }
  .panel.editorial-wait .label-copy,
  .panel.editorial-wait .p-hero .first,
  .panel.editorial-wait .p-hero .second,
  .panel.editorial-wait .editorial-text { opacity: 1; }
}
