:root {
  color-scheme: light;
  --ink: #0f3b3d;
  --paper: #fff;
  --red: #e23a46;
  --mustard: #e8a93b;
  --lilac: #c9c3f5;
  --lime: #dcea6e;
  --muted: #8a9a99;
  --line: rgba(15, 59, 61, 0.16);
  --line-paper: rgba(255, 255, 255, 0.2);
  --display: "Inter", sans-serif;
  --body: "Inter", sans-serif;
  --mono: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
}

::selection {
  background: var(--red);
  color: var(--paper);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 59, 61, 0.75);
  color: var(--paper);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-logo {
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  display: block;
  width: auto;
  max-width: min(200px, 60vw);
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-logo::before {
  content: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2em;
  
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav a {
  transition: color 0.25s ease;
}

.site-nav a:hover {
  color: var(--mustard);
}

.role-hero {
  position: relative;
  display: flex;
  min-height: clamp(38em, 90vh, 60em);
  align-items: center;
  padding: 9em clamp(1em, 8vw, 7em) 5em;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--paper);
}

.role-intro {
  position: relative;
  z-index: 2;
  max-width: 52em;
}

@keyframes hero-copy-enter {
  from {
    opacity: 0;
    transform: translateY(1em);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-image-enter {
  from {
    opacity: 0.5;
    transform: scale(1.08);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.role-intro > * {
  animation: hero-copy-enter 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.role-intro > :nth-child(2) {
  animation-delay: 120ms;
}

.role-intro > :nth-child(3) {
  animation-delay: 240ms;
}

.role-intro > :nth-child(4) {
  animation-delay: 360ms;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 2em;
  color: var(--paper);
  
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.role-hero h1 {
  position: relative;
  z-index: 0;
  display: table;
  max-width: 100%;
  margin: 0;
  padding: 0;
  
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: normal;
}

.role-hero h1 span {
  color: var(--lime);
}

.role-strapline {
  max-width: 28em;
  margin: 2em 0 0;
  color: var(--paper);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.6;
}

.role-visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

.role-visual::before,
.role-visual::after {
  position: absolute;
  z-index: 1;
  content: "";
}

.role-visual::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 59, 61, 0.96) 0%, rgba(15, 59, 61, 0.78) 42%, rgba(15, 59, 61, 0.24) 100%),
    linear-gradient(0deg, rgba(15, 59, 61, 0.6), transparent 55%);
}

.role-visual::after {
  inset: 0 0 0 auto;
  width: 18%;
  background: rgba(226, 58, 70, 0.32);
  clip-path: polygon(48% 0, 100% 0, 100% 100%, 0 100%);
}

.role-visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  animation: hero-image-enter 1400ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  object-fit: cover;
  object-position: center;
}

.hero-cta,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 1em;
  
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-cta {
  min-height: 3.5em;
  margin-top: 2em;
  padding: 1.1em 2em;
  border-radius: 99em;
  background: var(--red);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 0.25em 0.75em rgba(15, 59, 61, 0.18);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-0.2em) scale(1.02);
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 0.6em 1.25em rgba(15, 59, 61, 0.28);
}

.hero-cta:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 0.15em 0.4em rgba(15, 59, 61, 0.2);
}

.hero-cta span[aria-hidden="true"] {
  display: inline-block;
  transition: transform 0.25s ease;
}

.hero-cta:hover span[aria-hidden="true"],
.hero-cta:focus-visible span[aria-hidden="true"] {
  transform: translateX(0.25em);
}

.text-link,
.footer-links a,
.site-nav a {
  transition: color 0.25s ease;
}

.text-link:hover {
  transform: translateX(0.25em);
}

.content-section,
.apply-section,
.location-bar,
.site-footer {
  position: relative;
}

body.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(1.5em);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

body.motion-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.quality-list li,
.responsibility-list li {
  transition: color 250ms ease, padding-left 250ms ease;
}



.location-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 1em clamp(1em, 8vw, 7em);
  background: var(--red);
  color: var(--paper);
  
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.location-bar strong {
  color: var(--lime);
  font-weight: 600;
}

.content-section {
  padding: clamp(4em, 9vw, 8em) clamp(1em, 8vw, 7em);
}

.content-section.paper {
  background: var(--paper);
  color: var(--ink);
}

.content-section.ink {
  background: var(--ink);
  color: var(--paper);
}

.content-section h2 {
  max-width: 18ch;
  margin: 0 0 1em;
  
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}

.content-section p {
  max-width: 70ch;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
}

.quality-list,
.responsibility-list {
  display: grid;
  max-width: 75em;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 3em 0 0;
  padding: 0;
  list-style: none;
}

.quality-list li,
.responsibility-list li {
  position: relative;
  padding: 2em 2em 2em 3em;
  border-top: 1px solid var(--line);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
}

.quality-list li::before,
.responsibility-list li::before {
  position: absolute;
  left: 1em;
  color: var(--red);
  content: "↗";
  
}

.ink .responsibility-list li {
  border-color: var(--line-paper);
}

.ink .responsibility-list li::before {
  color: var(--lime);
}

.prompt-group {
  margin-top: 3em;
}

.prompt-group .prompt {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--red);
}

.prompt-group > p:not(.prompt) {
  margin: 1em 0 0;
}

.task-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(15em, 2fr);
  align-items: start;
  gap: clamp(2em, 6vw, 5em);
}

.task-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.task-copy p {
  max-width: 70ch;
}

.task-copy h3 {
  margin: 2em 0;
  color: var(--red);
  
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
}

.text-link {
  margin-top: 2em;
  color: var(--red);
}

.text-link:hover {
  color: var(--ink);
}

.contract-details {
  display: grid;
  max-width: 60em;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1em;
  margin-top: 3em;
}

.contract-details div {
  padding: 2em;
  border: 1px solid var(--line-paper);
}

.contract-details dt {
  margin-bottom: 1em;
  color: var(--mustard);
  
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.contract-details dd {
  margin: 0;
  line-height: 1.6;
}

.apply-section {
  padding: clamp(4em, 9vw, 8em) clamp(1em, 8vw, 7em);
  background: var(--red);
  color: var(--paper);
}

.apply-section h2 {
  max-width: 18ch;
  margin: 0;
  
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}

.apply-section p {
  max-width: 65ch;
  margin: 2em 0;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
}

.apply-section .hero-cta {
  background: var(--ink);
}

.apply-section .hero-cta:hover {
  background: var(--lime);
  color: var(--ink);
}

.site-footer {
  padding: 3em clamp(1em, 5vw, 4em) 2em;
  background: var(--ink);
  color: var(--paper);
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
}


.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-links a:hover,
.cookie-policy:hover {
  color: var(--mustard);
}

.footer-bottom {
  margin-top: 2em;
  color: var(--muted);
  
  font-size: 0.8rem;
}

.footer-bottom button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.cookie-banner,
.cookie-settings {
  position: fixed;
  z-index: 10;
  right: 1em;
  bottom: 1em;
  left: 1em;
  max-width: 65em;
  margin: 0 auto;
  padding: 2em;
  border: 1px solid var(--line-paper);
  background: var(--ink);
  box-shadow: 0 1em 3em rgba(0, 0, 0, 0.3);
  color: var(--paper);
}

.cookie-banner[hidden],
.cookie-settings[hidden] {
  display: none;
}

.cookie-banner h2,
.cookie-settings h2 {
  margin: 0 0 1em;
  
  font-size: 130%;
}

.cookie-banner h2 {
  padding-right: 3em;
}

.cookie-banner p,
.cookie-settings p {
  max-width: 75ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 90%;
  line-height: 2;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-top: 1em;
}

.cookie-actions button {
  min-height: 3em;
  padding: 1em;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font: 600 75% var(--mono);
  letter-spacing: 1px;
  transition: background 0.2s ease, color 0.2s ease;
}

.cookie-actions button:hover {
  background: var(--lime);
  color: var(--ink);
}

.cookie-close {
  position: absolute;
  top: 1em;
  right: 1em;
  width: 3em;
  min-height: 3em !important;
  padding: 0 !important;
  font-size: 90% !important;
}

.cookie-policy {
  display: inline-block;
  margin-top: 1em;
  color: var(--lilac);
  
  font-size: 72%;
  text-decoration: underline;
}

.cookie-settings label {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-top: 1em;
  line-height: 1.5;
}

.cookie-settings input {
  accent-color: var(--red);
}

@media (max-width: 48em) {
  .role-hero {
    min-height: 42em;
    padding-top: 9em;
  }

  .role-intro {
    width: 100%;
    min-width: 0;
  }

  .role-hero h1 {
    display: block;
    padding-inline: 0;
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .role-visual::before {
    background:
      linear-gradient(90deg, rgba(15, 59, 61, 0.9), rgba(15, 59, 61, 0.52)),
      linear-gradient(0deg, rgba(15, 59, 61, 0.65), transparent 70%);
  }

  .role-visual img {
    object-position: 60% center;
  }

  .quality-list,
  .responsibility-list,
  .task-layout,
  .contract-details {
    grid-template-columns: 1fr;
  }

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 36em) {
  .site-nav {
    gap: 1em;
    font-size: 0.75rem;
  }

  .location-bar {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.4em;
    padding: 0.65em clamp(0.75em, 4vw, 1em);
    font-size: clamp(0.625rem, 2.5vw, 0.75rem);
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .quality-list li,
  .responsibility-list li {
    padding-right: 0;
  }

  .cookie-banner,
  .cookie-settings {
    right: 1em;
    bottom: 1em;
    left: 1em;
    padding: 1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  body.motion-ready .reveal-item {
    opacity: 1;
    transform: none;
  }
}
