/* Contact page: only what sits inside its own visuals (the scoping console, the form box, the "what happens next" cards). */

/* ---- the three questions ---- */
.sc-groups { display: grid; gap: var(--s-4); }
.sc-groups fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.sc-groups legend { padding: 0; margin-bottom: var(--s-2); font: 500 var(--t-small)/1.4 var(--font-text); color: var(--ink); }
.sc-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.sc-chip {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 8%, var(--bg)); box-shadow: inset 0 0 0 2px transparent;
  font: 500 var(--t-small)/1.2 var(--font-text); cursor: pointer;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.sc-chip:hover { background: color-mix(in oklab, var(--ink) 14%, var(--bg)); }
.sc-chip input { appearance: none; -webkit-appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }   /* the radio is the chip's own surface: the kit's focus ring draws round it */
.sc-chip:has(input:checked) { background: color-mix(in oklab, var(--accent) 12%, var(--bg)); box-shadow: inset 0 0 0 2px var(--action); }

/* ---- the scoping sheet (a drawn document, true UI scale) ---- */
.sc-sheet { display: block; }
.sc-sheet__head { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--u-line); }
.sc-sheet__head b { font-weight: 500; font-size: 13px; }
.sc-sheet__status { margin-left: auto; }
.sc-fields { margin: 0; padding: 4px 16px; }
.sc-fields > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--u-line); }
.sc-fields > div:last-child { border-bottom: 0; }
.sc-fields dt { color: var(--u-muted); font-size: 13px; }
.sc-fields dd { margin: 0; min-height: 20px; font-size: 14px; font-weight: 500; }
.sc-fields dd.is-pending { color: var(--u-muted); font-weight: 400; }
.sc-outs { display: grid; gap: 16px; padding: 16px; background: var(--u-fill); border-block: 1px solid var(--u-line); }
.sc-out__label { margin: 0; font-size: 13px; line-height: 20px; color: var(--u-muted); }
.sc-out__text { margin: 4px 0 0; min-height: 42px; max-width: none; font-size: 14px; line-height: 21px; color: var(--u-ink); }
.sc-out__skel { display: none; margin: 4px 0 0; }
.sc-out.is-skel .sc-out__text { display: none; }
.sc-out.is-skel .sc-out__skel { display: grid; gap: 10px; height: 42px; align-content: center; }
.sc-out__skel i { display: block; height: 8px; border-radius: 4px; background: var(--u-skel); }
.sc-out__skel i:last-child { width: 62%; }
.sc-foot { display: grid; gap: 12px; padding: 16px; }
.sc-foot__note { margin: 0; max-width: none; font-size: 13px; line-height: 20px; color: var(--u-muted); }
.sc-skip { margin-top: var(--s-5); }
.sc-foot .btn[aria-disabled="true"] { cursor: default; }

/* ---- the request: contact lines, the form box ---- */
.sc-direct .rows__value { max-width: none; white-space: normal; text-align: right; overflow-wrap: anywhere; }
.sc-direct__n { display: inline-flex; align-items: center; gap: var(--s-3); }
.sc-direct a, .sc-check a, .sc-result a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.sc-direct a:hover, .sc-check a:hover, .sc-result a:hover { text-decoration-color: currentColor; }
.sc-photo { aspect-ratio: 2 / 1; }
.sc-photo .frame__img { object-position: 50% 100%; }
.sc-photo--lab { aspect-ratio: 4 / 3; }
.sc-photo--lab .frame__img { object-position: 50% 50%; }   /* the drawings and the hand; the toolbox and its brand stay above the crop */
.sc-box { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-7); }
.sc-box .field textarea { min-height: 160px; }
.sc-brief { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-5); padding: var(--s-4); border-radius: var(--r-md); background: var(--bg); font-size: var(--t-small); }
.sc-brief p { margin: 0; max-width: none; }
.sc-brief b { font-weight: 500; }
.sc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sc-consent { display: grid; gap: var(--s-2); }
.sc-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); align-items: start; min-height: 44px; font-size: var(--t-small); line-height: 1.5; cursor: pointer; }
.sc-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--action); }
.form .btn-row { margin-top: var(--s-2); }
.form p.t-small { margin: 0; }
/* no-JS round trip (contact.cjs redirects to #sent or #send-error) */
.sc-result { display: none; margin: 0; padding: var(--s-4); border-radius: var(--r-md); background: var(--bg); font-weight: 500; }
.sc-result:target { display: block; }
.sc-box:has(#sent:target) :is(.form, .sc-brief) { display: none; }
.sc-result--error { margin-top: var(--s-4); }

/* ---- what happens next (pinned chapters) ---- */
.eg { display: block; width: 100%; overflow: hidden; --fx-accent: var(--accent); }
.eg__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--u-line); font-size: 13px; }
.eg__head b { font-weight: 500; }
.eg__chip { margin-left: auto; }
.eg__rows { margin: 0; padding: 4px 16px 8px; }
.eg__rows > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--u-line); font-size: 14px; }
.eg__rows > div:last-child { border-bottom: 0; }
.eg__rows dt { color: var(--u-muted); font-size: 13px; }
.eg__rows dd { margin: 0; font-weight: 500; }
.eg__more { display: none; padding: 4px 16px 20px; }
.eg__label { margin: 0 0 8px; font-size: 13px; line-height: 20px; color: var(--u-muted); }
.eg__skel { display: grid; gap: 10px; margin: 0; }
.eg__skel i { display: block; height: 8px; border-radius: 4px; background: var(--u-skel); }
.eg__skel i:nth-child(2) { width: 84%; }
.eg__skel i:nth-child(3) { width: 52%; }
.eg__net { width: 100%; height: 108px; padding: 12px 16px 0; }
.eg__agenda { display: grid; padding: 4px 16px 12px; }
.eg__agenda li { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; }
.eg__tick { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--u-tint); color: var(--u-accent-text); }
.eg__tick svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.eg__plan { display: grid; gap: 14px; padding: 16px; }
.eg__plan li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); align-items: center; gap: 12px; font-size: 13px; line-height: 18px; color: var(--u-text-2); }
.eg__track { position: relative; height: 10px; border-radius: 5px; background: var(--u-fill-2); }
.eg__track i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--u-ink); }
.eg__plan li:nth-child(2) i { background: var(--u-accent); }
.eg__plan li:nth-child(3) i { background: color-mix(in oklab, var(--u-ink) 55%, var(--u-bg)); }
.eg__plan li:nth-child(4) i { background: color-mix(in oklab, var(--u-ink) 22%, var(--u-bg)); }
.eg__track b { position: absolute; left: 0; top: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--u-accent); }
[data-moment="pinned-chapters"] .mo-pc__visual .eg { max-width: 560px; margin-inline: auto; }
[data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual .eg { max-height: 30svh; }
/* live: the card sits in the middle of the shared frame and shows its fuller state */
[data-moment="pinned-chapters"].is-live .mo-pc__visual { display: grid; align-content: center; }
[data-moment="pinned-chapters"].is-live .eg__more { display: block; }
[data-moment="pinned-chapters"].is-live .eg__net { height: 150px; }
[data-moment="pinned-chapters"].is-live .eg__agenda li { padding-block: 8px; }
[data-moment="pinned-chapters"].is-live .eg__plan { gap: 22px; padding: 24px 16px; }
[data-moment="pinned-chapters"].is-live .eg__track { height: 14px; border-radius: 7px; }
[data-moment="pinned-chapters"].is-live .eg__track i { border-radius: 7px; }
[data-moment="pinned-chapters"].is-live .eg__track b { width: 16px; height: 16px; top: -1px; }
.sc-next__link { margin-top: var(--s-5); }

@media (min-width: 640px) and (max-width: 1023px) {
  /* tablet: the console stacks; trim it to the screen (the lead is the section's only spare line, the photograph waits for the wide layout) */
  .sc-photo { display: none; }
  #scope .t-lead { display: none; }
  .sc-out__text, .sc-out.is-skel .sc-out__skel { min-height: 21px; height: auto; }
  .sc-out.is-skel .sc-out__skel { height: 21px; gap: 0; align-content: center; }
  .sc-out.is-skel .sc-out__skel i:last-child { display: none; }
  .sc-groups { gap: var(--s-3); }
  .sc-fields > div { padding-block: 6px; }
  .sc-outs { gap: 8px; padding: 10px 16px; }
  .sc-out__text { margin-top: 0; }
  .sc-foot { gap: 6px; padding: 8px 16px; }
  .sc-skip { margin-top: var(--s-3); }
  .sc-sheet__head { height: 40px; }
  .sc-fields { padding-block: 0; }
  #request .stack-5 { gap: var(--s-4); }
  .sc-direct li { padding-block: var(--s-2); }
  .sc-box { padding: var(--s-5); }
  .sc-box .form { gap: 12px; }
  #scope .stack-5 { gap: var(--s-4); }
  .sc-box .field textarea { min-height: 96px; }
}
@media (max-width: 639px) {
  .sc-box { padding: var(--s-6); }
  .sc-box .form { gap: 20px; }
  .sc-box .field textarea { min-height: 160px; }
  .eg__plan li { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .sc-direct li { padding-block: var(--s-4); }
  main [data-moment="pinned-chapters"] .mo-pc__steps { gap: var(--s-8); }
  .sc-next__link { margin-top: var(--s-8); }
  .sc-brief { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
  .sc-out__text, .sc-out.is-skel .sc-out__skel { min-height: 84px; height: auto; }
  .sc-out.is-skel .sc-out__skel { height: 84px; }
  .sc-direct .rows__value { text-align: left; }
  .sc-direct a { display: inline-flex; align-items: center; min-height: 44px; }
  .sc-foot .btn-row { gap: var(--s-2); }
  [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual .eg { max-height: none; }
  .eg__head { padding: 8px 12px; }
  .eg__rows > div { padding: 6px 0; }
  .eg__net { height: 64px; padding-top: 8px; }
  .eg__agenda li { padding: 3px 0; }
  .eg__plan { gap: 8px; padding: 12px; }
}

/* a statement hero on a flat ground: its facts stay on the phone (the kit hides them to keep a ground's foot clear) */
@media (max-width: 639px) { .hero--statement .hero__facts { display: grid; } }
