:root {
  --ink: #161414;
  --muted: #665f58;
  --paper: #fffdf8;
  --cream: #f6efe3;
  --red: #c82127;
  --red-dark: #8f151a;
  --green: #0b8b55;
  --gold: #f1b62f;
  --line: rgba(22, 20, 20, 0.12);
  --shadow: 0 24px 70px rgba(34, 23, 14, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

img,
input,
textarea,
button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: absolute;
  top: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(22, 20, 20, 0.14));
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 0.77rem;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--red);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #050505;
}

.hero::before {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 0;
  height: clamp(130px, 22vw, 260px);
  content: "";
  background: linear-gradient(180deg, rgba(255, 253, 248, 0), var(--paper) 86%);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 43%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.24) 44%, rgba(0, 0, 0, 0.56) 84%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.52)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.38));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("https://images.unsplash.com/photo-1739289671654-facdf104dbd0?auto=format&fit=crop&fm=jpg&ixlib=rb-4.1.0&q=82&w=1900&sat=-100");
  background-position: center 42%;
  background-size: cover;
  filter: grayscale(0.22) contrast(1.02) brightness(1.08);
  opacity: 0.92;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 120px 0 94px;
  color: #fff;
  text-align: center;
}

.hero-logo {
  width: clamp(52px, 7vw, 76px);
  height: clamp(52px, 7vw, 76px);
  margin-bottom: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(114, 190, 100, 0.36));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
blockquote {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 950;
}

h2 {
  max-width: 820px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  font-weight: 900;
}

.heading-title {
  display: block;
}

.heading-note {
  display: inline;
  font-size: 1em;
  font-weight: 900;
}

.section-subtitle {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 800;
  line-height: 1.25;
}

p {
  margin: 0;
}

.hero-lead {
  max-width: 720px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 900;
}

.hero-note {
  max-width: 620px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  font-style: italic;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: #67bd5c;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 24px rgba(103, 189, 92, 0.35);
}

.button-primary:hover {
  background: #55a94c;
}

.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.button-light {
  color: var(--ink);
  background: #fff;
}

.intro-section,
.split-section,
.mission-section,
.apply-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) 0;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
}

.section-copy {
  display: grid;
  gap: 20px;
}

.section-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.stat-panel {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.stat-panel div {
  display: grid;
  gap: 2px;
  padding: 30px;
  border-bottom: 1px solid var(--line);
}

.stat-panel div:last-child {
  border-bottom: 0;
}

.stat-panel strong {
  color: var(--green);
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1;
}

.stat-panel span,
.region-list {
  color: var(--muted);
}

.image-band {
  min-height: 560px;
  display: grid;
  align-items: end;
  padding: clamp(42px, 8vw, 84px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(14, 11, 8, 0.82), rgba(14, 11, 8, 0.18)),
    url("assets/uwa-network.svg");
  background-position: center;
  background-size: cover;
}

.image-band div {
  width: min(760px, 100%);
}

.image-band h2 {
  margin-bottom: 18px;
}

.image-band p {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.split-image {
  aspect-ratio: 1 / 1;
  min-height: auto;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(11, 139, 85, 0.12), rgba(200, 33, 39, 0.1)),
    url("assets/uwa-circle-banner.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: var(--shadow);
}

.region-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.region-list li {
  padding: 14px 16px;
  border-left: 5px solid var(--green);
  background: #fff;
}

.mission-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-block {
  display: grid;
  gap: 18px;
}

.quote-block p {
  color: var(--muted);
  font-weight: 800;
}

.quote-block > p:first-of-type {
  color: var(--red);
  font-weight: 900;
}

.mission-visual {
  align-content: center;
}

.mission-image {
  width: min(100%, 520px);
  justify-self: center;
  margin-top: 14px;
  filter: drop-shadow(0 26px 44px rgba(22, 20, 20, 0.16));
}

blockquote {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 950;
}

.apply-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: start;
}

.apply-copy {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 20px;
}

.apply-copy p:not(.eyebrow) {
  color: var(--muted);
}

.application-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fffdf8;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(11, 139, 85, 0.12);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--green) 50%),
    linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 52%,
    calc(100% - 14px) 52%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

select:disabled {
  color: rgba(102, 95, 88, 0.72);
  cursor: not-allowed;
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  color: var(--muted);
  font-weight: 800;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: var(--red);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 34px 18px;
  color: #fff;
  background: var(--ink);
  text-align: center;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hero {
    min-height: 760px;
  }

  .hero::after {
    background:
      radial-gradient(circle at 50% 38%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.28) 44%, rgba(0, 0, 0, 0.62) 84%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.42));
  }

  .hero-media {
    background-position: center 36%;
  }

  .intro-section,
  .split-section,
  .mission-section,
  .apply-section,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .split-image {
    min-height: auto;
  }

  .apply-copy {
    position: static;
  }
}

@media (max-width: 520px) {
  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero-content {
    width: min(100% - 28px, 850px);
    padding-bottom: 52px;
  }

  h1 {
    font-size: clamp(2.75rem, 17vw, 4.3rem);
  }

  .button {
    width: 100%;
  }

  .hero .button {
    width: auto;
    min-width: 146px;
  }

  .image-band {
    min-height: 520px;
    padding: 34px 18px;
  }
}
