/* The contact page: the close block (the music's vermilion mass, its film and crest, as on home) holds the heading and the direct
   contacts; the enquiry form sits beside it on the day sheet, on a framed sheet. Direction B: the form is TAB (a plan, drawn in
   violet-deep contour); sending it is MUSIC rising (a vermilion mass rises through the form and the crest at its top edge settles).
   Shell from css/system.css, css/sections.css (.close, .hl, .foot) and css/page.css; the ground below mirrors page.css's business ground
   for a page that belongs to neither branch. */

[hidden] {
  display: none !important;
}
:root {
  --vermilion-deep: #B8401C;
} /* direction B §3.3: vermilion as a line or small text on the sheet, 5.0:1 */

/* ───────── Ground: the lit sheet, as on the business pages ───────── */
html[data-page='contact'] {
  background: var(--sheet);
  color: var(--sheet-ink);
}
html[data-page='contact'] .room {
  background:
    radial-gradient(ellipse 80% 70% at 10% 0%, #fff 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 92% 8%, rgba(172, 115, 255, 0.16) 0%, transparent 70%),
    radial-gradient(ellipse 70% 60% at 100% 100%, #e6e2ee 0%, transparent 70%), var(--sheet);
}
html[data-page='contact'] :is(.room__tint, .room__vignette) {
  display: none;
}
html[data-page='contact'] :focus-visible {
  outline-color: var(--sheet-ink);
}
html[data-page='contact'] :is(.hdr, .menu) {
  --night: var(--sheet);
  --night-ink: var(--sheet-ink);
  --night-muted: #5f5873;
}
html[data-page='contact'] .foot {
  color: var(--night-ink);
  background:
    radial-gradient(ellipse 70% 120% at 15% 100%, rgba(172, 115, 255, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 60% 90% at 100% 0%, rgba(236, 92, 52, 0.1) 0%, transparent 70%), var(--night);
}
html[data-page='contact'] .foot :focus-visible {
  outline-color: var(--night-ink);
}

/* ───────── Frame: the close block and the form side by side from the header down; the frame's margin sits on the heading and the form ───────── */
.ct {
  --ct-frame: max(var(--margin), calc((100vw - var(--page)) / 2));
  position: relative;
  isolation: isolate;
  padding-top: var(--hdr);
}
.ct__grid {
  display: grid;
}
@media (min-width: 1024px) {
  .ct__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: calc(100svh - var(--hdr));
  }
}

/* ───────── The close block: the music's vermilion mass, film and crest as on home, holding the heading and the direct contacts ───────── */
.ct__intro {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  min-height: clamp(480px, 66svh, 600px);
  padding: 32px var(--margin) 40px;
  color: var(--on-vermilion);
}
.ct__intro .close__mass {
  inset: 0;
}
.ct__body {
  position: relative;
  z-index: 1;
  container-type: inline-size;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
}
@media (min-width: 1024px) {
  .ct__intro {
    min-height: 0;
    padding: 72px 48px 72px var(--ct-frame);
  }
  .ct__body {
    justify-content: space-between;
  }
}

/* The heading sets as the close's own title (t-music-title), sized to the column so both lines fit at every width */
.ct__h1 {
  margin: 0;
  font-size: min(clamp(3rem, 12.5vw, 9rem), 100cqi / 6);
  text-wrap: balance;
  color: var(--on-vermilion);
}

.ct__direct {
  display: grid;
  gap: 4px;
  justify-items: start;
}
.ct__lead {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--on-vermilion);
}
.ct__link {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.3;
  overflow-wrap: anywhere;
  color: var(--on-vermilion);
  font-variation-settings:
    'wdth' 82,
    'wght' 700;
  text-decoration: underline;
  text-decoration-color: var(--on-vermilion);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
@media (hover: hover) {
  .ct__link:hover {
    color: var(--sheet);
    text-decoration-color: var(--sheet);
  }
}

/* ───────── The form column: the enquiry form on a framed sheet, its margin the frame ───────── */
.ct__form {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 40px var(--margin) 80px;
}
@media (min-width: 1024px) {
  .ct__form {
    padding: 72px var(--ct-frame) 72px 48px;
  }
}

/* ───────── The panel: the form, and the mass that rises through it ───────── */
.ct__panel {
  --fh: clamp(52px, 2.6vw, 60px);
  position: relative;
  padding: 32px 22px 28px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1.5px var(--violet-deep);
}
@media (min-width: 1024px) {
  .ct__panel {
    padding: 48px 44px 44px;
  }
}
.ct__panel .ct__crest[data-branch] {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  --crest: var(--violet-deep);
}
.ct-form {
  display: grid;
  gap: 24px;
}

.field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field--need .field__label {
  margin-bottom: 8px;
}
.field__label {
  padding: 0;
  font-size: 15px;
  line-height: 1.3;
  color: var(--sheet-ink);
  font-variation-settings:
    'wdth' 100,
    'wght' 650;
}
.field__input {
  display: block;
  width: 100%;
  min-width: 0;
  height: var(--fh);
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.78);
  color: var(--sheet-ink);
  caret-color: var(--violet-deep);
  font: inherit;
  font-size: 17px;
  line-height: 1.4;
  font-variation-settings:
    'wdth' 100,
    'wght' 400;
  box-shadow: inset 0 0 0 1.5px var(--violet-deep);
  -webkit-appearance: none;
  appearance: none;
}
.field__input--area {
  height: auto;
  min-height: clamp(
    144px,
    calc(9vw - 12px),
    188px
  ); /* 12px less than the 155–200px it had (five rows, or 9vw): Send grew by as much, so the form keeps its height and the left column its gap */
  padding: 14px 16px;
  line-height: 1.5;
  resize: vertical;
}
.field__input::placeholder {
  color: #8c849a;
  opacity: 1;
}
.field__input:focus-visible {
  outline: 2px solid var(--sheet-ink);
  outline-offset: 3px;
}
@media (hover: hover) {
  .field__input:hover {
    box-shadow: inset 0 0 0 1.5px var(--sheet-ink);
  }
}
.field__err {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--vermilion-deep);
  font-variation-settings:
    'wdth' 100,
    'wght' 600;
}
.field.is-invalid .field__input {
  box-shadow: inset 0 0 0 2px var(--vermilion-deep);
}

/* The need: four cells, one chosen. A cell is a tab (the logo's 14° slant) in contour; the chosen one is filled, as an active tab is. */
.choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 640px) {
  .choices {
    grid-template-columns: 1fr 1fr;
    gap: 12px 12px;
  }
}
.choice {
  --hh: var(--fh);
  --s: calc(var(--hh) * .25);
  --k: 1.5px;
  position: relative;
  isolation: isolate;
  display: block;
  height: var(--hh);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.choice__face {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 0 calc(var(--s) + 10px) 0 18px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--sheet-ink);
  font-variation-settings:
    'wdth' 100,
    'wght' 600;
}
.choice__face::before,
.choice__face::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}
.choice__face::before {
  background: rgba(255, 255, 255, 0.78);
  clip-path: polygon(0 0, calc(100% - var(--s)) 0, 100% 100%, 0 100%);
}
.choice__face::after {
  background: var(--violet-deep);
  clip-path: polygon(
    evenodd,
    0 0,
    calc(100% - var(--s)) 0,
    100% 100%,
    0 100%,
    0 0,
    var(--k) var(--k),
    calc(100% - var(--s) - var(--k) * 0.78) var(--k),
    calc(100% - var(--k) * 1.28) calc(100% - var(--k)),
    var(--k) calc(100% - var(--k)),
    var(--k) var(--k)
  );
}
.choice input:checked + .choice__face {
  color: var(--sheet);
}
.choice input:checked + .choice__face::before {
  background: var(--violet-deep);
}
.choice input:checked + .choice__face .mk--music {
  background: var(--sheet);
}
.choice input:checked + .choice__face .mk--biz {
  box-shadow: inset 0 0 0 1.5px var(--sheet);
}
.mk--none {
  background: none;
}
@media (hover: hover) {
  .choice:hover input:not(:checked) + .choice__face::after {
    background: var(--sheet-ink);
  }
}
/* The focus ring follows the tab's shape, as on every tab (css/system.css). */
.choice:has(input:focus-visible)::after {
  --s: calc((var(--hh) + 10px) * .25);
  --k: 2px;
  content: '';
  position: absolute;
  inset: -5px;
  z-index: -2;
  background: var(--sheet-ink);
  clip-path: polygon(
    evenodd,
    0 0,
    calc(100% - var(--s)) 0,
    100% 100%,
    0 100%,
    0 0,
    var(--k) var(--k),
    calc(100% - var(--s) - var(--k) * 0.78) var(--k),
    calc(100% - var(--k) * 1.28) calc(100% - var(--k)),
    var(--k) calc(100% - var(--k)),
    var(--k) var(--k)
  );
}
.field--need.is-invalid .choice input:not(:checked) + .choice__face::after {
  background: var(--vermilion-deep);
}

/* The trap field: out of the page's reach, never in the tab order or the accessibility tree. */
.ct-trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Send: the one filled tab. While sending it is ink, keeps its width, and the crest above the form plucks (js/contact.js). */
.ct-submit {
  display: grid;
  gap: 12px;
}
.ct-send {
  --hh: calc(var(--fh) + 12px);
  width: 100%;
  font-size: 18px;
  cursor: pointer;
  margin: 0;
  font-family: inherit;
}
.ct-send:focus-visible::after {
  background: var(--sheet-ink);
}
.ct-send[aria-disabled='true'] {
  --tab-bg: var(--sheet-ink);
  cursor: progress;
}
.ct-status {
  margin: 0;
  min-height: 44px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--vermilion-deep);
  font-variation-settings:
    'wdth' 100,
    'wght' 600;
}
.ct-status a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
.ct-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Sent: a vermilion mass rises through the form from its bottom edge; its crest rides the top. The type is docked at the foot of the mass. */
.ct-sent {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.ct-sent__win {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: auto;
  background:
    radial-gradient(ellipse 70% 75% at 10% 100%, #f98a61 0%, transparent 70%),
    radial-gradient(ellipse 55% 70% at 100% 0%, #bd3817 0%, transparent 72%), var(--vermilion);
}
/* The film takes the close treatment (sections.css .close__film). Under reduced motion the poster stays. */
.ct-sent__film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 35%;
  pointer-events: none;
  filter: grayscale(1) contrast(1.2) brightness(1.25);
  mix-blend-mode: multiply;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 68%);
  mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 68%);
}
.ct-sent__in {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: var(--on-vermilion);
}
.ct-sent .ct-sent__crest {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}
.ct-sent .string[data-branch] {
  --crest: url(#mix);
}
.ct-sent__film[data-still] {
  object-position: 95% 35%;
} /* the poster frames the singer, who stands at the right of close.jpg; the film's own frames move */
@media (max-width: 1023px) {
  .ct__panel.is-sent {
    padding: 0;
  }
  .ct__panel.is-sent > :is(.ct-form, .ct__crest) {
    display: none;
  }
  .ct__panel.is-sent .ct-sent {
    position: relative;
    inset: auto;
    min-height: clamp(380px, 62svh, 520px);
  }
}
.ct-sent__msg {
  margin: 0;
  max-width: 18em;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.35;
  font-variation-settings:
    'wdth' 100,
    'wght' 600;
}
.ct-sent__msg:focus-visible {
  outline: none;
}
.ct-sent__big {
  display: block;
  margin-bottom: 16px;
  text-wrap: balance;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.28;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  word-spacing: 0.1em;
  font-variation-settings:
    'wdth' 62,
    'wght' 900;
}
.ct-sent__thanks {
  display: block;
}
@media (min-width: 640px) {
  .ct-sent__in {
    padding: 40px;
  }
}

/* The seam into the night footer carries the mix crest, as the business close does. */
.ct__seam {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.ct__seam .string[data-branch] {
  --crest: url(#mix);
}

@media (prefers-reduced-motion: reduce) {
  .ct-sent__win,
  .ct-sent__in,
  .ct-sent__crest {
    transition: none;
  }
}
