:root {
  --ink: #22313d;
  --ink-soft: #526471;
  --paper: #fbfff7;
  --white: #ffffff;
  --mint: #dff9ee;
  --aqua: #d8f5f8;
  --teal: #28bfae;
  --coral: #f56f64;
  --sun: #f6b853;
  --line: #d6e5df;
  --shadow: 0 18px 46px rgba(34, 49, 61, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.ourafield-no-popup #popupOverlay,
body.ourafield-no-popup #popupContainer {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 255, 247, 0.94);
  border-bottom: 1px solid rgba(214, 229, 223, 0.8);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(34, 49, 61, 0.08);
}

.nav-shell {
  width: min(1160px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 14px rgba(34, 49, 61, 0.1));
}

.brand-name {
  font-size: 1.08rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--mint);
  color: var(--ink);
  outline: none;
}

.hero {
  min-height: 74vh;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(251, 255, 247, 0.98) 0%, rgba(251, 255, 247, 0.92) 46%, rgba(251, 255, 247, 0.46) 72%, rgba(251, 255, 247, 0.08) 100%),
    url("assets/ourafield-home-work-hero.png") center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-content {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 84px;
}

.hero-content > * {
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #087a6e;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  font-size: 3.9rem;
  max-width: 680px;
}

h2 {
  font-size: 2.35rem;
}

h3 {
  font-size: 1.08rem;
}

.hero-copy {
  margin: 22px 0 0;
  color: #314553;
  font-size: 1.12rem;
  max-width: 650px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #111e27;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(34, 49, 61, 0.18);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--teal);
}

.trust-note {
  margin: 18px 0 0;
  color: #526471;
  font-size: 0.95rem;
  font-weight: 700;
}

.notice-band {
  background: var(--ink);
  color: var(--white);
}

.notice-grid {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.notice-grid > div {
  min-height: 120px;
  padding: 24px;
  background: var(--ink);
}

.notice-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--sun);
}

.notice-grid span {
  color: rgba(255, 255, 255, 0.78);
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

section[id] {
  scroll-margin-top: 112px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 520px;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.role-card,
.standard-item,
.assurance-list > div,
.faq-grid details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.role-card {
  min-height: 320px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.role-code {
  margin: 0 0 10px;
  color: #087a6e;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card-accent {
  display: block;
  width: 52px;
  height: 8px;
  margin-bottom: 26px;
  border-radius: 8px;
}

.card-accent.teal {
  background: var(--teal);
}

.card-accent.coral {
  background: var(--coral);
}

.card-accent.sun {
  background: var(--sun);
}

.card-accent.ink {
  background: var(--ink);
}

.role-card p,
.standard-item p,
.assurance-list p,
.faq-grid p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.role-card-footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.salary-range {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 !important;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff4cf;
  color: #5e4107 !important;
  font-size: 0.92rem;
  font-weight: 900;
}

.role-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.role-apply::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.role-apply:hover,
.role-apply:focus-visible {
  background: #087a6e;
  outline: none;
}

.salary-note {
  max-width: 900px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.split-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 48px;
  align-items: start;
}

.process-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.process-list span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--aqua);
  color: #087a6e;
  font-weight: 900;
}

.process-list p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.standards-band {
  width: 100%;
  max-width: none;
  padding: 86px max(16px, calc((100% - 1160px) / 2));
  background: #ecfbf1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.standard-item {
  min-height: 210px;
  padding: 24px;
}

.standard-item:nth-child(2) {
  border-top: 6px solid var(--sun);
}

.standard-item:nth-child(3) {
  border-top: 6px solid var(--coral);
}

.standard-item:nth-child(4) {
  border-top: 6px solid var(--teal);
}

.assurance-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
}

.assurance-list {
  display: grid;
  gap: 14px;
}

.assurance-list > div {
  padding: 22px;
  box-shadow: none;
}

.form-section {
  padding-top: 20px;
}

.form-shell {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 22px;
  align-items: start;
}

.form-copy {
  padding: 26px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.form-copy h3 {
  color: var(--sun);
}

.form-copy ul {
  padding-left: 20px;
  margin: 18px 0;
}

.form-copy li + li {
  margin-top: 10px;
}

.form-copy p,
.form-copy a {
  color: rgba(255, 255, 255, 0.84);
}

.embedded-form {
  min-height: 560px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-fallback {
  margin: 0;
  color: var(--ink-soft);
}

.faq-section {
  padding-top: 20px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.faq-grid details {
  padding: 22px;
  box-shadow: none;
}

.faq-grid summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  color: var(--ink);
  font-weight: 700;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
}

.policy-page {
  background:
    linear-gradient(180deg, rgba(216, 245, 248, 0.8), rgba(251, 255, 247, 0) 360px);
}

.policy-hero,
.policy-content {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
}

.policy-hero {
  padding: 74px 0 32px;
}

.policy-hero h1 {
  font-size: 3rem;
}

.policy-hero p:last-child {
  color: var(--ink-soft);
  font-weight: 700;
}

.policy-content {
  padding: 20px 0 86px;
}

.policy-content h2 {
  margin-top: 32px;
  font-size: 1.35rem;
}

.policy-content p {
  color: var(--ink-soft);
}

.policy-content a {
  color: #087a6e;
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 68vh;
    background:
      linear-gradient(180deg, rgba(251, 255, 247, 0.97) 0%, rgba(251, 255, 247, 0.9) 54%, rgba(251, 255, 247, 0.62) 100%),
      url("assets/ourafield-home-work-hero.png") center bottom / cover no-repeat;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .notice-grid,
  .role-grid,
  .standards-grid,
  .split-section,
  .assurance-section,
  .form-shell,
  .faq-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .nav-shell {
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links a {
    min-height: 38px;
    display: grid;
    place-items: center;
    padding: 8px 6px;
    text-align: center;
    font-size: 0.86rem;
  }

  .nav-links a:last-child {
    grid-column: 1 / -1;
  }

  .hero-content {
    padding: 58px 0 64px;
  }

  h1 {
    font-size: 2.38rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .button {
    width: 100%;
  }

  .section,
  .standards-band {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  section[id] {
    scroll-margin-top: 216px;
  }

  .notice-grid > div,
  .role-card,
  .standard-item,
  .assurance-list > div,
  .process-list li,
  .form-copy,
  .embedded-form,
  .faq-grid details {
    padding: 18px;
  }
}
