/* ============================================================
   DigitalSandbox — "Work with me" page. Availability hero,
   two service groups (consulting / build) as price-carrying
   cards, inverse proof strip, numbered process, brief form.
   Parent-brand monochrome accent throughout.
   Requires css/design-system.css.
   ============================================================ */

/* ---------------- hero ---------------- */

.dsw-hero { padding: 76px 0 60px; }
.dsw-hero__inner { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: center; }
/* beside the blueprint the copy column is ~550px — cap the display size so the
   headline breaks as two lines, not three */
@media (min-width: 881px) {
  .dsw-hero__h { font-size: clamp(36px, 3.6vw, 46px); }
}
/* drafting-marks blueprint: dimensioned phone + browser line drawing */
.dsw-hero__art { width: 100%; height: auto; }
.dsw-art-ink { stroke: var(--sand-900); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.dsw-art-thin { stroke: var(--sand-900); stroke-width: 1; fill: none; stroke-linecap: round; }
.dsw-art-faint { stroke: var(--sand-400); stroke-width: 1; fill: none; stroke-linecap: round; }
.dsw-art-dash { stroke-dasharray: 4 5; }
.dsw-hero__art-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; fill: var(--sand-600); }
.dsw-hero__art-label--ink { fill: var(--sand-900); }
.dsw-hero__art-label--muted { font-size: 10px; letter-spacing: 0.1em; fill: var(--sand-500); }
.dsw-hero__h {
  font-family: var(--font-display); font-weight: 800; color: var(--text-strong);
  font-size: clamp(38px, 5.2vw, 62px); line-height: 1.03; letter-spacing: -0.032em;
  margin: 20px 0 0; max-width: 17ch; text-wrap: balance;
}
.dsw-hero__sub {
  font-family: var(--font-sans); font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.62;
  color: var(--text-muted); max-width: 62ch; margin: 20px 0 0; text-wrap: pretty;
}
.dsw-hero__cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* availability chip — the one thing a prospect scans for */
.dsw-avail {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 12px; border-radius: var(--radius-pill);
  background: var(--success-soft); border: 1px solid rgba(31, 157, 87, 0.22);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: #14713e;
}
.dsw-avail__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none;
  box-shadow: 0 0 0 0 rgba(31, 157, 87, 0.55);
  animation: dsw-pulse 2.4s var(--ease-out) infinite;
}
@keyframes dsw-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31, 157, 87, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(31, 157, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 157, 87, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .dsw-avail__dot { animation: none; }
}

/* ---------------- two doors: project vs embedded ---------------- */

.dsw-paths { padding: 0 0 26px; }
.dsw-paths__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dsw-path {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 26px 26px 22px;
  box-shadow: var(--shadow-xs); text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.dsw-path:hover { text-decoration: none; border-color: var(--border-strong);
  box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dsw-path__kicker {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-subtle);
}
.dsw-path__title {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  letter-spacing: -0.02em; color: var(--text-strong);
}
.dsw-path__desc {
  font-family: var(--font-sans); font-size: 14.5px; line-height: 1.6;
  color: var(--text-muted); text-wrap: pretty;
}
.dsw-path__cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-family: var(--font-sans); font-size: 14px; font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.dsw-path__cta svg { width: 15px; height: 15px; }

/* ---------------- service groups ---------------- */

.dsw-services { padding: 8px 0 8px; }
/* anchor targets clear the 68px sticky header */
#consult, #brief, #how, #services, #fractional,
#apps, #websites, #design, #systems { scroll-margin-top: 88px; }
.dsw-group + .dsw-group { margin-top: 76px; }
/* Group head: eyebrow/h2/p in the left column, the drafting-mark icon set
   large as a plate in the right column (it drops inline beside the eyebrow
   on small screens — see the 620px block). */
.dsw-group__head { display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "eyebrow mark" "h2 mark" "p mark";
  column-gap: 40px; margin-bottom: 30px; }
.dsw-group__head > .dsx-eyebrow { grid-area: eyebrow; }
.dsw-group__head h2 { grid-area: h2; }
.dsw-group__head p { grid-area: p; max-width: 60ch; }
/* Strokes don't scale with the box, so at plate size the icons keep
   hairline drafting weight. */
.dsw-group__mark { grid-area: mark; width: 148px; height: 148px;
  align-self: center; justify-self: end; margin-right: 24px; color: var(--sand-600); }
.dsw-mk { stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round;
  vector-effect: non-scaling-stroke; }
.dsw-mk-tick { stroke: currentColor; stroke-width: 1.25; fill: none; stroke-linecap: round;
  vector-effect: non-scaling-stroke; }
.dsw-group__head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.028em;
  margin: 12px 0 0;
}
.dsw-group__head p {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.62;
  color: var(--text-muted); margin: 12px 0 0; text-wrap: pretty;
}

/* Service rows — the drill-in ledger. Collapsed: name / one-liner / price
   floor, echoing the homepage app index. Open: full description, what's
   included and what isn't, and a timeline. Native <details> — same pattern
   as the contact FAQ, no JS. */
.dsw-svc { border-top: 1px solid var(--border-subtle); }
.dsw-svc:last-of-type { border-bottom: 1px solid var(--border-subtle); }
.dsw-svc summary {
  display: grid; grid-template-columns: 236px 1fr auto 20px;
  align-items: baseline; gap: 18px; padding: 17px 10px;
  cursor: pointer; list-style: none; position: relative; isolation: isolate;
}
.dsw-svc summary::-webkit-details-marker { display: none; }
/* hover wash fades at both ends — matches the homepage ledger */
.dsw-svc summary::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--accent-soft) 48px,
              var(--accent-soft) calc(100% - 48px), transparent);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out); pointer-events: none; }
.dsw-svc summary:hover::before { opacity: 1; }
.dsw-svc summary:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.dsw-svc__name {
  font-family: var(--font-display); font-weight: 700; font-size: 17.5px;
  letter-spacing: -0.02em; color: var(--text-strong);
}
.dsw-svc__tag { font-family: var(--font-sans); font-size: 14px; color: var(--text-muted); }
.dsw-svc__price {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--text-strong); white-space: nowrap;
}
.dsw-svc__chev { width: 18px; height: 18px; color: var(--accent); align-self: center;
  transition: transform var(--dur-base) var(--ease-out); }
.dsw-svc[open] .dsw-svc__chev { transform: rotate(180deg); }
.dsw-svc__body { padding: 4px 10px 26px; max-width: 76ch; }
.dsw-svc__body > p {
  font-family: var(--font-sans); font-size: 15px; line-height: 1.62;
  color: var(--text-body); margin: 0 0 18px; text-wrap: pretty;
}
.dsw-svc__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dsw-svc__cols h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--text-subtle); margin: 0 0 8px;
}
.dsw-svc__cols ul { list-style: none; margin: 0; padding: 0; }
.dsw-svc__cols li {
  position: relative; padding: 3px 0 3px 18px;
  font-family: var(--font-sans); font-size: 14px; line-height: 1.5;
  color: var(--text-muted);
}
.dsw-svc__cols li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 8px; height: 2px; border-radius: 1px; background: var(--sand-300);
}
.dsw-svc__cols div:first-child li::before { background: var(--success); }
.dsw-svc__meta {
  margin: 18px 0 0; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.04em; color: var(--text-subtle);
}

/* consult band — the universal front door, inverse so it can't be missed */
.dsw-consult { padding: 40px 0 88px; }
.dsw-consult__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  background: var(--surface-inverse); border-radius: var(--radius-2xl);
  padding: 40px 44px;
}
.dsw-consult h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.025em; color: var(--white); margin: 0 0 10px;
}
.dsw-consult p {
  font-family: var(--font-sans); font-size: 15px; line-height: 1.6;
  color: var(--sand-300); margin: 0; max-width: 62ch; text-wrap: pretty;
}
/* primary button reads as ink-on-ink inside the inverse band — flip it */
.dsw-consult__btn { background: var(--white); color: var(--sand-900); flex: none; }
.dsw-consult__btn:hover { background: var(--sand-100); }
.dsw-consult__btn:active { background: var(--sand-200); }

/* ---------------- proof strip (inverse) ---------------- */

.dsw-proof { background: var(--surface-inverse); color: var(--text-on-inverse); padding: 80px 0; }
.dsw-proof__inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.dsw-proof__h {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.025em; color: var(--white); margin: 14px 0 18px; max-width: 20ch;
}
.dsw-proof__copy p {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.62;
  color: var(--sand-300); margin: 0 0 14px;
}
.dsw-proof__links { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
/* ghost button sits on ink here, so invert its resting + hover colors */
.dsw-btn-inverse { color: var(--sand-300); border-color: rgba(255,255,255,.18); }
.dsw-btn-inverse:hover { background: rgba(255,255,255,.08); color: var(--white); }

.dsw-proof__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dsw-proof__facts li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 20px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md);
}
.dsw-proof__facts b {
  font-family: var(--font-display); font-size: 30px; font-weight: 800;
  color: var(--white); line-height: 1; flex: none; min-width: 42px;
}
.dsw-proof__facts span { font-family: var(--font-sans); font-size: 14px; line-height: 1.5; color: var(--sand-400); }

/* ---------------- process ---------------- */

.dsw-how { padding: 84px 0; }
.dsw-how__h {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.028em; margin: 12px 0 34px;
}
.dsw-how__steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.dsw-how__steps li { border-top: 2px solid var(--sand-900); padding-top: 16px; }
.dsw-how__num { font-family: var(--font-mono); font-size: 12px; color: var(--text-subtle); letter-spacing: 0.06em; }
.dsw-how__steps h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em; margin: 8px 0 8px;
}
.dsw-how__steps p {
  font-family: var(--font-sans); font-size: 14.5px; line-height: 1.6;
  color: var(--text-muted); margin: 0; text-wrap: pretty;
}
.dsw-how__notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 38px; }
.dsw-how__notes .dsw-how__terms { margin: 0; max-width: none; }
.dsw-how__terms {
  margin: 38px 0 0; padding: 20px 24px;
  background: var(--surface-sunken); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-family: var(--font-sans); font-size: 14.5px; line-height: 1.62;
  color: var(--text-muted); max-width: 78ch;
}
.dsw-how__terms b { color: var(--text-strong); }

/* ---------------- brief form ---------------- */

.dsw-brief { background: var(--bg-page-deep); padding: 84px 0; }
.dsw-brief__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.dsw-brief__intro h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.028em; margin: 12px 0 14px;
}
.dsw-brief__intro p {
  font-family: var(--font-sans); font-size: 15.5px; line-height: 1.65;
  color: var(--text-muted); margin: 0 0 14px; max-width: 42ch; text-wrap: pretty;
}
.dsw-brief__aside { font-size: 14px !important; color: var(--text-subtle) !important; }
.dsw-brief__aside a { color: var(--text-strong); text-decoration: underline; }

.dsw-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: 24px; box-shadow: var(--shadow-sm); padding: 32px;
}
.dsw-field { display: flex; flex-direction: column; gap: 7px; }
.dsw-field--wide { grid-column: 1 / -1; }
.dsw-field label { font-size: 13.5px; font-weight: var(--fw-semibold); color: var(--sand-900); }
.dsw-field__opt { font-weight: var(--fw-regular); color: var(--text-subtle); }
.dsw-field input,
.dsw-field select,
.dsw-field textarea {
  font-family: var(--font-sans); font-size: 15px; color: var(--text-body);
  background: var(--white); border: 1px solid var(--border-default);
  border-radius: var(--radius-field); padding: 11px 14px; width: 100%;
}
.dsw-field textarea { resize: vertical; min-height: 132px; }
.dsw-field input:focus-visible,
.dsw-field select:focus-visible,
.dsw-field textarea:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: var(--ring-focus);
}
.dsw-form__submit { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }

/* ---------------- responsive ---------------- */

@media (max-width: 1000px) {
  .dsw-how__steps { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
}

@media (max-width: 760px) {
  /* row collapses to name+price, one-liner beneath */
  .dsw-svc summary { grid-template-columns: 1fr auto 20px; row-gap: 2px; }
  .dsw-svc__tag { grid-column: 1 / -1; grid-row: 2; }
  .dsw-svc__cols { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 880px) {
  .dsw-hero { padding: 56px 0 44px; }
  /* stacked hero: the blueprint would just push the CTAs down — drop it */
  .dsw-hero__inner { grid-template-columns: 1fr; }
  .dsw-hero__art { display: none; }
  .dsw-group__mark { width: 112px; height: 112px; margin-right: 8px; }
  .dsw-paths__grid { grid-template-columns: 1fr; }
  .dsw-how__notes { grid-template-columns: 1fr; }
  .dsw-proof__inner { grid-template-columns: 1fr; gap: 34px; }
  .dsw-brief__inner { grid-template-columns: 1fr; gap: 32px; }
  .dsw-brief__intro p { max-width: none; }
}

@media (max-width: 620px) {
  /* phone: the mark returns to its small inline spot beside the eyebrow */
  .dsw-group__head { grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "mark eyebrow" "h2 h2" "p p"; column-gap: 14px; }
  .dsw-group__head > .dsx-eyebrow { align-self: center; }
  .dsw-group__mark { width: 40px; height: 40px; margin-right: 0;
    justify-self: start; color: var(--sand-900); }
  .dsw-how__steps { grid-template-columns: 1fr; gap: 24px; }
  .dsw-group + .dsw-group { margin-top: 56px; }
  .dsw-form { grid-template-columns: 1fr; padding: 24px 20px; border-radius: 18px; }
  .dsw-how, .dsw-brief, .dsw-proof { padding: 60px 0; }
  .dsw-consult { padding: 32px 0 60px; }
  .dsw-consult__inner { padding: 28px 24px; }
  .dsw-consult__btn { width: 100%; }
  .dsw-hero__cta .ds-btn { width: 100%; }
}
