@font-face { font-family: "Fira Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/fira-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/fira-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/fira-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  --red: #E4123E;
  --red-dark: #C20E34;
  --ink: #2E2A27;
  --stone: #655F5A;
  --fog: #F4F2F0;
  --line: #E2DED9;
  --white: #FFFFFF;
  --wrap: 72rem;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Fira Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* Buttons */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1;
  padding: 1rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { background: var(--fog); }
.btn-small { padding: .75rem 1.1rem; font-size: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; }
.logo img { width: clamp(150px, 20vw, 210px); height: auto; }

/* Hero */
.hero { position: relative; }
.hero-photo {
  width: 100%;
  height: clamp(300px, 80vh, 780px);
  object-fit: cover;
  object-position: 40% 12%;
}
@media (max-width: 899px) {
  .hero-photo { height: auto; aspect-ratio: 3 / 2; object-position: 50% 50%; }
}
.hero-panel {
  background: var(--red);
  color: var(--white);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.hero-role { font-weight: 600; font-size: 1rem; opacity: .92; margin-bottom: .9rem; }
.hero h1 { font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.25rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.hero-text { font-size: 1.125rem; max-width: 30rem; margin-bottom: 1.75rem; }

@media (min-width: 900px) {
  .hero-panel {
    position: absolute;
    right: max(clamp(1.25rem, 4vw, 2.5rem), calc((100vw - var(--wrap)) / 2 + 2.5rem));
    bottom: -9rem;
    width: min(30rem, 36vw);
  }
  .hero + .section { padding-top: 13rem; }
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-fog { background: var(--fog); }
.section h2 { font-weight: 800; font-size: clamp(1.75rem, 3.6vw, 2.5rem); letter-spacing: -0.01em; margin-bottom: 1.25rem; }

/* Role */
.role { display: grid; gap: 2rem; }
.role p { font-size: 1.1875rem; max-width: 38rem; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.facts li { border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem; font-size: .95rem; font-weight: 600; color: var(--stone); background: var(--white); }
@media (min-width: 900px) {
  .role { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .facts { justify-content: flex-end; }
}

/* Highlights */
.highlights { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 0 2.5rem; grid-template-columns: 1fr; }
.highlights li { border-top: 2px solid var(--ink); padding: 1.5rem 0 2rem; }
.highlights svg { width: 40px; height: 40px; color: var(--red); margin-bottom: 1rem; }
.highlights h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .5rem; }
.highlights p { color: var(--stone); }
@media (min-width: 640px) { .highlights { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .highlights { grid-template-columns: repeat(3, 1fr); } }

/* Steps */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.steps li::before {
  content: counter(step);
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.25rem;
}
.steps h3 { font-size: 1.1875rem; font-weight: 600; margin: .55rem 0 .25rem; }
.steps p { color: var(--stone); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* Closing CTA */
.closing { background: var(--ink); color: var(--white); text-align: left; }
.closing .wrap { display: grid; gap: 1.5rem; }
.closing h2 { color: var(--white); margin-bottom: .5rem; }
.closing p { font-size: 1.125rem; opacity: .85; max-width: 34rem; }
@media (min-width: 900px) { .closing .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* Footer */
.site-footer { padding: 2.5rem 0; font-size: .95rem; color: var(--stone); border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; gap: 1.25rem; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { text-underline-offset: 3px; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }

/* Dialog */
dialog.apply {
  border: 0;
  border-radius: 8px;
  padding: 0;
  width: min(30rem, calc(100vw - 2rem));
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(30, 20, 15, .3);
}
dialog.apply::backdrop { background: rgba(46, 42, 39, .6); }
.apply-inner { padding: 2rem clamp(1.25rem, 5vw, 2.25rem) 2.25rem; position: relative; border-top: 6px solid var(--red); }
.apply h2 { font-size: 1.625rem; font-weight: 800; margin-bottom: .5rem; padding-right: 2rem; }
.apply-intro { color: var(--stone); margin-bottom: 1.5rem; }
.close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%;
  background: var(--fog); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.close:hover { background: var(--line); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field input {
  width: 100%; font: inherit; padding: .8rem .9rem;
  border: 1.5px solid #CFC9C3; border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(46, 42, 39, .15); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: .9rem; color: var(--stone); margin: 1.25rem 0 1.5rem; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--red); }
.apply .btn { width: 100%; }
.form-error { color: var(--red-dark); font-weight: 600; font-size: .95rem; margin-top: 1rem; }
.hidden { display: none; }
.thanks { text-align: left; }
.thanks svg { width: 48px; height: 48px; color: var(--red); margin-bottom: 1rem; }

/* Legal pages */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 5rem; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; font-weight: 600; margin: 2.25rem 0 .6rem; }
.legal p, .legal ul { margin: 0 0 1rem; }
.legal ul { padding-left: 1.25rem; }
.back { display: inline-block; margin-bottom: 2rem; font-weight: 600; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
