:root {
  --apply-ink: #302b2c;
  --apply-muted: #675d60;
  --apply-paper: rgba(255, 255, 255, 0.82);
  --apply-rose: #c6839f;
  --apply-blue: #488ead;
  --apply-gold: #c88b23;
  --apply-line: rgba(58, 59, 52, 0.14);
  --apply-shadow: 0 24px 70px rgba(92, 66, 76, 0.15);
}

.apply-page {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--apply-ink);
  background:
    radial-gradient(circle at 6% 16%, rgba(198, 131, 159, 0.22), transparent 28rem),
    radial-gradient(circle at 94% 76%, rgba(72, 142, 173, 0.19), transparent 30rem),
    linear-gradient(115deg, #f4e7e8 0%, #faf8f4 38%, #f5faf9 100%);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

.apply-page::before,
.apply-page::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(12px, 1.7vw, 24px);
  z-index: 0;
  pointer-events: none;
}

.apply-page::before {
  left: 0;
  background: linear-gradient(180deg, rgba(198, 131, 159, 0.95), rgba(198, 131, 159, 0.2));
}

.apply-page::after {
  right: 0;
  background: linear-gradient(180deg, rgba(72, 142, 173, 0.2), rgba(72, 142, 173, 0.95));
}

.apply-page main,
.apply-page footer { position: relative; z-index: 1; }

.apply-page .navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  white-space: nowrap;
  background: #fff;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  width: 100%;
  margin: 0;
}

.apply-page .brand,
.apply-page .right-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.apply-page .brand { padding-left: 60px; gap: 18px; font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 23px; font-weight: 800; letter-spacing: 0.08em; }
.apply-page .brand img { width: auto; height: 40px; }
.apply-page .nav-links { display: flex; align-items: center; justify-content: center; flex-grow: 1; gap: 38px; margin: 0; padding-right: 60px; }
.apply-page .nav-links a { font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0.05em; }
.apply-page .dropdown { position: relative; display: inline-block; padding-bottom: 15px; margin-bottom: -15px; }
.apply-page .dropdown-toggle { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 500; letter-spacing: 0.3px; }
.apply-page .dropdown-menu { top: 100%; min-width: 220px; padding: 8px 0; margin-top: -2px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); border-radius: 6px; }
.apply-page .dropdown-menu a { display: block; padding: 10px 18px; font-size: 14px; }

.apply-page .nav-links a,
.apply-page .dropdown-toggle,
.apply-page .brand {
  color: var(--apply-ink);
}

.apply-page .nav-links a:hover { color: var(--apply-blue); }

.apply-page .dropdown-menu { display: none; color: var(--apply-ink); }
.apply-page .dropdown:hover .dropdown-menu { display: block; }

.apply-page .dropdown.open .dropdown-menu { display: flex; }
.apply-page header { position: sticky; top: 0; left: 0; width: 100%; margin: 0; padding: 0; box-sizing: border-box; z-index: 900; box-shadow: none; border-radius: 0; }
.apply-page .apply-hero .hero-actions { justify-content: flex-start; }
.apply-page footer { width: 100%; margin: 0; box-sizing: border-box; border-radius: 0; box-shadow: none; }
.apply-page .apply-footer { border-top: 1px solid var(--apply-line); }

.apply-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.apply-page main { width: 100%; }
.apply-page .apply-shell { max-width: 1180px; margin-left: auto; margin-right: auto; }

.apply-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  padding: 92px 0 86px;
}

.apply-kicker{
  color: var(--apply-rose);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brief-kicker,
.section-eyebrow {
  color: var(--apply-rose);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.apply-hero h1 {
  max-width: 670px;
  margin: 18px 0 24px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--apply-ink);
}

.apply-hero h1 em {
  color: var(--apply-rose);
  font-style: normal;
}

.apply-hero-copy {
  max-width: 580px;
  margin: 0;
  color: var(--apply-muted);
  font-family: Georgia, serif;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.apply-button,
.apply-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.apply-button {
  background: var(--apply-ink);
  color: #fff;
  box-shadow: 0 10px 20px rgba(48, 43, 44, 0.18);
}

.apply-button-secondary {
  border: 1px solid var(--apply-line);
  background: rgba(255, 255, 255, 0.5);
  color: var(--apply-ink);
}

.apply-button:hover,
.apply-button-secondary:hover { transform: translateY(-2px); }

.hero-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 25px;
  color: var(--apply-muted);
  font-size: 13px;
}

.hero-note strong { color: var(--apply-ink); }

.team-collage {
  position: relative;
  min-height: 460px;
}

.team-collage::before {
  content: "";
  position: absolute;
  inset: 40px 14px 20px 44px;
  border: 1px solid rgba(72, 142, 173, 0.3);
  transform: rotate(5deg);
}

.team-photo {
  position: absolute;
  overflow: hidden;
  border: 9px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--apply-shadow);
  background: #ddd;
}

.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo.one { top: 12px; right: 7%; width: 56%; height: 258px; transform: rotate(4deg); }
.team-photo.two { bottom: 10px; left: 0; width: 52%; height: 244px; transform: rotate(-5deg); }
.team-photo.three { right: 0; bottom: 52px; width: 38%; height: 176px; transform: rotate(7deg); }

.photo-label {
  position: absolute;
  left: 22px;
  bottom: 28px;
  z-index: 2;
  width: 160px;
  padding: 14px 16px;
  background: var(--apply-ink);
  color: white;
  box-shadow: 0 12px 26px rgba(48, 43, 44, 0.2);
}

.photo-label span { display: block; color: #f1c8d7; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.photo-label strong { display: block; margin-top: 5px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 16px; }

.content-band {
  padding: 82px 0;
  border-top: 1px solid var(--apply-line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

.section-heading h2,
.brief-heading h2 {
  max-width: 4000px;
  margin: 12px 0 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  white-space: nowrap; /* Forces all words onto a single line */
}


.section-heading p { max-width: 360px; margin: 0; color: var(--apply-muted); line-height: 1.6; }
.section-copy { max-width: 420px; color: var(--apply-muted); line-height: 1.7; }

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.role-card {
  position: relative;
  min-height: 290px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(58, 59, 52, 0.1);
  background: var(--apply-paper);
  box-shadow: 0 12px 35px rgba(58, 59, 52, 0.06);
}

.role-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -54px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(198, 131, 159, 0.32);
  border-radius: 50%;
}

.role-card.development::after { border-color: rgba(72, 142, 173, 0.32); }
.role-index { color: var(--apply-gold); font-family: Georgia, serif; font-size: 18px; }
.role-card h3 { margin: 28px 0 12px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 26px; }
.role-card p { max-width: 430px; margin: 0; color: var(--apply-muted); line-height: 1.7; }
.role-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.role-tags span { padding: 7px 10px; border: 1px solid var(--apply-line); color: var(--apply-muted); font-size: 11px; font-weight: 700; }

.requirements-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.requirements-layout h2 { margin-top: 12px; }
.requirements-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.requirement {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--apply-line);
}
.requirement:first-child { padding-top: 0; }
.requirement-number { color: var(--apply-rose); font-family: Georgia, serif; font-size: 18px; }
.requirement strong { display: block; margin-bottom: 6px; font-size: 16px; }
.requirement p { margin: 0; color: var(--apply-muted); line-height: 1.6; }

.brief-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 60px);
  background: #3d3d3d;
  color: #fff;
  box-shadow: 0 18px 42px rgba(48, 43, 44, 0.16);
  padding-left: clamp(28px, 5vw, 60px);
  padding-right: clamp(28px, 5vw, 60px);
}

.brief-panel::before {
  content: none;
  position: absolute;
  right: -90px;
  top: -110px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.brief-kicker { color: #e7a7bd; }
.brief-heading { position: relative; max-width: 700px; }
.brief-heading h2 { color: #fff; }
.brief-heading p { max-width: 1200px; color: rgba(255, 255, 255, 0.78); line-height: 1.7; }

.project-screen {
  position: relative;
  margin: 36px 0 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #ffffff;
  color: var(--apply-ink);
  aspect-ratio: 16 / 5;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

.screen-topbar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; background: #ded9d5; font: 700 9px/1 system-ui, sans-serif; color: #675d60; }
.screen-topbar span { width: 7px; height: 7px; border-radius: 50%; background: var(--apply-rose); }
.screen-topbar span:nth-child(2) { background: var(--apply-gold); }
.screen-topbar span:nth-child(3) { background: var(--apply-blue); }
.screen-topbar b { margin-left: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.screen-body { display: grid; grid-template-columns: 30% 1fr 30%; height: calc(100% - 30px); padding: 10px; gap: 8px; background: #3d3d3d; }
.screen-body::before { content: "Brief Description of Part of Brain\A\A\A\AAssociated Neurological Conditions"; white-space: pre; display: flex; align-items: center; justify-content: space-around; padding: 12px; border: 1px solid rgba(48, 43, 44, 0.45); background: #cad9f2; color: #111; font: 600 clamp(9px, 1.3vw, 14px)/1.25 system-ui, sans-serif; text-align: center; }
.screen-model { 
  position: relative; 
  display: grid; 
  place-items: center; 
  border: 1px solid rgba(48, 43, 44, 0.45); 
  background: #cad9f2; 
  overflow: hidden; /* Keeps the edges of your image clipped inside the borders */
}

/* Erased the pseudo-elements that drew the old shape and text */
.screen-model::before,
.screen-model::after {
  display: none !important;
  content: none !important;
}

/* Made your new image stretch to perfectly fill the space */
.model-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Keeps aspect ratio while fully filling the container */
  display: block;
}

/* Removed old absolute-positioned icons and text styles */
.screen-model i,
.screen-model strong { 
  display: none !important; 
}
/* Container for the image directly below the topbar */
.screen-image-container {
  width: 100%;
  display: block;
  overflow: hidden;
  line-height: 0; /* Prevents tiny whitespace gaps below the image */
}

/* Forces the raw image to match the width of the topbar seamlessly */
.model-preview-image {
  width: 100%;
  height: auto;
  display: block;
}

.screen-sidebar { display: flex; flex-direction: column; gap: 9px; padding: 14px; border: 1px solid rgba(48, 43, 44, 0.45); background: #cad9f2; font: 700 10px/1.2 system-ui, sans-serif; }
.screen-sidebar b { margin-bottom: 8px; font-size: 12px; }.screen-sidebar span { padding: 9px 0; border-bottom: 1px solid rgba(48, 43, 44, 0.18); color: #111; }

.brief-features {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 42px 0;
}

.brief-feature { min-height: 138px; padding: 18px; border: 1px solid rgba(58, 59, 52, 0.14); background: rgba(255, 253, 253, 0.90); color: var(--apply-ink); }
.brief-feature-icon { color: #e8b7ca; font-family: Georgia, serif; font-size: 24px; }
.brief-feature strong { display: block; margin-top: 24px; font-size: 14px; }
.brief-feature span { display: block; margin-top: 7px; color: var(--apply-muted); font-size: 12px; line-height: 1.4; }

.skills-row { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.skills-row span { padding: 8px 12px; border: 1px solid var(--white); color: var(--white); font-size: 12px; }
.brief-link { position: relative; display: inline-flex; margin-top: 30px; color: rgba(255, 253, 253, 0.90); font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }

.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.process-step { padding: 24px; background: rgba(255, 255, 255, 0.5); border-top: 3px solid var(--apply-rose); }
.process-step:nth-child(2) { border-color: var(--apply-blue); }
.process-step:nth-child(3) { border-color: var(--apply-gold); }
.process-step span { color: var(--apply-muted); font-family: Georgia, serif; }
.process-step h3 { margin: 24px 0 8px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 18px; }
.process-step p { margin: 0; color: var(--apply-muted); line-height: 1.6; font-size: 14px; }

.apply-footer { padding: 36px 0 58px; color: var(--apply-muted); font-size: 13px; text-align: center; }

@media (max-width: 1024px) {
  .apply-page #mobileMenuToggle { display: flex; }
  .apply-page .navbar { padding: 14px 20px; gap: 10px; }
  .apply-page .brand { padding-left: 20px; gap: 12px; }
  .apply-page .brand img { width: auto; height: 36px; }
  .apply-page .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; justify-content: initial; margin: 0; padding: 16px 24px; gap: 0; background: #ffffff !important; border-top: 1px solid var(--gold, #fdfdfd); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); z-index: 999; }
  .apply-page .nav-links a,
  .apply-page .dropdown,
  .apply-page .dropdown-toggle { display: block; width: 100%; box-sizing: border-box; }
  .apply-page .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(171, 116, 20, 0.2); font-size: 16px; letter-spacing: 0.05em; }
  .apply-page .dropdown { padding: 0; margin: 0; }
  .apply-page .dropdown-toggle { display: flex; align-items: center; padding: 12px 0; }
  .apply-page .dropdown-menu { position: static; display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 4px 0 4px 16px; border: 0; box-shadow: none; background: transparent; }
  .apply-page .dropdown-menu { display: none; }
  .apply-page .dropdown.open .dropdown-menu { display: flex; }
  .apply-page .dropdown-menu a { padding: 11px 0; border-bottom: 1px solid rgba(171, 116, 20, 0.08); font-size: 15px; }
}

@media (min-width: 1025px) {
  .apply-page .nav-links { width: auto; }
}

@media (max-width: 800px) {
  .apply-shell { width: min(100% - 32px, 600px); }
  .apply-hero { grid-template-columns: 1fr; padding: 58px 0 64px; }
  .team-collage { min-height: 370px; }
  .section-heading, .requirements-layout { grid-template-columns: 1fr; display: grid; gap: 14px; }
  .role-grid, .process-grid { grid-template-columns: 1fr; }
  .brief-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .apply-hero h1 { font-size: 44px; }
  .hero-actions { display: grid; }
  .apply-button, .apply-button-secondary { width: 100%; }
  .team-collage { min-height: 300px; }
  .team-photo.one { height: 180px; }
  .team-photo.two { height: 175px; }
  .team-photo.three { height: 125px; }
  .photo-label { bottom: 13px; left: 10px; }
  .content-band { padding: 58px 0; }
  .project-screen { aspect-ratio: 4 / 3; }
  .screen-body { padding: 12px; gap: 10px; }
  .brief-features { grid-template-columns: 1fr 1fr; }
}
