/* site-v2 contact + booking page (thanks links this file too). Loaded after v2.css.
   The page head is a compact ink thesis with no photo, so on a phone the form starts within one thumb.
   The form keeps /contact/'s markup contract for site.js: .cond toggled .on, .hp-field, .form-error. */

/* ---------- page head ---------- */
.phead { background: var(--ink); color: var(--dark-fg); }
.phead-in { width: min(var(--maxw), 100% - 32px); margin-inline: auto; padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 88px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "label label" "h1 side"; gap: 0 clamp(28px, 5vw, 80px); align-items: end; }
.phead .label { grid-area: label; color: var(--flame-on-dark); }
.phead h1 { grid-area: h1; font-size: clamp(64px, 9vw, 150px); line-height: .9; letter-spacing: -0.03em; }
.phead h1 em { font-style: italic; color: var(--flame-on-dark); }
.phead-side { grid-area: side; padding-bottom: 8px; }
.phead-lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--dark-muted); max-width: 40ch; }
.phead .hero-facts { margin-top: 24px; padding-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .phead-in > * { animation: rise .9s var(--ease) both; }
  .phead-in > :nth-child(2) { animation-delay: .08s; } .phead-in > :nth-child(3) { animation-delay: .18s; }
}
@media (max-width: 900px) {
  .phead-in { grid-template-columns: 1fr; grid-template-areas: "label" "h1" "side"; padding-block: 36px 36px; }
  .phead h1 { font-size: clamp(56px, 16vw, 88px); margin-bottom: 18px; }
  .phead .hero-facts { font-size: 15px; margin-top: 20px; padding-top: 16px; }
}

/* ---------- form section ---------- */
.consult { padding-block: clamp(56px, 8vw, 120px); scroll-margin-top: 0; }
.consult-grid { width: min(var(--maxw), 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

.form-shell { background: #fff; color: var(--light-fg); border: 1px solid var(--light-line); box-shadow: 0 40px 80px -48px rgba(22,20,18,.45); position: relative; }
.form-shell::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--flame); }
.form-top { display: flex; justify-content: space-between; gap: 12px; padding: 22px clamp(20px, 3.4vw, 44px) 16px; border-bottom: 1px solid var(--light-line);
  font: 700 14px/1.3 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--light-muted); }
.form-top span:first-child { color: var(--flame); }
.form-shell form { padding: clamp(24px, 3.4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-grid legend, .fhead { padding: 0; margin: 0 0 14px; display: flex; align-items: baseline; gap: 12px; font: 400 clamp(25px, 2.2vw, 30px)/1.15 var(--display); color: var(--light-fg); }
.fhead { margin: 18px 0 -4px; padding-top: 26px; border-top: 1px solid var(--light-line); }
.fstep { font: 700 14px/1 var(--label); letter-spacing: .14em; color: var(--flame); }

/* two ICP paths as big tappable cards */
.path-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.path-pick > span { position: relative; display: block; }
.path-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.path-pick label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 88px; height: 100%; padding: 16px 16px;
  border: 1.5px solid var(--light-line); background: var(--stone); cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s, transform .2s var(--ease); }
.path-pick .tile { --t: 48px; color: var(--light-fg); transition: background-color .2s, border-color .2s, color .2s; }
.path-pick .tile .icon { width: 22px; height: 22px; }
.pp-txt b { display: block; font: 600 17px/1.25 var(--body); }
.pp-txt span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.4; color: var(--light-muted); }
.pp-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(27,25,23,.3); position: relative; transition: border-color .2s; }
.pp-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--flame); transform: scale(0); transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.path-pick label:hover { border-color: rgba(27,25,23,.38); }
.path-pick input:checked + label { border-color: var(--flame); background: #fdf1ec; box-shadow: 0 14px 30px -22px rgba(217,72,31,.9); }
.path-pick input:checked + label .tile { background: var(--flame); border-color: var(--flame); color: #fff; }
.path-pick input:checked + label .pp-dot { border-color: var(--flame); }
.path-pick input:checked + label .pp-dot::after { transform: scale(1); }
.path-pick input:focus-visible + label { outline: 3px solid var(--flame); outline-offset: 3px; }

/* conditional questions: site.js toggles .on and disables the hidden set */
.cond { display: none; }
.cond.on { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; grid-column: 1 / -1; }
@media (prefers-reduced-motion: no-preference) { .cond.on { animation: rise .45s var(--ease) both; } }
.cond .full { grid-column: 1 / -1; }

.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field label { font: 600 15px/1.35 var(--body); color: var(--light-fg); }
.field input, .field select, .field textarea { width: 100%; min-height: 56px; padding: 14px 16px; font: 400 17px/1.4 var(--body); color: var(--light-fg);
  background: var(--stone); border: 1.5px solid rgba(27,25,23,.2); border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field select { padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9481f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8d877d; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(27,25,23,.4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--flame); background-color: #fff; box-shadow: 0 0 0 4px rgba(217,72,31,.16); }
.field input:user-invalid, .field select:user-invalid { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179,38,30,.12); }

.form-end { margin-top: 6px; }
.form-end .btn { width: 100%; min-height: 60px; font-size: 16px; }
.form-note { margin-top: 14px; font-size: 16px; line-height: 1.5; color: var(--light-muted); text-wrap: pretty; }
.form-consent { margin-top: 8px; font-size: 14px; }
.form-consent a { color: var(--flame-deep); text-underline-offset: 3px; }
.form-error { display: none; margin-top: 14px; padding: 12px 14px; border-left: 3px solid #b3261e; background: #fbeceb; color: #7d1a14; font-size: 16px; }
.form-error.on { display: block; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-bottom: 14px; }

/* what happens next */
.next { position: sticky; top: 104px; }
.next h2 { font-size: clamp(36px, 3.6vw, 54px); line-height: 1.02; margin-bottom: 28px; }
.next .rows h3 { font-size: clamp(23px, 2vw, 27px); }
.next .rows > li { padding: 24px 0; }
.skip-form { margin-top: 32px; padding: 26px 24px; background: var(--stone2); color: var(--light-fg); }
.skip-form h3 { font: 400 clamp(24px, 2vw, 28px)/1.15 var(--display); margin-bottom: 16px; }
.skip-act { display: grid; gap: 10px; justify-items: start; }
.skip-act .btn { gap: 10px; text-transform: none; letter-spacing: .01em; font-size: 16px; color: var(--light-fg); }
.skip-act .btn .icon { width: 18px; height: 18px; }
.skip-act .btn:hover, .skip-act .btn:focus-visible { color: #fff; }

/* closer actions */
.ask-act { display: flex; flex-wrap: wrap; gap: 12px; }
.ask .btn.ghost { color: #fff; }
.ask-act .btn { text-transform: none; letter-spacing: .01em; font-size: 16px; }

@media (max-width: 1000px) {
  .consult-grid { grid-template-columns: 1fr; }
  .next { position: static; }
}
/* phone: the form runs edge to edge inside the gutter, one column, thumb-sized controls */
@media (max-width: 640px) {
  .consult { padding-block: 0 64px; }
  .consult-grid { width: 100%; gap: 56px; }
  .form-shell { border-inline: 0; box-shadow: none; }
  .form-top { padding: 18px 16px 14px; font-size: 14px; letter-spacing: .1em; flex-wrap: wrap; row-gap: 4px; }
  .form-top span { white-space: nowrap; }
  .form-shell, .next { min-width: 0; }
  .form-shell::before { left: 0; right: 0; }
  .form-shell form { padding: 22px 16px 28px; }
  .form-grid, .cond.on { grid-template-columns: 1fr; gap: 20px; }
  .path-pick { grid-template-columns: 1fr; gap: 10px; }
  .path-pick label { min-height: 76px; padding: 14px; }
  .next { width: calc(100% - 32px); margin-inline: auto; }
  .skip-form { padding: 22px 18px; }
  .skip-act .btn { width: 100%; justify-content: flex-start; }
  .ask-act .btn { width: 100%; }
}

/* ---------- booking page (thanks) ---------- */
.book { padding-block: clamp(56px, 8vw, 112px); }
.book-in { width: min(980px, 100% - 32px); margin-inline: auto; }
.cal-slot { background: #fff; color: var(--light-fg); border: 1px solid var(--light-line); box-shadow: 0 40px 80px -48px rgba(22,20,18,.45); overflow: hidden; min-height: 480px; position: relative; }
.cal-slot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--flame); z-index: 1; }
.cal-slot.pending { display: grid; place-items: center; text-align: center; padding: clamp(36px, 6vw, 72px) 20px; border-style: dashed; border-color: rgba(27,25,23,.28); box-shadow: none; background: var(--stone); }
.cal-slot.pending .tile { margin: 0 auto 18px; color: var(--flame); }
.cal-note { font: 700 14px/1.3 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--light-muted); }
.cal-slot.pending p:not(.cal-note) { margin: 12px auto 0; max-width: 38ch; font-size: 17px; color: var(--light-muted); }
.cal-slot.pending .btn { margin-top: 20px; }
/* Temporary book-by-email state (2026-11-11, until Izzy's Calendly link is in config.js): a finished card, not a
   dashed placeholder. site.js adds .cal-live to <html> when CALENDLY_URL is set, which swaps the data-cal copy. */
.cal-slot.pending { border-style: solid; border-color: var(--light-line); background: #fff; box-shadow: 0 40px 80px -48px rgba(22,20,18,.45); min-height: 0; }
.cal-slot.pending .cal-alt { font-size: 16px; }
.cal-slot.pending .cal-alt a { color: var(--flame); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding-block: 10px; }
html.cal-live [data-cal="off"], html:not(.cal-live) [data-cal="on"] { display: none; }
@media (max-width: 700px) {
  .book { padding-block: 0 56px; }
  .book-in { width: 100%; }
  .cal-slot { border-inline: 0; }
  .book-note { width: calc(100% - 32px); margin-inline: auto; }
}
.book-note { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 16px; color: var(--muted); }
.book-note .btn { text-transform: none; letter-spacing: .01em; font-size: 16px; }

/* Milan 2026-10-16: contact and booking open white and stay white all the way down; no fade from black, no cream. */
body.page-white { --stone: #fff; --bg: #fff; background: #fff; }
body.page-white .mast { background: #fff; }
.phead { background: #fff; color: var(--light-fg); border-bottom: 1px solid var(--light-line); }
.phead .label, .phead h1 em { color: var(--flame); }
.phead-lede { color: var(--light-muted); }
.phead .hero-facts { border-top-color: var(--light-line); color: var(--light-fg); }
.phead .hero-facts li:not(:last-child)::after { color: var(--flame); }
.skip-form { background: #f6f5f2; }
