/* Black Ivy Recruitment: styled to match the Nov 2026 Meta ads.
   Ad slide 1 → hero, slide 2 → role band, slide 3 → apply section. */
:root {
  --ivy-orange: #f15a29;
  --ivy-black: #111111;
  --ivy-white: #ffffff;
  --ivy-stone: #f4f3f1;
  --ivy-grey: #5e5a55;
  --ivy-line: #e3dfda;
  --error: #b3261e;

  --font: "Archivo", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: 24px;
  --pad: 24px;
}
@media (min-width: 900px) { :root { --pad: 72px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--font); color: var(--ivy-black); background: var(--ivy-black); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

/* Type */
.display {
  font-family: var(--font); font-weight: 900; font-stretch: 78%; font-variation-settings: "wdth" 78;
  text-transform: uppercase; line-height: .9; letter-spacing: -.015em;
}
.q { color: var(--ivy-orange); }
.label { font: 600 13px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.rule { width: 300px; max-width: 60%; height: 12px; background: var(--ivy-orange); }
.badge { display: inline-block; background: var(--ivy-black); color: var(--ivy-white); font: 600 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; }

/* Buttons */
.pill {
  display: inline-block; background: var(--ivy-orange); color: var(--ivy-black); text-decoration: none;
  font: 800 18px/1 var(--font); border: 0; border-radius: 999px; padding: 18px 34px; cursor: pointer;
  text-align: center; transition: background .2s, color .2s;
}
.pill:hover, .pill:focus-visible { background: var(--ivy-black); color: var(--ivy-orange); }
.pill-sm { font-size: 15px; padding: 11px 20px; }
.pill[disabled] { opacity: .6; cursor: wait; }
.arrow-link { font: 600 14px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ivy-orange); text-decoration: none; }
.arrow-link::after { content: " →"; }

/* Header: transparent over the hero, black once scrolled */
.site-header {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad); transition: background .25s, padding .25s;
}
.site-header.is-solid { background: var(--ivy-black); padding-top: 10px; padding-bottom: 10px; }
.logo img { width: 140px; height: auto; }
@media (min-width: 900px) { .logo img { width: 180px; } }
.site-header .pill:hover { background: var(--ivy-white); color: var(--ivy-black); }

/* Hero (ad slide 1) */
.hero { position: relative; min-height: 78vh; min-height: 78svh; display: flex; align-items: flex-end; overflow: hidden; color: var(--ivy-white); background: var(--ivy-black); }
@media (min-width: 900px) { .hero { min-height: 88vh; } }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-m, center); }
@media (min-width: 700px) { .hero-img { object-position: var(--focus-d, center 30%); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.88) 100%);
}
.hero-text { position: relative; z-index: 1; padding: 0 var(--pad) var(--pad); }
.hero-kicker { font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin-bottom: 6px; }
.hero h1 { font-size: var(--title-size, clamp(56px, 10vw, 150px)); margin-bottom: 18px; }
.kenburns { animation: ivyZoom 6s ease-out both; }
@keyframes ivyZoom { from { transform: scale(1.12); } to { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .kenburns { animation: none; transform: scale(1.04); } html { scroll-behavior: auto; } }

/* Role band (ad slide 2) */
.band { display: grid; background: var(--ivy-orange); }
.band-photo { aspect-ratio: 4 / 3; }
.band-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.band-panel { padding: 40px var(--pad) 48px; color: var(--ivy-black); align-self: center; }
.band-were { font-weight: 800; font-size: 40px; line-height: 1; margin: 22px 0 4px; }
.band-hiring { font-size: clamp(80px, 12vw, 128px); margin-bottom: 20px; }
.band-facts { display: grid; gap: 10px; margin: 24px 0 0; }
.band-facts div { border-top: 2px solid var(--ivy-black); padding-top: 8px; }
.band-facts dt { font: 600 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.band-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 18px; line-height: 1.35; }
@media (min-width: 900px) {
  .band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-panel { order: -1; }
  .band-photo { aspect-ratio: auto; min-height: 620px; }
}

/* Job description */
.description { background: var(--ivy-stone); padding: 56px var(--gutter) 64px; }
.description-inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 48px; justify-content: center; }
.prose { max-width: 720px; }
.prose h2 { font: 600 14px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ivy-orange); margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1em; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--ivy-orange); }
.ad-video { display: none; }
@media (min-width: 1100px) {
  .description-inner { grid-template-columns: minmax(0, 720px) 360px; }
  .ad-video { display: block; position: sticky; top: 96px; align-self: start; }
  .ad-video video { width: 360px; aspect-ratio: 9 / 16; border-radius: 6px; background: var(--ivy-black); }
}

/* Apply section (ad slide 3) */
.apply { position: relative; background: var(--ivy-black); color: var(--ivy-white); padding: 72px var(--gutter) 80px; scroll-margin-top: 56px; overflow: hidden; }
.apply-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) brightness(.38); }
.apply-inner { position: relative; max-width: 720px; margin: 0 auto; }
.apply h2 { font-size: clamp(64px, 11vw, 170px); margin-bottom: 18px; }
.apply h2 .q { margin-left: .08em; }
.apply .label { margin-bottom: 28px; }
.card { background: var(--ivy-white); color: var(--ivy-black); border-radius: 2px; padding: 32px; }
@media (max-width: 480px) { .card { padding: 24px 18px; } }

/* Form */
.form-note { color: var(--ivy-grey); font-size: 15px; margin-bottom: 24px; }
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field > label, legend { display: block; font: 600 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; padding: 0; }
.optional { color: var(--ivy-grey); }
.help { color: var(--ivy-grey); font-size: 14px; margin: -2px 0 8px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: 400 16px/1.4 var(--font); /* 16px stops iOS zooming on focus */
  padding: 14px; border: 1px solid var(--ivy-line); border-radius: 4px; background: var(--ivy-white); color: var(--ivy-black);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ivy-orange); box-shadow: inset 0 0 0 1px var(--ivy-orange); }
.choices { display: grid; gap: 8px; }
@media (min-width: 560px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ivy-line); border-radius: 4px; padding: 11px 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ivy-orange); box-shadow: inset 0 0 0 1px var(--ivy-orange); }
.choice input { width: 20px; height: 20px; accent-color: var(--ivy-orange); margin: 0; flex: none; }
.rating .choices { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rating .choice { flex-direction: column; gap: 4px; padding: 8px 4px; }
.upload { position: relative; display: block; border: 2px dashed var(--ivy-line); border-radius: 4px; padding: 22px 16px; text-align: center; cursor: pointer; }
.upload:hover, .upload:focus-within { border-color: var(--ivy-orange); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload-text { font-weight: 700; }
.upload-file { display: block; color: var(--ivy-grey); font-size: 14px; margin-top: 4px; word-break: break-all; }
.word-count { margin-top: 6px; }
.word-count.over { color: var(--error); font-weight: 600; }
.error { color: var(--error); font-size: 14px; margin: 6px 0 0; }
.invalid input, .invalid select, .invalid textarea, .invalid .choice, .invalid .upload { border-color: var(--error); }
.submit { width: 100%; margin-top: 8px; }
@media (min-width: 700px) { .submit { width: auto; } }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.is-error { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success h3 { font-size: 44px; margin-bottom: 12px; }
.success:focus { outline: none; }

/* Sticky Apply now (phones) */
.sticky-apply {
  position: fixed; z-index: 15; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .2s, opacity .2s;
}
.sticky-apply.is-hidden { transform: translateY(160%); opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .sticky-apply { display: none; } }

/* Home */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--ivy-black); color: var(--ivy-white); }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 56vh; height: 56svh; position: relative; }
.strip::after { content: ""; position: absolute; inset: 0 0 auto; height: 120px; background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,0)); pointer-events: none; }
.strip img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.home-hero-text { padding: 36px var(--pad) 48px; align-self: center; }
.home-hero h1 { font-size: clamp(56px, 8vw, 112px); margin: 14px 0 24px; }
.home-hero h1 span { display: block; color: var(--ivy-orange); }
.home-intro { max-width: 560px; font-size: 18px; }
.home-closing { color: #bdb8b2; font-size: 15px; margin-top: 16px; max-width: 560px; }
@media (min-width: 900px) {
  .home-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 100vh; }
  .strip { order: 2; height: auto; }
  .home-hero-text { padding-top: 120px; }
}
.roles { background: var(--ivy-black); color: var(--ivy-white); padding: 24px var(--gutter) 80px; }
.roles-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 24px; }
@media (min-width: 820px) { .roles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.role-card { text-decoration: none; display: block; }
.role-card-img { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 18px; }
.role-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-d, center 30%); transition: transform .4s; }
.role-card h2 { font-size: clamp(36px, 12vw, 52px); margin-bottom: 10px; transition: color .2s; }
@media (min-width: 820px) { .role-card h2 { font-size: clamp(30px, 3.6vw, 52px); } }
.role-card p { color: #d6d2cd; margin-bottom: 14px; }
.role-card:hover .role-card-img img, .role-card:focus-visible .role-card-img img { transform: scale(1.04); }
.role-card:hover h2, .role-card:focus-visible h2 { color: var(--ivy-orange); }

/* Footer */
.site-footer { background: var(--ivy-black); color: var(--ivy-white); border-top: 1px solid #2a2a2a; padding: 32px var(--pad) 110px; display: grid; gap: 14px; }
.site-footer img { width: 140px; }
.site-footer a { text-decoration: none; }
.site-footer .label { color: #bdb8b2; }
@media (min-width: 900px) { .site-footer { padding-bottom: 32px; grid-template-columns: auto 1fr; align-items: center; justify-items: end; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
