/* ==========================================================================
   Forma Consulting - contact.html page styles
   Loaded AFTER styles.css; inherits every token and device from it.
   ========================================================================== */

/* ---------- Hero: copy left, intake sheet right ---------- */
.contact-hero { padding-bottom: clamp(68px, 7.5vw, 112px); }
.contact-inner {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.contact-stage { min-width: 0; }

/* ---------- Direct path to a call ---------- */
.direct {
  margin: 34px 0 0; padding: 22px 0; max-width: 420px;
  border-top: 1px solid var(--hairline-dark); border-bottom: 1px solid var(--hairline-dark);
}
.direct-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper-dim); margin-bottom: 14px;
}
.direct-note { margin-top: 13px; font-size: 0.8125rem; color: var(--paper-dim); }

/* ---------- Who reads it ---------- */
.meet { margin-top: 34px; display: flex; flex-direction: column; gap: 13px; }
.meet-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper-dim);
}
.meet-row { display: flex; align-items: center; gap: 13px; }
.meet-face {
  flex: none; width: 44px; height: 44px;
  object-fit: cover; object-position: top;
  border: 1px solid rgba(244, 241, 236, 0.22); border-radius: 10px;
  background: var(--navy-raise);
  filter: saturate(0.9) contrast(1.03);
}
.meet-face-slot {
  flex: none; width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(244, 241, 236, 0.25);
  font-size: 0.66rem; color: var(--paper-dim);
}
.meet-row b { display: block; font-size: 0.9rem; font-weight: 700; color: var(--offwhite); line-height: 1.35; }
.meet-row span { display: block; font-size: 0.78rem; color: var(--paper-dim); }
.meet-note { font-size: 0.875rem; color: var(--paper-ink); padding-top: 3px; }

/* ---------- The intake sheet (the landing's letter, made structural) ----------
   A white call sheet cut with the button's corner; the gold rule that used to
   arrive top-left is dropped for a softer, ambient shadow only. */
.intake-sheet {
  position: relative; isolation: isolate;
  padding: clamp(32px, 4vw, 52px) clamp(28px, 3.6vw, 48px) clamp(28px, 3.4vw, 42px);
  background: transparent; box-shadow: none;
}
.intake-sheet::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--white);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  filter: drop-shadow(0 1px 2px rgba(4, 12, 22, 0.14)) drop-shadow(0 40px 80px rgba(4, 12, 22, 0.26));
}
.sheet-head { margin-bottom: 26px; }
.sheet-kicker {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.sheet-kicker::before { content: ""; width: 12px; height: 2px; border-radius: 2px; background: var(--gold); }
.sheet-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }

.intake-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.18s;
}
.field.ok label { color: var(--teal); }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 0.95rem; line-height: 1.5; color: var(--navy);
  background: var(--white); border: 1px solid rgba(14, 42, 71, 0.2); border-radius: 0;
  padding: 13px 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:hover, .field textarea:hover { border-color: rgba(14, 42, 71, 0.36); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(14, 42, 71, 0.38); }
.field textarea { resize: vertical; min-height: 112px; }

/* Optional interest chips: multi-select, styled to the form's teal "noted" language */
.field-opt {
  font-weight: 500; text-transform: none; letter-spacing: 0;
  color: rgba(14, 42, 71, 0.42); font-size: 0.82em;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 600;
  color: var(--navy); background: #fff;
  border: 1px solid rgba(14, 42, 71, 0.18); border-radius: 0;
  padding: 8px 15px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.chip:hover { border-color: rgba(14, 42, 71, 0.36); }
.chip[aria-pressed="true"] {
  border-color: var(--teal); background: rgba(71, 168, 154, 0.12);
}
.chip[aria-pressed="true"]::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px;
  border-radius: 50%; background: var(--teal); vertical-align: middle;
}

.intake-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding-top: 4px;
}
.intake-actions .btn-gold[disabled] { opacity: 0.65; cursor: default; transform: none !important; }
.sent-state {
  display: none; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 600; color: var(--teal);
}
.sent-state.shown { display: inline-flex; }

/* The trace: capture narration in the landing's annotation voice */
.intake-trace { margin-top: 18px; max-width: 520px; }
.trace-label {
  font-size: 0.8125rem; color: var(--paper-dim);
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px;
}
.trace-label::before { content: ""; width: 18px; height: 1px; background: var(--teal); flex: none; align-self: center; }
.intake-trace ul { display: flex; flex-direction: column; gap: 3px; min-height: 66px; }
.intake-trace li {
  display: flex; align-items: baseline; gap: 9px;
  font-size: 0.75rem; color: var(--paper-dim);
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: trace-in 0.35s var(--ease);
}
.intake-trace li::before { content: ""; width: 12px; height: 2px; border-radius: 2px; background: var(--teal); flex: none; align-self: center; }
.intake-trace li b { color: var(--teal); font-weight: 600; }
@keyframes trace-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- What happens next ---------- */
.after { background: var(--offwhite); padding: clamp(72px, 8.5vw, 124px) 0 clamp(104px, 12vw, 180px); }
.after-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.after-step { position: relative; padding-top: 22px; border-top: 1px solid var(--hairline-light); transition: border-color 0.35s var(--ease); }
.after-step:hover { border-top-color: var(--gold); }
/* the journey's station mark: each step is a stop on the same route */
.after-step::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px;
  background: var(--offwhite); border: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: background 0.4s var(--ease);
}
html.js .after-grid.rv-in .after-step:nth-child(1)::before { transition-delay: 0.5s; }
html.js .after-grid.rv-in .after-step:nth-child(2)::before { transition-delay: 0.84s; }
html.js .after-grid.rv-in .after-step:nth-child(3)::before { transition-delay: 1.18s; }
.after-grid.rv-in .after-step::before, html.no-js .after-step::before { background: var(--gold); }
.after-when {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 8px;
}
.after-step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin-bottom: 8px; }
.after-step > p:last-child { font-size: 0.95rem; color: var(--ink-soft); max-width: 34ch; }

/* Staggered entrance once the grid reveals */
html.js .after-grid .after-step { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.js .after-grid.rv-in .after-step { opacity: 1; transform: none; }
html.js .after-grid.rv-in .after-step:nth-child(2) { transition-delay: 0.18s; }
html.js .after-grid.rv-in .after-step:nth-child(3) { transition-delay: 0.36s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .contact-inner { grid-template-columns: 1fr; gap: 52px; }
  .contact-copy { max-width: 620px; }
  .contact-stage { max-width: 620px; }
}

@media (max-width: 860px) {
  .after-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .intake-actions .btn-gold { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .after-grid .after-step { opacity: 1; transform: none; }
  .intake-trace li { animation: none !important; }
}
