/* ============================================================
   Flaredog — editorial monograph styles for generated
   blog + careers pages. Matches src/styles/style.css:
   Clash Display + Satoshi, hairline rules, sharp corners,
   ocean-mist accent, dash-led uppercase micro-labels.
   ============================================================ */

:root {
  --dusk-blue: #2e5090;
  --dusk-dark: #1b3056;
  --baby-blue: #a1caf1;
  --ghost-white: #f8f8ff;
  --ocean-mist: #00b3a4;
  --ocean-dim: #008f83;
  --cool-steel: #91a3b0;

  --bg-hero: #0d1d35;
  --bg-dark: #122039;
  --bg-darkest: #091522;

  --text-primary: #f8f8ff;
  --text-muted: #91a3b0;

  /* hairline rules — the core structural device */
  --rule: rgba(161, 202, 241, 0.12);
  --rule-soft: rgba(161, 202, 241, 0.07);
  --rule-strong: rgba(161, 202, 241, 0.22);

  --font-display: 'Clash Display', 'Arial Black', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --measure: 68ch;
  --wide: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);

  /* nav — matched to src/styles/style.css */
  --nav-h: 72px;
  --content-wide: 1200px;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-16: 4rem;
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle atmosphere: a single restrained glow, not a solid slab */
  background-image:
    radial-gradient(120% 60% at 82% -8%, rgba(0, 179, 164, 0.10), transparent 60%),
    radial-gradient(90% 50% at 0% 0%, rgba(46, 80, 144, 0.16), transparent 55%);
  background-attachment: fixed;
  padding-top: var(--nav-h);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(0, 179, 164, 0.28); color: var(--ghost-white); }

/* ── Dash-led micro-label (the site signature) ───────────── */
.mg-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocean-mist);
}
.mg-eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.mg-eyebrow--muted { color: var(--cool-steel); }

/* ── Header — unified 1:1 with the landing-page nav ──────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 29, 53, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(161, 202, 241, 0.08);
}
.nav__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ghost-white);
  flex-shrink: 0;
}
.nav__logo img { width: 32px; height: 32px; transition: transform 400ms var(--ease-snap); }
.nav__logo:hover img { transform: rotate(15deg) scale(1.05); }
.nav__links { display: flex; align-items: center; gap: var(--space-8); margin-left: auto; }
.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(248, 248, 255, 0.6);
  letter-spacing: 0.04em;
  position: relative;
  transition: color 200ms var(--ease-out);
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--ocean-mist);
  transition: width 220ms var(--ease-out);
}
.nav__links a:hover { color: var(--ghost-white); }
.nav__links a:hover::after { width: 100%; }
.nav__links a[aria-current] { color: var(--ghost-white); }
.nav__links a[aria-current]::after { width: 100%; }
.nav__cta {
  margin-left: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--ocean-mist);
  color: var(--ocean-mist);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: all 220ms var(--ease-out);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--ocean-mist); color: var(--bg-hero); }

/* Mobile burger + drawer — matched to the SPA nav */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ghost-white);
  transition: all 300ms var(--ease-out);
  border-radius: 2px;
}
.nav__burger.is-open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out);
}
.mobile-drawer.is-open { opacity: 1; pointer-events: all; }
.mobile-drawer nav { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.drawer-link {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--ghost-white);
  letter-spacing: 0.05em;
  transition: color 200ms;
}
.drawer-link:hover { color: var(--ocean-mist); }
.drawer-link--cta { color: var(--ocean-mist); }
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* Footer — matched 1:1 with the SPA footer-wordmark */
.footer-wordmark { background: var(--bg-darkest); overflow: hidden; border-top: 1px solid rgba(161, 202, 241, 0.06); margin-top: var(--space-16); }
.footer-wordmark__giant {
  font-family: var(--font-display);
  font-size: clamp(14vw, 18vw, 22vw);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(161, 202, 241, 0.28);
  text-align: center;
  padding: clamp(var(--space-8), 4vw, var(--space-16)) var(--space-4) 0;
  user-select: none;
  transition: -webkit-text-stroke-color 600ms;
}
.footer-wordmark__giant:hover { -webkit-text-stroke-color: rgba(161, 202, 241, 0.42); }
.footer-wordmark__slim {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-5) var(--gutter); gap: var(--space-6); flex-wrap: wrap;
  border-top: 1px solid rgba(161, 202, 241, 0.06); margin-top: var(--space-6);
}
.footer-wordmark__copy { font-size: var(--text-xs); color: rgba(145, 163, 176, 0.7); }
.footer-wordmark__links { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; }
.footer-wordmark__links a { font-size: var(--text-xs); color: var(--cool-steel); transition: color 200ms; }
.footer-wordmark__links a:hover { color: var(--baby-blue); }
@media (max-width: 600px) {
  .footer-wordmark__slim { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .footer-wordmark__links { row-gap: var(--space-3); column-gap: var(--space-5); }
}

/* ── Page shells ─────────────────────────────────────────── */
.mg-wrap { max-width: var(--wide); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter) 0; }

/* Lede block for index/careers landing */
.mg-lede { border-bottom: 1px solid var(--rule); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.mg-lede__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 1.5rem + 6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 1.1rem 0 0;
}
.mg-lede__sub {
  max-width: 46ch;
  margin-top: 1.4rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
}

/* ── Search (thin underline field, no boxy input) ────────── */
.mg-search {
  width: 100%;
  max-width: 30rem;
  margin-top: 2rem;
  padding: 0.7rem 0.2rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ghost-white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: border-color 200ms var(--ease-out);
}
.mg-search::placeholder { color: var(--cool-steel); }
.mg-search:focus { outline: none; border-color: var(--ocean-mist); }

/* ── Index list (numbered, ruled — editorial, not cards) ─── */
.mg-index { list-style: none; }
.mg-entry { border-bottom: 1px solid var(--rule); }
.mg-entry__link {
  display: grid;
  grid-template-columns: 3.5rem 1fr minmax(140px, 260px);
  gap: clamp(1rem, 3vw, 2.75rem);
  align-items: start;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  transition: background 220ms var(--ease-out);
}
.mg-entry__link:hover { background: linear-gradient(90deg, rgba(0,179,164,0.05), transparent 70%); }
.mg-entry__no {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--cool-steel);
  padding-top: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.mg-entry__meta {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ocean-mist);
  margin-bottom: 0.7rem;
}
.mg-entry__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  transition: color 200ms var(--ease-out);
}
.mg-entry__link:hover .mg-entry__title { color: var(--ocean-mist); }
.mg-entry__excerpt {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 54ch;
}
.mg-entry__aside { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-end; }
.mg-entry__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--rule);
  filter: saturate(0.9) contrast(1.02);
}
.mg-entry__date {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cool-steel);
  font-variant-numeric: tabular-nums;
}
.mg-empty { padding: 3rem 0; color: var(--text-muted); }

/* ── Article ─────────────────────────────────────────────── */
.mg-article { max-width: var(--wide); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) 0; }
.mg-article__head { max-width: var(--measure); }
.mg-article__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 1.2rem 0 0;
}
.mg-article__byline {
  margin-top: 1.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
  color: var(--cool-steel);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mg-article__byline time { color: var(--baby-blue); }

.mg-hero { margin: clamp(2rem, 5vw, 3.5rem) 0; }
.mg-hero img { width: 100%; max-height: 62vh; object-fit: cover; border: 1px solid var(--rule); }
.mg-hero figcaption {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--cool-steel);
  text-transform: uppercase;
}
.mg-hero figcaption a { color: var(--baby-blue); border-bottom: 1px solid var(--rule-strong); }
.mg-hero figcaption a:hover { color: var(--ocean-mist); }

.mg-video { margin: clamp(2rem, 5vw, 3.5rem) 0; }
.mg-video video { width: 100%; border: 1px solid var(--rule); background: #000; }

/* Prose — refined editorial body */
.mg-prose {
  max-width: var(--measure);
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.18rem);
  line-height: 1.78;
  color: #e7ecf3;
}
.mg-prose > * + * { margin-top: 1.4rem; }
.mg-prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ghost-white);
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.mg-prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--ghost-white);
  margin-top: 2.2rem;
}
.mg-prose a {
  color: var(--baby-blue);
  border-bottom: 1px solid rgba(161, 202, 241, 0.32);
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.mg-prose a:hover { color: var(--ocean-mist); border-color: rgba(0, 179, 164, 0.6); }
.mg-prose strong { color: var(--ghost-white); font-weight: 600; }
.mg-prose ul, .mg-prose ol { padding-left: 1.3rem; }
.mg-prose li { margin-top: 0.5rem; }
.mg-prose li::marker { color: var(--ocean-mist); }
.mg-prose blockquote {
  border-left: 2px solid var(--ocean-mist);
  padding: 0.2rem 0 0.2rem 1.5rem;
  margin-left: 0;
  color: var(--baby-blue);
  font-style: italic;
}
.mg-prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.88em;
  background: rgba(161, 202, 241, 0.09);
  padding: 0.12em 0.4em;
  border: 1px solid var(--rule-soft);
}
.mg-prose img { border: 1px solid var(--rule); margin: 1.6rem 0; }
.mg-prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4rem 0; }

.mg-article__foot { max-width: var(--measure); margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.mg-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.mg-tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cool-steel);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--rule);
}
.mg-back {
  display: inline-block;
  margin-top: 2rem;
  color: var(--baby-blue);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(161, 202, 241, 0.3);
  padding-bottom: 2px;
}
.mg-back:hover { color: var(--ocean-mist); border-color: rgba(0, 179, 164, 0.5); }
.mg-back--top { margin-top: 0; margin-bottom: 1.75rem; }

/* ── Careers ─────────────────────────────────────────────── */
.mg-dept { padding: clamp(1.75rem, 3vw, 2.5rem) 0; border-bottom: 1px solid var(--rule); }
.mg-dept__label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocean-mist);
  margin-bottom: 1.2rem;
}
.mg-dept__label::before { content: ''; width: 2rem; height: 1px; background: currentColor; flex-shrink: 0; }
.mg-roles { list-style: none; }
.mg-role {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule-soft);
  transition: padding-left 220ms var(--ease-out);
}
.mg-role:first-child { border-top: 0; }
.mg-role:hover { padding-left: 0.75rem; }
.mg-role__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.55rem);
  transition: color 200ms var(--ease-out);
}
.mg-role:hover .mg-role__title { color: var(--ocean-mist); }
.mg-role__meta { color: var(--cool-steel); font-size: 0.82rem; letter-spacing: 0.04em; }
.mg-role__arrow { color: var(--ocean-mist); transition: transform 200ms var(--ease-out); }
.mg-role:hover .mg-role__arrow { transform: translateX(4px); }

/* Application form — hairline fields, sharp, teal accents */
.mg-apply { max-width: var(--measure); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--rule); }
.mg-apply__title {
  display: flex; align-items: center; gap: 0.9rem;
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ocean-mist); margin-bottom: 2rem;
}
.mg-apply__title::before { content: ''; width: 2rem; height: 1px; background: currentColor; }
.mg-form { display: grid; gap: 1.6rem; max-width: 34rem; }
.mg-field { display: grid; gap: 0.5rem; }
.mg-field label {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cool-steel);
}
.mg-field input {
  padding: 0.65rem 0.1rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ghost-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 200ms var(--ease-out);
}
.mg-field input::placeholder { color: rgba(145, 163, 176, 0.6); }
.mg-field input:focus { outline: none; border-color: var(--ocean-mist); }
.mg-field input[type="file"] { padding: 0.5rem 0; font-size: 0.9rem; color: var(--cool-steel); }
.mg-field input[type="file"]::file-selector-button {
  margin-right: 1rem; padding: 0.5rem 1rem; background: transparent;
  border: 1px solid var(--rule-strong); color: var(--baby-blue);
  font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.06em; cursor: pointer;
  border-radius: 3px; transition: all 200ms var(--ease-out);
}
.mg-field input[type="file"]::file-selector-button:hover { border-color: var(--ocean-mist); color: var(--ocean-mist); }
.mg-submit {
  justify-self: start;
  margin-top: 0.5rem;
  padding: 0.9rem 2.2rem;
  background: var(--ocean-mist);
  color: var(--bg-darkest);
  border: 0;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background 200ms var(--ease-out);
}
.mg-submit:hover { background: var(--ocean-dim); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 179, 164, 0.28); }
.mg-submit:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
.mg-error { color: #ff7a7a; font-size: 0.85rem; letter-spacing: 0.02em; }
.mg-pdf { margin-top: 1.6rem; }
.mg-pdf a { color: var(--baby-blue); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--rule-strong); padding-bottom: 2px; }
.mg-pdf a:hover { color: var(--ocean-mist); }

/* Confirmation */
.mg-confirm { max-width: var(--measure); padding: 1rem 0; }
.mg-confirm h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.1; }
.mg-confirm p { margin-top: 1.2rem; color: var(--text-muted); }
.mg-linkedin-embed { margin: 1.6rem 0 0.4rem; }
.mg-btn-linkedin {
  display: inline-block; margin: 1.2rem 0; padding: 0.85rem 1.6rem;
  background: #0a66c2; color: #fff; border-radius: 3px; font-weight: 600; font-size: 0.9rem;
  transition: transform 200ms var(--ease-out);
}
.mg-btn-linkedin:hover { transform: translateY(-2px); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 760px) {
  .mg-entry__link { grid-template-columns: 2.25rem 1fr; }
  .mg-entry__aside { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; margin-top: 0.4rem; }
  .mg-entry__thumb { width: 40%; max-width: 180px; }
  .mg-role { grid-template-columns: 1fr auto; }
  .mg-role__meta { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .mg-head { flex-direction: column; gap: 0.6rem; align-items: flex-start; }
  .mg-entry__aside { display: none; }
}

/* ── Custom round cursor (parity with landing SPA) ───────── */
.cursor-custom, .cursor-custom * { cursor: none !important; }
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ocean-mist);
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  will-change: transform;
  transition: opacity 200ms ease, width 180ms var(--ease-out), height 180ms var(--ease-out);
}
.cursor-dot.is-active { width: 22px; height: 22px; }
@media (hover: none) {
  .cursor-dot { display: none; }
}

/* ============================================================
   Design partner programme — /design-partners and its four
   product pages. Reuses the .mg-form primitives above for the
   application form; everything here is the page furniture.
   ============================================================ */

.dp { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

.dp-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
.dp-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.4rem + 5.5vw, 5.5rem);
  line-height: 0.99;
  letter-spacing: -0.02em;
  margin: 1rem 0 0;
}
.dp-eyebrow {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ocean-mist);
}
.dp-eyebrow a { color: inherit; }
.dp-eyebrow a:hover { color: var(--baby-blue); }
.dp-lede {
  max-width: 58ch; margin-top: 1.3rem; color: var(--text-muted);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
}
.dp-lede--tight { margin-top: 0.7rem; color: var(--baby-blue); }
.dp-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; font-size: 0.9rem; color: var(--cool-steel); }
.dp-meta a { color: var(--ocean-mist); }
.dp-jump {
  display: inline-block; margin-top: 1.8rem; padding: 0.75rem 1.5rem;
  border: 1px solid var(--rule-strong); border-radius: 3px;
  color: var(--ghost-white); font-size: 0.95rem; letter-spacing: 0.02em;
  transition: all 200ms var(--ease-out);
}
.dp-jump:hover { border-color: var(--ocean-mist); color: var(--ocean-mist); }

.dp-band { padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--rule); }
.dp-band--alt { background: linear-gradient(180deg, rgba(161,202,241,0.03), transparent); }
.dp-h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  letter-spacing: -0.015em; margin: 0;
}

.dp-grid { display: grid; gap: 1.5rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.dp-card { border-top: 1px solid var(--rule-strong); padding-top: 1.1rem; }
.dp-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin: 0 0 0.5rem; }
.dp-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

.dp-products { display: grid; gap: 1.5rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dp-product {
  display: flex; flex-direction: column; border: 1px solid var(--rule);
  border-radius: 4px; overflow: hidden; transition: border-color 220ms var(--ease-out);
}
.dp-product:hover { border-color: var(--ocean-mist); }
.dp-product__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-dark); }
.dp-product__media img { width: 100%; height: 100%; object-fit: cover; }
.dp-product__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.dp-product__tag {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ocean-mist);
}
.dp-product h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: 0; }
.dp-product p { color: var(--text-muted); font-size: 0.92rem; margin: 0; flex: 1; }
.dp-product__cta { margin-top: 0.6rem; font-size: 0.9rem; color: var(--baby-blue); }

.dp-steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.dp-steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.dp-steps__num { font-family: var(--font-display); font-size: 0.95rem; color: var(--ocean-mist); padding-top: 0.15rem; }
.dp-steps h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.25rem; }
.dp-steps p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

.dp-list { margin: 1.6rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.8rem; color: var(--text-muted); max-width: var(--measure); }
.dp-list li::marker { color: var(--ocean-mist); }
.dp-fit { margin-top: 1.2rem; color: var(--text-muted); max-width: var(--measure); }
.dp-fit strong { color: var(--ghost-white); }
.dp-note {
  margin-top: 1.5rem; padding: 0.9rem 1.1rem; border-left: 2px solid var(--ocean-mist);
  background: rgba(0, 179, 164, 0.06); color: var(--baby-blue); font-size: 0.9rem; max-width: var(--measure);
}

.dp-apply { border-bottom: 0; }
.dp-form { max-width: 44rem; gap: 1.4rem; margin-top: 1.6rem; }
.dp-form .mg-field textarea,
.dp-form .mg-field select {
  padding: 0.65rem 0.1rem; background: transparent; border: 0;
  border-bottom: 1px solid var(--rule-strong); color: var(--ghost-white);
  font-family: var(--font-body); font-size: 1rem; resize: vertical;
  transition: border-color 200ms var(--ease-out);
}
.dp-form .mg-field select option { background: var(--bg-darkest); color: var(--ghost-white); }
.dp-form .mg-field textarea:focus,
.dp-form .mg-field select:focus { outline: none; border-color: var(--ocean-mist); }
.dp-form .mg-field textarea::placeholder { color: rgba(145, 163, 176, 0.6); }
.dp-field-row { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dp-req { color: var(--ocean-mist); }

.dp-commitments { border: 1px solid var(--rule); border-radius: 4px; padding: 1.1rem 1.2rem; display: grid; gap: 0.7rem; }
.dp-commitments legend {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cool-steel); padding: 0 0.4rem;
}
.dp-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; color: var(--text-muted); cursor: pointer; }
.dp-check input { margin-top: 0.25rem; accent-color: var(--ocean-mist); }
.dp-fineprint { font-size: 0.82rem; color: var(--cool-steel); margin: 0.2rem 0 0; }

.dp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.dp-status { min-height: 1.3rem; font-size: 0.92rem; margin: 0; }
.dp-status.is-error { color: #ff6b6b; }
.dp-done { border-top: 1px solid var(--ocean-mist); padding-top: 1.4rem; }
.dp-done h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin: 0 0 0.6rem; }
.dp-done p { color: var(--text-muted); max-width: 46ch; margin: 0; }

.dp-closing { border-bottom: 0; }
.dp-closing a { color: var(--ocean-mist); }

@media (max-width: 620px) {
  .dp-steps li { grid-template-columns: 2.2rem 1fr; gap: 0.7rem; }
}

/* Six nav items plus the CTA is tight; never let a label break in half. */
.nav__links a { white-space: nowrap; }

/* Four products read better as a 2x2 than as a row of three with one orphan. */
.dp-products { grid-template-columns: 1fr; }
@media (min-width: 760px) { .dp-products { grid-template-columns: repeat(2, 1fr); } }

/* Consent block on the job application form. The two boxes are visually
   distinct in weight: agreeing to terms is required, marketing is not. */
.mg-consent { display: grid; gap: 0.9rem; padding: 1rem 0 0.2rem; border-top: 1px solid var(--rule); }
.mg-check { display: flex; gap: 0.65rem; align-items: flex-start; cursor: pointer;
  font-size: 0.88rem; line-height: 1.5; color: var(--text-muted); letter-spacing: 0;
  text-transform: none; font-weight: 400; }
.mg-check input { margin-top: 0.25rem; accent-color: var(--ocean-mist); flex-shrink: 0; }
.mg-check a { color: var(--ocean-mist); }
.mg-check a:hover { color: var(--baby-blue); }
.mg-req { color: var(--ocean-mist); }

.dp-consent { display: grid; gap: 0.8rem; padding-top: 0.4rem; border-top: 1px solid var(--rule); }
