/* ============================================================
   PROJECT PLANNER — two-panel intake flow
   coral rail + ink form panel. No site nav on this page.
   ============================================================ */

.pl { display: grid; grid-template-columns: clamp(300px, 26vw, 400px) 1fr; min-height: 100vh;
  background: var(--ink); color: var(--paper); }

/* ---------- rail ---------- */
.pl-rail { background: var(--coral); color: var(--ink); display: flex; flex-direction: column;
  justify-content: space-between; gap: var(--s7); padding: clamp(28px,3vw,44px) clamp(24px,2.4vw,40px);
  position: sticky; top: 0; height: 100vh; }
.pl-brand { display: block; }
.pl-brand img { height: 22px; width: auto; display: block; filter: brightness(0); }
.pl-rail-top { display: flex; flex-direction: column; gap: clamp(40px,6vh,80px); }

.pl-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pl-step { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 14px;
  padding: 11px 0; font-family: var(--sans); font-weight: 600; font-size: clamp(15px,1.25vw,18px);
  letter-spacing: -0.012em; line-height: 1.15; color: rgba(16,18,22,.38); background: none; border: 0;
  text-align: left; width: 100%; cursor: default; position: relative;
  transition: color .5s cubic-bezier(.16,.84,.3,1), opacity .5s ease; }
.pl-step .ps-n { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .1em;
  color: currentColor; transition: transform .5s cubic-bezier(.16,.84,.3,1); }
.pl-step.is-done { color: rgba(16,18,22,.62); cursor: pointer; }
.pl-step.is-done:hover { color: var(--ink); }
.pl-step.is-now { color: var(--ink); }
.pl-step.is-now .ps-n { transform: translateX(2px); }
/* the marker slides between steps: the only progress indicator on the page */
.pl-step::before { content: ""; position: absolute; left: -20px; top: 50%; width: 8px; height: 8px;
  background: var(--ink); transform: translate(-4px,-50%) scale(0); transform-origin: center;
  transition: transform .5s cubic-bezier(.16,.84,.3,1); }
.pl-step.is-now::before { transform: translate(0,-50%) scale(1); }
.pl-step[hidden] { display: none; }

.pl-assure { font-family: var(--mono); font-size: 11.5px; line-height: 1.7; letter-spacing: .02em;
  color: rgba(16,18,22,.72); max-width: 30ch; }

/* ---------- panel ---------- */
.pl-panel { display: flex; flex-direction: column; min-height: 100vh; position: relative; isolation: isolate; }
/* industry thumbnail fades in behind the form, same treatment as the home Industries section */
/* pinned to the viewport so a tall step never restretches the image */
.pl-bg { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: calc(100% - clamp(300px, 26vw, 400px));
  height: 100vh; z-index: 0; overflow: hidden; pointer-events: none; }
.pl-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.05); transition: opacity .7s ease; will-change: opacity, transform; }
.pl-bg img.is-on { opacity: 1; animation: pl-kenburns 9s ease-out forwards; }
@keyframes pl-kenburns { from { transform: scale(1.05) translate(0,0); } to { transform: scale(1.16) translate(-1.5%,-1%); } }
.pl-bg-scrim { position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(16,18,22,.95) 0%, rgba(16,18,22,.84) 52%, rgba(16,18,22,.7) 100%);
  opacity: 0; transition: opacity .7s ease; }
.pl-panel.bg-on .pl-bg-scrim { opacity: 1; }
[data-motion="off"] .pl-bg img.is-on { animation: none; }
@media (prefers-reduced-motion: reduce) { .pl-bg img.is-on { animation: none; } }
.pl-stage, .pl-nav, .pl-bar { position: relative; z-index: 2; }
.pl-bar { display: none; }

.pl-stage { flex: 1; padding: clamp(48px,7vh,104px) clamp(24px,4vw,88px) calc(clamp(32px,4vh,56px) + 96px);
  display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 900px; margin: 0 auto; }

.pstep[hidden] { display: none; }
.pstep { display: flex; flex-direction: column; }
.pstep-count { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--graphite-d); }
.pstep-count b { font-weight: 500; color: var(--coral); }
.pstep-h { font-family: var(--sans); font-weight: 600; font-stretch: 80%; font-size: clamp(34px,4.6vw,76px);
  line-height: 0.96; letter-spacing: -0.03em; margin: clamp(14px,1.6vh,22px) 0 0; max-width: 20ch;
  text-wrap: balance; }
.pstep-sub { font-size: clamp(15px,1.25vw,19px); line-height: 1.45; color: var(--graphite-d);
  margin-top: var(--s5); max-width: 52ch; text-wrap: pretty; }

/* ---------- option cards ---------- */
/* hairlines live on the cards, so the container never flashes a gray ground while they stagger in */
.popts { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--ink);
  border-top: 1px solid var(--line-d); border-left: 1px solid var(--line-d);
  margin-top: clamp(28px,3.4vh,48px); }
.popts--2 { grid-template-columns: 1fr 1fr; }
.popts--2 .popt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pgroup .popts .popt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.popt { position: relative; background: var(--ink); border: 0;
  border-right: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d);
  text-align: left; cursor: pointer;
  padding: clamp(16px,1.7vw,24px); display: flex; flex-direction: column; gap: 6px; color: var(--paper);
  font-family: var(--sans); transition: background .22s ease, color .22s ease; }
.popt:hover { background: var(--ink-soft); }
.popt .po-t { font-weight: 600; font-size: clamp(16px,1.4vw,21px); letter-spacing: -0.018em; line-height: 1.1; }
.popt .po-d { font-size: 13.5px; line-height: 1.45; color: var(--graphite-d); transition: color .22s ease; }
/* price / meta line on the teaser tiers */
.popt .po-m { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--coral); transition: color .22s ease; }
.popt.is-on { background: var(--coral); color: var(--ink); }
.popt.is-on .po-d { color: rgba(16,18,22,.74); }
.popt.is-on .po-m { color: var(--ink); }
.popt:focus-visible { outline: 2px solid var(--coral); outline-offset: -2px; }
.popt.is-on:focus-visible { outline-color: var(--ink); }

/* grouped disciplines */
.pgroups { display: flex; flex-direction: column; gap: clamp(26px,3vh,40px); margin-top: clamp(28px,3.4vh,48px); }
.pgroup-h { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 14px; }
.pgroup .popts { margin-top: 0; grid-template-columns: 1fr 1fr; }

/* ---------- fields ---------- */
.pfields { display: flex; flex-direction: column; gap: clamp(18px,2vw,26px); margin-top: clamp(28px,3.4vh,48px); }
.prow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px,2vw,26px); }
.pfield { display: flex; flex-direction: column; gap: 9px; }
.pfield label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--graphite-d); }
.pfield input, .pfield textarea, .pfield select { width: 100%; background: transparent;
  border: 1px solid var(--line-d-strong); color: var(--paper); padding: 14px 16px;
  font-family: var(--sans); font-size: 15px; transition: border-color .16s; }
.pfield textarea { resize: vertical; min-height: 120px; }
.pfield input::placeholder, .pfield textarea::placeholder { color: rgba(255,255,255,.4); }
.pfield input:focus, .pfield textarea:focus, .pfield select:focus { outline: none; border-color: var(--coral); }
.pfield select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; }
.pfield select option { color: #101216; }
.pfield input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .6; cursor: pointer; }
.pcond[hidden] { display: none; }
/* "Something else" turns into its own input once picked */
.popt--other { outline-offset: -2px; }
.popt--other input { display: none; width: 100%; background: transparent; border: 0; padding: 0;
  font-family: var(--sans); font-weight: 600; font-size: clamp(16px,1.4vw,21px); letter-spacing: -0.018em;
  color: var(--ink); border-bottom: 1px solid rgba(16,18,22,.32); padding-bottom: 4px; }
.popt--other input::placeholder { color: rgba(16,18,22,.5); font-weight: 600; }
.popt--other input:focus { outline: none; border-bottom-color: var(--ink); }
.popt--other.is-on .po-d { display: none; }
.popt--other.is-on input { display: block; }

/* ---------- review ---------- */
.psum { margin: clamp(28px,3.4vh,48px) 0 0; border-top: 1px solid var(--line-d); }
.psum-row { display: grid; grid-template-columns: minmax(140px,.4fr) 1fr; gap: clamp(16px,2vw,40px);
  padding: 16px 0; border-bottom: 1px solid var(--line-d); align-items: baseline; }
.psum-row dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--graphite-d); }
.psum-row dd { margin: 0; font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }
.psum-row dd.is-empty { color: rgba(255,255,255,.34); }
.ptags { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 9px; background: var(--coral); color: var(--ink); }

.pdone-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px,3.4vh,44px); }

/* ---------- nav ---------- */
.pl-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  padding: clamp(18px,2vh,26px) clamp(24px,4vw,88px); border-top: 1px solid var(--line-d);
  position: sticky; bottom: 0; z-index: 3; background: rgba(16,18,22,.58);
  backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); }
.pl-nav[hidden] { display: none; }
.pl-nav-r { display: flex; align-items: center; gap: clamp(14px,2vw,28px); }
.pl-back { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--sans);
  font-size: 15px; color: var(--graphite-d); text-decoration: underline; text-underline-offset: 3px;
  transition: color .16s; }
.pl-back:hover { color: var(--paper); }
.pl-back[hidden] { visibility: hidden; display: inline; }
.pl-note { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--graphite-d);
  text-align: right; }
.pl-next:disabled { opacity: .34; cursor: not-allowed; }
.pl-next:disabled:hover { background: var(--coral); border-color: var(--coral); }

/* ============================================================
   MOTION — step changes are the animation; conditionals stay quiet
   ============================================================ */
/* direction-aware slide: forward pushes left, back pushes right */
@keyframes pl-in-f { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes pl-in-b { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@keyframes pl-out-f { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-60px); } }
@keyframes pl-out-b { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(60px); } }
@keyframes pl-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.pl-stage { --in: pl-in-f; --out: pl-out-f; }
.pl-stage[data-dir="back"] { --in: pl-in-b; --out: pl-out-b; }

.pstep.is-in > * { animation: var(--in) .62s cubic-bezier(.16,.84,.3,1) both; }
.pstep.is-in > .pstep-h { animation: var(--in) .62s cubic-bezier(.16,.84,.3,1) both, pl-wipe .8s cubic-bezier(.16,.84,.3,1) both; }
.pstep.is-in > *:nth-child(1) { animation-delay: .02s; }
.pstep.is-in > *:nth-child(2) { animation-delay: .08s; }
.pstep.is-in > *:nth-child(3) { animation-delay: .16s; }
.pstep.is-in > *:nth-child(4) { animation-delay: .24s; }
.pstep.is-in > *:nth-child(5) { animation-delay: .3s; }
/* option cards and fields cascade inside their container */
.pstep.is-in .popt, .pstep.is-in .pgroup, .pstep.is-in .pfields > *, .pstep.is-in .psum-row {
  animation: var(--in) .6s cubic-bezier(.16,.84,.3,1) both; }
.pstep.is-in .popt:nth-child(1), .pstep.is-in .pfields > *:nth-child(1), .pstep.is-in .psum-row:nth-child(1) { animation-delay: .26s; }
.pstep.is-in .popt:nth-child(2), .pstep.is-in .pfields > *:nth-child(2), .pstep.is-in .psum-row:nth-child(2) { animation-delay: .31s; }
.pstep.is-in .popt:nth-child(3), .pstep.is-in .pfields > *:nth-child(3), .pstep.is-in .psum-row:nth-child(3) { animation-delay: .36s; }
.pstep.is-in .popt:nth-child(4), .pstep.is-in .pfields > *:nth-child(4), .pstep.is-in .psum-row:nth-child(4) { animation-delay: .41s; }
.pstep.is-in .popt:nth-child(5), .pstep.is-in .pfields > *:nth-child(5), .pstep.is-in .psum-row:nth-child(5) { animation-delay: .46s; }
.pstep.is-in .popt:nth-child(6), .pstep.is-in .pfields > *:nth-child(6), .pstep.is-in .psum-row:nth-child(6) { animation-delay: .51s; }
.pstep.is-in .popt:nth-child(n+7), .pstep.is-in .psum-row:nth-child(n+7) { animation-delay: .56s; }
.pstep.is-out > * { animation: var(--out) .22s cubic-bezier(.4,0,1,1) both; }

/* selection pulse: the card fills, the rail gains contrast */
@keyframes pl-pop { 0% { transform: scale(1); } 40% { transform: scale(.985); } 100% { transform: scale(1); } }
.popt.just-picked { animation: pl-pop .32s cubic-bezier(.16,.84,.3,1); }

[data-motion="off"] .pstep.is-in > *, [data-motion="off"] .pstep.is-in .popt,
[data-motion="off"] .pstep.is-in .pfields > *, [data-motion="off"] .pstep.is-in .psum-row,
[data-motion="off"] .pstep.is-out > * { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .pstep.is-in > *, .pstep.is-in .popt, .pstep.is-in .pgroup, .pstep.is-in .pfields > *,
  .pstep.is-in .psum-row, .pstep.is-out > *, .popt.just-picked { animation: none; }
  .pl-step, .pl-step::before, .pl-step .ps-n { transition: none; }
}

/* ============================================================
   RESPONSIVE — rail collapses to a top bar
   ============================================================ */
@media (max-width: 900px) {
  .pl { grid-template-columns: 1fr; }
  .pl-rail { display: none; }
  .pl-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
    padding: 16px clamp(20px,5vw,32px); background: var(--coral); color: var(--ink);
    position: sticky; top: 0; z-index: 4; }
  .pl-bar-brand img { height: 18px; width: auto; display: block; filter: brightness(0); }
  .pl-bg { width: 100%; }
  .pl-dots { display: flex; gap: 7px; }
  .pl-dot { width: 7px; height: 7px; background: rgba(16,18,22,.3); transition: background .4s ease, transform .4s ease; }
  .pl-dot.is-done { background: rgba(16,18,22,.6); }
  .pl-dot.is-now { background: var(--ink); transform: scale(1.35); }
  .pl-stage { padding: clamp(32px,6vh,56px) clamp(20px,5vw,32px) calc(clamp(24px,4vh,40px) + 84px); justify-content: flex-start; }
  .popts--2, .pgroup .popts { grid-template-columns: 1fr; }
  .prow { grid-template-columns: 1fr; }
  .pl-nav { padding: 16px clamp(20px,5vw,32px); }
  .pl-nav-r { gap: 12px; }
  .pl-note { display: none; }
  .psum-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 420px) {
  .pl-next { padding: 12px 14px; font-size: 14px; }
}

/* ---------- per-letter roll on button hover (lifted from home.css) ---------- */
/* inline-block, not inline-flex: flex would blockify each letter, and text readers
   (innerText, screen readers) then report the label as "S t a r t". */
.tsplit { display: inline-block; white-space: nowrap; vertical-align: middle; }
.tch { display: inline-block; }
.tch-roll { display: inline-block; position: relative; }
.tch-roll .g-top { display: inline-block; will-change: transform, opacity; }
/* The incoming copy of each letter is drawn by CSS from data-ch, so the page text
   (and what screen readers, crawlers and audits read) holds each letter once.
   The "/ ''" form gives the generated glyph empty alt text where supported. */
.tch-roll::after { content: attr(data-ch); content: attr(data-ch) / ""; position: absolute; left: 0; top: 0;
  opacity: 0; transform: translateY(0.7em); will-change: transform, opacity; pointer-events: none; }
.tch-roll.is-reset .g-top, .tch-roll.is-reset::after { transition: none !important; }
.tch-roll.is-go .g-top, .tch-roll.is-go::after {
  transition: transform .46s cubic-bezier(.5,0,.1,1), opacity .34s ease; transition-delay: var(--d, 0s); }
.tch-roll.is-go .g-top { transform: translateY(-0.7em); opacity: 0; }
.tch-roll.is-go::after { transform: translateY(0); opacity: 1; }

/* a11y: settled contrast (WCAG AA) */
.pl-step { color: rgba(16,18,22,.72); }
.pl-step.is-done { color: rgba(16,18,22,.76); }
.pl-step.is-now { color: var(--ink); }
