/* Duma Creative: homepage v3, "built at cheetah speed"
   Ink hero (the name, wearing a coat of spots drawn per visit) runs straight into an ink gallery of
   four example sites that slides sideways as you scroll. Then light: the 3-day timeline, before/after,
   ink pricing, light comparison and FAQ, and a cobalt finale with the form. */
:root {
  --ink-2: #151A22;
  --on-ink: #E8EAEE;
  --on-ink-2: #AEB6C3;
  --hair-ink: rgba(255, 255, 255, .12);
  --paper: #FFFFFF;
}

/* ---------- Shared type and rhythm ---------- */
.home .h2 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.6vw, 70px); line-height: 1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; max-width: 14em; }
.home .lede { margin: 0; text-wrap: pretty; }
.fq, .cx { position: relative; padding-block: clamp(88px, 11vw, 168px); }

/* Ink sections */
.hx { background: var(--ink); color: var(--on-ink); }
.pb :focus-visible, .hx :focus-visible { outline-color: var(--cobalt-light); }

/* ================================================================ HERO: the coat is the star */
.hx { position: relative; margin-top: -72px; padding-top: 72px; overflow: clip; isolation: isolate; cursor: crosshair; }
.hx a, .hx button { cursor: pointer; }
.hx-coat { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hx-flow { position: fixed; left: 0; top: 0; width: 100%; height: 100lvh; z-index: 5; pointer-events: none; visibility: hidden; display: block; }
.hx-in { min-height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(28px, 5vh, 60px); padding-block: 48px clamp(36px, 7vh, 88px); }
.hx-title { font-family: var(--display); font-weight: 700; font-size: clamp(46px, 7.3vw, 136px); line-height: .94; letter-spacing: -0.02em; color: #fff; }
.hx-title span { display: block; }
.hx-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; }
.hx-copy { display: flex; flex-direction: column; gap: 26px; max-width: 34em; }
.hx-lede { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; color: var(--on-ink); }
.hx-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hx-btn { min-height: 60px; padding-inline: 30px; font-size: 17px; }
.hx-link { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--cobalt-light); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hx-link { transition: color var(--dur-hover) var(--ease-colour); }
.hx-link:hover { color: var(--cobalt-light); }
.hx-link:active { opacity: .7; }
.hx-coat-tag { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; font-size: 14px; color: var(--on-dark-faint); }
.hx-coat-tag b { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .hx-in { min-height: 0; justify-content: flex-start; padding-top: 24px; }
  .hx-in { container-type: inline-size; }
  .hx-title { font-size: min(56px, 9.6cqi); line-height: .98; }
  .hx-title, .hx-title span { white-space: nowrap; }
  .hx-row { flex-direction: column; align-items: stretch; }
  .hx-ctas { flex-direction: column; align-items: stretch; gap: 16px; }
  .hx-btn { width: 100%; }
  .hx-link { align-self: center; }
  .hx-coat-tag { align-items: flex-start; text-align: left; }
}

/* ================================================================ THE RACE */
.rc { background: var(--ground); padding-block: clamp(72px, 9vw, 140px) clamp(88px, 11vw, 168px); }
.rc-pin.is-pinned { height: 190svh; margin-top: calc(clamp(72px, 9vw, 140px) * -1); }
.rc-pin.is-pinned .rc-stage { position: sticky; top: 0; min-height: 100svh; display: flex; align-items: center; padding-block: 96px 40px; }
.rc-stage > .wrap { width: 100%; }
.rc-head { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: flex-end; gap: 18px 56px; margin-bottom: clamp(28px, 4vh, 56px); }
.rc-clock { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rc-clock span { font-size: 14px; color: var(--muted); }
.rc-clock b { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4.4vw, 72px); line-height: 1; letter-spacing: -0.02em; color: var(--cobalt); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.rc-lanes { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rc-lane { --p: 0; display: grid; grid-template-columns: minmax(0, 3.3fr) minmax(0, 8.7fr); gap: 16px clamp(24px, 4vw, 64px); align-items: center; padding: clamp(20px, 3vh, 32px) 0; border-bottom: 1px solid var(--line); }
.rc-who h3 { font-family: var(--display); font-weight: 700; font-size: clamp(21px, 1.9vw, 28px); letter-spacing: -0.02em; }
.rc-who p { margin-top: 6px; font-size: 15px; color: var(--body); max-width: 30em; }
.rc-lane.is-us h3 { color: var(--cobalt); }
.rc-track { position: relative; height: 70px; }
.rc-track::after { content: ""; position: absolute; right: 0; top: 14px; bottom: 14px; width: 4px; background: repeating-linear-gradient(var(--ink) 0 5px, transparent 5px 10px); opacity: .35; }
.rc-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
.rc-line i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * (100% - 34px) + 10px); background: var(--muted); }
.rc-lane.is-us .rc-line i { top: -8px; bottom: auto; height: 18px; background: var(--run-x) 0 50% / auto 18px repeat-x; }
.rc-runner { position: absolute; top: 50%; left: calc(var(--p) * (100% - 34px)); width: 20px; height: 16px; margin: -8px 0 0 0; border-radius: 50% 45% 55% 48%; background: var(--muted); transform: rotate(-14deg); }
.rc-lane.is-us .rc-runner { width: 34px; height: 28px; margin: -14px 0 0 0; background: var(--cobalt); box-shadow: 0 0 0 6px var(--ground); }
.rc-flag { position: absolute; right: 12px; top: -2px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.rc-lane.is-done .rc-flag { color: var(--cobalt); }
.rc-lane.is-done .rc-flag::before { content: ""; display: inline-block; width: 8px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--cobalt); vertical-align: 1px; }
.rc-check { position: absolute; left: 14%; bottom: -2px; transform: translateX(-50%); font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color var(--dur-ui) var(--ease-colour); }
.rc-lane.is-check .rc-check { color: var(--ink); }
.rc-note { position: absolute; top: -2px; left: calc(var(--p) * (100% - 34px)); transform: translateX(-50%); font-size: 13.5px; color: var(--muted); white-space: nowrap; opacity: 0; transition: opacity var(--dur-reveal) var(--ease-out); }
.rc-lane.is-stalled .rc-note { opacity: 1; }
.rc-after { margin-top: clamp(48px, 6vw, 96px); }
.rc-promise { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.6vw, 72px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.rc-promise span { display: block; }
.rc-points { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); }
.rc-points li { padding-top: 18px; border-top: 2px solid var(--ink); color: var(--body); }
.rc-points b { display: block; margin-bottom: 6px; font-size: 19px; color: var(--ink); }
@media (max-width: 760px) {
  .rc-pin.is-pinned { height: 170svh; }
  .rc-lane { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .rc-pin.is-pinned .rc-who p { display: none; }
  .rc-pin.is-pinned .rc-stage { padding-top: 84px; }
  .rc-lane { padding: 14px 0; }
  .rc-check { left: 0; transform: none; }
  .rc-track { height: 58px; }
  .rc-head { flex-wrap: wrap; }
  .rc-clock { align-items: flex-start; } .rc-clock b { text-align: left; }
  .rc-points { grid-template-columns: minmax(0, 1fr); }
  .rc-note { left: auto; right: 12px; transform: none; top: auto; bottom: -4px; }
}

/* ================================================================ FAQ */
.fq { background: var(--ground); }
.cmp .h2 { max-width: 18em; }
.fq-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.fq-head { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 860px) { .fq-grid { grid-template-columns: minmax(0, 1fr); } .fq-head { position: static; } }

/* ================================================================ CONCEPT FORM (cobalt) */
.cx { background: var(--cobalt); color: #fff; }
.cx :focus-visible { outline-color: #fff; }
.cx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cx-copy { display: flex; flex-direction: column; gap: 24px; }
.cx-title { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4.4vw, 70px); line-height: 1; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.cx-lede { font-size: clamp(17px, 1.5vw, 21px); color: rgba(255, 255, 255, .88); max-width: 28em; }
.cx-next { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .28); }
.cx-next li { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .28); }
.cx-next b { font-weight: 600; }
.cx-next span { color: rgba(255, 255, 255, .88); }
.cx-alt { color: rgba(255, 255, 255, .88); }
.cx-alt a { color: #fff; font-weight: 600; }
.cx-form { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 44px); border-radius: 0; background: var(--paper); color: var(--ink); }
.cx-form :focus-visible { outline-color: var(--cobalt); }
.cx-form .field input:focus, .cx-form .field select:focus { border-color: var(--cobalt); }
.cx-prog { display: none; flex-direction: column; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.js .cx-prog { display: flex; }
.cx-prog i { display: block; height: 4px; border-radius: 0; overflow: hidden; background: var(--ground); }
.cx-prog b { display: block; height: 100%; border-radius: inherit; background: var(--cobalt); transform: scaleX(.5); transform-origin: 0 50%; transition: transform var(--dur-ui) var(--ease-out); }
.cx-form.on-2 .cx-prog b { transform: none; }
.cx-step { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 16px; }
.js .cx-form .cx-step[data-step="2"] { display: none; }
.js .cx-form.on-2 .cx-step[data-step="1"] { display: none; }
.js .cx-form.on-2 .cx-step[data-step="2"] { display: flex; animation: stepIn var(--dur-ui) var(--ease-out) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } }
.cx-next-btn { width: 100%; justify-content: center; min-height: 58px; }
.cx-actions { display: flex; gap: 10px; }
.cx-actions .btn-primary { flex: 1; justify-content: center; min-height: 58px; }
.cx-legal { margin: 0; }
@media (max-width: 900px) { .cx-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 460px) { .cx-next li { grid-template-columns: minmax(0, 1fr); gap: 2px; } .cx-actions { flex-direction: column-reverse; } }

/* ---------- Podcast strip: the draft game from /podcasts.html, in miniature ---------- */
.pod-sec { padding-block: clamp(40px, 6vw, 72px); }
.cv-pod-k { font-size: 14px; font-weight: 600; color: var(--cobalt); }
.pod-box { position: relative; }
.pod-box .cv-pod { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; gap: clamp(20px, 3vw, 44px); padding: clamp(16px, 2vw, 24px); }
.cv-pod-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(4px, 1vw, 12px); }
.cv-pod-copy .cv-pod-t { flex: none; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.cv-pod-copy .door-cta { margin-top: auto; padding-top: 12px; }
.pm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); grid-template-rows: auto minmax(0, 1fr); gap: 10px 14px; min-width: 0; padding: 14px; background: var(--ink); color: var(--on-dark); contain: layout paint; }
.pm-top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; font-size: 14px; font-weight: 600; color: var(--cobalt-light); font-variant-numeric: tabular-nums; }
.pm-top b { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: #fff; }
.pm-draw { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pm-tiles { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.pm-tile { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 4px 4px 4px 12px; background: var(--dark-3); overflow: hidden; line-height: 1.15; transition: background-color var(--dur-hover) var(--ease-colour), opacity var(--dur-ui) var(--ease-out), transform var(--dur-hover) var(--ease-out); }
.pm-tile i { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c1); }
.pm-tile i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: var(--c2); }
.pm-tile b { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: -0.015em; }
.pm-tile small { font-size: 13px; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.pm-tile.is-used { background: transparent; box-shadow: inset 0 0 0 1px var(--dark-line); }
.pm-tile.is-used b, .pm-tile.is-used small { color: var(--on-dark-faint); }
.pm-tile.is-used i { opacity: .35; }
.pm-tile.is-drawn { background: var(--cobalt); transform: scale(1.05); z-index: 1; }
.pm-tile.is-drawn small { color: #fff; }
.pm-cursor { position: absolute; left: 0; top: 0; width: 34px; height: 30px; z-index: 3; opacity: 0; pointer-events: none; transition-property: transform, opacity; transition-timing-function: var(--ease-out); transition-duration: 0ms, var(--dur-hover); }
.pm-cursor svg { display: block; width: 100%; height: 100%; fill: var(--cobalt-light); }
.pm-cursor.is-on { opacity: .92; }
.pm-card { display: flex; flex-direction: column; gap: 6px; min-height: 76px; }
.pm-club { font-family: var(--display); font-weight: 500; font-size: 14px; line-height: 1.2; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 40px; padding-right: 10px; background: var(--dark-3); font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity var(--dur-hover) var(--ease-out), transform var(--dur-ui) var(--ease-out); }
.pm-row.is-on { opacity: 1; transform: none; }
.pm-pos { display: grid; place-items: center; align-self: stretch; background: var(--ink); font-size: 13px; }
.pm-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-r { font-family: var(--display); font-weight: 500; }
.pm-pitch { position: relative; min-height: 260px; background: #1A2029; }
.pm-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(232, 234, 238, .13); stroke-width: 1.4px; }
.pm-lines * { vector-effect: non-scaling-stroke; }
.pm-slot { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 1px; width: 62px; transform: translate(-50%, -50%); }
.pm-tok { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 50% 45% 55% 48%; background: var(--dark-3); transition: background-color var(--dur-ui) var(--ease-colour); }
.pm-slot:nth-child(3n) .pm-tok { border-radius: 46% 54% 44% 56%; }
.pm-slot:nth-child(3n + 1) .pm-tok { border-radius: 54% 48% 50% 46%; }
.pm-tok em { font-style: normal; font-family: var(--display); font-weight: 500; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pm-slot.is-filled .pm-tok { background: var(--on-dark); }
.pm-sl { max-width: 100%; font-size: 13px; line-height: 1.1; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity var(--dur-hover) var(--ease-out); }
.pm-slot.is-filled .pm-sl { opacity: 1; }
.pm-pause { all: unset; box-sizing: border-box; position: absolute; right: calc(clamp(16px, 2vw, 24px) + 20px); bottom: calc(clamp(16px, 2vw, 24px) + 20px); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color var(--dur-hover) var(--ease-colour), transform var(--dur-press) var(--ease-out); }
.pm-pause:hover { background: rgba(255, 255, 255, .26); }
.pm-pause:active { transform: scale(.94); }
.pm-pause:focus-visible { outline: 2px solid var(--cobalt-light); outline-offset: 2px; }
@media (max-width: 760px) {
  .pod-box .cv-pod { grid-template-columns: minmax(0, 1fr); }
  .cv-pod-copy .door-cta { margin-top: 0; }
  .pm { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .pm-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pm-tile { min-height: 36px; padding: 2px 2px 2px 8px; }
  .pm-tile i { width: 4px; }
  .pm-tile:nth-child(n + 13), .pm-tile small, .pm-sl { display: none; }
  .pm-pitch { min-height: 0; aspect-ratio: 100 / 76; }
  .pm-slot { width: auto; }
  .pm-card { min-height: 70px; }
  .pm-pause { right: calc(clamp(16px, 2vw, 24px) + 18px); bottom: calc(clamp(16px, 2vw, 24px) + 18px); }
}

@media (prefers-reduced-motion: reduce) {
  .js .cx-form.on-2 .cx-step[data-step="2"] { animation: none; }
}

/* ---------- Splashes ---------- */
.rc-spark { position: absolute; top: 50%; z-index: 3; border-radius: 50% 45% 55% 48%; background: var(--cobalt); pointer-events: none; }
.site-footer { overflow: hidden; }
.paw { position: absolute; z-index: 1; width: 22px; height: 22px; pointer-events: none; color: var(--ink); opacity: 0; }
.paw svg { display: block; width: 100%; height: 100%; fill: currentColor; }

/* Without JavaScript nothing moves the race, so it shows where everyone ends up */
html:not(.js) .rc-lane:nth-child(1) { --p: .62; }
html:not(.js) .rc-lane:nth-child(2) { --p: 1; }
html:not(.js) .rc-lane:nth-child(3) { --p: .4; }
html:not(.js) .rc-clock { display: none; }
html:not(.js) .hx-coat-tag { display: none; }
.rc { overflow-x: clip; }
