/* MO4 Network careers form. Tokens follow mo4network.com: black, white, Poppins, #171717 panels, #2B2B2B discs, #0189DB accent. */
:root {
  --ink: #000000;
  --panel: #171717;
  --disc: #2b2b2b;
  --line: #2b2b2b;
  --paper: #ffffff;
  --mute: #a3a3a3;
  --signal: #0189db;
  --alert: #ff7a7a;
  --radius: 5px;
  --font: "Poppins", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -48px; padding: 8px 14px;
  background: var(--paper); color: var(--ink); border-radius: var(--radius); z-index: 10;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
}
.brand img { width: 130px; }
.brand-text { font-weight: 800; letter-spacing: 0.12em; }
.top-link { font-size: 13px; text-decoration: none; color: var(--mute); }
.top-link:hover { color: var(--paper); }

main { padding: 0 var(--gutter); max-width: 1240px; margin: 0 auto; }

/* Hero: the signature. MO4-style display type with swapped outline / italic letters. */
.hero { position: relative; padding: clamp(32px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }
.eyebrow {
  margin: 0 0 14px; font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute);
}
.hero-title {
  margin: 0; font-weight: 800; text-transform: uppercase;
  font-size: clamp(48px, 11vw, 148px); line-height: 0.9; letter-spacing: -0.02em;
}
.hero-title .line { display: block; }
.hero-title .o { color: transparent; -webkit-text-stroke: 2px var(--paper); }
.hero-title .s {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0; font-size: 1.08em;
}
.lede { max-width: 620px; margin: 28px 0 0; font-size: 16px; color: #d4d4d4; }
.plus { position: absolute; font-size: 34px; font-weight: 300; line-height: 1; }
.p1 { top: 18px; right: 6%; }
.p2 { bottom: 24px; right: 32%; font-size: 24px; }
.dots {
  position: absolute; top: 34%; right: 0; width: 120px; height: 80px;
  background-image: radial-gradient(circle, var(--paper) 1.6px, transparent 2px);
  background-size: 16px 16px; opacity: 0.85;
}

/* Section blocks */
.block { padding: 28px 0 56px; border-top: 1px solid var(--line); }
.block-title { margin: 0 0 24px; font-size: 22px; font-weight: 700; }
.muted { color: var(--mute); }

/* Team discs (echoes the Media / Agency circles on mo4network.com/Join) */
.discs { display: flex; flex-wrap: wrap; gap: 16px; }
.disc {
  width: 168px; aspect-ratio: 1; border-radius: 50%; border: 0;
  background: var(--disc); color: var(--paper); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 18px; font: 600 16px/1.2 var(--font); text-align: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.disc:nth-child(even) { background: var(--panel); }
.disc small { font-size: 12px; font-weight: 400; color: var(--mute); }
.disc:hover { background: #3a3a3a; }
.disc[aria-checked="true"] { background: var(--paper); color: var(--ink); }
.disc[aria-checked="true"] small { color: #4a4a4a; }
.disc:disabled { opacity: 0.4; cursor: not-allowed; }

/* Role rows */
.roles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.role-btn {
  width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  padding: 22px 4px; background: none; border: 0; border-bottom: 1px solid var(--line);
  color: var(--paper); text-align: left; cursor: pointer; font-family: var(--font);
}
.role-btn:hover .role-title { text-decoration: underline; text-underline-offset: 6px; }
.role-title { display: block; font-size: clamp(20px, 3vw, 30px); font-weight: 700; line-height: 1.2; }
.role-meta { display: block; margin-top: 4px; font-size: 13px; color: var(--mute); }
.role-go {
  font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: var(--radius);
  background: var(--paper); color: var(--ink); white-space: nowrap;
}

/* Apply layout */
.apply { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.role-card { position: sticky; top: 24px; padding: 24px; background: var(--panel); border-radius: var(--radius); }
.card-title { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.15; }
.card-meta { margin: 8px 0 18px; font-size: 13px; color: var(--mute); }
.post summary { cursor: pointer; font-size: 14px; font-weight: 500; }
.post-body { margin-top: 12px; max-height: 50vh; overflow: auto; font-size: 13.5px; color: #d4d4d4; white-space: pre-line; }
.link-btn {
  margin-top: 18px; padding: 0; background: none; border: 0; color: var(--mute);
  font: 400 13px var(--font); text-decoration: underline; cursor: pointer;
}
.link-btn:hover { color: var(--paper); }

/* Form */
form { min-width: 0; }
.group { margin: 0 0 40px; padding: 0; border: 0; min-width: 0; }
.group legend { padding: 0; margin-bottom: 18px; font-size: 20px; font-weight: 700; }
.group-hint { margin: -10px 0 18px; font-size: 13px; color: var(--mute); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; min-width: 0; }
.field label, .label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 500; }
.question { font-weight: 500; line-height: 1.5; }
.question b { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; font-weight: 600; }
.opt { font-weight: 400; color: var(--mute); font-size: 12px; margin-left: 4px; }
.hint { margin: -2px 0 8px; font-size: 12.5px; color: var(--mute); }

input:not([type="checkbox"]):not([type="file"]), select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); color: var(--paper);
  font: 400 15px/1.5 var(--font);
}
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
input::placeholder, textarea::placeholder { color: #6b6b6b; }
input:hover, select:hover, textarea:hover { border-color: #3d3d3d; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(1, 137, 219, 0.28); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }
.pair { display: grid; grid-template-columns: 1fr 96px; gap: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); font-size: 13.5px; cursor: pointer;
}
.chip input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }

.drop {
  position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 28px 16px; border: 1px dashed #4a4a4a; border-radius: var(--radius);
  background: var(--panel); text-align: center; cursor: pointer; margin: 0 !important;
}
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--paper); }
.drop:focus-within { border-color: var(--signal); }
.drop.has-file { border-style: solid; border-color: var(--paper); }
.drop-main { font-weight: 500; }
.drop-sub { font-size: 12.5px; color: var(--mute); }

.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 13.5px !important; color: #d4d4d4; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--paper); flex: none; }

.err { margin: 6px 0 0; font-size: 12.5px; color: var(--alert); }
.field.invalid :is(input, select, textarea), .field.invalid .drop { border-color: var(--alert); }
.form-error { padding: 12px 14px; border-radius: var(--radius); background: rgba(255, 122, 122, 0.1); color: var(--alert); font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border: 0;
  border-radius: var(--radius); background: var(--paper); color: var(--ink);
  font: 600 16px var(--font); text-decoration: none; cursor: pointer;
}
.cta:hover { background: #e6e6e6; }
.cta:disabled { opacity: 0.6; cursor: progress; }
.cta.ghost { background: var(--panel); color: var(--paper); }
.cta.ghost:hover { background: var(--disc); }

/* Done */
.done { padding: 72px 0 96px; }
.done-title { margin: 0; font-size: clamp(40px, 8vw, 96px); font-weight: 800; text-transform: uppercase; line-height: 0.95; }
.done .cta { margin-top: 32px; }

.foot {
  display: flex; justify-content: space-between; gap: 16px; padding: 28px var(--gutter);
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mute);
}

/* Reveal motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.45s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .hero-title .line { animation: rise 0.7s ease-out both; }
  .hero-title .line + .line { animation-delay: 0.08s; }
}

@media (max-width: 860px) {
  .apply { grid-template-columns: 1fr; }
  .role-card { position: static; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; gap: 0; }
  .disc { width: calc(50% - 8px); }
  .dots, .p2 { display: none; }
  .role-btn { grid-template-columns: 1fr; gap: 10px; }
  .role-go { justify-self: start; }
  .cta { width: 100%; justify-content: center; }
}
