/* ============================================================
   Interior pages — Book / Services / EPK / Stores / Work / Clients

   The six source components share one shell (back-link header, centred
   main, hairline footer) and one component vocabulary, all repeated
   inline in each .dc.html. That vocabulary lives here once.

   Per-page content width is the only structural difference between them:
   set --pg-max on .pg (880 / 940 / 980 / 1000 in the source).
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  background: var(--mw-background);
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

/* One content width for the whole site.

   The source components each carried their own (880 / 940 / 980 / 1000), so
   every page put its left edge in a slightly different place and content
   visibly jumped sideways when you navigated between them.

   A uniform shell costs nothing in readability because reading measure is
   controlled separately and more precisely: .pg__lead caps at 600px and
   .card__body at 640px regardless of how wide the shell is. Per-page overrides
   have been removed — set --pg-max here, not in the markup. */
.pg {
  --pg-max: 1000px;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  /* own stacking context so the shared canvas (z-index 0) cannot rise above
     the content (z-index 2) */
  isolation: isolate;
  background: var(--mw-background);
  background-image: radial-gradient(90% 60% at 50% 0%, rgba(129, 65, 247, 0.16) 0%, rgba(8, 8, 16, 0) 65%);
  font-family: var(--mw-font-body);
  color: var(--mw-text);
}

/* The canvas element carries an opaque fill of its own so it can stand alone
   on the hub. Inside .pg it must not paint over the radial wash underneath —
   a child at z-index 0 draws above the parent's background. */
.pg > .mw-bg--page { background: transparent; }

.pg__head,
.pg__main,
.pg__foot {
  position: relative;
  z-index: 2;
}

.pg a:focus-visible {
  outline: 2px solid var(--mw-accent);
  outline-offset: 3px;
}

/* ---------- shell ---------- */

.pg__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--pg-max);
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 24px);
}

/* This is the only navigation control on every interior page, and its hit
   area was 49x13 — the height of the text itself. min-height gives it a real
   target without moving it: the header's own height is set by the logo beside
   it, so growing the link changes nothing visually.

   The transition was a hardcoded 0.18s; it now uses the motion tokens like
   everything else. */
.pg__back {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  text-decoration: none;
  color: var(--mw-text-muted);
  font-family: var(--mw-font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  transition: color var(--mw-dur) var(--mw-ease);
}
.pg__back:hover { color: var(--mw-text); }

.pg__logo {
  display: block;
  width: 84px;
  height: auto;
  opacity: 0.9;
}

.pg__main {
  max-width: var(--pg-max);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 44px) clamp(16px, 4vw, 24px) clamp(56px, 8vw, 80px);
}

/* Full-bleed variant, for pages whose content includes edge-to-edge elements
   like the marquee rails. It keeps everything .pg__main provides — the
   stacking context that lifts content above the background canvas, the
   vertical rhythm, the scroll reveals — and drops only the horizontal
   constraint, so children opt into the measure individually via .pg__measure.

   Before this existed, clients.html used a raw <main> with inline styles to
   get the bleed, which meant it silently opted out of the z-index:2 layer and
   the fixed background painted over its content.

   MUST stay after .pg__main. Same specificity, so source order decides — with
   this block first, the base rule reinstated its own max-width and padding and
   the text inside .pg__measure ended up double-padded, sitting 24px right of
   every other page. */
.pg__main--bleed {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Re-applies the shell measure to a direct child of a bleed main, so text
   blocks line up with .pg__head and .pg__foot on the same page. */
.pg__measure {
  max-width: var(--pg-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

.pg__foot {
  border-top: 1px solid var(--mw-hairline);
  padding: 22px clamp(16px, 4vw, 24px);
}
/* --mw-text-disabled is for things carrying no information. This line names
   the business and its city, so it uses the readable muted tier. */
.pg__foot p {
  max-width: var(--pg-max);
  margin: 0 auto;
  font-family: var(--mw-font-mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mw-text-faint);
}

/* ---------- masthead ---------- */

/* --mw-accent measures 3.83:1 on this canvas, and this is 11px text on every
   interior page. --mw-accent-text is the same hue at 4.74:1. */
.pg__eyebrow {
  display: block;
  font-family: var(--mw-font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mw-accent-text);
}

.pg__title {
  font-family: var(--mw-font-display);
  font-weight: 800;
  font-size: clamp(30px, 7.5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin: 14px 0 0;
  color: var(--mw-text);
}

.pg__lead {
  margin: 20px 0 0;
  max-width: 600px;
  font-size: clamp(15px, 3.8vw, 17px);
  line-height: 1.6;
  color: var(--mw-text-muted);
  text-wrap: pretty;
}

/* section heading — small Mortend rule-line label */
.sec-title {
  font-family: var(--mw-font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--mw-text);
}

/* ---------- hairline grid (stats, timeline, process) ----------
   1px gaps over a hairline-coloured background fake the internal rules,
   so cells stay flush with no double borders when they wrap. */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min, 240px)), 1fr));
  gap: 1px;
  background: var(--mw-hairline);
  border: 1px solid var(--mw-hairline);
  border-radius: 4px;
  overflow: hidden;
}

/* ---- known-count variants ----

   The auto-fit rule above is right when the number of cells is unknown, but
   these grids have a fixed count, and auto-fit will happily land on a
   partially filled last row — 3 + 1, or 2 + 1. Normally that is invisible;
   here it is not, because the hairline trick paints the track background, so
   the empty remainder reads as a blank cell rather than as nothing.

   These step straight between counts that divide the set evenly, skipping
   the ones that leave a gap. Breakpoints are viewport-based and assume the
   interior page shell: content width is min(--pg-max, 100vw - ~48px), and
   --pg-max is 880-1000 across these pages, so the viewport is the binding
   constraint at every step below. */

.grid--trio,
.grid--quad { grid-template-columns: 1fr; }

@media (min-width: 520px) {
  .grid--quad { grid-template-columns: repeat(2, 1fr); }  /* 2 x 2 */
}
@media (min-width: 620px) {
  .grid--trio { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .grid--quad { grid-template-columns: repeat(4, 1fr); }
}

.grid__cell {
  background: var(--mw-primary);
  padding: 22px 20px;
}
/* numbered/labelled cells (process, timeline) sit slightly taller */
.grid__cell--step { padding: 24px 20px; }

.cell-label {
  font-family: var(--mw-font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mw-text-faint);
}

.cell-value {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--mw-text);
}
.cell-value--gold { color: var(--mw-secondary); }

.cell-step {
  font-family: var(--mw-font-mono);
  font-size: clamp(18px, 4.4vw, 22px);
  color: rgba(129, 65, 247, 0.9);
}
.cell-head {
  margin: 10px 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--mw-text);
}
.cell-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(230, 228, 221, 0.6);
}

/* "Own the margin / list / moment" cells (Stores) */
.own__title {
  margin: 0 0 8px;
  font-family: var(--mw-font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--mw-secondary);
}
.own__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(230, 228, 221, 0.66);
}

/* ---------- two-column prose blocks ---------- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--cols-min, 260px)), 1fr));
  gap: 40px;
}

/* ---------- bullet / numbered lists ---------- */

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mw-text-muted);
}

.list__mark {
  flex: none;
  color: var(--mw-accent);
}
.list__mark--num { font-family: var(--mw-font-mono); }
.list__mark--gold { color: var(--mw-secondary); }

/* Two-up variant used inside service cards. It is named "two-up" but was
   auto-fit at a 200px floor, so on a tablet it resolved to three columns —
   which both squeezed the lines into wrapping and left an orphan on a third
   row whenever the list had four items.

   Every list using this class has an even count, so a hard two columns is
   always balanced, and the lines get enough width not to wrap. */
.list--compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

@media (min-width: 560px) {
  .list--compact { grid-template-columns: repeat(2, 1fr); }
}
.list--compact li {
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(230, 228, 221, 0.6);
}

/* ---------- cards ---------- */

.card {
  border: 1px solid var(--mw-hairline);
  border-radius: 4px;
  background: var(--mw-primary);
  padding: clamp(20px, 4.5vw, 30px) clamp(18px, 4vw, 28px);
}

.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.card__title {
  font-family: var(--mw-font-display);
  font-weight: 700;
  font-size: clamp(20px, 4.8vw, 26px);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin: 0;
  color: var(--mw-text);
}

.card__body {
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mw-text-muted);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card--stacked {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* case-study cards (Work) */
.case__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.case__title {
  font-family: var(--mw-font-display);
  font-weight: 700;
  font-size: clamp(19px, 4.6vw, 24px);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--mw-text);
}
.case__body {
  margin: 0 0 20px;
  max-width: 660px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mw-text-muted);
}
.case__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 18px;
  border-top: 1px solid var(--mw-hairline);
  padding-top: 18px;
}
.case__meta-value {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--mw-text);
}

/* ---------- tags ---------- */

.tag {
  font-family: var(--mw-font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 6px 10px;
  color: var(--mw-secondary);
  border: 1px solid var(--mw-secondary-line);
}
.tag--sm { font-size: 10px; padding: 5px 9px; }
.tag--accent {
  color: var(--mw-accent);
  border-color: var(--mw-accent-line);
}
.tag--muted {
  color: var(--mw-text-faint);
  border-color: rgba(230, 228, 221, 0.14);
}

/* ---------- buttons ---------- */

.btn {
  min-height: 52px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  background: var(--mw-accent);
  border: 1px solid var(--mw-accent);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: filter 0.18s ease, transform 0.18s ease;
}
.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn--ghost {
  min-height: 44px;
  padding: 0 18px;
  background: var(--mw-surface);
  border-color: rgba(230, 228, 221, 0.14);
  color: var(--mw-text);
  font-size: 14px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.btn--ghost:hover {
  filter: none;
  transform: none;
  border-color: var(--mw-accent);
  background: var(--mw-accent-soft);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- CTA banner ---------- */

.cta {
  border: 1px solid var(--mw-accent-line);
  border-radius: 4px;
  background: rgba(129, 65, 247, 0.08);
  padding: clamp(22px, 4.5vw, 34px) clamp(18px, 4vw, 28px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta__title {
  margin: 0;
  font-family: var(--mw-font-display);
  font-weight: 700;
  font-size: clamp(18px, 4.4vw, 22px);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--mw-text);
}

.cta__sub {
  margin: 8px 0 0;
  max-width: 420px;
  font-size: 14px;
  color: rgba(230, 228, 221, 0.6);
}

/* ---------- inline link ---------- */

.link {
  color: var(--mw-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(129, 65, 247, 0.4);
}
.link:hover { color: var(--mw-accent-hover); }

/* ---------- marquee rails (Clients) ----------
   The track holds the card set twice; translating it -50% lands exactly on
   the duplicate, so the loop is seamless. The second copy is aria-hidden in
   the markup. */

.rail-head {
  max-width: var(--pg-max);
  margin: 0 auto 20px;
  padding: 0 clamp(16px, 4vw, 24px);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.rail-head .sec-title { margin: 0; }
.rail-head__rule {
  flex: 1;
  height: 1px;
  background: var(--mw-hairline);
}

.rail {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

/* The spacing is margin-right on each item, NOT flex `gap`. With `gap`, N
   items have only N-1 gaps, so translateX(-50%) lands half a gap short of
   the true repeat period and the loop visibly jumps (8px at gap:16px).
   Folding the gap into the item makes the track exactly 2 × period. */
.rail__track {
  display: flex;
  width: max-content;
  animation: rail-left 42s linear infinite;
}
.rail__track--reverse { animation: rail-right 52s linear infinite; }

.rail:hover .rail__track { animation-play-state: paused; }

@keyframes rail-left  { from { transform: translateX(0);    } to { transform: translateX(-50%); } }
@keyframes rail-right { from { transform: translateX(-50%); } to { transform: translateX(0);    } }

.rail__item {
  margin: 0 16px 0 0;
  width: clamp(196px, 62vw, 250px);
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Logo cards used to be narrower (220px) with a different frame ratio than
   the photo cards above them — an arbitrary difference inherited from the
   source design rather than a considered one. Two card shapes stacked in one
   column read as unresolved. Both rails now share one width and one frame
   ratio; the logos get their breathing room from internal padding instead,
   which is how a logo grid should do it. */

.rail__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 25 / 16;
  border: 1px solid var(--mw-hairline);
  border-radius: 4px;
  overflow: hidden;
  background: var(--mw-primary);
}
/* Logo frames share the photo frames' 25/16 ratio — see the note on
   .rail__item above. */

.rail__cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}
.rail__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--mw-text);
}
.rail__name--gold { color: var(--mw-secondary); }
.rail__meta {
  font-family: var(--mw-font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mw-text-faint);
}

/* Image placeholder. Swap the whole .slot div for
   <img class="rail__img" src="…" alt="…"> when real art exists. */
.slot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    rgba(230, 228, 221, 0.03) 0 8px,
    transparent 8px 16px
  );
  font-family: var(--mw-font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mw-text-disabled);
}

/* --img-pos lets a single card fix its own crop without a bespoke class.
   The frame is 25:16 landscape and several source photos are portrait, so
   the default centre crop can cut heads off the top. Set it inline on the
   figure's <img>, e.g. style="--img-pos:50% 0%" to top-align.
   Remember each rail holds its card set TWICE — set it on both copies. */
.rail__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-pos, 50% 50%);
}
/* Padding rather than a smaller frame. box-sizing: border-box is set globally,
   so this shrinks the content box and `contain` fits the mark inside it —
   giving every logo the same optical margin regardless of how much whitespace
   its own file happens to carry. */
.rail__item--logo .rail__img {
  object-fit: contain;
  padding: clamp(16px, 3.5vw, 26px) clamp(22px, 4.5vw, 34px);
}

/* For logo art supplied as white-on-black with no alpha channel. `contain`
   letterboxes it, and its pure #000 against the frame's #0C0C14 leaves a
   faintly visible rectangle. `screen` blends black straight into the backdrop
   (result = backdrop where the source is black) and leaves white untouched, so
   the mark reads as if it were a transparent PNG like its neighbours.

   Only correct on a dark canvas, and only for genuinely black backgrounds —
   on a light theme it would wash the logo out entirely. */
.rail__img--screen { mix-blend-mode: screen; }

/* An endlessly scrolling rail is exactly what this setting is for. Stop it
   and hand the user a normal scroller instead, so the content stays
   reachable. */
@media (prefers-reduced-motion: reduce) {
  .rail {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .rail__track,
  .rail__track--reverse { animation: none; }
}

/* ============================================================
   PRODUCT PAGE — epk.html
   ============================================================ */

/* deck — the one-line promise under the H1 */
.pg__deck {
  margin: 18px 0 0;
  max-width: 680px;
  font-family: var(--mw-font-display);
  font-weight: 700;
  font-size: clamp(17px, 4vw, 22px);
  line-height: 1.25;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--mw-secondary);
  text-wrap: pretty;
}

.pg__lead + .pg__lead { margin-top: 14px; }

/* price block */
.price {
  margin-top: 44px;
  border: 1px solid var(--mw-accent-line);
  border-radius: 4px;
  background: rgba(129, 65, 247, 0.08);
  padding: clamp(22px, 4.5vw, 30px) clamp(18px, 4vw, 28px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.price__figure {
  margin: 0;
  font-family: var(--mw-font-display);
  font-weight: 800;
  font-size: clamp(34px, 8vw, 46px);
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--mw-text);
}
.price__terms {
  margin: 0;
  flex: 1 1 auto;
  font-size: 15px;
  color: var(--mw-text-muted);
}

/* exclusion marker for the "what this is not" list */
.list__mark--no {
  color: var(--mw-text-disabled);
  font-family: var(--mw-font-mono);
}

/* add-ons */
.addons {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--mw-hairline);
  border-radius: 4px;
  overflow: hidden;
}
.addons__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 18px clamp(16px, 3vw, 22px);
  background: var(--mw-primary);
}
.addons__row + .addons__row { border-top: 1px solid var(--mw-hairline); }
.addons__label {
  font-size: 15px;
  color: var(--mw-text-muted);
}
.addons__price {
  font-family: var(--mw-font-mono);
  font-size: 15px;
  color: var(--mw-secondary);
  white-space: nowrap;
}

/* FAQ */
.faq { margin: 0; }
.faq__q {
  font-size: 15px;
  font-weight: var(--mw-weight-semibold);
  color: var(--mw-text);
}
.faq__a {
  margin: 8px 0 0;
  max-width: 660px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mw-text-muted);
}
.faq__a + .faq__q {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--mw-hairline);
}

/* ============================================================
   INTAKE FORM — epk-intake.html
   ============================================================ */

.form { margin-top: 44px; }

.fieldset {
  margin: 0 0 16px;
  padding: clamp(20px, 4.5vw, 28px) clamp(18px, 4vw, 26px);
  border: 1px solid var(--mw-hairline);
  border-radius: 4px;
  background: var(--mw-primary);
}

.fieldset__legend {
  /* negative margin keeps the text aligned with the fields below while the
     padding opens a gap in the border the legend notches through */
  padding: 0 10px;
  margin-left: -10px;
  font-family: var(--mw-font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mw-text);
}

.fieldset__intro {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mw-text-faint);
}

.field { margin-top: 24px; }

.field__label {
  display: block;
  font-size: 14px;
  font-weight: var(--mw-weight-medium);
  color: var(--mw-text);
}

/* "Optional" is stated positively — never rely on the absence of a marker.
   And because it is the only thing distinguishing an optional field from a
   required one, it has to be legible: faint, not disabled. */
.field__opt {
  margin-left: 8px;
  font-family: var(--mw-font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mw-text-faint);
}

.field__hint {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mw-text-faint);
}

.field__input,
.field__textarea,
.field__file {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--mw-hairline-strong);
  border-radius: 4px;
  background: var(--mw-background);
  color: var(--mw-text);
  font-family: var(--mw-font-body);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.field__textarea {
  min-height: 108px;
  resize: vertical;
}

.field__input::placeholder,
.field__textarea::placeholder { color: var(--mw-text-disabled); }

.field__input:hover,
.field__textarea:hover { border-color: rgba(230, 228, 221, 0.3); }

.field__input:focus-visible,
.field__textarea:focus-visible,
.field__file:focus-visible {
  outline: 2px solid var(--mw-accent);
  outline-offset: 2px;
  border-color: var(--mw-accent);
}

.field__file { padding: 10px 14px; font-size: 14px; }
.field__file::file-selector-button {
  margin-right: 14px;
  padding: 8px 14px;
  border: 1px solid var(--mw-hairline-strong);
  border-radius: 4px;
  background: var(--mw-surface);
  color: var(--mw-text);
  font-family: var(--mw-font-body);
  font-size: 13px;
  font-weight: var(--mw-weight-medium);
  cursor: pointer;
}

/* error state */
.field__error {
  display: none;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mw-danger);
}
.field--invalid .field__error { display: block; }
.field--invalid .field__input,
.field--invalid .field__textarea,
.field--invalid .field__file { border-color: var(--mw-danger); }

/* sub-grid for tightly related inputs (contact name + email, link sets) */
.subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0 20px;
}

/* actions */
.form__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.form__submit { border: 1px solid var(--mw-accent); cursor: pointer; }
.form__submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

.form__note {
  flex: 1 1 240px;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mw-text-faint);
}

/* form-level status message */
.form__status {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 4px;
  border: 1px solid var(--mw-hairline);
  background: var(--mw-primary);
  font-size: 14px;
  line-height: 1.6;
  color: var(--mw-text-muted);
}
.form__status[hidden] { display: none; }
.form__status--error {
  border-color: rgba(229, 96, 77, 0.4);
  color: var(--mw-danger);
}

/* success panel replaces the form on completion */
.done {
  margin-top: 44px;
  border: 1px solid var(--mw-accent-line);
  border-radius: 4px;
  background: rgba(129, 65, 247, 0.08);
  padding: clamp(26px, 5vw, 38px) clamp(20px, 4vw, 30px);
}
.done[hidden] { display: none; }
.done__title {
  margin: 0;
  font-family: var(--mw-font-display);
  font-weight: 700;
  font-size: clamp(18px, 4.4vw, 22px);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--mw-text);
}
.done__body {
  margin: 12px 0 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mw-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .field__input,
  .field__textarea,
  .field__file,
  .form__submit { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- scroll reveals ----------
   Applied by selector rather than by adding a class to every section across
   seven pages — the direct children of .pg__main are exactly the blocks that
   should reveal, and keeping it here means new sections get the behaviour for
   free.

   Scroll-driven, so there is no observer and nothing on the main thread. The
   @supports guard is load-bearing: `to` is the resting state, so an engine
   that cannot parse `animation-timeline` must never see the rule at all, or
   it would hold every section at opacity 0 permanently.

   `mw-rise` is defined in motion.css. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pg__main > * {
      animation: mw-rise auto var(--mw-ease-out) both;
      animation-timeline: view();
      /* Blocks already on screen at load sit past this range, so they render
         settled instead of animating in behind the fold. */
      animation-range: entry 0% cover 18%;
    }
  }
}

/* ---------- utility ---------- */

.sec-title--gap { margin-bottom: 22px; }
.card__body--gap { margin-bottom: 18px; }
.grid--steps { --grid-min: 220px; }
.grid--wide { --grid-min: 200px; }
.grid--narrow { --grid-min: 180px; }
.cols--wide { --cols-min: 280px; }
.note { font-size: 14px; color: var(--mw-text-faint); }

.mt-48 { margin-top: 48px; }
.mt-52 { margin-top: 52px; }
.mt-56 { margin-top: 56px; }
.mt-60 { margin-top: 60px; }
.mt-44 { margin-top: 44px; }
.mt-32 { margin-top: 32px; }
