/* The Success Gap Assessment (/success-gap; Phase 6, Sketch C, Aylam, November 2): the door pages' light plaster world, loaded after
   door.css. The intro sits on the L5 plate; each question is a screen on the page's 4:8 column line under three cracks, one per part
   of the workshop, that fill with flat True Gold as a part is finished; answers fill Ink (answers, not picks: gold is the repair).
   The result's one gold action is the cohort invitation in the obsidian close; "Send my results" is Deep Mineral. */

/* ------------------------------------------------------------------ intro on the L5 plate */
.sgi { position: relative; min-height: calc(100svh - 92px); padding: 0 var(--pad-x) 10vh; overflow: clip; isolation: isolate; }
.sgi[hidden] { display: none; }
.sgi__plate { position: absolute; z-index: -1; inset: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 58%, transparent 96%), linear-gradient(to right, transparent 0, #000 34%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 0, #000 58%, transparent 96%), linear-gradient(to right, transparent 0, #000 34%);
  mask-composite: intersect; }
.sgi__plate img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 0; }
.sgi__body { position: relative; max-width: min(640px, 46vw); padding-top: clamp(48px, 13vh, 150px); }
.sgi__title { font-weight: 500; font-size: clamp(42px, 3.8vw, 56px); line-height: 1.05; letter-spacing: -.028em; text-wrap: balance; }
.sgi__lede { margin-top: 22px; font-size: 20px; line-height: 1.5; color: var(--charcoal-soft); max-width: 31em; text-wrap: pretty; }
.sgi__lede--b { margin-top: 12px; } /* the facts in their own short paragraph, in scanning reach */
.sgi__go { margin-top: 34px; }
.sgi__go .btn { cursor: pointer; border: 0; font-family: inherit; }
/* a short desktop window: the start button stays on the first screen (Brand Design Director M9) */
@media (min-width: 981px) and (max-height: 600px) { .sgi__body { padding-top: 48px; } .sgi__lede { margin-top: 16px; } .sgi__lede--b { margin-top: 8px; } .sgi__go { margin-top: 24px; } }
.sgi__nojs { margin-top: 30px; font-size: 18px; line-height: 1.5; color: var(--graphite); max-width: 30em; }
html:not(.no-js) .sgi__nojs { display: none; }
html.no-js .sgi__go { display: none; }

/* ------------------------------------------------------------------ the screens */
.sgr { min-height: calc(100svh - 92px); }
.sgr[hidden] { display: none; }
.sgr__in { padding: clamp(26px, 4.4vh, 52px) var(--pad-x) 12vh; }
.sgr.is-in .sgq, .sgr.is-in .sgp, .sgr.is-in .res__head { animation: sg-in 300ms var(--ease-out) both; }
@keyframes sg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* the three cracks: progress as repair. A tapered fissure each; finishing a part pours flat True Gold along it, left to right */
.cracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 4vw; list-style: none; margin: 0 0 clamp(34px, 6.5vh, 72px); padding: 0; }
.crack { min-width: 0; }
.crack__svg { display: block; width: 100%; height: 30px; overflow: visible; }
.crack__lip { fill: rgba(255,255,255,.9); transform: translateY(1.1px); }
.crack__bare { fill: rgba(17,20,17,.34); transition: fill 200ms ease; }
.crack__gold { fill: var(--gold); clip-path: inset(0 100% 0 0); }
.crack.is-now .crack__bare { fill: var(--graphite); }
.crack.is-gold .crack__lip { fill: rgba(255,248,226,.9); }
.crack.is-gold .crack__gold { clip-path: inset(0 0 0 0); }
.crack.is-pour .crack__gold { transition: clip-path 900ms var(--ease-out) 160ms; }
.crack__name { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.3; color: var(--charcoal-soft); }
.crack.is-now .crack__name, .crack.is-gold .crack__name { color: var(--ink); font-weight: 500; }
/* where the visitor is inside the current part, under its name (finish review 5) */
.crack__n { display: block; margin-top: 2px; font-size: 14px; line-height: 1.3; color: var(--slate); font-variant-numeric: tabular-nums; }

/* a question on the page's 4:8 line: the question left, its answers right */
.sgq, .sgp { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px 6vw; align-items: start; }
.sgq { grid-template-areas: "head ans" "back ans"; grid-template-rows: auto 1fr; row-gap: 0; }
.sgq__head { grid-area: head; }
.sgq__answers { grid-area: ans; }
.sgq > .sgq__back { grid-area: back; align-self: start; justify-self: start; }
.sgq__h { margin-top: 12px; font-size: clamp(28px, 2.4vw, 38px); font-weight: 500; line-height: 1.16; letter-spacing: -.02em; text-wrap: balance; }
.sgq__h:focus, .sgp__h:focus, .res__h:focus { outline: none; }
.sgq__help { margin-top: 14px; font-size: 16.5px; line-height: 1.5; color: var(--charcoal-soft); max-width: 26em; }
.sgq__back { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 8px 0; font: inherit; font-size: 16px; font-weight: 500;
  color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(17,20,17,.32);
  text-decoration-thickness: 1px; text-underline-offset: .3em; }
.sgq__back svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--slate); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sgq__back:hover { text-decoration-color: var(--ink); } .sgq__back:hover svg { transform: translateX(-3px); } }

/* the answers: rows in one plaster card, divided by hairlines; long lists in two columns on wide screens */
.sgo-card { display: grid; max-width: 44rem; background: #FBF8F1; border: 1px solid rgba(17,20,17,.09); border-radius: 18px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 18px 40px rgba(37,42,38,.13), 0 2px 6px rgba(37,42,38,.08); }
.sgo { --m: 22px; position: relative; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 60px; padding: 15px 24px; margin: 0;
  font: inherit; font-size: 18px; line-height: 1.35; text-align: left; color: var(--graphite); background: transparent; border: 0;
  border-top: 1px solid rgba(17,20,17,.08); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, color 160ms ease; }
.sgo:first-child { border-top: 0; }
.sgo:focus-visible { outline-offset: -5px; border-radius: 12px; }
.sgo__m { flex: none; position: relative; display: grid; place-items: center; width: var(--m); height: var(--m); border-radius: 50%;
  border: 1.5px solid rgba(17,20,17,.55); background: rgba(255,255,255,.6); box-shadow: inset 0 1px 2px rgba(17,20,17,.07);
  font-size: 13px; font-weight: 500; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums;
  transition: background-color 160ms ease, border-color 160ms ease; }
.sgo-card--multi .sgo__m { border-radius: 6px; }
.sgo__m svg { width: 100%; height: 100%; fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 18; stroke-dashoffset: 18; transition: stroke-dashoffset 220ms var(--ease-out); }
.sgo-card--one .sgo__m::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--white); transform: scale(0); transition: transform 180ms var(--ease-out); }
.sgo[aria-pressed="true"] { color: var(--white); font-weight: 400; background: var(--ink); border-top-color: var(--ink); }
.sgo[aria-pressed="true"] + .sgo { border-top-color: var(--ink); }
/* two chosen rows side by side keep a faint Warm White divider (Brand Design Director P7) */
.sgo[aria-pressed="true"] + .sgo[aria-pressed="true"] { border-top-color: rgba(247,243,234,.14); }
/* the chosen row's mark, drawn inverted: Warm White, its tick, number or dot in Ink */
.sgo[aria-pressed="true"] .sgo__m { color: var(--ink); background: var(--white); border-color: var(--white); box-shadow: none; }
.sgo[aria-pressed="true"] .sgo__m svg { stroke: var(--ink); stroke-dashoffset: 0; }
.sgo-card--one .sgo__m::after { background: var(--ink); }
.sgo-card--one .sgo[aria-pressed="true"] .sgo__m::after { transform: scale(1); }
@media (hover: hover) and (pointer: fine) {
  .sgo:not([aria-pressed="true"]):hover { color: var(--ink); background: rgba(23,48,56,.05); }
  .sgo:not([aria-pressed="true"]):hover .sgo__m { border-color: rgba(17,20,17,.8); }
}
.sgo:not([aria-pressed="true"]):active { background: rgba(23,48,56,.09); }
@media (min-width: 981px) {
  .sgo-card--two { grid-template-columns: 1fr 1fr; max-width: none; }
  .sgo-card--two .sgo:nth-child(2) { border-top: 0; }
  .sgo-card--two .sgo:nth-child(odd) { border-right: 1px solid rgba(17,20,17,.08); }
  /* two columns: the Ink edge goes to the cell below the chosen one, not its neighbour (Brand Design Director M3) */
  .sgo-card--two .sgo[aria-pressed="true"] + .sgo { border-top-color: rgba(17,20,17,.08); }
  .sgo-card--two .sgo[aria-pressed="true"] + .sgo + .sgo { border-top-color: var(--ink); }
  .sgo-card--two .sgo[aria-pressed="true"] + .sgo + .sgo[aria-pressed="true"] { border-top-color: rgba(247,243,234,.14); }
  .sgo-card--two .sgo:nth-child(odd)[aria-pressed="true"] { border-right-color: rgba(247,243,234,.14); }
}
.sgq__other { margin-top: 16px; max-width: 26em; }
.sgq__text { max-width: 36em; }
.sgq__text .sgq__help { margin-top: 10px; }
.sgq__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 24px; }
.sgq__row .btn--mineral { gap: 12px; }
.btn--mineral:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; transform: none; }
.btn--mineral:disabled:hover { background: var(--mineral); transform: none; box-shadow: none; }
.sgq__skip { padding: 8px 0; font: inherit; font-size: 17px; font-weight: 500; color: var(--ink); background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(17,20,17,.32); text-decoration-thickness: 1px; text-underline-offset: .3em; }
@media (hover: hover) and (pointer: fine) { .sgq__skip:hover { text-decoration-color: var(--ink); } }

/* ------------------------------------------------------------------ a part's block, in the visitor's words: what they said, what the
   workshop knows about it, the cost as a question, and what Beyond Success does about it */
.sgp__h { font-size: clamp(30px, 2.6vw, 40px); font-weight: 500; line-height: 1.12; letter-spacing: -.022em; text-wrap: balance; }
.blk__text { max-width: 36em; }
.blk__play { font-size: 19px; line-height: 1.55; color: var(--graphite); text-wrap: pretty; }
.blk__ins { margin-top: 22px; font-size: clamp(23px, 1.95vw, 28px); line-height: 1.3; letter-spacing: -.016em; color: var(--ink); text-wrap: pretty; }
.blk__cost { margin-top: 22px; font-size: 20px; font-weight: 500; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.blk__bridge { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(17,20,17,.1); font-size: 17px; line-height: 1.5; color: var(--charcoal-soft); text-wrap: pretty; }
.sgp .sgq__row { margin-top: 34px; }
.sgq__back--under { margin-top: 18px; }

/* ------------------------------------------------------------------ the full result */
.res__head { margin-bottom: clamp(30px, 5vh, 56px); }
.res__h { margin-top: 10px; font-size: clamp(42px, 3.8vw, 56px); font-weight: 500; line-height: 1.05; letter-spacing: -.028em; }
.gapfig { margin: 0; }
.gapfig__line { font-size: clamp(26px, 2.2vw, 34px); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.gapfig__art { margin-top: clamp(14px, 2.4vh, 26px); }
.gapfig__pic { position: relative; }
.gapfig__pic[hidden] { display: none; }
.gapfig__pic { max-width: 1000px; margin: 0 auto 30px; } /* the bowl at the size the site shows it elsewhere; its labels sit under it */
.gapfig__pic img { width: 100%; height: auto; }
/* the plaster picture meets the page's ground without an edge (the bowl's has no ground of its own) */
.gapfig__end { position: absolute; left: var(--x); top: var(--y); font-size: 16px; font-weight: 500; line-height: 1; color: var(--ink);
  white-space: nowrap; transform: translate(-50%, 0); }
.gapfig__end--s { --x: var(--s-x); --y: var(--s-y); }
.gapfig__end--f { --x: var(--f-x); --y: var(--f-y); }
/* each label hangs from its own piece by an Ink hairline, from just under the piece to the label */
.gapfig__lead { position: absolute; left: var(--x); top: var(--t); height: calc(100% - var(--t)); width: 1px; background: rgba(17,20,17,.45);
  transform: translateX(-.5px); }
.gapfig__lead--s { --x: var(--s-x); --t: 87%; }
.gapfig__lead--f { --x: var(--f-x); --t: 59%; }
/* near or far at a glance: the three bowl states in a row, only the visitor's own at full strength (Brand Design Director M2) */
.gapfig__scale { display: flex; align-items: end; gap: 14px; max-width: 600px; margin: 56px auto 0; font-size: 14px; line-height: 1.3;
  color: var(--slate); white-space: nowrap; }
.gapfig__steps { flex: 1 1 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gapfig__step { display: grid; gap: 8px; opacity: .32; }
.gapfig__step.on { opacity: 1; }
.gapfig__step img { width: 100%; height: auto; }
.gapfig__step i { height: 4px; border-radius: 2px; background: rgba(17,20,17,.12); }
.gapfig__step.on i { background: var(--ink); }
/* a laptop window: the bowl a little smaller so the three states reach the first screen (Brand Design Director P5) */
@media (min-width: 981px) and (max-height: 960px) { .gapfig__pic { max-width: 820px; margin-bottom: 24px; } }
.res__blocks { margin-top: clamp(40px, 8vh, 88px); }
.res__blocks .blk { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px 6vw; align-items: start;
  padding: 9vh 0; border-top: 1px solid rgba(17,20,17,.1); }
.res__blocks .blk__h { font-size: clamp(26px, 2.1vw, 32px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
/* "Put together": the dots joined, set apart in one plaster card */
.put { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px 6vw; align-items: start;
  padding: clamp(30px, 3.6vw, 56px); background: #FBF8F1; border: 1px solid rgba(17,20,17,.09); border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 18px 40px rgba(37,42,38,.13), 0 2px 6px rgba(37,42,38,.08); }
.put__h { font-size: clamp(26px, 2.1vw, 32px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.put__t { font-size: clamp(23px, 1.95vw, 28px); line-height: 1.38; letter-spacing: -.016em; color: var(--ink); max-width: 30em; text-wrap: pretty; }
/* the email: their results and the exercises, sent only when they ask (Phase 7 wires it; until then the status says nothing was sent) */
.sgm { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 22px 6vw; align-items: start; padding: 12vh 0 7vh; }
.sgm__h { font-size: clamp(26px, 2.2vw, 34px); font-weight: 500; line-height: 1.2; letter-spacing: -.018em; text-wrap: balance; }
.sgm__form { max-width: 40em; }
.sgm__name { display: block; width: 100%; margin-bottom: 18px; }
.sgm__name-err { margin: -10px 0 18px; }
.sgm__row { display: flex; gap: 14px; }
.sgm__row .field__in { flex: 1 1 auto; min-width: 0; }
.sgm__row .btn--mineral { flex: none; }
.sgm__status:empty { display: none; }
.sgm__status { margin-top: 16px; padding: 14px 18px; font-size: 16px; line-height: 1.5; color: var(--ink); background: rgba(23,48,56,.06); border-radius: 10px; }
/* someone else's words at the decision point (Aylam, November 5), on the page's 4:8 line */
.sg-quote { margin: 0 0 clamp(48px, 7vh, 72px) calc((100% - 6vw) / 3 + 6vw); max-width: 38em; }
.sg-quote p { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.4; letter-spacing: -.012em; color: var(--ink); }
/* the close: the one gold action and the free call under it */
.sg-close { padding: 0 0 2vh; }
/* the call link under the button (Brand Design Director M8) */
.sg-close__acts { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sg-close__call { font-size: 17px; color: var(--white); text-decoration-color: rgba(247,243,234,.4); }
@media (hover: hover) and (pointer: fine) { .sg-close__call:hover { text-decoration-color: var(--white); } }
/* below the close: what the workshop is, the next cohort, and the way to the full page (Aylam, November 5), on the page's 4:8 line */
.sg-more { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 22px 6vw; align-items: start; padding: 9vh 0 7vh; }
.sg-more__line { max-width: 34em; font-size: 18px; line-height: 1.5; color: var(--graphite); text-wrap: pretty; }
.sg-more__when { margin-top: 14px; font-size: 18px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.sg-more__go { margin-top: 28px; }

/* ------------------------------------------------------------------ tablet and phone */
@media (max-width: 980px) {
  .sgi__body { max-width: 34em; }
  .sgq, .sgp, .res__blocks .blk, .put, .sgm, .sg-more { grid-template-columns: minmax(0, 1fr); } /* never wider than the screen (BDD M1) */
  .sg-quote { margin-left: 0; }
  .sgq { grid-template-areas: "head" "ans" "back"; grid-template-rows: auto; row-gap: 24px; }
  .sgq > .sgq__back { margin-top: 0; }
}
@media (max-width: 700px) {
  .sgi { min-height: 0; padding: 0 0 9vh; }
  .sgi__plate { position: relative; inset: auto; z-index: 0; height: clamp(190px, 56vw, 260px); margin-bottom: -18px;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
  .sgi__plate img { object-position: 100% 0; }
  .sgi__body { max-width: none; padding: 0 18px; }
  .sgi__title { font-size: clamp(30px, 9.6vw, 42px); }
  .sgi__q { display: block; white-space: nowrap; } /* "So what's missing?" on its own line (finish review 7) */
  .sgi__lede { font-size: 18px; margin-top: 16px; }
  .sgi__go { margin-top: 26px; }
  .sgi__go .btn--gold { width: 100%; justify-content: center; font-size: 17px; padding: 18px 24px; white-space: normal; text-align: center; }
  .sgr__in { padding: 22px 18px 9vh; }
  .cracks { gap: 0 14px; margin-bottom: 28px; }
  .crack__svg { height: 22px; }
  .crack__name { margin-top: 7px; font-size: 13px; }
  .crack__n { font-size: 13px; }
  .sgq__h { font-size: 25px; margin-top: 8px; }
  .sgq__help { font-size: 15.5px; margin-top: 10px; }
  .sgo { min-height: 54px; padding: 13px 16px; font-size: 17px; gap: 14px; }
  .sgo-card { border-radius: 16px; }
  .sgq__row .btn--mineral, .sgp .btn--mineral { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .sgp__h { font-size: 28px; }
  .blk__play { font-size: 17.5px; }
  .blk__ins { font-size: 21px; margin-top: 18px; }
  .blk__cost { font-size: 18px; margin-top: 18px; }
  .blk__bridge { font-size: 16px; }
  .res__h { font-size: clamp(34px, 10.2vw, 42px); }
  .gapfig__line { font-size: 24px; text-wrap: pretty; }
  .gapfig__end { font-size: 14px; }
  .gapfig__end--s { --x: var(--sp-x); --y: var(--sp-y); }
  .gapfig__end--f { --x: var(--fp-x); --y: var(--fp-y); }
  /* the two labels never touch, even where the halves sit close on a narrow phone (Brand Design Director M3) */
  .gapfig__end--s { left: min(var(--sp-x), calc(var(--fp-x) - 80px)); }
  .gapfig__lead--s { --x: min(var(--sp-x), calc(var(--fp-x) - 80px)); --t: 88%; }
  .gapfig__lead--f { --x: var(--fp-x); --t: 60%; }
  .gapfig__scale { flex-wrap: wrap; gap: 10px; font-size: 13px; margin-top: 40px; }
  .gapfig__steps { order: -1; flex-basis: 100%; }
  .gapfig__near, .gapfig__far { flex: 1 1 0; }
  .gapfig__far { text-align: right; }
  .sg-close__acts { flex-direction: column; align-items: stretch; }
  .sg-close__call { align-self: flex-start; }
  .res__blocks .blk { padding: 7vh 0; }
  .put { padding: 24px 20px; border-radius: 16px; }
  .put__t { font-size: 20px; }
  .sgm { padding: 9vh 0 6vh; }
  .sgm__row { flex-direction: column; }
  .sgm__row .btn--mineral { width: 100%; justify-content: center; }
  .sgr { min-height: calc(100svh - 76px); }
  .sg-close .btn--gold { width: 100%; justify-content: center; font-size: 17px; padding: 18px 22px; white-space: normal; text-align: center; }
  .sg-close .dclose__slab { padding: 26px 20px; }
}
/* short phones: a shorter plaster band, so the start button reaches the first screen (Brand Design Director P8) */
@media (max-width: 700px) and (max-height: 700px) { .sgi__plate { height: clamp(134px, 42vw, 190px); } .sgi__plate img { object-position: 100% 100%; } .sgi__lede { margin-top: 14px; font-size: 16px; line-height: 1.42; } .sgi__lede--b { margin-top: 10px; } .sgi__go { margin-top: 18px; } }
@media (max-width: 360px) {
  .sgo { padding: 12px 14px; font-size: 16.5px; }
  .sgq__h { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .sgr.is-in .sgq, .sgr.is-in .sgp, .sgr.is-in .res__head { animation: none; }
  .crack.is-pour .crack__gold, .sgo, .sgo__m, .sgo__m svg, .sgo__m::after, .sgq__back svg { transition: none; }
}

