/* ============================================================
   /apply — editorial application page.
   Builds on preview.css (cream + ink, Inter Tight + JetBrains Mono + Fraunces).
   ============================================================ */

body.apply-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.apply-topbar { z-index: 2; }

/* ============================================================
   HERO
   ============================================================ */
.apply-hero {
  padding: 80px 40px 60px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.apply-hero-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-size: clamp(96px, 16vw, 220px);
  color: var(--ink);
  margin: 16px 0 28px;
}
.apply-hero-title .hero-line { display: block; }
.apply-hero-title .hero-line em {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.apply-hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 48px;
}

.apply-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}
.apply-stat {
  padding: 22px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.apply-stat:last-child { border-right: 0; }
.apply-stat:not(:first-child) { padding-left: 28px; }
.apply-stat-num {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.apply-stat-lab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.apply-cta-arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 12px;
  display: inline-block;
  padding-left: 0;
}

/* ============================================================
   FORM SECTIONS
   ============================================================ */
.apply-main {
  flex: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px 80px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.apply-section {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.apply-section:first-of-type { border-top: 0; padding-top: 0; }

.apply-section-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.apply-section-meta .muted { color: var(--ink-4); }

.apply-section-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(48px, 7vw, 76px);
  color: var(--ink);
  margin-bottom: 12px;
}
.apply-section-title em {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.apply-section-lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 620px;
  margin-bottom: 32px;
}

/* ============================================================
   GRID + LABEL/INPUT
   ============================================================ */
.apply-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
  margin-bottom: 24px;
}
.apply-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
  margin-bottom: 24px;
}
.apply-grid-2 > .apply-label-wide,
.apply-grid-3 > .apply-label-wide { grid-column: 1 / -1; }

.apply-label,
.apply-file {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apply-label-wide { width: 100%; }

.apply-label-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.apply-label-text .req {
  font-style: normal;
  color: var(--ink);
  margin-left: 2px;
}
.apply-label-text .opt {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink-4);
}

.apply-label input,
.apply-label textarea,
.apply-label select {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  padding: 8px 0 10px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.apply-label textarea {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  resize: vertical;
  min-height: 64px;
  line-height: 1.5;
}
.apply-label input:focus,
.apply-label textarea:focus,
.apply-label select:focus {
  border-bottom-color: var(--ink);
  box-shadow: 0 4px 0 -3px rgba(11, 11, 11, 0.35);
}
.apply-label input::placeholder,
.apply-label textarea::placeholder { color: var(--ink-4); }
.apply-label select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230B0B0B' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}

/* File input — make it look intentional, not browser-default */
.apply-file input[type="file"] {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-3);
  padding: 10px 0;
  border-bottom: 1px dashed var(--ink);
  background: transparent;
  cursor: pointer;
}
.apply-file input[type="file"]::file-selector-button {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 8px 14px;
  margin-right: 12px;
  border-radius: 0;
  cursor: pointer;
}
.apply-file-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
}

/* ============================================================
   SUBMIT
   ============================================================ */
.apply-submit-wrap {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.apply-submit {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 22px 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: opacity 0.15s, transform 0.15s;
}
.apply-submit:hover { opacity: 0.88; transform: translateX(2px); }
.apply-submit[disabled] { opacity: 0.45; cursor: wait; transform: none; }
.apply-submit span {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.apply-form-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  min-height: 18px;
  color: var(--ink-3);
}
.apply-form-status.error { color: #b8311a; }
.apply-form-status.success { color: #1c5b2e; }

.apply-fineprint {
  font-size: 12px;
  max-width: 620px;
  line-height: 1.55;
}

/* ============================================================
   SUCCESS STATE
   ============================================================ */
.apply-success {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.apply-success.hidden { display: none; }

.apply-success-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(64px, 10vw, 128px);
  color: var(--ink);
  margin-bottom: 18px;
}
.apply-success-title em {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.apply-success-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 28px;
}

.apply-success-actions {
  display: flex;
  gap: 16px;
}
.apply-success-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  transition: background 0.15s, color 0.15s;
}
.apply-success-link:hover { background: var(--ink); color: var(--bg); }

.apply-foot { z-index: 2; position: relative; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .apply-hero { padding: 48px 20px 40px; }
  .apply-stats { grid-template-columns: 1fr; }
  .apply-stat { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
  .apply-stat:last-child { border-bottom: 0; }
  .apply-stat:not(:first-child) { padding-left: 0; padding-top: 18px; }
  .apply-main { padding: 0 20px 60px; }
  .apply-form { gap: 48px; }
  .apply-grid-2, .apply-grid-3 { grid-template-columns: 1fr; gap: 22px; }
  .apply-section-title { font-size: clamp(40px, 11vw, 56px); }
}
