/* ============================================================
   DJ WIZ HOFFA — CONTACT page layout
   css/pages/contact.css?v=4 — loads after tokens.css + site.css.
   Page-scope layout only. Never restyles the shell, never
   declares :root, never overrides tokens.

   Contrast law: no crimson TEXT anywhere. Crimson appears here
   only as a surface (the full-bleed call band) and as hairline
   rules/ticks. Text on crimson is always ivory.

   Motion hooks are never pre-hidden here — the page reads in
   full with JS disabled (ARCHITECTURE.md §5).

   TOC:
   01 Hero (type-led)          04 General inquiry
   02 Full-bleed call band     05 Booking CTA band
   03 Direct-line rail
   ============================================================ */

/* ---------- 01 Hero — type-led, no photograph ---------- */
.chero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 11vw, 7.5rem));
  padding-bottom: var(--sect-pad);
}

.chero-top { padding-bottom: clamp(2.5rem, 7vw, 4.5rem); }

.chero .eyebrow { margin-bottom: clamp(1.25rem, 3vw, 2rem); }

.chero .hero-title {
  margin-left: -0.045em;          /* optical left-align for Anton */
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.chero .lead {
  max-width: 44ch;
  color: var(--ivory-80);
}

/* ---------- 02 Full-bleed call band ----------
   The single crimson SURFACE on the page and the primary action.
   Deliberately outside .container so it runs edge to edge; it is
   never animated in, so the phone number is present the instant
   the page paints. */
.callband {
  display: block;
  width: 100%;
  background: linear-gradient(180deg,
    var(--crimson) 0%,
    color-mix(in srgb, var(--crimson) 72%, var(--crimson-deep)) 100%);
  color: var(--ivory);
  text-decoration: none;
  border-block: 1px solid color-mix(in srgb, var(--bg) 35%, transparent);
  transition: background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}

.callband:hover,
.callband:focus-visible {
  background: linear-gradient(180deg,
    var(--crimson-hot) 0%,
    color-mix(in srgb, var(--crimson-hot) 78%, var(--crimson-deep)) 100%);
  box-shadow: var(--glow-crimson-soft);
}

.callband:active {
  background: linear-gradient(180deg,
    var(--crimson-deep) 0%,
    color-mix(in srgb, var(--crimson-deep) 82%, var(--bg)) 100%);
}

.callband:focus-visible { outline-offset: -4px; }

.callband-inner {
  width: min(100% - (2 * var(--gutter)), var(--w-max));
  margin-inline: auto;
  display: grid;
  gap: var(--sp-4);
  padding-block: clamp(1.75rem, 5vw, 3.25rem);
}

.callband-label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--ivory-80);
}

.callband-num {
  font-family: var(--font-logo);          /* Bebas numerals */
  font-size: clamp(2.35rem, 11.5vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: 0.015em;
  white-space: nowrap;
  color: var(--ivory);
}

.callband-meta {
  font-size: var(--fs-small);
  color: var(--ivory-80);
  max-width: 40ch;
}

/* Arrow rides the baseline of the number on wide screens */
.callband-arrow {
  display: none;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  line-height: 1;
  color: var(--ivory-80);
  transition: transform var(--dur-2) var(--ease), color var(--dur-1) var(--ease);
}

.callband:hover .callband-arrow {
  color: var(--ivory);
  transform: translate(4px, -4px);
}

@media (min-width: 768px) {
  /* Explicit areas — auto-placement would fight the spanning label. */
  .callband-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label arrow"
      "num   meta";
    align-items: end;
    column-gap: var(--sp-6);
  }

  .callband-label { grid-area: label; }
  .callband-num   { grid-area: num; }

  .callband-meta {
    grid-area: meta;
    text-align: right;
    padding-bottom: 0.45rem;
  }

  .callband-arrow {
    display: block;
    grid-area: arrow;
    justify-self: end;
  }
}

/* ---------- 03 Direct-line rail ----------
   Deliberately NOT cards — hairline-ruled columns so the crimson
   band above stays the only heavy object in the hero.
   Class name .dgrid is the hero-choreography contract in
   js/motion.js (COPY_SEL: '.dgrid > *') — do not rename. */
.dgrid {
  margin-top: clamp(2.5rem, 7vw, 4.25rem);
  display: grid;
  gap: 0;
}

.dline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  min-height: 44px;
  padding: clamp(1.35rem, 3.5vw, 2rem) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: border-color var(--dur-2) var(--ease), padding-left var(--dur-2) var(--ease);
}

.dgrid > .dline:last-child { border-bottom: 1px solid var(--line); }

a.dline:hover,
a.dline:focus-visible {
  border-top-color: var(--line-crimson);
  padding-left: var(--sp-4);
}

.dline-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--smoke);
}

.dline-label::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--crimson);
  flex: none;
}

.dline-value {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: clamp(1.3rem, 4.4vw, 1.9rem);
  line-height: 1.15;
  color: var(--ivory);
  overflow-wrap: anywhere;
}

.dline-meta {
  font-size: var(--fs-small);
  color: var(--smoke);
  max-width: 46ch;
}

.dline-glyph {
  position: absolute;
  top: clamp(1.35rem, 3.5vw, 2rem);
  right: 0;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--ivory-60);
  transition: color var(--dur-1) var(--ease), transform var(--dur-2) var(--ease);
}

a.dline:hover .dline-glyph,
a.dline:focus-visible .dline-glyph {
  color: var(--crimson-hot);       /* decorative accent, not copy */
  transform: translate(3px, -3px);
}

@media (min-width: 980px) {
  .dgrid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--sp-7);
  }

  .dgrid > .dline:last-child { border-bottom: 0; }

  .dline { padding-right: var(--sp-6); }

  /* Columns get narrow at 980 — step the value down so the long email
     address never has to break mid-word. */
  .dline-value { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }

  .dline-glyph { right: var(--sp-5); }
}

/* ---------- 04 Official channels — index rails ---------- */
.chan-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 768px) {
  .chan-grid { grid-template-columns: 1fr 1fr; column-gap: clamp(2.5rem, 6vw, 5rem); }
}

.chan-head {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--smoke);
  position: relative;
  padding-bottom: var(--sp-3);
  border-bottom: 0;
  margin-bottom: var(--sp-2);
}

.chan-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--crimson);
}

.chan-list { display: flex; flex-direction: column; }

.chan {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  min-height: 56px;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: border-color var(--dur-2) var(--ease), padding-left var(--dur-2) var(--ease);
}

.chan:hover,
.chan:focus-visible {
  border-bottom-color: var(--line-crimson);
  padding-left: var(--sp-4);
}

.chan-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--ivory);
}

.chan-handle {
  margin-left: auto;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--smoke);
  text-align: right;
  overflow-wrap: anywhere;
  transition: color var(--dur-1) var(--ease);
}

.chan:hover .chan-handle,
.chan:focus-visible .chan-handle { color: var(--ivory); }

.chan-arrow {
  flex: none;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--ivory-60);
  transition: transform var(--dur-2) var(--ease), color var(--dur-1) var(--ease);
}

.chan:hover .chan-arrow,
.chan:focus-visible .chan-arrow {
  color: var(--crimson-hot);
  transform: translate(3px, -3px);
}

/* Digital contact card — one wide artifact under the two rails */
.card-strip {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-6);
  padding: clamp(1.35rem, 3.5vw, 2rem) clamp(1.35rem, 3.5vw, 2.25rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--crimson);
  border-radius: var(--r-sm);
}

.card-strip-copy { flex: 1 1 22ch; }

.card-strip-title {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--ivory);
}

.card-strip-meta {
  margin-top: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--smoke);
}

/* ---------- 05 General inquiry — form + portrait ---------- */
.inq-grid { display: grid; gap: clamp(2.5rem, 7vw, 4rem); }

@media (min-width: 980px) {
  .inq-grid {
    grid-template-columns: 1.12fr 0.88fr;
    column-gap: var(--sp-9);
    align-items: start;
  }
}

/* Cindy §16 fit: between 620 and the 980 two-column breakpoint the framed
   portrait became a billboard. At 768 the .inq-grid ran 1803px tall, of
   which the photo frame alone was ~1046px against a ~750px form — in a
   section titled "Send a Message." the photo out-scaled the content two to
   one on the most common tablet width, and the single-line Name/Email
   inputs stretched to a 700px measure. Caps only below the breakpoint; at
   >=980 the 1.12fr/0.88fr grid already sizes it correctly, and the img
   aspect-ratio is untouched so nothing crops off his head. */
@media (max-width: 979.98px) {
  .inq-photo {
    max-width: 26rem;
    margin-inline: auto;
  }

  .cform { max-width: 34rem; }
}

.inq-alt {
  margin-top: var(--sp-4);
  color: var(--ivory-80);
  max-width: 56ch;
}

.cform { display: grid; gap: var(--sp-5); }

.field { display: grid; gap: var(--sp-2); }

.field > label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--ivory-80);
}

/* Cindy §14 contrast: the page's only form was effectively invisible.
   The old --line-strong border over a #101013 fill composited to 1.87:1
   against its own fill and 1.95:1 against the page ground, failing WCAG
   1.4.11 (3:1 for form-control boundaries), and the fill itself was 1.04:1
   against --bg — so the Name/Email/Message boxes read as empty black space
   beside the "Send a Message." headline. Lifting the fill to the raised
   surface token and the border to 36% ivory measures 3.07:1 vs fill and
   3.40:1 vs page. :focus / :focus-visible are deliberately untouched — the
   ivory ring already passes — and min-height is unchanged. */
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  background: var(--panel-2);
  border: 1px solid color-mix(in srgb, var(--ivory) 36%, transparent);
  border-radius: var(--r-sm);
  color: var(--ivory);
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}

.field textarea { min-height: 10.5rem; resize: vertical; }

/* Hover tier below focus — telegraphs interactivity on pointer-over
   without touching the verified 36% resting border or the ivory focus ring;
   degrades fine with no JS. */
.field input:hover:not(:focus),
.field textarea:hover:not(:focus) {
  border-color: color-mix(in srgb, var(--ivory) 50%, transparent);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ivory);
  background: var(--panel-2);
  outline: none;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 2px;
}

.cform-note {
  font-size: var(--fs-small);
  color: var(--smoke);
  max-width: 54ch;
}

.cform .btn { justify-self: start; }

.cform-fallback {
  font-size: var(--fs-small);
  color: var(--smoke);
  max-width: 54ch;
}

.cform-fallback a { color: var(--ivory-80); }

/* Framed portrait beside the form — echoes the flyer-frame language */
.inq-photo {
  margin: 0;
  padding: var(--sp-4);
  background: var(--panel);   /* Cindy §18 — was a raw #101013 */
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-2);
}

.inq-photo img {
  width: 100%;
  aspect-ratio: 1080 / 1616;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  /* Cindy §17 bg-mute: wiz-store-06.jpg is the only saturated object on a
     black/crimson/ivory page (purple wall, yellow tab, full-spectrum record
     spines) and it sits directly beside the form. Content is king and the
     content here is the form, not the portrait. Graded, not recolored —
     scoped to .inq-photo so no other imagery on the site shifts. */
  filter: saturate(0.72) contrast(1.04) brightness(0.94);
}

.inq-photo figcaption {
  padding-top: var(--sp-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--ivory-60);
}

/* ---------- 06 Booking CTA band ---------- */
/* Closing air — the emotional closer wants room to land against the footer.
   Page-scoped to this section so the shared .sect--tight token is untouched. */
.sect--tight.haze { padding-block: calc(var(--sect-pad) * 0.85); }

.cta-panel {
  position: relative;
  padding: clamp(2.5rem, 7vw, 4.75rem) clamp(1.4rem, 5vw, 4rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--crimson);
  border-radius: var(--r-md);
  text-align: center;
}

/* Cindy §15 gradient: the closing moment landed on a flat slab and the
   .haze applied to its section was functionally dead — .haze::before sits
   at z-index -1 and the opaque .cta-panel painted straight over it, so the
   crimson blush survived only as a 101px sliver above the panel and was
   gone the moment the panel started. Five stacked surfaces measured one
   ~0.001 luminance step across the entire scroll. Scoped to this section
   so no other .cta-panel ripples; the lightest point of the new ground is
   still darker than --panel-2, so all type contrast is unchanged. */
.sect--tight.haze .cta-panel {
  background:
    radial-gradient(120% 140% at 50% 0%,
      color-mix(in srgb, var(--crimson) 16%, transparent), transparent 65%),
    linear-gradient(to bottom, var(--panel-2), var(--panel) 62%);
}

.cta-panel .eyebrow {
  justify-content: center;
  margin-bottom: var(--sp-4);
}

.cta-panel h2 { margin-bottom: var(--sp-4); }

.cta-panel .lead {
  margin-inline: auto;
  max-width: 46ch;
  color: var(--ivory-80);
}

.cta-actions {
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
}

.cta-close {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--smoke);
}
