/* Work With Us — precision atelier, scoped under .wwu-page */

.wwu-page {
  --wwu-bg: #050505;
  --wwu-bg-raised: #0e0e0e;
  --wwu-graphite: #1a1816;
  --wwu-line: #2a2a2a;
  --wwu-line-soft: #1c1c1c;
  --wwu-white: #f5f3ef;
  --wwu-muted: #9a9690;
  --wwu-warm: #c4b8a5;
  --wwu-max: 1200px;
  --wwu-ease: cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--wwu-white);
  background: var(--wwu-bg);
  font-family: var(--mm-font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wwu-page a {
  color: inherit;
  text-decoration: none;
}

.wwu-page .wwu-wrap {
  max-width: var(--wwu-max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Hero ---------- */
.wwu-page .wwu-hero {
  position: relative;
  padding: 88px 0 36px;
  background: var(--wwu-bg);
}

.wwu-page .wwu-hero .wwu-wrap {
  width: 100%;
  text-align: center;
}

.wwu-page .wwu-tagline {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.35;
  text-align: center;
}

.wwu-page .wwu-headline {
  font-family: var(--mm-font);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--wwu-line-soft);
  max-width: none;
  color: var(--wwu-white);
  text-align: left;
}

/* ---------- Body grid ---------- */
.wwu-page .wwu-body {
  padding: 0 0 100px;
}

.wwu-page .wwu-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: 48px 64px;
  align-items: start;
}

/* ---------- Apply panel ---------- */
.wwu-page .wwu-apply {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
    var(--wwu-bg-raised);
  border: 1px solid var(--wwu-line);
  padding: 36px 36px 40px;
  position: relative;
}

.wwu-page .wwu-apply::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--wwu-warm);
}

.wwu-page .wwu-apply-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wwu-warm);
  margin-bottom: 8px;
}

.wwu-page .wwu-apply-title {
  font-family: var(--mm-font);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}

.wwu-page .wwu-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}

.wwu-page .wwu-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wwu-page .wwu-field--full {
  grid-column: 1 / -1;
}

.wwu-page .wwu-field label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wwu-muted);
}

.wwu-page .wwu-field input,
.wwu-page .wwu-field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--wwu-line);
  border-radius: 0;
  color: var(--wwu-white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  padding: 10px 0 12px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.35s var(--wwu-ease), box-shadow 0.35s var(--wwu-ease);
  box-shadow: inset 0 -1px 0 transparent;
}

.wwu-page .wwu-field input::placeholder {
  color: rgba(154, 150, 144, 0.55);
}

.wwu-page .wwu-field select {
  cursor: pointer;
  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='%239a9690' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 22px;
}

.wwu-page .wwu-field select option {
  background: #111;
  color: #fff;
}

.wwu-page .wwu-field input:focus,
.wwu-page .wwu-field select:focus {
  border-bottom-color: var(--wwu-warm);
  box-shadow: inset 0 -1px 0 var(--wwu-warm);
}

.wwu-page .wwu-field .errors {
  font-size: 12px;
  min-height: 0;
  margin-top: 4px;
  display: block;
}

/* CV upload */
.wwu-page .wwu-cv-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.wwu-page .wwu-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 12px 18px;
  border: 1px solid var(--wwu-line);
  background: transparent;
  color: var(--wwu-white);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s var(--wwu-ease), background 0.3s var(--wwu-ease),
    transform 0.3s var(--wwu-ease);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wwu-page .wwu-cv-btn::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23c4b8a5' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath d='M12 16V4m0 12-4-4m4 4 4-4M4 20h16'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.wwu-page .wwu-cv-btn:hover,
.wwu-page .wwu-cv-btn.is-filled {
  border-color: var(--wwu-warm);
  background: rgba(196, 184, 165, 0.06);
}

.wwu-page .wwu-cv-btn.is-filled {
  color: var(--wwu-warm);
}

/* Submit */
.wwu-page .wwu-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 28px;
  border: none;
  background: var(--wwu-white);
  color: #0a0a0a;
  font-family: var(--mm-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.35s var(--wwu-ease), background 0.3s ease, color 0.3s ease;
}

.wwu-page .wwu-submit::after {
  content: "";
  width: 18px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%230a0a0a' stroke-width='1.6' viewBox='0 0 24 12'%3E%3Cpath d='M0 6h20M15 1l5 5-5 5'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.35s var(--wwu-ease);
}

.wwu-page .wwu-submit:hover {
  transform: translateY(-2px);
  background: var(--wwu-warm);
}

.wwu-page .wwu-submit:hover::after {
  transform: translateX(4px);
}

/* ---------- Office rail ---------- */
.wwu-page .wwu-office {
  padding: 28px 0 0 8px;
  border-top: 1px solid transparent;
}

.wwu-page .wwu-office-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wwu-muted);
  margin-bottom: 10px;
}

.wwu-page .wwu-office-title {
  font-family: var(--mm-font);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.wwu-page .wwu-office-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--wwu-line);
}

.wwu-page .wwu-office-intro {
  margin: 0 0 28px;
  color: var(--wwu-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.wwu-page .wwu-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wwu-page .wwu-contact-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.wwu-page .wwu-contact-list img {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  opacity: 0.85;
  object-fit: contain;
}

.wwu-page .wwu-contact-list p,
.wwu-page .wwu-contact-list a,
.wwu-page .wwu-contact-list span {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 300;
  color: var(--wwu-muted);
}

.wwu-page .wwu-contact-list a {
  text-decoration: none;
  cursor: pointer;
}

.wwu-page .wwu-contact-list a:hover {
  color: var(--wwu-white);
}

/* ---------- Motion ---------- */
.wwu-page .wwu-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--wwu-ease), transform 0.85s var(--wwu-ease);
}

.wwu-page .wwu-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.wwu-page .wwu-reveal-delay-1 {
  transition-delay: 0.12s;
}

.wwu-page .wwu-reveal-delay-2 {
  transition-delay: 0.24s;
}

.wwu-page .wwu-reveal-delay-3 {
  transition-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {
  .wwu-page .wwu-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .wwu-page .wwu-submit,
  .wwu-page .wwu-cv-btn,
  .wwu-page .wwu-field input,
  .wwu-page .wwu-field select {
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .wwu-page .wwu-hero {
    padding: 88px 0 32px;
  }

  .wwu-page .wwu-body-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .wwu-page .wwu-office {
    padding: 32px 0 0;
    border-top: 1px solid var(--wwu-line-soft);
  }

  .wwu-page .wwu-apply {
    padding: 28px 22px 32px;
  }
}

@media (max-width: 575px) {
  .wwu-page .wwu-wrap {
    padding: 0 18px;
  }

  .wwu-page .wwu-form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .wwu-page .wwu-brand {
    letter-spacing: -0.03em;
  }

  .wwu-page .wwu-submit {
    width: 100%;
    justify-content: center;
  }

  .wwu-page .wwu-cv-btn {
    width: 100%;
    justify-content: center;
  }
}
