/* Aloi: recruitment for manufacturing plants.
   One stylesheet, no build step. Tokens first, then base, layout, components, pages. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colour: white ground, graphite-green ink, one action colour (patina), bronze for the mark. */
  --ink: #0f1b1a;
  --ink-2: #33423f;
  --muted: #56645f;
  --line: #d8e0de;
  --line-strong: #7e8e8a;
  --bg: #ffffff;
  --bg-soft: #f1f5f4;
  --bg-deep: #0c2a26;
  --brand: #0b6e62;
  --brand-hover: #085a50;
  --brand-soft: #e3f0ed;
  --brand-ink: #09594f;
  --bronze: #b06a2c;
  --brass: #e2a65c;
  --on-dark: #ffffff;
  --on-dark-2: #c6dcd7;
  --on-patina: #d6ece7;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --ok: #067647;

  /* Type */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.4rem, 1.55rem + 3.6vw, 4.5rem);
  --fs-h1: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  --fs-h2: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
  --fs-h3: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.35vw, 1.28rem);
  --fs-title: 1.5rem;
  --fs-initials: 2rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Space, shape, depth */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-focus: 4px;
  --radius-hairline: 2px;
  --shadow-1: 0 1px 2px rgb(15 27 26 / 0.06), 0 4px 14px rgb(15 27 26 / 0.07);
  --shadow-2: 0 2px 6px rgb(15 27 26 / 0.08), 0 18px 40px rgb(15 27 26 / 0.16);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brand-hover); text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; font-weight: 800; font-stretch: 118%; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; font-stretch: 105%; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: var(--radius-focus); }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--brass); }
/* Brass is too faint on patina (2.9:1); white reads 6.1:1. */
.closing :focus-visible { outline-color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: var(--s3) var(--s4); border-radius: var(--radius); }
.skip-link:focus { top: var(--s4); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 7vw, 112px); }
.section--soft { background: var(--bg-soft); }
.section-head { display: grid; gap: var(--s4); margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head p { max-width: 52ch; }
.section-head p { color: var(--ink-2); font-size: var(--fs-lead); }
.lead { font-size: var(--fs-lead); color: var(--ink-2); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: 1rem; font-stretch: 105%; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brand-soft); color: var(--ink); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.55); }
.btn--ghost-light:hover { border-color: #fff; color: #fff; background: rgb(255 255 255 / 0.08); }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.btn .icon { width: 18px; height: 18px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: var(--s5); min-height: var(--header-h); }
.brand-link { display: inline-flex; align-items: center; color: var(--brand); margin-right: auto; }
.brand-link svg { height: 30px; width: auto; }
.nav-main { display: flex; align-items: center; gap: var(--s2); }
.nav-main a:not(.btn) { padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-main a:not(.btn):hover { background: var(--bg-soft); }
.nav-main a[aria-current="page"]:not(.btn) { color: var(--brand-ink); position: relative; }
.nav-main a[aria-current="page"]:not(.btn)::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 7px; height: 7px; background: var(--bronze); transform: translateX(-50%) rotate(45deg); }
.lang-switch { font-size: var(--fs-small); }
.menu { display: none; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); font-weight: 700; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); padding: var(--s4) var(--gutter) var(--s5); display: grid; gap: var(--s1); }
.menu-panel a:not(.btn) { padding: 14px 4px; font-size: 1.125rem; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-panel .btn { margin-top: var(--s4); }
.menu .close-label { display: none; }
.menu[open] .open-label { display: none; }
.menu[open] .close-label { display: inline; }

@media (max-width: 820px) {
  .nav-main { display: none; }
  .menu { display: block; }
  .header-apply { min-height: 44px; padding: 0 16px; white-space: nowrap; }
  .brand-link svg { height: 26px; }
}
/* On phones the CV button lives in the menu (and in the hero), so the bar never wraps. */
.menu-apply { display: none; }
@media (max-width: 560px) {
  .header-apply { display: none; }
  .menu-apply { display: inline-flex; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Hero (home) ---------- */

.hero { position: relative; isolation: isolate; color: #fff; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: var(--bg-deep); }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 55% 50%; z-index: -2; transform-origin: 60% 50%; animation: hero-settle 1600ms var(--ease-out) both; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(10 22 21 / 0.9) 0%, rgb(10 22 21 / 0.74) 42%, rgb(10 22 21 / 0.22) 78%, rgb(10 22 21 / 0.1) 100%),
              linear-gradient(0deg, rgb(10 22 21 / 0.55) 0%, rgb(10 22 21 / 0) 45%); }
.hero .container { padding-block: clamp(64px, 10vw, 120px) clamp(40px, 6vw, 72px); }
.hero h1 { font-size: var(--fs-display); max-width: 15ch; line-height: 1.02; letter-spacing: -0.022em; }
.hero .lead { color: rgb(255 255 255 / 0.9); margin-top: var(--s5); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: clamp(28px, 4vw, 40px); }
.hero-note { margin-top: var(--s4); font-size: var(--fs-small); color: var(--on-dark-2); }
.hero :focus-visible { outline-color: var(--brass); }
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }

@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero::before { background: linear-gradient(0deg, rgb(10 22 21 / 0.92) 0%, rgb(10 22 21 / 0.78) 55%, rgb(10 22 21 / 0.45) 100%); }
}

/* ---------- Forms ---------- */

.field { display: grid; gap: 6px; align-content: start; margin-bottom: var(--s5); }
.field-label { font-weight: 700; font-size: var(--fs-small); color: var(--ink); }
.field-label .req { color: var(--danger); margin-left: 2px; }
.field-label .opt { font-weight: 500; color: var(--muted); }
.field-hint { font-size: var(--fs-xs); color: var(--muted); }
.field-error { font-size: var(--fs-small); color: var(--danger); font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333423f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(11 110 98 / 0.22); }
select:focus-visible, textarea:focus-visible { border-radius: var(--radius); }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgb(180 35 24 / 0.14); }
input[type="file"] { width: 100%; font: inherit; font-size: var(--fs-small); color: var(--ink-2); padding: 10px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg-soft); }
input[type="file"]::file-selector-button { font: inherit; font-weight: 700; margin-right: 12px; padding: 10px 16px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
input[type="file"]::file-selector-button:hover { border-color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s5); min-width: 0; }
legend { padding: 0; margin-bottom: var(--s2); font-weight: 700; font-size: var(--fs-small); }
.choices { display: flex; flex-wrap: wrap; gap: var(--s2); }
.choice { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font-weight: 600; background: #fff; }
.choice:hover { border-color: var(--ink-2); }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-bottom: var(--s4); font-size: var(--fs-small); color: var(--ink-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s5); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-banner { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); margin-bottom: var(--s5); border-radius: var(--radius); background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.form-note { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-small); color: var(--ink-2); padding: var(--s4); border-radius: var(--radius); background: var(--bg-soft); margin-bottom: var(--s5); }
.form-note .icon { color: var(--brand); width: 20px; height: 20px; margin-top: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Roles (photo tiles) ---------- */

.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.role { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); color: var(--ink); }
.role-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-deep); }
.role-media img { width: 100%; height: 100%; object-fit: cover; }
.role-body { display: grid; gap: var(--s2); padding: var(--s5); flex: 1; align-content: start; }
.role-body p { color: var(--ink-2); font-size: var(--fs-small); }
@media (max-width: 1024px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .roles { grid-template-columns: 1fr; } .role-media { aspect-ratio: 16 / 9; } }

/* ---------- Steps ---------- */

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.step { position: relative; padding-top: 72px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 56px; height: 56px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: var(--brand); color: #fff; font-weight: 800; font-size: 1.25rem; font-stretch: 110%; }
.step::after { content: ""; position: absolute; top: 27px; left: 68px; right: calc(-1 * clamp(20px, 3vw, 40px) + 12px); height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px); }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: var(--s2); }
.step p { color: var(--ink-2); font-size: var(--fs-small); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: var(--s6); }
  .step { padding: 6px 0 0 80px; min-height: 56px; }
  .step::after { top: 64px; bottom: calc(-1 * var(--s6) + 8px); left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 8px, transparent 8px 14px); }
}

/* ---------- Trust (commitments) ---------- */

.trust { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.trust-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-1); }
.trust-media img { width: 100%; height: 100%; object-fit: cover; }
.trust-list { list-style: none; display: grid; gap: var(--s5); margin-top: var(--s6); }
.trust-list li { position: relative; padding-left: 30px; }
.trust-list li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 12px; height: 12px; background: var(--bronze); transform: rotate(45deg); border-radius: var(--radius-hairline); }
.trust-list h3 { font-size: 1.125rem; margin-bottom: 2px; }
.trust-list p { color: var(--ink-2); font-size: var(--fs-small); max-width: 52ch; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } .trust-media { aspect-ratio: 16 / 9; } }

/* ---------- Dark photo band (employers) ---------- */

.band { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--bg-deep); }
.band picture, .band picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Mirrored so the welder and his sparks sit on the open right side, not under the text. */
.band picture img { object-fit: cover; object-position: 30% 45%; z-index: -2; transform: scaleX(-1); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(12 42 38 / 0.96) 0%, rgb(12 42 38 / 0.86) 46%, rgb(12 42 38 / 0.25) 100%); }
.band .container { padding-block: clamp(64px, 9vw, 128px); }
.band h2 { max-width: 16ch; }
.band p { margin-top: var(--s4); max-width: 52ch; color: var(--on-dark-2); font-size: var(--fs-lead); }
.band .btn { margin-top: var(--s6); }
@media (max-width: 760px) {
  .band::before { background: linear-gradient(180deg, rgb(12 42 38 / 0.12) 0%, rgb(12 42 38 / 0.5) 34%, rgb(12 42 38 / 0.95) 58%); }
  .band .container { padding-top: clamp(220px, 62vw, 300px); }
  .band picture img { object-position: 28% 30%; }
}

/* ---------- Recruiter ---------- */

.recruiter { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s6); align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.avatar { position: relative; width: 96px; height: 96px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: var(--fs-initials); font-stretch: 112%; letter-spacing: -0.02em; }
.avatar::after { content: ""; position: absolute; top: 4px; right: 6px; width: 16px; height: 16px; background: var(--brass); transform: rotate(45deg); border-radius: var(--radius-hairline); }
.recruiter h3 { font-size: var(--fs-title); }
.recruiter .role-line { color: var(--muted); font-weight: 600; margin-top: 2px; }
.recruiter p.bio { color: var(--ink-2); margin-top: var(--s3); max-width: 52ch; }
@media (max-width: 820px) { .recruiter { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- FAQ ---------- */

.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s5); align-items: center; padding: var(--s5) var(--s1); font-weight: 700; font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--brand); transition: transform 240ms var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s1) var(--s5); color: var(--ink-2); max-width: 52ch; }

/* ---------- Closing call to action ---------- */

.closing { background: var(--brand); color: #fff; }
.closing .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5); padding-block: clamp(48px, 6vw, 80px); }
.closing p { color: var(--on-patina); margin-top: var(--s2); font-size: var(--fs-lead); }
.closing .actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- Page header (inner pages) ---------- */

.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head .container { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-top: var(--s4); max-width: 52ch; }
.page-head--photo { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--bg-deep); border: 0; }
.page-head--photo picture, .page-head--photo picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-head--photo picture img { object-fit: cover; z-index: -2; }
.page-head--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 22 21 / 0.92) 0%, rgb(10 22 21 / 0.7) 55%, rgb(10 22 21 / 0.3) 100%); }
.page-head--photo .lead { color: rgb(255 255 255 / 0.88); }
.page-head--photo .container { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 80px); }
.page-head .actions { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- Apply layout ---------- */

.form-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.form-card { background: transparent; }
.section--soft .form-card { background: #fff; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); }
.aside-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.aside-card .inner { padding: var(--s5); display: grid; gap: var(--s4); }
.aside-card ol { list-style: none; display: grid; gap: var(--s3); counter-reset: next; }
.aside-card li { display: grid; grid-template-columns: 30px 1fr; gap: var(--s3); align-items: start; color: var(--ink-2); font-size: var(--fs-small); }
.aside-card li::before { counter-increment: next; content: counter(next); width: 30px; height: 30px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: var(--brand); color: #fff; font-weight: 800; font-size: 0.8125rem; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* ---------- Employers page ---------- */

.expect { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) clamp(24px, 4vw, 56px); }
.expect li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s3); color: var(--ink-2); }
.expect .icon { color: var(--brand); margin-top: 2px; }
@media (max-width: 760px) { .expect { grid-template-columns: 1fr; } }
.roles--compact .role-media { aspect-ratio: 16 / 10; }

/* ---------- Reading pages ---------- */

.reading { max-width: 52ch; }
.reading h2 { font-size: var(--fs-title); margin: var(--s7) 0 var(--s3); }
.reading h3 { margin: var(--s5) 0 var(--s2); }
.reading p { margin-bottom: var(--s4); color: var(--ink-2); }
.reading ul { list-style: none; margin: 0 0 var(--s5); display: grid; gap: var(--s2); color: var(--ink-2); }
.reading ul:not(.rules) li { position: relative; padding-left: 22px; }
.reading ul:not(.rules) li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 7px; height: 7px; background: var(--bronze); transform: rotate(45deg); }
.toc { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.toc a { font-size: var(--fs-small); padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); }
.toc a:hover { border-color: var(--brand); color: var(--brand-ink); }
.rules { list-style: none; display: grid; gap: var(--s3); margin: var(--s4) 0 var(--s6); }
.rules li { display: grid; grid-template-columns: 26px 1fr; gap: var(--s3); color: var(--ink-2); }
.rules .icon { width: 22px; height: 22px; margin-top: 2px; }
.rules--no .icon { color: var(--danger); }
.rules--yes .icon { color: var(--ok); }

/* ---------- Thanks: the hallmark stamp ---------- */

.thanks { text-align: center; max-width: 640px; margin-inline: auto; display: grid; gap: var(--s4); justify-items: center; }
.stamp { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); margin-bottom: var(--s3); }
.stamp svg { width: 64px; height: 64px; }
.stamp .diamond { fill: var(--bronze); stroke: none; transform-box: fill-box; transform-origin: center; animation: stamp 700ms 200ms var(--ease-out) both; }
.stamp .check { stroke-dasharray: 40; stroke-dashoffset: 0; animation: draw 520ms 520ms var(--ease-out) both; }
@keyframes stamp { from { transform: scale(2.2) rotate(-20deg); opacity: 0; } 60% { opacity: 1; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
.thanks .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s4); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--on-dark-2); font-size: var(--fs-small); }
.site-footer a { color: #fff; }
.site-footer .container { padding-block: clamp(48px, 6vw, 80px) var(--s6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.footer-grid h2 { font-size: var(--fs-small); font-stretch: 100%; letter-spacing: 0.02em; color: #fff; margin-bottom: var(--s3); }
.footer-grid ul { list-style: none; display: grid; gap: var(--s2); }
.footer-brand svg { height: 30px; width: auto; color: #fff; }
.footer-brand p { margin-top: var(--s4); max-width: 34ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s5); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid rgb(255 255 255 / 0.14); }
.footer-bottom details summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom details summary::-webkit-details-marker { display: none; }
.footer-bottom summary .icon { width: 16px; height: 16px; transition: transform 240ms var(--ease-out); }
.footer-bottom details[open] summary .icon { transform: rotate(45deg); }
.footer-bottom details p { margin-top: var(--s2); max-width: 52ch; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Small utilities (no inline styles: the CSP forbids them) ---------- */

.h-card { font-size: 1.35rem; }
.reading h2.first { margin-top: 0; }
.form-title { font-size: var(--fs-title); margin-bottom: var(--s5); }
.stamp .check { stroke: #fff; stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .hero picture img { animation: none; }
}
